lemmy-js-client 0.19.2-alpha.3 → 0.19.2-alpha.4
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.
- package/dist/http.d.ts +3 -3
- package/dist/http.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/types/Community.d.ts +3 -0
- package/dist/types/CommunityVisibility.d.ts +1 -0
- package/dist/types/CommunityVisibility.js +3 -0
- package/dist/types/CreateCommunity.d.ts +3 -1
- package/dist/types/CreateSite.d.ts +2 -0
- package/dist/types/EditCommunity.d.ts +3 -1
- package/dist/types/EditSite.d.ts +2 -0
- package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +2 -0
- package/dist/types/PostAggregates.d.ts +1 -0
- package/package.json +1 -1
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<
|
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
|
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
|
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";
|
@@ -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
|
-
|
12
|
+
only_followers_can_vote?: boolean;
|
13
|
+
visibility?: CommunityVisibility;
|
12
14
|
}
|
@@ -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
|
-
|
13
|
+
only_followers_can_vote?: boolean;
|
14
|
+
visibility?: CommunityVisibility;
|
13
15
|
}
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -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>;
|
package/package.json
CHANGED