anixapi 0.2.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 (164) hide show
  1. package/LICENSE +339 -0
  2. package/README.md +165 -0
  3. package/dist/api/auth.d.ts +129 -0
  4. package/dist/api/auth.js +156 -0
  5. package/dist/api/bookmarks/export.d.ts +19 -0
  6. package/dist/api/bookmarks/export.js +24 -0
  7. package/dist/api/bookmarks/import.d.ts +29 -0
  8. package/dist/api/bookmarks/import.js +36 -0
  9. package/dist/api/bookmarks/index.d.ts +2 -0
  10. package/dist/api/bookmarks/index.js +18 -0
  11. package/dist/api/channel/article.d.ts +119 -0
  12. package/dist/api/channel/article.js +144 -0
  13. package/dist/api/channel/articleComment.d.ts +119 -0
  14. package/dist/api/channel/articleComment.js +144 -0
  15. package/dist/api/channel/articleSuggestion.d.ts +69 -0
  16. package/dist/api/channel/articleSuggestion.js +84 -0
  17. package/dist/api/channel/channel.d.ts +249 -0
  18. package/dist/api/channel/channel.js +300 -0
  19. package/dist/api/channel/index.d.ts +4 -0
  20. package/dist/api/channel/index.js +20 -0
  21. package/dist/api/collection/collection.d.ts +59 -0
  22. package/dist/api/collection/collection.js +72 -0
  23. package/dist/api/collection/collectionComment.d.ts +109 -0
  24. package/dist/api/collection/collectionComment.js +132 -0
  25. package/dist/api/collection/collectionFavorite.d.ts +39 -0
  26. package/dist/api/collection/collectionFavorite.js +48 -0
  27. package/dist/api/collection/collectionMy.d.ts +69 -0
  28. package/dist/api/collection/collectionMy.js +84 -0
  29. package/dist/api/collection/index.d.ts +4 -0
  30. package/dist/api/collection/index.js +20 -0
  31. package/dist/api/config.d.ts +29 -0
  32. package/dist/api/config.js +36 -0
  33. package/dist/api/discover.d.ts +59 -0
  34. package/dist/api/discover.js +72 -0
  35. package/dist/api/feed.d.ts +39 -0
  36. package/dist/api/feed.js +48 -0
  37. package/dist/api/index.d.ts +12 -0
  38. package/dist/api/index.js +28 -0
  39. package/dist/api/notification/index.d.ts +2 -0
  40. package/dist/api/notification/index.js +18 -0
  41. package/dist/api/notification/notification.d.ts +199 -0
  42. package/dist/api/notification/notification.js +240 -0
  43. package/dist/api/notification/notificationPreference.d.ts +159 -0
  44. package/dist/api/notification/notificationPreference.js +192 -0
  45. package/dist/api/profile/index.d.ts +10 -0
  46. package/dist/api/profile/index.js +26 -0
  47. package/dist/api/profile/profile.d.ts +65 -0
  48. package/dist/api/profile/profile.js +80 -0
  49. package/dist/api/profile/profileBadge.d.ts +39 -0
  50. package/dist/api/profile/profileBadge.js +48 -0
  51. package/dist/api/profile/profileBlockList.d.ts +39 -0
  52. package/dist/api/profile/profileBlockList.js +48 -0
  53. package/dist/api/profile/profileDeletion.d.ts +39 -0
  54. package/dist/api/profile/profileDeletion.js +48 -0
  55. package/dist/api/profile/profileFriend.d.ts +99 -0
  56. package/dist/api/profile/profileFriend.js +120 -0
  57. package/dist/api/profile/profileHealth.d.ts +59 -0
  58. package/dist/api/profile/profileHealth.js +72 -0
  59. package/dist/api/profile/profileList.d.ts +49 -0
  60. package/dist/api/profile/profileList.js +60 -0
  61. package/dist/api/profile/profilePreference.d.ts +239 -0
  62. package/dist/api/profile/profilePreference.js +288 -0
  63. package/dist/api/profile/profileReleaseVote.d.ts +39 -0
  64. package/dist/api/profile/profileReleaseVote.js +48 -0
  65. package/dist/api/profile/profileRoleList.d.ts +19 -0
  66. package/dist/api/profile/profileRoleList.js +24 -0
  67. package/dist/api/release/episode.d.ts +99 -0
  68. package/dist/api/release/episode.js +120 -0
  69. package/dist/api/release/favorite.d.ts +39 -0
  70. package/dist/api/release/favorite.js +48 -0
  71. package/dist/api/release/filter.d.ts +19 -0
  72. package/dist/api/release/filter.js +24 -0
  73. package/dist/api/release/history.d.ts +39 -0
  74. package/dist/api/release/history.js +48 -0
  75. package/dist/api/release/index.d.ts +13 -0
  76. package/dist/api/release/index.js +29 -0
  77. package/dist/api/release/related.d.ts +19 -0
  78. package/dist/api/release/related.js +24 -0
  79. package/dist/api/release/release.d.ts +79 -0
  80. package/dist/api/release/release.js +96 -0
  81. package/dist/api/release/releaseComment.d.ts +109 -0
  82. package/dist/api/release/releaseComment.js +132 -0
  83. package/dist/api/release/releaseStreamingPlatform.d.ts +19 -0
  84. package/dist/api/release/releaseStreamingPlatform.js +24 -0
  85. package/dist/api/release/releaseVideo.d.ts +59 -0
  86. package/dist/api/release/releaseVideo.js +72 -0
  87. package/dist/api/release/releaseVideoAppeal.d.ts +49 -0
  88. package/dist/api/release/releaseVideoAppeal.js +60 -0
  89. package/dist/api/release/releaseVideoFavorite.d.ts +39 -0
  90. package/dist/api/release/releaseVideoFavorite.js +48 -0
  91. package/dist/api/release/schedule.d.ts +19 -0
  92. package/dist/api/release/schedule.js +24 -0
  93. package/dist/api/release/type.d.ts +39 -0
  94. package/dist/api/release/type.js +48 -0
  95. package/dist/api/report.d.ts +189 -0
  96. package/dist/api/report.js +228 -0
  97. package/dist/api/search.d.ts +129 -0
  98. package/dist/api/search.js +156 -0
  99. package/dist/classes/Article.d.ts +18 -0
  100. package/dist/classes/Article.js +44 -0
  101. package/dist/classes/ArticleComment.d.ts +15 -0
  102. package/dist/classes/ArticleComment.js +37 -0
  103. package/dist/classes/BaseArticle.d.ts +21 -0
  104. package/dist/classes/BaseArticle.js +23 -0
  105. package/dist/classes/BaseComment.d.ts +22 -0
  106. package/dist/classes/BaseComment.js +25 -0
  107. package/dist/classes/BaseProfile.d.ts +29 -0
  108. package/dist/classes/BaseProfile.js +52 -0
  109. package/dist/classes/Channel.d.ts +47 -0
  110. package/dist/classes/Channel.js +108 -0
  111. package/dist/classes/Collection.d.ts +29 -0
  112. package/dist/classes/Collection.js +58 -0
  113. package/dist/classes/Dubber.d.ts +19 -0
  114. package/dist/classes/Dubber.js +24 -0
  115. package/dist/classes/Episode.d.ts +20 -0
  116. package/dist/classes/Episode.js +30 -0
  117. package/dist/classes/FullProfile.d.ts +70 -0
  118. package/dist/classes/FullProfile.js +92 -0
  119. package/dist/classes/Release.d.ts +91 -0
  120. package/dist/classes/Release.js +150 -0
  121. package/dist/classes/ReleaseComment.d.ts +16 -0
  122. package/dist/classes/ReleaseComment.js +45 -0
  123. package/dist/classes/Source.d.ts +15 -0
  124. package/dist/classes/Source.js +20 -0
  125. package/dist/classes/SuggestionArticle.d.ts +14 -0
  126. package/dist/classes/SuggestionArticle.js +30 -0
  127. package/dist/client.d.ts +49 -0
  128. package/dist/client.js +183 -0
  129. package/dist/endpoints.d.ts +63 -0
  130. package/dist/endpoints.js +67 -0
  131. package/dist/errors.d.ts +37 -0
  132. package/dist/errors.js +122 -0
  133. package/dist/index.d.ts +5 -0
  134. package/dist/index.js +23 -0
  135. package/dist/types/auth.d.ts +127 -0
  136. package/dist/types/auth.js +47 -0
  137. package/dist/types/channel.d.ts +350 -0
  138. package/dist/types/channel.js +104 -0
  139. package/dist/types/collection.d.ts +105 -0
  140. package/dist/types/collection.js +44 -0
  141. package/dist/types/config.d.ts +41 -0
  142. package/dist/types/config.js +4 -0
  143. package/dist/types/index.d.ts +13 -0
  144. package/dist/types/index.js +26 -0
  145. package/dist/types/notification.d.ts +81 -0
  146. package/dist/types/notification.js +2 -0
  147. package/dist/types/profile.d.ts +339 -0
  148. package/dist/types/profile.js +46 -0
  149. package/dist/types/release.d.ts +467 -0
  150. package/dist/types/release.js +39 -0
  151. package/dist/types/request.d.ts +138 -0
  152. package/dist/types/request.js +2 -0
  153. package/dist/types/response.d.ts +104 -0
  154. package/dist/types/response.js +35 -0
  155. package/dist/types/settings.d.ts +119 -0
  156. package/dist/types/settings.js +48 -0
  157. package/dist/utils/ArticleBuilder.d.ts +38 -0
  158. package/dist/utils/ArticleBuilder.js +144 -0
  159. package/dist/utils/LinkParser.d.ts +253 -0
  160. package/dist/utils/LinkParser.js +253 -0
  161. package/dist/utils/Utils.d.ts +3 -0
  162. package/dist/utils/Utils.js +11 -0
  163. package/docs/DOCUMENTATION.md +290 -0
  164. package/package.json +55 -0
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReleaseVideoFavorite = void 0;
4
+ /**
5
+ * Класс с эндпоинтами избранных видео
6
+ */
7
+ class ReleaseVideoFavorite {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * GET releaseVideoFavorite/add/{r_id}
13
+ *
14
+ * Возможные коды ответа: {@link DefaultResult}
15
+ * @returns {@link IFavoritesResponse}
16
+ *
17
+ * @example
18
+ * const result = await client.endpoints.releaseVideoFavorite.add(1, ...);
19
+ */
20
+ async add(id2, options) {
21
+ return await this.client.call({ path: `/releaseVideoFavorite/add/${id2}`, ...options });
22
+ }
23
+ /**
24
+ * GET releaseVideoFavorite/delete/{r_id}
25
+ *
26
+ * Возможные коды ответа: {@link DefaultResult}
27
+ * @returns {@link IFavoritesResponse}
28
+ *
29
+ * @example
30
+ * const result = await client.endpoints.releaseVideoFavorite.delete(1, ...);
31
+ */
32
+ async delete(id2, options) {
33
+ return await this.client.call({ path: `/releaseVideoFavorite/delete/${id2}`, ...options });
34
+ }
35
+ /**
36
+ * GET /releaseVideoFavorite/all/{p_id}/{page}
37
+ *
38
+ * Возможные коды ответа: {@link DefaultResult}
39
+ * @returns {@link IPageableResponse}
40
+ *
41
+ * @example
42
+ * const result = await client.endpoints.releaseVideoFavorite.favorites(1, 1, ...);
43
+ */
44
+ async favorites(profileId, page, options) {
45
+ return await this.client.call({ path: `/releaseVideoFavorite/all/${profileId}/${page}`, ...options });
46
+ }
47
+ }
48
+ exports.ReleaseVideoFavorite = ReleaseVideoFavorite;
@@ -0,0 +1,19 @@
1
+ import { Anixart } from "../../client";
2
+ import { IBaseApiParams, IScheduleResponse } from "../../types";
3
+ /**
4
+ * Класс с эндпоинтами расписания
5
+ */
6
+ export declare class Schedule {
7
+ private readonly client;
8
+ constructor(client: Anixart);
9
+ /**
10
+ * GET schedule
11
+ *
12
+ * Возможные коды ответа: {@link DefaultResult}
13
+ * @returns {@link IScheduleResponse}
14
+ *
15
+ * @example
16
+ * const result = await client.endpoints.schedule.schedule(...);
17
+ */
18
+ schedule(options?: IBaseApiParams): Promise<IScheduleResponse>;
19
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Schedule = void 0;
4
+ /**
5
+ * Класс с эндпоинтами расписания
6
+ */
7
+ class Schedule {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * GET schedule
13
+ *
14
+ * Возможные коды ответа: {@link DefaultResult}
15
+ * @returns {@link IScheduleResponse}
16
+ *
17
+ * @example
18
+ * const result = await client.endpoints.schedule.schedule(...);
19
+ */
20
+ async schedule(options) {
21
+ return await this.client.call({ path: `/schedule`, ...options });
22
+ }
23
+ }
24
+ exports.Schedule = Schedule;
@@ -0,0 +1,39 @@
1
+ import { Anixart } from "../../client";
2
+ import { IBaseApiParams, IResponse, ITypeResponse } from "../../types";
3
+ /**
4
+ * Класс с эндпоинтами типов озвучки
5
+ */
6
+ export declare class Type {
7
+ private readonly client;
8
+ constructor(client: Anixart);
9
+ /**
10
+ * GET type/pin/{releaseId}/{typeId}
11
+ *
12
+ * Возможные коды ответа: {@link DefaultResult}
13
+ * @returns {@link IResponse}
14
+ *
15
+ * @example
16
+ * const result = await client.endpoints.type.pin(1, 1, ...);
17
+ */
18
+ pin(releaseId: number, typeId: number, options?: IBaseApiParams): Promise<IResponse>;
19
+ /**
20
+ * GET type/all
21
+ *
22
+ * Возможные коды ответа: {@link DefaultResult}
23
+ * @returns {@link ITypeResponse}
24
+ *
25
+ * @example
26
+ * const result = await client.endpoints.type.types(...);
27
+ */
28
+ types(options?: IBaseApiParams): Promise<ITypeResponse>;
29
+ /**
30
+ * GET type/unpin/{releaseId}/{typeId}
31
+ *
32
+ * Возможные коды ответа: {@link DefaultResult}
33
+ * @returns {@link IResponse}
34
+ *
35
+ * @example
36
+ * const result = await client.endpoints.type.unpin(1, 1, ...);
37
+ */
38
+ unpin(releaseId: number, typeId: number, options?: IBaseApiParams): Promise<IResponse>;
39
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Type = void 0;
4
+ /**
5
+ * Класс с эндпоинтами типов озвучки
6
+ */
7
+ class Type {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * GET type/pin/{releaseId}/{typeId}
13
+ *
14
+ * Возможные коды ответа: {@link DefaultResult}
15
+ * @returns {@link IResponse}
16
+ *
17
+ * @example
18
+ * const result = await client.endpoints.type.pin(1, 1, ...);
19
+ */
20
+ async pin(releaseId, typeId, options) {
21
+ return await this.client.call({ path: `/type/pin/${releaseId}/${typeId}`, ...options });
22
+ }
23
+ /**
24
+ * GET type/all
25
+ *
26
+ * Возможные коды ответа: {@link DefaultResult}
27
+ * @returns {@link ITypeResponse}
28
+ *
29
+ * @example
30
+ * const result = await client.endpoints.type.types(...);
31
+ */
32
+ async types(options) {
33
+ return await this.client.call({ path: `/type/all`, ...options });
34
+ }
35
+ /**
36
+ * GET type/unpin/{releaseId}/{typeId}
37
+ *
38
+ * Возможные коды ответа: {@link DefaultResult}
39
+ * @returns {@link IResponse}
40
+ *
41
+ * @example
42
+ * const result = await client.endpoints.type.unpin(1, 1, ...);
43
+ */
44
+ async unpin(releaseId, typeId, options) {
45
+ return await this.client.call({ path: `/type/unpin/${releaseId}/${typeId}`, ...options });
46
+ }
47
+ }
48
+ exports.Type = Type;
@@ -0,0 +1,189 @@
1
+ import { Anixart } from "../client";
2
+ import { IBaseApiParams, IReportReason, IReportRequest, IReportResponse } from "../types";
3
+ /**
4
+ * Класс с эндпоинтами жалоб
5
+ */
6
+ export declare class Report {
7
+ private readonly client;
8
+ constructor(client: Anixart);
9
+ /**
10
+ * POST report/article
11
+ *
12
+ * Возможные коды ответа: {@link DefaultResult}
13
+ * @returns {@link IReportResponse}
14
+ *
15
+ * @example
16
+ * const result = await client.endpoints.report.article(...);
17
+ */
18
+ article(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
19
+ /**
20
+ * POST report/comment/article
21
+ *
22
+ * Возможные коды ответа: {@link DefaultResult}
23
+ * @returns {@link IReportResponse}
24
+ *
25
+ * @example
26
+ * const result = await client.endpoints.report.articleComment(...);
27
+ */
28
+ articleComment(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
29
+ /**
30
+ * GET report/comment/article/reasons
31
+ *
32
+ * Возможные коды ответа: {@link DefaultResult}
33
+ * @returns {@link IReportReason[]}
34
+ *
35
+ * @example
36
+ * const result = await client.endpoints.report.articleCommentsReasons(...);
37
+ */
38
+ articleCommentsReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
39
+ /**
40
+ * GET report/article/reasons
41
+ *
42
+ * Возможные коды ответа: {@link DefaultResult}
43
+ * @returns {@link IReportReason[]}
44
+ *
45
+ * @example
46
+ * const result = await client.endpoints.report.articleReasons(...);
47
+ */
48
+ articleReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
49
+ /**
50
+ * POST report/channel
51
+ *
52
+ * Возможные коды ответа: {@link DefaultResult}
53
+ * @returns {@link IReportResponse}
54
+ *
55
+ * @example
56
+ * const result = await client.endpoints.report.channel(...);
57
+ */
58
+ channel(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
59
+ /**
60
+ * GET report/channel/reasons
61
+ *
62
+ * Возможные коды ответа: {@link DefaultResult}
63
+ * @returns {@link IReportReason[]}
64
+ *
65
+ * @example
66
+ * const result = await client.endpoints.report.channelReasons(...);
67
+ */
68
+ channelReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
69
+ /**
70
+ * POST report/collection
71
+ *
72
+ * Возможные коды ответа: {@link DefaultResult}
73
+ * @returns {@link IReportResponse}
74
+ *
75
+ * @example
76
+ * const result = await client.endpoints.report.collection(...);
77
+ */
78
+ collection(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
79
+ /**
80
+ * POST report/comment/collection
81
+ *
82
+ * Возможные коды ответа: {@link DefaultResult}
83
+ * @returns {@link IReportResponse}
84
+ *
85
+ * @example
86
+ * const result = await client.endpoints.report.collectionComment(...);
87
+ */
88
+ collectionComment(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
89
+ /**
90
+ * GET report/comment/collection/reasons
91
+ *
92
+ * Возможные коды ответа: {@link DefaultResult}
93
+ * @returns {@link IReportReason[]}
94
+ *
95
+ * @example
96
+ * const result = await client.endpoints.report.collectionCommentsReasons(...);
97
+ */
98
+ collectionCommentsReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
99
+ /**
100
+ * GET report/collection/reasons
101
+ *
102
+ * Возможные коды ответа: {@link DefaultResult}
103
+ * @returns {@link IReportReason[]}
104
+ *
105
+ * @example
106
+ * const result = await client.endpoints.report.collectionReasons(...);
107
+ */
108
+ collectionReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
109
+ /**
110
+ * POST report/episode
111
+ *
112
+ * Возможные коды ответа: {@link DefaultResult}
113
+ * @returns {@link IReportResponse}
114
+ *
115
+ * @example
116
+ * const result = await client.endpoints.report.episode(...);
117
+ */
118
+ episode(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
119
+ /**
120
+ * GET report/episode/reasons
121
+ *
122
+ * Возможные коды ответа: {@link DefaultResult}
123
+ * @returns {@link IReportReason[]}
124
+ *
125
+ * @example
126
+ * const result = await client.endpoints.report.episodeReasons(...);
127
+ */
128
+ episodeReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
129
+ /**
130
+ * POST report/profile
131
+ *
132
+ * Возможные коды ответа: {@link DefaultResult}
133
+ * @returns {@link IReportResponse}
134
+ *
135
+ * @example
136
+ * const result = await client.endpoints.report.profile(...);
137
+ */
138
+ profile(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
139
+ /**
140
+ * GET report/profile/reasons
141
+ *
142
+ * Возможные коды ответа: {@link DefaultResult}
143
+ * @returns {@link IReportReason[]}
144
+ *
145
+ * @example
146
+ * const result = await client.endpoints.report.profileReasons(...);
147
+ */
148
+ profileReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
149
+ /**
150
+ * POST report/release
151
+ *
152
+ * Возможные коды ответа: {@link DefaultResult}
153
+ * @returns {@link IReportResponse}
154
+ *
155
+ * @example
156
+ * const result = await client.endpoints.report.release(...);
157
+ */
158
+ release(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
159
+ /**
160
+ * POST report/comment/release
161
+ *
162
+ * Возможные коды ответа: {@link DefaultResult}
163
+ * @returns {@link IReportResponse}
164
+ *
165
+ * @example
166
+ * const result = await client.endpoints.report.releaseComment(...);
167
+ */
168
+ releaseComment(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
169
+ /**
170
+ * GET report/comment/release/reasons
171
+ *
172
+ * Возможные коды ответа: {@link DefaultResult}
173
+ * @returns {@link IReportReason[]}
174
+ *
175
+ * @example
176
+ * const result = await client.endpoints.report.releaseCommentsReasons(...);
177
+ */
178
+ releaseCommentsReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
179
+ /**
180
+ * GET report/release/reasons
181
+ *
182
+ * Возможные коды ответа: {@link DefaultResult}
183
+ * @returns {@link IReportReason[]}
184
+ *
185
+ * @example
186
+ * const result = await client.endpoints.report.releaseReasons(...);
187
+ */
188
+ releaseReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
189
+ }
@@ -0,0 +1,228 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Report = void 0;
4
+ /**
5
+ * Класс с эндпоинтами жалоб
6
+ */
7
+ class Report {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * POST report/article
13
+ *
14
+ * Возможные коды ответа: {@link DefaultResult}
15
+ * @returns {@link IReportResponse}
16
+ *
17
+ * @example
18
+ * const result = await client.endpoints.report.article(...);
19
+ */
20
+ async article(body, options) {
21
+ return await this.client.call({ path: `/report/article`, method: 'POST', json: body, ...options });
22
+ }
23
+ /**
24
+ * POST report/comment/article
25
+ *
26
+ * Возможные коды ответа: {@link DefaultResult}
27
+ * @returns {@link IReportResponse}
28
+ *
29
+ * @example
30
+ * const result = await client.endpoints.report.articleComment(...);
31
+ */
32
+ async articleComment(body, options) {
33
+ return await this.client.call({ path: `/report/comment/article`, method: 'POST', json: body, ...options });
34
+ }
35
+ /**
36
+ * GET report/comment/article/reasons
37
+ *
38
+ * Возможные коды ответа: {@link DefaultResult}
39
+ * @returns {@link IReportReason[]}
40
+ *
41
+ * @example
42
+ * const result = await client.endpoints.report.articleCommentsReasons(...);
43
+ */
44
+ async articleCommentsReasons(options) {
45
+ return await this.client.call({ path: `/report/comment/article/reasons`, ...options });
46
+ }
47
+ /**
48
+ * GET report/article/reasons
49
+ *
50
+ * Возможные коды ответа: {@link DefaultResult}
51
+ * @returns {@link IReportReason[]}
52
+ *
53
+ * @example
54
+ * const result = await client.endpoints.report.articleReasons(...);
55
+ */
56
+ async articleReasons(options) {
57
+ return await this.client.call({ path: `/report/article/reasons`, ...options });
58
+ }
59
+ /**
60
+ * POST report/channel
61
+ *
62
+ * Возможные коды ответа: {@link DefaultResult}
63
+ * @returns {@link IReportResponse}
64
+ *
65
+ * @example
66
+ * const result = await client.endpoints.report.channel(...);
67
+ */
68
+ async channel(body, options) {
69
+ return await this.client.call({ path: `/report/channel`, method: 'POST', json: body, ...options });
70
+ }
71
+ /**
72
+ * GET report/channel/reasons
73
+ *
74
+ * Возможные коды ответа: {@link DefaultResult}
75
+ * @returns {@link IReportReason[]}
76
+ *
77
+ * @example
78
+ * const result = await client.endpoints.report.channelReasons(...);
79
+ */
80
+ async channelReasons(options) {
81
+ return await this.client.call({ path: `/report/channel/reasons`, ...options });
82
+ }
83
+ /**
84
+ * POST report/collection
85
+ *
86
+ * Возможные коды ответа: {@link DefaultResult}
87
+ * @returns {@link IReportResponse}
88
+ *
89
+ * @example
90
+ * const result = await client.endpoints.report.collection(...);
91
+ */
92
+ async collection(body, options) {
93
+ return await this.client.call({ path: `/report/collection`, method: 'POST', json: body, ...options });
94
+ }
95
+ /**
96
+ * POST report/comment/collection
97
+ *
98
+ * Возможные коды ответа: {@link DefaultResult}
99
+ * @returns {@link IReportResponse}
100
+ *
101
+ * @example
102
+ * const result = await client.endpoints.report.collectionComment(...);
103
+ */
104
+ async collectionComment(body, options) {
105
+ return await this.client.call({ path: `/report/comment/collection`, method: 'POST', json: body, ...options });
106
+ }
107
+ /**
108
+ * GET report/comment/collection/reasons
109
+ *
110
+ * Возможные коды ответа: {@link DefaultResult}
111
+ * @returns {@link IReportReason[]}
112
+ *
113
+ * @example
114
+ * const result = await client.endpoints.report.collectionCommentsReasons(...);
115
+ */
116
+ async collectionCommentsReasons(options) {
117
+ return await this.client.call({ path: `/report/comment/collection/reasons`, ...options });
118
+ }
119
+ /**
120
+ * GET report/collection/reasons
121
+ *
122
+ * Возможные коды ответа: {@link DefaultResult}
123
+ * @returns {@link IReportReason[]}
124
+ *
125
+ * @example
126
+ * const result = await client.endpoints.report.collectionReasons(...);
127
+ */
128
+ async collectionReasons(options) {
129
+ return await this.client.call({ path: `/report/collection/reasons`, ...options });
130
+ }
131
+ /**
132
+ * POST report/episode
133
+ *
134
+ * Возможные коды ответа: {@link DefaultResult}
135
+ * @returns {@link IReportResponse}
136
+ *
137
+ * @example
138
+ * const result = await client.endpoints.report.episode(...);
139
+ */
140
+ async episode(body, options) {
141
+ return await this.client.call({ path: `/report/episode`, method: 'POST', json: body, ...options });
142
+ }
143
+ /**
144
+ * GET report/episode/reasons
145
+ *
146
+ * Возможные коды ответа: {@link DefaultResult}
147
+ * @returns {@link IReportReason[]}
148
+ *
149
+ * @example
150
+ * const result = await client.endpoints.report.episodeReasons(...);
151
+ */
152
+ async episodeReasons(options) {
153
+ return await this.client.call({ path: `/report/episode/reasons`, ...options });
154
+ }
155
+ /**
156
+ * POST report/profile
157
+ *
158
+ * Возможные коды ответа: {@link DefaultResult}
159
+ * @returns {@link IReportResponse}
160
+ *
161
+ * @example
162
+ * const result = await client.endpoints.report.profile(...);
163
+ */
164
+ async profile(body, options) {
165
+ return await this.client.call({ path: `/report/profile`, method: 'POST', json: body, ...options });
166
+ }
167
+ /**
168
+ * GET report/profile/reasons
169
+ *
170
+ * Возможные коды ответа: {@link DefaultResult}
171
+ * @returns {@link IReportReason[]}
172
+ *
173
+ * @example
174
+ * const result = await client.endpoints.report.profileReasons(...);
175
+ */
176
+ async profileReasons(options) {
177
+ return await this.client.call({ path: `/report/profile/reasons`, ...options });
178
+ }
179
+ /**
180
+ * POST report/release
181
+ *
182
+ * Возможные коды ответа: {@link DefaultResult}
183
+ * @returns {@link IReportResponse}
184
+ *
185
+ * @example
186
+ * const result = await client.endpoints.report.release(...);
187
+ */
188
+ async release(body, options) {
189
+ return await this.client.call({ path: `/report/release`, method: 'POST', json: body, ...options });
190
+ }
191
+ /**
192
+ * POST report/comment/release
193
+ *
194
+ * Возможные коды ответа: {@link DefaultResult}
195
+ * @returns {@link IReportResponse}
196
+ *
197
+ * @example
198
+ * const result = await client.endpoints.report.releaseComment(...);
199
+ */
200
+ async releaseComment(body, options) {
201
+ return await this.client.call({ path: `/report/comment/release`, method: 'POST', json: body, ...options });
202
+ }
203
+ /**
204
+ * GET report/comment/release/reasons
205
+ *
206
+ * Возможные коды ответа: {@link DefaultResult}
207
+ * @returns {@link IReportReason[]}
208
+ *
209
+ * @example
210
+ * const result = await client.endpoints.report.releaseCommentsReasons(...);
211
+ */
212
+ async releaseCommentsReasons(options) {
213
+ return await this.client.call({ path: `/report/comment/release/reasons`, ...options });
214
+ }
215
+ /**
216
+ * GET report/release/reasons
217
+ *
218
+ * Возможные коды ответа: {@link DefaultResult}
219
+ * @returns {@link IReportReason[]}
220
+ *
221
+ * @example
222
+ * const result = await client.endpoints.report.releaseReasons(...);
223
+ */
224
+ async releaseReasons(options) {
225
+ return await this.client.call({ path: `/report/release/reasons`, ...options });
226
+ }
227
+ }
228
+ exports.Report = Report;