lemmy-js-client 0.17.0-rc.39 → 0.17.0-rc.41

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,8 +14,12 @@ export declare class CreateComment {
14
14
  constructor(init: CreateComment);
15
15
  }
16
16
  export declare class EditComment {
17
- content: string;
18
17
  comment_id: number;
18
+ content: Option<string>;
19
+ /**
20
+ * "Distinguishes" a comment, or speak officially. Only doable by community mods or admins.
21
+ */
22
+ distinguished: Option<boolean>;
19
23
  /**
20
24
  * An optional front end ID, to tell which is comment is coming back.
21
25
  */
@@ -44,6 +44,28 @@ var EditComment = /** @class */ (function () {
44
44
  function EditComment(init) {
45
45
  Object.assign(this, init);
46
46
  }
47
+ __decorate([
48
+ (0, class_transformer_1.Transform)(function (_a) {
49
+ var value = _a.value;
50
+ return (0, utils_1.toOption)(value);
51
+ }, { toClassOnly: true }),
52
+ (0, class_transformer_1.Transform)(function (_a) {
53
+ var value = _a.value;
54
+ return (0, utils_1.toUndefined)(value);
55
+ }, { toPlainOnly: true }),
56
+ (0, class_transformer_1.Expose)()
57
+ ], EditComment.prototype, "content", void 0);
58
+ __decorate([
59
+ (0, class_transformer_1.Transform)(function (_a) {
60
+ var value = _a.value;
61
+ return (0, utils_1.toOption)(value);
62
+ }, { toClassOnly: true }),
63
+ (0, class_transformer_1.Transform)(function (_a) {
64
+ var value = _a.value;
65
+ return (0, utils_1.toUndefined)(value);
66
+ }, { toPlainOnly: true }),
67
+ (0, class_transformer_1.Expose)()
68
+ ], EditComment.prototype, "distinguished", void 0);
47
69
  __decorate([
48
70
  (0, class_transformer_1.Transform)(function (_a) {
49
71
  var value = _a.value;
@@ -260,6 +260,7 @@ export declare class Comment {
260
260
  ap_id: string;
261
261
  local: boolean;
262
262
  path: string;
263
+ distinguished: boolean;
263
264
  }
264
265
  export declare class PersonMention {
265
266
  id: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.17.0-rc.39",
4
+ "version": "0.17.0-rc.41",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",