lemmy-js-client 0.19.2-alpha.3 → 0.19.2-alpha.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.d.ts CHANGED
@@ -186,7 +186,7 @@ export declare class LemmyHttp {
186
186
  *
187
187
  * `HTTP.GET /user/export_settings`
188
188
  */
189
- exportSettings(): Promise<any>;
189
+ exportSettings(): Promise<string>;
190
190
  /**
191
191
  * Import a backup of your user settings.
192
192
  *
@@ -368,7 +368,7 @@ export declare class LemmyHttp {
368
368
  /**
369
369
  * List a post's likes. Admin-only.
370
370
  *
371
- * `HTTP.GET /post/like`
371
+ * `HTTP.GET /post/like/list`
372
372
  */
373
373
  listPostLikes(form: ListPostLikes): Promise<ListPostLikesResponse>;
374
374
  /**
@@ -440,7 +440,7 @@ export declare class LemmyHttp {
440
440
  /**
441
441
  * List a comment's likes. Admin-only.
442
442
  *
443
- * `HTTP.GET //like`
443
+ * `HTTP.GET /comment/like/list`
444
444
  */
445
445
  listCommentLikes(form: ListCommentLikes): Promise<ListCommentLikesResponse>;
446
446
  /**
package/dist/http.js CHANGED
@@ -348,7 +348,7 @@ class LemmyHttp {
348
348
  /**
349
349
  * List a post's likes. Admin-only.
350
350
  *
351
- * `HTTP.GET /post/like`
351
+ * `HTTP.GET /post/like/list`
352
352
  */
353
353
  listPostLikes(form) {
354
354
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form);
@@ -444,7 +444,7 @@ class LemmyHttp {
444
444
  /**
445
445
  * List a comment's likes. Admin-only.
446
446
  *
447
- * `HTTP.GET //like`
447
+ * `HTTP.GET /comment/like/list`
448
448
  */
449
449
  listCommentLikes(form) {
450
450
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form);
package/dist/index.d.ts CHANGED
@@ -48,6 +48,7 @@ export { CommunityId } from "./types/CommunityId";
48
48
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
49
49
  export { CommunityResponse } from "./types/CommunityResponse";
50
50
  export { CommunityView } from "./types/CommunityView";
51
+ export { CommunityVisibility } from "./types/CommunityVisibility";
51
52
  export { CreateComment } from "./types/CreateComment";
52
53
  export { CreateCommentLike } from "./types/CreateCommentLike";
53
54
  export { CreateCommentReport } from "./types/CreateCommentReport";
@@ -1,4 +1,5 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
+ import type { CommunityVisibility } from "./CommunityVisibility";
2
3
  import type { InstanceId } from "./InstanceId";
3
4
  export interface Community {
4
5
  id: CommunityId;
@@ -17,4 +18,6 @@ export interface Community {
17
18
  hidden: boolean;
18
19
  posting_restricted_to_mods: boolean;
19
20
  instance_id: InstanceId;
21
+ only_followers_can_vote: boolean;
22
+ visibility: CommunityVisibility;
20
23
  }
@@ -0,0 +1 @@
1
+ export type CommunityVisibility = "Public" | "LocalOnly";
@@ -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,4 @@
1
+ import type { CommunityVisibility } from "./CommunityVisibility";
1
2
  import type { LanguageId } from "./LanguageId";
2
3
  export interface CreateCommunity {
3
4
  name: string;
@@ -8,5 +9,6 @@ export interface CreateCommunity {
8
9
  nsfw?: boolean;
9
10
  posting_restricted_to_mods?: boolean;
10
11
  discussion_languages?: Array<LanguageId>;
11
- local_only?: boolean;
12
+ only_followers_can_vote?: boolean;
13
+ visibility?: CommunityVisibility;
12
14
  }
@@ -41,4 +41,6 @@ export interface CreateSite {
41
41
  blocked_instances?: Array<string>;
42
42
  taglines?: Array<string>;
43
43
  registration_mode?: RegistrationMode;
44
+ content_warning?: string;
45
+ auto_expand_images?: boolean;
44
46
  }
@@ -1,4 +1,5 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
+ import type { CommunityVisibility } from "./CommunityVisibility";
2
3
  import type { LanguageId } from "./LanguageId";
3
4
  export interface EditCommunity {
4
5
  community_id: CommunityId;
@@ -9,5 +10,6 @@ export interface EditCommunity {
9
10
  nsfw?: boolean;
10
11
  posting_restricted_to_mods?: boolean;
11
12
  discussion_languages?: Array<LanguageId>;
12
- local_only?: boolean;
13
+ only_followers_can_vote?: boolean;
14
+ visibility?: CommunityVisibility;
13
15
  }
@@ -42,4 +42,6 @@ export interface EditSite {
42
42
  taglines?: Array<string>;
43
43
  registration_mode?: RegistrationMode;
44
44
  reports_email_admins?: boolean;
45
+ content_warning?: string;
46
+ auto_expand_images?: boolean;
45
47
  }
@@ -2,8 +2,10 @@ import type { CommentView } from "./CommentView";
2
2
  import type { CommunityModeratorView } from "./CommunityModeratorView";
3
3
  import type { PersonView } from "./PersonView";
4
4
  import type { PostView } from "./PostView";
5
+ import type { Site } from "./Site";
5
6
  export interface GetPersonDetailsResponse {
6
7
  person_view: PersonView;
8
+ site: Site | null;
7
9
  comments: Array<CommentView>;
8
10
  posts: Array<PostView>;
9
11
  moderates: Array<CommunityModeratorView>;
@@ -27,4 +27,6 @@ export interface LocalSite {
27
27
  registration_mode: RegistrationMode;
28
28
  reports_email_admins: boolean;
29
29
  federation_signed_fetch: boolean;
30
+ content_warning?: string;
31
+ auto_expand_images: boolean;
30
32
  }
@@ -6,4 +6,5 @@ export interface PostAggregates {
6
6
  upvotes: number;
7
7
  downvotes: number;
8
8
  published: string;
9
+ newest_comment_time: string;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.19.2-alpha.3",
3
+ "version": "0.19.2-alpha.4",
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",