lemmy-js-client 0.19.0-rc.1 → 0.19.0-rc.3

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.
@@ -1,6 +1,6 @@
1
- import type { PersonId } from "./PersonId";
1
+ import type { LocalUserId } from "./LocalUserId";
2
2
  export interface AddAdmin {
3
- person_id: PersonId;
3
+ local_user_id: LocalUserId;
4
4
  added: boolean;
5
5
  auth: string;
6
6
  }
@@ -3,5 +3,4 @@ import type { LocalUserId } from "./LocalUserId";
3
3
  export interface CommentResponse {
4
4
  comment_view: CommentView;
5
5
  recipient_ids: Array<LocalUserId>;
6
- form_id?: string;
7
6
  }
@@ -6,6 +6,5 @@ export interface CreateComment {
6
6
  post_id: PostId;
7
7
  parent_id?: CommentId;
8
8
  language_id?: LanguageId;
9
- form_id?: string;
10
9
  auth: string;
11
10
  }
@@ -1,4 +1,5 @@
1
1
  export interface DeleteAccount {
2
2
  password: string;
3
+ delete_content: boolean;
3
4
  auth: string;
4
5
  }
@@ -4,6 +4,5 @@ export interface EditComment {
4
4
  comment_id: CommentId;
5
5
  content?: string;
6
6
  language_id?: LanguageId;
7
- form_id?: string;
8
7
  auth: string;
9
8
  }
@@ -14,5 +14,7 @@ export interface GetComments {
14
14
  post_id?: PostId;
15
15
  parent_id?: CommentId;
16
16
  saved_only?: boolean;
17
+ liked_only?: boolean;
18
+ disliked_only?: boolean;
17
19
  auth?: string;
18
20
  }
@@ -9,6 +9,7 @@ export interface GetPosts {
9
9
  community_id?: CommunityId;
10
10
  community_name?: string;
11
11
  saved_only?: boolean;
12
- moderator_view?: boolean;
12
+ liked_only?: boolean;
13
+ disliked_only?: boolean;
13
14
  auth?: string;
14
15
  }
@@ -1,6 +1,8 @@
1
+ import type { PersonId } from "./PersonId";
1
2
  export interface GetPrivateMessages {
2
3
  unread_only?: boolean;
3
4
  page?: number;
4
5
  limit?: number;
6
+ creator_id?: PersonId;
5
7
  auth: string;
6
8
  }
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- export type ListingType = "All" | "Local" | "Subscribed";
1
+ export type ListingType = "All" | "Local" | "Subscribed" | "ModeratorView";
@@ -25,4 +25,5 @@ export interface LocalUser {
25
25
  blur_nsfw: boolean;
26
26
  auto_expand: boolean;
27
27
  infinite_scroll_enabled: boolean;
28
+ admin: boolean;
28
29
  }
@@ -15,7 +15,6 @@ export interface Person {
15
15
  deleted: boolean;
16
16
  inbox_url: string;
17
17
  matrix_user_id?: string;
18
- admin: boolean;
19
18
  bot_account: boolean;
20
19
  ban_expires?: string;
21
20
  instance_id: InstanceId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.19.0-rc.1",
3
+ "version": "0.19.0-rc.3",
4
4
  "description": "A javascript / typescript client for Lemmy",
5
5
  "repository": "https://github.com/LemmyNet/lemmy-js-client",
6
6
  "license": "AGPL-3.0",