lemmy-js-client 0.17.0-rc.22 → 0.17.0-rc.25
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.
- package/dist/interfaces/api/comment.d.ts +1 -0
- package/dist/interfaces/api/comment.js +31 -18
- package/dist/interfaces/api/community.js +44 -26
- package/dist/interfaces/api/person.js +92 -53
- package/dist/interfaces/api/post.d.ts +1 -0
- package/dist/interfaces/api/post.js +52 -23
- package/dist/interfaces/api/site.js +125 -60
- package/dist/interfaces/others.js +4 -5
- package/dist/interfaces/source.js +55 -56
- package/dist/interfaces/views.js +258 -10
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +6 -1
- package/dist/websocket.js +1 -1
- package/package.json +1 -1
@@ -7,9 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
7
7
|
};
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
9
|
exports.ListCommentReportsResponse = exports.ListCommentReports = exports.ResolveCommentReport = exports.CommentReportResponse = exports.CreateCommentReport = exports.GetCommentsResponse = exports.GetComments = exports.CreateCommentLike = exports.CommentResponse = exports.SaveComment = exports.MarkCommentAsRead = exports.RemoveComment = exports.DeleteComment = exports.EditComment = exports.CreateComment = void 0;
|
10
|
-
var monads_1 = require("@sniptt/monads");
|
11
10
|
var class_transformer_1 = require("class-transformer");
|
11
|
+
require("reflect-metadata");
|
12
12
|
var utils_1 = require("../../utils");
|
13
|
+
var views_1 = require("../views");
|
13
14
|
var CreateComment = /** @class */ (function () {
|
14
15
|
function CreateComment(init) {
|
15
16
|
Object.assign(this, init);
|
@@ -17,7 +18,7 @@ var CreateComment = /** @class */ (function () {
|
|
17
18
|
__decorate([
|
18
19
|
(0, class_transformer_1.Transform)(function (_a) {
|
19
20
|
var value = _a.value;
|
20
|
-
return (0,
|
21
|
+
return (0, utils_1.toOption)(value);
|
21
22
|
}, { toClassOnly: true }),
|
22
23
|
(0, class_transformer_1.Transform)(function (_a) {
|
23
24
|
var value = _a.value;
|
@@ -28,7 +29,7 @@ var CreateComment = /** @class */ (function () {
|
|
28
29
|
__decorate([
|
29
30
|
(0, class_transformer_1.Transform)(function (_a) {
|
30
31
|
var value = _a.value;
|
31
|
-
return (0,
|
32
|
+
return (0, utils_1.toOption)(value);
|
32
33
|
}, { toClassOnly: true }),
|
33
34
|
(0, class_transformer_1.Transform)(function (_a) {
|
34
35
|
var value = _a.value;
|
@@ -46,7 +47,7 @@ var EditComment = /** @class */ (function () {
|
|
46
47
|
__decorate([
|
47
48
|
(0, class_transformer_1.Transform)(function (_a) {
|
48
49
|
var value = _a.value;
|
49
|
-
return (0,
|
50
|
+
return (0, utils_1.toOption)(value);
|
50
51
|
}, { toClassOnly: true }),
|
51
52
|
(0, class_transformer_1.Transform)(function (_a) {
|
52
53
|
var value = _a.value;
|
@@ -77,7 +78,7 @@ var RemoveComment = /** @class */ (function () {
|
|
77
78
|
__decorate([
|
78
79
|
(0, class_transformer_1.Transform)(function (_a) {
|
79
80
|
var value = _a.value;
|
80
|
-
return (0,
|
81
|
+
return (0, utils_1.toOption)(value);
|
81
82
|
}, { toClassOnly: true }),
|
82
83
|
(0, class_transformer_1.Transform)(function (_a) {
|
83
84
|
var value = _a.value;
|
@@ -108,10 +109,13 @@ exports.SaveComment = SaveComment;
|
|
108
109
|
var CommentResponse = /** @class */ (function () {
|
109
110
|
function CommentResponse() {
|
110
111
|
}
|
112
|
+
__decorate([
|
113
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommentView; })
|
114
|
+
], CommentResponse.prototype, "comment_view", void 0);
|
111
115
|
__decorate([
|
112
116
|
(0, class_transformer_1.Transform)(function (_a) {
|
113
117
|
var value = _a.value;
|
114
|
-
return (0,
|
118
|
+
return (0, utils_1.toOption)(value);
|
115
119
|
}, { toClassOnly: true }),
|
116
120
|
(0, class_transformer_1.Transform)(function (_a) {
|
117
121
|
var value = _a.value;
|
@@ -142,7 +146,7 @@ var GetComments = /** @class */ (function () {
|
|
142
146
|
__decorate([
|
143
147
|
(0, class_transformer_1.Transform)(function (_a) {
|
144
148
|
var value = _a.value;
|
145
|
-
return (0,
|
149
|
+
return (0, utils_1.toOption)(value);
|
146
150
|
}, { toClassOnly: true }),
|
147
151
|
(0, class_transformer_1.Transform)(function (_a) {
|
148
152
|
var value = _a.value;
|
@@ -153,7 +157,7 @@ var GetComments = /** @class */ (function () {
|
|
153
157
|
__decorate([
|
154
158
|
(0, class_transformer_1.Transform)(function (_a) {
|
155
159
|
var value = _a.value;
|
156
|
-
return (0,
|
160
|
+
return (0, utils_1.toOption)(value);
|
157
161
|
}, { toClassOnly: true }),
|
158
162
|
(0, class_transformer_1.Transform)(function (_a) {
|
159
163
|
var value = _a.value;
|
@@ -164,7 +168,7 @@ var GetComments = /** @class */ (function () {
|
|
164
168
|
__decorate([
|
165
169
|
(0, class_transformer_1.Transform)(function (_a) {
|
166
170
|
var value = _a.value;
|
167
|
-
return (0,
|
171
|
+
return (0, utils_1.toOption)(value);
|
168
172
|
}, { toClassOnly: true }),
|
169
173
|
(0, class_transformer_1.Transform)(function (_a) {
|
170
174
|
var value = _a.value;
|
@@ -175,7 +179,7 @@ var GetComments = /** @class */ (function () {
|
|
175
179
|
__decorate([
|
176
180
|
(0, class_transformer_1.Transform)(function (_a) {
|
177
181
|
var value = _a.value;
|
178
|
-
return (0,
|
182
|
+
return (0, utils_1.toOption)(value);
|
179
183
|
}, { toClassOnly: true }),
|
180
184
|
(0, class_transformer_1.Transform)(function (_a) {
|
181
185
|
var value = _a.value;
|
@@ -186,7 +190,7 @@ var GetComments = /** @class */ (function () {
|
|
186
190
|
__decorate([
|
187
191
|
(0, class_transformer_1.Transform)(function (_a) {
|
188
192
|
var value = _a.value;
|
189
|
-
return (0,
|
193
|
+
return (0, utils_1.toOption)(value);
|
190
194
|
}, { toClassOnly: true }),
|
191
195
|
(0, class_transformer_1.Transform)(function (_a) {
|
192
196
|
var value = _a.value;
|
@@ -197,7 +201,7 @@ var GetComments = /** @class */ (function () {
|
|
197
201
|
__decorate([
|
198
202
|
(0, class_transformer_1.Transform)(function (_a) {
|
199
203
|
var value = _a.value;
|
200
|
-
return (0,
|
204
|
+
return (0, utils_1.toOption)(value);
|
201
205
|
}, { toClassOnly: true }),
|
202
206
|
(0, class_transformer_1.Transform)(function (_a) {
|
203
207
|
var value = _a.value;
|
@@ -208,7 +212,7 @@ var GetComments = /** @class */ (function () {
|
|
208
212
|
__decorate([
|
209
213
|
(0, class_transformer_1.Transform)(function (_a) {
|
210
214
|
var value = _a.value;
|
211
|
-
return (0,
|
215
|
+
return (0, utils_1.toOption)(value);
|
212
216
|
}, { toClassOnly: true }),
|
213
217
|
(0, class_transformer_1.Transform)(function (_a) {
|
214
218
|
var value = _a.value;
|
@@ -219,7 +223,7 @@ var GetComments = /** @class */ (function () {
|
|
219
223
|
__decorate([
|
220
224
|
(0, class_transformer_1.Transform)(function (_a) {
|
221
225
|
var value = _a.value;
|
222
|
-
return (0,
|
226
|
+
return (0, utils_1.toOption)(value);
|
223
227
|
}, { toClassOnly: true }),
|
224
228
|
(0, class_transformer_1.Transform)(function (_a) {
|
225
229
|
var value = _a.value;
|
@@ -233,6 +237,9 @@ exports.GetComments = GetComments;
|
|
233
237
|
var GetCommentsResponse = /** @class */ (function () {
|
234
238
|
function GetCommentsResponse() {
|
235
239
|
}
|
240
|
+
__decorate([
|
241
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommentView; })
|
242
|
+
], GetCommentsResponse.prototype, "comments", void 0);
|
236
243
|
return GetCommentsResponse;
|
237
244
|
}());
|
238
245
|
exports.GetCommentsResponse = GetCommentsResponse;
|
@@ -246,6 +253,9 @@ exports.CreateCommentReport = CreateCommentReport;
|
|
246
253
|
var CommentReportResponse = /** @class */ (function () {
|
247
254
|
function CommentReportResponse() {
|
248
255
|
}
|
256
|
+
__decorate([
|
257
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommentReportView; })
|
258
|
+
], CommentReportResponse.prototype, "comment_report_view", void 0);
|
249
259
|
return CommentReportResponse;
|
250
260
|
}());
|
251
261
|
exports.CommentReportResponse = CommentReportResponse;
|
@@ -263,7 +273,7 @@ var ListCommentReports = /** @class */ (function () {
|
|
263
273
|
__decorate([
|
264
274
|
(0, class_transformer_1.Transform)(function (_a) {
|
265
275
|
var value = _a.value;
|
266
|
-
return (0,
|
276
|
+
return (0, utils_1.toOption)(value);
|
267
277
|
}, { toClassOnly: true }),
|
268
278
|
(0, class_transformer_1.Transform)(function (_a) {
|
269
279
|
var value = _a.value;
|
@@ -274,7 +284,7 @@ var ListCommentReports = /** @class */ (function () {
|
|
274
284
|
__decorate([
|
275
285
|
(0, class_transformer_1.Transform)(function (_a) {
|
276
286
|
var value = _a.value;
|
277
|
-
return (0,
|
287
|
+
return (0, utils_1.toOption)(value);
|
278
288
|
}, { toClassOnly: true }),
|
279
289
|
(0, class_transformer_1.Transform)(function (_a) {
|
280
290
|
var value = _a.value;
|
@@ -285,7 +295,7 @@ var ListCommentReports = /** @class */ (function () {
|
|
285
295
|
__decorate([
|
286
296
|
(0, class_transformer_1.Transform)(function (_a) {
|
287
297
|
var value = _a.value;
|
288
|
-
return (0,
|
298
|
+
return (0, utils_1.toOption)(value);
|
289
299
|
}, { toClassOnly: true }),
|
290
300
|
(0, class_transformer_1.Transform)(function (_a) {
|
291
301
|
var value = _a.value;
|
@@ -296,7 +306,7 @@ var ListCommentReports = /** @class */ (function () {
|
|
296
306
|
__decorate([
|
297
307
|
(0, class_transformer_1.Transform)(function (_a) {
|
298
308
|
var value = _a.value;
|
299
|
-
return (0,
|
309
|
+
return (0, utils_1.toOption)(value);
|
300
310
|
}, { toClassOnly: true }),
|
301
311
|
(0, class_transformer_1.Transform)(function (_a) {
|
302
312
|
var value = _a.value;
|
@@ -310,6 +320,9 @@ exports.ListCommentReports = ListCommentReports;
|
|
310
320
|
var ListCommentReportsResponse = /** @class */ (function () {
|
311
321
|
function ListCommentReportsResponse() {
|
312
322
|
}
|
323
|
+
__decorate([
|
324
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommentReportView; })
|
325
|
+
], ListCommentReportsResponse.prototype, "comment_reports", void 0);
|
313
326
|
return ListCommentReportsResponse;
|
314
327
|
}());
|
315
328
|
exports.ListCommentReportsResponse = ListCommentReportsResponse;
|
@@ -7,11 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
7
7
|
};
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
9
|
exports.BlockCommunityResponse = exports.BlockCommunity = exports.TransferCommunity = exports.FollowCommunity = exports.RemoveCommunity = exports.DeleteCommunity = exports.EditCommunity = exports.AddModToCommunityResponse = exports.AddModToCommunity = exports.BanFromCommunityResponse = exports.BanFromCommunity = exports.ListCommunitiesResponse = exports.ListCommunities = exports.CommunityResponse = exports.CreateCommunity = exports.GetCommunityResponse = exports.GetCommunity = void 0;
|
10
|
-
var monads_1 = require("@sniptt/monads");
|
11
10
|
var class_transformer_1 = require("class-transformer");
|
12
11
|
require("reflect-metadata");
|
13
12
|
var utils_1 = require("../../utils");
|
14
13
|
var source_1 = require("../source");
|
14
|
+
var views_1 = require("../views");
|
15
15
|
/**
|
16
16
|
* You can use either `id` or `name` as an id.
|
17
17
|
*
|
@@ -24,7 +24,7 @@ var GetCommunity = /** @class */ (function () {
|
|
24
24
|
__decorate([
|
25
25
|
(0, class_transformer_1.Transform)(function (_a) {
|
26
26
|
var value = _a.value;
|
27
|
-
return (0,
|
27
|
+
return (0, utils_1.toOption)(value);
|
28
28
|
}, { toClassOnly: true }),
|
29
29
|
(0, class_transformer_1.Transform)(function (_a) {
|
30
30
|
var value = _a.value;
|
@@ -35,7 +35,7 @@ var GetCommunity = /** @class */ (function () {
|
|
35
35
|
__decorate([
|
36
36
|
(0, class_transformer_1.Transform)(function (_a) {
|
37
37
|
var value = _a.value;
|
38
|
-
return (0,
|
38
|
+
return (0, utils_1.toOption)(value);
|
39
39
|
}, { toClassOnly: true }),
|
40
40
|
(0, class_transformer_1.Transform)(function (_a) {
|
41
41
|
var value = _a.value;
|
@@ -46,7 +46,7 @@ var GetCommunity = /** @class */ (function () {
|
|
46
46
|
__decorate([
|
47
47
|
(0, class_transformer_1.Transform)(function (_a) {
|
48
48
|
var value = _a.value;
|
49
|
-
return (0,
|
49
|
+
return (0, utils_1.toOption)(value);
|
50
50
|
}, { toClassOnly: true }),
|
51
51
|
(0, class_transformer_1.Transform)(function (_a) {
|
52
52
|
var value = _a.value;
|
@@ -63,7 +63,7 @@ var GetCommunityResponse = /** @class */ (function () {
|
|
63
63
|
__decorate([
|
64
64
|
(0, class_transformer_1.Transform)(function (_a) {
|
65
65
|
var value = _a.value;
|
66
|
-
return (0,
|
66
|
+
return (0, utils_1.toOption)(value);
|
67
67
|
}, { toClassOnly: true }),
|
68
68
|
(0, class_transformer_1.Transform)(function (_a) {
|
69
69
|
var value = _a.value;
|
@@ -72,6 +72,9 @@ var GetCommunityResponse = /** @class */ (function () {
|
|
72
72
|
(0, class_transformer_1.Expose)(),
|
73
73
|
(0, class_transformer_1.Type)(function () { return source_1.Site; })
|
74
74
|
], GetCommunityResponse.prototype, "site", void 0);
|
75
|
+
__decorate([
|
76
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommunityModeratorView; })
|
77
|
+
], GetCommunityResponse.prototype, "moderators", void 0);
|
75
78
|
return GetCommunityResponse;
|
76
79
|
}());
|
77
80
|
exports.GetCommunityResponse = GetCommunityResponse;
|
@@ -82,7 +85,7 @@ var CreateCommunity = /** @class */ (function () {
|
|
82
85
|
__decorate([
|
83
86
|
(0, class_transformer_1.Transform)(function (_a) {
|
84
87
|
var value = _a.value;
|
85
|
-
return (0,
|
88
|
+
return (0, utils_1.toOption)(value);
|
86
89
|
}, { toClassOnly: true }),
|
87
90
|
(0, class_transformer_1.Transform)(function (_a) {
|
88
91
|
var value = _a.value;
|
@@ -93,7 +96,7 @@ var CreateCommunity = /** @class */ (function () {
|
|
93
96
|
__decorate([
|
94
97
|
(0, class_transformer_1.Transform)(function (_a) {
|
95
98
|
var value = _a.value;
|
96
|
-
return (0,
|
99
|
+
return (0, utils_1.toOption)(value);
|
97
100
|
}, { toClassOnly: true }),
|
98
101
|
(0, class_transformer_1.Transform)(function (_a) {
|
99
102
|
var value = _a.value;
|
@@ -104,7 +107,7 @@ var CreateCommunity = /** @class */ (function () {
|
|
104
107
|
__decorate([
|
105
108
|
(0, class_transformer_1.Transform)(function (_a) {
|
106
109
|
var value = _a.value;
|
107
|
-
return (0,
|
110
|
+
return (0, utils_1.toOption)(value);
|
108
111
|
}, { toClassOnly: true }),
|
109
112
|
(0, class_transformer_1.Transform)(function (_a) {
|
110
113
|
var value = _a.value;
|
@@ -115,7 +118,7 @@ var CreateCommunity = /** @class */ (function () {
|
|
115
118
|
__decorate([
|
116
119
|
(0, class_transformer_1.Transform)(function (_a) {
|
117
120
|
var value = _a.value;
|
118
|
-
return (0,
|
121
|
+
return (0, utils_1.toOption)(value);
|
119
122
|
}, { toClassOnly: true }),
|
120
123
|
(0, class_transformer_1.Transform)(function (_a) {
|
121
124
|
var value = _a.value;
|
@@ -126,7 +129,7 @@ var CreateCommunity = /** @class */ (function () {
|
|
126
129
|
__decorate([
|
127
130
|
(0, class_transformer_1.Transform)(function (_a) {
|
128
131
|
var value = _a.value;
|
129
|
-
return (0,
|
132
|
+
return (0, utils_1.toOption)(value);
|
130
133
|
}, { toClassOnly: true }),
|
131
134
|
(0, class_transformer_1.Transform)(function (_a) {
|
132
135
|
var value = _a.value;
|
@@ -140,6 +143,9 @@ exports.CreateCommunity = CreateCommunity;
|
|
140
143
|
var CommunityResponse = /** @class */ (function () {
|
141
144
|
function CommunityResponse() {
|
142
145
|
}
|
146
|
+
__decorate([
|
147
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommunityView; })
|
148
|
+
], CommunityResponse.prototype, "community_view", void 0);
|
143
149
|
return CommunityResponse;
|
144
150
|
}());
|
145
151
|
exports.CommunityResponse = CommunityResponse;
|
@@ -150,7 +156,7 @@ var ListCommunities = /** @class */ (function () {
|
|
150
156
|
__decorate([
|
151
157
|
(0, class_transformer_1.Transform)(function (_a) {
|
152
158
|
var value = _a.value;
|
153
|
-
return (0,
|
159
|
+
return (0, utils_1.toOption)(value);
|
154
160
|
}, { toClassOnly: true }),
|
155
161
|
(0, class_transformer_1.Transform)(function (_a) {
|
156
162
|
var value = _a.value;
|
@@ -161,7 +167,7 @@ var ListCommunities = /** @class */ (function () {
|
|
161
167
|
__decorate([
|
162
168
|
(0, class_transformer_1.Transform)(function (_a) {
|
163
169
|
var value = _a.value;
|
164
|
-
return (0,
|
170
|
+
return (0, utils_1.toOption)(value);
|
165
171
|
}, { toClassOnly: true }),
|
166
172
|
(0, class_transformer_1.Transform)(function (_a) {
|
167
173
|
var value = _a.value;
|
@@ -172,7 +178,7 @@ var ListCommunities = /** @class */ (function () {
|
|
172
178
|
__decorate([
|
173
179
|
(0, class_transformer_1.Transform)(function (_a) {
|
174
180
|
var value = _a.value;
|
175
|
-
return (0,
|
181
|
+
return (0, utils_1.toOption)(value);
|
176
182
|
}, { toClassOnly: true }),
|
177
183
|
(0, class_transformer_1.Transform)(function (_a) {
|
178
184
|
var value = _a.value;
|
@@ -183,7 +189,7 @@ var ListCommunities = /** @class */ (function () {
|
|
183
189
|
__decorate([
|
184
190
|
(0, class_transformer_1.Transform)(function (_a) {
|
185
191
|
var value = _a.value;
|
186
|
-
return (0,
|
192
|
+
return (0, utils_1.toOption)(value);
|
187
193
|
}, { toClassOnly: true }),
|
188
194
|
(0, class_transformer_1.Transform)(function (_a) {
|
189
195
|
var value = _a.value;
|
@@ -194,7 +200,7 @@ var ListCommunities = /** @class */ (function () {
|
|
194
200
|
__decorate([
|
195
201
|
(0, class_transformer_1.Transform)(function (_a) {
|
196
202
|
var value = _a.value;
|
197
|
-
return (0,
|
203
|
+
return (0, utils_1.toOption)(value);
|
198
204
|
}, { toClassOnly: true }),
|
199
205
|
(0, class_transformer_1.Transform)(function (_a) {
|
200
206
|
var value = _a.value;
|
@@ -208,6 +214,9 @@ exports.ListCommunities = ListCommunities;
|
|
208
214
|
var ListCommunitiesResponse = /** @class */ (function () {
|
209
215
|
function ListCommunitiesResponse() {
|
210
216
|
}
|
217
|
+
__decorate([
|
218
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommunityView; })
|
219
|
+
], ListCommunitiesResponse.prototype, "communities", void 0);
|
211
220
|
return ListCommunitiesResponse;
|
212
221
|
}());
|
213
222
|
exports.ListCommunitiesResponse = ListCommunitiesResponse;
|
@@ -218,7 +227,7 @@ var BanFromCommunity = /** @class */ (function () {
|
|
218
227
|
__decorate([
|
219
228
|
(0, class_transformer_1.Transform)(function (_a) {
|
220
229
|
var value = _a.value;
|
221
|
-
return (0,
|
230
|
+
return (0, utils_1.toOption)(value);
|
222
231
|
}, { toClassOnly: true }),
|
223
232
|
(0, class_transformer_1.Transform)(function (_a) {
|
224
233
|
var value = _a.value;
|
@@ -229,7 +238,7 @@ var BanFromCommunity = /** @class */ (function () {
|
|
229
238
|
__decorate([
|
230
239
|
(0, class_transformer_1.Transform)(function (_a) {
|
231
240
|
var value = _a.value;
|
232
|
-
return (0,
|
241
|
+
return (0, utils_1.toOption)(value);
|
233
242
|
}, { toClassOnly: true }),
|
234
243
|
(0, class_transformer_1.Transform)(function (_a) {
|
235
244
|
var value = _a.value;
|
@@ -240,7 +249,7 @@ var BanFromCommunity = /** @class */ (function () {
|
|
240
249
|
__decorate([
|
241
250
|
(0, class_transformer_1.Transform)(function (_a) {
|
242
251
|
var value = _a.value;
|
243
|
-
return (0,
|
252
|
+
return (0, utils_1.toOption)(value);
|
244
253
|
}, { toClassOnly: true }),
|
245
254
|
(0, class_transformer_1.Transform)(function (_a) {
|
246
255
|
var value = _a.value;
|
@@ -254,6 +263,9 @@ exports.BanFromCommunity = BanFromCommunity;
|
|
254
263
|
var BanFromCommunityResponse = /** @class */ (function () {
|
255
264
|
function BanFromCommunityResponse() {
|
256
265
|
}
|
266
|
+
__decorate([
|
267
|
+
(0, class_transformer_1.Type)(function () { return views_1.PersonViewSafe; })
|
268
|
+
], BanFromCommunityResponse.prototype, "person_view", void 0);
|
257
269
|
return BanFromCommunityResponse;
|
258
270
|
}());
|
259
271
|
exports.BanFromCommunityResponse = BanFromCommunityResponse;
|
@@ -267,6 +279,9 @@ exports.AddModToCommunity = AddModToCommunity;
|
|
267
279
|
var AddModToCommunityResponse = /** @class */ (function () {
|
268
280
|
function AddModToCommunityResponse() {
|
269
281
|
}
|
282
|
+
__decorate([
|
283
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommunityModeratorView; })
|
284
|
+
], AddModToCommunityResponse.prototype, "moderators", void 0);
|
270
285
|
return AddModToCommunityResponse;
|
271
286
|
}());
|
272
287
|
exports.AddModToCommunityResponse = AddModToCommunityResponse;
|
@@ -280,7 +295,7 @@ var EditCommunity = /** @class */ (function () {
|
|
280
295
|
__decorate([
|
281
296
|
(0, class_transformer_1.Transform)(function (_a) {
|
282
297
|
var value = _a.value;
|
283
|
-
return (0,
|
298
|
+
return (0, utils_1.toOption)(value);
|
284
299
|
}, { toClassOnly: true }),
|
285
300
|
(0, class_transformer_1.Transform)(function (_a) {
|
286
301
|
var value = _a.value;
|
@@ -291,7 +306,7 @@ var EditCommunity = /** @class */ (function () {
|
|
291
306
|
__decorate([
|
292
307
|
(0, class_transformer_1.Transform)(function (_a) {
|
293
308
|
var value = _a.value;
|
294
|
-
return (0,
|
309
|
+
return (0, utils_1.toOption)(value);
|
295
310
|
}, { toClassOnly: true }),
|
296
311
|
(0, class_transformer_1.Transform)(function (_a) {
|
297
312
|
var value = _a.value;
|
@@ -302,7 +317,7 @@ var EditCommunity = /** @class */ (function () {
|
|
302
317
|
__decorate([
|
303
318
|
(0, class_transformer_1.Transform)(function (_a) {
|
304
319
|
var value = _a.value;
|
305
|
-
return (0,
|
320
|
+
return (0, utils_1.toOption)(value);
|
306
321
|
}, { toClassOnly: true }),
|
307
322
|
(0, class_transformer_1.Transform)(function (_a) {
|
308
323
|
var value = _a.value;
|
@@ -313,7 +328,7 @@ var EditCommunity = /** @class */ (function () {
|
|
313
328
|
__decorate([
|
314
329
|
(0, class_transformer_1.Transform)(function (_a) {
|
315
330
|
var value = _a.value;
|
316
|
-
return (0,
|
331
|
+
return (0, utils_1.toOption)(value);
|
317
332
|
}, { toClassOnly: true }),
|
318
333
|
(0, class_transformer_1.Transform)(function (_a) {
|
319
334
|
var value = _a.value;
|
@@ -324,7 +339,7 @@ var EditCommunity = /** @class */ (function () {
|
|
324
339
|
__decorate([
|
325
340
|
(0, class_transformer_1.Transform)(function (_a) {
|
326
341
|
var value = _a.value;
|
327
|
-
return (0,
|
342
|
+
return (0, utils_1.toOption)(value);
|
328
343
|
}, { toClassOnly: true }),
|
329
344
|
(0, class_transformer_1.Transform)(function (_a) {
|
330
345
|
var value = _a.value;
|
@@ -335,7 +350,7 @@ var EditCommunity = /** @class */ (function () {
|
|
335
350
|
__decorate([
|
336
351
|
(0, class_transformer_1.Transform)(function (_a) {
|
337
352
|
var value = _a.value;
|
338
|
-
return (0,
|
353
|
+
return (0, utils_1.toOption)(value);
|
339
354
|
}, { toClassOnly: true }),
|
340
355
|
(0, class_transformer_1.Transform)(function (_a) {
|
341
356
|
var value = _a.value;
|
@@ -363,7 +378,7 @@ var RemoveCommunity = /** @class */ (function () {
|
|
363
378
|
__decorate([
|
364
379
|
(0, class_transformer_1.Transform)(function (_a) {
|
365
380
|
var value = _a.value;
|
366
|
-
return (0,
|
381
|
+
return (0, utils_1.toOption)(value);
|
367
382
|
}, { toClassOnly: true }),
|
368
383
|
(0, class_transformer_1.Transform)(function (_a) {
|
369
384
|
var value = _a.value;
|
@@ -374,7 +389,7 @@ var RemoveCommunity = /** @class */ (function () {
|
|
374
389
|
__decorate([
|
375
390
|
(0, class_transformer_1.Transform)(function (_a) {
|
376
391
|
var value = _a.value;
|
377
|
-
return (0,
|
392
|
+
return (0, utils_1.toOption)(value);
|
378
393
|
}, { toClassOnly: true }),
|
379
394
|
(0, class_transformer_1.Transform)(function (_a) {
|
380
395
|
var value = _a.value;
|
@@ -409,6 +424,9 @@ exports.BlockCommunity = BlockCommunity;
|
|
409
424
|
var BlockCommunityResponse = /** @class */ (function () {
|
410
425
|
function BlockCommunityResponse() {
|
411
426
|
}
|
427
|
+
__decorate([
|
428
|
+
(0, class_transformer_1.Type)(function () { return views_1.CommunityView; })
|
429
|
+
], BlockCommunityResponse.prototype, "community_view", void 0);
|
412
430
|
return BlockCommunityResponse;
|
413
431
|
}());
|
414
432
|
exports.BlockCommunityResponse = BlockCommunityResponse;
|