anixartjs 0.0.9 → 0.1.1

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.
Files changed (61) hide show
  1. package/dist/api/auth.d.ts +95 -4
  2. package/dist/api/auth.js +91 -0
  3. package/dist/api/channel.d.ts +16 -12
  4. package/dist/api/channel.js +16 -4
  5. package/dist/api/collection.d.ts +8 -14
  6. package/dist/api/collection.js +3 -7
  7. package/dist/api/discover.d.ts +67 -0
  8. package/dist/api/discover.js +67 -0
  9. package/dist/api/feed.d.ts +28 -1
  10. package/dist/api/feed.js +28 -3
  11. package/dist/api/index.d.ts +1 -0
  12. package/dist/api/index.js +1 -0
  13. package/dist/api/notification.d.ts +3 -1
  14. package/dist/api/notification.js +6 -0
  15. package/dist/api/profile.d.ts +372 -11
  16. package/dist/api/profile.js +381 -6
  17. package/dist/api/release.d.ts +4 -4
  18. package/dist/api/release.js +3 -3
  19. package/dist/api/search.d.ts +230 -0
  20. package/dist/api/search.js +257 -0
  21. package/dist/api/settings.d.ts +6 -7
  22. package/dist/api/settings.js +9 -12
  23. package/dist/classes/Article.d.ts +3 -3
  24. package/dist/classes/Article.js +3 -2
  25. package/dist/classes/ArticleComment.d.ts +3 -3
  26. package/dist/classes/ArticleComment.js +2 -1
  27. package/dist/classes/BaseProfile.d.ts +4 -3
  28. package/dist/classes/BaseProfile.js +6 -2
  29. package/dist/classes/Channel.d.ts +4 -4
  30. package/dist/classes/Channel.js +7 -6
  31. package/dist/classes/Collection.d.ts +5 -5
  32. package/dist/classes/Collection.js +2 -1
  33. package/dist/classes/Episode.d.ts +3 -3
  34. package/dist/classes/Release.d.ts +7 -7
  35. package/dist/classes/Release.js +9 -8
  36. package/dist/classes/ReleaseComment.d.ts +4 -4
  37. package/dist/classes/ReleaseComment.js +3 -2
  38. package/dist/classes/SuggestionArticle.d.ts +2 -2
  39. package/dist/classes/SuggestionArticle.js +2 -1
  40. package/dist/client.d.ts +11 -3
  41. package/dist/client.js +10 -1
  42. package/dist/endpoints.d.ts +10 -1
  43. package/dist/endpoints.js +9 -0
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.js +1 -0
  46. package/dist/types/auth.d.ts +41 -2
  47. package/dist/types/auth.js +45 -0
  48. package/dist/types/channel.d.ts +107 -10
  49. package/dist/types/channel.js +95 -0
  50. package/dist/types/collection.d.ts +38 -4
  51. package/dist/types/collection.js +42 -0
  52. package/dist/types/notification.d.ts +4 -0
  53. package/dist/types/profile.d.ts +41 -3
  54. package/dist/types/profile.js +26 -1
  55. package/dist/types/release.d.ts +35 -5
  56. package/dist/types/release.js +10 -1
  57. package/dist/types/response.d.ts +26 -6
  58. package/dist/types/response.js +33 -10
  59. package/dist/types/settings.d.ts +30 -2
  60. package/dist/types/settings.js +35 -1
  61. package/package.json +1 -1
@@ -4,59 +4,434 @@ exports.Profile = void 0;
4
4
  /**
5
5
  * Класс профиля
6
6
  *
7
- * TODO: changeAvatar
7
+ * TODO: Понять для чего нужен эндпоинт '/profile/process/{id}' - POST
8
+ * Пока что предположение что это что-то для модерации
8
9
  */
9
10
  class Profile {
10
11
  constructor(client) {
11
12
  this.client = client;
12
13
  }
14
+ /**
15
+ * Получение информация о профиле по его ID
16
+ *
17
+ * Возвращает {@link IProfileResponse}.
18
+ *
19
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
20
+ *
21
+ * @param id - ID Профиля
22
+ * @param options - Дополнительные параметры
23
+ * @returns Информацию о профиле с указанным ID
24
+ *
25
+ * @example
26
+ * const result = await client.endpoints.profile.info(1);
27
+ */
13
28
  async info(id, options) {
14
29
  return this.client.call({ path: `/profile/${id}`, ...options });
15
30
  }
31
+ /**
32
+ * Получение закладок из профиля по его ID
33
+ *
34
+ * Возвращает {@link IRelease} внутри {@link IPageableResponse}.
35
+ *
36
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
37
+ *
38
+ * @param data - Данные для запроса
39
+ * @param options - Дополнительные параметры
40
+ * @returns Информацию о релизах которые находятся в закладке
41
+ *
42
+ * @example
43
+ * const { BookmarkType, BookmarkSortType } = require("anixartjs");
44
+ *
45
+ * const result = await client.endpoints.profile.getBookmarks({
46
+ * type: BookmarkType.Watching, //Тип закладки
47
+ * id: 1, //ID профиля
48
+ * sort: BookmarkSortType.NewToOldAddTime, //Сортировка
49
+ * page: 0 //Страница
50
+ * });
51
+ */
16
52
  async getBookmarks(data, options) {
17
53
  return this.client.call({ path: `/profile/list/all/${data.id ? `${data.id}/` : ""}${data.type}/${data.page}`, queryParams: { sort: data.sort, filter: data.filter, filter_announce: data.filter_announce }, ...options });
18
54
  }
55
+ /**
56
+ * Добавление релиза в закладку
57
+ *
58
+ * Возвращает код результата {@link IResponse}.
59
+ *
60
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
61
+ *
62
+ * @param id - ID релиза
63
+ * @param type - Тип закладки {@link BookmarkType}
64
+ * @param options - Дополнительные параметры
65
+ * @returns Ответ API в виде числа
66
+ *
67
+ * @example
68
+ * const { BookmarkType } = require("anixartjs");
69
+ *
70
+ * const result = await client.endpoints.profile.addBookmarks(1, BookmarkType.Watching);
71
+ */
19
72
  async addBookmark(id, type, options) {
20
73
  return this.client.call({ path: `/profile/list/add/${type}/${id}`, ...options });
21
74
  }
75
+ /**
76
+ * Удаление релиза из закладки
77
+ *
78
+ * Возвращает код результата {@link IResponse}.
79
+ *
80
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
81
+ *
82
+ * @param id - ID релиза
83
+ * @param type - Тип закладки {@link BookmarkType}
84
+ * @param options - Дополнительные параметры
85
+ * @returns Ответ API в виде числа
86
+ *
87
+ * @example
88
+ * const { BookmarkType } = require("anixartjs");
89
+ *
90
+ * const result = await client.endpoints.profile.removeBookmarks(1, BookmarkType.Watching);
91
+ */
22
92
  async removeBookmark(id, type, options) {
23
93
  return this.client.call({ path: `/profile/list/delete/${type}/${id}`, ...options });
24
94
  }
25
- async search(data, options) {
26
- return this.client.call({ path: `/search/profiles/${data.page}`, json: { query: data.query, page: data.page }, ...options });
27
- }
95
+ /**
96
+ * Получение друзей профиля по его ID
97
+ *
98
+ * Возвращает список {@link IProfileShort} внутри {@link IPageableResponse}.
99
+ *
100
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
101
+ *
102
+ * @param data - Данные для получения списка друзей
103
+ * @param options - Дополнительные параметры
104
+ * @returns Список друзей
105
+ *
106
+ * @example
107
+ * const result = await client.endpoints.profile.getFriends({
108
+ * id: 1, //ID Профиля
109
+ * page: 0 //Страница
110
+ * });
111
+ */
28
112
  async getFriends(data, options) {
29
113
  return await this.client.call({ path: `/profile/friend/all/${data.id}/${data.page}`, ...options });
30
114
  }
115
+ /**
116
+ * Получение списка рекомендаций для добавления в друзья
117
+ *
118
+ * Возвращает список {@link IProfileShort} внутри {@link IPageableResponse}.
119
+ *
120
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
121
+ *
122
+ * @param options - Дополнительные параметры
123
+ * @returns Список потенциальных друзей
124
+ *
125
+ * @example
126
+ * const result = await client.endpoints.profile.getFriendRecomendation();
127
+ */
31
128
  async getFriendRecomendation(options) {
32
129
  return await this.client.call({ path: `/profile/friend/recomendations`, ...options });
33
130
  }
34
- async getFriendRequests(type, count, options) {
131
+ /**
132
+ * Получение списка последних заявок в друзья
133
+ *
134
+ * Возвращает список {@link IProfileShort} внутри {@link IPageableResponse}.
135
+ *
136
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
137
+ *
138
+ * @param type - Тип заявок (Входящие или исходящие)
139
+ * @param count - Количество заявок
140
+ * @param options - Дополнительные параметры
141
+ * @returns Список последних заявок в друзья
142
+ *
143
+ * @example
144
+ * const result = await client.endpoints.profile.getLastFriendRequests("in", 5);
145
+ */
146
+ async getLastFriendRequests(type, count, options) {
35
147
  return await this.client.call({ path: `/profile/friend/requests/${type}/last`, queryParams: { count }, ...options });
36
148
  }
149
+ /**
150
+ * Получение списка заявок в друзья
151
+ *
152
+ * Возвращает список {@link IProfileShort} внутри {@link IPageableResponse}.
153
+ *
154
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
155
+ *
156
+ * @param type - Тип заявок (Входящие или исходящие)
157
+ * @param page - Номер страницы
158
+ * @param options - Дополнительные параметры
159
+ * @returns Список заявок в друзья
160
+ *
161
+ * @example
162
+ * const result = await client.endpoints.profile.getFriendRequests("in", 0);
163
+ */
164
+ async getFriendRequests(type, page, options) {
165
+ return await this.client.call({ path: `/profile/friend/requests/${type}/${page}`, ...options });
166
+ }
167
+ /**
168
+ * Отправка запроса на добавление в друзья
169
+ *
170
+ * Возвращает ответ {@link IFriendRequestResponse}.
171
+ *
172
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}, {@link SendFriendRequestResult}
173
+ *
174
+ * @param id - ID Профиля
175
+ * @param options - Дополнительные параметры
176
+ * @returns Статус дружбы
177
+ *
178
+ * @example
179
+ * const result = await client.endpoints.profile.sendFriendRequest(1);
180
+ */
37
181
  async sendFriendRequest(id, options) {
38
182
  return await this.client.call({ path: `/profile/friend/request/send/${id}`, ...options });
39
183
  }
184
+ /**
185
+ * Удаление запроса на добавление в друзья
186
+ *
187
+ * Возвращает ответ {@link IFriendRequestResponse}.
188
+ *
189
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}, {@link RemoveFriendRequestResult}
190
+ *
191
+ * @param id - ID Профиля
192
+ * @param options - Дополнительные параметры
193
+ * @returns Статус дружбы
194
+ *
195
+ * @example
196
+ * const result = await client.endpoints.profile.removeFriendRequest(1);
197
+ */
40
198
  async removeFriendRequest(id, options) {
41
199
  return await this.client.call({ path: `/profile/friend/request/remove/${id}`, ...options });
42
200
  }
201
+ /**
202
+ * Скрытие запроса на добавление в друзья
203
+ *
204
+ * Возвращает ответ {@link IResponse}.
205
+ *
206
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
207
+ *
208
+ * @param id - ID Профиля
209
+ * @param options - Дополнительные параметры
210
+ * @returns Код ответа
211
+ *
212
+ * @example
213
+ * const result = await client.endpoints.profile.hideFriendRequest(1);
214
+ */
43
215
  async hideFriendRequest(id, options) {
44
216
  return await this.client.call({ path: `/profile/friend/request/hide/${id}`, ...options });
45
217
  }
218
+ /**
219
+ * Получение достижения в профиль
220
+ *
221
+ * Возвращает ответ {@link IResponse}.
222
+ *
223
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}, {@link AchivementResult}
224
+ *
225
+ * @param id - ID Достижения
226
+ * @param options - Дополнительные параметры
227
+ * @returns Код ответа
228
+ *
229
+ * @example
230
+ * const result = await client.endpoints.profile.getAchivement("DEMO1-ACHIV-MENT2");
231
+ * //Или
232
+ * const result = await client.endpoints.profile.getAchivement(1);
233
+ */
46
234
  async getAchivement(id, options) {
47
235
  return await this.client.call({ path: `/achivement/get/${id}`, ...options });
48
236
  }
237
+ /**
238
+ * Получение избранных релизов в профиле
239
+ *
240
+ * Возвращает релизы {@link IRelease} внутри {@link IPageableResponse}.
241
+ *
242
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
243
+ *
244
+ * @param data - Данные для запроса
245
+ * @param options - Дополнительные параметры
246
+ * @returns Релизы
247
+ *
248
+ * @example
249
+ * const { BookmarkSortType } = require("anixartjs");
250
+ *
251
+ * const result = await client.endpoints.profile.getFavorites({
252
+ * page: 1, //Страница
253
+ * sort: BookmarkSortType.NewToOldAddTime, //Сортировка
254
+ * filter_announce: 0, //Фильтр по анонсам
255
+ * });
256
+ */
49
257
  async getFavorites(data, options) {
50
258
  return await this.client.call({ path: `/favorite/all/${data.page}`, queryParams: { sort: data.sort, filter: data.filter, filter_announce: data.filter_announce }, ...options });
51
259
  }
260
+ /**
261
+ * Получение подписок в профиле на каналы и блоги
262
+ *
263
+ * Возвращает каналы и блоги {@link IChannel} внутри {@link IPageableResponse}.
264
+ *
265
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
266
+ *
267
+ * @param page - Номер страницы
268
+ * @param options - Дополнительные параметры
269
+ * @returns Каналы и блоги
270
+ *
271
+ * @example
272
+ * const result = await client.endpoints.profile.getSubsciptions(0);
273
+ */
52
274
  async getSubsciptions(page, options) {
53
275
  return await this.client.call({ path: `/channel/subscription/all/${page}`, ...options });
54
276
  }
277
+ /**
278
+ * Получение количество подписок в профиле на каналы и блоги
279
+ *
280
+ * Возвращает число подписок {@link ISubsciptionCountResponse}.
281
+ *
282
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
283
+ *
284
+ * @param options - Дополнительные параметры
285
+ * @returns Число подписок
286
+ *
287
+ * @example
288
+ * const result = await client.endpoints.profile.getSubsciptionCount(0);
289
+ */
55
290
  async getSubscriptionCount(options) {
56
291
  return await this.client.call({ path: `/channel/subscription/count`, ...options });
57
292
  }
58
- async getVotesReleases(id, page, sort = 1, options) {
293
+ /**
294
+ * Получение списка оцененных релизов профиля
295
+ *
296
+ * Возвращает список {@link IVoteRelease} внутри {@link IPageableResponse}.
297
+ *
298
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
299
+ *
300
+ * @param id - ID Профиля
301
+ * @param page - Номер страницы
302
+ * @param sort - Сортировка
303
+ * @param options - Дополнительные параметры
304
+ * @returns Список оцененных релизов
305
+ *
306
+ * @example
307
+ * const result = await client.endpoints.profile.getVotedReleases(1, 0);
308
+ */
309
+ async getVotedReleases(id, page, sort = 1, options) {
59
310
  return await this.client.call({ path: `/profile/vote/release/voted/${id}/${page}`, queryParams: { sort }, ...options });
60
311
  }
312
+ /**
313
+ * Получение списка юзернеймов профиля на другие соц. сети
314
+ *
315
+ * Возвращает ответ {@link ISocialResponse}.
316
+ *
317
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
318
+ *
319
+ * @param id - ID Профиля
320
+ * @param options - Дополнительные параметры
321
+ * @returns Список оцененных релизов
322
+ *
323
+ * @example
324
+ * const result = await client.endpoints.profile.getSocials(1);
325
+ */
326
+ async getSocials(id, options) {
327
+ return await this.client.call({ path: `/profile/social/${id}`, ...options });
328
+ }
329
+ /**
330
+ * Получение списка неоцененных релизов профиля (Предположительно которые находятся в закладках профиля)
331
+ *
332
+ * Возвращает список {@link IRelease} внутри {@link IPageableResponse}.
333
+ *
334
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
335
+ *
336
+ * @param page - Номер страницы
337
+ * @param options - Дополнительные параметры
338
+ * @returns Список неоцененных релизов
339
+ *
340
+ * @example
341
+ * const result = await client.endpoints.profile.getUnvotedReleases(0);
342
+ */
343
+ async getUnvotedReleases(page = "last", options) {
344
+ return await this.client.call({ path: `/profile/vote/release/unvoted/${page}`, ...options });
345
+ }
346
+ /**
347
+ * Получение списка профилей у которых есть конкретная роль
348
+ *
349
+ * Возвращает список {@link IProfileShort} внутри {@link IPageableResponse}.
350
+ *
351
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
352
+ *
353
+ * @param id - ID Роли
354
+ * @param page - Номер страницы
355
+ * @param options - Дополнительные параметры
356
+ * @returns Список профилей у которых есть конкретная роль
357
+ *
358
+ * @example
359
+ * const result = await client.endpoints.profile.getRoleProfiles(0);
360
+ */
361
+ async getRoleProfiles(id, page, options) {
362
+ return await this.client.call({ path: `/role/all/${page}/${id}`, ...options });
363
+ }
364
+ /**
365
+ * Экспорт закладок из профиля
366
+ *
367
+ * Возвращает ответ {@link IExportBookmarksResponse}.
368
+ *
369
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}, {@link BookmarkExportResult}
370
+ *
371
+ * @param listIds - Типы закладок
372
+ * @param sort - Сортировка
373
+ * @param options - Дополнительные параметры
374
+ * @returns Результат экспорта
375
+ *
376
+ * @example
377
+ * const { BookmarkType } = require("anixartjs");
378
+ *
379
+ * const bookmarks = [BookmarkType.Watching, BookmarkType.Completed];
380
+ * const result = await client.endpoints.profile.exportBookmarks(bookmarks);
381
+ */
382
+ async exportBookmarks(listIds, sort, options) {
383
+ return await this.client.call({ path: "/export/bookmarks", json: { bookmarksExportProfileLists: listIds }, queryParams: { sort }, ...options });
384
+ }
385
+ /**
386
+ * Получение списка профилей которые находятся в блоклисте
387
+ *
388
+ * Возвращает список {@link IProfile} внутри {@link IPageableResponse}.
389
+ *
390
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
391
+ *
392
+ * @param page - Номер страницы
393
+ * @param options - Дополнительные параметры
394
+ * @returns Список профилей
395
+ *
396
+ * @example
397
+ * const result = await client.endpoints.profile.getBlocklist(0);
398
+ */
399
+ async getBlocklist(page, options) {
400
+ return await this.client.call({ path: `/profile/blocklist/all/${page}`, ...options });
401
+ }
402
+ /**
403
+ * Добавление профиля в блоклист
404
+ *
405
+ * Возвращает ответ {@link IResponse}.
406
+ *
407
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
408
+ *
409
+ * @param id - ID Профиля
410
+ * @param options - Дополнительные параметры
411
+ * @returns Код ответа
412
+ *
413
+ * @example
414
+ * const result = await client.endpoints.profile.addToBlocklist(1);
415
+ */
416
+ async addToBlocklist(id, options) {
417
+ return await this.client.call({ path: `/profile/blocklist/add/${id}`, ...options });
418
+ }
419
+ /**
420
+ * Удаление профиля из блоклиста
421
+ *
422
+ * Возвращает ответ {@link IResponse}.
423
+ *
424
+ * Возможные ответы API в виде enum смотреть здесь {@link DefaultResult}
425
+ *
426
+ * @param id - ID Профиля
427
+ * @param options - Дополнительные параметры
428
+ * @returns Код ответа
429
+ *
430
+ * @example
431
+ * const result = await client.endpoints.profile.removeToBlocklist(1);
432
+ */
433
+ async removeFromBlocklist(id, options) {
434
+ return await this.client.call({ path: `/profile/blocklist/remove/${id}`, ...options });
435
+ }
61
436
  }
62
437
  exports.Profile = Profile;
@@ -1,5 +1,5 @@
1
1
  import { Anixart } from "../client";
2
- import { ICommentRelease, ICommentReleaseRequest, ICommentReleaseResponse, ICommentRepliesRequest, IDubbersResponse, IRelease, IReleaseResponse, ISourcesResponse, IVideo, IVideoReleaseInCategoryRequest, IVideoResponse, IEpisodesResponse, VoteType, IEpisodeResponse, IBaseApiParams, IBaseCommentAddRequest, IBaseSearchRequest, IPageableResponse, IResponse, IReleaseFilterRequest, IProfileShort, IVideoStreamingPlatform } from "../types";
2
+ import { ICommentRelease, ICommentReleaseRequest, ICommentReleaseResponse, ICommentRepliesRequest, IDubbersResponse, IRelease, IReleaseResponse, ISourcesResponse, IVideo, IVideoReleaseInCategoryRequest, IVideoResponse, IEpisodesResponse, VoteType, IEpisodeResponse, IBaseApiParams, IBaseCommentAddRequest, IPageableResponse, IResponse, IReleaseFilterRequest, IProfileShort, IVideoStreamingPlatform, CommentDeleteResult, CommentEditResult, ILastEpisodeUpdate } from "../types";
3
3
  /**
4
4
  * Класс релиза
5
5
  *
@@ -14,13 +14,12 @@ export declare class Release {
14
14
  getComments(data: ICommentReleaseRequest, options?: IBaseApiParams): Promise<IPageableResponse<ICommentRelease>>;
15
15
  addComment(id: number, data: IBaseCommentAddRequest, options?: IBaseApiParams): Promise<ICommentReleaseResponse>;
16
16
  voteComment(id: number, vote: VoteType, options?: IBaseApiParams): Promise<IResponse>;
17
- removeComment(id: number, options?: IBaseApiParams): Promise<IResponse>;
18
- editComment(id: number, message: string, spoiler: boolean, options?: IBaseApiParams): Promise<IResponse>;
17
+ removeComment(id: number, options?: IBaseApiParams): Promise<IResponse<CommentDeleteResult>>;
18
+ editComment(id: number, message: string, spoiler: boolean, options?: IBaseApiParams): Promise<IResponse<CommentEditResult>>;
19
19
  getCommentReplies(data: ICommentRepliesRequest, options?: IBaseApiParams): Promise<IPageableResponse<ICommentRelease>>;
20
20
  getRelatedReleases(id: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<IRelease>>;
21
21
  getVideos(id: number, options?: IBaseApiParams): Promise<IVideoResponse>;
22
22
  getVideoInCategory(data: IVideoReleaseInCategoryRequest, options?: IBaseApiParams): Promise<IPageableResponse<IVideo>>;
23
- search(data: IBaseSearchRequest, options?: IBaseApiParams): Promise<IPageableResponse<IRelease>>;
24
23
  getDubbers(id: number, options?: IBaseApiParams): Promise<IDubbersResponse>;
25
24
  getDubberSources(id: number, dubberId: number, options?: IBaseApiParams): Promise<ISourcesResponse>;
26
25
  getEpisodes(id: number, dubberId: number, sourceId: number, sort?: number, options?: IBaseApiParams): Promise<IEpisodesResponse>;
@@ -38,4 +37,5 @@ export declare class Release {
38
37
  removeFromProfileList(id: number, type: number, options?: IBaseApiParams): Promise<IResponse>;
39
38
  getStreaming(id: number, options?: IBaseApiParams): Promise<IPageableResponse<IVideoStreamingPlatform>>;
40
39
  getCommentVotes(id: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<IProfileShort>>;
40
+ getEpisodeUpdates(id: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<ILastEpisodeUpdate>>;
41
41
  }
@@ -46,9 +46,6 @@ class Release {
46
46
  async getVideoInCategory(data, options) {
47
47
  return await this.client.call({ path: `/video/release/${data.id}/category/${data.categoryId}/${data.page}`, ...options });
48
48
  }
49
- async search(data, options) {
50
- return await this.client.call({ path: `/search/releases/${data.page}`, json: { query: data.query, page: data.page }, apiV2: true, ...options });
51
- }
52
49
  async getDubbers(id, options) {
53
50
  return await this.client.call({ path: `/episode/${id}`, ...options });
54
51
  }
@@ -100,5 +97,8 @@ class Release {
100
97
  async getCommentVotes(id, page, options) {
101
98
  return await this.client.call({ path: `/release/comment/votes/${id}/${page}`, ...options });
102
99
  }
100
+ async getEpisodeUpdates(id, page, options) {
101
+ return await this.client.call({ path: `/episode/updates/${id}/${page}`, ...options });
102
+ }
103
103
  }
104
104
  exports.Release = Release;