lemmy-js-client 0.17.0-rc.54 → 0.17.0-rc.55
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.
@@ -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,6 +30,7 @@ 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
|
}
|
@@ -86,6 +89,7 @@ export declare class EditCommunity {
|
|
86
89
|
banner: Option<string>;
|
87
90
|
nsfw: Option<boolean>;
|
88
91
|
posting_restricted_to_mods: Option<boolean>;
|
92
|
+
discussion_languages: Option<number[]>;
|
89
93
|
auth: string;
|
90
94
|
constructor(init: EditCommunity);
|
91
95
|
}
|
@@ -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:
|
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,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.
|
4
|
+
"version": "0.17.0-rc.55",
|
5
5
|
"author": "Dessalines <tyhou13@gmx.com>",
|
6
6
|
"license": "AGPL-3.0",
|
7
7
|
"main": "./dist/index.js",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"scripts": {
|
12
12
|
"build": "tsc",
|
13
13
|
"docs": "typedoc src/index.ts --sourcefile-url-prefix 'https://github.com/LemmyNet/lemmy-js-client/tree/main/src/'",
|
14
|
-
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src",
|
14
|
+
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check src",
|
15
15
|
"prepare": "yarn run build && husky install"
|
16
16
|
},
|
17
17
|
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|