lemmy-js-client 0.17.0-rc.13 → 0.17.0-rc.16

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