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