mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-01 01:59:55 +00:00
Post scheduling (#347)
* Post scheduling * rename field * 0.20.0-alpha.5 * fix type * 0.20.0-alpha.6 * add EditPost.scheduled_publish_time * 0.19.6-alpha.1 * add error * fix
This commit is contained in:
parent
df67ca2220
commit
5789a9a685
4 changed files with 5 additions and 0 deletions
|
@ -12,4 +12,5 @@ export interface CreatePost {
|
||||||
nsfw?: boolean;
|
nsfw?: boolean;
|
||||||
language_id?: LanguageId;
|
language_id?: LanguageId;
|
||||||
custom_thumbnail?: string;
|
custom_thumbnail?: string;
|
||||||
|
scheduled_publish_time?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,4 +11,5 @@ export interface EditPost {
|
||||||
nsfw?: boolean;
|
nsfw?: boolean;
|
||||||
language_id?: LanguageId;
|
language_id?: LanguageId;
|
||||||
custom_thumbnail?: string;
|
custom_thumbnail?: string;
|
||||||
|
scheduled_publish_time?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,5 +159,7 @@ export type LemmyErrorType =
|
||||||
| { error: "couldnt_delete_oauth_provider" }
|
| { error: "couldnt_delete_oauth_provider" }
|
||||||
| { error: "unknown"; message: string }
|
| { error: "unknown"; message: string }
|
||||||
| { error: "cant_delete_site" }
|
| { error: "cant_delete_site" }
|
||||||
|
| { error: "post_schedule_time_must_be_in_future" }
|
||||||
|
| { error: "too_many_scheduled_posts" }
|
||||||
| { error: "url_length_overflow" }
|
| { error: "url_length_overflow" }
|
||||||
| { error: "not_found" };
|
| { error: "not_found" };
|
||||||
|
|
|
@ -28,4 +28,5 @@ export interface Post {
|
||||||
featured_local: boolean;
|
featured_local: boolean;
|
||||||
url_content_type?: string;
|
url_content_type?: string;
|
||||||
alt_text?: string;
|
alt_text?: string;
|
||||||
|
scheduled_publish_time?: number;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue