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,159 @@
1
+ import { Anixart } from "../../client";
2
+ import { IBaseApiParams, INotificationPreferenceResponse, IPageableResponse, IProfileReleaseTypeNotificationPreferencesEditRequest, IProfileStatusNotificationPreferencesEditRequest, IProfileTypeNotificationPreferencesEditRequest, IRelease, IResponse } from "../../types";
3
+ /**
4
+ * Класс с эндпоинтами настроек уведомлений
5
+ */
6
+ export declare class NotificationPreference {
7
+ private readonly client;
8
+ constructor(client: Anixart);
9
+ /**
10
+ * GET profile/preference/notification/article/edit
11
+ *
12
+ * Возможные коды ответа: {@link DefaultResult}
13
+ * @returns {@link IResponse}
14
+ *
15
+ * @example
16
+ * const result = await client.endpoints.notificationPreference.articleNotificationsEdit(...);
17
+ */
18
+ articleNotificationsEdit(options?: IBaseApiParams): Promise<IResponse>;
19
+ /**
20
+ * GET profile/preference/notification/comment/edit
21
+ *
22
+ * Возможные коды ответа: {@link DefaultResult}
23
+ * @returns {@link IResponse}
24
+ *
25
+ * @example
26
+ * const result = await client.endpoints.notificationPreference.commentNotificationsEdit(...);
27
+ */
28
+ commentNotificationsEdit(options?: IBaseApiParams): Promise<IResponse>;
29
+ /**
30
+ * GET profile/preference/notification/episode/edit
31
+ *
32
+ * Возможные коды ответа: {@link DefaultResult}
33
+ * @returns {@link IResponse}
34
+ *
35
+ * @example
36
+ * const result = await client.endpoints.notificationPreference.episodeNotificationsEdit(...);
37
+ */
38
+ episodeNotificationsEdit(options?: IBaseApiParams): Promise<IResponse>;
39
+ /**
40
+ * GET profile/preference/notification/episode/first/edit
41
+ *
42
+ * Возможные коды ответа: {@link DefaultResult}
43
+ * @returns {@link IResponse}
44
+ *
45
+ * @example
46
+ * const result = await client.endpoints.notificationPreference.firstEpisodeNotificationsEdit(...);
47
+ */
48
+ firstEpisodeNotificationsEdit(options?: IBaseApiParams): Promise<IResponse>;
49
+ /**
50
+ * GET profile/preference/notification/my
51
+ *
52
+ * Возможные коды ответа: {@link DefaultResult}
53
+ * @returns {@link INotificationPreferenceResponse}
54
+ *
55
+ * @example
56
+ * const result = await client.endpoints.notificationPreference.my(...);
57
+ */
58
+ my(options?: IBaseApiParams): Promise<INotificationPreferenceResponse>;
59
+ /**
60
+ * GET profile/preference/notification/my/article/comment/edit
61
+ *
62
+ * Возможные коды ответа: {@link DefaultResult}
63
+ * @returns {@link IResponse}
64
+ *
65
+ * @example
66
+ * const result = await client.endpoints.notificationPreference.myArticleCommentNotificationsEdit(...);
67
+ */
68
+ myArticleCommentNotificationsEdit(options?: IBaseApiParams): Promise<IResponse>;
69
+ /**
70
+ * GET profile/preference/notification/my/collection/comment/edit
71
+ *
72
+ * Возможные коды ответа: {@link DefaultResult}
73
+ * @returns {@link IResponse}
74
+ *
75
+ * @example
76
+ * const result = await client.endpoints.notificationPreference.myCollectionCommentNotificationsEdit(...);
77
+ */
78
+ myCollectionCommentNotificationsEdit(options?: IBaseApiParams): Promise<IResponse>;
79
+ /**
80
+ * GET profile/preference/notification/release/all/{page}
81
+ *
82
+ * Возможные коды ответа: {@link DefaultResult}
83
+ * @returns {@link IPageableResponse}
84
+ *
85
+ * @example
86
+ * const result = await client.endpoints.notificationPreference.profileReleaseNotificationPreferences(1, ...);
87
+ */
88
+ profileReleaseNotificationPreferences(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IRelease>>;
89
+ /**
90
+ * GET profile/preference/notification/release/type/{releaseId}
91
+ *
92
+ * Возможные коды ответа: {@link DefaultResult}
93
+ * @returns {@link IResponse}
94
+ *
95
+ * @example
96
+ * const result = await client.endpoints.notificationPreference.profileReleaseTypeNotificationPreferences(1, ...);
97
+ */
98
+ profileReleaseTypeNotificationPreferences(releaseId: number, options?: IBaseApiParams): Promise<IResponse>;
99
+ /**
100
+ * POST profile/preference/notification/release/type/edit
101
+ *
102
+ * Возможные коды ответа: {@link DefaultResult}
103
+ * @returns {@link IResponse}
104
+ *
105
+ * @example
106
+ * const result = await client.endpoints.notificationPreference.profileReleaseTypeNotificationPreferencesEdit(...);
107
+ */
108
+ profileReleaseTypeNotificationPreferencesEdit(body: IProfileReleaseTypeNotificationPreferencesEditRequest, options?: IBaseApiParams): Promise<IResponse>;
109
+ /**
110
+ * POST profile/preference/notification/status/edit
111
+ *
112
+ * Возможные коды ответа: {@link DefaultResult}
113
+ * @returns {@link IResponse}
114
+ *
115
+ * @example
116
+ * const result = await client.endpoints.notificationPreference.profileStatusNotificationPreferencesEdit(...);
117
+ */
118
+ profileStatusNotificationPreferencesEdit(body: IProfileStatusNotificationPreferencesEditRequest, options?: IBaseApiParams): Promise<IResponse>;
119
+ /**
120
+ * POST profile/preference/notification/type/edit
121
+ *
122
+ * Возможные коды ответа: {@link DefaultResult}
123
+ * @returns {@link IResponse}
124
+ *
125
+ * @example
126
+ * const result = await client.endpoints.notificationPreference.profileTypeNotificationPreferencesEdit(...);
127
+ */
128
+ profileTypeNotificationPreferencesEdit(body: IProfileTypeNotificationPreferencesEditRequest, options?: IBaseApiParams): Promise<IResponse>;
129
+ /**
130
+ * GET profile/preference/notification/related/release/edit
131
+ *
132
+ * Возможные коды ответа: {@link DefaultResult}
133
+ * @returns {@link IResponse}
134
+ *
135
+ * @example
136
+ * const result = await client.endpoints.notificationPreference.relatedReleaseNotificationsEdit(...);
137
+ */
138
+ relatedReleaseNotificationsEdit(options?: IBaseApiParams): Promise<IResponse>;
139
+ /**
140
+ * GET profile/preference/notification/report/process/edit
141
+ *
142
+ * Возможные коды ответа: {@link DefaultResult}
143
+ * @returns {@link IResponse}
144
+ *
145
+ * @example
146
+ * const result = await client.endpoints.notificationPreference.reportProcessNotificationsEdit(...);
147
+ */
148
+ reportProcessNotificationsEdit(options?: IBaseApiParams): Promise<IResponse>;
149
+ /**
150
+ * GET profile/preference/notification/selected/releases/edit
151
+ *
152
+ * Возможные коды ответа: {@link DefaultResult}
153
+ * @returns {@link IResponse}
154
+ *
155
+ * @example
156
+ * const result = await client.endpoints.notificationPreference.selectedReleasesNotificationsEdit(...);
157
+ */
158
+ selectedReleasesNotificationsEdit(options?: IBaseApiParams): Promise<IResponse>;
159
+ }
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationPreference = void 0;
4
+ /**
5
+ * Класс с эндпоинтами настроек уведомлений
6
+ */
7
+ class NotificationPreference {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * GET profile/preference/notification/article/edit
13
+ *
14
+ * Возможные коды ответа: {@link DefaultResult}
15
+ * @returns {@link IResponse}
16
+ *
17
+ * @example
18
+ * const result = await client.endpoints.notificationPreference.articleNotificationsEdit(...);
19
+ */
20
+ async articleNotificationsEdit(options) {
21
+ return await this.client.call({ path: `/profile/preference/notification/article/edit`, ...options });
22
+ }
23
+ /**
24
+ * GET profile/preference/notification/comment/edit
25
+ *
26
+ * Возможные коды ответа: {@link DefaultResult}
27
+ * @returns {@link IResponse}
28
+ *
29
+ * @example
30
+ * const result = await client.endpoints.notificationPreference.commentNotificationsEdit(...);
31
+ */
32
+ async commentNotificationsEdit(options) {
33
+ return await this.client.call({ path: `/profile/preference/notification/comment/edit`, ...options });
34
+ }
35
+ /**
36
+ * GET profile/preference/notification/episode/edit
37
+ *
38
+ * Возможные коды ответа: {@link DefaultResult}
39
+ * @returns {@link IResponse}
40
+ *
41
+ * @example
42
+ * const result = await client.endpoints.notificationPreference.episodeNotificationsEdit(...);
43
+ */
44
+ async episodeNotificationsEdit(options) {
45
+ return await this.client.call({ path: `/profile/preference/notification/episode/edit`, ...options });
46
+ }
47
+ /**
48
+ * GET profile/preference/notification/episode/first/edit
49
+ *
50
+ * Возможные коды ответа: {@link DefaultResult}
51
+ * @returns {@link IResponse}
52
+ *
53
+ * @example
54
+ * const result = await client.endpoints.notificationPreference.firstEpisodeNotificationsEdit(...);
55
+ */
56
+ async firstEpisodeNotificationsEdit(options) {
57
+ return await this.client.call({ path: `/profile/preference/notification/episode/first/edit`, ...options });
58
+ }
59
+ /**
60
+ * GET profile/preference/notification/my
61
+ *
62
+ * Возможные коды ответа: {@link DefaultResult}
63
+ * @returns {@link INotificationPreferenceResponse}
64
+ *
65
+ * @example
66
+ * const result = await client.endpoints.notificationPreference.my(...);
67
+ */
68
+ async my(options) {
69
+ return await this.client.call({ path: `/profile/preference/notification/my`, ...options });
70
+ }
71
+ /**
72
+ * GET profile/preference/notification/my/article/comment/edit
73
+ *
74
+ * Возможные коды ответа: {@link DefaultResult}
75
+ * @returns {@link IResponse}
76
+ *
77
+ * @example
78
+ * const result = await client.endpoints.notificationPreference.myArticleCommentNotificationsEdit(...);
79
+ */
80
+ async myArticleCommentNotificationsEdit(options) {
81
+ return await this.client.call({ path: `/profile/preference/notification/my/article/comment/edit`, ...options });
82
+ }
83
+ /**
84
+ * GET profile/preference/notification/my/collection/comment/edit
85
+ *
86
+ * Возможные коды ответа: {@link DefaultResult}
87
+ * @returns {@link IResponse}
88
+ *
89
+ * @example
90
+ * const result = await client.endpoints.notificationPreference.myCollectionCommentNotificationsEdit(...);
91
+ */
92
+ async myCollectionCommentNotificationsEdit(options) {
93
+ return await this.client.call({ path: `/profile/preference/notification/my/collection/comment/edit`, ...options });
94
+ }
95
+ /**
96
+ * GET profile/preference/notification/release/all/{page}
97
+ *
98
+ * Возможные коды ответа: {@link DefaultResult}
99
+ * @returns {@link IPageableResponse}
100
+ *
101
+ * @example
102
+ * const result = await client.endpoints.notificationPreference.profileReleaseNotificationPreferences(1, ...);
103
+ */
104
+ async profileReleaseNotificationPreferences(page, options) {
105
+ return await this.client.call({ path: `/profile/preference/notification/release/all/${page}`, ...options });
106
+ }
107
+ /**
108
+ * GET profile/preference/notification/release/type/{releaseId}
109
+ *
110
+ * Возможные коды ответа: {@link DefaultResult}
111
+ * @returns {@link IResponse}
112
+ *
113
+ * @example
114
+ * const result = await client.endpoints.notificationPreference.profileReleaseTypeNotificationPreferences(1, ...);
115
+ */
116
+ async profileReleaseTypeNotificationPreferences(releaseId, options) {
117
+ return await this.client.call({ path: `/profile/preference/notification/release/type/${releaseId}`, ...options });
118
+ }
119
+ /**
120
+ * POST profile/preference/notification/release/type/edit
121
+ *
122
+ * Возможные коды ответа: {@link DefaultResult}
123
+ * @returns {@link IResponse}
124
+ *
125
+ * @example
126
+ * const result = await client.endpoints.notificationPreference.profileReleaseTypeNotificationPreferencesEdit(...);
127
+ */
128
+ async profileReleaseTypeNotificationPreferencesEdit(body, options) {
129
+ return await this.client.call({ path: `/profile/preference/notification/release/type/edit`, method: 'POST', json: body, ...options });
130
+ }
131
+ /**
132
+ * POST profile/preference/notification/status/edit
133
+ *
134
+ * Возможные коды ответа: {@link DefaultResult}
135
+ * @returns {@link IResponse}
136
+ *
137
+ * @example
138
+ * const result = await client.endpoints.notificationPreference.profileStatusNotificationPreferencesEdit(...);
139
+ */
140
+ async profileStatusNotificationPreferencesEdit(body, options) {
141
+ return await this.client.call({ path: `/profile/preference/notification/status/edit`, method: 'POST', json: body, ...options });
142
+ }
143
+ /**
144
+ * POST profile/preference/notification/type/edit
145
+ *
146
+ * Возможные коды ответа: {@link DefaultResult}
147
+ * @returns {@link IResponse}
148
+ *
149
+ * @example
150
+ * const result = await client.endpoints.notificationPreference.profileTypeNotificationPreferencesEdit(...);
151
+ */
152
+ async profileTypeNotificationPreferencesEdit(body, options) {
153
+ return await this.client.call({ path: `/profile/preference/notification/type/edit`, method: 'POST', json: body, ...options });
154
+ }
155
+ /**
156
+ * GET profile/preference/notification/related/release/edit
157
+ *
158
+ * Возможные коды ответа: {@link DefaultResult}
159
+ * @returns {@link IResponse}
160
+ *
161
+ * @example
162
+ * const result = await client.endpoints.notificationPreference.relatedReleaseNotificationsEdit(...);
163
+ */
164
+ async relatedReleaseNotificationsEdit(options) {
165
+ return await this.client.call({ path: `/profile/preference/notification/related/release/edit`, ...options });
166
+ }
167
+ /**
168
+ * GET profile/preference/notification/report/process/edit
169
+ *
170
+ * Возможные коды ответа: {@link DefaultResult}
171
+ * @returns {@link IResponse}
172
+ *
173
+ * @example
174
+ * const result = await client.endpoints.notificationPreference.reportProcessNotificationsEdit(...);
175
+ */
176
+ async reportProcessNotificationsEdit(options) {
177
+ return await this.client.call({ path: `/profile/preference/notification/report/process/edit`, ...options });
178
+ }
179
+ /**
180
+ * GET profile/preference/notification/selected/releases/edit
181
+ *
182
+ * Возможные коды ответа: {@link DefaultResult}
183
+ * @returns {@link IResponse}
184
+ *
185
+ * @example
186
+ * const result = await client.endpoints.notificationPreference.selectedReleasesNotificationsEdit(...);
187
+ */
188
+ async selectedReleasesNotificationsEdit(options) {
189
+ return await this.client.call({ path: `/profile/preference/notification/selected/releases/edit`, ...options });
190
+ }
191
+ }
192
+ exports.NotificationPreference = NotificationPreference;
@@ -0,0 +1,10 @@
1
+ export * from "./profile";
2
+ export * from "./profileBadge";
3
+ export * from "./profileBlockList";
4
+ export * from "./profileDeletion";
5
+ export * from "./profileFriend";
6
+ export * from "./profileHealth";
7
+ export * from "./profileList";
8
+ export * from "./profilePreference";
9
+ export * from "./profileReleaseVote";
10
+ export * from "./profileRoleList";
@@ -0,0 +1,26 @@
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("./profile"), exports);
18
+ __exportStar(require("./profileBadge"), exports);
19
+ __exportStar(require("./profileBlockList"), exports);
20
+ __exportStar(require("./profileDeletion"), exports);
21
+ __exportStar(require("./profileFriend"), exports);
22
+ __exportStar(require("./profileHealth"), exports);
23
+ __exportStar(require("./profileList"), exports);
24
+ __exportStar(require("./profilePreference"), exports);
25
+ __exportStar(require("./profileReleaseVote"), exports);
26
+ __exportStar(require("./profileRoleList"), exports);
@@ -0,0 +1,65 @@
1
+ import { Anixart } from "../../client";
2
+ import { IBaseApiParams, IChangeLogin, IPageableResponse, IProfileInfoResponse, IProfileProcessRequest, IProfileResponse, IProfileSocialResponse, IResponse } from "../../types";
3
+ /**
4
+ * Класс с эндпоинтами профиля
5
+ */
6
+ export declare class Profile {
7
+ private readonly client;
8
+ constructor(client: Anixart);
9
+ /**
10
+ * GET profile/login/history/all/{id}/{page}
11
+ *
12
+ * Возможные коды ответа: {@link DefaultResult}
13
+ * @returns {@link IPageableResponse}
14
+ *
15
+ * @example
16
+ * const result = await client.endpoints.profile.changeLoginHistory(1, 1, ...);
17
+ */
18
+ changeLoginHistory(profileId: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<IChangeLogin>>;
19
+ /**
20
+ * GET profile/info
21
+ *
22
+ * Возможные коды ответа: {@link DefaultResult}
23
+ * @returns {@link IProfileInfoResponse}
24
+ *
25
+ * @example
26
+ * const result = await client.endpoints.profile.info(...);
27
+ */
28
+ info(options?: IBaseApiParams): Promise<IProfileInfoResponse>;
29
+ /**
30
+ * POST profile/process/{id}
31
+ *
32
+ * Возможные коды ответа: {@link DefaultResult}
33
+ * @returns {@link IResponse}
34
+ *
35
+ * @example
36
+ * const result = await client.endpoints.profile.process(1, ...);
37
+ */
38
+ process(id2: number, body: IProfileProcessRequest, options?: IBaseApiParams): Promise<IResponse>;
39
+ /**
40
+ * GET profile/{id}
41
+ *
42
+ * Возможные коды ответа: {@link DefaultResult}
43
+ * @returns {@link IProfileResponse}
44
+ *
45
+ * @example
46
+ * const result = await client.endpoints.profile.profile(1, ...);
47
+ */
48
+ byId(id: number, options?: IBaseApiParams): Promise<IProfileResponse>;
49
+ /**
50
+ * GET profile/{id}
51
+ *
52
+ * @deprecated Используйте {@link byId}
53
+ */
54
+ profile(id2: number, options?: IBaseApiParams): Promise<IProfileResponse>;
55
+ /**
56
+ * GET profile/social/{id}
57
+ *
58
+ * Возможные коды ответа: {@link DefaultResult}
59
+ * @returns {@link IProfileSocialResponse}
60
+ *
61
+ * @example
62
+ * const result = await client.endpoints.profile.social(1, ...);
63
+ */
64
+ social(id2: number, options?: IBaseApiParams): Promise<IProfileSocialResponse>;
65
+ }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Profile = void 0;
4
+ /**
5
+ * Класс с эндпоинтами профиля
6
+ */
7
+ class Profile {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * GET profile/login/history/all/{id}/{page}
13
+ *
14
+ * Возможные коды ответа: {@link DefaultResult}
15
+ * @returns {@link IPageableResponse}
16
+ *
17
+ * @example
18
+ * const result = await client.endpoints.profile.changeLoginHistory(1, 1, ...);
19
+ */
20
+ async changeLoginHistory(profileId, page, options) {
21
+ return await this.client.call({ path: `/profile/login/history/all/${profileId}/${page}`, ...options });
22
+ }
23
+ /**
24
+ * GET profile/info
25
+ *
26
+ * Возможные коды ответа: {@link DefaultResult}
27
+ * @returns {@link IProfileInfoResponse}
28
+ *
29
+ * @example
30
+ * const result = await client.endpoints.profile.info(...);
31
+ */
32
+ async info(options) {
33
+ return await this.client.call({ path: `/profile/info`, ...options });
34
+ }
35
+ /**
36
+ * POST profile/process/{id}
37
+ *
38
+ * Возможные коды ответа: {@link DefaultResult}
39
+ * @returns {@link IResponse}
40
+ *
41
+ * @example
42
+ * const result = await client.endpoints.profile.process(1, ...);
43
+ */
44
+ async process(id2, body, options) {
45
+ return await this.client.call({ path: `/profile/process/${id2}`, method: 'POST', json: body, ...options });
46
+ }
47
+ /**
48
+ * GET profile/{id}
49
+ *
50
+ * Возможные коды ответа: {@link DefaultResult}
51
+ * @returns {@link IProfileResponse}
52
+ *
53
+ * @example
54
+ * const result = await client.endpoints.profile.profile(1, ...);
55
+ */
56
+ async byId(id, options) {
57
+ return await this.client.call({ path: `/profile/${id}`, ...options });
58
+ }
59
+ /**
60
+ * GET profile/{id}
61
+ *
62
+ * @deprecated Используйте {@link byId}
63
+ */
64
+ async profile(id2, options) {
65
+ return this.byId(id2, options);
66
+ }
67
+ /**
68
+ * GET profile/social/{id}
69
+ *
70
+ * Возможные коды ответа: {@link DefaultResult}
71
+ * @returns {@link IProfileSocialResponse}
72
+ *
73
+ * @example
74
+ * const result = await client.endpoints.profile.social(1, ...);
75
+ */
76
+ async social(id2, options) {
77
+ return await this.client.call({ path: `/profile/social/${id2}`, ...options });
78
+ }
79
+ }
80
+ exports.Profile = Profile;
@@ -0,0 +1,39 @@
1
+ import { Anixart } from "../../client";
2
+ import { IBadgesResponse, IBaseApiParams, IResponse } from "../../types";
3
+ /**
4
+ * Класс с эндпоинтами значков профиля
5
+ */
6
+ export declare class ProfileBadge {
7
+ private readonly client;
8
+ constructor(client: Anixart);
9
+ /**
10
+ * GET profile/preference/badge/all/{page}
11
+ *
12
+ * Возможные коды ответа: {@link DefaultResult}
13
+ * @returns {@link IBadgesResponse}
14
+ *
15
+ * @example
16
+ * const result = await client.endpoints.profileBadge.all(1, ...);
17
+ */
18
+ all(page: number, options?: IBaseApiParams): Promise<IBadgesResponse>;
19
+ /**
20
+ * GET profile/preference/badge/edit/{id}
21
+ *
22
+ * Возможные коды ответа: {@link DefaultResult}
23
+ * @returns {@link IResponse}
24
+ *
25
+ * @example
26
+ * const result = await client.endpoints.profileBadge.edit(1, ...);
27
+ */
28
+ edit(id2: number, options?: IBaseApiParams): Promise<IResponse>;
29
+ /**
30
+ * GET profile/preference/badge/remove
31
+ *
32
+ * Возможные коды ответа: {@link DefaultResult}
33
+ * @returns {@link IResponse}
34
+ *
35
+ * @example
36
+ * const result = await client.endpoints.profileBadge.remove(...);
37
+ */
38
+ remove(options?: IBaseApiParams): Promise<IResponse>;
39
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProfileBadge = void 0;
4
+ /**
5
+ * Класс с эндпоинтами значков профиля
6
+ */
7
+ class ProfileBadge {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * GET profile/preference/badge/all/{page}
13
+ *
14
+ * Возможные коды ответа: {@link DefaultResult}
15
+ * @returns {@link IBadgesResponse}
16
+ *
17
+ * @example
18
+ * const result = await client.endpoints.profileBadge.all(1, ...);
19
+ */
20
+ async all(page, options) {
21
+ return await this.client.call({ path: `/profile/preference/badge/all/${page}`, ...options });
22
+ }
23
+ /**
24
+ * GET profile/preference/badge/edit/{id}
25
+ *
26
+ * Возможные коды ответа: {@link DefaultResult}
27
+ * @returns {@link IResponse}
28
+ *
29
+ * @example
30
+ * const result = await client.endpoints.profileBadge.edit(1, ...);
31
+ */
32
+ async edit(id2, options) {
33
+ return await this.client.call({ path: `/profile/preference/badge/edit/${id2}`, ...options });
34
+ }
35
+ /**
36
+ * GET profile/preference/badge/remove
37
+ *
38
+ * Возможные коды ответа: {@link DefaultResult}
39
+ * @returns {@link IResponse}
40
+ *
41
+ * @example
42
+ * const result = await client.endpoints.profileBadge.remove(...);
43
+ */
44
+ async remove(options) {
45
+ return await this.client.call({ path: `/profile/preference/badge/remove`, ...options });
46
+ }
47
+ }
48
+ exports.ProfileBadge = ProfileBadge;
@@ -0,0 +1,39 @@
1
+ import { Anixart } from "../../client";
2
+ import { IBaseApiParams, IBlockProfileListAddResponse, IPageableResponse, IProfile, IResponse } from "../../types";
3
+ /**
4
+ * Класс с эндпоинтами чёрного списка
5
+ */
6
+ export declare class ProfileBlockList {
7
+ private readonly client;
8
+ constructor(client: Anixart);
9
+ /**
10
+ * GET profile/blocklist/add/{id}
11
+ *
12
+ * Возможные коды ответа: {@link DefaultResult}
13
+ * @returns {@link IBlockProfileListAddResponse}
14
+ *
15
+ * @example
16
+ * const result = await client.endpoints.profileBlockList.addToBlockList(1, ...);
17
+ */
18
+ addToBlockList(id2: number, options?: IBaseApiParams): Promise<IBlockProfileListAddResponse>;
19
+ /**
20
+ * GET profile/blocklist/all/{page}
21
+ *
22
+ * Возможные коды ответа: {@link DefaultResult}
23
+ * @returns {@link IPageableResponse}
24
+ *
25
+ * @example
26
+ * const result = await client.endpoints.profileBlockList.blockList(1, ...);
27
+ */
28
+ blockList(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IProfile>>;
29
+ /**
30
+ * GET profile/blocklist/remove/{id}
31
+ *
32
+ * Возможные коды ответа: {@link DefaultResult}
33
+ * @returns {@link IResponse}
34
+ *
35
+ * @example
36
+ * const result = await client.endpoints.profileBlockList.removeFromBlockList(1, ...);
37
+ */
38
+ removeFromBlockList(id2: number, options?: IBaseApiParams): Promise<IResponse>;
39
+ }