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.Feed = void 0;
4
+ /**
5
+ * Класс с эндпоинтами ленты
6
+ */
7
+ class Feed {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * GET feed/all/{page}
13
+ *
14
+ * Возможные коды ответа: {@link DefaultResult}
15
+ * @returns {@link IPageableResponse}
16
+ *
17
+ * @example
18
+ * const result = await client.endpoints.feed.feed(1, ...);
19
+ */
20
+ async feed(page, query, options) {
21
+ return await this.client.call({ path: `/feed/all/${page}`, queryParams: query, ...options });
22
+ }
23
+ /**
24
+ * GET feed/latest
25
+ *
26
+ * Возможные коды ответа: {@link DefaultResult}
27
+ * @returns {@link ILatestArticleResponse}
28
+ *
29
+ * @example
30
+ * const result = await client.endpoints.feed.latestArticle(...);
31
+ */
32
+ async latestArticle(options) {
33
+ return await this.client.call({ path: `/feed/latest`, ...options });
34
+ }
35
+ /**
36
+ * GET feed/latest/all/{page}
37
+ *
38
+ * Возможные коды ответа: {@link DefaultResult}
39
+ * @returns {@link IPageableResponse}
40
+ *
41
+ * @example
42
+ * const result = await client.endpoints.feed.latestArticles(1, ...);
43
+ */
44
+ async latestArticles(page, options) {
45
+ return await this.client.call({ path: `/feed/latest/all/${page}`, ...options });
46
+ }
47
+ }
48
+ exports.Feed = Feed;
@@ -0,0 +1,12 @@
1
+ export * from "./auth";
2
+ export * from "./config";
3
+ export * from "./discover";
4
+ export * from "./feed";
5
+ export * from "./search";
6
+ export * from "./report";
7
+ export * from "./channel/index";
8
+ export * from "./collection/index";
9
+ export * from "./notification/index";
10
+ export * from "./profile/index";
11
+ export * from "./release/index";
12
+ export * from "./bookmarks/index";
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./auth"), exports);
18
+ __exportStar(require("./config"), exports);
19
+ __exportStar(require("./discover"), exports);
20
+ __exportStar(require("./feed"), exports);
21
+ __exportStar(require("./search"), exports);
22
+ __exportStar(require("./report"), exports);
23
+ __exportStar(require("./channel/index"), exports);
24
+ __exportStar(require("./collection/index"), exports);
25
+ __exportStar(require("./notification/index"), exports);
26
+ __exportStar(require("./profile/index"), exports);
27
+ __exportStar(require("./release/index"), exports);
28
+ __exportStar(require("./bookmarks/index"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./notification";
2
+ export * from "./notificationPreference";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./notification"), exports);
18
+ __exportStar(require("./notificationPreference"), exports);
@@ -0,0 +1,199 @@
1
+ import { Anixart } from "../../client";
2
+ import { IBaseApiParams, IBaseNotification, INotificationCountResponse, IPageableResponse, IProfileArticleCommentNotification, IProfileArticleNotification, IProfileCollectionCommentNotification, IProfileEpisodeNotification, IProfileFriendNotification, IProfileRelatedReleaseNotification, IProfileReleaseCommentNotification, IResponse } from "../../types";
3
+ /**
4
+ * Класс с эндпоинтами уведомлений
5
+ */
6
+ export declare class Notification {
7
+ private readonly client;
8
+ constructor(client: Anixart);
9
+ /**
10
+ * GET notification/all/{page}
11
+ *
12
+ * Возможные коды ответа: {@link DefaultResult}
13
+ * @returns {@link IPageableResponse}
14
+ *
15
+ * @example
16
+ * const result = await client.endpoints.notification.all(1, ...);
17
+ */
18
+ all(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IBaseNotification>>;
19
+ /**
20
+ * GET notification/article/comments/{page}
21
+ *
22
+ * Возможные коды ответа: {@link DefaultResult}
23
+ * @returns {@link IPageableResponse}
24
+ *
25
+ * @example
26
+ * const result = await client.endpoints.notification.articleComments(1, ...);
27
+ */
28
+ articleComments(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IProfileArticleCommentNotification>>;
29
+ /**
30
+ * GET notification/articles/{page}
31
+ *
32
+ * Возможные коды ответа: {@link DefaultResult}
33
+ * @returns {@link IPageableResponse}
34
+ *
35
+ * @example
36
+ * const result = await client.endpoints.notification.articles(1, ...);
37
+ */
38
+ articles(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IProfileArticleNotification>>;
39
+ /**
40
+ * GET notification/collectionComments/{page}
41
+ *
42
+ * Возможные коды ответа: {@link DefaultResult}
43
+ * @returns {@link IPageableResponse}
44
+ *
45
+ * @example
46
+ * const result = await client.endpoints.notification.collectionComments(1, ...);
47
+ */
48
+ collectionComments(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IProfileCollectionCommentNotification>>;
49
+ /**
50
+ * GET notification/count
51
+ *
52
+ * Возможные коды ответа: {@link DefaultResult}
53
+ * @returns {@link INotificationCountResponse}
54
+ *
55
+ * @example
56
+ * const result = await client.endpoints.notification.count(...);
57
+ */
58
+ count(options?: IBaseApiParams): Promise<INotificationCountResponse>;
59
+ /**
60
+ * GET notification/delete/all
61
+ *
62
+ * Возможные коды ответа: {@link DefaultResult}
63
+ * @returns {@link IResponse}
64
+ *
65
+ * @example
66
+ * const result = await client.endpoints.notification.deleteAll(...);
67
+ */
68
+ deleteAll(options?: IBaseApiParams): Promise<IResponse>;
69
+ /**
70
+ * GET notification/article/comment/delete/{id}
71
+ *
72
+ * Возможные коды ответа: {@link DefaultResult}
73
+ * @returns {@link IResponse}
74
+ *
75
+ * @example
76
+ * const result = await client.endpoints.notification.deleteArticleCommentNotification(1, ...);
77
+ */
78
+ deleteArticleCommentNotification(id2: number, options?: IBaseApiParams): Promise<IResponse>;
79
+ /**
80
+ * GET notification/collectionComment/delete/{id}
81
+ *
82
+ * Возможные коды ответа: {@link DefaultResult}
83
+ * @returns {@link IResponse}
84
+ *
85
+ * @example
86
+ * const result = await client.endpoints.notification.deleteCollectionCommentNotification(1, ...);
87
+ */
88
+ deleteCollectionCommentNotification(id2: number, options?: IBaseApiParams): Promise<IResponse>;
89
+ /**
90
+ * GET notification/episode/delete/{id}
91
+ *
92
+ * Возможные коды ответа: {@link DefaultResult}
93
+ * @returns {@link IResponse}
94
+ *
95
+ * @example
96
+ * const result = await client.endpoints.notification.deleteEpisodeNotification(1, ...);
97
+ */
98
+ deleteEpisodeNotification(id2: number, options?: IBaseApiParams): Promise<IResponse>;
99
+ /**
100
+ * GET notification/friend/delete/{id}
101
+ *
102
+ * Возможные коды ответа: {@link DefaultResult}
103
+ * @returns {@link IResponse}
104
+ *
105
+ * @example
106
+ * const result = await client.endpoints.notification.deleteFriendNotification(1, ...);
107
+ */
108
+ deleteFriendNotification(id2: number, options?: IBaseApiParams): Promise<IResponse>;
109
+ /**
110
+ * GET notification/my/article/comment/delete/{id}
111
+ *
112
+ * Возможные коды ответа: {@link DefaultResult}
113
+ * @returns {@link IResponse}
114
+ *
115
+ * @example
116
+ * const result = await client.endpoints.notification.deleteMyArticleCommentNotification(1, ...);
117
+ */
118
+ deleteMyArticleCommentNotification(id2: number, options?: IBaseApiParams): Promise<IResponse>;
119
+ /**
120
+ * GET notification/my/collection/comment/delete/{id}
121
+ *
122
+ * Возможные коды ответа: {@link DefaultResult}
123
+ * @returns {@link IResponse}
124
+ *
125
+ * @example
126
+ * const result = await client.endpoints.notification.deleteMyCollectionCommentNotification(1, ...);
127
+ */
128
+ deleteMyCollectionCommentNotification(id2: number, options?: IBaseApiParams): Promise<IResponse>;
129
+ /**
130
+ * GET notification/related/release/delete/{id}
131
+ *
132
+ * Возможные коды ответа: {@link DefaultResult}
133
+ * @returns {@link IResponse}
134
+ *
135
+ * @example
136
+ * const result = await client.endpoints.notification.deleteRelatedReleaseNotification(1, ...);
137
+ */
138
+ deleteRelatedReleaseNotification(id2: number, options?: IBaseApiParams): Promise<IResponse>;
139
+ /**
140
+ * GET notification/releaseComment/delete/{id}
141
+ *
142
+ * Возможные коды ответа: {@link DefaultResult}
143
+ * @returns {@link IResponse}
144
+ *
145
+ * @example
146
+ * const result = await client.endpoints.notification.deleteReleaseCommentNotification(1, ...);
147
+ */
148
+ deleteReleaseCommentNotification(id2: number, options?: IBaseApiParams): Promise<IResponse>;
149
+ /**
150
+ * GET notification/episodes/{page}
151
+ *
152
+ * Возможные коды ответа: {@link DefaultResult}
153
+ * @returns {@link IPageableResponse}
154
+ *
155
+ * @example
156
+ * const result = await client.endpoints.notification.episodes(1, ...);
157
+ */
158
+ episodes(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IProfileEpisodeNotification>>;
159
+ /**
160
+ * GET notification/friends/{page}
161
+ *
162
+ * Возможные коды ответа: {@link DefaultResult}
163
+ * @returns {@link IPageableResponse}
164
+ *
165
+ * @example
166
+ * const result = await client.endpoints.notification.friends(1, ...);
167
+ */
168
+ friends(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IProfileFriendNotification>>;
169
+ /**
170
+ * GET notification/read
171
+ *
172
+ * Возможные коды ответа: {@link DefaultResult}
173
+ * @returns {@link IResponse}
174
+ *
175
+ * @example
176
+ * const result = await client.endpoints.notification.read(...);
177
+ */
178
+ read(options?: IBaseApiParams): Promise<IResponse>;
179
+ /**
180
+ * GET notification/related/release/{page}
181
+ *
182
+ * Возможные коды ответа: {@link DefaultResult}
183
+ * @returns {@link IPageableResponse}
184
+ *
185
+ * @example
186
+ * const result = await client.endpoints.notification.relatedReleases(1, ...);
187
+ */
188
+ relatedReleases(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IProfileRelatedReleaseNotification>>;
189
+ /**
190
+ * GET notification/releaseComments/{page}
191
+ *
192
+ * Возможные коды ответа: {@link DefaultResult}
193
+ * @returns {@link IPageableResponse}
194
+ *
195
+ * @example
196
+ * const result = await client.endpoints.notification.releaseComments(1, ...);
197
+ */
198
+ releaseComments(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IProfileReleaseCommentNotification>>;
199
+ }
@@ -0,0 +1,240 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Notification = void 0;
4
+ /**
5
+ * Класс с эндпоинтами уведомлений
6
+ */
7
+ class Notification {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * GET notification/all/{page}
13
+ *
14
+ * Возможные коды ответа: {@link DefaultResult}
15
+ * @returns {@link IPageableResponse}
16
+ *
17
+ * @example
18
+ * const result = await client.endpoints.notification.all(1, ...);
19
+ */
20
+ async all(page, options) {
21
+ return await this.client.call({ path: `/notification/all/${page}`, ...options });
22
+ }
23
+ /**
24
+ * GET notification/article/comments/{page}
25
+ *
26
+ * Возможные коды ответа: {@link DefaultResult}
27
+ * @returns {@link IPageableResponse}
28
+ *
29
+ * @example
30
+ * const result = await client.endpoints.notification.articleComments(1, ...);
31
+ */
32
+ async articleComments(page, options) {
33
+ return await this.client.call({ path: `/notification/article/comments/${page}`, ...options });
34
+ }
35
+ /**
36
+ * GET notification/articles/{page}
37
+ *
38
+ * Возможные коды ответа: {@link DefaultResult}
39
+ * @returns {@link IPageableResponse}
40
+ *
41
+ * @example
42
+ * const result = await client.endpoints.notification.articles(1, ...);
43
+ */
44
+ async articles(page, options) {
45
+ return await this.client.call({ path: `/notification/articles/${page}`, ...options });
46
+ }
47
+ /**
48
+ * GET notification/collectionComments/{page}
49
+ *
50
+ * Возможные коды ответа: {@link DefaultResult}
51
+ * @returns {@link IPageableResponse}
52
+ *
53
+ * @example
54
+ * const result = await client.endpoints.notification.collectionComments(1, ...);
55
+ */
56
+ async collectionComments(page, options) {
57
+ return await this.client.call({ path: `/notification/collectionComments/${page}`, ...options });
58
+ }
59
+ /**
60
+ * GET notification/count
61
+ *
62
+ * Возможные коды ответа: {@link DefaultResult}
63
+ * @returns {@link INotificationCountResponse}
64
+ *
65
+ * @example
66
+ * const result = await client.endpoints.notification.count(...);
67
+ */
68
+ async count(options) {
69
+ return await this.client.call({ path: `/notification/count`, ...options });
70
+ }
71
+ /**
72
+ * GET notification/delete/all
73
+ *
74
+ * Возможные коды ответа: {@link DefaultResult}
75
+ * @returns {@link IResponse}
76
+ *
77
+ * @example
78
+ * const result = await client.endpoints.notification.deleteAll(...);
79
+ */
80
+ async deleteAll(options) {
81
+ return await this.client.call({ path: `/notification/delete/all`, ...options });
82
+ }
83
+ /**
84
+ * GET notification/article/comment/delete/{id}
85
+ *
86
+ * Возможные коды ответа: {@link DefaultResult}
87
+ * @returns {@link IResponse}
88
+ *
89
+ * @example
90
+ * const result = await client.endpoints.notification.deleteArticleCommentNotification(1, ...);
91
+ */
92
+ async deleteArticleCommentNotification(id2, options) {
93
+ return await this.client.call({ path: `/notification/article/comment/delete/${id2}`, ...options });
94
+ }
95
+ /**
96
+ * GET notification/collectionComment/delete/{id}
97
+ *
98
+ * Возможные коды ответа: {@link DefaultResult}
99
+ * @returns {@link IResponse}
100
+ *
101
+ * @example
102
+ * const result = await client.endpoints.notification.deleteCollectionCommentNotification(1, ...);
103
+ */
104
+ async deleteCollectionCommentNotification(id2, options) {
105
+ return await this.client.call({ path: `/notification/collectionComment/delete/${id2}`, ...options });
106
+ }
107
+ /**
108
+ * GET notification/episode/delete/{id}
109
+ *
110
+ * Возможные коды ответа: {@link DefaultResult}
111
+ * @returns {@link IResponse}
112
+ *
113
+ * @example
114
+ * const result = await client.endpoints.notification.deleteEpisodeNotification(1, ...);
115
+ */
116
+ async deleteEpisodeNotification(id2, options) {
117
+ return await this.client.call({ path: `/notification/episode/delete/${id2}`, ...options });
118
+ }
119
+ /**
120
+ * GET notification/friend/delete/{id}
121
+ *
122
+ * Возможные коды ответа: {@link DefaultResult}
123
+ * @returns {@link IResponse}
124
+ *
125
+ * @example
126
+ * const result = await client.endpoints.notification.deleteFriendNotification(1, ...);
127
+ */
128
+ async deleteFriendNotification(id2, options) {
129
+ return await this.client.call({ path: `/notification/friend/delete/${id2}`, ...options });
130
+ }
131
+ /**
132
+ * GET notification/my/article/comment/delete/{id}
133
+ *
134
+ * Возможные коды ответа: {@link DefaultResult}
135
+ * @returns {@link IResponse}
136
+ *
137
+ * @example
138
+ * const result = await client.endpoints.notification.deleteMyArticleCommentNotification(1, ...);
139
+ */
140
+ async deleteMyArticleCommentNotification(id2, options) {
141
+ return await this.client.call({ path: `/notification/my/article/comment/delete/${id2}`, ...options });
142
+ }
143
+ /**
144
+ * GET notification/my/collection/comment/delete/{id}
145
+ *
146
+ * Возможные коды ответа: {@link DefaultResult}
147
+ * @returns {@link IResponse}
148
+ *
149
+ * @example
150
+ * const result = await client.endpoints.notification.deleteMyCollectionCommentNotification(1, ...);
151
+ */
152
+ async deleteMyCollectionCommentNotification(id2, options) {
153
+ return await this.client.call({ path: `/notification/my/collection/comment/delete/${id2}`, ...options });
154
+ }
155
+ /**
156
+ * GET notification/related/release/delete/{id}
157
+ *
158
+ * Возможные коды ответа: {@link DefaultResult}
159
+ * @returns {@link IResponse}
160
+ *
161
+ * @example
162
+ * const result = await client.endpoints.notification.deleteRelatedReleaseNotification(1, ...);
163
+ */
164
+ async deleteRelatedReleaseNotification(id2, options) {
165
+ return await this.client.call({ path: `/notification/related/release/delete/${id2}`, ...options });
166
+ }
167
+ /**
168
+ * GET notification/releaseComment/delete/{id}
169
+ *
170
+ * Возможные коды ответа: {@link DefaultResult}
171
+ * @returns {@link IResponse}
172
+ *
173
+ * @example
174
+ * const result = await client.endpoints.notification.deleteReleaseCommentNotification(1, ...);
175
+ */
176
+ async deleteReleaseCommentNotification(id2, options) {
177
+ return await this.client.call({ path: `/notification/releaseComment/delete/${id2}`, ...options });
178
+ }
179
+ /**
180
+ * GET notification/episodes/{page}
181
+ *
182
+ * Возможные коды ответа: {@link DefaultResult}
183
+ * @returns {@link IPageableResponse}
184
+ *
185
+ * @example
186
+ * const result = await client.endpoints.notification.episodes(1, ...);
187
+ */
188
+ async episodes(page, options) {
189
+ return await this.client.call({ path: `/notification/episodes/${page}`, ...options });
190
+ }
191
+ /**
192
+ * GET notification/friends/{page}
193
+ *
194
+ * Возможные коды ответа: {@link DefaultResult}
195
+ * @returns {@link IPageableResponse}
196
+ *
197
+ * @example
198
+ * const result = await client.endpoints.notification.friends(1, ...);
199
+ */
200
+ async friends(page, options) {
201
+ return await this.client.call({ path: `/notification/friends/${page}`, ...options });
202
+ }
203
+ /**
204
+ * GET notification/read
205
+ *
206
+ * Возможные коды ответа: {@link DefaultResult}
207
+ * @returns {@link IResponse}
208
+ *
209
+ * @example
210
+ * const result = await client.endpoints.notification.read(...);
211
+ */
212
+ async read(options) {
213
+ return await this.client.call({ path: `/notification/read`, ...options });
214
+ }
215
+ /**
216
+ * GET notification/related/release/{page}
217
+ *
218
+ * Возможные коды ответа: {@link DefaultResult}
219
+ * @returns {@link IPageableResponse}
220
+ *
221
+ * @example
222
+ * const result = await client.endpoints.notification.relatedReleases(1, ...);
223
+ */
224
+ async relatedReleases(page, options) {
225
+ return await this.client.call({ path: `/notification/related/release/${page}`, ...options });
226
+ }
227
+ /**
228
+ * GET notification/releaseComments/{page}
229
+ *
230
+ * Возможные коды ответа: {@link DefaultResult}
231
+ * @returns {@link IPageableResponse}
232
+ *
233
+ * @example
234
+ * const result = await client.endpoints.notification.releaseComments(1, ...);
235
+ */
236
+ async releaseComments(page, options) {
237
+ return await this.client.call({ path: `/notification/releaseComments/${page}`, ...options });
238
+ }
239
+ }
240
+ exports.Notification = Notification;