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.
- package/dist/http.d.ts +74 -0
- package/dist/http.js +171 -80
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/interfaces/api/comment.d.ts +44 -32
- package/dist/interfaces/api/comment.js +346 -0
- package/dist/interfaces/api/community.d.ts +54 -42
- package/dist/interfaces/api/community.js +450 -0
- package/dist/interfaces/api/person.d.ts +118 -94
- package/dist/interfaces/api/person.js +920 -0
- package/dist/interfaces/api/post.d.ts +59 -43
- package/dist/interfaces/api/post.js +447 -0
- package/dist/interfaces/api/site.d.ts +93 -81
- package/dist/interfaces/api/site.js +858 -0
- package/dist/interfaces/others.d.ts +6 -38
- package/dist/interfaces/others.js +63 -1
- package/dist/interfaces/source.d.ts +77 -77
- package/dist/interfaces/source.js +747 -0
- package/dist/interfaces/views.d.ts +36 -35
- package/dist/interfaces/views.js +265 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +10 -0
- package/dist/websocket.d.ts +11 -1
- package/dist/websocket.js +29 -3
- package/package.json +3 -2
@@ -1,2 +1,749 @@
|
|
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.RegistrationApplication = exports.PersonMention = exports.Comment = exports.CommentReport = exports.CommunitySafe = exports.ModAdd = exports.ModTransferCommunity = exports.ModAddCommunity = exports.ModBan = exports.ModBanFromCommunity = exports.ModRemoveCommunity = exports.ModRemoveComment = exports.ModStickyPost = exports.ModLockPost = exports.ModRemovePost = exports.PasswordResetRequest = exports.Post = exports.PostReport = exports.PrivateMessage = exports.Site = exports.PersonSafe = exports.LocalUserSettings = void 0;
|
10
|
+
var monads_1 = require("@sniptt/monads");
|
11
|
+
var class_transformer_1 = require("class-transformer");
|
12
|
+
var utils_1 = require("../utils");
|
13
|
+
var LocalUserSettings = /** @class */ (function () {
|
14
|
+
function LocalUserSettings() {
|
15
|
+
}
|
16
|
+
__decorate([
|
17
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
18
|
+
var value = _a.value;
|
19
|
+
return (0, monads_1.Some)(value);
|
20
|
+
}, { toClassOnly: true }),
|
21
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
22
|
+
var value = _a.value;
|
23
|
+
return (0, utils_1.toUndefined)(value);
|
24
|
+
}, { toPlainOnly: true }),
|
25
|
+
(0, class_transformer_1.Expose)()
|
26
|
+
], LocalUserSettings.prototype, "email", void 0);
|
27
|
+
return LocalUserSettings;
|
28
|
+
}());
|
29
|
+
exports.LocalUserSettings = LocalUserSettings;
|
30
|
+
var PersonSafe = /** @class */ (function () {
|
31
|
+
function PersonSafe() {
|
32
|
+
}
|
33
|
+
__decorate([
|
34
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
35
|
+
var value = _a.value;
|
36
|
+
return (0, monads_1.Some)(value);
|
37
|
+
}, { toClassOnly: true }),
|
38
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
39
|
+
var value = _a.value;
|
40
|
+
return (0, utils_1.toUndefined)(value);
|
41
|
+
}, { toPlainOnly: true }),
|
42
|
+
(0, class_transformer_1.Expose)()
|
43
|
+
], PersonSafe.prototype, "display_name", void 0);
|
44
|
+
__decorate([
|
45
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
46
|
+
var value = _a.value;
|
47
|
+
return (0, monads_1.Some)(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
|
+
], PersonSafe.prototype, "avatar", void 0);
|
55
|
+
__decorate([
|
56
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
57
|
+
var value = _a.value;
|
58
|
+
return (0, monads_1.Some)(value);
|
59
|
+
}, { toClassOnly: true }),
|
60
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
61
|
+
var value = _a.value;
|
62
|
+
return (0, utils_1.toUndefined)(value);
|
63
|
+
}, { toPlainOnly: true }),
|
64
|
+
(0, class_transformer_1.Expose)()
|
65
|
+
], PersonSafe.prototype, "updated", void 0);
|
66
|
+
__decorate([
|
67
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
68
|
+
var value = _a.value;
|
69
|
+
return (0, monads_1.Some)(value);
|
70
|
+
}, { toClassOnly: true }),
|
71
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
72
|
+
var value = _a.value;
|
73
|
+
return (0, utils_1.toUndefined)(value);
|
74
|
+
}, { toPlainOnly: true }),
|
75
|
+
(0, class_transformer_1.Expose)()
|
76
|
+
], PersonSafe.prototype, "bio", void 0);
|
77
|
+
__decorate([
|
78
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
79
|
+
var value = _a.value;
|
80
|
+
return (0, monads_1.Some)(value);
|
81
|
+
}, { toClassOnly: true }),
|
82
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
83
|
+
var value = _a.value;
|
84
|
+
return (0, utils_1.toUndefined)(value);
|
85
|
+
}, { toPlainOnly: true }),
|
86
|
+
(0, class_transformer_1.Expose)()
|
87
|
+
], PersonSafe.prototype, "banner", void 0);
|
88
|
+
__decorate([
|
89
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
90
|
+
var value = _a.value;
|
91
|
+
return (0, monads_1.Some)(value);
|
92
|
+
}, { toClassOnly: true }),
|
93
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
94
|
+
var value = _a.value;
|
95
|
+
return (0, utils_1.toUndefined)(value);
|
96
|
+
}, { toPlainOnly: true }),
|
97
|
+
(0, class_transformer_1.Expose)()
|
98
|
+
], PersonSafe.prototype, "matrix_user_id", void 0);
|
99
|
+
__decorate([
|
100
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
101
|
+
var value = _a.value;
|
102
|
+
return (0, monads_1.Some)(value);
|
103
|
+
}, { toClassOnly: true }),
|
104
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
105
|
+
var value = _a.value;
|
106
|
+
return (0, utils_1.toUndefined)(value);
|
107
|
+
}, { toPlainOnly: true }),
|
108
|
+
(0, class_transformer_1.Expose)()
|
109
|
+
], PersonSafe.prototype, "ban_expires", void 0);
|
110
|
+
return PersonSafe;
|
111
|
+
}());
|
112
|
+
exports.PersonSafe = PersonSafe;
|
113
|
+
var Site = /** @class */ (function () {
|
114
|
+
function Site() {
|
115
|
+
}
|
116
|
+
__decorate([
|
117
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
118
|
+
var value = _a.value;
|
119
|
+
return (0, monads_1.Some)(value);
|
120
|
+
}, { toClassOnly: true }),
|
121
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
122
|
+
var value = _a.value;
|
123
|
+
return (0, utils_1.toUndefined)(value);
|
124
|
+
}, { toPlainOnly: true }),
|
125
|
+
(0, class_transformer_1.Expose)()
|
126
|
+
], Site.prototype, "sidebar", void 0);
|
127
|
+
__decorate([
|
128
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
129
|
+
var value = _a.value;
|
130
|
+
return (0, monads_1.Some)(value);
|
131
|
+
}, { toClassOnly: true }),
|
132
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
133
|
+
var value = _a.value;
|
134
|
+
return (0, utils_1.toUndefined)(value);
|
135
|
+
}, { toPlainOnly: true }),
|
136
|
+
(0, class_transformer_1.Expose)()
|
137
|
+
], Site.prototype, "updated", void 0);
|
138
|
+
__decorate([
|
139
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
140
|
+
var value = _a.value;
|
141
|
+
return (0, monads_1.Some)(value);
|
142
|
+
}, { toClassOnly: true }),
|
143
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
144
|
+
var value = _a.value;
|
145
|
+
return (0, utils_1.toUndefined)(value);
|
146
|
+
}, { toPlainOnly: true }),
|
147
|
+
(0, class_transformer_1.Expose)()
|
148
|
+
], Site.prototype, "icon", void 0);
|
149
|
+
__decorate([
|
150
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
151
|
+
var value = _a.value;
|
152
|
+
return (0, monads_1.Some)(value);
|
153
|
+
}, { toClassOnly: true }),
|
154
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
155
|
+
var value = _a.value;
|
156
|
+
return (0, utils_1.toUndefined)(value);
|
157
|
+
}, { toPlainOnly: true }),
|
158
|
+
(0, class_transformer_1.Expose)()
|
159
|
+
], Site.prototype, "banner", void 0);
|
160
|
+
__decorate([
|
161
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
162
|
+
var value = _a.value;
|
163
|
+
return (0, monads_1.Some)(value);
|
164
|
+
}, { toClassOnly: true }),
|
165
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
166
|
+
var value = _a.value;
|
167
|
+
return (0, utils_1.toUndefined)(value);
|
168
|
+
}, { toPlainOnly: true }),
|
169
|
+
(0, class_transformer_1.Expose)()
|
170
|
+
], Site.prototype, "description", void 0);
|
171
|
+
__decorate([
|
172
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
173
|
+
var value = _a.value;
|
174
|
+
return (0, monads_1.Some)(value);
|
175
|
+
}, { toClassOnly: true }),
|
176
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
177
|
+
var value = _a.value;
|
178
|
+
return (0, utils_1.toUndefined)(value);
|
179
|
+
}, { toPlainOnly: true }),
|
180
|
+
(0, class_transformer_1.Expose)()
|
181
|
+
], Site.prototype, "application_question", void 0);
|
182
|
+
__decorate([
|
183
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
184
|
+
var value = _a.value;
|
185
|
+
return (0, monads_1.Some)(value);
|
186
|
+
}, { toClassOnly: true }),
|
187
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
188
|
+
var value = _a.value;
|
189
|
+
return (0, utils_1.toUndefined)(value);
|
190
|
+
}, { toPlainOnly: true }),
|
191
|
+
(0, class_transformer_1.Expose)()
|
192
|
+
], Site.prototype, "legal_information", void 0);
|
193
|
+
return Site;
|
194
|
+
}());
|
195
|
+
exports.Site = Site;
|
196
|
+
var PrivateMessage = /** @class */ (function () {
|
197
|
+
function PrivateMessage() {
|
198
|
+
}
|
199
|
+
__decorate([
|
200
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
201
|
+
var value = _a.value;
|
202
|
+
return (0, monads_1.Some)(value);
|
203
|
+
}, { toClassOnly: true }),
|
204
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
205
|
+
var value = _a.value;
|
206
|
+
return (0, utils_1.toUndefined)(value);
|
207
|
+
}, { toPlainOnly: true }),
|
208
|
+
(0, class_transformer_1.Expose)()
|
209
|
+
], PrivateMessage.prototype, "updated", void 0);
|
210
|
+
return PrivateMessage;
|
211
|
+
}());
|
212
|
+
exports.PrivateMessage = PrivateMessage;
|
213
|
+
var PostReport = /** @class */ (function () {
|
214
|
+
function PostReport() {
|
215
|
+
}
|
216
|
+
__decorate([
|
217
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
218
|
+
var value = _a.value;
|
219
|
+
return (0, monads_1.Some)(value);
|
220
|
+
}, { toClassOnly: true }),
|
221
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
222
|
+
var value = _a.value;
|
223
|
+
return (0, utils_1.toUndefined)(value);
|
224
|
+
}, { toPlainOnly: true }),
|
225
|
+
(0, class_transformer_1.Expose)()
|
226
|
+
], PostReport.prototype, "original_post_url", void 0);
|
227
|
+
__decorate([
|
228
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
229
|
+
var value = _a.value;
|
230
|
+
return (0, monads_1.Some)(value);
|
231
|
+
}, { toClassOnly: true }),
|
232
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
233
|
+
var value = _a.value;
|
234
|
+
return (0, utils_1.toUndefined)(value);
|
235
|
+
}, { toPlainOnly: true }),
|
236
|
+
(0, class_transformer_1.Expose)()
|
237
|
+
], PostReport.prototype, "original_post_body", void 0);
|
238
|
+
__decorate([
|
239
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
240
|
+
var value = _a.value;
|
241
|
+
return (0, monads_1.Some)(value);
|
242
|
+
}, { toClassOnly: true }),
|
243
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
244
|
+
var value = _a.value;
|
245
|
+
return (0, utils_1.toUndefined)(value);
|
246
|
+
}, { toPlainOnly: true }),
|
247
|
+
(0, class_transformer_1.Expose)()
|
248
|
+
], PostReport.prototype, "resolver_id", void 0);
|
249
|
+
__decorate([
|
250
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
251
|
+
var value = _a.value;
|
252
|
+
return (0, monads_1.Some)(value);
|
253
|
+
}, { toClassOnly: true }),
|
254
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
255
|
+
var value = _a.value;
|
256
|
+
return (0, utils_1.toUndefined)(value);
|
257
|
+
}, { toPlainOnly: true }),
|
258
|
+
(0, class_transformer_1.Expose)()
|
259
|
+
], PostReport.prototype, "updated", void 0);
|
260
|
+
return PostReport;
|
261
|
+
}());
|
262
|
+
exports.PostReport = PostReport;
|
263
|
+
var Post = /** @class */ (function () {
|
264
|
+
function Post() {
|
265
|
+
}
|
266
|
+
__decorate([
|
267
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
268
|
+
var value = _a.value;
|
269
|
+
return (0, monads_1.Some)(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
|
+
], Post.prototype, "url", void 0);
|
277
|
+
__decorate([
|
278
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
279
|
+
var value = _a.value;
|
280
|
+
return (0, monads_1.Some)(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
|
+
], Post.prototype, "body", void 0);
|
288
|
+
__decorate([
|
289
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
290
|
+
var value = _a.value;
|
291
|
+
return (0, monads_1.Some)(value);
|
292
|
+
}, { toClassOnly: true }),
|
293
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
294
|
+
var value = _a.value;
|
295
|
+
return (0, utils_1.toUndefined)(value);
|
296
|
+
}, { toPlainOnly: true }),
|
297
|
+
(0, class_transformer_1.Expose)()
|
298
|
+
], Post.prototype, "updated", void 0);
|
299
|
+
__decorate([
|
300
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
301
|
+
var value = _a.value;
|
302
|
+
return (0, monads_1.Some)(value);
|
303
|
+
}, { toClassOnly: true }),
|
304
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
305
|
+
var value = _a.value;
|
306
|
+
return (0, utils_1.toUndefined)(value);
|
307
|
+
}, { toPlainOnly: true }),
|
308
|
+
(0, class_transformer_1.Expose)()
|
309
|
+
], Post.prototype, "embed_title", void 0);
|
310
|
+
__decorate([
|
311
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
312
|
+
var value = _a.value;
|
313
|
+
return (0, monads_1.Some)(value);
|
314
|
+
}, { toClassOnly: true }),
|
315
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
316
|
+
var value = _a.value;
|
317
|
+
return (0, utils_1.toUndefined)(value);
|
318
|
+
}, { toPlainOnly: true }),
|
319
|
+
(0, class_transformer_1.Expose)()
|
320
|
+
], Post.prototype, "embed_description", void 0);
|
321
|
+
__decorate([
|
322
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
323
|
+
var value = _a.value;
|
324
|
+
return (0, monads_1.Some)(value);
|
325
|
+
}, { toClassOnly: true }),
|
326
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
327
|
+
var value = _a.value;
|
328
|
+
return (0, utils_1.toUndefined)(value);
|
329
|
+
}, { toPlainOnly: true }),
|
330
|
+
(0, class_transformer_1.Expose)()
|
331
|
+
], Post.prototype, "embed_html", void 0);
|
332
|
+
__decorate([
|
333
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
334
|
+
var value = _a.value;
|
335
|
+
return (0, monads_1.Some)(value);
|
336
|
+
}, { toClassOnly: true }),
|
337
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
338
|
+
var value = _a.value;
|
339
|
+
return (0, utils_1.toUndefined)(value);
|
340
|
+
}, { toPlainOnly: true }),
|
341
|
+
(0, class_transformer_1.Expose)()
|
342
|
+
], Post.prototype, "thumbnail_url", void 0);
|
343
|
+
return Post;
|
344
|
+
}());
|
345
|
+
exports.Post = Post;
|
346
|
+
var PasswordResetRequest = /** @class */ (function () {
|
347
|
+
function PasswordResetRequest() {
|
348
|
+
}
|
349
|
+
return PasswordResetRequest;
|
350
|
+
}());
|
351
|
+
exports.PasswordResetRequest = PasswordResetRequest;
|
352
|
+
var ModRemovePost = /** @class */ (function () {
|
353
|
+
function ModRemovePost() {
|
354
|
+
}
|
355
|
+
__decorate([
|
356
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
357
|
+
var value = _a.value;
|
358
|
+
return (0, monads_1.Some)(value);
|
359
|
+
}, { toClassOnly: true }),
|
360
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
361
|
+
var value = _a.value;
|
362
|
+
return (0, utils_1.toUndefined)(value);
|
363
|
+
}, { toPlainOnly: true }),
|
364
|
+
(0, class_transformer_1.Expose)()
|
365
|
+
], ModRemovePost.prototype, "reason", void 0);
|
366
|
+
__decorate([
|
367
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
368
|
+
var value = _a.value;
|
369
|
+
return (0, monads_1.Some)(value);
|
370
|
+
}, { toClassOnly: true }),
|
371
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
372
|
+
var value = _a.value;
|
373
|
+
return (0, utils_1.toUndefined)(value);
|
374
|
+
}, { toPlainOnly: true }),
|
375
|
+
(0, class_transformer_1.Expose)()
|
376
|
+
], ModRemovePost.prototype, "removed", void 0);
|
377
|
+
return ModRemovePost;
|
378
|
+
}());
|
379
|
+
exports.ModRemovePost = ModRemovePost;
|
380
|
+
var ModLockPost = /** @class */ (function () {
|
381
|
+
function ModLockPost() {
|
382
|
+
}
|
383
|
+
__decorate([
|
384
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
385
|
+
var value = _a.value;
|
386
|
+
return (0, monads_1.Some)(value);
|
387
|
+
}, { toClassOnly: true }),
|
388
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
389
|
+
var value = _a.value;
|
390
|
+
return (0, utils_1.toUndefined)(value);
|
391
|
+
}, { toPlainOnly: true }),
|
392
|
+
(0, class_transformer_1.Expose)()
|
393
|
+
], ModLockPost.prototype, "locked", void 0);
|
394
|
+
return ModLockPost;
|
395
|
+
}());
|
396
|
+
exports.ModLockPost = ModLockPost;
|
397
|
+
var ModStickyPost = /** @class */ (function () {
|
398
|
+
function ModStickyPost() {
|
399
|
+
}
|
400
|
+
__decorate([
|
401
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
402
|
+
var value = _a.value;
|
403
|
+
return (0, monads_1.Some)(value);
|
404
|
+
}, { toClassOnly: true }),
|
405
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
406
|
+
var value = _a.value;
|
407
|
+
return (0, utils_1.toUndefined)(value);
|
408
|
+
}, { toPlainOnly: true }),
|
409
|
+
(0, class_transformer_1.Expose)()
|
410
|
+
], ModStickyPost.prototype, "stickied", void 0);
|
411
|
+
return ModStickyPost;
|
412
|
+
}());
|
413
|
+
exports.ModStickyPost = ModStickyPost;
|
414
|
+
var ModRemoveComment = /** @class */ (function () {
|
415
|
+
function ModRemoveComment() {
|
416
|
+
}
|
417
|
+
__decorate([
|
418
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
419
|
+
var value = _a.value;
|
420
|
+
return (0, monads_1.Some)(value);
|
421
|
+
}, { toClassOnly: true }),
|
422
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
423
|
+
var value = _a.value;
|
424
|
+
return (0, utils_1.toUndefined)(value);
|
425
|
+
}, { toPlainOnly: true }),
|
426
|
+
(0, class_transformer_1.Expose)()
|
427
|
+
], ModRemoveComment.prototype, "reason", void 0);
|
428
|
+
__decorate([
|
429
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
430
|
+
var value = _a.value;
|
431
|
+
return (0, monads_1.Some)(value);
|
432
|
+
}, { toClassOnly: true }),
|
433
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
434
|
+
var value = _a.value;
|
435
|
+
return (0, utils_1.toUndefined)(value);
|
436
|
+
}, { toPlainOnly: true }),
|
437
|
+
(0, class_transformer_1.Expose)()
|
438
|
+
], ModRemoveComment.prototype, "removed", void 0);
|
439
|
+
return ModRemoveComment;
|
440
|
+
}());
|
441
|
+
exports.ModRemoveComment = ModRemoveComment;
|
442
|
+
var ModRemoveCommunity = /** @class */ (function () {
|
443
|
+
function ModRemoveCommunity() {
|
444
|
+
}
|
445
|
+
__decorate([
|
446
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
447
|
+
var value = _a.value;
|
448
|
+
return (0, monads_1.Some)(value);
|
449
|
+
}, { toClassOnly: true }),
|
450
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
451
|
+
var value = _a.value;
|
452
|
+
return (0, utils_1.toUndefined)(value);
|
453
|
+
}, { toPlainOnly: true }),
|
454
|
+
(0, class_transformer_1.Expose)()
|
455
|
+
], ModRemoveCommunity.prototype, "reason", void 0);
|
456
|
+
__decorate([
|
457
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
458
|
+
var value = _a.value;
|
459
|
+
return (0, monads_1.Some)(value);
|
460
|
+
}, { toClassOnly: true }),
|
461
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
462
|
+
var value = _a.value;
|
463
|
+
return (0, utils_1.toUndefined)(value);
|
464
|
+
}, { toPlainOnly: true }),
|
465
|
+
(0, class_transformer_1.Expose)()
|
466
|
+
], ModRemoveCommunity.prototype, "removed", void 0);
|
467
|
+
__decorate([
|
468
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
469
|
+
var value = _a.value;
|
470
|
+
return (0, monads_1.Some)(value);
|
471
|
+
}, { toClassOnly: true }),
|
472
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
473
|
+
var value = _a.value;
|
474
|
+
return (0, utils_1.toUndefined)(value);
|
475
|
+
}, { toPlainOnly: true }),
|
476
|
+
(0, class_transformer_1.Expose)()
|
477
|
+
], ModRemoveCommunity.prototype, "expires", void 0);
|
478
|
+
return ModRemoveCommunity;
|
479
|
+
}());
|
480
|
+
exports.ModRemoveCommunity = ModRemoveCommunity;
|
481
|
+
var ModBanFromCommunity = /** @class */ (function () {
|
482
|
+
function ModBanFromCommunity() {
|
483
|
+
}
|
484
|
+
__decorate([
|
485
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
486
|
+
var value = _a.value;
|
487
|
+
return (0, monads_1.Some)(value);
|
488
|
+
}, { toClassOnly: true }),
|
489
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
490
|
+
var value = _a.value;
|
491
|
+
return (0, utils_1.toUndefined)(value);
|
492
|
+
}, { toPlainOnly: true }),
|
493
|
+
(0, class_transformer_1.Expose)()
|
494
|
+
], ModBanFromCommunity.prototype, "reason", void 0);
|
495
|
+
__decorate([
|
496
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
497
|
+
var value = _a.value;
|
498
|
+
return (0, monads_1.Some)(value);
|
499
|
+
}, { toClassOnly: true }),
|
500
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
501
|
+
var value = _a.value;
|
502
|
+
return (0, utils_1.toUndefined)(value);
|
503
|
+
}, { toPlainOnly: true }),
|
504
|
+
(0, class_transformer_1.Expose)()
|
505
|
+
], ModBanFromCommunity.prototype, "banned", void 0);
|
506
|
+
__decorate([
|
507
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
508
|
+
var value = _a.value;
|
509
|
+
return (0, monads_1.Some)(value);
|
510
|
+
}, { toClassOnly: true }),
|
511
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
512
|
+
var value = _a.value;
|
513
|
+
return (0, utils_1.toUndefined)(value);
|
514
|
+
}, { toPlainOnly: true }),
|
515
|
+
(0, class_transformer_1.Expose)()
|
516
|
+
], ModBanFromCommunity.prototype, "expires", void 0);
|
517
|
+
return ModBanFromCommunity;
|
518
|
+
}());
|
519
|
+
exports.ModBanFromCommunity = ModBanFromCommunity;
|
520
|
+
var ModBan = /** @class */ (function () {
|
521
|
+
function ModBan() {
|
522
|
+
}
|
523
|
+
__decorate([
|
524
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
525
|
+
var value = _a.value;
|
526
|
+
return (0, monads_1.Some)(value);
|
527
|
+
}, { toClassOnly: true }),
|
528
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
529
|
+
var value = _a.value;
|
530
|
+
return (0, utils_1.toUndefined)(value);
|
531
|
+
}, { toPlainOnly: true }),
|
532
|
+
(0, class_transformer_1.Expose)()
|
533
|
+
], ModBan.prototype, "reason", void 0);
|
534
|
+
__decorate([
|
535
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
536
|
+
var value = _a.value;
|
537
|
+
return (0, monads_1.Some)(value);
|
538
|
+
}, { toClassOnly: true }),
|
539
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
540
|
+
var value = _a.value;
|
541
|
+
return (0, utils_1.toUndefined)(value);
|
542
|
+
}, { toPlainOnly: true }),
|
543
|
+
(0, class_transformer_1.Expose)()
|
544
|
+
], ModBan.prototype, "banned", void 0);
|
545
|
+
__decorate([
|
546
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
547
|
+
var value = _a.value;
|
548
|
+
return (0, monads_1.Some)(value);
|
549
|
+
}, { toClassOnly: true }),
|
550
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
551
|
+
var value = _a.value;
|
552
|
+
return (0, utils_1.toUndefined)(value);
|
553
|
+
}, { toPlainOnly: true }),
|
554
|
+
(0, class_transformer_1.Expose)()
|
555
|
+
], ModBan.prototype, "expires", void 0);
|
556
|
+
return ModBan;
|
557
|
+
}());
|
558
|
+
exports.ModBan = ModBan;
|
559
|
+
var ModAddCommunity = /** @class */ (function () {
|
560
|
+
function ModAddCommunity() {
|
561
|
+
}
|
562
|
+
__decorate([
|
563
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
564
|
+
var value = _a.value;
|
565
|
+
return (0, monads_1.Some)(value);
|
566
|
+
}, { toClassOnly: true }),
|
567
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
568
|
+
var value = _a.value;
|
569
|
+
return (0, utils_1.toUndefined)(value);
|
570
|
+
}, { toPlainOnly: true }),
|
571
|
+
(0, class_transformer_1.Expose)()
|
572
|
+
], ModAddCommunity.prototype, "removed", void 0);
|
573
|
+
return ModAddCommunity;
|
574
|
+
}());
|
575
|
+
exports.ModAddCommunity = ModAddCommunity;
|
576
|
+
var ModTransferCommunity = /** @class */ (function () {
|
577
|
+
function ModTransferCommunity() {
|
578
|
+
}
|
579
|
+
__decorate([
|
580
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
581
|
+
var value = _a.value;
|
582
|
+
return (0, monads_1.Some)(value);
|
583
|
+
}, { toClassOnly: true }),
|
584
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
585
|
+
var value = _a.value;
|
586
|
+
return (0, utils_1.toUndefined)(value);
|
587
|
+
}, { toPlainOnly: true }),
|
588
|
+
(0, class_transformer_1.Expose)()
|
589
|
+
], ModTransferCommunity.prototype, "removed", void 0);
|
590
|
+
return ModTransferCommunity;
|
591
|
+
}());
|
592
|
+
exports.ModTransferCommunity = ModTransferCommunity;
|
593
|
+
var ModAdd = /** @class */ (function () {
|
594
|
+
function ModAdd() {
|
595
|
+
}
|
596
|
+
__decorate([
|
597
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
598
|
+
var value = _a.value;
|
599
|
+
return (0, monads_1.Some)(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
|
+
], ModAdd.prototype, "removed", void 0);
|
607
|
+
return ModAdd;
|
608
|
+
}());
|
609
|
+
exports.ModAdd = ModAdd;
|
610
|
+
var CommunitySafe = /** @class */ (function () {
|
611
|
+
function CommunitySafe() {
|
612
|
+
}
|
613
|
+
__decorate([
|
614
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
615
|
+
var value = _a.value;
|
616
|
+
return (0, monads_1.Some)(value);
|
617
|
+
}, { toClassOnly: true }),
|
618
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
619
|
+
var value = _a.value;
|
620
|
+
return (0, utils_1.toUndefined)(value);
|
621
|
+
}, { toPlainOnly: true }),
|
622
|
+
(0, class_transformer_1.Expose)()
|
623
|
+
], CommunitySafe.prototype, "description", void 0);
|
624
|
+
__decorate([
|
625
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
626
|
+
var value = _a.value;
|
627
|
+
return (0, monads_1.Some)(value);
|
628
|
+
}, { toClassOnly: true }),
|
629
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
630
|
+
var value = _a.value;
|
631
|
+
return (0, utils_1.toUndefined)(value);
|
632
|
+
}, { toPlainOnly: true }),
|
633
|
+
(0, class_transformer_1.Expose)()
|
634
|
+
], CommunitySafe.prototype, "updated", void 0);
|
635
|
+
__decorate([
|
636
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
637
|
+
var value = _a.value;
|
638
|
+
return (0, monads_1.Some)(value);
|
639
|
+
}, { toClassOnly: true }),
|
640
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
641
|
+
var value = _a.value;
|
642
|
+
return (0, utils_1.toUndefined)(value);
|
643
|
+
}, { toPlainOnly: true }),
|
644
|
+
(0, class_transformer_1.Expose)()
|
645
|
+
], CommunitySafe.prototype, "icon", void 0);
|
646
|
+
__decorate([
|
647
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
648
|
+
var value = _a.value;
|
649
|
+
return (0, monads_1.Some)(value);
|
650
|
+
}, { toClassOnly: true }),
|
651
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
652
|
+
var value = _a.value;
|
653
|
+
return (0, utils_1.toUndefined)(value);
|
654
|
+
}, { toPlainOnly: true }),
|
655
|
+
(0, class_transformer_1.Expose)()
|
656
|
+
], CommunitySafe.prototype, "banner", void 0);
|
657
|
+
return CommunitySafe;
|
658
|
+
}());
|
659
|
+
exports.CommunitySafe = CommunitySafe;
|
660
|
+
var CommentReport = /** @class */ (function () {
|
661
|
+
function CommentReport() {
|
662
|
+
}
|
663
|
+
__decorate([
|
664
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
665
|
+
var value = _a.value;
|
666
|
+
return (0, monads_1.Some)(value);
|
667
|
+
}, { toClassOnly: true }),
|
668
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
669
|
+
var value = _a.value;
|
670
|
+
return (0, utils_1.toUndefined)(value);
|
671
|
+
}, { toPlainOnly: true }),
|
672
|
+
(0, class_transformer_1.Expose)()
|
673
|
+
], CommentReport.prototype, "resolver_id", void 0);
|
674
|
+
__decorate([
|
675
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
676
|
+
var value = _a.value;
|
677
|
+
return (0, monads_1.Some)(value);
|
678
|
+
}, { toClassOnly: true }),
|
679
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
680
|
+
var value = _a.value;
|
681
|
+
return (0, utils_1.toUndefined)(value);
|
682
|
+
}, { toPlainOnly: true }),
|
683
|
+
(0, class_transformer_1.Expose)()
|
684
|
+
], CommentReport.prototype, "updated", void 0);
|
685
|
+
return CommentReport;
|
686
|
+
}());
|
687
|
+
exports.CommentReport = CommentReport;
|
688
|
+
var Comment = /** @class */ (function () {
|
689
|
+
function Comment() {
|
690
|
+
}
|
691
|
+
__decorate([
|
692
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
693
|
+
var value = _a.value;
|
694
|
+
return (0, monads_1.Some)(value);
|
695
|
+
}, { toClassOnly: true }),
|
696
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
697
|
+
var value = _a.value;
|
698
|
+
return (0, utils_1.toUndefined)(value);
|
699
|
+
}, { toPlainOnly: true }),
|
700
|
+
(0, class_transformer_1.Expose)()
|
701
|
+
], Comment.prototype, "parent_id", void 0);
|
702
|
+
__decorate([
|
703
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
704
|
+
var value = _a.value;
|
705
|
+
return (0, monads_1.Some)(value);
|
706
|
+
}, { toClassOnly: true }),
|
707
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
708
|
+
var value = _a.value;
|
709
|
+
return (0, utils_1.toUndefined)(value);
|
710
|
+
}, { toPlainOnly: true }),
|
711
|
+
(0, class_transformer_1.Expose)()
|
712
|
+
], Comment.prototype, "updated", void 0);
|
713
|
+
return Comment;
|
714
|
+
}());
|
715
|
+
exports.Comment = Comment;
|
716
|
+
var PersonMention = /** @class */ (function () {
|
717
|
+
function PersonMention() {
|
718
|
+
}
|
719
|
+
return PersonMention;
|
720
|
+
}());
|
721
|
+
exports.PersonMention = PersonMention;
|
722
|
+
var RegistrationApplication = /** @class */ (function () {
|
723
|
+
function RegistrationApplication() {
|
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
|
+
], RegistrationApplication.prototype, "admin_id", 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
|
+
], RegistrationApplication.prototype, "deny_reason", void 0);
|
747
|
+
return RegistrationApplication;
|
748
|
+
}());
|
749
|
+
exports.RegistrationApplication = RegistrationApplication;
|