lemmy-js-client 0.17.0-rc.40 → 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;
@@ -71,7 +71,6 @@ export declare class CreateSite {
71
71
  private_instance: Option<boolean>;
72
72
  default_theme: Option<string>;
73
73
  default_post_listing_type: Option<string>;
74
- application_email_admins: Option<boolean>;
75
74
  auth: string;
76
75
  constructor(init: CreateSite);
77
76
  }
@@ -92,7 +91,6 @@ export declare class EditSite {
92
91
  default_theme: Option<string>;
93
92
  legal_information: Option<string>;
94
93
  default_post_listing_type: Option<string>;
95
- application_email_admins: Option<boolean>;
96
94
  auth: string;
97
95
  constructor(init: EditSite);
98
96
  }
@@ -406,17 +406,6 @@ var CreateSite = /** @class */ (function () {
406
406
  }, { toPlainOnly: true }),
407
407
  (0, class_transformer_1.Expose)()
408
408
  ], CreateSite.prototype, "default_post_listing_type", void 0);
409
- __decorate([
410
- (0, class_transformer_1.Transform)(function (_a) {
411
- var value = _a.value;
412
- return (0, utils_1.toOption)(value);
413
- }, { toClassOnly: true }),
414
- (0, class_transformer_1.Transform)(function (_a) {
415
- var value = _a.value;
416
- return (0, utils_1.toUndefined)(value);
417
- }, { toPlainOnly: true }),
418
- (0, class_transformer_1.Expose)()
419
- ], CreateSite.prototype, "application_email_admins", void 0);
420
409
  return CreateSite;
421
410
  }());
422
411
  exports.CreateSite = CreateSite;
@@ -600,17 +589,6 @@ var EditSite = /** @class */ (function () {
600
589
  }, { toPlainOnly: true }),
601
590
  (0, class_transformer_1.Expose)()
602
591
  ], EditSite.prototype, "default_post_listing_type", void 0);
603
- __decorate([
604
- (0, class_transformer_1.Transform)(function (_a) {
605
- var value = _a.value;
606
- return (0, utils_1.toOption)(value);
607
- }, { toClassOnly: true }),
608
- (0, class_transformer_1.Transform)(function (_a) {
609
- var value = _a.value;
610
- return (0, utils_1.toUndefined)(value);
611
- }, { toPlainOnly: true }),
612
- (0, class_transformer_1.Expose)()
613
- ], EditSite.prototype, "application_email_admins", void 0);
614
592
  return EditSite;
615
593
  }());
616
594
  exports.EditSite = EditSite;
@@ -61,7 +61,6 @@ export declare class Site {
61
61
  inbox_url: string;
62
62
  public_key: string;
63
63
  legal_information: Option<string>;
64
- application_email_admins: boolean;
65
64
  }
66
65
  export declare class PrivateMessage {
67
66
  id: number;
@@ -261,6 +260,7 @@ export declare class Comment {
261
260
  ap_id: string;
262
261
  local: boolean;
263
262
  path: string;
263
+ distinguished: boolean;
264
264
  }
265
265
  export declare class PersonMention {
266
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.40",
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",