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.
- package/LICENSE +339 -0
- package/README.md +165 -0
- package/dist/api/auth.d.ts +129 -0
- package/dist/api/auth.js +156 -0
- package/dist/api/bookmarks/export.d.ts +19 -0
- package/dist/api/bookmarks/export.js +24 -0
- package/dist/api/bookmarks/import.d.ts +29 -0
- package/dist/api/bookmarks/import.js +36 -0
- package/dist/api/bookmarks/index.d.ts +2 -0
- package/dist/api/bookmarks/index.js +18 -0
- package/dist/api/channel/article.d.ts +119 -0
- package/dist/api/channel/article.js +144 -0
- package/dist/api/channel/articleComment.d.ts +119 -0
- package/dist/api/channel/articleComment.js +144 -0
- package/dist/api/channel/articleSuggestion.d.ts +69 -0
- package/dist/api/channel/articleSuggestion.js +84 -0
- package/dist/api/channel/channel.d.ts +249 -0
- package/dist/api/channel/channel.js +300 -0
- package/dist/api/channel/index.d.ts +4 -0
- package/dist/api/channel/index.js +20 -0
- package/dist/api/collection/collection.d.ts +59 -0
- package/dist/api/collection/collection.js +72 -0
- package/dist/api/collection/collectionComment.d.ts +109 -0
- package/dist/api/collection/collectionComment.js +132 -0
- package/dist/api/collection/collectionFavorite.d.ts +39 -0
- package/dist/api/collection/collectionFavorite.js +48 -0
- package/dist/api/collection/collectionMy.d.ts +69 -0
- package/dist/api/collection/collectionMy.js +84 -0
- package/dist/api/collection/index.d.ts +4 -0
- package/dist/api/collection/index.js +20 -0
- package/dist/api/config.d.ts +29 -0
- package/dist/api/config.js +36 -0
- package/dist/api/discover.d.ts +59 -0
- package/dist/api/discover.js +72 -0
- package/dist/api/feed.d.ts +39 -0
- package/dist/api/feed.js +48 -0
- package/dist/api/index.d.ts +12 -0
- package/dist/api/index.js +28 -0
- package/dist/api/notification/index.d.ts +2 -0
- package/dist/api/notification/index.js +18 -0
- package/dist/api/notification/notification.d.ts +199 -0
- package/dist/api/notification/notification.js +240 -0
- package/dist/api/notification/notificationPreference.d.ts +159 -0
- package/dist/api/notification/notificationPreference.js +192 -0
- package/dist/api/profile/index.d.ts +10 -0
- package/dist/api/profile/index.js +26 -0
- package/dist/api/profile/profile.d.ts +65 -0
- package/dist/api/profile/profile.js +80 -0
- package/dist/api/profile/profileBadge.d.ts +39 -0
- package/dist/api/profile/profileBadge.js +48 -0
- package/dist/api/profile/profileBlockList.d.ts +39 -0
- package/dist/api/profile/profileBlockList.js +48 -0
- package/dist/api/profile/profileDeletion.d.ts +39 -0
- package/dist/api/profile/profileDeletion.js +48 -0
- package/dist/api/profile/profileFriend.d.ts +99 -0
- package/dist/api/profile/profileFriend.js +120 -0
- package/dist/api/profile/profileHealth.d.ts +59 -0
- package/dist/api/profile/profileHealth.js +72 -0
- package/dist/api/profile/profileList.d.ts +49 -0
- package/dist/api/profile/profileList.js +60 -0
- package/dist/api/profile/profilePreference.d.ts +239 -0
- package/dist/api/profile/profilePreference.js +288 -0
- package/dist/api/profile/profileReleaseVote.d.ts +39 -0
- package/dist/api/profile/profileReleaseVote.js +48 -0
- package/dist/api/profile/profileRoleList.d.ts +19 -0
- package/dist/api/profile/profileRoleList.js +24 -0
- package/dist/api/release/episode.d.ts +99 -0
- package/dist/api/release/episode.js +120 -0
- package/dist/api/release/favorite.d.ts +39 -0
- package/dist/api/release/favorite.js +48 -0
- package/dist/api/release/filter.d.ts +19 -0
- package/dist/api/release/filter.js +24 -0
- package/dist/api/release/history.d.ts +39 -0
- package/dist/api/release/history.js +48 -0
- package/dist/api/release/index.d.ts +13 -0
- package/dist/api/release/index.js +29 -0
- package/dist/api/release/related.d.ts +19 -0
- package/dist/api/release/related.js +24 -0
- package/dist/api/release/release.d.ts +79 -0
- package/dist/api/release/release.js +96 -0
- package/dist/api/release/releaseComment.d.ts +109 -0
- package/dist/api/release/releaseComment.js +132 -0
- package/dist/api/release/releaseStreamingPlatform.d.ts +19 -0
- package/dist/api/release/releaseStreamingPlatform.js +24 -0
- package/dist/api/release/releaseVideo.d.ts +59 -0
- package/dist/api/release/releaseVideo.js +72 -0
- package/dist/api/release/releaseVideoAppeal.d.ts +49 -0
- package/dist/api/release/releaseVideoAppeal.js +60 -0
- package/dist/api/release/releaseVideoFavorite.d.ts +39 -0
- package/dist/api/release/releaseVideoFavorite.js +48 -0
- package/dist/api/release/schedule.d.ts +19 -0
- package/dist/api/release/schedule.js +24 -0
- package/dist/api/release/type.d.ts +39 -0
- package/dist/api/release/type.js +48 -0
- package/dist/api/report.d.ts +189 -0
- package/dist/api/report.js +228 -0
- package/dist/api/search.d.ts +129 -0
- package/dist/api/search.js +156 -0
- package/dist/classes/Article.d.ts +18 -0
- package/dist/classes/Article.js +44 -0
- package/dist/classes/ArticleComment.d.ts +15 -0
- package/dist/classes/ArticleComment.js +37 -0
- package/dist/classes/BaseArticle.d.ts +21 -0
- package/dist/classes/BaseArticle.js +23 -0
- package/dist/classes/BaseComment.d.ts +22 -0
- package/dist/classes/BaseComment.js +25 -0
- package/dist/classes/BaseProfile.d.ts +29 -0
- package/dist/classes/BaseProfile.js +52 -0
- package/dist/classes/Channel.d.ts +47 -0
- package/dist/classes/Channel.js +108 -0
- package/dist/classes/Collection.d.ts +29 -0
- package/dist/classes/Collection.js +58 -0
- package/dist/classes/Dubber.d.ts +19 -0
- package/dist/classes/Dubber.js +24 -0
- package/dist/classes/Episode.d.ts +20 -0
- package/dist/classes/Episode.js +30 -0
- package/dist/classes/FullProfile.d.ts +70 -0
- package/dist/classes/FullProfile.js +92 -0
- package/dist/classes/Release.d.ts +91 -0
- package/dist/classes/Release.js +150 -0
- package/dist/classes/ReleaseComment.d.ts +16 -0
- package/dist/classes/ReleaseComment.js +45 -0
- package/dist/classes/Source.d.ts +15 -0
- package/dist/classes/Source.js +20 -0
- package/dist/classes/SuggestionArticle.d.ts +14 -0
- package/dist/classes/SuggestionArticle.js +30 -0
- package/dist/client.d.ts +49 -0
- package/dist/client.js +183 -0
- package/dist/endpoints.d.ts +63 -0
- package/dist/endpoints.js +67 -0
- package/dist/errors.d.ts +37 -0
- package/dist/errors.js +122 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +23 -0
- package/dist/types/auth.d.ts +127 -0
- package/dist/types/auth.js +47 -0
- package/dist/types/channel.d.ts +350 -0
- package/dist/types/channel.js +104 -0
- package/dist/types/collection.d.ts +105 -0
- package/dist/types/collection.js +44 -0
- package/dist/types/config.d.ts +41 -0
- package/dist/types/config.js +4 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.js +26 -0
- package/dist/types/notification.d.ts +81 -0
- package/dist/types/notification.js +2 -0
- package/dist/types/profile.d.ts +339 -0
- package/dist/types/profile.js +46 -0
- package/dist/types/release.d.ts +467 -0
- package/dist/types/release.js +39 -0
- package/dist/types/request.d.ts +138 -0
- package/dist/types/request.js +2 -0
- package/dist/types/response.d.ts +104 -0
- package/dist/types/response.js +35 -0
- package/dist/types/settings.d.ts +119 -0
- package/dist/types/settings.js +48 -0
- package/dist/utils/ArticleBuilder.d.ts +38 -0
- package/dist/utils/ArticleBuilder.js +144 -0
- package/dist/utils/LinkParser.d.ts +253 -0
- package/dist/utils/LinkParser.js +253 -0
- package/dist/utils/Utils.d.ts +3 -0
- package/dist/utils/Utils.js +11 -0
- package/docs/DOCUMENTATION.md +290 -0
- package/package.json +55 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Release = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
const Collection_1 = require("./Collection");
|
|
6
|
+
const Dubber_1 = require("./Dubber");
|
|
7
|
+
const ReleaseComment_1 = require("./ReleaseComment");
|
|
8
|
+
class Release {
|
|
9
|
+
constructor(client, releaseResponse) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
this.client = client;
|
|
12
|
+
this.id = releaseResponse.id;
|
|
13
|
+
this.poster = releaseResponse.poster;
|
|
14
|
+
this.image = releaseResponse.image;
|
|
15
|
+
this.year = releaseResponse.year;
|
|
16
|
+
this.genres = releaseResponse.genres;
|
|
17
|
+
this.country = releaseResponse.country;
|
|
18
|
+
this.director = releaseResponse.director;
|
|
19
|
+
this.author = releaseResponse.author;
|
|
20
|
+
this.translators = releaseResponse.translators;
|
|
21
|
+
this.studio = releaseResponse.studio;
|
|
22
|
+
this.description = releaseResponse.description;
|
|
23
|
+
this.note = releaseResponse.note;
|
|
24
|
+
this.related = releaseResponse.related;
|
|
25
|
+
this.category = releaseResponse.category;
|
|
26
|
+
this.rating = releaseResponse.rating;
|
|
27
|
+
this.grade = releaseResponse.grade;
|
|
28
|
+
this.status = releaseResponse.status;
|
|
29
|
+
this.duration = releaseResponse.duration;
|
|
30
|
+
this.season = releaseResponse.season;
|
|
31
|
+
this.broadcast = releaseResponse.broadcast;
|
|
32
|
+
this.screenshots = releaseResponse.screenshots;
|
|
33
|
+
this.comments = releaseResponse.comments;
|
|
34
|
+
this.titleOriginal = releaseResponse.title_original;
|
|
35
|
+
this.titleRu = releaseResponse.title_ru;
|
|
36
|
+
this.titleAlt = releaseResponse.title_alt;
|
|
37
|
+
this.episodesReleased = releaseResponse.episodes_released;
|
|
38
|
+
this.episodesTotal = releaseResponse.episodes_total;
|
|
39
|
+
this.releaseDate = releaseResponse.release_date;
|
|
40
|
+
this.vote1Count = releaseResponse.vote_1_count;
|
|
41
|
+
this.vote2Count = releaseResponse.vote_2_count;
|
|
42
|
+
this.vote3Count = releaseResponse.vote_3_count;
|
|
43
|
+
this.vote4Count = releaseResponse.vote_4_count;
|
|
44
|
+
this.vote5Count = releaseResponse.vote_5_count;
|
|
45
|
+
this.voteCount = releaseResponse.vote_count;
|
|
46
|
+
this.creationDate = new Date(releaseResponse.creation_date * 1000);
|
|
47
|
+
this.lastUpdateDate = new Date(releaseResponse.last_update_date * 1000);
|
|
48
|
+
this.airedOnDate = releaseResponse.aired_on_date;
|
|
49
|
+
this.favoritesCount = releaseResponse.favorites_count;
|
|
50
|
+
this.watchingCount = releaseResponse.watching_count;
|
|
51
|
+
this.planCount = releaseResponse.plan_count;
|
|
52
|
+
this.completedCount = releaseResponse.completed_count;
|
|
53
|
+
this.holdOnCount = releaseResponse.hold_on_count;
|
|
54
|
+
this.droppedCount = releaseResponse.dropped_count;
|
|
55
|
+
this.isAdult = releaseResponse.is_adult;
|
|
56
|
+
this.isPlayDisabled = releaseResponse.is_play_disabled;
|
|
57
|
+
this.isTppDisabled = releaseResponse.is_tpp_disabled;
|
|
58
|
+
this.canVideoAppeal = releaseResponse.can_video_appeal;
|
|
59
|
+
this.canTorlookSearch = releaseResponse.can_torlook_search;
|
|
60
|
+
this.isDeleted = releaseResponse.is_deleted;
|
|
61
|
+
this.ageRating = releaseResponse.age_rating;
|
|
62
|
+
this.yourVote = releaseResponse.your_vote;
|
|
63
|
+
this.relatedCount = releaseResponse.related_count;
|
|
64
|
+
this.commentCount = releaseResponse.comment_count;
|
|
65
|
+
this.commentsCount = releaseResponse.comments_count;
|
|
66
|
+
this.collectionCount = releaseResponse.collection_count;
|
|
67
|
+
this.profileListStatus = releaseResponse.profile_list_status;
|
|
68
|
+
this.statusId = releaseResponse.status_id;
|
|
69
|
+
this.lastViewTimestamp = releaseResponse.last_view_timestamp;
|
|
70
|
+
this.lastViewEpisode = releaseResponse.last_view_episode;
|
|
71
|
+
this.isViewed = releaseResponse.is_viewed;
|
|
72
|
+
this.isFavorite = releaseResponse.is_favorite;
|
|
73
|
+
this.isViewBlocked = releaseResponse.is_view_blocked;
|
|
74
|
+
this.screenshotImages = releaseResponse.screenshot_images;
|
|
75
|
+
this.relatedReleases = (_a = releaseResponse.related_releases) === null || _a === void 0 ? void 0 : _a.map(release => new Release(this.client, release));
|
|
76
|
+
this.recommendedReleases = (_b = releaseResponse.recommended_releases) === null || _b === void 0 ? void 0 : _b.map(release => new Release(this.client, release));
|
|
77
|
+
this.episodeLastUpdate = releaseResponse.episode_last_update;
|
|
78
|
+
this.commentPerDayCount = releaseResponse.comment_per_day_count;
|
|
79
|
+
this.videoBanners = releaseResponse.video_banners;
|
|
80
|
+
this.profileReleaseTypeNotificationPreferenceCount = releaseResponse.profile_release_type_notification_preference_count;
|
|
81
|
+
this.isReleaseTypeNotificationsEnabled = releaseResponse.is_release_type_notifications_enabled;
|
|
82
|
+
}
|
|
83
|
+
writeProperties(prop, value) {
|
|
84
|
+
this[prop] = value;
|
|
85
|
+
}
|
|
86
|
+
async getDubbers() {
|
|
87
|
+
const request = await this.client.endpoints.episode.types(this.id);
|
|
88
|
+
return request.types.map(dubber => new Dubber_1.Dubber(this.client, dubber, this));
|
|
89
|
+
}
|
|
90
|
+
async removeFromHistory() {
|
|
91
|
+
const request = await this.client.endpoints.history.delete(this.id);
|
|
92
|
+
return request.code;
|
|
93
|
+
}
|
|
94
|
+
async setFavorite(favorite) {
|
|
95
|
+
const request = favorite ?
|
|
96
|
+
await this.client.endpoints.favorite.add(this.id) :
|
|
97
|
+
await this.client.endpoints.favorite.delete(this.id);
|
|
98
|
+
if (request.code == types_1.DefaultResult.Ok) {
|
|
99
|
+
this.writeProperties("isFavorite", favorite);
|
|
100
|
+
}
|
|
101
|
+
return request.code;
|
|
102
|
+
}
|
|
103
|
+
async addToList(type) {
|
|
104
|
+
const request = await this.client.endpoints.profileList.add(type, this.id);
|
|
105
|
+
if (request.code == types_1.DefaultResult.Ok) {
|
|
106
|
+
this.writeProperties("profileListStatus", type);
|
|
107
|
+
}
|
|
108
|
+
return request.code;
|
|
109
|
+
}
|
|
110
|
+
async removeFromList(type) {
|
|
111
|
+
const request = await this.client.endpoints.profileList.delete(type ? type : this.profileListStatus, this.id);
|
|
112
|
+
if (request.code == types_1.DefaultResult.Ok) {
|
|
113
|
+
this.writeProperties("profileListStatus", null);
|
|
114
|
+
}
|
|
115
|
+
return request.code;
|
|
116
|
+
}
|
|
117
|
+
async getRelatedReleases(page = 0) {
|
|
118
|
+
const request = await this.client.endpoints.related.related(this.related.id, page);
|
|
119
|
+
return request.code == types_1.DefaultResult.Ok ? request.content.map(release => new Release(this.client, release)) : null;
|
|
120
|
+
}
|
|
121
|
+
async getComments(page = 0, sort = 0) {
|
|
122
|
+
const request = await this.client.endpoints.releaseComment.comments(this.id, page, { sort });
|
|
123
|
+
return request.code == types_1.DefaultResult.Ok ? request.content.map(comment => new ReleaseComment_1.ReleaseComment(this.client, comment, this)) : null;
|
|
124
|
+
}
|
|
125
|
+
async addComment(data) {
|
|
126
|
+
const request = await this.client.endpoints.releaseComment.add(this.id, data);
|
|
127
|
+
if (request.code == types_1.DefaultResult.Ok) {
|
|
128
|
+
this.writeProperties("commentCount", this.commentCount + 1);
|
|
129
|
+
this.writeProperties("commentsCount", this.commentsCount + 1);
|
|
130
|
+
}
|
|
131
|
+
return request.code == types_1.DefaultResult.Ok ? new ReleaseComment_1.ReleaseComment(this.client, request.comment, this) : null;
|
|
132
|
+
}
|
|
133
|
+
async addVote(vote) {
|
|
134
|
+
const request = await this.client.endpoints.release.vote(this.id, vote);
|
|
135
|
+
if (request.code == types_1.DefaultResult.Ok) {
|
|
136
|
+
this.writeProperties("voteCount", this.voteCount + 1);
|
|
137
|
+
this.writeProperties("yourVote", vote);
|
|
138
|
+
}
|
|
139
|
+
return request.code;
|
|
140
|
+
}
|
|
141
|
+
async getCollections(page, sort = 0) {
|
|
142
|
+
const request = await this.client.endpoints.collection.releaseCollections(this.id, page, { sort });
|
|
143
|
+
return request.content.map(x => new Collection_1.Collection(this.client, x));
|
|
144
|
+
}
|
|
145
|
+
async addToCollection(id) {
|
|
146
|
+
const request = await this.client.endpoints.collectionMy.releaseAdd(id, { release_id: this.id });
|
|
147
|
+
return request.code;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.Release = Release;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Anixart } from '../client';
|
|
2
|
+
import { ICommentRelease, DefaultResult, VoteType, CommentDeleteResult, CommentEditResult } from '../types';
|
|
3
|
+
import { BaseComment } from './BaseComment';
|
|
4
|
+
import { BaseProfile } from './BaseProfile';
|
|
5
|
+
import { Release } from './Release';
|
|
6
|
+
export declare class ReleaseComment extends BaseComment {
|
|
7
|
+
readonly client: Anixart;
|
|
8
|
+
readonly release: Release;
|
|
9
|
+
constructor(client: Anixart, releaseComment: ICommentRelease, releaseClass?: Release);
|
|
10
|
+
private writeProperties;
|
|
11
|
+
getVotes(page?: number, sort?: number): Promise<BaseProfile[]>;
|
|
12
|
+
getReplies(page?: number, sort?: number): Promise<ReleaseComment[]>;
|
|
13
|
+
delete(): Promise<DefaultResult | CommentDeleteResult>;
|
|
14
|
+
setVote(type: VoteType): Promise<DefaultResult>;
|
|
15
|
+
edit(content: string, isSpoiler: boolean): Promise<DefaultResult | CommentEditResult>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReleaseComment = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
const BaseComment_1 = require("./BaseComment");
|
|
6
|
+
const BaseProfile_1 = require("./BaseProfile");
|
|
7
|
+
const Release_1 = require("./Release");
|
|
8
|
+
class ReleaseComment extends BaseComment_1.BaseComment {
|
|
9
|
+
constructor(client, releaseComment, releaseClass) {
|
|
10
|
+
super(client, releaseComment);
|
|
11
|
+
this.client = client;
|
|
12
|
+
this.release = releaseClass !== null && releaseClass !== void 0 ? releaseClass : new Release_1.Release(this.client, releaseComment.release);
|
|
13
|
+
}
|
|
14
|
+
writeProperties(prop, value) {
|
|
15
|
+
this[prop] = value;
|
|
16
|
+
}
|
|
17
|
+
async getVotes(page, sort) {
|
|
18
|
+
const request = await this.client.endpoints.releaseComment.votes(this.id, page !== null && page !== void 0 ? page : 0, { sort: sort !== null && sort !== void 0 ? sort : 2 });
|
|
19
|
+
return request.content.map(profile => new BaseProfile_1.BaseProfile(this.client, profile));
|
|
20
|
+
}
|
|
21
|
+
async getReplies(page, sort) {
|
|
22
|
+
const request = await this.client.endpoints.releaseComment.replies(this.id, page !== null && page !== void 0 ? page : 0, { sort: sort !== null && sort !== void 0 ? sort : 2 });
|
|
23
|
+
return request.content.map(comment => new ReleaseComment(this.client, comment));
|
|
24
|
+
}
|
|
25
|
+
async delete() {
|
|
26
|
+
const request = await this.client.endpoints.releaseComment.delete(this.id);
|
|
27
|
+
return request.code;
|
|
28
|
+
}
|
|
29
|
+
async setVote(type) {
|
|
30
|
+
const request = await this.client.endpoints.releaseComment.vote(this.id, type);
|
|
31
|
+
if (request.code == types_1.DefaultResult.Ok) {
|
|
32
|
+
this.writeProperties("vote", type == this.vote ? 0 : type);
|
|
33
|
+
}
|
|
34
|
+
return request.code;
|
|
35
|
+
}
|
|
36
|
+
async edit(content, isSpoiler) {
|
|
37
|
+
const request = await this.client.endpoints.releaseComment.edit(this.id, { message: content, spoiler: isSpoiler });
|
|
38
|
+
if (request.code == types_1.DefaultResult.Ok) {
|
|
39
|
+
this.writeProperties("message", content);
|
|
40
|
+
this.writeProperties("isSpoiler", isSpoiler);
|
|
41
|
+
}
|
|
42
|
+
return request.code;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ReleaseComment = ReleaseComment;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Anixart } from '../client';
|
|
2
|
+
import { IDubber, ISource } from '../types';
|
|
3
|
+
import { Dubber } from './Dubber';
|
|
4
|
+
import { Episode } from './Episode';
|
|
5
|
+
export declare class Source {
|
|
6
|
+
private readonly client;
|
|
7
|
+
readonly dubber: Dubber;
|
|
8
|
+
readonly localId: number;
|
|
9
|
+
readonly id: number;
|
|
10
|
+
readonly episodeCount: number;
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly type: IDubber | number;
|
|
13
|
+
constructor(client: Anixart, source: ISource, dubber: Dubber);
|
|
14
|
+
getEpisodes(sort?: number): Promise<Episode[]>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Source = void 0;
|
|
4
|
+
const Episode_1 = require("./Episode");
|
|
5
|
+
class Source {
|
|
6
|
+
constructor(client, source, dubber) {
|
|
7
|
+
this.client = client;
|
|
8
|
+
this.dubber = dubber;
|
|
9
|
+
this.localId = source['@id'];
|
|
10
|
+
this.id = source.id;
|
|
11
|
+
this.episodeCount = source.episode_count;
|
|
12
|
+
this.name = source.name;
|
|
13
|
+
this.type = source.type;
|
|
14
|
+
}
|
|
15
|
+
async getEpisodes(sort = 1) {
|
|
16
|
+
const request = await this.client.endpoints.episode.episodes(this.dubber.release.id, this.dubber.id, this.id, { sort });
|
|
17
|
+
return request.episodes.map(episode => new Episode_1.Episode(this.client, episode, this));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Source = Source;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Channel } from "./Channel";
|
|
2
|
+
import { Anixart } from "../client";
|
|
3
|
+
import { IArticle, DefaultResult, ArticleSuggestionDeleteResult } from "../types";
|
|
4
|
+
import { BaseArticle } from "./BaseArticle";
|
|
5
|
+
import { Article } from "./Article";
|
|
6
|
+
export declare class SuggestionArticle extends BaseArticle {
|
|
7
|
+
readonly client: Anixart;
|
|
8
|
+
readonly repostArticle: Article | null;
|
|
9
|
+
readonly channel: Channel;
|
|
10
|
+
constructor(client: Anixart, articleResponce: IArticle, channel?: Channel);
|
|
11
|
+
private writeProperties;
|
|
12
|
+
publish(): Promise<number | null>;
|
|
13
|
+
delete(): Promise<DefaultResult | ArticleSuggestionDeleteResult>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SuggestionArticle = void 0;
|
|
4
|
+
const Channel_1 = require("./Channel");
|
|
5
|
+
const types_1 = require("../types");
|
|
6
|
+
const BaseArticle_1 = require("./BaseArticle");
|
|
7
|
+
const Article_1 = require("./Article");
|
|
8
|
+
class SuggestionArticle extends BaseArticle_1.BaseArticle {
|
|
9
|
+
constructor(client, articleResponce, channel) {
|
|
10
|
+
super(client, articleResponce, channel);
|
|
11
|
+
this.client = client;
|
|
12
|
+
this.channel = channel !== null && channel !== void 0 ? channel : new Channel_1.Channel(this.client, articleResponce.channel);
|
|
13
|
+
this.repostArticle = articleResponce.repost_article
|
|
14
|
+
? new Article_1.Article(client, articleResponce.repost_article, channel)
|
|
15
|
+
: null;
|
|
16
|
+
}
|
|
17
|
+
writeProperties(prop, value) {
|
|
18
|
+
this[prop] = value;
|
|
19
|
+
}
|
|
20
|
+
async publish() {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const request = await this.client.endpoints.articleSuggestion.publish(this.id);
|
|
23
|
+
return request.code == types_1.DefaultResult.Ok ? (_b = (_a = request.article) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null : null;
|
|
24
|
+
}
|
|
25
|
+
async delete() {
|
|
26
|
+
const request = await this.client.endpoints.articleSuggestion.delete(this.id);
|
|
27
|
+
return request.code;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.SuggestionArticle = SuggestionArticle;
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ╔═══════════════════════════════════════════════════╗
|
|
3
|
+
* ║ AnixApi ║
|
|
4
|
+
* ║ https://github.com/Maks1mio/AnixApi ║
|
|
5
|
+
* ║ Licensed under GPL-2.0 License ║
|
|
6
|
+
* ║ by DesConnet ║
|
|
7
|
+
* ╚═══════════════════════════════════════════════════╝
|
|
8
|
+
*/
|
|
9
|
+
import { DefaultResult, IBaseRequest, IResponse, LoginResult } from "./types";
|
|
10
|
+
import { Endpoints } from "./endpoints";
|
|
11
|
+
import { Channel } from "./classes/Channel";
|
|
12
|
+
import { Article } from "./classes/Article";
|
|
13
|
+
import { FullProfile } from "./classes/FullProfile";
|
|
14
|
+
import { Release } from "./classes/Release";
|
|
15
|
+
import { Collection } from "./classes/Collection";
|
|
16
|
+
export interface IAnixartOptions {
|
|
17
|
+
baseUrl?: string | URL;
|
|
18
|
+
token?: string;
|
|
19
|
+
/** Бросать {@link AnixApiError} при code !== {@link DefaultResult.Ok} во всех запросах */
|
|
20
|
+
throwOnApiError?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface IAnixartEndpointUrls {
|
|
23
|
+
[key: string]: {
|
|
24
|
+
api_url: string;
|
|
25
|
+
should_use_mirror_urls: boolean;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Класс для работы с API Anixart
|
|
30
|
+
*/
|
|
31
|
+
export declare class Anixart {
|
|
32
|
+
readonly baseUrl: string | URL;
|
|
33
|
+
token?: string | null;
|
|
34
|
+
readonly throwOnApiError: boolean;
|
|
35
|
+
readonly endpoints: Endpoints;
|
|
36
|
+
constructor(options: IAnixartOptions);
|
|
37
|
+
static getEndpointUrls(): Promise<IAnixartEndpointUrls>;
|
|
38
|
+
getChannelById(id: number): Promise<Channel | null>;
|
|
39
|
+
getProfileById(id: number): Promise<FullProfile>;
|
|
40
|
+
getLatestFeed(page: number): Promise<Article[]>;
|
|
41
|
+
getRandomRelease(extended?: boolean): Promise<Release>;
|
|
42
|
+
getArticleById(id: number): Promise<Article | null>;
|
|
43
|
+
getReleaseById(id: number, extended?: boolean): Promise<Release | null>;
|
|
44
|
+
getCollectionById(id: number): Promise<Collection | null>;
|
|
45
|
+
getFavoriteCollections(page: number): Promise<Collection[]>;
|
|
46
|
+
getAllCollections(page: number, sort?: number): Promise<Collection[]>;
|
|
47
|
+
login(username: string, password: string): Promise<LoginResult | DefaultResult>;
|
|
48
|
+
call<TCode extends number = DefaultResult, T = IResponse<TCode>>(request: IBaseRequest): Promise<T>;
|
|
49
|
+
}
|
package/dist/client.js
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ╔═══════════════════════════════════════════════════╗
|
|
4
|
+
* ║ AnixApi ║
|
|
5
|
+
* ║ https://github.com/Maks1mio/AnixApi ║
|
|
6
|
+
* ║ Licensed under GPL-2.0 License ║
|
|
7
|
+
* ║ by DesConnet ║
|
|
8
|
+
* ╚═══════════════════════════════════════════════════╝
|
|
9
|
+
*/
|
|
10
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.Anixart = void 0;
|
|
15
|
+
const types_1 = require("./types");
|
|
16
|
+
const errors_1 = require("./errors");
|
|
17
|
+
const endpoints_1 = require("./endpoints");
|
|
18
|
+
const Channel_1 = require("./classes/Channel");
|
|
19
|
+
const Article_1 = require("./classes/Article");
|
|
20
|
+
const FullProfile_1 = require("./classes/FullProfile");
|
|
21
|
+
const Release_1 = require("./classes/Release");
|
|
22
|
+
const form_data_1 = __importDefault(require("form-data"));
|
|
23
|
+
const Collection_1 = require("./classes/Collection");
|
|
24
|
+
const DEFAULT_BASE_URL = 'https://api-s.anixsekai.com';
|
|
25
|
+
const USER_AGENT = "AnixartApp/9.0 BETA 7-25082901 (Android 9; SDK 28; x86_64; ROG ASUS AI2201_B; ru)";
|
|
26
|
+
const API_ENDPOINTS_URL = 'https://raw.githubusercontent.com/AnixHelper/pages/refs/heads/main/urls.json';
|
|
27
|
+
/**
|
|
28
|
+
* Класс для работы с API Anixart
|
|
29
|
+
*/
|
|
30
|
+
class Anixart {
|
|
31
|
+
constructor(options) {
|
|
32
|
+
var _a, _b, _c;
|
|
33
|
+
this.endpoints = new endpoints_1.Endpoints(this);
|
|
34
|
+
this.baseUrl = (_a = options === null || options === void 0 ? void 0 : options.baseUrl) !== null && _a !== void 0 ? _a : DEFAULT_BASE_URL;
|
|
35
|
+
this.token = (_b = options === null || options === void 0 ? void 0 : options.token) !== null && _b !== void 0 ? _b : null;
|
|
36
|
+
this.throwOnApiError = (_c = options === null || options === void 0 ? void 0 : options.throwOnApiError) !== null && _c !== void 0 ? _c : false;
|
|
37
|
+
}
|
|
38
|
+
static async getEndpointUrls() {
|
|
39
|
+
return await (await fetch(API_ENDPOINTS_URL)).json();
|
|
40
|
+
}
|
|
41
|
+
async getChannelById(id) {
|
|
42
|
+
const request = await this.endpoints.channel.channel(id);
|
|
43
|
+
return request.channel ? new Channel_1.Channel(this, request.channel) : null;
|
|
44
|
+
}
|
|
45
|
+
async getProfileById(id) {
|
|
46
|
+
const request = await this.endpoints.profile.byId(id);
|
|
47
|
+
return new FullProfile_1.FullProfile(this, request.profile);
|
|
48
|
+
}
|
|
49
|
+
async getLatestFeed(page) {
|
|
50
|
+
const request = await this.endpoints.feed.latestArticles(page);
|
|
51
|
+
return request.content.map(article => new Article_1.Article(this, article));
|
|
52
|
+
}
|
|
53
|
+
async getRandomRelease(extended = false) {
|
|
54
|
+
const request = await this.endpoints.release.random({ extended_mode: extended });
|
|
55
|
+
return new Release_1.Release(this, request.release);
|
|
56
|
+
}
|
|
57
|
+
async getArticleById(id) {
|
|
58
|
+
const request = await this.endpoints.article.article(id);
|
|
59
|
+
return request.article ? new Article_1.Article(this, request.article) : null;
|
|
60
|
+
}
|
|
61
|
+
async getReleaseById(id, extended = true) {
|
|
62
|
+
const request = await this.endpoints.release.release(id, { extended_mode: extended });
|
|
63
|
+
return request.release ? new Release_1.Release(this, request.release) : null;
|
|
64
|
+
}
|
|
65
|
+
async getCollectionById(id) {
|
|
66
|
+
const request = await this.endpoints.collection.collection(id);
|
|
67
|
+
return request.collection ? new Collection_1.Collection(this, request.collection) : null;
|
|
68
|
+
}
|
|
69
|
+
async getFavoriteCollections(page) {
|
|
70
|
+
const request = await this.endpoints.collectionFavorite.favorites(page);
|
|
71
|
+
return request.content.map(x => new Collection_1.Collection(this, x));
|
|
72
|
+
}
|
|
73
|
+
async getAllCollections(page, sort = 2) {
|
|
74
|
+
const request = await this.endpoints.collection.collections(page, { sort });
|
|
75
|
+
return request.content.map(x => new Collection_1.Collection(this, x));
|
|
76
|
+
}
|
|
77
|
+
async login(username, password) {
|
|
78
|
+
const request = await this.endpoints.auth.signIn({
|
|
79
|
+
login: username,
|
|
80
|
+
password
|
|
81
|
+
});
|
|
82
|
+
if (request.code == types_1.DefaultResult.Ok)
|
|
83
|
+
this.token = request.profileToken.token;
|
|
84
|
+
return request.code;
|
|
85
|
+
}
|
|
86
|
+
async call(request) {
|
|
87
|
+
var _a, _b, _c;
|
|
88
|
+
let data;
|
|
89
|
+
let httpStatus;
|
|
90
|
+
try {
|
|
91
|
+
let url = new URL(request.path, (_a = request.customBaseUrl) !== null && _a !== void 0 ? _a : this.baseUrl);
|
|
92
|
+
const headers = {
|
|
93
|
+
'User-Agent': USER_AGENT,
|
|
94
|
+
};
|
|
95
|
+
const requestInit = {
|
|
96
|
+
headers,
|
|
97
|
+
method: 'GET',
|
|
98
|
+
};
|
|
99
|
+
if (request.queryParams) {
|
|
100
|
+
for (const [key, value] of Object.entries(request.queryParams)) {
|
|
101
|
+
if (typeof (value) != 'undefined') {
|
|
102
|
+
url.searchParams.append(key, value);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if (request.token || this.token || request.bearer) {
|
|
107
|
+
request.bearer ? headers["Authorization"] = `Bearer ${request.bearer}` : url.searchParams.append('token', (_b = request.token) !== null && _b !== void 0 ? _b : this.token);
|
|
108
|
+
}
|
|
109
|
+
if (request.json || request.urlEncoded || request.image) {
|
|
110
|
+
requestInit.method = 'POST';
|
|
111
|
+
switch (true) {
|
|
112
|
+
case (request.json !== undefined):
|
|
113
|
+
headers['Content-Type'] = 'application/json';
|
|
114
|
+
requestInit.body = JSON.stringify(request.json);
|
|
115
|
+
break;
|
|
116
|
+
case (request.urlEncoded !== undefined):
|
|
117
|
+
headers['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
118
|
+
requestInit.body = new URLSearchParams(request.urlEncoded).toString();
|
|
119
|
+
break;
|
|
120
|
+
case (request.image !== null && request.image !== undefined):
|
|
121
|
+
const formData = new form_data_1.default();
|
|
122
|
+
formData.append(request.image.type, request.image.stream, {
|
|
123
|
+
filename: request.image.name
|
|
124
|
+
});
|
|
125
|
+
if (request.image.boundary) {
|
|
126
|
+
formData.setBoundary(request.image.boundary);
|
|
127
|
+
}
|
|
128
|
+
headers['Content-Length'] = String(formData.getLengthSync());
|
|
129
|
+
requestInit.body = new Uint8Array(formData.getBuffer());
|
|
130
|
+
requestInit.headers = formData.getHeaders(headers);
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (request.apiV2) {
|
|
135
|
+
headers['API-Version'] = 'v2';
|
|
136
|
+
}
|
|
137
|
+
if (request.method) {
|
|
138
|
+
requestInit.method = request.method;
|
|
139
|
+
}
|
|
140
|
+
const response = await fetch(url.toString(), requestInit);
|
|
141
|
+
httpStatus = response.status;
|
|
142
|
+
data = await response.text();
|
|
143
|
+
}
|
|
144
|
+
catch (error) {
|
|
145
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
146
|
+
throw new errors_1.AnixApiError({
|
|
147
|
+
message: `[AnixApi] ${request.path} network error: ${message}`,
|
|
148
|
+
path: request.path,
|
|
149
|
+
cause: error,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
if (data.trim() == "") {
|
|
153
|
+
throw new errors_1.AnixApiError({
|
|
154
|
+
message: `[AnixApi] ${request.path} empty response (HTTP ${httpStatus !== null && httpStatus !== void 0 ? httpStatus : "?"})`,
|
|
155
|
+
path: request.path,
|
|
156
|
+
httpStatus,
|
|
157
|
+
body: data,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
let parsed;
|
|
161
|
+
try {
|
|
162
|
+
parsed = JSON.parse(data);
|
|
163
|
+
}
|
|
164
|
+
catch (error) {
|
|
165
|
+
const preview = data.length > 200 ? `${data.slice(0, 200)}...` : data;
|
|
166
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
167
|
+
throw new errors_1.AnixApiError({
|
|
168
|
+
message: `[AnixApi] ${request.path} invalid JSON (HTTP ${httpStatus !== null && httpStatus !== void 0 ? httpStatus : "?"}): ${message}`,
|
|
169
|
+
path: request.path,
|
|
170
|
+
httpStatus,
|
|
171
|
+
body: preview,
|
|
172
|
+
cause: error,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
if (((_c = request.throwOnApiError) !== null && _c !== void 0 ? _c : this.throwOnApiError) &&
|
|
176
|
+
typeof parsed.code == "number" &&
|
|
177
|
+
parsed.code != types_1.DefaultResult.Ok) {
|
|
178
|
+
throw errors_1.AnixApiError.fromResponse(request.path, parsed);
|
|
179
|
+
}
|
|
180
|
+
return parsed;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
exports.Anixart = Anixart;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ╔══════════════════════════════════════════════════╗
|
|
3
|
+
* ║ AnixartJS ║
|
|
4
|
+
* ║ https://github.com/theDesConnet/AnixartJS ║
|
|
5
|
+
* ║ Licensed under GPL-2.0 License ║
|
|
6
|
+
* ║ by DesConnet ║
|
|
7
|
+
* ╚══════════════════════════════════════════════════╝
|
|
8
|
+
*
|
|
9
|
+
* ╔═══════════════════════════════════════════╗
|
|
10
|
+
* ║ модифицированно для AnixApi ║
|
|
11
|
+
* ║ Licensed under GPL-2.0 License ║
|
|
12
|
+
* ║ by Maks1mio ║
|
|
13
|
+
* ╚═══════════════════════════════════════════╝
|
|
14
|
+
*/
|
|
15
|
+
import { Article, ArticleComment, ArticleSuggestion, Auth, Channel, Collection, CollectionComment, CollectionFavorite, CollectionMy, Config, Discover, Episode, Export, Favorite, Feed, Filter, History, Import, Notification, NotificationPreference, Profile, ProfileBadge, ProfileBlockList, ProfileDeletion, ProfileFriend, ProfileHealth, ProfileList, ProfilePreference, ProfileReleaseVote, ProfileRoleList, Related, Release, ReleaseComment, ReleaseStreamingPlatform, ReleaseVideo, ReleaseVideoAppeal, ReleaseVideoFavorite, Report, Schedule, Search, Type } from "./api";
|
|
16
|
+
import { Anixart } from "./client";
|
|
17
|
+
export declare class Endpoints {
|
|
18
|
+
readonly client: Anixart;
|
|
19
|
+
readonly auth: Auth;
|
|
20
|
+
readonly config: Config;
|
|
21
|
+
readonly channel: Channel;
|
|
22
|
+
readonly article: Article;
|
|
23
|
+
readonly articleComment: ArticleComment;
|
|
24
|
+
readonly articleSuggestion: ArticleSuggestion;
|
|
25
|
+
readonly collection: Collection;
|
|
26
|
+
readonly collectionMy: CollectionMy;
|
|
27
|
+
readonly collectionFavorite: CollectionFavorite;
|
|
28
|
+
readonly collectionComment: CollectionComment;
|
|
29
|
+
readonly feed: Feed;
|
|
30
|
+
readonly discover: Discover;
|
|
31
|
+
readonly search: Search;
|
|
32
|
+
readonly profile: Profile;
|
|
33
|
+
readonly profileBadge: ProfileBadge;
|
|
34
|
+
readonly profileBlockList: ProfileBlockList;
|
|
35
|
+
readonly profileDeletion: ProfileDeletion;
|
|
36
|
+
readonly profileFriend: ProfileFriend;
|
|
37
|
+
readonly profileHealth: ProfileHealth;
|
|
38
|
+
readonly profileList: ProfileList;
|
|
39
|
+
readonly profilePreference: ProfilePreference;
|
|
40
|
+
readonly profileReleaseVote: ProfileReleaseVote;
|
|
41
|
+
readonly profileRoleList: ProfileRoleList;
|
|
42
|
+
readonly release: Release;
|
|
43
|
+
readonly episode: Episode;
|
|
44
|
+
readonly releaseComment: ReleaseComment;
|
|
45
|
+
readonly releaseVideo: ReleaseVideo;
|
|
46
|
+
readonly releaseVideoAppeal: ReleaseVideoAppeal;
|
|
47
|
+
readonly releaseVideoFavorite: ReleaseVideoFavorite;
|
|
48
|
+
readonly releaseStreamingPlatform: ReleaseStreamingPlatform;
|
|
49
|
+
readonly related: Related;
|
|
50
|
+
readonly filter: Filter;
|
|
51
|
+
readonly history: History;
|
|
52
|
+
readonly favorite: Favorite;
|
|
53
|
+
readonly schedule: Schedule;
|
|
54
|
+
readonly type: Type;
|
|
55
|
+
readonly notification: Notification;
|
|
56
|
+
readonly notificationPreference: NotificationPreference;
|
|
57
|
+
readonly export: Export;
|
|
58
|
+
readonly import: Import;
|
|
59
|
+
readonly report: Report;
|
|
60
|
+
/** @deprecated Используйте profilePreference */
|
|
61
|
+
get settings(): ProfilePreference;
|
|
62
|
+
constructor(client: Anixart);
|
|
63
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ╔══════════════════════════════════════════════════╗
|
|
4
|
+
* ║ AnixartJS ║
|
|
5
|
+
* ║ https://github.com/theDesConnet/AnixartJS ║
|
|
6
|
+
* ║ Licensed under GPL-2.0 License ║
|
|
7
|
+
* ║ by DesConnet ║
|
|
8
|
+
* ╚══════════════════════════════════════════════════╝
|
|
9
|
+
*
|
|
10
|
+
* ╔═══════════════════════════════════════════╗
|
|
11
|
+
* ║ модифицированно для AnixApi ║
|
|
12
|
+
* ║ Licensed under GPL-2.0 License ║
|
|
13
|
+
* ║ by Maks1mio ║
|
|
14
|
+
* ╚═══════════════════════════════════════════╝
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Endpoints = void 0;
|
|
18
|
+
const api_1 = require("./api");
|
|
19
|
+
class Endpoints {
|
|
20
|
+
/** @deprecated Используйте profilePreference */
|
|
21
|
+
get settings() { return this.profilePreference; }
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
this.auth = new api_1.Auth(client);
|
|
25
|
+
this.config = new api_1.Config(client);
|
|
26
|
+
this.channel = new api_1.Channel(client);
|
|
27
|
+
this.article = new api_1.Article(client);
|
|
28
|
+
this.articleComment = new api_1.ArticleComment(client);
|
|
29
|
+
this.articleSuggestion = new api_1.ArticleSuggestion(client);
|
|
30
|
+
this.collection = new api_1.Collection(client);
|
|
31
|
+
this.collectionMy = new api_1.CollectionMy(client);
|
|
32
|
+
this.collectionFavorite = new api_1.CollectionFavorite(client);
|
|
33
|
+
this.collectionComment = new api_1.CollectionComment(client);
|
|
34
|
+
this.feed = new api_1.Feed(client);
|
|
35
|
+
this.discover = new api_1.Discover(client);
|
|
36
|
+
this.search = new api_1.Search(client);
|
|
37
|
+
this.profile = new api_1.Profile(client);
|
|
38
|
+
this.profileBadge = new api_1.ProfileBadge(client);
|
|
39
|
+
this.profileBlockList = new api_1.ProfileBlockList(client);
|
|
40
|
+
this.profileDeletion = new api_1.ProfileDeletion(client);
|
|
41
|
+
this.profileFriend = new api_1.ProfileFriend(client);
|
|
42
|
+
this.profileHealth = new api_1.ProfileHealth(client);
|
|
43
|
+
this.profileList = new api_1.ProfileList(client);
|
|
44
|
+
this.profilePreference = new api_1.ProfilePreference(client);
|
|
45
|
+
this.profileReleaseVote = new api_1.ProfileReleaseVote(client);
|
|
46
|
+
this.profileRoleList = new api_1.ProfileRoleList(client);
|
|
47
|
+
this.release = new api_1.Release(client);
|
|
48
|
+
this.episode = new api_1.Episode(client);
|
|
49
|
+
this.releaseComment = new api_1.ReleaseComment(client);
|
|
50
|
+
this.releaseVideo = new api_1.ReleaseVideo(client);
|
|
51
|
+
this.releaseVideoAppeal = new api_1.ReleaseVideoAppeal(client);
|
|
52
|
+
this.releaseVideoFavorite = new api_1.ReleaseVideoFavorite(client);
|
|
53
|
+
this.releaseStreamingPlatform = new api_1.ReleaseStreamingPlatform(client);
|
|
54
|
+
this.related = new api_1.Related(client);
|
|
55
|
+
this.filter = new api_1.Filter(client);
|
|
56
|
+
this.history = new api_1.History(client);
|
|
57
|
+
this.favorite = new api_1.Favorite(client);
|
|
58
|
+
this.schedule = new api_1.Schedule(client);
|
|
59
|
+
this.type = new api_1.Type(client);
|
|
60
|
+
this.notification = new api_1.Notification(client);
|
|
61
|
+
this.notificationPreference = new api_1.NotificationPreference(client);
|
|
62
|
+
this.export = new api_1.Export(client);
|
|
63
|
+
this.import = new api_1.Import(client);
|
|
64
|
+
this.report = new api_1.Report(client);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.Endpoints = Endpoints;
|