lemmy-js-client 0.19.0 → 0.19.2-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +16 -0
- package/dist/http.js +16 -0
- package/dist/index.d.ts +5 -0
- package/dist/types/ListCommentLikes.d.ts +6 -0
- package/dist/types/ListCommentLikes.js +2 -0
- package/dist/types/ListCommentLikesResponse.d.ts +4 -0
- package/dist/types/ListCommentLikesResponse.js +2 -0
- package/dist/types/ListPostLikes.d.ts +6 -0
- package/dist/types/ListPostLikes.js +2 -0
- package/dist/types/ListPostLikesResponse.d.ts +4 -0
- package/dist/types/ListPostLikesResponse.js +2 -0
- package/dist/types/VoteView.d.ts +5 -0
- package/dist/types/VoteView.js +2 -0
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
@@ -128,6 +128,10 @@ import { UpdateTotp } from "./types/UpdateTotp";
|
|
128
128
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
129
129
|
import { SuccessResponse } from "./types/SuccessResponse";
|
130
130
|
import { LoginToken } from "./types/LoginToken";
|
131
|
+
import { ListPostLikes } from "./types/ListPostLikes";
|
132
|
+
import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
133
|
+
import { ListCommentLikes } from "./types/ListCommentLikes";
|
134
|
+
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
131
135
|
/**
|
132
136
|
* Helps build lemmy HTTP requests.
|
133
137
|
*/
|
@@ -361,6 +365,12 @@ export declare class LemmyHttp {
|
|
361
365
|
* `HTTP.POST /post/like`
|
362
366
|
*/
|
363
367
|
likePost(form: CreatePostLike): Promise<PostResponse>;
|
368
|
+
/**
|
369
|
+
* List a post's likes. Admin-only.
|
370
|
+
*
|
371
|
+
* `HTTP.GET /post/like`
|
372
|
+
*/
|
373
|
+
listPostLikes(form: ListPostLikes): Promise<ListPostLikesResponse>;
|
364
374
|
/**
|
365
375
|
* Save a post.
|
366
376
|
*
|
@@ -427,6 +437,12 @@ export declare class LemmyHttp {
|
|
427
437
|
* `HTTP.POST /comment/like`
|
428
438
|
*/
|
429
439
|
likeComment(form: CreateCommentLike): Promise<CommentResponse>;
|
440
|
+
/**
|
441
|
+
* List a comment's likes. Admin-only.
|
442
|
+
*
|
443
|
+
* `HTTP.GET //like`
|
444
|
+
*/
|
445
|
+
listCommentLikes(form: ListCommentLikes): Promise<ListCommentLikesResponse>;
|
430
446
|
/**
|
431
447
|
* Save a comment.
|
432
448
|
*
|
package/dist/http.js
CHANGED
@@ -345,6 +345,14 @@ class LemmyHttp {
|
|
345
345
|
likePost(form) {
|
346
346
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form);
|
347
347
|
}
|
348
|
+
/**
|
349
|
+
* List a post's likes. Admin-only.
|
350
|
+
*
|
351
|
+
* `HTTP.GET /post/like`
|
352
|
+
*/
|
353
|
+
listPostLikes(form) {
|
354
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form);
|
355
|
+
}
|
348
356
|
/**
|
349
357
|
* Save a post.
|
350
358
|
*
|
@@ -433,6 +441,14 @@ class LemmyHttp {
|
|
433
441
|
likeComment(form) {
|
434
442
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form);
|
435
443
|
}
|
444
|
+
/**
|
445
|
+
* List a comment's likes. Admin-only.
|
446
|
+
*
|
447
|
+
* `HTTP.GET //like`
|
448
|
+
*/
|
449
|
+
listCommentLikes(form) {
|
450
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form);
|
451
|
+
}
|
436
452
|
/**
|
437
453
|
* Save a comment.
|
438
454
|
*
|
package/dist/index.d.ts
CHANGED
@@ -117,10 +117,14 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
|
|
117
117
|
export { Language } from "./types/Language";
|
118
118
|
export { LanguageId } from "./types/LanguageId";
|
119
119
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
120
|
+
export { ListCommentLikes } from "./types/ListCommentLikes";
|
121
|
+
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
120
122
|
export { ListCommentReports } from "./types/ListCommentReports";
|
121
123
|
export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
|
122
124
|
export { ListCommunities } from "./types/ListCommunities";
|
123
125
|
export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
126
|
+
export { ListPostLikes } from "./types/ListPostLikes";
|
127
|
+
export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
124
128
|
export { ListPostReports } from "./types/ListPostReports";
|
125
129
|
export { ListPostReportsResponse } from "./types/ListPostReportsResponse";
|
126
130
|
export { ListPrivateMessageReports } from "./types/ListPrivateMessageReports";
|
@@ -238,4 +242,5 @@ export { TransferCommunity } from "./types/TransferCommunity";
|
|
238
242
|
export { UpdateTotp } from "./types/UpdateTotp";
|
239
243
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
240
244
|
export { VerifyEmail } from "./types/VerifyEmail";
|
245
|
+
export { VoteView } from "./types/VoteView";
|
241
246
|
export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./other_types";
|