lemmy-js-client 0.17.0-rc.2 → 0.17.0-rc.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +156 -4
- package/dist/http.js +255 -80
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/interfaces/api/comment.d.ts +45 -38
- package/dist/interfaces/api/comment.js +313 -0
- package/dist/interfaces/api/community.d.ts +56 -52
- package/dist/interfaces/api/community.js +411 -0
- package/dist/interfaces/api/index.js +5 -1
- package/dist/interfaces/api/person.d.ts +120 -100
- package/dist/interfaces/api/person.js +854 -0
- package/dist/interfaces/api/post.d.ts +67 -51
- package/dist/interfaces/api/post.js +405 -0
- package/dist/interfaces/api/site.d.ts +99 -90
- package/dist/interfaces/api/site.js +824 -0
- package/dist/interfaces/index.js +5 -1
- package/dist/interfaces/others.d.ts +62 -92
- package/dist/interfaces/others.js +119 -55
- package/dist/interfaces/source.d.ts +79 -76
- package/dist/interfaces/source.js +747 -0
- package/dist/interfaces/views.d.ts +36 -37
- package/dist/interfaces/views.js +270 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +10 -0
- package/dist/websocket.d.ts +16 -2
- package/dist/websocket.js +35 -3
- package/package.json +13 -11
@@ -1,2 +1,826 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
|
+
exports.GetUnreadRegistrationApplicationCountResponse = exports.GetUnreadRegistrationApplicationCount = exports.RegistrationApplicationResponse = exports.ApproveRegistrationApplication = exports.ListRegistrationApplicationsResponse = exports.ListRegistrationApplications = exports.ResolveObjectResponse = exports.ResolveObject = exports.FederatedInstances = exports.SaveSiteConfig = exports.GetSiteConfigResponse = exports.GetSiteConfig = exports.LeaveAdmin = exports.MyUserInfo = exports.GetSiteResponse = exports.SiteResponse = exports.GetSite = exports.EditSite = exports.CreateSite = exports.GetModlogResponse = exports.GetModlog = exports.SearchResponse = exports.Search = void 0;
|
10
|
+
var monads_1 = require("@sniptt/monads");
|
11
|
+
var class_transformer_1 = require("class-transformer");
|
12
|
+
var utils_1 = require("../../utils");
|
13
|
+
var views_1 = require("../views");
|
14
|
+
/**
|
15
|
+
* Search lemmy for different types of data.
|
16
|
+
*/
|
17
|
+
var Search = /** @class */ (function () {
|
18
|
+
function Search(init) {
|
19
|
+
Object.assign(this, init);
|
20
|
+
}
|
21
|
+
__decorate([
|
22
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
23
|
+
var value = _a.value;
|
24
|
+
return (0, monads_1.Some)(value);
|
25
|
+
}, { toClassOnly: true }),
|
26
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
27
|
+
var value = _a.value;
|
28
|
+
return (0, utils_1.toUndefined)(value);
|
29
|
+
}, { toPlainOnly: true }),
|
30
|
+
(0, class_transformer_1.Expose)()
|
31
|
+
], Search.prototype, "type_", void 0);
|
32
|
+
__decorate([
|
33
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
34
|
+
var value = _a.value;
|
35
|
+
return (0, monads_1.Some)(value);
|
36
|
+
}, { toClassOnly: true }),
|
37
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
38
|
+
var value = _a.value;
|
39
|
+
return (0, utils_1.toUndefined)(value);
|
40
|
+
}, { toPlainOnly: true }),
|
41
|
+
(0, class_transformer_1.Expose)()
|
42
|
+
], Search.prototype, "community_id", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
45
|
+
var value = _a.value;
|
46
|
+
return (0, monads_1.Some)(value);
|
47
|
+
}, { toClassOnly: true }),
|
48
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
49
|
+
var value = _a.value;
|
50
|
+
return (0, utils_1.toUndefined)(value);
|
51
|
+
}, { toPlainOnly: true }),
|
52
|
+
(0, class_transformer_1.Expose)()
|
53
|
+
], Search.prototype, "community_name", void 0);
|
54
|
+
__decorate([
|
55
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
56
|
+
var value = _a.value;
|
57
|
+
return (0, monads_1.Some)(value);
|
58
|
+
}, { toClassOnly: true }),
|
59
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
60
|
+
var value = _a.value;
|
61
|
+
return (0, utils_1.toUndefined)(value);
|
62
|
+
}, { toPlainOnly: true }),
|
63
|
+
(0, class_transformer_1.Expose)()
|
64
|
+
], Search.prototype, "creator_id", void 0);
|
65
|
+
__decorate([
|
66
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
67
|
+
var value = _a.value;
|
68
|
+
return (0, monads_1.Some)(value);
|
69
|
+
}, { toClassOnly: true }),
|
70
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
71
|
+
var value = _a.value;
|
72
|
+
return (0, utils_1.toUndefined)(value);
|
73
|
+
}, { toPlainOnly: true }),
|
74
|
+
(0, class_transformer_1.Expose)()
|
75
|
+
], Search.prototype, "sort", void 0);
|
76
|
+
__decorate([
|
77
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
78
|
+
var value = _a.value;
|
79
|
+
return (0, monads_1.Some)(value);
|
80
|
+
}, { toClassOnly: true }),
|
81
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
82
|
+
var value = _a.value;
|
83
|
+
return (0, utils_1.toUndefined)(value);
|
84
|
+
}, { toPlainOnly: true }),
|
85
|
+
(0, class_transformer_1.Expose)()
|
86
|
+
], Search.prototype, "listing_type", void 0);
|
87
|
+
__decorate([
|
88
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
89
|
+
var value = _a.value;
|
90
|
+
return (0, monads_1.Some)(value);
|
91
|
+
}, { toClassOnly: true }),
|
92
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
93
|
+
var value = _a.value;
|
94
|
+
return (0, utils_1.toUndefined)(value);
|
95
|
+
}, { toPlainOnly: true }),
|
96
|
+
(0, class_transformer_1.Expose)()
|
97
|
+
], Search.prototype, "page", void 0);
|
98
|
+
__decorate([
|
99
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
100
|
+
var value = _a.value;
|
101
|
+
return (0, monads_1.Some)(value);
|
102
|
+
}, { toClassOnly: true }),
|
103
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
104
|
+
var value = _a.value;
|
105
|
+
return (0, utils_1.toUndefined)(value);
|
106
|
+
}, { toPlainOnly: true }),
|
107
|
+
(0, class_transformer_1.Expose)()
|
108
|
+
], Search.prototype, "limit", void 0);
|
109
|
+
__decorate([
|
110
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
111
|
+
var value = _a.value;
|
112
|
+
return (0, monads_1.Some)(value);
|
113
|
+
}, { toClassOnly: true }),
|
114
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
115
|
+
var value = _a.value;
|
116
|
+
return (0, utils_1.toUndefined)(value);
|
117
|
+
}, { toPlainOnly: true }),
|
118
|
+
(0, class_transformer_1.Expose)()
|
119
|
+
], Search.prototype, "auth", void 0);
|
120
|
+
return Search;
|
121
|
+
}());
|
122
|
+
exports.Search = Search;
|
123
|
+
var SearchResponse = /** @class */ (function () {
|
124
|
+
function SearchResponse() {
|
125
|
+
}
|
126
|
+
return SearchResponse;
|
127
|
+
}());
|
128
|
+
exports.SearchResponse = SearchResponse;
|
129
|
+
var GetModlog = /** @class */ (function () {
|
130
|
+
function GetModlog(init) {
|
131
|
+
Object.assign(this, init);
|
132
|
+
}
|
133
|
+
__decorate([
|
134
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
135
|
+
var value = _a.value;
|
136
|
+
return (0, monads_1.Some)(value);
|
137
|
+
}, { toClassOnly: true }),
|
138
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
139
|
+
var value = _a.value;
|
140
|
+
return (0, utils_1.toUndefined)(value);
|
141
|
+
}, { toPlainOnly: true }),
|
142
|
+
(0, class_transformer_1.Expose)()
|
143
|
+
], GetModlog.prototype, "mod_person_id", void 0);
|
144
|
+
__decorate([
|
145
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
146
|
+
var value = _a.value;
|
147
|
+
return (0, monads_1.Some)(value);
|
148
|
+
}, { toClassOnly: true }),
|
149
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
150
|
+
var value = _a.value;
|
151
|
+
return (0, utils_1.toUndefined)(value);
|
152
|
+
}, { toPlainOnly: true }),
|
153
|
+
(0, class_transformer_1.Expose)()
|
154
|
+
], GetModlog.prototype, "community_id", void 0);
|
155
|
+
__decorate([
|
156
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
157
|
+
var value = _a.value;
|
158
|
+
return (0, monads_1.Some)(value);
|
159
|
+
}, { toClassOnly: true }),
|
160
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
161
|
+
var value = _a.value;
|
162
|
+
return (0, utils_1.toUndefined)(value);
|
163
|
+
}, { toPlainOnly: true }),
|
164
|
+
(0, class_transformer_1.Expose)()
|
165
|
+
], GetModlog.prototype, "page", void 0);
|
166
|
+
__decorate([
|
167
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
168
|
+
var value = _a.value;
|
169
|
+
return (0, monads_1.Some)(value);
|
170
|
+
}, { toClassOnly: true }),
|
171
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
172
|
+
var value = _a.value;
|
173
|
+
return (0, utils_1.toUndefined)(value);
|
174
|
+
}, { toPlainOnly: true }),
|
175
|
+
(0, class_transformer_1.Expose)()
|
176
|
+
], GetModlog.prototype, "limit", void 0);
|
177
|
+
__decorate([
|
178
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
179
|
+
var value = _a.value;
|
180
|
+
return (0, monads_1.Some)(value);
|
181
|
+
}, { toClassOnly: true }),
|
182
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
183
|
+
var value = _a.value;
|
184
|
+
return (0, utils_1.toUndefined)(value);
|
185
|
+
}, { toPlainOnly: true }),
|
186
|
+
(0, class_transformer_1.Expose)()
|
187
|
+
], GetModlog.prototype, "auth", void 0);
|
188
|
+
return GetModlog;
|
189
|
+
}());
|
190
|
+
exports.GetModlog = GetModlog;
|
191
|
+
var GetModlogResponse = /** @class */ (function () {
|
192
|
+
function GetModlogResponse() {
|
193
|
+
}
|
194
|
+
return GetModlogResponse;
|
195
|
+
}());
|
196
|
+
exports.GetModlogResponse = GetModlogResponse;
|
197
|
+
var CreateSite = /** @class */ (function () {
|
198
|
+
function CreateSite(init) {
|
199
|
+
Object.assign(this, init);
|
200
|
+
}
|
201
|
+
__decorate([
|
202
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
203
|
+
var value = _a.value;
|
204
|
+
return (0, monads_1.Some)(value);
|
205
|
+
}, { toClassOnly: true }),
|
206
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
207
|
+
var value = _a.value;
|
208
|
+
return (0, utils_1.toUndefined)(value);
|
209
|
+
}, { toPlainOnly: true }),
|
210
|
+
(0, class_transformer_1.Expose)()
|
211
|
+
], CreateSite.prototype, "sidebar", void 0);
|
212
|
+
__decorate([
|
213
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
214
|
+
var value = _a.value;
|
215
|
+
return (0, monads_1.Some)(value);
|
216
|
+
}, { toClassOnly: true }),
|
217
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
218
|
+
var value = _a.value;
|
219
|
+
return (0, utils_1.toUndefined)(value);
|
220
|
+
}, { toPlainOnly: true }),
|
221
|
+
(0, class_transformer_1.Expose)()
|
222
|
+
], CreateSite.prototype, "description", void 0);
|
223
|
+
__decorate([
|
224
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
225
|
+
var value = _a.value;
|
226
|
+
return (0, monads_1.Some)(value);
|
227
|
+
}, { toClassOnly: true }),
|
228
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
229
|
+
var value = _a.value;
|
230
|
+
return (0, utils_1.toUndefined)(value);
|
231
|
+
}, { toPlainOnly: true }),
|
232
|
+
(0, class_transformer_1.Expose)()
|
233
|
+
], CreateSite.prototype, "icon", void 0);
|
234
|
+
__decorate([
|
235
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
236
|
+
var value = _a.value;
|
237
|
+
return (0, monads_1.Some)(value);
|
238
|
+
}, { toClassOnly: true }),
|
239
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
240
|
+
var value = _a.value;
|
241
|
+
return (0, utils_1.toUndefined)(value);
|
242
|
+
}, { toPlainOnly: true }),
|
243
|
+
(0, class_transformer_1.Expose)()
|
244
|
+
], CreateSite.prototype, "banner", void 0);
|
245
|
+
__decorate([
|
246
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
247
|
+
var value = _a.value;
|
248
|
+
return (0, monads_1.Some)(value);
|
249
|
+
}, { toClassOnly: true }),
|
250
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
251
|
+
var value = _a.value;
|
252
|
+
return (0, utils_1.toUndefined)(value);
|
253
|
+
}, { toPlainOnly: true }),
|
254
|
+
(0, class_transformer_1.Expose)()
|
255
|
+
], CreateSite.prototype, "enable_downvotes", void 0);
|
256
|
+
__decorate([
|
257
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
258
|
+
var value = _a.value;
|
259
|
+
return (0, monads_1.Some)(value);
|
260
|
+
}, { toClassOnly: true }),
|
261
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
262
|
+
var value = _a.value;
|
263
|
+
return (0, utils_1.toUndefined)(value);
|
264
|
+
}, { toPlainOnly: true }),
|
265
|
+
(0, class_transformer_1.Expose)()
|
266
|
+
], CreateSite.prototype, "open_registration", void 0);
|
267
|
+
__decorate([
|
268
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
269
|
+
var value = _a.value;
|
270
|
+
return (0, monads_1.Some)(value);
|
271
|
+
}, { toClassOnly: true }),
|
272
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
273
|
+
var value = _a.value;
|
274
|
+
return (0, utils_1.toUndefined)(value);
|
275
|
+
}, { toPlainOnly: true }),
|
276
|
+
(0, class_transformer_1.Expose)()
|
277
|
+
], CreateSite.prototype, "enable_nsfw", void 0);
|
278
|
+
__decorate([
|
279
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
280
|
+
var value = _a.value;
|
281
|
+
return (0, monads_1.Some)(value);
|
282
|
+
}, { toClassOnly: true }),
|
283
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
284
|
+
var value = _a.value;
|
285
|
+
return (0, utils_1.toUndefined)(value);
|
286
|
+
}, { toPlainOnly: true }),
|
287
|
+
(0, class_transformer_1.Expose)()
|
288
|
+
], CreateSite.prototype, "community_creation_admin_only", void 0);
|
289
|
+
__decorate([
|
290
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
291
|
+
var value = _a.value;
|
292
|
+
return (0, monads_1.Some)(value);
|
293
|
+
}, { toClassOnly: true }),
|
294
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
295
|
+
var value = _a.value;
|
296
|
+
return (0, utils_1.toUndefined)(value);
|
297
|
+
}, { toPlainOnly: true }),
|
298
|
+
(0, class_transformer_1.Expose)()
|
299
|
+
], CreateSite.prototype, "require_email_verification", void 0);
|
300
|
+
__decorate([
|
301
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
302
|
+
var value = _a.value;
|
303
|
+
return (0, monads_1.Some)(value);
|
304
|
+
}, { toClassOnly: true }),
|
305
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
306
|
+
var value = _a.value;
|
307
|
+
return (0, utils_1.toUndefined)(value);
|
308
|
+
}, { toPlainOnly: true }),
|
309
|
+
(0, class_transformer_1.Expose)()
|
310
|
+
], CreateSite.prototype, "require_application", void 0);
|
311
|
+
__decorate([
|
312
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
313
|
+
var value = _a.value;
|
314
|
+
return (0, monads_1.Some)(value);
|
315
|
+
}, { toClassOnly: true }),
|
316
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
317
|
+
var value = _a.value;
|
318
|
+
return (0, utils_1.toUndefined)(value);
|
319
|
+
}, { toPlainOnly: true }),
|
320
|
+
(0, class_transformer_1.Expose)()
|
321
|
+
], CreateSite.prototype, "application_question", void 0);
|
322
|
+
__decorate([
|
323
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
324
|
+
var value = _a.value;
|
325
|
+
return (0, monads_1.Some)(value);
|
326
|
+
}, { toClassOnly: true }),
|
327
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
328
|
+
var value = _a.value;
|
329
|
+
return (0, utils_1.toUndefined)(value);
|
330
|
+
}, { toPlainOnly: true }),
|
331
|
+
(0, class_transformer_1.Expose)()
|
332
|
+
], CreateSite.prototype, "private_instance", void 0);
|
333
|
+
__decorate([
|
334
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
335
|
+
var value = _a.value;
|
336
|
+
return (0, monads_1.Some)(value);
|
337
|
+
}, { toClassOnly: true }),
|
338
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
339
|
+
var value = _a.value;
|
340
|
+
return (0, utils_1.toUndefined)(value);
|
341
|
+
}, { toPlainOnly: true }),
|
342
|
+
(0, class_transformer_1.Expose)()
|
343
|
+
], CreateSite.prototype, "default_theme", void 0);
|
344
|
+
__decorate([
|
345
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
346
|
+
var value = _a.value;
|
347
|
+
return (0, monads_1.Some)(value);
|
348
|
+
}, { toClassOnly: true }),
|
349
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
350
|
+
var value = _a.value;
|
351
|
+
return (0, utils_1.toUndefined)(value);
|
352
|
+
}, { toPlainOnly: true }),
|
353
|
+
(0, class_transformer_1.Expose)()
|
354
|
+
], CreateSite.prototype, "default_post_listing_type", void 0);
|
355
|
+
return CreateSite;
|
356
|
+
}());
|
357
|
+
exports.CreateSite = CreateSite;
|
358
|
+
var EditSite = /** @class */ (function () {
|
359
|
+
function EditSite(init) {
|
360
|
+
Object.assign(this, init);
|
361
|
+
}
|
362
|
+
__decorate([
|
363
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
364
|
+
var value = _a.value;
|
365
|
+
return (0, monads_1.Some)(value);
|
366
|
+
}, { toClassOnly: true }),
|
367
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
368
|
+
var value = _a.value;
|
369
|
+
return (0, utils_1.toUndefined)(value);
|
370
|
+
}, { toPlainOnly: true }),
|
371
|
+
(0, class_transformer_1.Expose)()
|
372
|
+
], EditSite.prototype, "name", void 0);
|
373
|
+
__decorate([
|
374
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
375
|
+
var value = _a.value;
|
376
|
+
return (0, monads_1.Some)(value);
|
377
|
+
}, { toClassOnly: true }),
|
378
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
379
|
+
var value = _a.value;
|
380
|
+
return (0, utils_1.toUndefined)(value);
|
381
|
+
}, { toPlainOnly: true }),
|
382
|
+
(0, class_transformer_1.Expose)()
|
383
|
+
], EditSite.prototype, "sidebar", void 0);
|
384
|
+
__decorate([
|
385
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
386
|
+
var value = _a.value;
|
387
|
+
return (0, monads_1.Some)(value);
|
388
|
+
}, { toClassOnly: true }),
|
389
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
390
|
+
var value = _a.value;
|
391
|
+
return (0, utils_1.toUndefined)(value);
|
392
|
+
}, { toPlainOnly: true }),
|
393
|
+
(0, class_transformer_1.Expose)()
|
394
|
+
], EditSite.prototype, "description", void 0);
|
395
|
+
__decorate([
|
396
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
397
|
+
var value = _a.value;
|
398
|
+
return (0, monads_1.Some)(value);
|
399
|
+
}, { toClassOnly: true }),
|
400
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
401
|
+
var value = _a.value;
|
402
|
+
return (0, utils_1.toUndefined)(value);
|
403
|
+
}, { toPlainOnly: true }),
|
404
|
+
(0, class_transformer_1.Expose)()
|
405
|
+
], EditSite.prototype, "icon", void 0);
|
406
|
+
__decorate([
|
407
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
408
|
+
var value = _a.value;
|
409
|
+
return (0, monads_1.Some)(value);
|
410
|
+
}, { toClassOnly: true }),
|
411
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
412
|
+
var value = _a.value;
|
413
|
+
return (0, utils_1.toUndefined)(value);
|
414
|
+
}, { toPlainOnly: true }),
|
415
|
+
(0, class_transformer_1.Expose)()
|
416
|
+
], EditSite.prototype, "banner", void 0);
|
417
|
+
__decorate([
|
418
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
419
|
+
var value = _a.value;
|
420
|
+
return (0, monads_1.Some)(value);
|
421
|
+
}, { toClassOnly: true }),
|
422
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
423
|
+
var value = _a.value;
|
424
|
+
return (0, utils_1.toUndefined)(value);
|
425
|
+
}, { toPlainOnly: true }),
|
426
|
+
(0, class_transformer_1.Expose)()
|
427
|
+
], EditSite.prototype, "enable_downvotes", void 0);
|
428
|
+
__decorate([
|
429
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
430
|
+
var value = _a.value;
|
431
|
+
return (0, monads_1.Some)(value);
|
432
|
+
}, { toClassOnly: true }),
|
433
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
434
|
+
var value = _a.value;
|
435
|
+
return (0, utils_1.toUndefined)(value);
|
436
|
+
}, { toPlainOnly: true }),
|
437
|
+
(0, class_transformer_1.Expose)()
|
438
|
+
], EditSite.prototype, "open_registration", void 0);
|
439
|
+
__decorate([
|
440
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
441
|
+
var value = _a.value;
|
442
|
+
return (0, monads_1.Some)(value);
|
443
|
+
}, { toClassOnly: true }),
|
444
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
445
|
+
var value = _a.value;
|
446
|
+
return (0, utils_1.toUndefined)(value);
|
447
|
+
}, { toPlainOnly: true }),
|
448
|
+
(0, class_transformer_1.Expose)()
|
449
|
+
], EditSite.prototype, "enable_nsfw", void 0);
|
450
|
+
__decorate([
|
451
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
452
|
+
var value = _a.value;
|
453
|
+
return (0, monads_1.Some)(value);
|
454
|
+
}, { toClassOnly: true }),
|
455
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
456
|
+
var value = _a.value;
|
457
|
+
return (0, utils_1.toUndefined)(value);
|
458
|
+
}, { toPlainOnly: true }),
|
459
|
+
(0, class_transformer_1.Expose)()
|
460
|
+
], EditSite.prototype, "community_creation_admin_only", void 0);
|
461
|
+
__decorate([
|
462
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
463
|
+
var value = _a.value;
|
464
|
+
return (0, monads_1.Some)(value);
|
465
|
+
}, { toClassOnly: true }),
|
466
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
467
|
+
var value = _a.value;
|
468
|
+
return (0, utils_1.toUndefined)(value);
|
469
|
+
}, { toPlainOnly: true }),
|
470
|
+
(0, class_transformer_1.Expose)()
|
471
|
+
], EditSite.prototype, "require_email_verification", void 0);
|
472
|
+
__decorate([
|
473
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
474
|
+
var value = _a.value;
|
475
|
+
return (0, monads_1.Some)(value);
|
476
|
+
}, { toClassOnly: true }),
|
477
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
478
|
+
var value = _a.value;
|
479
|
+
return (0, utils_1.toUndefined)(value);
|
480
|
+
}, { toPlainOnly: true }),
|
481
|
+
(0, class_transformer_1.Expose)()
|
482
|
+
], EditSite.prototype, "require_application", void 0);
|
483
|
+
__decorate([
|
484
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
485
|
+
var value = _a.value;
|
486
|
+
return (0, monads_1.Some)(value);
|
487
|
+
}, { toClassOnly: true }),
|
488
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
489
|
+
var value = _a.value;
|
490
|
+
return (0, utils_1.toUndefined)(value);
|
491
|
+
}, { toPlainOnly: true }),
|
492
|
+
(0, class_transformer_1.Expose)()
|
493
|
+
], EditSite.prototype, "application_question", void 0);
|
494
|
+
__decorate([
|
495
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
496
|
+
var value = _a.value;
|
497
|
+
return (0, monads_1.Some)(value);
|
498
|
+
}, { toClassOnly: true }),
|
499
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
500
|
+
var value = _a.value;
|
501
|
+
return (0, utils_1.toUndefined)(value);
|
502
|
+
}, { toPlainOnly: true }),
|
503
|
+
(0, class_transformer_1.Expose)()
|
504
|
+
], EditSite.prototype, "private_instance", void 0);
|
505
|
+
__decorate([
|
506
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
507
|
+
var value = _a.value;
|
508
|
+
return (0, monads_1.Some)(value);
|
509
|
+
}, { toClassOnly: true }),
|
510
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
511
|
+
var value = _a.value;
|
512
|
+
return (0, utils_1.toUndefined)(value);
|
513
|
+
}, { toPlainOnly: true }),
|
514
|
+
(0, class_transformer_1.Expose)()
|
515
|
+
], EditSite.prototype, "default_theme", void 0);
|
516
|
+
__decorate([
|
517
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
518
|
+
var value = _a.value;
|
519
|
+
return (0, monads_1.Some)(value);
|
520
|
+
}, { toClassOnly: true }),
|
521
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
522
|
+
var value = _a.value;
|
523
|
+
return (0, utils_1.toUndefined)(value);
|
524
|
+
}, { toPlainOnly: true }),
|
525
|
+
(0, class_transformer_1.Expose)()
|
526
|
+
], EditSite.prototype, "legal_information", void 0);
|
527
|
+
__decorate([
|
528
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
529
|
+
var value = _a.value;
|
530
|
+
return (0, monads_1.Some)(value);
|
531
|
+
}, { toClassOnly: true }),
|
532
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
533
|
+
var value = _a.value;
|
534
|
+
return (0, utils_1.toUndefined)(value);
|
535
|
+
}, { toPlainOnly: true }),
|
536
|
+
(0, class_transformer_1.Expose)()
|
537
|
+
], EditSite.prototype, "default_post_listing_type", void 0);
|
538
|
+
return EditSite;
|
539
|
+
}());
|
540
|
+
exports.EditSite = EditSite;
|
541
|
+
var GetSite = /** @class */ (function () {
|
542
|
+
function GetSite(init) {
|
543
|
+
Object.assign(this, init);
|
544
|
+
}
|
545
|
+
__decorate([
|
546
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
547
|
+
var value = _a.value;
|
548
|
+
return (0, monads_1.Some)(value);
|
549
|
+
}, { toClassOnly: true }),
|
550
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
551
|
+
var value = _a.value;
|
552
|
+
return (0, utils_1.toUndefined)(value);
|
553
|
+
}, { toPlainOnly: true }),
|
554
|
+
(0, class_transformer_1.Expose)()
|
555
|
+
], GetSite.prototype, "auth", void 0);
|
556
|
+
return GetSite;
|
557
|
+
}());
|
558
|
+
exports.GetSite = GetSite;
|
559
|
+
var SiteResponse = /** @class */ (function () {
|
560
|
+
function SiteResponse() {
|
561
|
+
}
|
562
|
+
return SiteResponse;
|
563
|
+
}());
|
564
|
+
exports.SiteResponse = SiteResponse;
|
565
|
+
var GetSiteResponse = /** @class */ (function () {
|
566
|
+
function GetSiteResponse() {
|
567
|
+
}
|
568
|
+
__decorate([
|
569
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
570
|
+
var value = _a.value;
|
571
|
+
return (0, monads_1.Some)(value);
|
572
|
+
}, { toClassOnly: true }),
|
573
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
574
|
+
var value = _a.value;
|
575
|
+
return (0, utils_1.toUndefined)(value);
|
576
|
+
}, { toPlainOnly: true }),
|
577
|
+
(0, class_transformer_1.Expose)(),
|
578
|
+
(0, class_transformer_1.Type)(function () { return views_1.SiteView; })
|
579
|
+
], GetSiteResponse.prototype, "site_view", void 0);
|
580
|
+
__decorate([
|
581
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
582
|
+
var value = _a.value;
|
583
|
+
return (0, monads_1.Some)(value);
|
584
|
+
}, { toClassOnly: true }),
|
585
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
586
|
+
var value = _a.value;
|
587
|
+
return (0, utils_1.toUndefined)(value);
|
588
|
+
}, { toPlainOnly: true }),
|
589
|
+
(0, class_transformer_1.Expose)(),
|
590
|
+
(0, class_transformer_1.Type)(function () { return MyUserInfo; })
|
591
|
+
], GetSiteResponse.prototype, "my_user", void 0);
|
592
|
+
__decorate([
|
593
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
594
|
+
var value = _a.value;
|
595
|
+
return (0, monads_1.Some)(value);
|
596
|
+
}, { toClassOnly: true }),
|
597
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
598
|
+
var value = _a.value;
|
599
|
+
return (0, utils_1.toUndefined)(value);
|
600
|
+
}, { toPlainOnly: true }),
|
601
|
+
(0, class_transformer_1.Expose)(),
|
602
|
+
(0, class_transformer_1.Type)(function () { return FederatedInstances; })
|
603
|
+
], GetSiteResponse.prototype, "federated_instances", void 0);
|
604
|
+
return GetSiteResponse;
|
605
|
+
}());
|
606
|
+
exports.GetSiteResponse = GetSiteResponse;
|
607
|
+
/**
|
608
|
+
* Your user info, such as blocks, follows, etc.
|
609
|
+
*/
|
610
|
+
var MyUserInfo = /** @class */ (function () {
|
611
|
+
function MyUserInfo() {
|
612
|
+
}
|
613
|
+
return MyUserInfo;
|
614
|
+
}());
|
615
|
+
exports.MyUserInfo = MyUserInfo;
|
616
|
+
var LeaveAdmin = /** @class */ (function () {
|
617
|
+
function LeaveAdmin(init) {
|
618
|
+
Object.assign(this, init);
|
619
|
+
}
|
620
|
+
return LeaveAdmin;
|
621
|
+
}());
|
622
|
+
exports.LeaveAdmin = LeaveAdmin;
|
623
|
+
var GetSiteConfig = /** @class */ (function () {
|
624
|
+
function GetSiteConfig(init) {
|
625
|
+
Object.assign(this, init);
|
626
|
+
}
|
627
|
+
return GetSiteConfig;
|
628
|
+
}());
|
629
|
+
exports.GetSiteConfig = GetSiteConfig;
|
630
|
+
var GetSiteConfigResponse = /** @class */ (function () {
|
631
|
+
function GetSiteConfigResponse() {
|
632
|
+
}
|
633
|
+
return GetSiteConfigResponse;
|
634
|
+
}());
|
635
|
+
exports.GetSiteConfigResponse = GetSiteConfigResponse;
|
636
|
+
var SaveSiteConfig = /** @class */ (function () {
|
637
|
+
function SaveSiteConfig(init) {
|
638
|
+
Object.assign(this, init);
|
639
|
+
}
|
640
|
+
return SaveSiteConfig;
|
641
|
+
}());
|
642
|
+
exports.SaveSiteConfig = SaveSiteConfig;
|
643
|
+
var FederatedInstances = /** @class */ (function () {
|
644
|
+
function FederatedInstances(init) {
|
645
|
+
Object.assign(this, init);
|
646
|
+
}
|
647
|
+
__decorate([
|
648
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
649
|
+
var value = _a.value;
|
650
|
+
return (0, monads_1.Some)(value);
|
651
|
+
}, { toClassOnly: true }),
|
652
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
653
|
+
var value = _a.value;
|
654
|
+
return (0, utils_1.toUndefined)(value);
|
655
|
+
}, { toPlainOnly: true }),
|
656
|
+
(0, class_transformer_1.Expose)()
|
657
|
+
], FederatedInstances.prototype, "allowed", void 0);
|
658
|
+
__decorate([
|
659
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
660
|
+
var value = _a.value;
|
661
|
+
return (0, monads_1.Some)(value);
|
662
|
+
}, { toClassOnly: true }),
|
663
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
664
|
+
var value = _a.value;
|
665
|
+
return (0, utils_1.toUndefined)(value);
|
666
|
+
}, { toPlainOnly: true }),
|
667
|
+
(0, class_transformer_1.Expose)()
|
668
|
+
], FederatedInstances.prototype, "blocked", void 0);
|
669
|
+
return FederatedInstances;
|
670
|
+
}());
|
671
|
+
exports.FederatedInstances = FederatedInstances;
|
672
|
+
var ResolveObject = /** @class */ (function () {
|
673
|
+
function ResolveObject(init) {
|
674
|
+
Object.assign(this, init);
|
675
|
+
}
|
676
|
+
__decorate([
|
677
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
678
|
+
var value = _a.value;
|
679
|
+
return (0, monads_1.Some)(value);
|
680
|
+
}, { toClassOnly: true }),
|
681
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
682
|
+
var value = _a.value;
|
683
|
+
return (0, utils_1.toUndefined)(value);
|
684
|
+
}, { toPlainOnly: true }),
|
685
|
+
(0, class_transformer_1.Expose)()
|
686
|
+
], ResolveObject.prototype, "auth", void 0);
|
687
|
+
return ResolveObject;
|
688
|
+
}());
|
689
|
+
exports.ResolveObject = ResolveObject;
|
690
|
+
var ResolveObjectResponse = /** @class */ (function () {
|
691
|
+
function ResolveObjectResponse() {
|
692
|
+
}
|
693
|
+
__decorate([
|
694
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
695
|
+
var value = _a.value;
|
696
|
+
return (0, monads_1.Some)(value);
|
697
|
+
}, { toClassOnly: true }),
|
698
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
699
|
+
var value = _a.value;
|
700
|
+
return (0, utils_1.toUndefined)(value);
|
701
|
+
}, { toPlainOnly: true }),
|
702
|
+
(0, class_transformer_1.Expose)(),
|
703
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommentView; })
|
704
|
+
], ResolveObjectResponse.prototype, "comment", void 0);
|
705
|
+
__decorate([
|
706
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
707
|
+
var value = _a.value;
|
708
|
+
return (0, monads_1.Some)(value);
|
709
|
+
}, { toClassOnly: true }),
|
710
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
711
|
+
var value = _a.value;
|
712
|
+
return (0, utils_1.toUndefined)(value);
|
713
|
+
}, { toPlainOnly: true }),
|
714
|
+
(0, class_transformer_1.Expose)(),
|
715
|
+
(0, class_transformer_1.Type)(function () { return views_1.PostView; })
|
716
|
+
], ResolveObjectResponse.prototype, "post", void 0);
|
717
|
+
__decorate([
|
718
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
719
|
+
var value = _a.value;
|
720
|
+
return (0, monads_1.Some)(value);
|
721
|
+
}, { toClassOnly: true }),
|
722
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
723
|
+
var value = _a.value;
|
724
|
+
return (0, utils_1.toUndefined)(value);
|
725
|
+
}, { toPlainOnly: true }),
|
726
|
+
(0, class_transformer_1.Expose)(),
|
727
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommunityView; })
|
728
|
+
], ResolveObjectResponse.prototype, "community", void 0);
|
729
|
+
__decorate([
|
730
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
731
|
+
var value = _a.value;
|
732
|
+
return (0, monads_1.Some)(value);
|
733
|
+
}, { toClassOnly: true }),
|
734
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
735
|
+
var value = _a.value;
|
736
|
+
return (0, utils_1.toUndefined)(value);
|
737
|
+
}, { toPlainOnly: true }),
|
738
|
+
(0, class_transformer_1.Expose)(),
|
739
|
+
(0, class_transformer_1.Type)(function () { return views_1.PersonViewSafe; })
|
740
|
+
], ResolveObjectResponse.prototype, "person", void 0);
|
741
|
+
return ResolveObjectResponse;
|
742
|
+
}());
|
743
|
+
exports.ResolveObjectResponse = ResolveObjectResponse;
|
744
|
+
var ListRegistrationApplications = /** @class */ (function () {
|
745
|
+
function ListRegistrationApplications(init) {
|
746
|
+
Object.assign(this, init);
|
747
|
+
}
|
748
|
+
__decorate([
|
749
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
750
|
+
var value = _a.value;
|
751
|
+
return (0, monads_1.Some)(value);
|
752
|
+
}, { toClassOnly: true }),
|
753
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
754
|
+
var value = _a.value;
|
755
|
+
return (0, utils_1.toUndefined)(value);
|
756
|
+
}, { toPlainOnly: true }),
|
757
|
+
(0, class_transformer_1.Expose)()
|
758
|
+
], ListRegistrationApplications.prototype, "unread_only", void 0);
|
759
|
+
__decorate([
|
760
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
761
|
+
var value = _a.value;
|
762
|
+
return (0, monads_1.Some)(value);
|
763
|
+
}, { toClassOnly: true }),
|
764
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
765
|
+
var value = _a.value;
|
766
|
+
return (0, utils_1.toUndefined)(value);
|
767
|
+
}, { toPlainOnly: true }),
|
768
|
+
(0, class_transformer_1.Expose)()
|
769
|
+
], ListRegistrationApplications.prototype, "page", void 0);
|
770
|
+
__decorate([
|
771
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
772
|
+
var value = _a.value;
|
773
|
+
return (0, monads_1.Some)(value);
|
774
|
+
}, { toClassOnly: true }),
|
775
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
776
|
+
var value = _a.value;
|
777
|
+
return (0, utils_1.toUndefined)(value);
|
778
|
+
}, { toPlainOnly: true }),
|
779
|
+
(0, class_transformer_1.Expose)()
|
780
|
+
], ListRegistrationApplications.prototype, "limit", void 0);
|
781
|
+
return ListRegistrationApplications;
|
782
|
+
}());
|
783
|
+
exports.ListRegistrationApplications = ListRegistrationApplications;
|
784
|
+
var ListRegistrationApplicationsResponse = /** @class */ (function () {
|
785
|
+
function ListRegistrationApplicationsResponse() {
|
786
|
+
}
|
787
|
+
return ListRegistrationApplicationsResponse;
|
788
|
+
}());
|
789
|
+
exports.ListRegistrationApplicationsResponse = ListRegistrationApplicationsResponse;
|
790
|
+
var ApproveRegistrationApplication = /** @class */ (function () {
|
791
|
+
function ApproveRegistrationApplication(init) {
|
792
|
+
Object.assign(this, init);
|
793
|
+
}
|
794
|
+
__decorate([
|
795
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
796
|
+
var value = _a.value;
|
797
|
+
return (0, monads_1.Some)(value);
|
798
|
+
}, { toClassOnly: true }),
|
799
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
800
|
+
var value = _a.value;
|
801
|
+
return (0, utils_1.toUndefined)(value);
|
802
|
+
}, { toPlainOnly: true }),
|
803
|
+
(0, class_transformer_1.Expose)()
|
804
|
+
], ApproveRegistrationApplication.prototype, "deny_reason", void 0);
|
805
|
+
return ApproveRegistrationApplication;
|
806
|
+
}());
|
807
|
+
exports.ApproveRegistrationApplication = ApproveRegistrationApplication;
|
808
|
+
var RegistrationApplicationResponse = /** @class */ (function () {
|
809
|
+
function RegistrationApplicationResponse() {
|
810
|
+
}
|
811
|
+
return RegistrationApplicationResponse;
|
812
|
+
}());
|
813
|
+
exports.RegistrationApplicationResponse = RegistrationApplicationResponse;
|
814
|
+
var GetUnreadRegistrationApplicationCount = /** @class */ (function () {
|
815
|
+
function GetUnreadRegistrationApplicationCount(init) {
|
816
|
+
Object.assign(this, init);
|
817
|
+
}
|
818
|
+
return GetUnreadRegistrationApplicationCount;
|
819
|
+
}());
|
820
|
+
exports.GetUnreadRegistrationApplicationCount = GetUnreadRegistrationApplicationCount;
|
821
|
+
var GetUnreadRegistrationApplicationCountResponse = /** @class */ (function () {
|
822
|
+
function GetUnreadRegistrationApplicationCountResponse() {
|
823
|
+
}
|
824
|
+
return GetUnreadRegistrationApplicationCountResponse;
|
825
|
+
}());
|
826
|
+
exports.GetUnreadRegistrationApplicationCountResponse = GetUnreadRegistrationApplicationCountResponse;
|