lemmy-js-client 0.18.3-rc.3 → 0.19.0-rc.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -186,6 +186,7 @@ export { PersonMention } from "./types/PersonMention";
186
186
  export { PersonMentionId } from "./types/PersonMentionId";
187
187
  export { PersonMentionResponse } from "./types/PersonMentionResponse";
188
188
  export { PersonMentionView } from "./types/PersonMentionView";
189
+ export { PersonSortType } from "./types/PersonSortType";
189
190
  export { PersonView } from "./types/PersonView";
190
191
  export { Post } from "./types/Post";
191
192
  export { PostAggregates } from "./types/PostAggregates";
@@ -8,4 +8,5 @@ export interface CommentAggregates {
8
8
  published: string;
9
9
  child_count: number;
10
10
  hot_rank: number;
11
+ controversy_rank: number;
11
12
  }
@@ -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
  }
@@ -1 +1 @@
1
- export type CommentSortType = "Hot" | "Top" | "New" | "Old";
1
+ export type CommentSortType = "Hot" | "Top" | "New" | "Old" | "Controversial";
@@ -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
  }
@@ -7,8 +7,6 @@ export interface LocalUser {
7
7
  person_id: PersonId;
8
8
  email?: string;
9
9
  show_nsfw: boolean;
10
- blur_nsfw: boolean;
11
- auto_expand: boolean;
12
10
  theme: string;
13
11
  default_sort_type: SortType;
14
12
  default_listing_type: ListingType;
@@ -24,4 +22,7 @@ export interface LocalUser {
24
22
  accepted_application: boolean;
25
23
  totp_2fa_url?: string;
26
24
  open_links_in_new_tab: boolean;
25
+ blur_nsfw: boolean;
26
+ auto_expand: boolean;
27
+ infinite_scroll_enabled: boolean;
27
28
  }
@@ -0,0 +1 @@
1
+ export type PersonSortType = "New" | "Old" | "MostComments" | "CommentScore" | "PostScore" | "PostCount";
@@ -0,0 +1,3 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,5 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ import type { PersonId } from "./PersonId";
1
3
  import type { PostId } from "./PostId";
2
4
  export interface PostAggregates {
3
5
  id: number;
@@ -13,4 +15,7 @@ export interface PostAggregates {
13
15
  featured_local: boolean;
14
16
  hot_rank: number;
15
17
  hot_rank_active: number;
18
+ community_id: CommunityId;
19
+ creator_id: PersonId;
20
+ controversy_rank: number;
16
21
  }
@@ -1,4 +1,4 @@
1
1
  export interface ResolveObject {
2
2
  q: string;
3
- auth: string;
3
+ auth: string | null;
4
4
  }
@@ -26,4 +26,5 @@ export interface SaveUserSettings {
26
26
  generate_totp_2fa?: boolean;
27
27
  auth: string;
28
28
  open_links_in_new_tab?: boolean;
29
+ infinite_scroll_enabled?: boolean;
29
30
  }
@@ -1 +1 @@
1
- export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths";
1
+ export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.18.3-rc.3",
3
+ "version": "0.19.0-rc.2",
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",