lemmy-js-client 0.20.0-alpha.4 → 0.20.0-alpha.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ export interface BanFromCommunity {
4
4
  community_id: CommunityId;
5
5
  person_id: PersonId;
6
6
  ban: boolean;
7
- remove_or_restore_data?: boolean;
7
+ remove_data?: boolean;
8
8
  reason?: string;
9
9
  expires?: number;
10
10
  }
@@ -2,7 +2,7 @@ import type { PersonId } from "./PersonId";
2
2
  export interface BanPerson {
3
3
  person_id: PersonId;
4
4
  ban: boolean;
5
- remove_or_restore_data?: boolean;
5
+ remove_data?: boolean;
6
6
  reason?: string;
7
7
  expires?: number;
8
8
  }
@@ -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
  }
@@ -339,4 +339,6 @@ export type LemmyErrorType = {
339
339
  message: string;
340
340
  } | {
341
341
  error: "cant_delete_site";
342
+ } | {
343
+ error: "post_schedule_time_must_be_in_future";
342
344
  };
@@ -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?: number;
29
30
  }
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.4",
4
+ "version": "0.20.0-alpha.6",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",