lemmy-js-client 0.18.0-rc.2 → 0.18.1-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +10 -10
- package/dist/http.js +10 -10
- package/dist/types/CreateSite.d.ts +0 -1
- package/dist/types/EditSite.d.ts +0 -1
- package/dist/types/LocalSite.d.ts +0 -1
- package/dist/types/SortType.d.ts +1 -1
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
@@ -151,7 +151,7 @@ export declare class LemmyHttp {
|
|
151
151
|
*
|
152
152
|
* `HTTP.GET /site`
|
153
153
|
*/
|
154
|
-
getSite(form
|
154
|
+
getSite(form?: GetSite): Promise<GetSiteResponse>;
|
155
155
|
/**
|
156
156
|
* Create your site.
|
157
157
|
*
|
@@ -175,7 +175,7 @@ export declare class LemmyHttp {
|
|
175
175
|
*
|
176
176
|
* `HTTP.GET /modlog`
|
177
177
|
*/
|
178
|
-
getModlog(form
|
178
|
+
getModlog(form?: GetModlog): Promise<GetModlogResponse>;
|
179
179
|
/**
|
180
180
|
* Search lemmy.
|
181
181
|
*
|
@@ -199,7 +199,7 @@ export declare class LemmyHttp {
|
|
199
199
|
*
|
200
200
|
* `HTTP.GET /community`
|
201
201
|
*/
|
202
|
-
getCommunity(form
|
202
|
+
getCommunity(form?: GetCommunity): Promise<GetCommunityResponse>;
|
203
203
|
/**
|
204
204
|
* Edit a community.
|
205
205
|
*
|
@@ -211,7 +211,7 @@ export declare class LemmyHttp {
|
|
211
211
|
*
|
212
212
|
* `HTTP.GET /community/list`
|
213
213
|
*/
|
214
|
-
listCommunities(form
|
214
|
+
listCommunities(form?: ListCommunities): Promise<ListCommunitiesResponse>;
|
215
215
|
/**
|
216
216
|
* Follow / subscribe to a community.
|
217
217
|
*
|
@@ -265,7 +265,7 @@ export declare class LemmyHttp {
|
|
265
265
|
*
|
266
266
|
* `HTTP.GET /post`
|
267
267
|
*/
|
268
|
-
getPost(form
|
268
|
+
getPost(form?: GetPost): Promise<GetPostResponse>;
|
269
269
|
/**
|
270
270
|
* Edit a post.
|
271
271
|
*
|
@@ -307,7 +307,7 @@ export declare class LemmyHttp {
|
|
307
307
|
*
|
308
308
|
* `HTTP.GET /post/list`
|
309
309
|
*/
|
310
|
-
getPosts(form
|
310
|
+
getPosts(form?: GetPosts): Promise<GetPostsResponse>;
|
311
311
|
/**
|
312
312
|
* Like / vote on a post.
|
313
313
|
*
|
@@ -397,7 +397,7 @@ export declare class LemmyHttp {
|
|
397
397
|
*
|
398
398
|
* `HTTP.GET /comment/list`
|
399
399
|
*/
|
400
|
-
getComments(form
|
400
|
+
getComments(form?: GetComments): Promise<GetCommentsResponse>;
|
401
401
|
/**
|
402
402
|
* Get / fetch comment.
|
403
403
|
*
|
@@ -487,7 +487,7 @@ export declare class LemmyHttp {
|
|
487
487
|
*
|
488
488
|
* `HTTP.GET /user`
|
489
489
|
*/
|
490
|
-
getPersonDetails(form
|
490
|
+
getPersonDetails(form?: GetPersonDetails): Promise<GetPersonDetailsResponse>;
|
491
491
|
/**
|
492
492
|
* Get mentions for your user.
|
493
493
|
*
|
@@ -529,7 +529,7 @@ export declare class LemmyHttp {
|
|
529
529
|
*
|
530
530
|
* `HTTP.GET /user/get_captcha`
|
531
531
|
*/
|
532
|
-
getCaptcha(form
|
532
|
+
getCaptcha(form?: GetCaptcha): Promise<GetCaptchaResponse>;
|
533
533
|
/**
|
534
534
|
* Delete your account.
|
535
535
|
*
|
@@ -655,7 +655,7 @@ export declare class LemmyHttp {
|
|
655
655
|
*
|
656
656
|
* `HTTP.Get /federated_instances`
|
657
657
|
*/
|
658
|
-
getFederatedInstances(form
|
658
|
+
getFederatedInstances(form?: GetFederatedInstances): Promise<GetFederatedInstancesResponse>;
|
659
659
|
/**
|
660
660
|
* Upload an image to the server.
|
661
661
|
*/
|
package/dist/http.js
CHANGED
@@ -63,7 +63,7 @@ class LemmyHttp {
|
|
63
63
|
*
|
64
64
|
* `HTTP.GET /site`
|
65
65
|
*/
|
66
|
-
getSite(form) {
|
66
|
+
getSite(form = {}) {
|
67
67
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", form);
|
68
68
|
}
|
69
69
|
/**
|
@@ -95,7 +95,7 @@ class LemmyHttp {
|
|
95
95
|
*
|
96
96
|
* `HTTP.GET /modlog`
|
97
97
|
*/
|
98
|
-
getModlog(form) {
|
98
|
+
getModlog(form = {}) {
|
99
99
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form);
|
100
100
|
}
|
101
101
|
/**
|
@@ -127,7 +127,7 @@ class LemmyHttp {
|
|
127
127
|
*
|
128
128
|
* `HTTP.GET /community`
|
129
129
|
*/
|
130
|
-
getCommunity(form) {
|
130
|
+
getCommunity(form = {}) {
|
131
131
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form);
|
132
132
|
}
|
133
133
|
/**
|
@@ -143,7 +143,7 @@ class LemmyHttp {
|
|
143
143
|
*
|
144
144
|
* `HTTP.GET /community/list`
|
145
145
|
*/
|
146
|
-
listCommunities(form) {
|
146
|
+
listCommunities(form = {}) {
|
147
147
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form);
|
148
148
|
}
|
149
149
|
/**
|
@@ -215,7 +215,7 @@ class LemmyHttp {
|
|
215
215
|
*
|
216
216
|
* `HTTP.GET /post`
|
217
217
|
*/
|
218
|
-
getPost(form) {
|
218
|
+
getPost(form = {}) {
|
219
219
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form);
|
220
220
|
}
|
221
221
|
/**
|
@@ -271,7 +271,7 @@ class LemmyHttp {
|
|
271
271
|
*
|
272
272
|
* `HTTP.GET /post/list`
|
273
273
|
*/
|
274
|
-
getPosts(form) {
|
274
|
+
getPosts(form = {}) {
|
275
275
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form);
|
276
276
|
}
|
277
277
|
/**
|
@@ -391,7 +391,7 @@ class LemmyHttp {
|
|
391
391
|
*
|
392
392
|
* `HTTP.GET /comment/list`
|
393
393
|
*/
|
394
|
-
getComments(form) {
|
394
|
+
getComments(form = {}) {
|
395
395
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form);
|
396
396
|
}
|
397
397
|
/**
|
@@ -511,7 +511,7 @@ class LemmyHttp {
|
|
511
511
|
*
|
512
512
|
* `HTTP.GET /user`
|
513
513
|
*/
|
514
|
-
getPersonDetails(form) {
|
514
|
+
getPersonDetails(form = {}) {
|
515
515
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user", form);
|
516
516
|
}
|
517
517
|
/**
|
@@ -567,7 +567,7 @@ class LemmyHttp {
|
|
567
567
|
*
|
568
568
|
* `HTTP.GET /user/get_captcha`
|
569
569
|
*/
|
570
|
-
getCaptcha(form) {
|
570
|
+
getCaptcha(form = {}) {
|
571
571
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/get_captcha", form);
|
572
572
|
}
|
573
573
|
/**
|
@@ -741,7 +741,7 @@ class LemmyHttp {
|
|
741
741
|
*
|
742
742
|
* `HTTP.Get /federated_instances`
|
743
743
|
*/
|
744
|
-
getFederatedInstances(form) {
|
744
|
+
getFederatedInstances(form = {}) {
|
745
745
|
return __awaiter(this, void 0, void 0, function* () {
|
746
746
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", form);
|
747
747
|
});
|
@@ -35,7 +35,6 @@ export interface CreateSite {
|
|
35
35
|
rate_limit_search_per_second?: number;
|
36
36
|
federation_enabled?: boolean;
|
37
37
|
federation_debug?: boolean;
|
38
|
-
federation_worker_count?: number;
|
39
38
|
captcha_enabled?: boolean;
|
40
39
|
captcha_difficulty?: string;
|
41
40
|
allowed_instances?: Array<string>;
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -35,7 +35,6 @@ export interface EditSite {
|
|
35
35
|
rate_limit_search_per_second?: number;
|
36
36
|
federation_enabled?: boolean;
|
37
37
|
federation_debug?: boolean;
|
38
|
-
federation_worker_count?: number;
|
39
38
|
captcha_enabled?: boolean;
|
40
39
|
captcha_difficulty?: string;
|
41
40
|
allowed_instances?: Array<string>;
|
package/dist/types/SortType.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour";
|
1
|
+
export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths";
|