lemmy-js-client 0.17.0-rc.2 → 0.17.0-rc.22
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.d.ts +156 -4
- package/dist/http.js +255 -80
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/interfaces/api/comment.d.ts +45 -38
- package/dist/interfaces/api/comment.js +313 -0
- package/dist/interfaces/api/community.d.ts +57 -52
- package/dist/interfaces/api/community.js +412 -0
- package/dist/interfaces/api/index.js +5 -1
- package/dist/interfaces/api/person.d.ts +121 -100
- package/dist/interfaces/api/person.js +855 -0
- package/dist/interfaces/api/post.d.ts +67 -51
- package/dist/interfaces/api/post.js +405 -0
- package/dist/interfaces/api/site.d.ts +100 -90
- package/dist/interfaces/api/site.js +825 -0
- package/dist/interfaces/index.js +5 -1
- package/dist/interfaces/others.d.ts +62 -92
- package/dist/interfaces/others.js +119 -55
- package/dist/interfaces/source.d.ts +79 -76
- package/dist/interfaces/source.js +747 -0
- package/dist/interfaces/views.d.ts +37 -37
- package/dist/interfaces/views.js +274 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +10 -0
- package/dist/websocket.d.ts +16 -2
- package/dist/websocket.js +35 -3
- package/package.json +14 -11
package/dist/http.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CommentReportResponse, CommentResponse, CreateComment, CreateCommentLike, CreateCommentReport, DeleteComment, EditComment, GetComments, GetCommentsResponse, ListCommentReports, ListCommentReportsResponse, MarkCommentAsRead, RemoveComment, ResolveCommentReport, SaveComment } from "./interfaces/api/comment";
|
2
|
-
import { AddModToCommunity, AddModToCommunityResponse, BanFromCommunity, BanFromCommunityResponse, BlockCommunity, BlockCommunityResponse, CommunityResponse, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity,
|
2
|
+
import { AddModToCommunity, AddModToCommunityResponse, BanFromCommunity, BanFromCommunityResponse, BlockCommunity, BlockCommunityResponse, CommunityResponse, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, GetCommunity, GetCommunityResponse, ListCommunities, ListCommunitiesResponse, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
|
3
3
|
import { AddAdmin, AddAdminResponse, BannedPersonsResponse, BanPerson, BanPersonResponse, BlockPerson, BlockPersonResponse, ChangePassword, CreatePrivateMessage, DeleteAccount, DeleteAccountResponse, DeletePrivateMessage, EditPrivateMessage, GetBannedPersons, GetCaptchaResponse, GetPersonDetails, GetPersonDetailsResponse, GetPersonMentions, GetPersonMentionsResponse, GetPrivateMessages, GetReplies, GetRepliesResponse, GetReportCount, GetReportCountResponse, GetUnreadCount, GetUnreadCountResponse, Login, LoginResponse, MarkAllAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, PasswordResetResponse, PersonMentionResponse, PrivateMessageResponse, PrivateMessagesResponse, Register, SaveUserSettings, VerifyEmail, VerifyEmailResponse } from "./interfaces/api/person";
|
4
|
-
import { CreatePost, CreatePostLike, CreatePostReport, DeletePost, EditPost, GetPost, GetPostResponse, GetPosts, GetPostsResponse, GetSiteMetadata, GetSiteMetadataResponse, ListPostReports, ListPostReportsResponse, LockPost, PostReportResponse, PostResponse, RemovePost, ResolvePostReport, SavePost, StickyPost } from "./interfaces/api/post";
|
4
|
+
import { CreatePost, CreatePostLike, CreatePostReport, DeletePost, EditPost, GetPost, GetPostResponse, GetPosts, GetPostsResponse, GetSiteMetadata, GetSiteMetadataResponse, ListPostReports, ListPostReportsResponse, LockPost, MarkPostAsRead, PostReportResponse, PostResponse, RemovePost, ResolvePostReport, SavePost, StickyPost } from "./interfaces/api/post";
|
5
5
|
import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetModlogResponse, GetSite, GetSiteConfig, GetSiteConfigResponse, GetSiteResponse, GetUnreadRegistrationApplicationCount, GetUnreadRegistrationApplicationCountResponse, LeaveAdmin, ListRegistrationApplications, ListRegistrationApplicationsResponse, RegistrationApplicationResponse, ResolveObject, ResolveObjectResponse, SaveSiteConfig, Search, SearchResponse, SiteResponse } from "./interfaces/api/site";
|
6
6
|
/**
|
7
7
|
* Helps build lemmy HTTP requests.
|
@@ -19,294 +19,446 @@ export declare class LemmyHttp {
|
|
19
19
|
});
|
20
20
|
/**
|
21
21
|
* Gets the site, and your user data.
|
22
|
+
*
|
23
|
+
* `HTTP.GET /site`
|
22
24
|
*/
|
23
25
|
getSite(form: GetSite): Promise<GetSiteResponse>;
|
24
26
|
/**
|
25
27
|
* Create your site.
|
28
|
+
*
|
29
|
+
* `HTTP.POST /site`
|
26
30
|
*/
|
27
31
|
createSite(form: CreateSite): Promise<SiteResponse>;
|
28
32
|
/**
|
29
33
|
* Edit your site.
|
34
|
+
*
|
35
|
+
* `HTTP.PUT /site`
|
30
36
|
*/
|
31
37
|
editSite(form: EditSite): Promise<SiteResponse>;
|
32
38
|
/**
|
33
39
|
* Leave the Site admins.
|
40
|
+
*
|
41
|
+
* `HTTP.POST /user/leave_admin`
|
34
42
|
*/
|
35
43
|
leaveAdmin(form: LeaveAdmin): Promise<GetSiteResponse>;
|
36
44
|
/**
|
37
45
|
* Get your site configuration.
|
46
|
+
*
|
47
|
+
* `HTTP.GET /site/config`
|
38
48
|
*/
|
39
49
|
getSiteConfig(form: GetSiteConfig): Promise<GetSiteConfigResponse>;
|
40
50
|
/**
|
41
51
|
* Save your site config.
|
52
|
+
*
|
53
|
+
* `HTTP.PUT /site/config`
|
42
54
|
*/
|
43
55
|
saveSiteConfig(form: SaveSiteConfig): Promise<GetSiteConfigResponse>;
|
44
56
|
/**
|
45
57
|
* Get the modlog.
|
58
|
+
*
|
59
|
+
* `HTTP.GET /modlog`
|
46
60
|
*/
|
47
61
|
getModlog(form: GetModlog): Promise<GetModlogResponse>;
|
48
62
|
/**
|
49
63
|
* Search lemmy.
|
64
|
+
*
|
65
|
+
* `HTTP.GET /search`
|
50
66
|
*/
|
51
67
|
search(form: Search): Promise<SearchResponse>;
|
52
68
|
/**
|
53
69
|
* Fetch a non-local / federated object.
|
70
|
+
*
|
71
|
+
* `HTTP.GET /resolve_object`
|
54
72
|
*/
|
55
73
|
resolveObject(form: ResolveObject): Promise<ResolveObjectResponse>;
|
56
74
|
/**
|
57
75
|
* Create a new community.
|
76
|
+
*
|
77
|
+
* `HTTP.POST /community`
|
58
78
|
*/
|
59
79
|
createCommunity(form: CreateCommunity): Promise<CommunityResponse>;
|
60
80
|
/**
|
61
81
|
* Get / fetch a community.
|
82
|
+
*
|
83
|
+
* `HTTP.GET /community`
|
62
84
|
*/
|
63
85
|
getCommunity(form: GetCommunity): Promise<GetCommunityResponse>;
|
64
86
|
/**
|
65
87
|
* Edit a community.
|
88
|
+
*
|
89
|
+
* `HTTP.PUT /community`
|
66
90
|
*/
|
67
91
|
editCommunity(form: EditCommunity): Promise<CommunityResponse>;
|
68
92
|
/**
|
69
93
|
* List communities, with various filters.
|
94
|
+
*
|
95
|
+
* `HTTP.GET /community/list`
|
70
96
|
*/
|
71
97
|
listCommunities(form: ListCommunities): Promise<ListCommunitiesResponse>;
|
72
98
|
/**
|
73
99
|
* Follow / subscribe to a community.
|
100
|
+
*
|
101
|
+
* `HTTP.POST /community/follow`
|
74
102
|
*/
|
75
|
-
followCommunity(form: FollowCommunity): Promise<
|
103
|
+
followCommunity(form: FollowCommunity): Promise<CommunityResponse>;
|
76
104
|
/**
|
77
105
|
* Block a community.
|
106
|
+
*
|
107
|
+
* `HTTP.POST /community/block`
|
78
108
|
*/
|
79
109
|
blockCommunity(form: BlockCommunity): Promise<BlockCommunityResponse>;
|
80
110
|
/**
|
81
111
|
* Delete a community.
|
112
|
+
*
|
113
|
+
* `HTTP.POST /community/delete`
|
82
114
|
*/
|
83
115
|
deleteCommunity(form: DeleteCommunity): Promise<CommunityResponse>;
|
84
116
|
/**
|
85
117
|
* A moderator remove for a community.
|
118
|
+
*
|
119
|
+
* `HTTP.POST /community/remove`
|
86
120
|
*/
|
87
121
|
removeCommunity(form: RemoveCommunity): Promise<CommunityResponse>;
|
88
122
|
/**
|
89
123
|
* Transfer your community to an existing moderator.
|
124
|
+
*
|
125
|
+
* `HTTP.POST /community/transfer`
|
90
126
|
*/
|
91
127
|
transferCommunity(form: TransferCommunity): Promise<GetCommunityResponse>;
|
92
128
|
/**
|
93
129
|
* Ban a user from a community.
|
130
|
+
*
|
131
|
+
* `HTTP.POST /community/ban_user`
|
94
132
|
*/
|
95
133
|
banFromCommunity(form: BanFromCommunity): Promise<BanFromCommunityResponse>;
|
96
134
|
/**
|
97
135
|
* Add a moderator to your community.
|
136
|
+
*
|
137
|
+
* `HTTP.POST /community/mod`
|
98
138
|
*/
|
99
139
|
addModToCommunity(form: AddModToCommunity): Promise<AddModToCommunityResponse>;
|
100
140
|
/**
|
101
141
|
* Create a post.
|
142
|
+
*
|
143
|
+
* `HTTP.POST /post`
|
102
144
|
*/
|
103
145
|
createPost(form: CreatePost): Promise<PostResponse>;
|
104
146
|
/**
|
105
147
|
* Get / fetch a post.
|
148
|
+
*
|
149
|
+
* `HTTP.GET /post`
|
106
150
|
*/
|
107
151
|
getPost(form: GetPost): Promise<GetPostResponse>;
|
108
152
|
/**
|
109
153
|
* Edit a post.
|
154
|
+
*
|
155
|
+
* `HTTP.PUT /post`
|
110
156
|
*/
|
111
157
|
editPost(form: EditPost): Promise<PostResponse>;
|
112
158
|
/**
|
113
159
|
* Delete a post.
|
160
|
+
*
|
161
|
+
* `HTTP.POST /post/delete`
|
114
162
|
*/
|
115
163
|
deletePost(form: DeletePost): Promise<PostResponse>;
|
116
164
|
/**
|
117
165
|
* A moderator remove for a post.
|
166
|
+
*
|
167
|
+
* `HTTP.POST /post/remove`
|
118
168
|
*/
|
119
169
|
removePost(form: RemovePost): Promise<PostResponse>;
|
170
|
+
/**
|
171
|
+
* Mark a post as read.
|
172
|
+
*
|
173
|
+
* `HTTP.POST /post/mark_as_read`
|
174
|
+
*/
|
175
|
+
markPostAsRead(form: MarkPostAsRead): Promise<PostResponse>;
|
120
176
|
/**
|
121
177
|
* A moderator can lock a post ( IE disable new comments ).
|
178
|
+
*
|
179
|
+
* `HTTP.POST /post/lock`
|
122
180
|
*/
|
123
181
|
lockPost(form: LockPost): Promise<PostResponse>;
|
124
182
|
/**
|
125
183
|
* A moderator can sticky a post ( IE stick it to the top of a community ).
|
184
|
+
*
|
185
|
+
* `HTTP.POST /post/sticky`
|
126
186
|
*/
|
127
187
|
stickyPost(form: StickyPost): Promise<PostResponse>;
|
128
188
|
/**
|
129
189
|
* Get / fetch posts, with various filters.
|
190
|
+
*
|
191
|
+
* `HTTP.GET /post/list`
|
130
192
|
*/
|
131
193
|
getPosts(form: GetPosts): Promise<GetPostsResponse>;
|
132
194
|
/**
|
133
195
|
* Like / vote on a post.
|
196
|
+
*
|
197
|
+
* `HTTP.POST /post/like`
|
134
198
|
*/
|
135
199
|
likePost(form: CreatePostLike): Promise<PostResponse>;
|
136
200
|
/**
|
137
201
|
* Save a post.
|
202
|
+
*
|
203
|
+
* `HTTP.PUT /post/save`
|
138
204
|
*/
|
139
205
|
savePost(form: SavePost): Promise<PostResponse>;
|
140
206
|
/**
|
141
207
|
* Report a post.
|
208
|
+
*
|
209
|
+
* `HTTP.POST /post/report`
|
142
210
|
*/
|
143
211
|
createPostReport(form: CreatePostReport): Promise<PostReportResponse>;
|
144
212
|
/**
|
145
213
|
* Resolve a post report. Only a mod can do this.
|
214
|
+
*
|
215
|
+
* `HTTP.PUT /post/report/resolve`
|
146
216
|
*/
|
147
217
|
resolvePostReport(form: ResolvePostReport): Promise<PostReportResponse>;
|
148
218
|
/**
|
149
219
|
* List post reports.
|
220
|
+
*
|
221
|
+
* `HTTP.GET /post/report/list`
|
150
222
|
*/
|
151
223
|
listPostReports(form: ListPostReports): Promise<ListPostReportsResponse>;
|
152
224
|
/**
|
153
225
|
* Fetch metadata for any given site.
|
226
|
+
*
|
227
|
+
* `HTTP.GET /post/site_metadata`
|
154
228
|
*/
|
155
229
|
getSiteMetadata(form: GetSiteMetadata): Promise<GetSiteMetadataResponse>;
|
156
230
|
/**
|
157
231
|
* Create a comment.
|
232
|
+
*
|
233
|
+
* `HTTP.POST /comment`
|
158
234
|
*/
|
159
235
|
createComment(form: CreateComment): Promise<CommentResponse>;
|
160
236
|
/**
|
161
237
|
* Edit a comment.
|
238
|
+
*
|
239
|
+
* `HTTP.PUT /comment`
|
162
240
|
*/
|
163
241
|
editComment(form: EditComment): Promise<CommentResponse>;
|
164
242
|
/**
|
165
243
|
* Delete a comment.
|
244
|
+
*
|
245
|
+
* `HTTP.POST /comment/delete`
|
166
246
|
*/
|
167
247
|
deleteComment(form: DeleteComment): Promise<CommentResponse>;
|
168
248
|
/**
|
169
249
|
* A moderator remove for a comment.
|
250
|
+
*
|
251
|
+
* `HTTP.POST /comment/remove`
|
170
252
|
*/
|
171
253
|
removeComment(form: RemoveComment): Promise<CommentResponse>;
|
172
254
|
/**
|
173
255
|
* Mark a comment as read.
|
256
|
+
*
|
257
|
+
* `HTTP.POST /comment/mark_as_read`
|
174
258
|
*/
|
175
259
|
markCommentAsRead(form: MarkCommentAsRead): Promise<CommentResponse>;
|
176
260
|
/**
|
177
261
|
* Like / vote on a comment.
|
262
|
+
*
|
263
|
+
* `HTTP.POST /comment/like`
|
178
264
|
*/
|
179
265
|
likeComment(form: CreateCommentLike): Promise<CommentResponse>;
|
180
266
|
/**
|
181
267
|
* Save a comment.
|
268
|
+
*
|
269
|
+
* `HTTP.PUT /comment/save`
|
182
270
|
*/
|
183
271
|
saveComment(form: SaveComment): Promise<CommentResponse>;
|
184
272
|
/**
|
185
273
|
* Get / fetch comments.
|
274
|
+
*
|
275
|
+
* `HTTP.GET /comment/list`
|
186
276
|
*/
|
187
277
|
getComments(form: GetComments): Promise<GetCommentsResponse>;
|
188
278
|
/**
|
189
279
|
* Report a comment.
|
280
|
+
*
|
281
|
+
* `HTTP.POST /comment/report`
|
190
282
|
*/
|
191
283
|
createCommentReport(form: CreateCommentReport): Promise<CommentReportResponse>;
|
192
284
|
/**
|
193
285
|
* Resolve a comment report. Only a mod can do this.
|
286
|
+
*
|
287
|
+
* `HTTP.PUT /comment/report/resolve`
|
194
288
|
*/
|
195
289
|
resolveCommentReport(form: ResolveCommentReport): Promise<CommentReportResponse>;
|
196
290
|
/**
|
197
291
|
* List comment reports.
|
292
|
+
*
|
293
|
+
* `HTTP.GET /comment/report/list`
|
198
294
|
*/
|
199
295
|
listCommentReports(form: ListCommentReports): Promise<ListCommentReportsResponse>;
|
200
296
|
/**
|
201
297
|
* Get / fetch private messages.
|
298
|
+
*
|
299
|
+
* `HTTP.GET /private_message/list`
|
202
300
|
*/
|
203
301
|
getPrivateMessages(form: GetPrivateMessages): Promise<PrivateMessagesResponse>;
|
204
302
|
/**
|
205
303
|
* Create a private message.
|
304
|
+
*
|
305
|
+
* `HTTP.POST /private_message`
|
206
306
|
*/
|
207
307
|
createPrivateMessage(form: CreatePrivateMessage): Promise<PrivateMessageResponse>;
|
208
308
|
/**
|
209
309
|
* Edit a private message.
|
310
|
+
*
|
311
|
+
* `HTTP.PUT /private_message`
|
210
312
|
*/
|
211
313
|
editPrivateMessage(form: EditPrivateMessage): Promise<PrivateMessageResponse>;
|
212
314
|
/**
|
213
315
|
* Delete a private message.
|
316
|
+
*
|
317
|
+
* `HTTP.POST /private_message/delete`
|
214
318
|
*/
|
215
319
|
deletePrivateMessage(form: DeletePrivateMessage): Promise<PrivateMessageResponse>;
|
216
320
|
/**
|
217
321
|
* Mark a private message as read.
|
322
|
+
*
|
323
|
+
* `HTTP.POST /private_message/mark_as_read`
|
218
324
|
*/
|
219
325
|
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead): Promise<PrivateMessageResponse>;
|
220
326
|
/**
|
221
327
|
* Register a new user.
|
328
|
+
*
|
329
|
+
* `HTTP.POST /user/register`
|
222
330
|
*/
|
223
331
|
register(form: Register): Promise<LoginResponse>;
|
224
332
|
/**
|
225
333
|
* Log into lemmy.
|
334
|
+
*
|
335
|
+
* `HTTP.POST /user/login`
|
226
336
|
*/
|
227
337
|
login(form: Login): Promise<LoginResponse>;
|
228
338
|
/**
|
229
339
|
* Get the details for a person.
|
340
|
+
*
|
341
|
+
* `HTTP.GET /user`
|
230
342
|
*/
|
231
343
|
getPersonDetails(form: GetPersonDetails): Promise<GetPersonDetailsResponse>;
|
232
344
|
/**
|
233
345
|
* Get mentions for your user.
|
346
|
+
*
|
347
|
+
* `HTTP.GET /user/mention`
|
234
348
|
*/
|
235
349
|
getPersonMentions(form: GetPersonMentions): Promise<GetPersonMentionsResponse>;
|
236
350
|
/**
|
237
351
|
* Mark a person mention as read.
|
352
|
+
*
|
353
|
+
* `HTTP.POST /user/mention/mark_as_read`
|
238
354
|
*/
|
239
355
|
markPersonMentionAsRead(form: MarkPersonMentionAsRead): Promise<PersonMentionResponse>;
|
240
356
|
/**
|
241
357
|
* Get comment replies.
|
358
|
+
*
|
359
|
+
* `HTTP.GET /user/replies`
|
242
360
|
*/
|
243
361
|
getReplies(form: GetReplies): Promise<GetRepliesResponse>;
|
244
362
|
/**
|
245
363
|
* Ban a person from your site.
|
364
|
+
*
|
365
|
+
* `HTTP.POST /user/ban`
|
246
366
|
*/
|
247
367
|
banPerson(form: BanPerson): Promise<BanPersonResponse>;
|
248
368
|
/**
|
249
369
|
* Get a list of banned users
|
370
|
+
*
|
371
|
+
* `HTTP.GET /user/banned`
|
250
372
|
*/
|
251
373
|
getBannedPersons(form: GetBannedPersons): Promise<BannedPersonsResponse>;
|
252
374
|
/**
|
253
375
|
* Block a person.
|
376
|
+
*
|
377
|
+
* `HTTP.POST /user/block`
|
254
378
|
*/
|
255
379
|
blockPerson(form: BlockPerson): Promise<BlockPersonResponse>;
|
256
380
|
/**
|
257
381
|
* Fetch a Captcha.
|
382
|
+
*
|
383
|
+
* `HTTP.GET /user/get_captcha`
|
258
384
|
*/
|
259
385
|
getCaptcha(): Promise<GetCaptchaResponse>;
|
260
386
|
/**
|
261
387
|
* Delete your account.
|
388
|
+
*
|
389
|
+
* `HTTP.POST /user/delete_account`
|
262
390
|
*/
|
263
391
|
deleteAccount(form: DeleteAccount): Promise<DeleteAccountResponse>;
|
264
392
|
/**
|
265
393
|
* Reset your password.
|
394
|
+
*
|
395
|
+
* `HTTP.POST /user/password_reset`
|
266
396
|
*/
|
267
397
|
passwordReset(form: PasswordReset): Promise<PasswordResetResponse>;
|
268
398
|
/**
|
269
399
|
* Change your password from an email / token based reset.
|
400
|
+
*
|
401
|
+
* `HTTP.POST /user/password_change`
|
270
402
|
*/
|
271
403
|
passwordChange(form: PasswordChange): Promise<LoginResponse>;
|
272
404
|
/**
|
273
405
|
* Mark all replies as read.
|
406
|
+
*
|
407
|
+
* `HTTP.POST /user/mark_all_as_read`
|
274
408
|
*/
|
275
409
|
markAllAsRead(form: MarkAllAsRead): Promise<GetRepliesResponse>;
|
276
410
|
/**
|
277
411
|
* Save your user settings.
|
412
|
+
*
|
413
|
+
* `HTTP.PUT /user/save_user_settings`
|
278
414
|
*/
|
279
415
|
saveUserSettings(form: SaveUserSettings): Promise<LoginResponse>;
|
280
416
|
/**
|
281
417
|
* Change your user password.
|
418
|
+
*
|
419
|
+
* `HTTP.PUT /user/change_password`
|
282
420
|
*/
|
283
421
|
changePassword(form: ChangePassword): Promise<LoginResponse>;
|
284
422
|
/**
|
285
423
|
* Get counts for your reports
|
424
|
+
*
|
425
|
+
* `HTTP.GET /user/report_count`
|
286
426
|
*/
|
287
427
|
getReportCount(form: GetReportCount): Promise<GetReportCountResponse>;
|
288
428
|
/**
|
289
429
|
* Get your unread counts
|
430
|
+
*
|
431
|
+
* `HTTP.GET /user/unread_count`
|
290
432
|
*/
|
291
433
|
getUnreadCount(form: GetUnreadCount): Promise<GetUnreadCountResponse>;
|
292
434
|
/**
|
293
435
|
* Verify your email
|
436
|
+
*
|
437
|
+
* `HTTP.POST /user/verify_email`
|
294
438
|
*/
|
295
439
|
verifyEmail(form: VerifyEmail): Promise<VerifyEmailResponse>;
|
296
440
|
/**
|
297
441
|
* Add an admin to your site.
|
442
|
+
*
|
443
|
+
* `HTTP.POST /admin/add`
|
298
444
|
*/
|
299
445
|
addAdmin(form: AddAdmin): Promise<AddAdminResponse>;
|
300
446
|
/**
|
301
447
|
* Get the unread registration applications count.
|
448
|
+
*
|
449
|
+
* `HTTP.GET /admin/registration_application/count`
|
302
450
|
*/
|
303
451
|
getUnreadRegistrationApplicationCount(form: GetUnreadRegistrationApplicationCount): Promise<GetUnreadRegistrationApplicationCountResponse>;
|
304
452
|
/**
|
305
|
-
* List the
|
453
|
+
* List the registration applications.
|
454
|
+
*
|
455
|
+
* `HTTP.GET /admin/registration_application/list`
|
306
456
|
*/
|
307
457
|
listRegistrationApplications(form: ListRegistrationApplications): Promise<ListRegistrationApplicationsResponse>;
|
308
458
|
/**
|
309
459
|
* Approve a registration application
|
460
|
+
*
|
461
|
+
* `HTTP.PUT /admin/registration_application/approve`
|
310
462
|
*/
|
311
463
|
approveRegistrationApplication(form: ApproveRegistrationApplication): Promise<RegistrationApplicationResponse>;
|
312
464
|
private buildFullUrl;
|