anixartjs 0.1.7 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +617 -282
- package/README.md +404 -118
- package/dist/api/article/article.d.ts +422 -0
- package/dist/api/article/article.d.ts.map +1 -0
- package/dist/api/article/article.js +572 -0
- package/dist/api/article/article.js.map +1 -0
- package/dist/api/article/articleComment.d.ts +297 -0
- package/dist/api/article/articleComment.d.ts.map +1 -0
- package/dist/api/article/articleComment.js +398 -0
- package/dist/api/article/articleComment.js.map +1 -0
- package/dist/api/article/articleSuggestion.d.ts +212 -0
- package/dist/api/article/articleSuggestion.d.ts.map +1 -0
- package/dist/api/article/articleSuggestion.js +280 -0
- package/dist/api/article/articleSuggestion.js.map +1 -0
- package/dist/api/auth.d.ts +452 -65
- package/dist/api/auth.d.ts.map +1 -0
- package/dist/api/auth.js +652 -92
- package/dist/api/auth.js.map +1 -0
- package/dist/api/channel.d.ts +724 -44
- package/dist/api/channel.d.ts.map +1 -0
- package/dist/api/channel.js +970 -116
- package/dist/api/channel.js.map +1 -0
- package/dist/api/collection/collection.d.ts +143 -0
- package/dist/api/collection/collection.d.ts.map +1 -0
- package/dist/api/collection/collection.js +191 -0
- package/dist/api/collection/collection.js.map +1 -0
- package/dist/api/collection/collectionComment.d.ts +274 -0
- package/dist/api/collection/collectionComment.d.ts.map +1 -0
- package/dist/api/collection/collectionComment.js +368 -0
- package/dist/api/collection/collectionComment.js.map +1 -0
- package/dist/api/collection/collectionFavorite.d.ts +87 -0
- package/dist/api/collection/collectionFavorite.d.ts.map +1 -0
- package/dist/api/collection/collectionFavorite.js +114 -0
- package/dist/api/collection/collectionFavorite.js.map +1 -0
- package/dist/api/collection/collectionMy.d.ts +193 -0
- package/dist/api/collection/collectionMy.d.ts.map +1 -0
- package/dist/api/collection/collectionMy.js +266 -0
- package/dist/api/collection/collectionMy.js.map +1 -0
- package/dist/api/config.d.ts +83 -0
- package/dist/api/config.d.ts.map +1 -0
- package/dist/api/config.js +115 -0
- package/dist/api/config.js.map +1 -0
- package/dist/api/discover.d.ts +75 -46
- package/dist/api/discover.d.ts.map +1 -0
- package/dist/api/discover.js +104 -49
- package/dist/api/discover.js.map +1 -0
- package/dist/api/export.d.ts +41 -0
- package/dist/api/export.d.ts.map +1 -0
- package/dist/api/export.js +60 -0
- package/dist/api/export.js.map +1 -0
- package/dist/api/feed.d.ts +64 -20
- package/dist/api/feed.d.ts.map +1 -0
- package/dist/api/feed.js +85 -20
- package/dist/api/feed.js.map +1 -0
- package/dist/api/import.d.ts +65 -0
- package/dist/api/import.d.ts.map +1 -0
- package/dist/api/import.js +89 -0
- package/dist/api/import.js.map +1 -0
- package/dist/api/notification/notification.d.ts +284 -0
- package/dist/api/notification/notification.d.ts.map +1 -0
- package/dist/api/notification/notification.js +371 -0
- package/dist/api/notification/notification.js.map +1 -0
- package/dist/api/notification/notificationPreference.d.ts +188 -0
- package/dist/api/notification/notificationPreference.d.ts.map +1 -0
- package/dist/api/notification/notificationPreference.js +252 -0
- package/dist/api/notification/notificationPreference.js.map +1 -0
- package/dist/api/profile/profile.d.ts +99 -0
- package/dist/api/profile/profile.d.ts.map +1 -0
- package/dist/api/profile/profile.js +132 -0
- package/dist/api/profile/profile.js.map +1 -0
- package/dist/api/profile/profileBadge.d.ts +79 -0
- package/dist/api/profile/profileBadge.d.ts.map +1 -0
- package/dist/api/profile/profileBadge.js +103 -0
- package/dist/api/profile/profileBadge.js.map +1 -0
- package/dist/api/profile/profileBlockList.d.ts +85 -0
- package/dist/api/profile/profileBlockList.d.ts.map +1 -0
- package/dist/api/profile/profileBlockList.js +111 -0
- package/dist/api/profile/profileBlockList.js.map +1 -0
- package/dist/api/profile/profileDeletion.d.ts +81 -0
- package/dist/api/profile/profileDeletion.d.ts.map +1 -0
- package/dist/api/profile/profileDeletion.js +115 -0
- package/dist/api/profile/profileDeletion.js.map +1 -0
- package/dist/api/profile/profileFriend.d.ts +184 -0
- package/dist/api/profile/profileFriend.d.ts.map +1 -0
- package/dist/api/profile/profileFriend.js +244 -0
- package/dist/api/profile/profileFriend.js.map +1 -0
- package/dist/api/profile/profileHealth.d.ts +124 -0
- package/dist/api/profile/profileHealth.d.ts.map +1 -0
- package/dist/api/profile/profileHealth.js +168 -0
- package/dist/api/profile/profileHealth.js.map +1 -0
- package/dist/api/profile/profileList.d.ts +135 -0
- package/dist/api/profile/profileList.d.ts.map +1 -0
- package/dist/api/profile/profileList.js +174 -0
- package/dist/api/profile/profileList.js.map +1 -0
- package/dist/api/profile/profilePreference.d.ts +692 -0
- package/dist/api/profile/profilePreference.d.ts.map +1 -0
- package/dist/api/profile/profilePreference.js +1014 -0
- package/dist/api/profile/profilePreference.js.map +1 -0
- package/dist/api/profile/profileReleaseVote.d.ts +81 -0
- package/dist/api/profile/profileReleaseVote.d.ts.map +1 -0
- package/dist/api/profile/profileReleaseVote.js +108 -0
- package/dist/api/profile/profileReleaseVote.js.map +1 -0
- package/dist/api/profile/profileRoleList.d.ts +34 -0
- package/dist/api/profile/profileRoleList.d.ts.map +1 -0
- package/dist/api/profile/profileRoleList.js +44 -0
- package/dist/api/profile/profileRoleList.js.map +1 -0
- package/dist/api/release/episode.d.ts +254 -0
- package/dist/api/release/episode.d.ts.map +1 -0
- package/dist/api/release/episode.js +260 -0
- package/dist/api/release/episode.js.map +1 -0
- package/dist/api/release/favorite.d.ts +89 -0
- package/dist/api/release/favorite.d.ts.map +1 -0
- package/dist/api/release/favorite.js +117 -0
- package/dist/api/release/favorite.js.map +1 -0
- package/dist/api/release/filter.d.ts +44 -0
- package/dist/api/release/filter.d.ts.map +1 -0
- package/dist/api/release/filter.js +61 -0
- package/dist/api/release/filter.js.map +1 -0
- package/dist/api/release/history.d.ts +89 -0
- package/dist/api/release/history.d.ts.map +1 -0
- package/dist/api/release/history.js +113 -0
- package/dist/api/release/history.js.map +1 -0
- package/dist/api/release/related.d.ts +34 -0
- package/dist/api/release/related.d.ts.map +1 -0
- package/dist/api/release/related.js +46 -0
- package/dist/api/release/related.js.map +1 -0
- package/dist/api/release/release.d.ts +192 -0
- package/dist/api/release/release.d.ts.map +1 -0
- package/dist/api/release/release.js +259 -0
- package/dist/api/release/release.js.map +1 -0
- package/dist/api/release/releaseComment.d.ts +282 -0
- package/dist/api/release/releaseComment.d.ts.map +1 -0
- package/dist/api/release/releaseComment.js +376 -0
- package/dist/api/release/releaseComment.js.map +1 -0
- package/dist/api/release/releaseStreamingPlatform.d.ts +29 -0
- package/dist/api/release/releaseStreamingPlatform.d.ts.map +1 -0
- package/dist/api/release/releaseStreamingPlatform.js +38 -0
- package/dist/api/release/releaseStreamingPlatform.js.map +1 -0
- package/dist/api/release/releaseVideo.d.ts +125 -0
- package/dist/api/release/releaseVideo.d.ts.map +1 -0
- package/dist/api/release/releaseVideo.js +161 -0
- package/dist/api/release/releaseVideo.js.map +1 -0
- package/dist/api/release/releaseVideoAppeal.d.ts +93 -0
- package/dist/api/release/releaseVideoAppeal.d.ts.map +1 -0
- package/dist/api/release/releaseVideoAppeal.js +124 -0
- package/dist/api/release/releaseVideoAppeal.js.map +1 -0
- package/dist/api/release/releaseVideoFavorite.d.ts +86 -0
- package/dist/api/release/releaseVideoFavorite.d.ts.map +1 -0
- package/dist/api/release/releaseVideoFavorite.js +110 -0
- package/dist/api/release/releaseVideoFavorite.js.map +1 -0
- package/dist/api/release/schedule.d.ts +25 -0
- package/dist/api/release/schedule.d.ts.map +1 -0
- package/dist/api/release/schedule.js +34 -0
- package/dist/api/release/schedule.js.map +1 -0
- package/dist/api/report.d.ts +68 -0
- package/dist/api/report.d.ts.map +1 -0
- package/dist/api/report.js +91 -0
- package/dist/api/report.js.map +1 -0
- package/dist/api/search.d.ts +360 -216
- package/dist/api/search.d.ts.map +1 -0
- package/dist/api/search.js +482 -226
- package/dist/api/search.js.map +1 -0
- package/dist/api/type.d.ts +159 -0
- package/dist/api/type.d.ts.map +1 -0
- package/dist/api/type.js +207 -0
- package/dist/api/type.js.map +1 -0
- package/dist/core/anixartClient.d.ts +25 -0
- package/dist/core/anixartClient.d.ts.map +1 -0
- package/dist/core/anixartClient.js +35 -0
- package/dist/core/anixartClient.js.map +1 -0
- package/dist/core/endpoints.d.ts +87 -0
- package/dist/core/endpoints.d.ts.map +1 -0
- package/dist/core/endpoints.js +132 -0
- package/dist/core/endpoints.js.map +1 -0
- package/dist/core/errors/anixartError.d.ts +8 -0
- package/dist/core/errors/anixartError.d.ts.map +1 -0
- package/dist/core/errors/anixartError.js +19 -0
- package/dist/core/errors/anixartError.js.map +1 -0
- package/dist/core/errors/httpError.d.ts +6 -0
- package/dist/core/errors/httpError.d.ts.map +1 -0
- package/dist/core/errors/httpError.js +15 -0
- package/dist/core/errors/httpError.js.map +1 -0
- package/dist/core/http/httpClient.d.ts +15 -0
- package/dist/core/http/httpClient.d.ts.map +1 -0
- package/dist/core/http/httpClient.js +153 -0
- package/dist/core/http/httpClient.js.map +1 -0
- package/dist/core/http/httpTypes.d.ts +49 -0
- package/dist/core/http/httpTypes.d.ts.map +1 -0
- package/dist/core/http/httpTypes.js +3 -0
- package/dist/core/http/httpTypes.js.map +1 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -0
- package/dist/models/article/enums.d.ts +51 -0
- package/dist/models/article/enums.d.ts.map +1 -0
- package/dist/models/article/enums.js +62 -0
- package/dist/models/article/enums.js.map +1 -0
- package/dist/models/article/types.d.ts +167 -0
- package/dist/models/article/types.d.ts.map +1 -0
- package/dist/{types/notification.js → models/article/types.js} +1 -0
- package/dist/models/article/types.js.map +1 -0
- package/dist/models/auth/enums.d.ts +139 -0
- package/dist/models/auth/enums.d.ts.map +1 -0
- package/dist/models/auth/enums.js +159 -0
- package/dist/models/auth/enums.js.map +1 -0
- package/dist/models/auth/types.d.ts +95 -0
- package/dist/models/auth/types.d.ts.map +1 -0
- package/dist/{types/request.js → models/auth/types.js} +1 -0
- package/dist/models/auth/types.js.map +1 -0
- package/dist/models/channel/enums.d.ts +63 -0
- package/dist/models/channel/enums.d.ts.map +1 -0
- package/dist/models/channel/enums.js +79 -0
- package/dist/models/channel/enums.js.map +1 -0
- package/dist/models/channel/types.d.ts +129 -0
- package/dist/models/channel/types.d.ts.map +1 -0
- package/dist/models/channel/types.js +3 -0
- package/dist/models/channel/types.js.map +1 -0
- package/dist/models/collection/enums.d.ts +39 -0
- package/dist/models/collection/enums.d.ts.map +1 -0
- package/dist/{types/collection.js → models/collection/enums.js} +6 -1
- package/dist/models/collection/enums.js.map +1 -0
- package/dist/models/collection/types.d.ts +54 -0
- package/dist/models/collection/types.d.ts.map +1 -0
- package/dist/models/collection/types.js +3 -0
- package/dist/models/collection/types.js.map +1 -0
- package/dist/models/common/enums.d.ts +29 -0
- package/dist/models/common/enums.d.ts.map +1 -0
- package/dist/{types/response.js → models/common/enums.js} +10 -9
- package/dist/models/common/enums.js.map +1 -0
- package/dist/models/common/types.d.ts +52 -0
- package/dist/models/common/types.d.ts.map +1 -0
- package/dist/models/common/types.js +3 -0
- package/dist/models/common/types.js.map +1 -0
- package/dist/models/config/types.d.ts +66 -0
- package/dist/models/config/types.d.ts.map +1 -0
- package/dist/models/config/types.js +3 -0
- package/dist/models/config/types.js.map +1 -0
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +39 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/notification/enums.d.ts +26 -0
- package/dist/models/notification/enums.d.ts.map +1 -0
- package/dist/models/notification/enums.js +32 -0
- package/dist/models/notification/enums.js.map +1 -0
- package/dist/models/notification/types.d.ts +66 -0
- package/dist/models/notification/types.d.ts.map +1 -0
- package/dist/models/notification/types.js +3 -0
- package/dist/models/notification/types.js.map +1 -0
- package/dist/models/preference/enums.d.ts +79 -0
- package/dist/models/preference/enums.d.ts.map +1 -0
- package/dist/models/preference/enums.js +99 -0
- package/dist/models/preference/enums.js.map +1 -0
- package/dist/models/preference/types.d.ts +61 -0
- package/dist/models/preference/types.d.ts.map +1 -0
- package/dist/models/preference/types.js +3 -0
- package/dist/models/preference/types.js.map +1 -0
- package/dist/models/profile/enums.d.ts +68 -0
- package/dist/models/profile/enums.d.ts.map +1 -0
- package/dist/models/profile/enums.js +83 -0
- package/dist/models/profile/enums.js.map +1 -0
- package/dist/models/profile/types.d.ts +263 -0
- package/dist/models/profile/types.d.ts.map +1 -0
- package/dist/models/profile/types.js +3 -0
- package/dist/models/profile/types.js.map +1 -0
- package/dist/models/release/enums.d.ts +57 -0
- package/dist/models/release/enums.d.ts.map +1 -0
- package/dist/models/release/enums.js +69 -0
- package/dist/models/release/enums.js.map +1 -0
- package/dist/models/release/types.d.ts +283 -0
- package/dist/models/release/types.d.ts.map +1 -0
- package/dist/models/release/types.js +3 -0
- package/dist/models/release/types.js.map +1 -0
- package/dist/models/report/enums.d.ts +17 -0
- package/dist/models/report/enums.d.ts.map +1 -0
- package/dist/models/report/enums.js +22 -0
- package/dist/models/report/enums.js.map +1 -0
- package/dist/models/report/types.d.ts +23 -0
- package/dist/models/report/types.d.ts.map +1 -0
- package/dist/models/report/types.js +4 -0
- package/dist/models/report/types.js.map +1 -0
- package/dist/models/search/types.d.ts +27 -0
- package/dist/models/search/types.d.ts.map +1 -0
- package/dist/models/search/types.js +3 -0
- package/dist/models/search/types.js.map +1 -0
- package/dist/utils/ArticleBuilder.d.ts +41 -12
- package/dist/utils/ArticleBuilder.d.ts.map +1 -0
- package/dist/utils/ArticleBuilder.js +130 -115
- package/dist/utils/ArticleBuilder.js.map +1 -0
- package/dist/utils/{LinkParser.d.ts → linkParser/anilibria.d.ts} +15 -85
- package/dist/utils/linkParser/anilibria.d.ts.map +1 -0
- package/dist/utils/linkParser/anilibria.js +42 -0
- package/dist/utils/linkParser/anilibria.js.map +1 -0
- package/dist/utils/linkParser/index.d.ts +9 -0
- package/dist/utils/linkParser/index.d.ts.map +1 -0
- package/dist/utils/linkParser/index.js +29 -0
- package/dist/utils/linkParser/index.js.map +1 -0
- package/dist/utils/linkParser/kodik.d.ts +50 -0
- package/dist/utils/linkParser/kodik.d.ts.map +1 -0
- package/dist/utils/linkParser/kodik.js +86 -0
- package/dist/utils/linkParser/kodik.js.map +1 -0
- package/dist/utils/linkParser/ok.d.ts +9 -0
- package/dist/utils/linkParser/ok.d.ts.map +1 -0
- package/dist/utils/linkParser/ok.js +62 -0
- package/dist/utils/linkParser/ok.js.map +1 -0
- package/dist/utils/linkParser/parseHlsMaster.d.ts +6 -0
- package/dist/utils/linkParser/parseHlsMaster.d.ts.map +1 -0
- package/dist/utils/linkParser/parseHlsMaster.js +57 -0
- package/dist/utils/linkParser/parseHlsMaster.js.map +1 -0
- package/dist/utils/linkParser/request.d.ts +7 -0
- package/dist/utils/linkParser/request.d.ts.map +1 -0
- package/dist/utils/linkParser/request.js +50 -0
- package/dist/utils/linkParser/request.js.map +1 -0
- package/dist/utils/linkParser/rutube.d.ts +8 -0
- package/dist/utils/linkParser/rutube.d.ts.map +1 -0
- package/dist/utils/linkParser/rutube.js +28 -0
- package/dist/utils/linkParser/rutube.js.map +1 -0
- package/dist/utils/linkParser/sibnet.d.ts +8 -0
- package/dist/utils/linkParser/sibnet.d.ts.map +1 -0
- package/dist/utils/linkParser/sibnet.js +26 -0
- package/dist/utils/linkParser/sibnet.js.map +1 -0
- package/dist/utils/linkParser/types.d.ts +12 -0
- package/dist/utils/linkParser/types.d.ts.map +1 -0
- package/dist/utils/linkParser/types.js +3 -0
- package/dist/utils/linkParser/types.js.map +1 -0
- package/dist/utils/linkParser/vk.d.ts +13 -0
- package/dist/utils/linkParser/vk.d.ts.map +1 -0
- package/dist/utils/linkParser/vk.js +58 -0
- package/dist/utils/linkParser/vk.js.map +1 -0
- package/package.json +5 -5
- package/dist/api/collection.d.ts +0 -27
- package/dist/api/collection.js +0 -62
- package/dist/api/index.d.ts +0 -10
- package/dist/api/index.js +0 -26
- package/dist/api/notification.d.ts +0 -17
- package/dist/api/notification.js +0 -42
- package/dist/api/profile.d.ts +0 -388
- package/dist/api/profile.js +0 -437
- package/dist/api/release.d.ts +0 -41
- package/dist/api/release.js +0 -104
- package/dist/api/settings.d.ts +0 -29
- package/dist/api/settings.js +0 -78
- package/dist/classes/Article.d.ts +0 -18
- package/dist/classes/Article.js +0 -44
- package/dist/classes/ArticleComment.d.ts +0 -15
- package/dist/classes/ArticleComment.js +0 -37
- package/dist/classes/BaseArticle.d.ts +0 -21
- package/dist/classes/BaseArticle.js +0 -23
- package/dist/classes/BaseComment.d.ts +0 -22
- package/dist/classes/BaseComment.js +0 -25
- package/dist/classes/BaseProfile.d.ts +0 -29
- package/dist/classes/BaseProfile.js +0 -50
- package/dist/classes/Channel.d.ts +0 -47
- package/dist/classes/Channel.js +0 -104
- package/dist/classes/Collection.d.ts +0 -29
- package/dist/classes/Collection.js +0 -58
- package/dist/classes/Dubber.d.ts +0 -19
- package/dist/classes/Dubber.js +0 -24
- package/dist/classes/Episode.d.ts +0 -20
- package/dist/classes/Episode.js +0 -30
- package/dist/classes/FullProfile.d.ts +0 -71
- package/dist/classes/FullProfile.js +0 -93
- package/dist/classes/Release.d.ts +0 -91
- package/dist/classes/Release.js +0 -154
- package/dist/classes/ReleaseComment.d.ts +0 -16
- package/dist/classes/ReleaseComment.js +0 -45
- package/dist/classes/Source.d.ts +0 -15
- package/dist/classes/Source.js +0 -20
- package/dist/classes/SuggestionArticle.d.ts +0 -14
- package/dist/classes/SuggestionArticle.js +0 -29
- package/dist/client.d.ts +0 -46
- package/dist/client.js +0 -149
- package/dist/endpoints.d.ts +0 -27
- package/dist/endpoints.js +0 -34
- package/dist/types/auth.d.ts +0 -64
- package/dist/types/auth.js +0 -47
- package/dist/types/channel.d.ts +0 -277
- package/dist/types/channel.js +0 -97
- package/dist/types/collection.d.ts +0 -84
- package/dist/types/index.d.ts +0 -12
- package/dist/types/index.js +0 -25
- package/dist/types/notification.d.ts +0 -36
- package/dist/types/profile.d.ts +0 -213
- package/dist/types/profile.js +0 -46
- package/dist/types/release.d.ts +0 -336
- package/dist/types/release.js +0 -39
- package/dist/types/request.d.ts +0 -36
- package/dist/types/response.d.ts +0 -77
- package/dist/types/settings.d.ts +0 -89
- package/dist/types/settings.js +0 -48
- package/dist/utils/LinkParser.js +0 -121
- package/dist/utils/Utils.d.ts +0 -3
- package/dist/utils/Utils.js +0 -11
package/dist/api/profile.js
DELETED
|
@@ -1,437 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Profile = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Класс профиля
|
|
6
|
-
*
|
|
7
|
-
* TODO: Понять для чего нужен эндпоинт '/profile/process/{id}' - POST
|
|
8
|
-
* Пока что предположение что это что-то для модерации
|
|
9
|
-
*/
|
|
10
|
-
class Profile {
|
|
11
|
-
constructor(client) {
|
|
12
|
-
this.client = client;
|
|
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
|
-
*/
|
|
28
|
-
async info(id, options) {
|
|
29
|
-
return this.client.call({ path: `/profile/${id}`, ...options });
|
|
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
|
-
*/
|
|
52
|
-
async getBookmarks(data, options) {
|
|
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 });
|
|
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
|
-
*/
|
|
72
|
-
async addBookmark(id, type, options) {
|
|
73
|
-
return this.client.call({ path: `/profile/list/add/${type}/${id}`, ...options });
|
|
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
|
-
*/
|
|
92
|
-
async removeBookmark(id, type, options) {
|
|
93
|
-
return this.client.call({ path: `/profile/list/delete/${type}/${id}`, ...options });
|
|
94
|
-
}
|
|
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
|
-
*/
|
|
112
|
-
async getFriends(data, options) {
|
|
113
|
-
return await this.client.call({ path: `/profile/friend/all/${data.id}/${data.page}`, ...options });
|
|
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
|
-
*/
|
|
128
|
-
async getFriendRecomendation(options) {
|
|
129
|
-
return await this.client.call({ path: `/profile/friend/recomendations`, ...options });
|
|
130
|
-
}
|
|
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) {
|
|
147
|
-
return await this.client.call({ path: `/profile/friend/requests/${type}/last`, queryParams: { count }, ...options });
|
|
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
|
-
*/
|
|
181
|
-
async sendFriendRequest(id, options) {
|
|
182
|
-
return await this.client.call({ path: `/profile/friend/request/send/${id}`, ...options });
|
|
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
|
-
*/
|
|
198
|
-
async removeFriendRequest(id, options) {
|
|
199
|
-
return await this.client.call({ path: `/profile/friend/request/remove/${id}`, ...options });
|
|
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
|
-
*/
|
|
215
|
-
async hideFriendRequest(id, options) {
|
|
216
|
-
return await this.client.call({ path: `/profile/friend/request/hide/${id}`, ...options });
|
|
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
|
-
*/
|
|
234
|
-
async getAchivement(id, options) {
|
|
235
|
-
return await this.client.call({ path: `/achivement/get/${id}`, ...options });
|
|
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
|
-
*/
|
|
257
|
-
async getFavorites(data, options) {
|
|
258
|
-
return await this.client.call({ path: `/favorite/all/${data.page}`, queryParams: { sort: data.sort, filter: data.filter, filter_announce: data.filter_announce }, ...options });
|
|
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
|
-
*/
|
|
274
|
-
async getSubsciptions(page, options) {
|
|
275
|
-
return await this.client.call({ path: `/channel/subscription/all/${page}`, ...options });
|
|
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
|
-
*/
|
|
290
|
-
async getSubscriptionCount(options) {
|
|
291
|
-
return await this.client.call({ path: `/channel/subscription/count`, ...options });
|
|
292
|
-
}
|
|
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) {
|
|
310
|
-
return await this.client.call({ path: `/profile/vote/release/voted/${id}/${page}`, queryParams: { sort }, ...options });
|
|
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
|
-
}
|
|
436
|
-
}
|
|
437
|
-
exports.Profile = Profile;
|
package/dist/api/release.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Anixart } from "../client";
|
|
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
|
-
/**
|
|
4
|
-
* Класс релиза
|
|
5
|
-
*
|
|
6
|
-
* TODO: notification
|
|
7
|
-
*/
|
|
8
|
-
export declare class Release {
|
|
9
|
-
private readonly client;
|
|
10
|
-
constructor(client: Anixart);
|
|
11
|
-
info(id: number, extended?: boolean, options?: IBaseApiParams): Promise<IReleaseResponse>;
|
|
12
|
-
addVote(id: number, vote: 1 | 2 | 3 | 4 | 5, options?: IBaseApiParams): Promise<IResponse>;
|
|
13
|
-
removeVote(id: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
14
|
-
getComments(data: ICommentReleaseRequest, options?: IBaseApiParams): Promise<IPageableResponse<ICommentRelease>>;
|
|
15
|
-
addComment(id: number, data: IBaseCommentAddRequest, options?: IBaseApiParams): Promise<ICommentReleaseResponse>;
|
|
16
|
-
voteComment(id: number, vote: VoteType, 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
|
-
getCommentReplies(data: ICommentRepliesRequest, options?: IBaseApiParams): Promise<IPageableResponse<ICommentRelease>>;
|
|
20
|
-
getRelatedReleases(id: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<IRelease>>;
|
|
21
|
-
getVideos(id: number, options?: IBaseApiParams): Promise<IVideoResponse>;
|
|
22
|
-
getVideoInCategory(data: IVideoReleaseInCategoryRequest, options?: IBaseApiParams): Promise<IPageableResponse<IVideo>>;
|
|
23
|
-
getDubbers(id: number, options?: IBaseApiParams): Promise<IDubbersResponse>;
|
|
24
|
-
getDubberSources(id: number, dubberId: number, options?: IBaseApiParams): Promise<ISourcesResponse>;
|
|
25
|
-
getEpisodes(id: number, dubberId: number, sourceId: number, sort?: number, options?: IBaseApiParams): Promise<IEpisodesResponse>;
|
|
26
|
-
getEpisode(id: number, sourceId: number, episodePosition: number, options?: IBaseApiParams): Promise<IEpisodeResponse>;
|
|
27
|
-
getRandomRelease(extended?: boolean, options?: IBaseApiParams): Promise<IReleaseResponse>;
|
|
28
|
-
markEpisodeAsWatched(id: number, sourceId: number, episodePosition: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
29
|
-
unmarkEpisodeAsWatched(id: number, sourceId: number, episodePosition: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
30
|
-
addToHistory(id: number, sourceId: number, episodePosition: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
31
|
-
removeFromHistory(id: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
32
|
-
getHistory(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IRelease>>;
|
|
33
|
-
filter(page: number, data: IReleaseFilterRequest, extended?: boolean, options?: IBaseApiParams): Promise<IPageableResponse<IRelease>>;
|
|
34
|
-
addFavorite(id: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
35
|
-
removeFavorite(id: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
36
|
-
addToProfileList(id: number, type: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
37
|
-
removeFromProfileList(id: number, type: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
38
|
-
getStreaming(id: number, options?: IBaseApiParams): Promise<IPageableResponse<IVideoStreamingPlatform>>;
|
|
39
|
-
getCommentVotes(id: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<IProfileShort>>;
|
|
40
|
-
getEpisodeUpdates(id: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<ILastEpisodeUpdate>>;
|
|
41
|
-
}
|
package/dist/api/release.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Release = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Класс релиза
|
|
6
|
-
*
|
|
7
|
-
* TODO: notification
|
|
8
|
-
*/
|
|
9
|
-
class Release {
|
|
10
|
-
constructor(client) {
|
|
11
|
-
this.client = client;
|
|
12
|
-
}
|
|
13
|
-
async info(id, extended = true, options) {
|
|
14
|
-
return await this.client.call({ path: `/release/${id}`, queryParams: { extended_mode: extended }, ...options });
|
|
15
|
-
}
|
|
16
|
-
async addVote(id, vote, options) {
|
|
17
|
-
return await this.client.call({ path: `/release/vote/add/${id}/${vote}`, ...options });
|
|
18
|
-
}
|
|
19
|
-
async removeVote(id, options) {
|
|
20
|
-
return await this.client.call({ path: `/release/vote/delete/${id}`, ...options });
|
|
21
|
-
}
|
|
22
|
-
async getComments(data, options) {
|
|
23
|
-
return this.client.call({ path: `/release/comment/all/${data.id}/${data.page}`, queryParams: { sort: data.sort }, ...options });
|
|
24
|
-
}
|
|
25
|
-
async addComment(id, data, options) {
|
|
26
|
-
return await this.client.call({ path: `/release/comment/add/${id}`, json: data, ...options });
|
|
27
|
-
}
|
|
28
|
-
async voteComment(id, vote, options) {
|
|
29
|
-
return await this.client.call({ path: `/release/comment/vote/${id}/${vote}`, ...options });
|
|
30
|
-
}
|
|
31
|
-
async removeComment(id, options) {
|
|
32
|
-
return await this.client.call({ path: `/release/comment/delete/${id}`, ...options });
|
|
33
|
-
}
|
|
34
|
-
async editComment(id, message, spoiler, options) {
|
|
35
|
-
return await this.client.call({ path: `/release/comment/edit/${id}`, json: { message, spoiler }, ...options });
|
|
36
|
-
}
|
|
37
|
-
async getCommentReplies(data, options) {
|
|
38
|
-
return await this.client.call({ path: `/release/comment/replies/${data.id}/${data.page}`, queryParams: { sort: data.sort }, ...options });
|
|
39
|
-
}
|
|
40
|
-
async getRelatedReleases(id, page, options) {
|
|
41
|
-
return await this.client.call({ path: `/related/${id}/${page}`, apiV2: true, ...options });
|
|
42
|
-
}
|
|
43
|
-
async getVideos(id, options) {
|
|
44
|
-
return await this.client.call({ path: `/video/release/${id}`, ...options });
|
|
45
|
-
}
|
|
46
|
-
async getVideoInCategory(data, options) {
|
|
47
|
-
return await this.client.call({ path: `/video/release/${data.id}/category/${data.categoryId}/${data.page}`, ...options });
|
|
48
|
-
}
|
|
49
|
-
async getDubbers(id, options) {
|
|
50
|
-
return await this.client.call({ path: `/episode/${id}`, ...options });
|
|
51
|
-
}
|
|
52
|
-
async getDubberSources(id, dubberId, options) {
|
|
53
|
-
return await this.client.call({ path: `/episode/${id}/${dubberId}`, ...options });
|
|
54
|
-
}
|
|
55
|
-
async getEpisodes(id, dubberId, sourceId, sort = 1, options) {
|
|
56
|
-
return await this.client.call({ path: `/episode/${id}/${dubberId}/${sourceId}`, queryParams: { sort }, ...options });
|
|
57
|
-
}
|
|
58
|
-
async getEpisode(id, sourceId, episodePosition, options) {
|
|
59
|
-
return await this.client.call({ path: `/episode/target/${id}/${sourceId}/${episodePosition}`, ...options });
|
|
60
|
-
}
|
|
61
|
-
async getRandomRelease(extended, options) {
|
|
62
|
-
return await this.client.call({ path: `/release/random`, queryParams: { extended_mode: extended !== null && extended !== void 0 ? extended : true }, ...options });
|
|
63
|
-
}
|
|
64
|
-
async markEpisodeAsWatched(id, sourceId, episodePosition, options) {
|
|
65
|
-
return await this.client.call({ path: `/episode/watch/${id}/${sourceId}/${episodePosition}`, ...options });
|
|
66
|
-
}
|
|
67
|
-
async unmarkEpisodeAsWatched(id, sourceId, episodePosition, options) {
|
|
68
|
-
return await this.client.call({ path: `/episode/unwatch/${id}/${sourceId}/${episodePosition}`, ...options });
|
|
69
|
-
}
|
|
70
|
-
async addToHistory(id, sourceId, episodePosition, options) {
|
|
71
|
-
return await this.client.call({ path: `/history/add/${id}/${sourceId}/${episodePosition}`, ...options });
|
|
72
|
-
}
|
|
73
|
-
async removeFromHistory(id, options) {
|
|
74
|
-
return await this.client.call({ path: `/history/delete/${id}`, ...options });
|
|
75
|
-
}
|
|
76
|
-
async getHistory(page, options) {
|
|
77
|
-
return await this.client.call({ path: `/history/${page}`, ...options });
|
|
78
|
-
}
|
|
79
|
-
async filter(page, data, extended, options) {
|
|
80
|
-
return await this.client.call({ path: `/filter/${page}`, queryParams: { extended_mode: extended !== null && extended !== void 0 ? extended : true }, json: data, ...options });
|
|
81
|
-
}
|
|
82
|
-
async addFavorite(id, options) {
|
|
83
|
-
return await this.client.call({ path: `/favorite/add/${id}`, ...options });
|
|
84
|
-
}
|
|
85
|
-
async removeFavorite(id, options) {
|
|
86
|
-
return await this.client.call({ path: `/favorite/delete/${id}`, ...options });
|
|
87
|
-
}
|
|
88
|
-
async addToProfileList(id, type, options) {
|
|
89
|
-
return await this.client.call({ path: `/profile/list/add/${type}/${id}`, ...options });
|
|
90
|
-
}
|
|
91
|
-
async removeFromProfileList(id, type, options) {
|
|
92
|
-
return await this.client.call({ path: `/profile/list/delete/${type}/${id}`, ...options });
|
|
93
|
-
}
|
|
94
|
-
async getStreaming(id, options) {
|
|
95
|
-
return await this.client.call({ path: `/release/streaming/platform/${id}`, ...options });
|
|
96
|
-
}
|
|
97
|
-
async getCommentVotes(id, page, options) {
|
|
98
|
-
return await this.client.call({ path: `/release/comment/votes/${id}/${page}`, ...options });
|
|
99
|
-
}
|
|
100
|
-
async getEpisodeUpdates(id, page, options) {
|
|
101
|
-
return await this.client.call({ path: `/episode/updates/${id}/${page}`, ...options });
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
exports.Release = Release;
|
package/dist/api/settings.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Anixart } from "../client";
|
|
2
|
-
import { IBadgesResponse, IEmailChangeConfirmResponse, IEmailChangeRequest, ILoginInfoResponse, INewLogin, IProfileSettingsResponse, PrivacyFriendRequestState, PrivacyState, ISocialResponse, IBaseApiParams, IPageableResponse, IResponse, IPasswordChangeResponse, SocialEditResult, ChangeEmailResult, ChangeLoginResult } from "../types";
|
|
3
|
-
export declare class Settings {
|
|
4
|
-
private readonly client;
|
|
5
|
-
constructor(client: Anixart);
|
|
6
|
-
getCurrentProfileSettings(options?: IBaseApiParams): Promise<IProfileSettingsResponse>;
|
|
7
|
-
getBadges(page: number, options?: IBaseApiParams): Promise<IBadgesResponse>;
|
|
8
|
-
editBadge(id: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
9
|
-
removeBadge(options?: IBaseApiParams): Promise<IResponse>;
|
|
10
|
-
setStatus(status: string, options?: IBaseApiParams): Promise<IResponse>;
|
|
11
|
-
getSocial(options?: IBaseApiParams): Promise<ISocialResponse>;
|
|
12
|
-
setSocial(data: ISocialResponse, options?: IBaseApiParams): Promise<IResponse<SocialEditResult>>;
|
|
13
|
-
confirmChangeEmail(currentPassword: string, options?: IBaseApiParams): Promise<IEmailChangeConfirmResponse>;
|
|
14
|
-
changeEmail(data: IEmailChangeRequest, options?: IBaseApiParams): Promise<IResponse<ChangeEmailResult>>;
|
|
15
|
-
changePassword(currentPassword: string, newPassword: string, options?: IBaseApiParams): Promise<IPasswordChangeResponse>;
|
|
16
|
-
getLoginInfo(options?: IBaseApiParams): Promise<ILoginInfoResponse>;
|
|
17
|
-
getLoginHistory(id: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<INewLogin>>;
|
|
18
|
-
changeLogin(newLogin: string, options?: IBaseApiParams): Promise<IResponse<ChangeLoginResult>>;
|
|
19
|
-
setCommentNotification(options?: IBaseApiParams): Promise<IResponse>;
|
|
20
|
-
setCollectionCommentNotification(options?: IBaseApiParams): Promise<IResponse>;
|
|
21
|
-
setReportProgressNotification(options?: IBaseApiParams): Promise<IResponse>;
|
|
22
|
-
setRelatedReleaseNotification(options?: IBaseApiParams): Promise<IResponse>;
|
|
23
|
-
setEpisodeNotification(options?: IBaseApiParams): Promise<IResponse>;
|
|
24
|
-
setStatusNotification(options?: IBaseApiParams): Promise<IResponse>;
|
|
25
|
-
setPrivacyStats(state: PrivacyState, options?: IBaseApiParams): Promise<IResponse>;
|
|
26
|
-
setPrivacyCounts(state: PrivacyState, options?: IBaseApiParams): Promise<IResponse>;
|
|
27
|
-
setPrivacySocial(state: PrivacyState, options?: IBaseApiParams): Promise<IResponse>;
|
|
28
|
-
setPrivacyFriendRequests(state: PrivacyFriendRequestState, options?: IBaseApiParams): Promise<IResponse>;
|
|
29
|
-
}
|