lemmy-js-client 0.17.0-rc.56 → 0.17.0-rc.57

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,8 @@ export declare class GetCommunityResponse {
19
19
  site: Option<Site>;
20
20
  moderators: CommunityModeratorView[];
21
21
  online: number;
22
+ discussion_languages: number[];
23
+ default_post_language: Option<number>;
22
24
  }
23
25
  export declare class CreateCommunity {
24
26
  name: string;
@@ -28,11 +30,13 @@ export declare class CreateCommunity {
28
30
  banner: Option<string>;
29
31
  nsfw: Option<boolean>;
30
32
  posting_restricted_to_mods: Option<boolean>;
33
+ discussion_languages: Option<number[]>;
31
34
  auth: string;
32
35
  constructor(init: CreateCommunity);
33
36
  }
34
37
  export declare class CommunityResponse {
35
38
  community_view: CommunityView;
39
+ discussion_languages: number[];
36
40
  }
37
41
  export declare class ListCommunities {
38
42
  type_: Option<ListingType>;
@@ -86,6 +90,7 @@ export declare class EditCommunity {
86
90
  banner: Option<string>;
87
91
  nsfw: Option<boolean>;
88
92
  posting_restricted_to_mods: Option<boolean>;
93
+ discussion_languages: Option<number[]>;
89
94
  auth: string;
90
95
  constructor(init: EditCommunity);
91
96
  }
@@ -78,6 +78,17 @@ var GetCommunityResponse = /** @class */ (function () {
78
78
  __decorate([
79
79
  (0, class_transformer_1.Type)(function () { return views_1.CommunityModeratorView; })
80
80
  ], GetCommunityResponse.prototype, "moderators", void 0);
81
+ __decorate([
82
+ (0, class_transformer_1.Transform)(function (_a) {
83
+ var value = _a.value;
84
+ return (0, utils_1.toOption)(value);
85
+ }, { toClassOnly: true }),
86
+ (0, class_transformer_1.Transform)(function (_a) {
87
+ var value = _a.value;
88
+ return (0, utils_1.toUndefined)(value);
89
+ }, { toPlainOnly: true }),
90
+ (0, class_transformer_1.Expose)()
91
+ ], GetCommunityResponse.prototype, "default_post_language", void 0);
81
92
  return GetCommunityResponse;
82
93
  }());
83
94
  exports.GetCommunityResponse = GetCommunityResponse;
@@ -140,6 +151,17 @@ var CreateCommunity = /** @class */ (function () {
140
151
  }, { toPlainOnly: true }),
141
152
  (0, class_transformer_1.Expose)()
142
153
  ], CreateCommunity.prototype, "posting_restricted_to_mods", void 0);
154
+ __decorate([
155
+ (0, class_transformer_1.Transform)(function (_a) {
156
+ var value = _a.value;
157
+ return (0, utils_1.toOption)(value);
158
+ }, { toClassOnly: true }),
159
+ (0, class_transformer_1.Transform)(function (_a) {
160
+ var value = _a.value;
161
+ return (0, utils_1.toUndefined)(value);
162
+ }, { toPlainOnly: true }),
163
+ (0, class_transformer_1.Expose)()
164
+ ], CreateCommunity.prototype, "discussion_languages", void 0);
143
165
  return CreateCommunity;
144
166
  }());
145
167
  exports.CreateCommunity = CreateCommunity;
@@ -361,6 +383,17 @@ var EditCommunity = /** @class */ (function () {
361
383
  }, { toPlainOnly: true }),
362
384
  (0, class_transformer_1.Expose)()
363
385
  ], EditCommunity.prototype, "posting_restricted_to_mods", void 0);
386
+ __decorate([
387
+ (0, class_transformer_1.Transform)(function (_a) {
388
+ var value = _a.value;
389
+ return (0, utils_1.toOption)(value);
390
+ }, { toClassOnly: true }),
391
+ (0, class_transformer_1.Transform)(function (_a) {
392
+ var value = _a.value;
393
+ return (0, utils_1.toUndefined)(value);
394
+ }, { toPlainOnly: true }),
395
+ (0, class_transformer_1.Expose)()
396
+ ], EditCommunity.prototype, "discussion_languages", void 0);
364
397
  return EditCommunity;
365
398
  }());
366
399
  exports.EditCommunity = EditCommunity;
@@ -75,7 +75,6 @@ export declare class CreateSite {
75
75
  default_theme: Option<string>;
76
76
  default_post_listing_type: Option<string>;
77
77
  application_email_admins: Option<boolean>;
78
- auth: string;
79
78
  hide_modlog_mod_names: Option<boolean>;
80
79
  discussion_languages: Option<number[]>;
81
80
  legal_information: Option<string>;
@@ -100,6 +99,8 @@ export declare class CreateSite {
100
99
  captcha_difficulty: Option<string>;
101
100
  allowed_instances: Option<string[]>;
102
101
  blocked_instances: Option<string[]>;
102
+ taglines: Option<string[]>;
103
+ auth: string;
103
104
  constructor(init: CreateSite);
104
105
  }
105
106
  export declare class EditSite {
@@ -177,7 +178,7 @@ export declare class MyUserInfo {
177
178
  moderates: CommunityModeratorView[];
178
179
  community_blocks: CommunityBlockView[];
179
180
  person_blocks: PersonBlockView[];
180
- discussion_languages: Language[];
181
+ discussion_languages: number[];
181
182
  }
182
183
  export declare class LeaveAdmin {
183
184
  auth: string;
@@ -693,6 +693,17 @@ var CreateSite = /** @class */ (function () {
693
693
  }, { toPlainOnly: true }),
694
694
  (0, class_transformer_1.Expose)()
695
695
  ], CreateSite.prototype, "blocked_instances", void 0);
696
+ __decorate([
697
+ (0, class_transformer_1.Transform)(function (_a) {
698
+ var value = _a.value;
699
+ return (0, utils_1.toOption)(value);
700
+ }, { toClassOnly: true }),
701
+ (0, class_transformer_1.Transform)(function (_a) {
702
+ var value = _a.value;
703
+ return (0, utils_1.toUndefined)(value);
704
+ }, { toPlainOnly: true }),
705
+ (0, class_transformer_1.Expose)()
706
+ ], CreateSite.prototype, "taglines", void 0);
696
707
  return CreateSite;
697
708
  }());
698
709
  exports.CreateSite = CreateSite;
@@ -1253,9 +1264,6 @@ var MyUserInfo = /** @class */ (function () {
1253
1264
  __decorate([
1254
1265
  (0, class_transformer_1.Type)(function () { return views_1.PersonBlockView; })
1255
1266
  ], MyUserInfo.prototype, "person_blocks", void 0);
1256
- __decorate([
1257
- (0, class_transformer_1.Type)(function () { return source_1.Language; })
1258
- ], MyUserInfo.prototype, "discussion_languages", void 0);
1259
1267
  return MyUserInfo;
1260
1268
  }());
1261
1269
  exports.MyUserInfo = MyUserInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.17.0-rc.56",
3
+ "version": "0.17.0-rc.57",
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",
@@ -13,7 +13,7 @@
13
13
  "scripts": {
14
14
  "build": "tsc",
15
15
  "docs": "typedoc src/index.ts --sourcefile-url-prefix 'https://github.com/LemmyNet/lemmy-js-client/tree/main/src/'",
16
- "lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src",
16
+ "lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check src",
17
17
  "prepare": "yarn run build && husky install"
18
18
  },
19
19
  "lint-staged": {