lemmy-js-client 0.17.0-rc.53 → 0.17.0-rc.55
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,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>;
|
@@ -95,13 +94,13 @@ export declare class CreateSite {
|
|
95
94
|
rate_limit_search_per_second: Option<number>;
|
96
95
|
federation_enabled: Option<boolean>;
|
97
96
|
federation_debug: Option<boolean>;
|
98
|
-
federation_strict_allowlist: Option<boolean>;
|
99
|
-
federation_http_fetch_retry_limit: Option<number>;
|
100
97
|
federation_worker_count: Option<number>;
|
101
98
|
captcha_enabled: Option<boolean>;
|
102
99
|
captcha_difficulty: Option<string>;
|
103
100
|
allowed_instances: Option<string[]>;
|
104
101
|
blocked_instances: Option<string[]>;
|
102
|
+
taglines: Option<string[]>;
|
103
|
+
auth: string;
|
105
104
|
constructor(init: CreateSite);
|
106
105
|
}
|
107
106
|
export declare class EditSite {
|
@@ -140,8 +139,6 @@ export declare class EditSite {
|
|
140
139
|
rate_limit_search_per_second: Option<number>;
|
141
140
|
federation_enabled: Option<boolean>;
|
142
141
|
federation_debug: Option<boolean>;
|
143
|
-
federation_strict_allowlist: Option<boolean>;
|
144
|
-
federation_http_fetch_retry_limit: Option<number>;
|
145
142
|
federation_worker_count: Option<number>;
|
146
143
|
captcha_enabled: Option<boolean>;
|
147
144
|
captcha_difficulty: Option<string>;
|
@@ -181,7 +178,7 @@ export declare class MyUserInfo {
|
|
181
178
|
moderates: CommunityModeratorView[];
|
182
179
|
community_blocks: CommunityBlockView[];
|
183
180
|
person_blocks: PersonBlockView[];
|
184
|
-
discussion_languages:
|
181
|
+
discussion_languages: number[];
|
185
182
|
}
|
186
183
|
export declare class LeaveAdmin {
|
187
184
|
auth: string;
|
@@ -648,18 +648,7 @@ var CreateSite = /** @class */ (function () {
|
|
648
648
|
return (0, utils_1.toUndefined)(value);
|
649
649
|
}, { toPlainOnly: true }),
|
650
650
|
(0, class_transformer_1.Expose)()
|
651
|
-
], CreateSite.prototype, "
|
652
|
-
__decorate([
|
653
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
654
|
-
var value = _a.value;
|
655
|
-
return (0, utils_1.toOption)(value);
|
656
|
-
}, { toClassOnly: true }),
|
657
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
658
|
-
var value = _a.value;
|
659
|
-
return (0, utils_1.toUndefined)(value);
|
660
|
-
}, { toPlainOnly: true }),
|
661
|
-
(0, class_transformer_1.Expose)()
|
662
|
-
], CreateSite.prototype, "federation_http_fetch_retry_limit", void 0);
|
651
|
+
], CreateSite.prototype, "federation_worker_count", void 0);
|
663
652
|
__decorate([
|
664
653
|
(0, class_transformer_1.Transform)(function (_a) {
|
665
654
|
var value = _a.value;
|
@@ -670,7 +659,7 @@ var CreateSite = /** @class */ (function () {
|
|
670
659
|
return (0, utils_1.toUndefined)(value);
|
671
660
|
}, { toPlainOnly: true }),
|
672
661
|
(0, class_transformer_1.Expose)()
|
673
|
-
], CreateSite.prototype, "
|
662
|
+
], CreateSite.prototype, "captcha_enabled", void 0);
|
674
663
|
__decorate([
|
675
664
|
(0, class_transformer_1.Transform)(function (_a) {
|
676
665
|
var value = _a.value;
|
@@ -681,7 +670,7 @@ var CreateSite = /** @class */ (function () {
|
|
681
670
|
return (0, utils_1.toUndefined)(value);
|
682
671
|
}, { toPlainOnly: true }),
|
683
672
|
(0, class_transformer_1.Expose)()
|
684
|
-
], CreateSite.prototype, "
|
673
|
+
], CreateSite.prototype, "captcha_difficulty", void 0);
|
685
674
|
__decorate([
|
686
675
|
(0, class_transformer_1.Transform)(function (_a) {
|
687
676
|
var value = _a.value;
|
@@ -692,7 +681,7 @@ var CreateSite = /** @class */ (function () {
|
|
692
681
|
return (0, utils_1.toUndefined)(value);
|
693
682
|
}, { toPlainOnly: true }),
|
694
683
|
(0, class_transformer_1.Expose)()
|
695
|
-
], CreateSite.prototype, "
|
684
|
+
], CreateSite.prototype, "allowed_instances", void 0);
|
696
685
|
__decorate([
|
697
686
|
(0, class_transformer_1.Transform)(function (_a) {
|
698
687
|
var value = _a.value;
|
@@ -703,7 +692,7 @@ var CreateSite = /** @class */ (function () {
|
|
703
692
|
return (0, utils_1.toUndefined)(value);
|
704
693
|
}, { toPlainOnly: true }),
|
705
694
|
(0, class_transformer_1.Expose)()
|
706
|
-
], CreateSite.prototype, "
|
695
|
+
], CreateSite.prototype, "blocked_instances", void 0);
|
707
696
|
__decorate([
|
708
697
|
(0, class_transformer_1.Transform)(function (_a) {
|
709
698
|
var value = _a.value;
|
@@ -714,7 +703,7 @@ var CreateSite = /** @class */ (function () {
|
|
714
703
|
return (0, utils_1.toUndefined)(value);
|
715
704
|
}, { toPlainOnly: true }),
|
716
705
|
(0, class_transformer_1.Expose)()
|
717
|
-
], CreateSite.prototype, "
|
706
|
+
], CreateSite.prototype, "taglines", void 0);
|
718
707
|
return CreateSite;
|
719
708
|
}());
|
720
709
|
exports.CreateSite = CreateSite;
|
@@ -1107,28 +1096,6 @@ var EditSite = /** @class */ (function () {
|
|
1107
1096
|
}, { toPlainOnly: true }),
|
1108
1097
|
(0, class_transformer_1.Expose)()
|
1109
1098
|
], EditSite.prototype, "federation_debug", void 0);
|
1110
|
-
__decorate([
|
1111
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
1112
|
-
var value = _a.value;
|
1113
|
-
return (0, utils_1.toOption)(value);
|
1114
|
-
}, { toClassOnly: true }),
|
1115
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
1116
|
-
var value = _a.value;
|
1117
|
-
return (0, utils_1.toUndefined)(value);
|
1118
|
-
}, { toPlainOnly: true }),
|
1119
|
-
(0, class_transformer_1.Expose)()
|
1120
|
-
], EditSite.prototype, "federation_strict_allowlist", void 0);
|
1121
|
-
__decorate([
|
1122
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
1123
|
-
var value = _a.value;
|
1124
|
-
return (0, utils_1.toOption)(value);
|
1125
|
-
}, { toClassOnly: true }),
|
1126
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
1127
|
-
var value = _a.value;
|
1128
|
-
return (0, utils_1.toUndefined)(value);
|
1129
|
-
}, { toPlainOnly: true }),
|
1130
|
-
(0, class_transformer_1.Expose)()
|
1131
|
-
], EditSite.prototype, "federation_http_fetch_retry_limit", void 0);
|
1132
1099
|
__decorate([
|
1133
1100
|
(0, class_transformer_1.Transform)(function (_a) {
|
1134
1101
|
var value = _a.value;
|
@@ -1297,9 +1264,6 @@ var MyUserInfo = /** @class */ (function () {
|
|
1297
1264
|
__decorate([
|
1298
1265
|
(0, class_transformer_1.Type)(function () { return views_1.PersonBlockView; })
|
1299
1266
|
], MyUserInfo.prototype, "person_blocks", void 0);
|
1300
|
-
__decorate([
|
1301
|
-
(0, class_transformer_1.Type)(function () { return source_1.Language; })
|
1302
|
-
], MyUserInfo.prototype, "discussion_languages", void 0);
|
1303
1267
|
return MyUserInfo;
|
1304
1268
|
}());
|
1305
1269
|
exports.MyUserInfo = MyUserInfo;
|
@@ -76,8 +76,6 @@ export declare class LocalSite {
|
|
76
76
|
actor_name_max_length: number;
|
77
77
|
federation_enabled: boolean;
|
78
78
|
federation_debug: boolean;
|
79
|
-
federation_strict_allowlist: boolean;
|
80
|
-
federation_http_fetch_retry_limit: number;
|
81
79
|
federation_worker_count: number;
|
82
80
|
captcha_enabled: boolean;
|
83
81
|
captcha_difficulty: string;
|
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",
|