lemmy-js-client 0.19.0 → 0.19.2-alpha.1

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 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";
@@ -0,0 +1,6 @@
1
+ import type { CommentId } from "./CommentId";
2
+ export interface ListCommentLikes {
3
+ comment_id: CommentId;
4
+ page?: number;
5
+ limit?: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type { VoteView } from "./VoteView";
2
+ export interface ListCommentLikesResponse {
3
+ comment_likes: Array<VoteView>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import type { PostId } from "./PostId";
2
+ export interface ListPostLikes {
3
+ post_id: PostId;
4
+ page?: number;
5
+ limit?: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type { VoteView } from "./VoteView";
2
+ export interface ListPostLikesResponse {
3
+ post_likes: Array<VoteView>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import type { Person } from "./Person";
2
+ export interface VoteView {
3
+ creator: Person;
4
+ score: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.19.0",
3
+ "version": "0.19.2-alpha.1",
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",