lemmy-js-client 0.17.0-rc.42 → 0.17.0-rc.43
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/interfaces/api/comment.d.ts +5 -1
- package/dist/interfaces/api/comment.js +22 -0
- package/dist/interfaces/api/site.d.ts +5 -1
- package/dist/interfaces/api/site.js +33 -0
- package/dist/interfaces/others.d.ts +21 -0
- package/dist/interfaces/others.js +23 -1
- package/dist/interfaces/source.d.ts +2 -0
- package/dist/interfaces/source.js +11 -0
- package/dist/interfaces/views.d.ts +14 -15
- package/dist/interfaces/views.js +126 -0
- package/package.json +1 -1
@@ -14,8 +14,12 @@ export declare class CreateComment {
|
|
14
14
|
constructor(init: CreateComment);
|
15
15
|
}
|
16
16
|
export declare class EditComment {
|
17
|
-
content: string;
|
18
17
|
comment_id: number;
|
18
|
+
content: Option<string>;
|
19
|
+
/**
|
20
|
+
* "Distinguishes" a comment, or speak officially. Only doable by community mods or admins.
|
21
|
+
*/
|
22
|
+
distinguished: Option<boolean>;
|
19
23
|
/**
|
20
24
|
* An optional front end ID, to tell which is comment is coming back.
|
21
25
|
*/
|
@@ -44,6 +44,28 @@ var EditComment = /** @class */ (function () {
|
|
44
44
|
function EditComment(init) {
|
45
45
|
Object.assign(this, init);
|
46
46
|
}
|
47
|
+
__decorate([
|
48
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
49
|
+
var value = _a.value;
|
50
|
+
return (0, utils_1.toOption)(value);
|
51
|
+
}, { toClassOnly: true }),
|
52
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
53
|
+
var value = _a.value;
|
54
|
+
return (0, utils_1.toUndefined)(value);
|
55
|
+
}, { toPlainOnly: true }),
|
56
|
+
(0, class_transformer_1.Expose)()
|
57
|
+
], EditComment.prototype, "content", void 0);
|
58
|
+
__decorate([
|
59
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
60
|
+
var value = _a.value;
|
61
|
+
return (0, utils_1.toOption)(value);
|
62
|
+
}, { toClassOnly: true }),
|
63
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
64
|
+
var value = _a.value;
|
65
|
+
return (0, utils_1.toUndefined)(value);
|
66
|
+
}, { toPlainOnly: true }),
|
67
|
+
(0, class_transformer_1.Expose)()
|
68
|
+
], EditComment.prototype, "distinguished", void 0);
|
47
69
|
__decorate([
|
48
70
|
(0, class_transformer_1.Transform)(function (_a) {
|
49
71
|
var value = _a.value;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Option } from "@sniptt/monads";
|
2
2
|
import "reflect-metadata";
|
3
|
-
import { ListingType, SearchType, SortType } from "../others";
|
3
|
+
import { ListingType, SearchType, SortType, ModlogActionType } from "../others";
|
4
4
|
import { AdminPurgeCommentView, AdminPurgeCommunityView, AdminPurgePersonView, AdminPurgePostView, CommentView, CommunityBlockView, CommunityFollowerView, CommunityModeratorView, CommunityView, LocalUserSettingsView, ModAddCommunityView, ModAddView, ModBanFromCommunityView, ModBanView, ModLockPostView, ModRemoveCommentView, ModRemoveCommunityView, ModRemovePostView, ModStickyPostView, ModTransferCommunityView, PersonBlockView, PersonViewSafe, PostView, RegistrationApplicationView, SiteView } from "../views";
|
5
5
|
/**
|
6
6
|
* Search lemmy for different types of data.
|
@@ -37,6 +37,8 @@ export declare class GetModlog {
|
|
37
37
|
page: Option<number>;
|
38
38
|
limit: Option<number>;
|
39
39
|
auth: Option<string>;
|
40
|
+
type_: ModlogActionType;
|
41
|
+
other_person_id: Option<number>;
|
40
42
|
constructor(init: GetModlog);
|
41
43
|
}
|
42
44
|
export declare class GetModlogResponse {
|
@@ -71,6 +73,7 @@ export declare class CreateSite {
|
|
71
73
|
private_instance: Option<boolean>;
|
72
74
|
default_theme: Option<string>;
|
73
75
|
default_post_listing_type: Option<string>;
|
76
|
+
hide_modlog_mod_names: Option<boolean>;
|
74
77
|
auth: string;
|
75
78
|
constructor(init: CreateSite);
|
76
79
|
}
|
@@ -91,6 +94,7 @@ export declare class EditSite {
|
|
91
94
|
default_theme: Option<string>;
|
92
95
|
legal_information: Option<string>;
|
93
96
|
default_post_listing_type: Option<string>;
|
97
|
+
hide_modlog_mod_names: Option<boolean>;
|
94
98
|
auth: string;
|
95
99
|
constructor(init: EditSite);
|
96
100
|
}
|
@@ -197,6 +197,17 @@ var GetModlog = /** @class */ (function () {
|
|
197
197
|
}, { toPlainOnly: true }),
|
198
198
|
(0, class_transformer_1.Expose)()
|
199
199
|
], GetModlog.prototype, "auth", void 0);
|
200
|
+
__decorate([
|
201
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
202
|
+
var value = _a.value;
|
203
|
+
return (0, utils_1.toOption)(value);
|
204
|
+
}, { toClassOnly: true }),
|
205
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
206
|
+
var value = _a.value;
|
207
|
+
return (0, utils_1.toUndefined)(value);
|
208
|
+
}, { toPlainOnly: true }),
|
209
|
+
(0, class_transformer_1.Expose)()
|
210
|
+
], GetModlog.prototype, "other_person_id", void 0);
|
200
211
|
return GetModlog;
|
201
212
|
}());
|
202
213
|
exports.GetModlog = GetModlog;
|
@@ -406,6 +417,17 @@ var CreateSite = /** @class */ (function () {
|
|
406
417
|
}, { toPlainOnly: true }),
|
407
418
|
(0, class_transformer_1.Expose)()
|
408
419
|
], CreateSite.prototype, "default_post_listing_type", void 0);
|
420
|
+
__decorate([
|
421
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
422
|
+
var value = _a.value;
|
423
|
+
return (0, utils_1.toOption)(value);
|
424
|
+
}, { toClassOnly: true }),
|
425
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
426
|
+
var value = _a.value;
|
427
|
+
return (0, utils_1.toUndefined)(value);
|
428
|
+
}, { toPlainOnly: true }),
|
429
|
+
(0, class_transformer_1.Expose)()
|
430
|
+
], CreateSite.prototype, "hide_modlog_mod_names", void 0);
|
409
431
|
return CreateSite;
|
410
432
|
}());
|
411
433
|
exports.CreateSite = CreateSite;
|
@@ -589,6 +611,17 @@ var EditSite = /** @class */ (function () {
|
|
589
611
|
}, { toPlainOnly: true }),
|
590
612
|
(0, class_transformer_1.Expose)()
|
591
613
|
], EditSite.prototype, "default_post_listing_type", void 0);
|
614
|
+
__decorate([
|
615
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
616
|
+
var value = _a.value;
|
617
|
+
return (0, utils_1.toOption)(value);
|
618
|
+
}, { toClassOnly: true }),
|
619
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
620
|
+
var value = _a.value;
|
621
|
+
return (0, utils_1.toUndefined)(value);
|
622
|
+
}, { toPlainOnly: true }),
|
623
|
+
(0, class_transformer_1.Expose)()
|
624
|
+
], EditSite.prototype, "hide_modlog_mod_names", void 0);
|
592
625
|
return EditSite;
|
593
626
|
}());
|
594
627
|
exports.EditSite = EditSite;
|
@@ -174,6 +174,27 @@ export declare enum SearchType {
|
|
174
174
|
Users = "Users",
|
175
175
|
Url = "Url"
|
176
176
|
}
|
177
|
+
/**
|
178
|
+
* Mod log action types
|
179
|
+
*/
|
180
|
+
export declare enum ModlogActionType {
|
181
|
+
All = "All",
|
182
|
+
ModRemovePost = "ModRemovePost",
|
183
|
+
ModLockPost = "ModLockPost",
|
184
|
+
ModStickyPost = "ModStickyPost",
|
185
|
+
ModRemoveComment = "ModRemoveComment",
|
186
|
+
ModRemoveCommunity = "ModRemoveCommunity",
|
187
|
+
ModBanFromCommunity = "ModBanFromCommunity",
|
188
|
+
ModAddCommunity = "ModAddCommunity",
|
189
|
+
ModTransferCommunity = "ModTransferCommunity",
|
190
|
+
ModAdd = "ModAdd",
|
191
|
+
ModBan = "ModBan",
|
192
|
+
ModHideCommunity = "ModHideCommunity",
|
193
|
+
AdminPurgePerson = "AdminPurgePerson",
|
194
|
+
AdminPurgeCommunity = "AdminPurgeCommunity",
|
195
|
+
AdminPurgePost = "AdminPurgePost",
|
196
|
+
AdminPurgeComment = "AdminPurgeComment"
|
197
|
+
}
|
177
198
|
/**
|
178
199
|
* Different Subscribed states
|
179
200
|
*/
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
7
|
};
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
|
-
exports.SiteMetadata = exports.SubscribedType = exports.SearchType = exports.ListingType = exports.CommentSortType = exports.SortType = exports.UserOperation = exports.VERSION = void 0;
|
9
|
+
exports.SiteMetadata = exports.SubscribedType = exports.ModlogActionType = exports.SearchType = exports.ListingType = exports.CommentSortType = exports.SortType = exports.UserOperation = exports.VERSION = void 0;
|
10
10
|
var class_transformer_1 = require("class-transformer");
|
11
11
|
var utils_1 = require("../utils");
|
12
12
|
exports.VERSION = "v3";
|
@@ -189,6 +189,28 @@ var SearchType;
|
|
189
189
|
SearchType["Users"] = "Users";
|
190
190
|
SearchType["Url"] = "Url";
|
191
191
|
})(SearchType = exports.SearchType || (exports.SearchType = {}));
|
192
|
+
/**
|
193
|
+
* Mod log action types
|
194
|
+
*/
|
195
|
+
var ModlogActionType;
|
196
|
+
(function (ModlogActionType) {
|
197
|
+
ModlogActionType["All"] = "All";
|
198
|
+
ModlogActionType["ModRemovePost"] = "ModRemovePost";
|
199
|
+
ModlogActionType["ModLockPost"] = "ModLockPost";
|
200
|
+
ModlogActionType["ModStickyPost"] = "ModStickyPost";
|
201
|
+
ModlogActionType["ModRemoveComment"] = "ModRemoveComment";
|
202
|
+
ModlogActionType["ModRemoveCommunity"] = "ModRemoveCommunity";
|
203
|
+
ModlogActionType["ModBanFromCommunity"] = "ModBanFromCommunity";
|
204
|
+
ModlogActionType["ModAddCommunity"] = "ModAddCommunity";
|
205
|
+
ModlogActionType["ModTransferCommunity"] = "ModTransferCommunity";
|
206
|
+
ModlogActionType["ModAdd"] = "ModAdd";
|
207
|
+
ModlogActionType["ModBan"] = "ModBan";
|
208
|
+
ModlogActionType["ModHideCommunity"] = "ModHideCommunity";
|
209
|
+
ModlogActionType["AdminPurgePerson"] = "AdminPurgePerson";
|
210
|
+
ModlogActionType["AdminPurgeCommunity"] = "AdminPurgeCommunity";
|
211
|
+
ModlogActionType["AdminPurgePost"] = "AdminPurgePost";
|
212
|
+
ModlogActionType["AdminPurgeComment"] = "AdminPurgeComment";
|
213
|
+
})(ModlogActionType = exports.ModlogActionType || (exports.ModlogActionType = {}));
|
192
214
|
/**
|
193
215
|
* Different Subscribed states
|
194
216
|
*/
|
@@ -61,6 +61,7 @@ export declare class Site {
|
|
61
61
|
inbox_url: string;
|
62
62
|
public_key: string;
|
63
63
|
legal_information: Option<string>;
|
64
|
+
hide_modlog_mod_names: Option<boolean>;
|
64
65
|
}
|
65
66
|
export declare class PrivateMessage {
|
66
67
|
id: number;
|
@@ -260,6 +261,7 @@ export declare class Comment {
|
|
260
261
|
ap_id: string;
|
261
262
|
local: boolean;
|
262
263
|
path: string;
|
264
|
+
distinguished: boolean;
|
263
265
|
}
|
264
266
|
export declare class PersonMention {
|
265
267
|
id: number;
|
@@ -189,6 +189,17 @@ var Site = /** @class */ (function () {
|
|
189
189
|
}, { toPlainOnly: true }),
|
190
190
|
(0, class_transformer_1.Expose)()
|
191
191
|
], Site.prototype, "legal_information", void 0);
|
192
|
+
__decorate([
|
193
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
194
|
+
var value = _a.value;
|
195
|
+
return (0, utils_1.toOption)(value);
|
196
|
+
}, { toClassOnly: true }),
|
197
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
198
|
+
var value = _a.value;
|
199
|
+
return (0, utils_1.toUndefined)(value);
|
200
|
+
}, { toPlainOnly: true }),
|
201
|
+
(0, class_transformer_1.Expose)()
|
202
|
+
], Site.prototype, "hide_modlog_mod_names", void 0);
|
192
203
|
return Site;
|
193
204
|
}());
|
194
205
|
exports.Site = Site;
|
@@ -46,7 +46,6 @@ export declare class PostView {
|
|
46
46
|
read: boolean;
|
47
47
|
creator_blocked: boolean;
|
48
48
|
my_vote: Option<number>;
|
49
|
-
unread_comments: number;
|
50
49
|
}
|
51
50
|
export declare class PostReportView {
|
52
51
|
post_report: PostReport;
|
@@ -99,41 +98,41 @@ export declare class CommentReportView {
|
|
99
98
|
}
|
100
99
|
export declare class ModAddCommunityView {
|
101
100
|
mod_add_community: ModAddCommunity;
|
102
|
-
moderator: PersonSafe
|
101
|
+
moderator: Option<PersonSafe>;
|
103
102
|
community: CommunitySafe;
|
104
103
|
modded_person: PersonSafe;
|
105
104
|
}
|
106
105
|
export declare class ModTransferCommunityView {
|
107
106
|
mod_transfer_community: ModTransferCommunity;
|
108
|
-
moderator: PersonSafe
|
107
|
+
moderator: Option<PersonSafe>;
|
109
108
|
community: CommunitySafe;
|
110
109
|
modded_person: PersonSafe;
|
111
110
|
}
|
112
111
|
export declare class ModAddView {
|
113
112
|
mod_add: ModAdd;
|
114
|
-
moderator: PersonSafe
|
113
|
+
moderator: Option<PersonSafe>;
|
115
114
|
modded_person: PersonSafe;
|
116
115
|
}
|
117
116
|
export declare class ModBanFromCommunityView {
|
118
117
|
mod_ban_from_community: ModBanFromCommunity;
|
119
|
-
moderator: PersonSafe
|
118
|
+
moderator: Option<PersonSafe>;
|
120
119
|
community: CommunitySafe;
|
121
120
|
banned_person: PersonSafe;
|
122
121
|
}
|
123
122
|
export declare class ModBanView {
|
124
123
|
mod_ban: ModBan;
|
125
|
-
moderator: PersonSafe
|
124
|
+
moderator: Option<PersonSafe>;
|
126
125
|
banned_person: PersonSafe;
|
127
126
|
}
|
128
127
|
export declare class ModLockPostView {
|
129
128
|
mod_lock_post: ModLockPost;
|
130
|
-
moderator: PersonSafe
|
129
|
+
moderator: Option<PersonSafe>;
|
131
130
|
post: Post;
|
132
131
|
community: CommunitySafe;
|
133
132
|
}
|
134
133
|
export declare class ModRemoveCommentView {
|
135
134
|
mod_remove_comment: ModRemoveComment;
|
136
|
-
moderator: PersonSafe
|
135
|
+
moderator: Option<PersonSafe>;
|
137
136
|
comment: Comment;
|
138
137
|
commenter: PersonSafe;
|
139
138
|
post: Post;
|
@@ -141,37 +140,37 @@ export declare class ModRemoveCommentView {
|
|
141
140
|
}
|
142
141
|
export declare class ModRemoveCommunityView {
|
143
142
|
mod_remove_community: ModRemoveCommunity;
|
144
|
-
moderator: PersonSafe
|
143
|
+
moderator: Option<PersonSafe>;
|
145
144
|
community: CommunitySafe;
|
146
145
|
}
|
147
146
|
export declare class ModRemovePostView {
|
148
147
|
mod_remove_post: ModRemovePost;
|
149
|
-
moderator: PersonSafe
|
148
|
+
moderator: Option<PersonSafe>;
|
150
149
|
post: Post;
|
151
150
|
community: CommunitySafe;
|
152
151
|
}
|
153
152
|
export declare class ModStickyPostView {
|
154
153
|
mod_sticky_post: ModStickyPost;
|
155
|
-
moderator: PersonSafe
|
154
|
+
moderator: Option<PersonSafe>;
|
156
155
|
post: Post;
|
157
156
|
community: CommunitySafe;
|
158
157
|
}
|
159
158
|
export declare class AdminPurgeCommunityView {
|
160
159
|
admin_purge_community: AdminPurgeCommunity;
|
161
|
-
admin: PersonSafe
|
160
|
+
admin: Option<PersonSafe>;
|
162
161
|
}
|
163
162
|
export declare class AdminPurgePersonView {
|
164
163
|
admin_purge_person: AdminPurgePerson;
|
165
|
-
admin: PersonSafe
|
164
|
+
admin: Option<PersonSafe>;
|
166
165
|
}
|
167
166
|
export declare class AdminPurgePostView {
|
168
167
|
admin_purge_post: AdminPurgePost;
|
169
|
-
admin: PersonSafe
|
168
|
+
admin: Option<PersonSafe>;
|
170
169
|
community: CommunitySafe;
|
171
170
|
}
|
172
171
|
export declare class AdminPurgeCommentView {
|
173
172
|
admin_purge_comment: AdminPurgeComment;
|
174
|
-
admin: PersonSafe
|
173
|
+
admin: Option<PersonSafe>;
|
175
174
|
post: Post;
|
176
175
|
}
|
177
176
|
export declare class CommunityFollowerView {
|
package/dist/interfaces/views.js
CHANGED
@@ -279,6 +279,15 @@ var ModAddCommunityView = /** @class */ (function () {
|
|
279
279
|
(0, class_transformer_1.Type)(function () { return source_1.ModAddCommunity; })
|
280
280
|
], ModAddCommunityView.prototype, "mod_add_community", void 0);
|
281
281
|
__decorate([
|
282
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
283
|
+
var value = _a.value;
|
284
|
+
return (0, utils_1.toOption)(value);
|
285
|
+
}, { toClassOnly: true }),
|
286
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
287
|
+
var value = _a.value;
|
288
|
+
return (0, utils_1.toUndefined)(value);
|
289
|
+
}, { toPlainOnly: true }),
|
290
|
+
(0, class_transformer_1.Expose)(),
|
282
291
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
283
292
|
], ModAddCommunityView.prototype, "moderator", void 0);
|
284
293
|
__decorate([
|
@@ -297,6 +306,15 @@ var ModTransferCommunityView = /** @class */ (function () {
|
|
297
306
|
(0, class_transformer_1.Type)(function () { return source_1.ModTransferCommunity; })
|
298
307
|
], ModTransferCommunityView.prototype, "mod_transfer_community", void 0);
|
299
308
|
__decorate([
|
309
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
310
|
+
var value = _a.value;
|
311
|
+
return (0, utils_1.toOption)(value);
|
312
|
+
}, { toClassOnly: true }),
|
313
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
314
|
+
var value = _a.value;
|
315
|
+
return (0, utils_1.toUndefined)(value);
|
316
|
+
}, { toPlainOnly: true }),
|
317
|
+
(0, class_transformer_1.Expose)(),
|
300
318
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
301
319
|
], ModTransferCommunityView.prototype, "moderator", void 0);
|
302
320
|
__decorate([
|
@@ -315,6 +333,15 @@ var ModAddView = /** @class */ (function () {
|
|
315
333
|
(0, class_transformer_1.Type)(function () { return source_1.ModAdd; })
|
316
334
|
], ModAddView.prototype, "mod_add", void 0);
|
317
335
|
__decorate([
|
336
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
337
|
+
var value = _a.value;
|
338
|
+
return (0, utils_1.toOption)(value);
|
339
|
+
}, { toClassOnly: true }),
|
340
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
341
|
+
var value = _a.value;
|
342
|
+
return (0, utils_1.toUndefined)(value);
|
343
|
+
}, { toPlainOnly: true }),
|
344
|
+
(0, class_transformer_1.Expose)(),
|
318
345
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
319
346
|
], ModAddView.prototype, "moderator", void 0);
|
320
347
|
__decorate([
|
@@ -330,6 +357,15 @@ var ModBanFromCommunityView = /** @class */ (function () {
|
|
330
357
|
(0, class_transformer_1.Type)(function () { return source_1.ModBanFromCommunity; })
|
331
358
|
], ModBanFromCommunityView.prototype, "mod_ban_from_community", void 0);
|
332
359
|
__decorate([
|
360
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
361
|
+
var value = _a.value;
|
362
|
+
return (0, utils_1.toOption)(value);
|
363
|
+
}, { toClassOnly: true }),
|
364
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
365
|
+
var value = _a.value;
|
366
|
+
return (0, utils_1.toUndefined)(value);
|
367
|
+
}, { toPlainOnly: true }),
|
368
|
+
(0, class_transformer_1.Expose)(),
|
333
369
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
334
370
|
], ModBanFromCommunityView.prototype, "moderator", void 0);
|
335
371
|
__decorate([
|
@@ -348,6 +384,15 @@ var ModBanView = /** @class */ (function () {
|
|
348
384
|
(0, class_transformer_1.Type)(function () { return source_1.ModBan; })
|
349
385
|
], ModBanView.prototype, "mod_ban", void 0);
|
350
386
|
__decorate([
|
387
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
388
|
+
var value = _a.value;
|
389
|
+
return (0, utils_1.toOption)(value);
|
390
|
+
}, { toClassOnly: true }),
|
391
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
392
|
+
var value = _a.value;
|
393
|
+
return (0, utils_1.toUndefined)(value);
|
394
|
+
}, { toPlainOnly: true }),
|
395
|
+
(0, class_transformer_1.Expose)(),
|
351
396
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
352
397
|
], ModBanView.prototype, "moderator", void 0);
|
353
398
|
__decorate([
|
@@ -363,6 +408,15 @@ var ModLockPostView = /** @class */ (function () {
|
|
363
408
|
(0, class_transformer_1.Type)(function () { return source_1.ModLockPost; })
|
364
409
|
], ModLockPostView.prototype, "mod_lock_post", void 0);
|
365
410
|
__decorate([
|
411
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
412
|
+
var value = _a.value;
|
413
|
+
return (0, utils_1.toOption)(value);
|
414
|
+
}, { toClassOnly: true }),
|
415
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
416
|
+
var value = _a.value;
|
417
|
+
return (0, utils_1.toUndefined)(value);
|
418
|
+
}, { toPlainOnly: true }),
|
419
|
+
(0, class_transformer_1.Expose)(),
|
366
420
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
367
421
|
], ModLockPostView.prototype, "moderator", void 0);
|
368
422
|
__decorate([
|
@@ -381,6 +435,15 @@ var ModRemoveCommentView = /** @class */ (function () {
|
|
381
435
|
(0, class_transformer_1.Type)(function () { return source_1.ModRemoveComment; })
|
382
436
|
], ModRemoveCommentView.prototype, "mod_remove_comment", void 0);
|
383
437
|
__decorate([
|
438
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
439
|
+
var value = _a.value;
|
440
|
+
return (0, utils_1.toOption)(value);
|
441
|
+
}, { toClassOnly: true }),
|
442
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
443
|
+
var value = _a.value;
|
444
|
+
return (0, utils_1.toUndefined)(value);
|
445
|
+
}, { toPlainOnly: true }),
|
446
|
+
(0, class_transformer_1.Expose)(),
|
384
447
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
385
448
|
], ModRemoveCommentView.prototype, "moderator", void 0);
|
386
449
|
__decorate([
|
@@ -405,6 +468,15 @@ var ModRemoveCommunityView = /** @class */ (function () {
|
|
405
468
|
(0, class_transformer_1.Type)(function () { return source_1.ModRemoveCommunity; })
|
406
469
|
], ModRemoveCommunityView.prototype, "mod_remove_community", void 0);
|
407
470
|
__decorate([
|
471
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
472
|
+
var value = _a.value;
|
473
|
+
return (0, utils_1.toOption)(value);
|
474
|
+
}, { toClassOnly: true }),
|
475
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
476
|
+
var value = _a.value;
|
477
|
+
return (0, utils_1.toUndefined)(value);
|
478
|
+
}, { toPlainOnly: true }),
|
479
|
+
(0, class_transformer_1.Expose)(),
|
408
480
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
409
481
|
], ModRemoveCommunityView.prototype, "moderator", void 0);
|
410
482
|
__decorate([
|
@@ -420,6 +492,15 @@ var ModRemovePostView = /** @class */ (function () {
|
|
420
492
|
(0, class_transformer_1.Type)(function () { return source_1.ModRemovePost; })
|
421
493
|
], ModRemovePostView.prototype, "mod_remove_post", void 0);
|
422
494
|
__decorate([
|
495
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
496
|
+
var value = _a.value;
|
497
|
+
return (0, utils_1.toOption)(value);
|
498
|
+
}, { toClassOnly: true }),
|
499
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
500
|
+
var value = _a.value;
|
501
|
+
return (0, utils_1.toUndefined)(value);
|
502
|
+
}, { toPlainOnly: true }),
|
503
|
+
(0, class_transformer_1.Expose)(),
|
423
504
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
424
505
|
], ModRemovePostView.prototype, "moderator", void 0);
|
425
506
|
__decorate([
|
@@ -438,6 +519,15 @@ var ModStickyPostView = /** @class */ (function () {
|
|
438
519
|
(0, class_transformer_1.Type)(function () { return source_1.ModStickyPost; })
|
439
520
|
], ModStickyPostView.prototype, "mod_sticky_post", void 0);
|
440
521
|
__decorate([
|
522
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
523
|
+
var value = _a.value;
|
524
|
+
return (0, utils_1.toOption)(value);
|
525
|
+
}, { toClassOnly: true }),
|
526
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
527
|
+
var value = _a.value;
|
528
|
+
return (0, utils_1.toUndefined)(value);
|
529
|
+
}, { toPlainOnly: true }),
|
530
|
+
(0, class_transformer_1.Expose)(),
|
441
531
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
442
532
|
], ModStickyPostView.prototype, "moderator", void 0);
|
443
533
|
__decorate([
|
@@ -456,6 +546,15 @@ var AdminPurgeCommunityView = /** @class */ (function () {
|
|
456
546
|
(0, class_transformer_1.Type)(function () { return source_1.AdminPurgeCommunity; })
|
457
547
|
], AdminPurgeCommunityView.prototype, "admin_purge_community", void 0);
|
458
548
|
__decorate([
|
549
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
550
|
+
var value = _a.value;
|
551
|
+
return (0, utils_1.toOption)(value);
|
552
|
+
}, { toClassOnly: true }),
|
553
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
554
|
+
var value = _a.value;
|
555
|
+
return (0, utils_1.toUndefined)(value);
|
556
|
+
}, { toPlainOnly: true }),
|
557
|
+
(0, class_transformer_1.Expose)(),
|
459
558
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
460
559
|
], AdminPurgeCommunityView.prototype, "admin", void 0);
|
461
560
|
return AdminPurgeCommunityView;
|
@@ -468,6 +567,15 @@ var AdminPurgePersonView = /** @class */ (function () {
|
|
468
567
|
(0, class_transformer_1.Type)(function () { return source_1.AdminPurgePerson; })
|
469
568
|
], AdminPurgePersonView.prototype, "admin_purge_person", void 0);
|
470
569
|
__decorate([
|
570
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
571
|
+
var value = _a.value;
|
572
|
+
return (0, utils_1.toOption)(value);
|
573
|
+
}, { toClassOnly: true }),
|
574
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
575
|
+
var value = _a.value;
|
576
|
+
return (0, utils_1.toUndefined)(value);
|
577
|
+
}, { toPlainOnly: true }),
|
578
|
+
(0, class_transformer_1.Expose)(),
|
471
579
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
472
580
|
], AdminPurgePersonView.prototype, "admin", void 0);
|
473
581
|
return AdminPurgePersonView;
|
@@ -480,6 +588,15 @@ var AdminPurgePostView = /** @class */ (function () {
|
|
480
588
|
(0, class_transformer_1.Type)(function () { return source_1.AdminPurgePost; })
|
481
589
|
], AdminPurgePostView.prototype, "admin_purge_post", void 0);
|
482
590
|
__decorate([
|
591
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
592
|
+
var value = _a.value;
|
593
|
+
return (0, utils_1.toOption)(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)(),
|
483
600
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
484
601
|
], AdminPurgePostView.prototype, "admin", void 0);
|
485
602
|
__decorate([
|
@@ -495,6 +612,15 @@ var AdminPurgeCommentView = /** @class */ (function () {
|
|
495
612
|
(0, class_transformer_1.Type)(function () { return source_1.AdminPurgeComment; })
|
496
613
|
], AdminPurgeCommentView.prototype, "admin_purge_comment", void 0);
|
497
614
|
__decorate([
|
615
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
616
|
+
var value = _a.value;
|
617
|
+
return (0, utils_1.toOption)(value);
|
618
|
+
}, { toClassOnly: true }),
|
619
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
620
|
+
var value = _a.value;
|
621
|
+
return (0, utils_1.toUndefined)(value);
|
622
|
+
}, { toPlainOnly: true }),
|
623
|
+
(0, class_transformer_1.Expose)(),
|
498
624
|
(0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
|
499
625
|
], AdminPurgeCommentView.prototype, "admin", void 0);
|
500
626
|
__decorate([
|
package/package.json
CHANGED