lemmy-js-client 0.17.0-rc.15 → 0.17.0-rc.18
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/http.js +4 -2
- package/dist/interfaces/api/comment.d.ts +11 -11
- package/dist/interfaces/api/comment.js +22 -55
- package/dist/interfaces/api/community.d.ts +11 -11
- package/dist/interfaces/api/community.js +22 -63
- package/dist/interfaces/api/person.d.ts +23 -22
- package/dist/interfaces/api/person.js +46 -113
- package/dist/interfaces/api/post.d.ts +15 -15
- package/dist/interfaces/api/post.js +30 -72
- package/dist/interfaces/api/site.d.ts +15 -13
- package/dist/interfaces/api/site.js +37 -78
- package/dist/interfaces/others.d.ts +1 -0
- package/dist/interfaces/others.js +2 -1
- package/package.json +1 -1
@@ -11,14 +11,8 @@ var monads_1 = require("@sniptt/monads");
|
|
11
11
|
var class_transformer_1 = require("class-transformer");
|
12
12
|
var utils_1 = require("../../utils");
|
13
13
|
var CreatePost = /** @class */ (function () {
|
14
|
-
function CreatePost(
|
15
|
-
this
|
16
|
-
this.url = url;
|
17
|
-
this.body = body;
|
18
|
-
this.nsfw = nsfw;
|
19
|
-
this.community_id = community_id;
|
20
|
-
this.honeypot = honeypot;
|
21
|
-
this.auth = auth;
|
14
|
+
function CreatePost(init) {
|
15
|
+
Object.assign(this, init);
|
22
16
|
}
|
23
17
|
__decorate([
|
24
18
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -74,9 +68,8 @@ var PostResponse = /** @class */ (function () {
|
|
74
68
|
}());
|
75
69
|
exports.PostResponse = PostResponse;
|
76
70
|
var GetPost = /** @class */ (function () {
|
77
|
-
function GetPost(
|
78
|
-
this
|
79
|
-
this.auth = auth;
|
71
|
+
function GetPost(init) {
|
72
|
+
Object.assign(this, init);
|
80
73
|
}
|
81
74
|
__decorate([
|
82
75
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -99,15 +92,8 @@ var GetPostResponse = /** @class */ (function () {
|
|
99
92
|
}());
|
100
93
|
exports.GetPostResponse = GetPostResponse;
|
101
94
|
var GetPosts = /** @class */ (function () {
|
102
|
-
function GetPosts(
|
103
|
-
this
|
104
|
-
this.sort = sort;
|
105
|
-
this.page = page;
|
106
|
-
this.limit = limit;
|
107
|
-
this.community_id = community_id;
|
108
|
-
this.community_name = community_name;
|
109
|
-
this.saved_only = saved_only;
|
110
|
-
this.auth = auth;
|
95
|
+
function GetPosts(init) {
|
96
|
+
Object.assign(this, init);
|
111
97
|
}
|
112
98
|
__decorate([
|
113
99
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -207,22 +193,15 @@ var GetPostsResponse = /** @class */ (function () {
|
|
207
193
|
}());
|
208
194
|
exports.GetPostsResponse = GetPostsResponse;
|
209
195
|
var CreatePostLike = /** @class */ (function () {
|
210
|
-
function CreatePostLike(
|
211
|
-
this
|
212
|
-
this.score = score;
|
213
|
-
this.auth = auth;
|
196
|
+
function CreatePostLike(init) {
|
197
|
+
Object.assign(this, init);
|
214
198
|
}
|
215
199
|
return CreatePostLike;
|
216
200
|
}());
|
217
201
|
exports.CreatePostLike = CreatePostLike;
|
218
202
|
var EditPost = /** @class */ (function () {
|
219
|
-
function EditPost(
|
220
|
-
this
|
221
|
-
this.name = name;
|
222
|
-
this.url = url;
|
223
|
-
this.body = body;
|
224
|
-
this.nsfw = nsfw;
|
225
|
-
this.auth = auth;
|
203
|
+
function EditPost(init) {
|
204
|
+
Object.assign(this, init);
|
226
205
|
}
|
227
206
|
__decorate([
|
228
207
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -272,10 +251,8 @@ var EditPost = /** @class */ (function () {
|
|
272
251
|
}());
|
273
252
|
exports.EditPost = EditPost;
|
274
253
|
var DeletePost = /** @class */ (function () {
|
275
|
-
function DeletePost(
|
276
|
-
this
|
277
|
-
this.deleted = deleted;
|
278
|
-
this.auth = auth;
|
254
|
+
function DeletePost(init) {
|
255
|
+
Object.assign(this, init);
|
279
256
|
}
|
280
257
|
return DeletePost;
|
281
258
|
}());
|
@@ -284,11 +261,8 @@ exports.DeletePost = DeletePost;
|
|
284
261
|
* Only admins and mods can remove a post.
|
285
262
|
*/
|
286
263
|
var RemovePost = /** @class */ (function () {
|
287
|
-
function RemovePost(
|
288
|
-
this
|
289
|
-
this.removed = removed;
|
290
|
-
this.reason = reason;
|
291
|
-
this.auth = auth;
|
264
|
+
function RemovePost(init) {
|
265
|
+
Object.assign(this, init);
|
292
266
|
}
|
293
267
|
__decorate([
|
294
268
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -308,10 +282,8 @@ exports.RemovePost = RemovePost;
|
|
308
282
|
* Marks a post as read.
|
309
283
|
*/
|
310
284
|
var MarkPostAsRead = /** @class */ (function () {
|
311
|
-
function MarkPostAsRead(
|
312
|
-
this
|
313
|
-
this.read = read;
|
314
|
-
this.auth = auth;
|
285
|
+
function MarkPostAsRead(init) {
|
286
|
+
Object.assign(this, init);
|
315
287
|
}
|
316
288
|
return MarkPostAsRead;
|
317
289
|
}());
|
@@ -320,10 +292,8 @@ exports.MarkPostAsRead = MarkPostAsRead;
|
|
320
292
|
* Only admins and mods can lock a post.
|
321
293
|
*/
|
322
294
|
var LockPost = /** @class */ (function () {
|
323
|
-
function LockPost(
|
324
|
-
this
|
325
|
-
this.locked = locked;
|
326
|
-
this.auth = auth;
|
295
|
+
function LockPost(init) {
|
296
|
+
Object.assign(this, init);
|
327
297
|
}
|
328
298
|
return LockPost;
|
329
299
|
}());
|
@@ -332,28 +302,22 @@ exports.LockPost = LockPost;
|
|
332
302
|
* Only admins and mods can sticky a post.
|
333
303
|
*/
|
334
304
|
var StickyPost = /** @class */ (function () {
|
335
|
-
function StickyPost(
|
336
|
-
this
|
337
|
-
this.stickied = stickied;
|
338
|
-
this.auth = auth;
|
305
|
+
function StickyPost(init) {
|
306
|
+
Object.assign(this, init);
|
339
307
|
}
|
340
308
|
return StickyPost;
|
341
309
|
}());
|
342
310
|
exports.StickyPost = StickyPost;
|
343
311
|
var SavePost = /** @class */ (function () {
|
344
|
-
function SavePost(
|
345
|
-
this
|
346
|
-
this.save = save;
|
347
|
-
this.auth = auth;
|
312
|
+
function SavePost(init) {
|
313
|
+
Object.assign(this, init);
|
348
314
|
}
|
349
315
|
return SavePost;
|
350
316
|
}());
|
351
317
|
exports.SavePost = SavePost;
|
352
318
|
var CreatePostReport = /** @class */ (function () {
|
353
|
-
function CreatePostReport(
|
354
|
-
this
|
355
|
-
this.reason = reason;
|
356
|
-
this.auth = auth;
|
319
|
+
function CreatePostReport(init) {
|
320
|
+
Object.assign(this, init);
|
357
321
|
}
|
358
322
|
return CreatePostReport;
|
359
323
|
}());
|
@@ -365,21 +329,15 @@ var PostReportResponse = /** @class */ (function () {
|
|
365
329
|
}());
|
366
330
|
exports.PostReportResponse = PostReportResponse;
|
367
331
|
var ResolvePostReport = /** @class */ (function () {
|
368
|
-
function ResolvePostReport(
|
369
|
-
this
|
370
|
-
this.resolved = resolved;
|
371
|
-
this.auth = auth;
|
332
|
+
function ResolvePostReport(init) {
|
333
|
+
Object.assign(this, init);
|
372
334
|
}
|
373
335
|
return ResolvePostReport;
|
374
336
|
}());
|
375
337
|
exports.ResolvePostReport = ResolvePostReport;
|
376
338
|
var ListPostReports = /** @class */ (function () {
|
377
|
-
function ListPostReports(
|
378
|
-
this
|
379
|
-
this.limit = limit;
|
380
|
-
this.community_id = community_id;
|
381
|
-
this.unresolved_only = unresolved_only;
|
382
|
-
this.auth = auth;
|
339
|
+
function ListPostReports(init) {
|
340
|
+
Object.assign(this, init);
|
383
341
|
}
|
384
342
|
__decorate([
|
385
343
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -435,8 +393,8 @@ var ListPostReportsResponse = /** @class */ (function () {
|
|
435
393
|
}());
|
436
394
|
exports.ListPostReportsResponse = ListPostReportsResponse;
|
437
395
|
var GetSiteMetadata = /** @class */ (function () {
|
438
|
-
function GetSiteMetadata(
|
439
|
-
this
|
396
|
+
function GetSiteMetadata(init) {
|
397
|
+
Object.assign(this, init);
|
440
398
|
}
|
441
399
|
return GetSiteMetadata;
|
442
400
|
}());
|
@@ -18,7 +18,7 @@ export declare class Search {
|
|
18
18
|
page: Option<number>;
|
19
19
|
limit: Option<number>;
|
20
20
|
auth: Option<string>;
|
21
|
-
constructor(
|
21
|
+
constructor(init: Search);
|
22
22
|
}
|
23
23
|
export declare class SearchResponse {
|
24
24
|
/**
|
@@ -36,7 +36,7 @@ export declare class GetModlog {
|
|
36
36
|
page: Option<number>;
|
37
37
|
limit: Option<number>;
|
38
38
|
auth: Option<string>;
|
39
|
-
constructor(
|
39
|
+
constructor(init: GetModlog);
|
40
40
|
}
|
41
41
|
export declare class GetModlogResponse {
|
42
42
|
removed_posts: ModRemovePostView[];
|
@@ -67,7 +67,7 @@ export declare class CreateSite {
|
|
67
67
|
default_theme: Option<string>;
|
68
68
|
default_post_listing_type: Option<string>;
|
69
69
|
auth: string;
|
70
|
-
constructor(
|
70
|
+
constructor(init: CreateSite);
|
71
71
|
}
|
72
72
|
export declare class EditSite {
|
73
73
|
name: Option<string>;
|
@@ -87,11 +87,11 @@ export declare class EditSite {
|
|
87
87
|
legal_information: Option<string>;
|
88
88
|
default_post_listing_type: Option<string>;
|
89
89
|
auth: string;
|
90
|
-
constructor(
|
90
|
+
constructor(init: EditSite);
|
91
91
|
}
|
92
92
|
export declare class GetSite {
|
93
93
|
auth: Option<string>;
|
94
|
-
constructor(
|
94
|
+
constructor(init: GetSite);
|
95
95
|
}
|
96
96
|
export declare class SiteResponse {
|
97
97
|
site_view: SiteView;
|
@@ -113,20 +113,21 @@ export declare class GetSiteResponse {
|
|
113
113
|
/**
|
114
114
|
* Your user info, such as blocks, follows, etc.
|
115
115
|
*/
|
116
|
-
export
|
116
|
+
export declare class MyUserInfo {
|
117
117
|
local_user_view: LocalUserSettingsView;
|
118
118
|
follows: CommunityFollowerView[];
|
119
119
|
moderates: CommunityModeratorView[];
|
120
120
|
community_blocks: CommunityBlockView[];
|
121
121
|
person_blocks: PersonBlockView[];
|
122
|
+
constructor(init: MyUserInfo);
|
122
123
|
}
|
123
124
|
export declare class LeaveAdmin {
|
124
125
|
auth: string;
|
125
|
-
constructor(
|
126
|
+
constructor(init: LeaveAdmin);
|
126
127
|
}
|
127
128
|
export declare class GetSiteConfig {
|
128
129
|
auth: string;
|
129
|
-
constructor(
|
130
|
+
constructor(init: GetSiteConfig);
|
130
131
|
}
|
131
132
|
export declare class GetSiteConfigResponse {
|
132
133
|
config_hjson: string;
|
@@ -134,17 +135,18 @@ export declare class GetSiteConfigResponse {
|
|
134
135
|
export declare class SaveSiteConfig {
|
135
136
|
config_hjson: string;
|
136
137
|
auth: string;
|
137
|
-
constructor(
|
138
|
+
constructor(init: SaveSiteConfig);
|
138
139
|
}
|
139
140
|
export declare class FederatedInstances {
|
140
141
|
linked: string[];
|
141
142
|
allowed: Option<string[]>;
|
142
143
|
blocked: Option<string[]>;
|
144
|
+
constructor(init: FederatedInstances);
|
143
145
|
}
|
144
146
|
export declare class ResolveObject {
|
145
147
|
q: string;
|
146
148
|
auth: Option<string>;
|
147
|
-
constructor(
|
149
|
+
constructor(init: ResolveObject);
|
148
150
|
}
|
149
151
|
export declare class ResolveObjectResponse {
|
150
152
|
comment: Option<CommentView>;
|
@@ -160,7 +162,7 @@ export declare class ListRegistrationApplications {
|
|
160
162
|
page: Option<number>;
|
161
163
|
limit: Option<number>;
|
162
164
|
auth: string;
|
163
|
-
constructor(
|
165
|
+
constructor(init: ListRegistrationApplications);
|
164
166
|
}
|
165
167
|
export declare class ListRegistrationApplicationsResponse {
|
166
168
|
registration_applications: RegistrationApplicationView[];
|
@@ -170,14 +172,14 @@ export declare class ApproveRegistrationApplication {
|
|
170
172
|
approve: boolean;
|
171
173
|
deny_reason: Option<string>;
|
172
174
|
auth: string;
|
173
|
-
constructor(
|
175
|
+
constructor(init: ApproveRegistrationApplication);
|
174
176
|
}
|
175
177
|
export declare class RegistrationApplicationResponse {
|
176
178
|
registration_application: RegistrationApplicationView;
|
177
179
|
}
|
178
180
|
export declare class GetUnreadRegistrationApplicationCount {
|
179
181
|
auth: string;
|
180
|
-
constructor(
|
182
|
+
constructor(init: GetUnreadRegistrationApplicationCount);
|
181
183
|
}
|
182
184
|
export declare class GetUnreadRegistrationApplicationCountResponse {
|
183
185
|
registration_applications: number;
|
@@ -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.GetUnreadRegistrationApplicationCountResponse = exports.GetUnreadRegistrationApplicationCount = exports.RegistrationApplicationResponse = exports.ApproveRegistrationApplication = exports.ListRegistrationApplicationsResponse = exports.ListRegistrationApplications = exports.ResolveObjectResponse = exports.ResolveObject = exports.FederatedInstances = exports.SaveSiteConfig = exports.GetSiteConfigResponse = exports.GetSiteConfig = exports.LeaveAdmin = exports.GetSiteResponse = exports.SiteResponse = exports.GetSite = exports.EditSite = exports.CreateSite = exports.GetModlogResponse = exports.GetModlog = exports.SearchResponse = exports.Search = void 0;
|
9
|
+
exports.GetUnreadRegistrationApplicationCountResponse = exports.GetUnreadRegistrationApplicationCount = exports.RegistrationApplicationResponse = exports.ApproveRegistrationApplication = exports.ListRegistrationApplicationsResponse = exports.ListRegistrationApplications = exports.ResolveObjectResponse = exports.ResolveObject = exports.FederatedInstances = exports.SaveSiteConfig = exports.GetSiteConfigResponse = exports.GetSiteConfig = exports.LeaveAdmin = exports.MyUserInfo = exports.GetSiteResponse = exports.SiteResponse = exports.GetSite = exports.EditSite = exports.CreateSite = exports.GetModlogResponse = exports.GetModlog = exports.SearchResponse = exports.Search = void 0;
|
10
10
|
var monads_1 = require("@sniptt/monads");
|
11
11
|
var class_transformer_1 = require("class-transformer");
|
12
12
|
var utils_1 = require("../../utils");
|
@@ -14,17 +14,8 @@ var utils_1 = require("../../utils");
|
|
14
14
|
* Search lemmy for different types of data.
|
15
15
|
*/
|
16
16
|
var Search = /** @class */ (function () {
|
17
|
-
function Search(
|
18
|
-
this
|
19
|
-
this.type_ = type_;
|
20
|
-
this.community_id = community_id;
|
21
|
-
this.community_name = community_name;
|
22
|
-
this.creator_id = creator_id;
|
23
|
-
this.sort = sort;
|
24
|
-
this.listing_type = listing_type;
|
25
|
-
this.page = page;
|
26
|
-
this.limit = limit;
|
27
|
-
this.auth = auth;
|
17
|
+
function Search(init) {
|
18
|
+
Object.assign(this, init);
|
28
19
|
}
|
29
20
|
__decorate([
|
30
21
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -135,12 +126,8 @@ var SearchResponse = /** @class */ (function () {
|
|
135
126
|
}());
|
136
127
|
exports.SearchResponse = SearchResponse;
|
137
128
|
var GetModlog = /** @class */ (function () {
|
138
|
-
function GetModlog(
|
139
|
-
this
|
140
|
-
this.community_id = community_id;
|
141
|
-
this.page = page;
|
142
|
-
this.limit = limit;
|
143
|
-
this.auth = auth;
|
129
|
+
function GetModlog(init) {
|
130
|
+
Object.assign(this, init);
|
144
131
|
}
|
145
132
|
__decorate([
|
146
133
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -207,23 +194,8 @@ var GetModlogResponse = /** @class */ (function () {
|
|
207
194
|
}());
|
208
195
|
exports.GetModlogResponse = GetModlogResponse;
|
209
196
|
var CreateSite = /** @class */ (function () {
|
210
|
-
function CreateSite(
|
211
|
-
this
|
212
|
-
this.sidebar = sidebar;
|
213
|
-
this.description = description;
|
214
|
-
this.icon = icon;
|
215
|
-
this.banner = banner;
|
216
|
-
this.enable_downvotes = enable_downvotes;
|
217
|
-
this.open_registration = open_registration;
|
218
|
-
this.enable_nsfw = enable_nsfw;
|
219
|
-
this.community_creation_admin_only = community_creation_admin_only;
|
220
|
-
this.require_email_verification = require_email_verification;
|
221
|
-
this.require_application = require_application;
|
222
|
-
this.application_question = application_question;
|
223
|
-
this.private_instance = private_instance;
|
224
|
-
this.default_theme = default_theme;
|
225
|
-
this.default_post_listing_type = default_post_listing_type;
|
226
|
-
this.auth = auth;
|
197
|
+
function CreateSite(init) {
|
198
|
+
Object.assign(this, init);
|
227
199
|
}
|
228
200
|
__decorate([
|
229
201
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -383,24 +355,8 @@ var CreateSite = /** @class */ (function () {
|
|
383
355
|
}());
|
384
356
|
exports.CreateSite = CreateSite;
|
385
357
|
var EditSite = /** @class */ (function () {
|
386
|
-
function EditSite(
|
387
|
-
this
|
388
|
-
this.sidebar = sidebar;
|
389
|
-
this.description = description;
|
390
|
-
this.icon = icon;
|
391
|
-
this.banner = banner;
|
392
|
-
this.enable_downvotes = enable_downvotes;
|
393
|
-
this.open_registration = open_registration;
|
394
|
-
this.enable_nsfw = enable_nsfw;
|
395
|
-
this.community_creation_admin_only = community_creation_admin_only;
|
396
|
-
this.require_email_verification = require_email_verification;
|
397
|
-
this.require_application = require_application;
|
398
|
-
this.application_question = application_question;
|
399
|
-
this.private_instance = private_instance;
|
400
|
-
this.default_theme = default_theme;
|
401
|
-
this.legal_information = legal_information;
|
402
|
-
this.default_post_listing_type = default_post_listing_type;
|
403
|
-
this.auth = auth;
|
358
|
+
function EditSite(init) {
|
359
|
+
Object.assign(this, init);
|
404
360
|
}
|
405
361
|
__decorate([
|
406
362
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -582,8 +538,8 @@ var EditSite = /** @class */ (function () {
|
|
582
538
|
}());
|
583
539
|
exports.EditSite = EditSite;
|
584
540
|
var GetSite = /** @class */ (function () {
|
585
|
-
function GetSite(
|
586
|
-
this
|
541
|
+
function GetSite(init) {
|
542
|
+
Object.assign(this, init);
|
587
543
|
}
|
588
544
|
__decorate([
|
589
545
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -644,16 +600,26 @@ var GetSiteResponse = /** @class */ (function () {
|
|
644
600
|
return GetSiteResponse;
|
645
601
|
}());
|
646
602
|
exports.GetSiteResponse = GetSiteResponse;
|
603
|
+
/**
|
604
|
+
* Your user info, such as blocks, follows, etc.
|
605
|
+
*/
|
606
|
+
var MyUserInfo = /** @class */ (function () {
|
607
|
+
function MyUserInfo(init) {
|
608
|
+
Object.assign(this, init);
|
609
|
+
}
|
610
|
+
return MyUserInfo;
|
611
|
+
}());
|
612
|
+
exports.MyUserInfo = MyUserInfo;
|
647
613
|
var LeaveAdmin = /** @class */ (function () {
|
648
|
-
function LeaveAdmin(
|
649
|
-
this
|
614
|
+
function LeaveAdmin(init) {
|
615
|
+
Object.assign(this, init);
|
650
616
|
}
|
651
617
|
return LeaveAdmin;
|
652
618
|
}());
|
653
619
|
exports.LeaveAdmin = LeaveAdmin;
|
654
620
|
var GetSiteConfig = /** @class */ (function () {
|
655
|
-
function GetSiteConfig(
|
656
|
-
this
|
621
|
+
function GetSiteConfig(init) {
|
622
|
+
Object.assign(this, init);
|
657
623
|
}
|
658
624
|
return GetSiteConfig;
|
659
625
|
}());
|
@@ -665,15 +631,15 @@ var GetSiteConfigResponse = /** @class */ (function () {
|
|
665
631
|
}());
|
666
632
|
exports.GetSiteConfigResponse = GetSiteConfigResponse;
|
667
633
|
var SaveSiteConfig = /** @class */ (function () {
|
668
|
-
function SaveSiteConfig(
|
669
|
-
this
|
670
|
-
this.auth = auth;
|
634
|
+
function SaveSiteConfig(init) {
|
635
|
+
Object.assign(this, init);
|
671
636
|
}
|
672
637
|
return SaveSiteConfig;
|
673
638
|
}());
|
674
639
|
exports.SaveSiteConfig = SaveSiteConfig;
|
675
640
|
var FederatedInstances = /** @class */ (function () {
|
676
|
-
function FederatedInstances() {
|
641
|
+
function FederatedInstances(init) {
|
642
|
+
Object.assign(this, init);
|
677
643
|
}
|
678
644
|
__decorate([
|
679
645
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -701,9 +667,8 @@ var FederatedInstances = /** @class */ (function () {
|
|
701
667
|
}());
|
702
668
|
exports.FederatedInstances = FederatedInstances;
|
703
669
|
var ResolveObject = /** @class */ (function () {
|
704
|
-
function ResolveObject(
|
705
|
-
this
|
706
|
-
this.auth = auth;
|
670
|
+
function ResolveObject(init) {
|
671
|
+
Object.assign(this, init);
|
707
672
|
}
|
708
673
|
__decorate([
|
709
674
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -770,11 +735,8 @@ var ResolveObjectResponse = /** @class */ (function () {
|
|
770
735
|
}());
|
771
736
|
exports.ResolveObjectResponse = ResolveObjectResponse;
|
772
737
|
var ListRegistrationApplications = /** @class */ (function () {
|
773
|
-
function ListRegistrationApplications(
|
774
|
-
this
|
775
|
-
this.page = page;
|
776
|
-
this.limit = limit;
|
777
|
-
this.auth = auth;
|
738
|
+
function ListRegistrationApplications(init) {
|
739
|
+
Object.assign(this, init);
|
778
740
|
}
|
779
741
|
__decorate([
|
780
742
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -819,11 +781,8 @@ var ListRegistrationApplicationsResponse = /** @class */ (function () {
|
|
819
781
|
}());
|
820
782
|
exports.ListRegistrationApplicationsResponse = ListRegistrationApplicationsResponse;
|
821
783
|
var ApproveRegistrationApplication = /** @class */ (function () {
|
822
|
-
function ApproveRegistrationApplication(
|
823
|
-
this
|
824
|
-
this.approve = approve;
|
825
|
-
this.deny_reason = deny_reason;
|
826
|
-
this.auth = auth;
|
784
|
+
function ApproveRegistrationApplication(init) {
|
785
|
+
Object.assign(this, init);
|
827
786
|
}
|
828
787
|
__decorate([
|
829
788
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -846,8 +805,8 @@ var RegistrationApplicationResponse = /** @class */ (function () {
|
|
846
805
|
}());
|
847
806
|
exports.RegistrationApplicationResponse = RegistrationApplicationResponse;
|
848
807
|
var GetUnreadRegistrationApplicationCount = /** @class */ (function () {
|
849
|
-
function GetUnreadRegistrationApplicationCount(
|
850
|
-
this
|
808
|
+
function GetUnreadRegistrationApplicationCount(init) {
|
809
|
+
Object.assign(this, init);
|
851
810
|
}
|
852
811
|
return GetUnreadRegistrationApplicationCount;
|
853
812
|
}());
|
@@ -163,7 +163,8 @@ var SearchType;
|
|
163
163
|
* A holder for a site's metadata ( such as opengraph tags ), used for post links.
|
164
164
|
*/
|
165
165
|
var SiteMetadata = /** @class */ (function () {
|
166
|
-
function SiteMetadata() {
|
166
|
+
function SiteMetadata(init) {
|
167
|
+
Object.assign(this, init);
|
167
168
|
}
|
168
169
|
__decorate([
|
169
170
|
(0, class_transformer_1.Transform)(function (_a) {
|
package/package.json
CHANGED