lemmy-js-client 0.17.0-rc.59 → 0.17.0-rc.60

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,774 +1,2 @@
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
- };
8
2
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.PrivateMessageReportView = exports.RegistrationApplicationView = exports.CommunityView = exports.PersonBlockView = exports.CommunityPersonBanView = exports.CommunityModeratorView = exports.CommunityBlockView = exports.CommunityFollowerView = exports.AdminPurgeCommentView = exports.AdminPurgePostView = exports.AdminPurgePersonView = exports.AdminPurgeCommunityView = exports.ModFeaturePostView = exports.ModRemovePostView = exports.ModRemoveCommunityView = exports.ModRemoveCommentView = exports.ModLockPostView = exports.ModBanView = exports.ModBanFromCommunityView = exports.ModAddView = exports.ModTransferCommunityView = exports.ModAddCommunityView = exports.CommentReportView = exports.CommentReplyView = exports.CommentView = exports.PostReportView = exports.PostView = exports.PrivateMessageView = exports.SiteView = exports.LocalUserSettingsView = exports.PersonMentionView = exports.PersonViewSafe = void 0;
10
- var class_transformer_1 = require("class-transformer");
11
- require("reflect-metadata");
12
- var utils_1 = require("../utils");
13
- var source_1 = require("./source");
14
- var PersonViewSafe = /** @class */ (function () {
15
- function PersonViewSafe() {
16
- }
17
- __decorate([
18
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
19
- ], PersonViewSafe.prototype, "person", void 0);
20
- return PersonViewSafe;
21
- }());
22
- exports.PersonViewSafe = PersonViewSafe;
23
- var PersonMentionView = /** @class */ (function () {
24
- function PersonMentionView() {
25
- }
26
- __decorate([
27
- (0, class_transformer_1.Type)(function () { return source_1.PersonMention; })
28
- ], PersonMentionView.prototype, "person_mention", void 0);
29
- __decorate([
30
- (0, class_transformer_1.Type)(function () { return source_1.Comment; })
31
- ], PersonMentionView.prototype, "comment", void 0);
32
- __decorate([
33
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
34
- ], PersonMentionView.prototype, "creator", void 0);
35
- __decorate([
36
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
37
- ], PersonMentionView.prototype, "post", void 0);
38
- __decorate([
39
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
40
- ], PersonMentionView.prototype, "community", void 0);
41
- __decorate([
42
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
43
- ], PersonMentionView.prototype, "recipient", void 0);
44
- __decorate([
45
- (0, class_transformer_1.Transform)(function (_a) {
46
- var value = _a.value;
47
- return (0, utils_1.toOption)(value);
48
- }, { toClassOnly: true }),
49
- (0, class_transformer_1.Transform)(function (_a) {
50
- var value = _a.value;
51
- return (0, utils_1.toUndefined)(value);
52
- }, { toPlainOnly: true }),
53
- (0, class_transformer_1.Expose)()
54
- ], PersonMentionView.prototype, "my_vote", void 0);
55
- return PersonMentionView;
56
- }());
57
- exports.PersonMentionView = PersonMentionView;
58
- var LocalUserSettingsView = /** @class */ (function () {
59
- function LocalUserSettingsView() {
60
- }
61
- __decorate([
62
- (0, class_transformer_1.Type)(function () { return source_1.LocalUserSettings; })
63
- ], LocalUserSettingsView.prototype, "local_user", void 0);
64
- __decorate([
65
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
66
- ], LocalUserSettingsView.prototype, "person", void 0);
67
- return LocalUserSettingsView;
68
- }());
69
- exports.LocalUserSettingsView = LocalUserSettingsView;
70
- var SiteView = /** @class */ (function () {
71
- function SiteView() {
72
- }
73
- __decorate([
74
- (0, class_transformer_1.Type)(function () { return source_1.Site; })
75
- ], SiteView.prototype, "site", void 0);
76
- __decorate([
77
- (0, class_transformer_1.Type)(function () { return source_1.LocalSite; })
78
- ], SiteView.prototype, "local_site", void 0);
79
- __decorate([
80
- (0, class_transformer_1.Type)(function () { return source_1.LocalSiteRateLimit; })
81
- ], SiteView.prototype, "local_site_rate_limit", void 0);
82
- __decorate([
83
- (0, class_transformer_1.Transform)(function (_a) {
84
- var value = _a.value;
85
- return (0, utils_1.toOption)(value);
86
- }, { toClassOnly: true }),
87
- (0, class_transformer_1.Transform)(function (_a) {
88
- var value = _a.value;
89
- return (0, utils_1.toUndefined)(value);
90
- }, { toPlainOnly: true }),
91
- (0, class_transformer_1.Expose)()
92
- ], SiteView.prototype, "taglines", void 0);
93
- return SiteView;
94
- }());
95
- exports.SiteView = SiteView;
96
- var PrivateMessageView = /** @class */ (function () {
97
- function PrivateMessageView() {
98
- }
99
- __decorate([
100
- (0, class_transformer_1.Type)(function () { return source_1.PrivateMessage; })
101
- ], PrivateMessageView.prototype, "private_message", void 0);
102
- __decorate([
103
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
104
- ], PrivateMessageView.prototype, "creator", void 0);
105
- __decorate([
106
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
107
- ], PrivateMessageView.prototype, "recipient", void 0);
108
- return PrivateMessageView;
109
- }());
110
- exports.PrivateMessageView = PrivateMessageView;
111
- var PostView = /** @class */ (function () {
112
- function PostView() {
113
- }
114
- __decorate([
115
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
116
- ], PostView.prototype, "post", void 0);
117
- __decorate([
118
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
119
- ], PostView.prototype, "creator", void 0);
120
- __decorate([
121
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
122
- ], PostView.prototype, "community", void 0);
123
- __decorate([
124
- (0, class_transformer_1.Transform)(function (_a) {
125
- var value = _a.value;
126
- return (0, utils_1.toOption)(value);
127
- }, { toClassOnly: true }),
128
- (0, class_transformer_1.Transform)(function (_a) {
129
- var value = _a.value;
130
- return (0, utils_1.toUndefined)(value);
131
- }, { toPlainOnly: true }),
132
- (0, class_transformer_1.Expose)()
133
- ], PostView.prototype, "my_vote", void 0);
134
- return PostView;
135
- }());
136
- exports.PostView = PostView;
137
- var PostReportView = /** @class */ (function () {
138
- function PostReportView() {
139
- }
140
- __decorate([
141
- (0, class_transformer_1.Type)(function () { return source_1.PostReport; })
142
- ], PostReportView.prototype, "post_report", void 0);
143
- __decorate([
144
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
145
- ], PostReportView.prototype, "post", void 0);
146
- __decorate([
147
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
148
- ], PostReportView.prototype, "community", void 0);
149
- __decorate([
150
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
151
- ], PostReportView.prototype, "creator", void 0);
152
- __decorate([
153
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
154
- ], PostReportView.prototype, "post_creator", void 0);
155
- __decorate([
156
- (0, class_transformer_1.Transform)(function (_a) {
157
- var value = _a.value;
158
- return (0, utils_1.toOption)(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
- ], PostReportView.prototype, "my_vote", void 0);
166
- __decorate([
167
- (0, class_transformer_1.Transform)(function (_a) {
168
- var value = _a.value;
169
- return (0, utils_1.toOption)(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
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
177
- ], PostReportView.prototype, "resolver", void 0);
178
- return PostReportView;
179
- }());
180
- exports.PostReportView = PostReportView;
181
- var CommentView = /** @class */ (function () {
182
- function CommentView() {
183
- }
184
- __decorate([
185
- (0, class_transformer_1.Type)(function () { return source_1.Comment; })
186
- ], CommentView.prototype, "comment", void 0);
187
- __decorate([
188
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
189
- ], CommentView.prototype, "creator", void 0);
190
- __decorate([
191
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
192
- ], CommentView.prototype, "post", void 0);
193
- __decorate([
194
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
195
- ], CommentView.prototype, "community", void 0);
196
- __decorate([
197
- (0, class_transformer_1.Transform)(function (_a) {
198
- var value = _a.value;
199
- return (0, utils_1.toOption)(value);
200
- }, { toClassOnly: true }),
201
- (0, class_transformer_1.Transform)(function (_a) {
202
- var value = _a.value;
203
- return (0, utils_1.toUndefined)(value);
204
- }, { toPlainOnly: true }),
205
- (0, class_transformer_1.Expose)()
206
- ], CommentView.prototype, "my_vote", void 0);
207
- return CommentView;
208
- }());
209
- exports.CommentView = CommentView;
210
- var CommentReplyView = /** @class */ (function () {
211
- function CommentReplyView() {
212
- }
213
- __decorate([
214
- (0, class_transformer_1.Type)(function () { return source_1.CommentReply; })
215
- ], CommentReplyView.prototype, "comment_reply", void 0);
216
- __decorate([
217
- (0, class_transformer_1.Type)(function () { return source_1.Comment; })
218
- ], CommentReplyView.prototype, "comment", void 0);
219
- __decorate([
220
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
221
- ], CommentReplyView.prototype, "creator", void 0);
222
- __decorate([
223
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
224
- ], CommentReplyView.prototype, "post", void 0);
225
- __decorate([
226
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
227
- ], CommentReplyView.prototype, "community", void 0);
228
- __decorate([
229
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
230
- ], CommentReplyView.prototype, "recipient", void 0);
231
- __decorate([
232
- (0, class_transformer_1.Transform)(function (_a) {
233
- var value = _a.value;
234
- return (0, utils_1.toOption)(value);
235
- }, { toClassOnly: true }),
236
- (0, class_transformer_1.Transform)(function (_a) {
237
- var value = _a.value;
238
- return (0, utils_1.toUndefined)(value);
239
- }, { toPlainOnly: true }),
240
- (0, class_transformer_1.Expose)()
241
- ], CommentReplyView.prototype, "my_vote", void 0);
242
- return CommentReplyView;
243
- }());
244
- exports.CommentReplyView = CommentReplyView;
245
- var CommentReportView = /** @class */ (function () {
246
- function CommentReportView() {
247
- }
248
- __decorate([
249
- (0, class_transformer_1.Type)(function () { return source_1.CommentReport; })
250
- ], CommentReportView.prototype, "comment_report", void 0);
251
- __decorate([
252
- (0, class_transformer_1.Type)(function () { return source_1.Comment; })
253
- ], CommentReportView.prototype, "comment", void 0);
254
- __decorate([
255
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
256
- ], CommentReportView.prototype, "post", void 0);
257
- __decorate([
258
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
259
- ], CommentReportView.prototype, "community", void 0);
260
- __decorate([
261
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
262
- ], CommentReportView.prototype, "creator", void 0);
263
- __decorate([
264
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
265
- ], CommentReportView.prototype, "comment_creator", void 0);
266
- __decorate([
267
- (0, class_transformer_1.Transform)(function (_a) {
268
- var value = _a.value;
269
- return (0, utils_1.toOption)(value);
270
- }, { toClassOnly: true }),
271
- (0, class_transformer_1.Transform)(function (_a) {
272
- var value = _a.value;
273
- return (0, utils_1.toUndefined)(value);
274
- }, { toPlainOnly: true }),
275
- (0, class_transformer_1.Expose)()
276
- ], CommentReportView.prototype, "my_vote", void 0);
277
- __decorate([
278
- (0, class_transformer_1.Transform)(function (_a) {
279
- var value = _a.value;
280
- return (0, utils_1.toOption)(value);
281
- }, { toClassOnly: true }),
282
- (0, class_transformer_1.Transform)(function (_a) {
283
- var value = _a.value;
284
- return (0, utils_1.toUndefined)(value);
285
- }, { toPlainOnly: true }),
286
- (0, class_transformer_1.Expose)(),
287
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
288
- ], CommentReportView.prototype, "resolver", void 0);
289
- return CommentReportView;
290
- }());
291
- exports.CommentReportView = CommentReportView;
292
- var ModAddCommunityView = /** @class */ (function () {
293
- function ModAddCommunityView() {
294
- }
295
- __decorate([
296
- (0, class_transformer_1.Type)(function () { return source_1.ModAddCommunity; })
297
- ], ModAddCommunityView.prototype, "mod_add_community", void 0);
298
- __decorate([
299
- (0, class_transformer_1.Transform)(function (_a) {
300
- var value = _a.value;
301
- return (0, utils_1.toOption)(value);
302
- }, { toClassOnly: true }),
303
- (0, class_transformer_1.Transform)(function (_a) {
304
- var value = _a.value;
305
- return (0, utils_1.toUndefined)(value);
306
- }, { toPlainOnly: true }),
307
- (0, class_transformer_1.Expose)(),
308
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
309
- ], ModAddCommunityView.prototype, "moderator", void 0);
310
- __decorate([
311
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
312
- ], ModAddCommunityView.prototype, "community", void 0);
313
- __decorate([
314
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
315
- ], ModAddCommunityView.prototype, "modded_person", void 0);
316
- return ModAddCommunityView;
317
- }());
318
- exports.ModAddCommunityView = ModAddCommunityView;
319
- var ModTransferCommunityView = /** @class */ (function () {
320
- function ModTransferCommunityView() {
321
- }
322
- __decorate([
323
- (0, class_transformer_1.Type)(function () { return source_1.ModTransferCommunity; })
324
- ], ModTransferCommunityView.prototype, "mod_transfer_community", void 0);
325
- __decorate([
326
- (0, class_transformer_1.Transform)(function (_a) {
327
- var value = _a.value;
328
- return (0, utils_1.toOption)(value);
329
- }, { toClassOnly: true }),
330
- (0, class_transformer_1.Transform)(function (_a) {
331
- var value = _a.value;
332
- return (0, utils_1.toUndefined)(value);
333
- }, { toPlainOnly: true }),
334
- (0, class_transformer_1.Expose)(),
335
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
336
- ], ModTransferCommunityView.prototype, "moderator", void 0);
337
- __decorate([
338
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
339
- ], ModTransferCommunityView.prototype, "community", void 0);
340
- __decorate([
341
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
342
- ], ModTransferCommunityView.prototype, "modded_person", void 0);
343
- return ModTransferCommunityView;
344
- }());
345
- exports.ModTransferCommunityView = ModTransferCommunityView;
346
- var ModAddView = /** @class */ (function () {
347
- function ModAddView() {
348
- }
349
- __decorate([
350
- (0, class_transformer_1.Type)(function () { return source_1.ModAdd; })
351
- ], ModAddView.prototype, "mod_add", void 0);
352
- __decorate([
353
- (0, class_transformer_1.Transform)(function (_a) {
354
- var value = _a.value;
355
- return (0, utils_1.toOption)(value);
356
- }, { toClassOnly: true }),
357
- (0, class_transformer_1.Transform)(function (_a) {
358
- var value = _a.value;
359
- return (0, utils_1.toUndefined)(value);
360
- }, { toPlainOnly: true }),
361
- (0, class_transformer_1.Expose)(),
362
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
363
- ], ModAddView.prototype, "moderator", void 0);
364
- __decorate([
365
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
366
- ], ModAddView.prototype, "modded_person", void 0);
367
- return ModAddView;
368
- }());
369
- exports.ModAddView = ModAddView;
370
- var ModBanFromCommunityView = /** @class */ (function () {
371
- function ModBanFromCommunityView() {
372
- }
373
- __decorate([
374
- (0, class_transformer_1.Type)(function () { return source_1.ModBanFromCommunity; })
375
- ], ModBanFromCommunityView.prototype, "mod_ban_from_community", void 0);
376
- __decorate([
377
- (0, class_transformer_1.Transform)(function (_a) {
378
- var value = _a.value;
379
- return (0, utils_1.toOption)(value);
380
- }, { toClassOnly: true }),
381
- (0, class_transformer_1.Transform)(function (_a) {
382
- var value = _a.value;
383
- return (0, utils_1.toUndefined)(value);
384
- }, { toPlainOnly: true }),
385
- (0, class_transformer_1.Expose)(),
386
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
387
- ], ModBanFromCommunityView.prototype, "moderator", void 0);
388
- __decorate([
389
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
390
- ], ModBanFromCommunityView.prototype, "community", void 0);
391
- __decorate([
392
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
393
- ], ModBanFromCommunityView.prototype, "banned_person", void 0);
394
- return ModBanFromCommunityView;
395
- }());
396
- exports.ModBanFromCommunityView = ModBanFromCommunityView;
397
- var ModBanView = /** @class */ (function () {
398
- function ModBanView() {
399
- }
400
- __decorate([
401
- (0, class_transformer_1.Type)(function () { return source_1.ModBan; })
402
- ], ModBanView.prototype, "mod_ban", void 0);
403
- __decorate([
404
- (0, class_transformer_1.Transform)(function (_a) {
405
- var value = _a.value;
406
- return (0, utils_1.toOption)(value);
407
- }, { toClassOnly: true }),
408
- (0, class_transformer_1.Transform)(function (_a) {
409
- var value = _a.value;
410
- return (0, utils_1.toUndefined)(value);
411
- }, { toPlainOnly: true }),
412
- (0, class_transformer_1.Expose)(),
413
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
414
- ], ModBanView.prototype, "moderator", void 0);
415
- __decorate([
416
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
417
- ], ModBanView.prototype, "banned_person", void 0);
418
- return ModBanView;
419
- }());
420
- exports.ModBanView = ModBanView;
421
- var ModLockPostView = /** @class */ (function () {
422
- function ModLockPostView() {
423
- }
424
- __decorate([
425
- (0, class_transformer_1.Type)(function () { return source_1.ModLockPost; })
426
- ], ModLockPostView.prototype, "mod_lock_post", void 0);
427
- __decorate([
428
- (0, class_transformer_1.Transform)(function (_a) {
429
- var value = _a.value;
430
- return (0, utils_1.toOption)(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
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
438
- ], ModLockPostView.prototype, "moderator", void 0);
439
- __decorate([
440
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
441
- ], ModLockPostView.prototype, "post", void 0);
442
- __decorate([
443
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
444
- ], ModLockPostView.prototype, "community", void 0);
445
- return ModLockPostView;
446
- }());
447
- exports.ModLockPostView = ModLockPostView;
448
- var ModRemoveCommentView = /** @class */ (function () {
449
- function ModRemoveCommentView() {
450
- }
451
- __decorate([
452
- (0, class_transformer_1.Type)(function () { return source_1.ModRemoveComment; })
453
- ], ModRemoveCommentView.prototype, "mod_remove_comment", void 0);
454
- __decorate([
455
- (0, class_transformer_1.Transform)(function (_a) {
456
- var value = _a.value;
457
- return (0, utils_1.toOption)(value);
458
- }, { toClassOnly: true }),
459
- (0, class_transformer_1.Transform)(function (_a) {
460
- var value = _a.value;
461
- return (0, utils_1.toUndefined)(value);
462
- }, { toPlainOnly: true }),
463
- (0, class_transformer_1.Expose)(),
464
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
465
- ], ModRemoveCommentView.prototype, "moderator", void 0);
466
- __decorate([
467
- (0, class_transformer_1.Type)(function () { return source_1.Comment; })
468
- ], ModRemoveCommentView.prototype, "comment", void 0);
469
- __decorate([
470
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
471
- ], ModRemoveCommentView.prototype, "commenter", void 0);
472
- __decorate([
473
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
474
- ], ModRemoveCommentView.prototype, "post", void 0);
475
- __decorate([
476
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
477
- ], ModRemoveCommentView.prototype, "community", void 0);
478
- return ModRemoveCommentView;
479
- }());
480
- exports.ModRemoveCommentView = ModRemoveCommentView;
481
- var ModRemoveCommunityView = /** @class */ (function () {
482
- function ModRemoveCommunityView() {
483
- }
484
- __decorate([
485
- (0, class_transformer_1.Type)(function () { return source_1.ModRemoveCommunity; })
486
- ], ModRemoveCommunityView.prototype, "mod_remove_community", void 0);
487
- __decorate([
488
- (0, class_transformer_1.Transform)(function (_a) {
489
- var value = _a.value;
490
- return (0, utils_1.toOption)(value);
491
- }, { toClassOnly: true }),
492
- (0, class_transformer_1.Transform)(function (_a) {
493
- var value = _a.value;
494
- return (0, utils_1.toUndefined)(value);
495
- }, { toPlainOnly: true }),
496
- (0, class_transformer_1.Expose)(),
497
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
498
- ], ModRemoveCommunityView.prototype, "moderator", void 0);
499
- __decorate([
500
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
501
- ], ModRemoveCommunityView.prototype, "community", void 0);
502
- return ModRemoveCommunityView;
503
- }());
504
- exports.ModRemoveCommunityView = ModRemoveCommunityView;
505
- var ModRemovePostView = /** @class */ (function () {
506
- function ModRemovePostView() {
507
- }
508
- __decorate([
509
- (0, class_transformer_1.Type)(function () { return source_1.ModRemovePost; })
510
- ], ModRemovePostView.prototype, "mod_remove_post", void 0);
511
- __decorate([
512
- (0, class_transformer_1.Transform)(function (_a) {
513
- var value = _a.value;
514
- return (0, utils_1.toOption)(value);
515
- }, { toClassOnly: true }),
516
- (0, class_transformer_1.Transform)(function (_a) {
517
- var value = _a.value;
518
- return (0, utils_1.toUndefined)(value);
519
- }, { toPlainOnly: true }),
520
- (0, class_transformer_1.Expose)(),
521
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
522
- ], ModRemovePostView.prototype, "moderator", void 0);
523
- __decorate([
524
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
525
- ], ModRemovePostView.prototype, "post", void 0);
526
- __decorate([
527
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
528
- ], ModRemovePostView.prototype, "community", void 0);
529
- return ModRemovePostView;
530
- }());
531
- exports.ModRemovePostView = ModRemovePostView;
532
- var ModFeaturePostView = /** @class */ (function () {
533
- function ModFeaturePostView() {
534
- }
535
- __decorate([
536
- (0, class_transformer_1.Type)(function () { return source_1.ModFeaturePost; })
537
- ], ModFeaturePostView.prototype, "mod_feature_post", void 0);
538
- __decorate([
539
- (0, class_transformer_1.Transform)(function (_a) {
540
- var value = _a.value;
541
- return (0, utils_1.toOption)(value);
542
- }, { toClassOnly: true }),
543
- (0, class_transformer_1.Transform)(function (_a) {
544
- var value = _a.value;
545
- return (0, utils_1.toUndefined)(value);
546
- }, { toPlainOnly: true }),
547
- (0, class_transformer_1.Expose)(),
548
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
549
- ], ModFeaturePostView.prototype, "moderator", void 0);
550
- __decorate([
551
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
552
- ], ModFeaturePostView.prototype, "post", void 0);
553
- __decorate([
554
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
555
- ], ModFeaturePostView.prototype, "community", void 0);
556
- return ModFeaturePostView;
557
- }());
558
- exports.ModFeaturePostView = ModFeaturePostView;
559
- var AdminPurgeCommunityView = /** @class */ (function () {
560
- function AdminPurgeCommunityView() {
561
- }
562
- __decorate([
563
- (0, class_transformer_1.Type)(function () { return source_1.AdminPurgeCommunity; })
564
- ], AdminPurgeCommunityView.prototype, "admin_purge_community", void 0);
565
- __decorate([
566
- (0, class_transformer_1.Transform)(function (_a) {
567
- var value = _a.value;
568
- return (0, utils_1.toOption)(value);
569
- }, { toClassOnly: true }),
570
- (0, class_transformer_1.Transform)(function (_a) {
571
- var value = _a.value;
572
- return (0, utils_1.toUndefined)(value);
573
- }, { toPlainOnly: true }),
574
- (0, class_transformer_1.Expose)(),
575
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
576
- ], AdminPurgeCommunityView.prototype, "admin", void 0);
577
- return AdminPurgeCommunityView;
578
- }());
579
- exports.AdminPurgeCommunityView = AdminPurgeCommunityView;
580
- var AdminPurgePersonView = /** @class */ (function () {
581
- function AdminPurgePersonView() {
582
- }
583
- __decorate([
584
- (0, class_transformer_1.Type)(function () { return source_1.AdminPurgePerson; })
585
- ], AdminPurgePersonView.prototype, "admin_purge_person", void 0);
586
- __decorate([
587
- (0, class_transformer_1.Transform)(function (_a) {
588
- var value = _a.value;
589
- return (0, utils_1.toOption)(value);
590
- }, { toClassOnly: true }),
591
- (0, class_transformer_1.Transform)(function (_a) {
592
- var value = _a.value;
593
- return (0, utils_1.toUndefined)(value);
594
- }, { toPlainOnly: true }),
595
- (0, class_transformer_1.Expose)(),
596
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
597
- ], AdminPurgePersonView.prototype, "admin", void 0);
598
- return AdminPurgePersonView;
599
- }());
600
- exports.AdminPurgePersonView = AdminPurgePersonView;
601
- var AdminPurgePostView = /** @class */ (function () {
602
- function AdminPurgePostView() {
603
- }
604
- __decorate([
605
- (0, class_transformer_1.Type)(function () { return source_1.AdminPurgePost; })
606
- ], AdminPurgePostView.prototype, "admin_purge_post", void 0);
607
- __decorate([
608
- (0, class_transformer_1.Transform)(function (_a) {
609
- var value = _a.value;
610
- return (0, utils_1.toOption)(value);
611
- }, { toClassOnly: true }),
612
- (0, class_transformer_1.Transform)(function (_a) {
613
- var value = _a.value;
614
- return (0, utils_1.toUndefined)(value);
615
- }, { toPlainOnly: true }),
616
- (0, class_transformer_1.Expose)(),
617
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
618
- ], AdminPurgePostView.prototype, "admin", void 0);
619
- __decorate([
620
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
621
- ], AdminPurgePostView.prototype, "community", void 0);
622
- return AdminPurgePostView;
623
- }());
624
- exports.AdminPurgePostView = AdminPurgePostView;
625
- var AdminPurgeCommentView = /** @class */ (function () {
626
- function AdminPurgeCommentView() {
627
- }
628
- __decorate([
629
- (0, class_transformer_1.Type)(function () { return source_1.AdminPurgeComment; })
630
- ], AdminPurgeCommentView.prototype, "admin_purge_comment", void 0);
631
- __decorate([
632
- (0, class_transformer_1.Transform)(function (_a) {
633
- var value = _a.value;
634
- return (0, utils_1.toOption)(value);
635
- }, { toClassOnly: true }),
636
- (0, class_transformer_1.Transform)(function (_a) {
637
- var value = _a.value;
638
- return (0, utils_1.toUndefined)(value);
639
- }, { toPlainOnly: true }),
640
- (0, class_transformer_1.Expose)(),
641
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
642
- ], AdminPurgeCommentView.prototype, "admin", void 0);
643
- __decorate([
644
- (0, class_transformer_1.Type)(function () { return source_1.Post; })
645
- ], AdminPurgeCommentView.prototype, "post", void 0);
646
- return AdminPurgeCommentView;
647
- }());
648
- exports.AdminPurgeCommentView = AdminPurgeCommentView;
649
- var CommunityFollowerView = /** @class */ (function () {
650
- function CommunityFollowerView() {
651
- }
652
- __decorate([
653
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
654
- ], CommunityFollowerView.prototype, "community", void 0);
655
- __decorate([
656
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
657
- ], CommunityFollowerView.prototype, "follower", void 0);
658
- return CommunityFollowerView;
659
- }());
660
- exports.CommunityFollowerView = CommunityFollowerView;
661
- var CommunityBlockView = /** @class */ (function () {
662
- function CommunityBlockView() {
663
- }
664
- __decorate([
665
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
666
- ], CommunityBlockView.prototype, "person", void 0);
667
- __decorate([
668
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
669
- ], CommunityBlockView.prototype, "community", void 0);
670
- return CommunityBlockView;
671
- }());
672
- exports.CommunityBlockView = CommunityBlockView;
673
- var CommunityModeratorView = /** @class */ (function () {
674
- function CommunityModeratorView() {
675
- }
676
- __decorate([
677
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
678
- ], CommunityModeratorView.prototype, "community", void 0);
679
- __decorate([
680
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
681
- ], CommunityModeratorView.prototype, "moderator", void 0);
682
- return CommunityModeratorView;
683
- }());
684
- exports.CommunityModeratorView = CommunityModeratorView;
685
- var CommunityPersonBanView = /** @class */ (function () {
686
- function CommunityPersonBanView() {
687
- }
688
- __decorate([
689
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
690
- ], CommunityPersonBanView.prototype, "community", void 0);
691
- __decorate([
692
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
693
- ], CommunityPersonBanView.prototype, "person", void 0);
694
- return CommunityPersonBanView;
695
- }());
696
- exports.CommunityPersonBanView = CommunityPersonBanView;
697
- var PersonBlockView = /** @class */ (function () {
698
- function PersonBlockView() {
699
- }
700
- __decorate([
701
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
702
- ], PersonBlockView.prototype, "person", void 0);
703
- __decorate([
704
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
705
- ], PersonBlockView.prototype, "target", void 0);
706
- return PersonBlockView;
707
- }());
708
- exports.PersonBlockView = PersonBlockView;
709
- var CommunityView = /** @class */ (function () {
710
- function CommunityView() {
711
- }
712
- __decorate([
713
- (0, class_transformer_1.Type)(function () { return source_1.CommunitySafe; })
714
- ], CommunityView.prototype, "community", void 0);
715
- return CommunityView;
716
- }());
717
- exports.CommunityView = CommunityView;
718
- var RegistrationApplicationView = /** @class */ (function () {
719
- function RegistrationApplicationView() {
720
- }
721
- __decorate([
722
- (0, class_transformer_1.Type)(function () { return source_1.RegistrationApplication; })
723
- ], RegistrationApplicationView.prototype, "registration_application", void 0);
724
- __decorate([
725
- (0, class_transformer_1.Type)(function () { return source_1.LocalUserSettings; })
726
- ], RegistrationApplicationView.prototype, "creator_local_user", void 0);
727
- __decorate([
728
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
729
- ], RegistrationApplicationView.prototype, "creator", void 0);
730
- __decorate([
731
- (0, class_transformer_1.Transform)(function (_a) {
732
- var value = _a.value;
733
- return (0, utils_1.toOption)(value);
734
- }, { toClassOnly: true }),
735
- (0, class_transformer_1.Transform)(function (_a) {
736
- var value = _a.value;
737
- return (0, utils_1.toUndefined)(value);
738
- }, { toPlainOnly: true }),
739
- (0, class_transformer_1.Expose)(),
740
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
741
- ], RegistrationApplicationView.prototype, "admin", void 0);
742
- return RegistrationApplicationView;
743
- }());
744
- exports.RegistrationApplicationView = RegistrationApplicationView;
745
- var PrivateMessageReportView = /** @class */ (function () {
746
- function PrivateMessageReportView() {
747
- }
748
- __decorate([
749
- (0, class_transformer_1.Type)(function () { return source_1.PrivateMessageReport; })
750
- ], PrivateMessageReportView.prototype, "private_message_report", void 0);
751
- __decorate([
752
- (0, class_transformer_1.Type)(function () { return source_1.PrivateMessage; })
753
- ], PrivateMessageReportView.prototype, "private_message", void 0);
754
- __decorate([
755
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
756
- ], PrivateMessageReportView.prototype, "private_message_creator", void 0);
757
- __decorate([
758
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
759
- ], PrivateMessageReportView.prototype, "creator", void 0);
760
- __decorate([
761
- (0, class_transformer_1.Transform)(function (_a) {
762
- var value = _a.value;
763
- return (0, utils_1.toOption)(value);
764
- }, { toClassOnly: true }),
765
- (0, class_transformer_1.Transform)(function (_a) {
766
- var value = _a.value;
767
- return (0, utils_1.toUndefined)(value);
768
- }, { toPlainOnly: true }),
769
- (0, class_transformer_1.Expose)(),
770
- (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
771
- ], PrivateMessageReportView.prototype, "resolver", void 0);
772
- return PrivateMessageReportView;
773
- }());
774
- exports.PrivateMessageReportView = PrivateMessageReportView;