lemmy-js-client 0.17.0-rc.59 → 0.17.0-rc.60

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,11 @@
1
- import { Option } from "@sniptt/monads";
2
- import "reflect-metadata";
3
1
  import { CommentAggregates, CommunityAggregates, PersonAggregates, PostAggregates, SiteAggregates } from "./aggregates";
4
2
  import { SubscribedType } from "./others";
5
3
  import { AdminPurgeComment, AdminPurgeCommunity, AdminPurgePerson, AdminPurgePost, Comment, CommentReply, CommentReport, CommunitySafe, LocalSite, LocalSiteRateLimit, LocalUserSettings, ModAdd, ModAddCommunity, ModBan, ModBanFromCommunity, ModFeaturePost, ModLockPost, ModRemoveComment, ModRemoveCommunity, ModRemovePost, ModTransferCommunity, PersonMention, PersonSafe, Post, PostReport, PrivateMessage, PrivateMessageReport, RegistrationApplication, Site, Tagline } from "./source";
6
- export declare class PersonViewSafe {
4
+ export interface PersonViewSafe {
7
5
  person: PersonSafe;
8
6
  counts: PersonAggregates;
9
7
  }
10
- export declare class PersonMentionView {
8
+ export interface PersonMentionView {
11
9
  person_mention: PersonMention;
12
10
  comment: Comment;
13
11
  creator: PersonSafe;
@@ -19,26 +17,26 @@ export declare class PersonMentionView {
19
17
  subscribed: SubscribedType;
20
18
  saved: boolean;
21
19
  creator_blocked: boolean;
22
- my_vote: Option<number>;
20
+ my_vote?: number;
23
21
  }
24
- export declare class LocalUserSettingsView {
22
+ export interface LocalUserSettingsView {
25
23
  local_user: LocalUserSettings;
26
24
  person: PersonSafe;
27
25
  counts: PersonAggregates;
28
26
  }
29
- export declare class SiteView {
27
+ export interface SiteView {
30
28
  site: Site;
31
29
  local_site: LocalSite;
32
30
  local_site_rate_limit: LocalSiteRateLimit;
33
- taglines: Option<Tagline[]>;
31
+ taglines?: Tagline[];
34
32
  counts: SiteAggregates;
35
33
  }
36
- export declare class PrivateMessageView {
34
+ export interface PrivateMessageView {
37
35
  private_message: PrivateMessage;
38
36
  creator: PersonSafe;
39
37
  recipient: PersonSafe;
40
38
  }
41
- export declare class PostView {
39
+ export interface PostView {
42
40
  post: Post;
43
41
  creator: PersonSafe;
44
42
  community: CommunitySafe;
@@ -48,21 +46,21 @@ export declare class PostView {
48
46
  saved: boolean;
49
47
  read: boolean;
50
48
  creator_blocked: boolean;
51
- my_vote: Option<number>;
49
+ my_vote?: number;
52
50
  unread_comments: number;
53
51
  }
54
- export declare class PostReportView {
52
+ export interface PostReportView {
55
53
  post_report: PostReport;
56
54
  post: Post;
57
55
  community: CommunitySafe;
58
56
  creator: PersonSafe;
59
57
  post_creator: PersonSafe;
60
58
  creator_banned_from_community: boolean;
61
- my_vote: Option<number>;
59
+ my_vote?: number;
62
60
  counts: PostAggregates;
63
- resolver: Option<PersonSafe>;
61
+ resolver?: PersonSafe;
64
62
  }
65
- export declare class CommentView {
63
+ export interface CommentView {
66
64
  comment: Comment;
67
65
  creator: PersonSafe;
68
66
  post: Post;
@@ -72,9 +70,9 @@ export declare class CommentView {
72
70
  subscribed: SubscribedType;
73
71
  saved: boolean;
74
72
  creator_blocked: boolean;
75
- my_vote: Option<number>;
73
+ my_vote?: number;
76
74
  }
77
- export declare class CommentReplyView {
75
+ export interface CommentReplyView {
78
76
  comment_reply: CommentReply;
79
77
  comment: Comment;
80
78
  creator: PersonSafe;
@@ -86,9 +84,9 @@ export declare class CommentReplyView {
86
84
  subscribed: SubscribedType;
87
85
  saved: boolean;
88
86
  creator_blocked: boolean;
89
- my_vote: Option<number>;
87
+ my_vote?: number;
90
88
  }
91
- export declare class CommentReportView {
89
+ export interface CommentReportView {
92
90
  comment_report: CommentReport;
93
91
  comment: Comment;
94
92
  post: Post;
@@ -97,127 +95,127 @@ export declare class CommentReportView {
97
95
  comment_creator: PersonSafe;
98
96
  counts: CommentAggregates;
99
97
  creator_banned_from_community: boolean;
100
- my_vote: Option<number>;
101
- resolver: Option<PersonSafe>;
98
+ my_vote?: number;
99
+ resolver?: PersonSafe;
102
100
  }
103
- export declare class ModAddCommunityView {
101
+ export interface ModAddCommunityView {
104
102
  mod_add_community: ModAddCommunity;
105
- moderator: Option<PersonSafe>;
103
+ moderator?: PersonSafe;
106
104
  community: CommunitySafe;
107
105
  modded_person: PersonSafe;
108
106
  }
109
- export declare class ModTransferCommunityView {
107
+ export interface ModTransferCommunityView {
110
108
  mod_transfer_community: ModTransferCommunity;
111
- moderator: Option<PersonSafe>;
109
+ moderator?: PersonSafe;
112
110
  community: CommunitySafe;
113
111
  modded_person: PersonSafe;
114
112
  }
115
- export declare class ModAddView {
113
+ export interface ModAddView {
116
114
  mod_add: ModAdd;
117
- moderator: Option<PersonSafe>;
115
+ moderator?: PersonSafe;
118
116
  modded_person: PersonSafe;
119
117
  }
120
- export declare class ModBanFromCommunityView {
118
+ export interface ModBanFromCommunityView {
121
119
  mod_ban_from_community: ModBanFromCommunity;
122
- moderator: Option<PersonSafe>;
120
+ moderator?: PersonSafe;
123
121
  community: CommunitySafe;
124
122
  banned_person: PersonSafe;
125
123
  }
126
- export declare class ModBanView {
124
+ export interface ModBanView {
127
125
  mod_ban: ModBan;
128
- moderator: Option<PersonSafe>;
126
+ moderator?: PersonSafe;
129
127
  banned_person: PersonSafe;
130
128
  }
131
- export declare class ModLockPostView {
129
+ export interface ModLockPostView {
132
130
  mod_lock_post: ModLockPost;
133
- moderator: Option<PersonSafe>;
131
+ moderator?: PersonSafe;
134
132
  post: Post;
135
133
  community: CommunitySafe;
136
134
  }
137
- export declare class ModRemoveCommentView {
135
+ export interface ModRemoveCommentView {
138
136
  mod_remove_comment: ModRemoveComment;
139
- moderator: Option<PersonSafe>;
137
+ moderator?: PersonSafe;
140
138
  comment: Comment;
141
139
  commenter: PersonSafe;
142
140
  post: Post;
143
141
  community: CommunitySafe;
144
142
  }
145
- export declare class ModRemoveCommunityView {
143
+ export interface ModRemoveCommunityView {
146
144
  mod_remove_community: ModRemoveCommunity;
147
- moderator: Option<PersonSafe>;
145
+ moderator?: PersonSafe;
148
146
  community: CommunitySafe;
149
147
  }
150
- export declare class ModRemovePostView {
148
+ export interface ModRemovePostView {
151
149
  mod_remove_post: ModRemovePost;
152
- moderator: Option<PersonSafe>;
150
+ moderator?: PersonSafe;
153
151
  post: Post;
154
152
  community: CommunitySafe;
155
153
  }
156
- export declare class ModFeaturePostView {
154
+ export interface ModFeaturePostView {
157
155
  mod_feature_post: ModFeaturePost;
158
- moderator: Option<PersonSafe>;
156
+ moderator?: PersonSafe;
159
157
  post: Post;
160
158
  community: CommunitySafe;
161
159
  }
162
- export declare class AdminPurgeCommunityView {
160
+ export interface AdminPurgeCommunityView {
163
161
  admin_purge_community: AdminPurgeCommunity;
164
- admin: Option<PersonSafe>;
162
+ admin?: PersonSafe;
165
163
  }
166
- export declare class AdminPurgePersonView {
164
+ export interface AdminPurgePersonView {
167
165
  admin_purge_person: AdminPurgePerson;
168
- admin: Option<PersonSafe>;
166
+ admin?: PersonSafe;
169
167
  }
170
- export declare class AdminPurgePostView {
168
+ export interface AdminPurgePostView {
171
169
  admin_purge_post: AdminPurgePost;
172
- admin: Option<PersonSafe>;
170
+ admin?: PersonSafe;
173
171
  community: CommunitySafe;
174
172
  }
175
- export declare class AdminPurgeCommentView {
173
+ export interface AdminPurgeCommentView {
176
174
  admin_purge_comment: AdminPurgeComment;
177
- admin: Option<PersonSafe>;
175
+ admin?: PersonSafe;
178
176
  post: Post;
179
177
  }
180
- export declare class CommunityFollowerView {
178
+ export interface CommunityFollowerView {
181
179
  community: CommunitySafe;
182
180
  follower: PersonSafe;
183
181
  }
184
- export declare class CommunityBlockView {
182
+ export interface CommunityBlockView {
185
183
  person: PersonSafe;
186
184
  community: CommunitySafe;
187
185
  }
188
- export declare class CommunityModeratorView {
186
+ export interface CommunityModeratorView {
189
187
  community: CommunitySafe;
190
188
  moderator: PersonSafe;
191
189
  }
192
- export declare class CommunityPersonBanView {
190
+ export interface CommunityPersonBanView {
193
191
  community: CommunitySafe;
194
192
  person: PersonSafe;
195
193
  }
196
- export declare class PersonBlockView {
194
+ export interface PersonBlockView {
197
195
  person: PersonSafe;
198
196
  target: PersonSafe;
199
197
  }
200
- export declare class CommunityView {
198
+ export interface CommunityView {
201
199
  community: CommunitySafe;
202
200
  subscribed: SubscribedType;
203
201
  blocked: boolean;
204
202
  counts: CommunityAggregates;
205
203
  }
206
- export declare class RegistrationApplicationView {
204
+ export interface RegistrationApplicationView {
207
205
  registration_application: RegistrationApplication;
208
206
  creator_local_user: LocalUserSettings;
209
207
  creator: PersonSafe;
210
- admin: Option<PersonSafe>;
208
+ admin?: PersonSafe;
211
209
  }
212
210
  export interface CommentNode {
213
211
  comment_view: CommentView | PersonMentionView | CommentReplyView;
214
212
  children: CommentNode[];
215
213
  depth: number;
216
214
  }
217
- export declare class PrivateMessageReportView {
215
+ export interface PrivateMessageReportView {
218
216
  private_message_report: PrivateMessageReport;
219
217
  private_message: PrivateMessage;
220
218
  private_message_creator: PersonSafe;
221
219
  creator: PersonSafe;
222
- resolver: Option<PersonSafe>;
220
+ resolver?: PersonSafe;
223
221
  }