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

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.
@@ -11,9 +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 Login = /** @class */ (function () {
14
- function Login(username_or_email, password) {
15
- this.username_or_email = username_or_email;
16
- this.password = password;
14
+ function Login(init) {
15
+ Object.assign(this, init);
17
16
  }
18
17
  return Login;
19
18
  }());
@@ -24,16 +23,8 @@ exports.Login = Login;
24
23
  * Only the first user to register will be able to be the admin.
25
24
  */
26
25
  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;
26
+ function Register(init) {
27
+ Object.assign(this, init);
37
28
  }
38
29
  __decorate([
39
30
  (0, class_transformer_1.Transform)(function (_a) {
@@ -134,26 +125,8 @@ var CaptchaResponse = /** @class */ (function () {
134
125
  }());
135
126
  exports.CaptchaResponse = CaptchaResponse;
136
127
  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;
128
+ function SaveUserSettings(init) {
129
+ Object.assign(this, init);
157
130
  }
158
131
  __decorate([
159
132
  (0, class_transformer_1.Transform)(function (_a) {
@@ -357,11 +330,8 @@ var SaveUserSettings = /** @class */ (function () {
357
330
  }());
358
331
  exports.SaveUserSettings = SaveUserSettings;
359
332
  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;
333
+ function ChangePassword(init) {
334
+ Object.assign(this, init);
365
335
  }
366
336
  return ChangePassword;
367
337
  }());
@@ -387,15 +357,8 @@ var LoginResponse = /** @class */ (function () {
387
357
  }());
388
358
  exports.LoginResponse = LoginResponse;
389
359
  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;
360
+ function GetPersonDetails(init) {
361
+ Object.assign(this, init);
399
362
  }
400
363
  __decorate([
401
364
  (0, class_transformer_1.Transform)(function (_a) {
@@ -514,10 +477,8 @@ var MarkAllAsRead = /** @class */ (function () {
514
477
  }());
515
478
  exports.MarkAllAsRead = MarkAllAsRead;
516
479
  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;
480
+ function AddAdmin(init) {
481
+ Object.assign(this, init);
521
482
  }
522
483
  return AddAdmin;
523
484
  }());
@@ -529,13 +490,8 @@ var AddAdminResponse = /** @class */ (function () {
529
490
  }());
530
491
  exports.AddAdminResponse = AddAdminResponse;
531
492
  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;
493
+ function BanPerson(init) {
494
+ Object.assign(this, init);
539
495
  }
540
496
  __decorate([
541
497
  (0, class_transformer_1.Transform)(function (_a) {
@@ -580,12 +536,8 @@ var BanPersonResponse = /** @class */ (function () {
580
536
  }());
581
537
  exports.BanPersonResponse = BanPersonResponse;
582
538
  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;
539
+ function GetReplies(init) {
540
+ Object.assign(this, init);
589
541
  }
590
542
  __decorate([
591
543
  (0, class_transformer_1.Transform)(function (_a) {
@@ -635,12 +587,8 @@ var GetReplies = /** @class */ (function () {
635
587
  }());
636
588
  exports.GetReplies = GetReplies;
637
589
  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;
590
+ function GetPersonMentions(init) {
591
+ Object.assign(this, init);
644
592
  }
645
593
  __decorate([
646
594
  (0, class_transformer_1.Transform)(function (_a) {
@@ -690,10 +638,8 @@ var GetPersonMentions = /** @class */ (function () {
690
638
  }());
691
639
  exports.GetPersonMentions = GetPersonMentions;
692
640
  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;
641
+ function MarkPersonMentionAsRead(init) {
642
+ Object.assign(this, init);
697
643
  }
698
644
  return MarkPersonMentionAsRead;
699
645
  }());
@@ -708,9 +654,8 @@ exports.PersonMentionResponse = PersonMentionResponse;
708
654
  * Permanently deletes your posts and comments
709
655
  */
710
656
  var DeleteAccount = /** @class */ (function () {
711
- function DeleteAccount(password, auth) {
712
- this.password = password;
713
- this.auth = auth;
657
+ function DeleteAccount(init) {
658
+ Object.assign(this, init);
714
659
  }
715
660
  return DeleteAccount;
716
661
  }());
@@ -722,8 +667,8 @@ var DeleteAccountResponse = /** @class */ (function () {
722
667
  }());
723
668
  exports.DeleteAccountResponse = DeleteAccountResponse;
724
669
  var PasswordReset = /** @class */ (function () {
725
- function PasswordReset(email) {
726
- this.email = email;
670
+ function PasswordReset(init) {
671
+ Object.assign(this, init);
727
672
  }
728
673
  return PasswordReset;
729
674
  }());
@@ -735,52 +680,43 @@ var PasswordResetResponse = /** @class */ (function () {
735
680
  }());
736
681
  exports.PasswordResetResponse = PasswordResetResponse;
737
682
  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;
683
+ function PasswordChange(init) {
684
+ Object.assign(this, init);
742
685
  }
743
686
  return PasswordChange;
744
687
  }());
745
688
  exports.PasswordChange = PasswordChange;
746
689
  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;
690
+ function CreatePrivateMessage(init) {
691
+ Object.assign(this, init);
751
692
  }
752
693
  return CreatePrivateMessage;
753
694
  }());
754
695
  exports.CreatePrivateMessage = CreatePrivateMessage;
755
696
  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;
697
+ function EditPrivateMessage(init) {
698
+ Object.assign(this, init);
760
699
  }
761
700
  return EditPrivateMessage;
762
701
  }());
763
702
  exports.EditPrivateMessage = EditPrivateMessage;
764
703
  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;
704
+ function DeletePrivateMessage(init) {
705
+ Object.assign(this, init);
769
706
  }
770
707
  return DeletePrivateMessage;
771
708
  }());
772
709
  exports.DeletePrivateMessage = DeletePrivateMessage;
773
710
  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;
711
+ function MarkPrivateMessageAsRead(init) {
712
+ Object.assign(this, init);
778
713
  }
779
714
  return MarkPrivateMessageAsRead;
780
715
  }());
781
716
  exports.MarkPrivateMessageAsRead = MarkPrivateMessageAsRead;
782
717
  var GetPrivateMessages = /** @class */ (function () {
783
- function GetPrivateMessages() {
718
+ function GetPrivateMessages(init) {
719
+ Object.assign(this, init);
784
720
  }
785
721
  __decorate([
786
722
  (0, class_transformer_1.Transform)(function (_a) {
@@ -831,9 +767,8 @@ var PrivateMessageResponse = /** @class */ (function () {
831
767
  }());
832
768
  exports.PrivateMessageResponse = PrivateMessageResponse;
833
769
  var GetReportCount = /** @class */ (function () {
834
- function GetReportCount(community_id, auth) {
835
- this.community_id = community_id;
836
- this.auth = auth;
770
+ function GetReportCount(init) {
771
+ Object.assign(this, init);
837
772
  }
838
773
  __decorate([
839
774
  (0, class_transformer_1.Transform)(function (_a) {
@@ -867,8 +802,8 @@ var GetReportCountResponse = /** @class */ (function () {
867
802
  }());
868
803
  exports.GetReportCountResponse = GetReportCountResponse;
869
804
  var GetUnreadCount = /** @class */ (function () {
870
- function GetUnreadCount(auth) {
871
- this.auth = auth;
805
+ function GetUnreadCount(init) {
806
+ Object.assign(this, init);
872
807
  }
873
808
  return GetUnreadCount;
874
809
  }());
@@ -880,8 +815,8 @@ var GetUnreadCountResponse = /** @class */ (function () {
880
815
  }());
881
816
  exports.GetUnreadCountResponse = GetUnreadCountResponse;
882
817
  var VerifyEmail = /** @class */ (function () {
883
- function VerifyEmail(token) {
884
- this.token = token;
818
+ function VerifyEmail(init) {
819
+ Object.assign(this, init);
885
820
  }
886
821
  return VerifyEmail;
887
822
  }());
@@ -893,10 +828,8 @@ var VerifyEmailResponse = /** @class */ (function () {
893
828
  }());
894
829
  exports.VerifyEmailResponse = VerifyEmailResponse;
895
830
  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;
831
+ function BlockPerson(init) {
832
+ Object.assign(this, init);
900
833
  }
901
834
  return BlockPerson;
902
835
  }());
@@ -908,8 +841,8 @@ var BlockPersonResponse = /** @class */ (function () {
908
841
  }());
909
842
  exports.BlockPersonResponse = BlockPersonResponse;
910
843
  var GetBannedPersons = /** @class */ (function () {
911
- function GetBannedPersons(auth) {
912
- this.auth = auth;
844
+ function GetBannedPersons(init) {
845
+ Object.assign(this, init);
913
846
  }
914
847
  return GetBannedPersons;
915
848
  }());
@@ -9,7 +9,7 @@ export declare class CreatePost {
9
9
  community_id: number;
10
10
  honeypot: Option<string>;
11
11
  auth: string;
12
- constructor(name: string, url: Option<string>, body: Option<string>, nsfw: Option<boolean>, community_id: number, honeypot: Option<string>, auth: string);
12
+ constructor(init: CreatePost);
13
13
  }
14
14
  export declare class PostResponse {
15
15
  post_view: PostView;
@@ -17,7 +17,7 @@ export declare class PostResponse {
17
17
  export declare class GetPost {
18
18
  id: number;
19
19
  auth: Option<string>;
20
- constructor(id: number, auth: Option<string>);
20
+ constructor(init: GetPost);
21
21
  }
22
22
  export declare class GetPostResponse {
23
23
  post_view: PostView;
@@ -38,7 +38,7 @@ export declare class GetPosts {
38
38
  community_name: Option<string>;
39
39
  saved_only: Option<boolean>;
40
40
  auth: Option<string>;
41
- constructor(type_: Option<ListingType>, sort: Option<SortType>, page: Option<number>, limit: Option<number>, community_id: Option<number>, community_name: Option<string>, saved_only: Option<boolean>, auth: Option<string>);
41
+ constructor(init: GetPosts);
42
42
  }
43
43
  export declare class GetPostsResponse {
44
44
  posts: PostView[];
@@ -50,7 +50,7 @@ export declare class CreatePostLike {
50
50
  */
51
51
  score: number;
52
52
  auth: string;
53
- constructor(post_id: number, score: number, auth: string);
53
+ constructor(init: CreatePostLike);
54
54
  }
55
55
  export declare class EditPost {
56
56
  post_id: number;
@@ -59,13 +59,13 @@ export declare class EditPost {
59
59
  body: Option<string>;
60
60
  nsfw: Option<boolean>;
61
61
  auth: string;
62
- constructor(post_id: number, name: Option<string>, url: Option<string>, body: Option<string>, nsfw: Option<boolean>, auth: string);
62
+ constructor(init: EditPost);
63
63
  }
64
64
  export declare class DeletePost {
65
65
  post_id: number;
66
66
  deleted: boolean;
67
67
  auth: string;
68
- constructor(post_id: number, deleted: boolean, auth: string);
68
+ constructor(init: DeletePost);
69
69
  }
70
70
  /**
71
71
  * Only admins and mods can remove a post.
@@ -75,7 +75,7 @@ export declare class RemovePost {
75
75
  removed: boolean;
76
76
  reason: Option<string>;
77
77
  auth: string;
78
- constructor(post_id: number, removed: boolean, reason: Option<string>, auth: string);
78
+ constructor(init: RemovePost);
79
79
  }
80
80
  /**
81
81
  * Marks a post as read.
@@ -84,7 +84,7 @@ export declare class MarkPostAsRead {
84
84
  post_id: number;
85
85
  read: boolean;
86
86
  auth: string;
87
- constructor(post_id: number, read: boolean, auth: string);
87
+ constructor(init: MarkPostAsRead);
88
88
  }
89
89
  /**
90
90
  * Only admins and mods can lock a post.
@@ -93,7 +93,7 @@ export declare class LockPost {
93
93
  post_id: number;
94
94
  locked: boolean;
95
95
  auth: string;
96
- constructor(post_id: number, locked: boolean, auth: string);
96
+ constructor(init: LockPost);
97
97
  }
98
98
  /**
99
99
  * Only admins and mods can sticky a post.
@@ -102,19 +102,19 @@ export declare class StickyPost {
102
102
  post_id: number;
103
103
  stickied: boolean;
104
104
  auth: string;
105
- constructor(post_id: number, stickied: boolean, auth: string);
105
+ constructor(init: StickyPost);
106
106
  }
107
107
  export declare class SavePost {
108
108
  post_id: number;
109
109
  save: boolean;
110
110
  auth: string;
111
- constructor(post_id: number, save: boolean, auth: string);
111
+ constructor(init: SavePost);
112
112
  }
113
113
  export declare class CreatePostReport {
114
114
  post_id: number;
115
115
  reason: string;
116
116
  auth: string;
117
- constructor(post_id: number, reason: string, auth: string);
117
+ constructor(init: CreatePostReport);
118
118
  }
119
119
  export declare class PostReportResponse {
120
120
  post_report_view: PostReportView;
@@ -126,7 +126,7 @@ export declare class ResolvePostReport {
126
126
  */
127
127
  resolved: boolean;
128
128
  auth: string;
129
- constructor(report_id: number, resolved: boolean, auth: string);
129
+ constructor(init: ResolvePostReport);
130
130
  }
131
131
  export declare class ListPostReports {
132
132
  page: Option<number>;
@@ -140,14 +140,14 @@ export declare class ListPostReports {
140
140
  */
141
141
  unresolved_only: Option<boolean>;
142
142
  auth: string;
143
- constructor(page: Option<number>, limit: Option<number>, community_id: Option<number>, unresolved_only: Option<boolean>, auth: string);
143
+ constructor(init: ListPostReports);
144
144
  }
145
145
  export declare class ListPostReportsResponse {
146
146
  post_reports: PostReportView[];
147
147
  }
148
148
  export declare class GetSiteMetadata {
149
149
  url: string;
150
- constructor(url: string);
150
+ constructor(init: GetSiteMetadata);
151
151
  }
152
152
  export declare class GetSiteMetadataResponse {
153
153
  metadata: SiteMetadata;
@@ -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(name, url, body, nsfw, community_id, honeypot, auth) {
15
- this.name = name;
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(id, auth) {
78
- this.id = id;
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(type_, sort, page, limit, community_id, community_name, saved_only, auth) {
103
- this.type_ = type_;
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(post_id, score, auth) {
211
- this.post_id = post_id;
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(post_id, name, url, body, nsfw, auth) {
220
- this.post_id = post_id;
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(post_id, deleted, auth) {
276
- this.post_id = post_id;
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(post_id, removed, reason, auth) {
288
- this.post_id = post_id;
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(post_id, read, auth) {
312
- this.post_id = post_id;
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(post_id, locked, auth) {
324
- this.post_id = post_id;
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(post_id, stickied, auth) {
336
- this.post_id = post_id;
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(post_id, save, auth) {
345
- this.post_id = post_id;
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(post_id, reason, auth) {
354
- this.post_id = post_id;
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(report_id, resolved, auth) {
369
- this.report_id = report_id;
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(page, limit, community_id, unresolved_only, auth) {
378
- this.page = page;
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(url) {
439
- this.url = url;
396
+ function GetSiteMetadata(init) {
397
+ Object.assign(this, init);
440
398
  }
441
399
  return GetSiteMetadata;
442
400
  }());