lemmy-js-client 0.20.0-alpha.12 → 0.20.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,4 +10,5 @@ export interface CreatePost {
10
10
  nsfw?: boolean;
11
11
  language_id?: LanguageId;
12
12
  custom_thumbnail?: string;
13
+ scheduled_publish_time?: number;
13
14
  }
@@ -9,4 +9,5 @@ export interface EditPost {
9
9
  nsfw?: boolean;
10
10
  language_id?: LanguageId;
11
11
  custom_thumbnail?: string;
12
+ scheduled_publish_time?: number;
12
13
  }
@@ -1,5 +1,5 @@
1
1
  import type { PostId } from "./PostId";
2
2
  export interface HidePost {
3
- post_id: PostId;
3
+ post_ids: Array<PostId>;
4
4
  hide: boolean;
5
5
  }
@@ -323,6 +323,10 @@ export type LemmyErrorType = {
323
323
  error: "cant_delete_site";
324
324
  } | {
325
325
  error: "url_length_overflow";
326
+ } | {
327
+ error: "post_schedule_time_must_be_in_future";
328
+ } | {
329
+ error: "too_many_scheduled_posts";
326
330
  } | {
327
331
  error: "not_found";
328
332
  };
@@ -21,7 +21,6 @@ export interface LocalUser {
21
21
  accepted_application: boolean;
22
22
  open_links_in_new_tab: boolean;
23
23
  blur_nsfw: boolean;
24
- auto_expand: boolean;
25
24
  infinite_scroll_enabled: boolean;
26
25
  admin: boolean;
27
26
  post_listing_mode: PostListingMode;
@@ -1,5 +1,5 @@
1
1
  import type { PostId } from "./PostId";
2
2
  export interface MarkPostAsRead {
3
- post_id: PostId;
3
+ post_ids: Array<PostId>;
4
4
  read: boolean;
5
5
  }
@@ -26,4 +26,5 @@ export interface Post {
26
26
  featured_local: boolean;
27
27
  url_content_type?: string;
28
28
  alt_text?: string;
29
+ scheduled_publish_time?: string;
29
30
  }
@@ -6,7 +6,6 @@ import type { PostSortType } from "./PostSortType";
6
6
  export interface SaveUserSettings {
7
7
  show_nsfw?: boolean;
8
8
  blur_nsfw?: boolean;
9
- auto_expand?: boolean;
10
9
  theme?: string;
11
10
  default_listing_type?: ListingType;
12
11
  post_listing_mode?: PostListingMode;
@@ -13,7 +13,7 @@ export interface Search {
13
13
  listing_type?: ListingType;
14
14
  page?: number;
15
15
  limit?: number;
16
- post_title_only?: boolean;
16
+ title_only?: boolean;
17
17
  post_url_only?: boolean;
18
18
  saved_only?: boolean;
19
19
  liked_only?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.20.0-alpha.12",
4
+ "version": "0.20.0-alpha.14",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",