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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,922 @@
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.BannedPersonsResponse = exports.GetBannedPersons = exports.BlockPersonResponse = exports.BlockPerson = exports.VerifyEmailResponse = exports.VerifyEmail = exports.GetUnreadCountResponse = exports.GetUnreadCount = exports.GetReportCountResponse = exports.GetReportCount = exports.PrivateMessageResponse = exports.PrivateMessagesResponse = exports.GetPrivateMessages = exports.MarkPrivateMessageAsRead = exports.DeletePrivateMessage = exports.EditPrivateMessage = exports.CreatePrivateMessage = exports.PasswordChange = exports.PasswordResetResponse = exports.PasswordReset = exports.DeleteAccountResponse = exports.DeleteAccount = exports.PersonMentionResponse = exports.MarkPersonMentionAsRead = exports.GetPersonMentions = exports.GetReplies = exports.BanPersonResponse = exports.BanPerson = exports.AddAdminResponse = exports.AddAdmin = exports.MarkAllAsRead = exports.GetPersonMentionsResponse = exports.GetRepliesResponse = exports.GetPersonDetailsResponse = exports.GetPersonDetails = exports.LoginResponse = exports.ChangePassword = exports.SaveUserSettings = exports.CaptchaResponse = exports.GetCaptchaResponse = exports.GetCaptcha = exports.Register = exports.Login = 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 Login = /** @class */ (function () {
14
+ function Login(username_or_email, password) {
15
+ this.username_or_email = username_or_email;
16
+ this.password = password;
17
+ }
18
+ return Login;
19
+ }());
20
+ exports.Login = Login;
21
+ /**
22
+ * Register a new user.
23
+ *
24
+ * Only the first user to register will be able to be the admin.
25
+ */
26
+ var Register = /** @class */ (function () {
27
+ function Register(username, email, password, password_verify, show_nsfw, captcha_uuid, captcha_answer, honeypot, answer) {
28
+ this.username = username;
29
+ this.email = email;
30
+ this.password = password;
31
+ this.password_verify = password_verify;
32
+ this.show_nsfw = show_nsfw;
33
+ this.captcha_uuid = captcha_uuid;
34
+ this.captcha_answer = captcha_answer;
35
+ this.honeypot = honeypot;
36
+ this.answer = answer;
37
+ }
38
+ __decorate([
39
+ (0, class_transformer_1.Transform)(function (_a) {
40
+ var value = _a.value;
41
+ return (0, monads_1.Some)(value);
42
+ }, { toClassOnly: true }),
43
+ (0, class_transformer_1.Transform)(function (_a) {
44
+ var value = _a.value;
45
+ return (0, utils_1.toUndefined)(value);
46
+ }, { toPlainOnly: true }),
47
+ (0, class_transformer_1.Expose)()
48
+ ], Register.prototype, "email", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Transform)(function (_a) {
51
+ var value = _a.value;
52
+ return (0, monads_1.Some)(value);
53
+ }, { toClassOnly: true }),
54
+ (0, class_transformer_1.Transform)(function (_a) {
55
+ var value = _a.value;
56
+ return (0, utils_1.toUndefined)(value);
57
+ }, { toPlainOnly: true }),
58
+ (0, class_transformer_1.Expose)()
59
+ ], Register.prototype, "captcha_uuid", void 0);
60
+ __decorate([
61
+ (0, class_transformer_1.Transform)(function (_a) {
62
+ var value = _a.value;
63
+ return (0, monads_1.Some)(value);
64
+ }, { toClassOnly: true }),
65
+ (0, class_transformer_1.Transform)(function (_a) {
66
+ var value = _a.value;
67
+ return (0, utils_1.toUndefined)(value);
68
+ }, { toPlainOnly: true }),
69
+ (0, class_transformer_1.Expose)()
70
+ ], Register.prototype, "captcha_answer", void 0);
71
+ __decorate([
72
+ (0, class_transformer_1.Transform)(function (_a) {
73
+ var value = _a.value;
74
+ return (0, monads_1.Some)(value);
75
+ }, { toClassOnly: true }),
76
+ (0, class_transformer_1.Transform)(function (_a) {
77
+ var value = _a.value;
78
+ return (0, utils_1.toUndefined)(value);
79
+ }, { toPlainOnly: true }),
80
+ (0, class_transformer_1.Expose)()
81
+ ], Register.prototype, "honeypot", void 0);
82
+ __decorate([
83
+ (0, class_transformer_1.Transform)(function (_a) {
84
+ var value = _a.value;
85
+ return (0, monads_1.Some)(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
+ ], Register.prototype, "answer", void 0);
93
+ return Register;
94
+ }());
95
+ exports.Register = Register;
96
+ var GetCaptcha = /** @class */ (function () {
97
+ function GetCaptcha() {
98
+ }
99
+ return GetCaptcha;
100
+ }());
101
+ exports.GetCaptcha = GetCaptcha;
102
+ var GetCaptchaResponse = /** @class */ (function () {
103
+ function GetCaptchaResponse() {
104
+ }
105
+ __decorate([
106
+ (0, class_transformer_1.Transform)(function (_a) {
107
+ var value = _a.value;
108
+ return (0, monads_1.Some)(value);
109
+ }, { toClassOnly: true }),
110
+ (0, class_transformer_1.Transform)(function (_a) {
111
+ var value = _a.value;
112
+ return (0, utils_1.toUndefined)(value);
113
+ }, { toPlainOnly: true }),
114
+ (0, class_transformer_1.Expose)()
115
+ ], GetCaptchaResponse.prototype, "ok", void 0);
116
+ return GetCaptchaResponse;
117
+ }());
118
+ exports.GetCaptchaResponse = GetCaptchaResponse;
119
+ var CaptchaResponse = /** @class */ (function () {
120
+ function CaptchaResponse() {
121
+ }
122
+ __decorate([
123
+ (0, class_transformer_1.Transform)(function (_a) {
124
+ var value = _a.value;
125
+ return (0, monads_1.Some)(value);
126
+ }, { toClassOnly: true }),
127
+ (0, class_transformer_1.Transform)(function (_a) {
128
+ var value = _a.value;
129
+ return (0, utils_1.toUndefined)(value);
130
+ }, { toPlainOnly: true }),
131
+ (0, class_transformer_1.Expose)()
132
+ ], CaptchaResponse.prototype, "wav", void 0);
133
+ return CaptchaResponse;
134
+ }());
135
+ exports.CaptchaResponse = CaptchaResponse;
136
+ var SaveUserSettings = /** @class */ (function () {
137
+ function SaveUserSettings(show_nsfw, theme, default_sort_type, default_listing_type, lang, avatar, banner, display_name, email, bio, matrix_user_id, show_avatars, show_scores, send_notifications_to_email, bot_account, show_bot_accounts, show_read_posts, show_new_post_notifs, auth) {
138
+ this.show_nsfw = show_nsfw;
139
+ this.theme = theme;
140
+ this.default_sort_type = default_sort_type;
141
+ this.default_listing_type = default_listing_type;
142
+ this.lang = lang;
143
+ this.avatar = avatar;
144
+ this.banner = banner;
145
+ this.display_name = display_name;
146
+ this.email = email;
147
+ this.bio = bio;
148
+ this.matrix_user_id = matrix_user_id;
149
+ this.show_avatars = show_avatars;
150
+ this.show_scores = show_scores;
151
+ this.send_notifications_to_email = send_notifications_to_email;
152
+ this.bot_account = bot_account;
153
+ this.show_bot_accounts = show_bot_accounts;
154
+ this.show_read_posts = show_read_posts;
155
+ this.show_new_post_notifs = show_new_post_notifs;
156
+ this.auth = auth;
157
+ }
158
+ __decorate([
159
+ (0, class_transformer_1.Transform)(function (_a) {
160
+ var value = _a.value;
161
+ return (0, monads_1.Some)(value);
162
+ }, { toClassOnly: true }),
163
+ (0, class_transformer_1.Transform)(function (_a) {
164
+ var value = _a.value;
165
+ return (0, utils_1.toUndefined)(value);
166
+ }, { toPlainOnly: true }),
167
+ (0, class_transformer_1.Expose)()
168
+ ], SaveUserSettings.prototype, "show_nsfw", void 0);
169
+ __decorate([
170
+ (0, class_transformer_1.Transform)(function (_a) {
171
+ var value = _a.value;
172
+ return (0, monads_1.Some)(value);
173
+ }, { toClassOnly: true }),
174
+ (0, class_transformer_1.Transform)(function (_a) {
175
+ var value = _a.value;
176
+ return (0, utils_1.toUndefined)(value);
177
+ }, { toPlainOnly: true }),
178
+ (0, class_transformer_1.Expose)()
179
+ ], SaveUserSettings.prototype, "theme", void 0);
180
+ __decorate([
181
+ (0, class_transformer_1.Transform)(function (_a) {
182
+ var value = _a.value;
183
+ return (0, monads_1.Some)(value);
184
+ }, { toClassOnly: true }),
185
+ (0, class_transformer_1.Transform)(function (_a) {
186
+ var value = _a.value;
187
+ return (0, utils_1.toUndefined)(value);
188
+ }, { toPlainOnly: true }),
189
+ (0, class_transformer_1.Expose)()
190
+ ], SaveUserSettings.prototype, "default_sort_type", void 0);
191
+ __decorate([
192
+ (0, class_transformer_1.Transform)(function (_a) {
193
+ var value = _a.value;
194
+ return (0, monads_1.Some)(value);
195
+ }, { toClassOnly: true }),
196
+ (0, class_transformer_1.Transform)(function (_a) {
197
+ var value = _a.value;
198
+ return (0, utils_1.toUndefined)(value);
199
+ }, { toPlainOnly: true }),
200
+ (0, class_transformer_1.Expose)()
201
+ ], SaveUserSettings.prototype, "default_listing_type", void 0);
202
+ __decorate([
203
+ (0, class_transformer_1.Transform)(function (_a) {
204
+ var value = _a.value;
205
+ return (0, monads_1.Some)(value);
206
+ }, { toClassOnly: true }),
207
+ (0, class_transformer_1.Transform)(function (_a) {
208
+ var value = _a.value;
209
+ return (0, utils_1.toUndefined)(value);
210
+ }, { toPlainOnly: true }),
211
+ (0, class_transformer_1.Expose)()
212
+ ], SaveUserSettings.prototype, "lang", void 0);
213
+ __decorate([
214
+ (0, class_transformer_1.Transform)(function (_a) {
215
+ var value = _a.value;
216
+ return (0, monads_1.Some)(value);
217
+ }, { toClassOnly: true }),
218
+ (0, class_transformer_1.Transform)(function (_a) {
219
+ var value = _a.value;
220
+ return (0, utils_1.toUndefined)(value);
221
+ }, { toPlainOnly: true }),
222
+ (0, class_transformer_1.Expose)()
223
+ ], SaveUserSettings.prototype, "avatar", void 0);
224
+ __decorate([
225
+ (0, class_transformer_1.Transform)(function (_a) {
226
+ var value = _a.value;
227
+ return (0, monads_1.Some)(value);
228
+ }, { toClassOnly: true }),
229
+ (0, class_transformer_1.Transform)(function (_a) {
230
+ var value = _a.value;
231
+ return (0, utils_1.toUndefined)(value);
232
+ }, { toPlainOnly: true }),
233
+ (0, class_transformer_1.Expose)()
234
+ ], SaveUserSettings.prototype, "banner", void 0);
235
+ __decorate([
236
+ (0, class_transformer_1.Transform)(function (_a) {
237
+ var value = _a.value;
238
+ return (0, monads_1.Some)(value);
239
+ }, { toClassOnly: true }),
240
+ (0, class_transformer_1.Transform)(function (_a) {
241
+ var value = _a.value;
242
+ return (0, utils_1.toUndefined)(value);
243
+ }, { toPlainOnly: true }),
244
+ (0, class_transformer_1.Expose)()
245
+ ], SaveUserSettings.prototype, "display_name", void 0);
246
+ __decorate([
247
+ (0, class_transformer_1.Transform)(function (_a) {
248
+ var value = _a.value;
249
+ return (0, monads_1.Some)(value);
250
+ }, { toClassOnly: true }),
251
+ (0, class_transformer_1.Transform)(function (_a) {
252
+ var value = _a.value;
253
+ return (0, utils_1.toUndefined)(value);
254
+ }, { toPlainOnly: true }),
255
+ (0, class_transformer_1.Expose)()
256
+ ], SaveUserSettings.prototype, "email", void 0);
257
+ __decorate([
258
+ (0, class_transformer_1.Transform)(function (_a) {
259
+ var value = _a.value;
260
+ return (0, monads_1.Some)(value);
261
+ }, { toClassOnly: true }),
262
+ (0, class_transformer_1.Transform)(function (_a) {
263
+ var value = _a.value;
264
+ return (0, utils_1.toUndefined)(value);
265
+ }, { toPlainOnly: true }),
266
+ (0, class_transformer_1.Expose)()
267
+ ], SaveUserSettings.prototype, "bio", void 0);
268
+ __decorate([
269
+ (0, class_transformer_1.Transform)(function (_a) {
270
+ var value = _a.value;
271
+ return (0, monads_1.Some)(value);
272
+ }, { toClassOnly: true }),
273
+ (0, class_transformer_1.Transform)(function (_a) {
274
+ var value = _a.value;
275
+ return (0, utils_1.toUndefined)(value);
276
+ }, { toPlainOnly: true }),
277
+ (0, class_transformer_1.Expose)()
278
+ ], SaveUserSettings.prototype, "matrix_user_id", void 0);
279
+ __decorate([
280
+ (0, class_transformer_1.Transform)(function (_a) {
281
+ var value = _a.value;
282
+ return (0, monads_1.Some)(value);
283
+ }, { toClassOnly: true }),
284
+ (0, class_transformer_1.Transform)(function (_a) {
285
+ var value = _a.value;
286
+ return (0, utils_1.toUndefined)(value);
287
+ }, { toPlainOnly: true }),
288
+ (0, class_transformer_1.Expose)()
289
+ ], SaveUserSettings.prototype, "show_avatars", void 0);
290
+ __decorate([
291
+ (0, class_transformer_1.Transform)(function (_a) {
292
+ var value = _a.value;
293
+ return (0, monads_1.Some)(value);
294
+ }, { toClassOnly: true }),
295
+ (0, class_transformer_1.Transform)(function (_a) {
296
+ var value = _a.value;
297
+ return (0, utils_1.toUndefined)(value);
298
+ }, { toPlainOnly: true }),
299
+ (0, class_transformer_1.Expose)()
300
+ ], SaveUserSettings.prototype, "show_scores", void 0);
301
+ __decorate([
302
+ (0, class_transformer_1.Transform)(function (_a) {
303
+ var value = _a.value;
304
+ return (0, monads_1.Some)(value);
305
+ }, { toClassOnly: true }),
306
+ (0, class_transformer_1.Transform)(function (_a) {
307
+ var value = _a.value;
308
+ return (0, utils_1.toUndefined)(value);
309
+ }, { toPlainOnly: true }),
310
+ (0, class_transformer_1.Expose)()
311
+ ], SaveUserSettings.prototype, "send_notifications_to_email", void 0);
312
+ __decorate([
313
+ (0, class_transformer_1.Transform)(function (_a) {
314
+ var value = _a.value;
315
+ return (0, monads_1.Some)(value);
316
+ }, { toClassOnly: true }),
317
+ (0, class_transformer_1.Transform)(function (_a) {
318
+ var value = _a.value;
319
+ return (0, utils_1.toUndefined)(value);
320
+ }, { toPlainOnly: true }),
321
+ (0, class_transformer_1.Expose)()
322
+ ], SaveUserSettings.prototype, "bot_account", void 0);
323
+ __decorate([
324
+ (0, class_transformer_1.Transform)(function (_a) {
325
+ var value = _a.value;
326
+ return (0, monads_1.Some)(value);
327
+ }, { toClassOnly: true }),
328
+ (0, class_transformer_1.Transform)(function (_a) {
329
+ var value = _a.value;
330
+ return (0, utils_1.toUndefined)(value);
331
+ }, { toPlainOnly: true }),
332
+ (0, class_transformer_1.Expose)()
333
+ ], SaveUserSettings.prototype, "show_bot_accounts", void 0);
334
+ __decorate([
335
+ (0, class_transformer_1.Transform)(function (_a) {
336
+ var value = _a.value;
337
+ return (0, monads_1.Some)(value);
338
+ }, { toClassOnly: true }),
339
+ (0, class_transformer_1.Transform)(function (_a) {
340
+ var value = _a.value;
341
+ return (0, utils_1.toUndefined)(value);
342
+ }, { toPlainOnly: true }),
343
+ (0, class_transformer_1.Expose)()
344
+ ], SaveUserSettings.prototype, "show_read_posts", void 0);
345
+ __decorate([
346
+ (0, class_transformer_1.Transform)(function (_a) {
347
+ var value = _a.value;
348
+ return (0, monads_1.Some)(value);
349
+ }, { toClassOnly: true }),
350
+ (0, class_transformer_1.Transform)(function (_a) {
351
+ var value = _a.value;
352
+ return (0, utils_1.toUndefined)(value);
353
+ }, { toPlainOnly: true }),
354
+ (0, class_transformer_1.Expose)()
355
+ ], SaveUserSettings.prototype, "show_new_post_notifs", void 0);
356
+ return SaveUserSettings;
357
+ }());
358
+ exports.SaveUserSettings = SaveUserSettings;
359
+ var ChangePassword = /** @class */ (function () {
360
+ function ChangePassword(new_password, new_password_verify, old_password, auth) {
361
+ this.new_password = new_password;
362
+ this.new_password_verify = new_password_verify;
363
+ this.old_password = old_password;
364
+ this.auth = auth;
365
+ }
366
+ return ChangePassword;
367
+ }());
368
+ exports.ChangePassword = ChangePassword;
369
+ /**
370
+ * The `jwt` string should be stored and used anywhere `auth` is called for.
371
+ */
372
+ var LoginResponse = /** @class */ (function () {
373
+ function LoginResponse() {
374
+ }
375
+ __decorate([
376
+ (0, class_transformer_1.Transform)(function (_a) {
377
+ var value = _a.value;
378
+ return (0, monads_1.Some)(value);
379
+ }, { toClassOnly: true }),
380
+ (0, class_transformer_1.Transform)(function (_a) {
381
+ var value = _a.value;
382
+ return (0, utils_1.toUndefined)(value);
383
+ }, { toPlainOnly: true }),
384
+ (0, class_transformer_1.Expose)()
385
+ ], LoginResponse.prototype, "jwt", void 0);
386
+ return LoginResponse;
387
+ }());
388
+ exports.LoginResponse = LoginResponse;
389
+ var GetPersonDetails = /** @class */ (function () {
390
+ function GetPersonDetails(person_id, username, sort, page, limit, community_id, saved_only, auth) {
391
+ this.person_id = person_id;
392
+ this.username = username;
393
+ this.sort = sort;
394
+ this.page = page;
395
+ this.limit = limit;
396
+ this.community_id = community_id;
397
+ this.saved_only = saved_only;
398
+ this.auth = auth;
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
+ ], GetPersonDetails.prototype, "person_id", void 0);
411
+ __decorate([
412
+ (0, class_transformer_1.Transform)(function (_a) {
413
+ var value = _a.value;
414
+ return (0, monads_1.Some)(value);
415
+ }, { toClassOnly: true }),
416
+ (0, class_transformer_1.Transform)(function (_a) {
417
+ var value = _a.value;
418
+ return (0, utils_1.toUndefined)(value);
419
+ }, { toPlainOnly: true }),
420
+ (0, class_transformer_1.Expose)()
421
+ ], GetPersonDetails.prototype, "username", void 0);
422
+ __decorate([
423
+ (0, class_transformer_1.Transform)(function (_a) {
424
+ var value = _a.value;
425
+ return (0, monads_1.Some)(value);
426
+ }, { toClassOnly: true }),
427
+ (0, class_transformer_1.Transform)(function (_a) {
428
+ var value = _a.value;
429
+ return (0, utils_1.toUndefined)(value);
430
+ }, { toPlainOnly: true }),
431
+ (0, class_transformer_1.Expose)()
432
+ ], GetPersonDetails.prototype, "sort", void 0);
433
+ __decorate([
434
+ (0, class_transformer_1.Transform)(function (_a) {
435
+ var value = _a.value;
436
+ return (0, monads_1.Some)(value);
437
+ }, { toClassOnly: true }),
438
+ (0, class_transformer_1.Transform)(function (_a) {
439
+ var value = _a.value;
440
+ return (0, utils_1.toUndefined)(value);
441
+ }, { toPlainOnly: true }),
442
+ (0, class_transformer_1.Expose)()
443
+ ], GetPersonDetails.prototype, "page", void 0);
444
+ __decorate([
445
+ (0, class_transformer_1.Transform)(function (_a) {
446
+ var value = _a.value;
447
+ return (0, monads_1.Some)(value);
448
+ }, { toClassOnly: true }),
449
+ (0, class_transformer_1.Transform)(function (_a) {
450
+ var value = _a.value;
451
+ return (0, utils_1.toUndefined)(value);
452
+ }, { toPlainOnly: true }),
453
+ (0, class_transformer_1.Expose)()
454
+ ], GetPersonDetails.prototype, "limit", void 0);
455
+ __decorate([
456
+ (0, class_transformer_1.Transform)(function (_a) {
457
+ var value = _a.value;
458
+ return (0, monads_1.Some)(value);
459
+ }, { toClassOnly: true }),
460
+ (0, class_transformer_1.Transform)(function (_a) {
461
+ var value = _a.value;
462
+ return (0, utils_1.toUndefined)(value);
463
+ }, { toPlainOnly: true }),
464
+ (0, class_transformer_1.Expose)()
465
+ ], GetPersonDetails.prototype, "community_id", void 0);
466
+ __decorate([
467
+ (0, class_transformer_1.Transform)(function (_a) {
468
+ var value = _a.value;
469
+ return (0, monads_1.Some)(value);
470
+ }, { toClassOnly: true }),
471
+ (0, class_transformer_1.Transform)(function (_a) {
472
+ var value = _a.value;
473
+ return (0, utils_1.toUndefined)(value);
474
+ }, { toPlainOnly: true }),
475
+ (0, class_transformer_1.Expose)()
476
+ ], GetPersonDetails.prototype, "saved_only", void 0);
477
+ __decorate([
478
+ (0, class_transformer_1.Transform)(function (_a) {
479
+ var value = _a.value;
480
+ return (0, monads_1.Some)(value);
481
+ }, { toClassOnly: true }),
482
+ (0, class_transformer_1.Transform)(function (_a) {
483
+ var value = _a.value;
484
+ return (0, utils_1.toUndefined)(value);
485
+ }, { toPlainOnly: true }),
486
+ (0, class_transformer_1.Expose)()
487
+ ], GetPersonDetails.prototype, "auth", void 0);
488
+ return GetPersonDetails;
489
+ }());
490
+ exports.GetPersonDetails = GetPersonDetails;
491
+ var GetPersonDetailsResponse = /** @class */ (function () {
492
+ function GetPersonDetailsResponse() {
493
+ }
494
+ return GetPersonDetailsResponse;
495
+ }());
496
+ exports.GetPersonDetailsResponse = GetPersonDetailsResponse;
497
+ var GetRepliesResponse = /** @class */ (function () {
498
+ function GetRepliesResponse() {
499
+ }
500
+ return GetRepliesResponse;
501
+ }());
502
+ exports.GetRepliesResponse = GetRepliesResponse;
503
+ var GetPersonMentionsResponse = /** @class */ (function () {
504
+ function GetPersonMentionsResponse() {
505
+ }
506
+ return GetPersonMentionsResponse;
507
+ }());
508
+ exports.GetPersonMentionsResponse = GetPersonMentionsResponse;
509
+ var MarkAllAsRead = /** @class */ (function () {
510
+ function MarkAllAsRead(auth) {
511
+ this.auth = auth;
512
+ }
513
+ return MarkAllAsRead;
514
+ }());
515
+ exports.MarkAllAsRead = MarkAllAsRead;
516
+ var AddAdmin = /** @class */ (function () {
517
+ function AddAdmin(person_id, added, auth) {
518
+ this.person_id = person_id;
519
+ this.added = added;
520
+ this.auth = auth;
521
+ }
522
+ return AddAdmin;
523
+ }());
524
+ exports.AddAdmin = AddAdmin;
525
+ var AddAdminResponse = /** @class */ (function () {
526
+ function AddAdminResponse() {
527
+ }
528
+ return AddAdminResponse;
529
+ }());
530
+ exports.AddAdminResponse = AddAdminResponse;
531
+ var BanPerson = /** @class */ (function () {
532
+ function BanPerson(person_id, ban, remove_data, reason, expires, auth) {
533
+ this.person_id = person_id;
534
+ this.ban = ban;
535
+ this.remove_data = remove_data;
536
+ this.reason = reason;
537
+ this.expires = expires;
538
+ this.auth = auth;
539
+ }
540
+ __decorate([
541
+ (0, class_transformer_1.Transform)(function (_a) {
542
+ var value = _a.value;
543
+ return (0, monads_1.Some)(value);
544
+ }, { toClassOnly: true }),
545
+ (0, class_transformer_1.Transform)(function (_a) {
546
+ var value = _a.value;
547
+ return (0, utils_1.toUndefined)(value);
548
+ }, { toPlainOnly: true }),
549
+ (0, class_transformer_1.Expose)()
550
+ ], BanPerson.prototype, "remove_data", void 0);
551
+ __decorate([
552
+ (0, class_transformer_1.Transform)(function (_a) {
553
+ var value = _a.value;
554
+ return (0, monads_1.Some)(value);
555
+ }, { toClassOnly: true }),
556
+ (0, class_transformer_1.Transform)(function (_a) {
557
+ var value = _a.value;
558
+ return (0, utils_1.toUndefined)(value);
559
+ }, { toPlainOnly: true }),
560
+ (0, class_transformer_1.Expose)()
561
+ ], BanPerson.prototype, "reason", void 0);
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
+ ], BanPerson.prototype, "expires", void 0);
573
+ return BanPerson;
574
+ }());
575
+ exports.BanPerson = BanPerson;
576
+ var BanPersonResponse = /** @class */ (function () {
577
+ function BanPersonResponse() {
578
+ }
579
+ return BanPersonResponse;
580
+ }());
581
+ exports.BanPersonResponse = BanPersonResponse;
582
+ var GetReplies = /** @class */ (function () {
583
+ function GetReplies(sort, page, limit, unread_only, auth) {
584
+ this.sort = sort;
585
+ this.page = page;
586
+ this.limit = limit;
587
+ this.unread_only = unread_only;
588
+ this.auth = auth;
589
+ }
590
+ __decorate([
591
+ (0, class_transformer_1.Transform)(function (_a) {
592
+ var value = _a.value;
593
+ return (0, monads_1.Some)(value);
594
+ }, { toClassOnly: true }),
595
+ (0, class_transformer_1.Transform)(function (_a) {
596
+ var value = _a.value;
597
+ return (0, utils_1.toUndefined)(value);
598
+ }, { toPlainOnly: true }),
599
+ (0, class_transformer_1.Expose)()
600
+ ], GetReplies.prototype, "sort", void 0);
601
+ __decorate([
602
+ (0, class_transformer_1.Transform)(function (_a) {
603
+ var value = _a.value;
604
+ return (0, monads_1.Some)(value);
605
+ }, { toClassOnly: true }),
606
+ (0, class_transformer_1.Transform)(function (_a) {
607
+ var value = _a.value;
608
+ return (0, utils_1.toUndefined)(value);
609
+ }, { toPlainOnly: true }),
610
+ (0, class_transformer_1.Expose)()
611
+ ], GetReplies.prototype, "page", void 0);
612
+ __decorate([
613
+ (0, class_transformer_1.Transform)(function (_a) {
614
+ var value = _a.value;
615
+ return (0, monads_1.Some)(value);
616
+ }, { toClassOnly: true }),
617
+ (0, class_transformer_1.Transform)(function (_a) {
618
+ var value = _a.value;
619
+ return (0, utils_1.toUndefined)(value);
620
+ }, { toPlainOnly: true }),
621
+ (0, class_transformer_1.Expose)()
622
+ ], GetReplies.prototype, "limit", void 0);
623
+ __decorate([
624
+ (0, class_transformer_1.Transform)(function (_a) {
625
+ var value = _a.value;
626
+ return (0, monads_1.Some)(value);
627
+ }, { toClassOnly: true }),
628
+ (0, class_transformer_1.Transform)(function (_a) {
629
+ var value = _a.value;
630
+ return (0, utils_1.toUndefined)(value);
631
+ }, { toPlainOnly: true }),
632
+ (0, class_transformer_1.Expose)()
633
+ ], GetReplies.prototype, "unread_only", void 0);
634
+ return GetReplies;
635
+ }());
636
+ exports.GetReplies = GetReplies;
637
+ var GetPersonMentions = /** @class */ (function () {
638
+ function GetPersonMentions(sort, page, limit, unread_only, auth) {
639
+ this.sort = sort;
640
+ this.page = page;
641
+ this.limit = limit;
642
+ this.unread_only = unread_only;
643
+ this.auth = auth;
644
+ }
645
+ __decorate([
646
+ (0, class_transformer_1.Transform)(function (_a) {
647
+ var value = _a.value;
648
+ return (0, monads_1.Some)(value);
649
+ }, { toClassOnly: true }),
650
+ (0, class_transformer_1.Transform)(function (_a) {
651
+ var value = _a.value;
652
+ return (0, utils_1.toUndefined)(value);
653
+ }, { toPlainOnly: true }),
654
+ (0, class_transformer_1.Expose)()
655
+ ], GetPersonMentions.prototype, "sort", void 0);
656
+ __decorate([
657
+ (0, class_transformer_1.Transform)(function (_a) {
658
+ var value = _a.value;
659
+ return (0, monads_1.Some)(value);
660
+ }, { toClassOnly: true }),
661
+ (0, class_transformer_1.Transform)(function (_a) {
662
+ var value = _a.value;
663
+ return (0, utils_1.toUndefined)(value);
664
+ }, { toPlainOnly: true }),
665
+ (0, class_transformer_1.Expose)()
666
+ ], GetPersonMentions.prototype, "page", void 0);
667
+ __decorate([
668
+ (0, class_transformer_1.Transform)(function (_a) {
669
+ var value = _a.value;
670
+ return (0, monads_1.Some)(value);
671
+ }, { toClassOnly: true }),
672
+ (0, class_transformer_1.Transform)(function (_a) {
673
+ var value = _a.value;
674
+ return (0, utils_1.toUndefined)(value);
675
+ }, { toPlainOnly: true }),
676
+ (0, class_transformer_1.Expose)()
677
+ ], GetPersonMentions.prototype, "limit", void 0);
678
+ __decorate([
679
+ (0, class_transformer_1.Transform)(function (_a) {
680
+ var value = _a.value;
681
+ return (0, monads_1.Some)(value);
682
+ }, { toClassOnly: true }),
683
+ (0, class_transformer_1.Transform)(function (_a) {
684
+ var value = _a.value;
685
+ return (0, utils_1.toUndefined)(value);
686
+ }, { toPlainOnly: true }),
687
+ (0, class_transformer_1.Expose)()
688
+ ], GetPersonMentions.prototype, "unread_only", void 0);
689
+ return GetPersonMentions;
690
+ }());
691
+ exports.GetPersonMentions = GetPersonMentions;
692
+ var MarkPersonMentionAsRead = /** @class */ (function () {
693
+ function MarkPersonMentionAsRead(person_mention_id, read, auth) {
694
+ this.person_mention_id = person_mention_id;
695
+ this.read = read;
696
+ this.auth = auth;
697
+ }
698
+ return MarkPersonMentionAsRead;
699
+ }());
700
+ exports.MarkPersonMentionAsRead = MarkPersonMentionAsRead;
701
+ var PersonMentionResponse = /** @class */ (function () {
702
+ function PersonMentionResponse() {
703
+ }
704
+ return PersonMentionResponse;
705
+ }());
706
+ exports.PersonMentionResponse = PersonMentionResponse;
707
+ /**
708
+ * Permanently deletes your posts and comments
709
+ */
710
+ var DeleteAccount = /** @class */ (function () {
711
+ function DeleteAccount(password, auth) {
712
+ this.password = password;
713
+ this.auth = auth;
714
+ }
715
+ return DeleteAccount;
716
+ }());
717
+ exports.DeleteAccount = DeleteAccount;
718
+ var DeleteAccountResponse = /** @class */ (function () {
719
+ function DeleteAccountResponse() {
720
+ }
721
+ return DeleteAccountResponse;
722
+ }());
723
+ exports.DeleteAccountResponse = DeleteAccountResponse;
724
+ var PasswordReset = /** @class */ (function () {
725
+ function PasswordReset(email) {
726
+ this.email = email;
727
+ }
728
+ return PasswordReset;
729
+ }());
730
+ exports.PasswordReset = PasswordReset;
731
+ var PasswordResetResponse = /** @class */ (function () {
732
+ function PasswordResetResponse() {
733
+ }
734
+ return PasswordResetResponse;
735
+ }());
736
+ exports.PasswordResetResponse = PasswordResetResponse;
737
+ var PasswordChange = /** @class */ (function () {
738
+ function PasswordChange(token, password, password_verify) {
739
+ this.token = token;
740
+ this.password = password;
741
+ this.password_verify = password_verify;
742
+ }
743
+ return PasswordChange;
744
+ }());
745
+ exports.PasswordChange = PasswordChange;
746
+ var CreatePrivateMessage = /** @class */ (function () {
747
+ function CreatePrivateMessage(content, recipient_id, auth) {
748
+ this.content = content;
749
+ this.recipient_id = recipient_id;
750
+ this.auth = auth;
751
+ }
752
+ return CreatePrivateMessage;
753
+ }());
754
+ exports.CreatePrivateMessage = CreatePrivateMessage;
755
+ var EditPrivateMessage = /** @class */ (function () {
756
+ function EditPrivateMessage(private_message_id, content, auth) {
757
+ this.private_message_id = private_message_id;
758
+ this.content = content;
759
+ this.auth = auth;
760
+ }
761
+ return EditPrivateMessage;
762
+ }());
763
+ exports.EditPrivateMessage = EditPrivateMessage;
764
+ var DeletePrivateMessage = /** @class */ (function () {
765
+ function DeletePrivateMessage(private_message_id, deleted, auth) {
766
+ this.private_message_id = private_message_id;
767
+ this.deleted = deleted;
768
+ this.auth = auth;
769
+ }
770
+ return DeletePrivateMessage;
771
+ }());
772
+ exports.DeletePrivateMessage = DeletePrivateMessage;
773
+ var MarkPrivateMessageAsRead = /** @class */ (function () {
774
+ function MarkPrivateMessageAsRead(private_message_id, read, auth) {
775
+ this.private_message_id = private_message_id;
776
+ this.read = read;
777
+ this.auth = auth;
778
+ }
779
+ return MarkPrivateMessageAsRead;
780
+ }());
781
+ exports.MarkPrivateMessageAsRead = MarkPrivateMessageAsRead;
782
+ var GetPrivateMessages = /** @class */ (function () {
783
+ function GetPrivateMessages() {
784
+ }
785
+ __decorate([
786
+ (0, class_transformer_1.Transform)(function (_a) {
787
+ var value = _a.value;
788
+ return (0, monads_1.Some)(value);
789
+ }, { toClassOnly: true }),
790
+ (0, class_transformer_1.Transform)(function (_a) {
791
+ var value = _a.value;
792
+ return (0, utils_1.toUndefined)(value);
793
+ }, { toPlainOnly: true }),
794
+ (0, class_transformer_1.Expose)()
795
+ ], GetPrivateMessages.prototype, "unread_only", void 0);
796
+ __decorate([
797
+ (0, class_transformer_1.Transform)(function (_a) {
798
+ var value = _a.value;
799
+ return (0, monads_1.Some)(value);
800
+ }, { toClassOnly: true }),
801
+ (0, class_transformer_1.Transform)(function (_a) {
802
+ var value = _a.value;
803
+ return (0, utils_1.toUndefined)(value);
804
+ }, { toPlainOnly: true }),
805
+ (0, class_transformer_1.Expose)()
806
+ ], GetPrivateMessages.prototype, "page", void 0);
807
+ __decorate([
808
+ (0, class_transformer_1.Transform)(function (_a) {
809
+ var value = _a.value;
810
+ return (0, monads_1.Some)(value);
811
+ }, { toClassOnly: true }),
812
+ (0, class_transformer_1.Transform)(function (_a) {
813
+ var value = _a.value;
814
+ return (0, utils_1.toUndefined)(value);
815
+ }, { toPlainOnly: true }),
816
+ (0, class_transformer_1.Expose)()
817
+ ], GetPrivateMessages.prototype, "limit", void 0);
818
+ return GetPrivateMessages;
819
+ }());
820
+ exports.GetPrivateMessages = GetPrivateMessages;
821
+ var PrivateMessagesResponse = /** @class */ (function () {
822
+ function PrivateMessagesResponse() {
823
+ }
824
+ return PrivateMessagesResponse;
825
+ }());
826
+ exports.PrivateMessagesResponse = PrivateMessagesResponse;
827
+ var PrivateMessageResponse = /** @class */ (function () {
828
+ function PrivateMessageResponse() {
829
+ }
830
+ return PrivateMessageResponse;
831
+ }());
832
+ exports.PrivateMessageResponse = PrivateMessageResponse;
833
+ var GetReportCount = /** @class */ (function () {
834
+ function GetReportCount(community_id, auth) {
835
+ this.community_id = community_id;
836
+ this.auth = auth;
837
+ }
838
+ __decorate([
839
+ (0, class_transformer_1.Transform)(function (_a) {
840
+ var value = _a.value;
841
+ return (0, monads_1.Some)(value);
842
+ }, { toClassOnly: true }),
843
+ (0, class_transformer_1.Transform)(function (_a) {
844
+ var value = _a.value;
845
+ return (0, utils_1.toUndefined)(value);
846
+ }, { toPlainOnly: true }),
847
+ (0, class_transformer_1.Expose)()
848
+ ], GetReportCount.prototype, "community_id", void 0);
849
+ return GetReportCount;
850
+ }());
851
+ exports.GetReportCount = GetReportCount;
852
+ var GetReportCountResponse = /** @class */ (function () {
853
+ function GetReportCountResponse() {
854
+ }
855
+ __decorate([
856
+ (0, class_transformer_1.Transform)(function (_a) {
857
+ var value = _a.value;
858
+ return (0, monads_1.Some)(value);
859
+ }, { toClassOnly: true }),
860
+ (0, class_transformer_1.Transform)(function (_a) {
861
+ var value = _a.value;
862
+ return (0, utils_1.toUndefined)(value);
863
+ }, { toPlainOnly: true }),
864
+ (0, class_transformer_1.Expose)()
865
+ ], GetReportCountResponse.prototype, "community_id", void 0);
866
+ return GetReportCountResponse;
867
+ }());
868
+ exports.GetReportCountResponse = GetReportCountResponse;
869
+ var GetUnreadCount = /** @class */ (function () {
870
+ function GetUnreadCount(auth) {
871
+ this.auth = auth;
872
+ }
873
+ return GetUnreadCount;
874
+ }());
875
+ exports.GetUnreadCount = GetUnreadCount;
876
+ var GetUnreadCountResponse = /** @class */ (function () {
877
+ function GetUnreadCountResponse() {
878
+ }
879
+ return GetUnreadCountResponse;
880
+ }());
881
+ exports.GetUnreadCountResponse = GetUnreadCountResponse;
882
+ var VerifyEmail = /** @class */ (function () {
883
+ function VerifyEmail(token) {
884
+ this.token = token;
885
+ }
886
+ return VerifyEmail;
887
+ }());
888
+ exports.VerifyEmail = VerifyEmail;
889
+ var VerifyEmailResponse = /** @class */ (function () {
890
+ function VerifyEmailResponse() {
891
+ }
892
+ return VerifyEmailResponse;
893
+ }());
894
+ exports.VerifyEmailResponse = VerifyEmailResponse;
895
+ var BlockPerson = /** @class */ (function () {
896
+ function BlockPerson(person_id, block, auth) {
897
+ this.person_id = person_id;
898
+ this.block = block;
899
+ this.auth = auth;
900
+ }
901
+ return BlockPerson;
902
+ }());
903
+ exports.BlockPerson = BlockPerson;
904
+ var BlockPersonResponse = /** @class */ (function () {
905
+ function BlockPersonResponse() {
906
+ }
907
+ return BlockPersonResponse;
908
+ }());
909
+ exports.BlockPersonResponse = BlockPersonResponse;
910
+ var GetBannedPersons = /** @class */ (function () {
911
+ function GetBannedPersons(auth) {
912
+ this.auth = auth;
913
+ }
914
+ return GetBannedPersons;
915
+ }());
916
+ exports.GetBannedPersons = GetBannedPersons;
917
+ var BannedPersonsResponse = /** @class */ (function () {
918
+ function BannedPersonsResponse() {
919
+ }
920
+ return BannedPersonsResponse;
921
+ }());
922
+ exports.BannedPersonsResponse = BannedPersonsResponse;