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,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./response"), exports);
|
|
18
|
+
__exportStar(require("./profile"), exports);
|
|
19
|
+
__exportStar(require("./auth"), exports);
|
|
20
|
+
__exportStar(require("./request"), exports);
|
|
21
|
+
__exportStar(require("./release"), exports);
|
|
22
|
+
__exportStar(require("./settings"), exports);
|
|
23
|
+
__exportStar(require("./notification"), exports);
|
|
24
|
+
__exportStar(require("./collection"), exports);
|
|
25
|
+
__exportStar(require("./channel"), exports);
|
|
26
|
+
__exportStar(require("./config"), exports);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ICollectionCompactComment } from "./collection";
|
|
2
|
+
import { IProfile } from "./profile";
|
|
3
|
+
import { IRelease, IReleaseCompactComment } from "./release";
|
|
4
|
+
import { IResponse } from "./response";
|
|
5
|
+
export interface INotificationCountResponse extends IResponse {
|
|
6
|
+
count: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IBaseNotification {
|
|
9
|
+
id: number;
|
|
10
|
+
type: string;
|
|
11
|
+
timestamp: number;
|
|
12
|
+
is_pushed: boolean;
|
|
13
|
+
is_new: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface IFriendNotification extends IBaseNotification {
|
|
16
|
+
profile: IProfile;
|
|
17
|
+
status: string;
|
|
18
|
+
by_profile: IProfile;
|
|
19
|
+
}
|
|
20
|
+
export interface IArticleNotification extends IBaseNotification {
|
|
21
|
+
'@id': number;
|
|
22
|
+
article: number;
|
|
23
|
+
profile: IProfile;
|
|
24
|
+
}
|
|
25
|
+
export interface IRelatedReleaseNotification extends IBaseNotification {
|
|
26
|
+
'@id': number;
|
|
27
|
+
release: IRelease | number;
|
|
28
|
+
}
|
|
29
|
+
export interface IReleaseCommentNotification extends IBaseNotification {
|
|
30
|
+
parentComment: IReleaseCompactComment;
|
|
31
|
+
comment: IReleaseCompactComment;
|
|
32
|
+
}
|
|
33
|
+
export interface ICollectionCommentNotification extends IBaseNotification {
|
|
34
|
+
parentComment: ICollectionCompactComment;
|
|
35
|
+
comment: ICollectionCompactComment;
|
|
36
|
+
}
|
|
37
|
+
export interface IArticleCommentNotification extends IBaseNotification {
|
|
38
|
+
parentComment?: unknown;
|
|
39
|
+
comment?: unknown;
|
|
40
|
+
}
|
|
41
|
+
export interface IEpisodeNotification extends IBaseNotification {
|
|
42
|
+
release?: IRelease | number;
|
|
43
|
+
episode?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface INotificationPreferenceResponse extends IResponse {
|
|
46
|
+
preferences?: unknown;
|
|
47
|
+
}
|
|
48
|
+
export interface IProfileFriendNotification extends IBaseNotification {
|
|
49
|
+
by_profile?: IProfile;
|
|
50
|
+
value?: unknown;
|
|
51
|
+
}
|
|
52
|
+
export interface IProfileArticleNotification extends IBaseNotification {
|
|
53
|
+
}
|
|
54
|
+
export interface IProfileArticleCommentNotification extends IBaseNotification {
|
|
55
|
+
}
|
|
56
|
+
export interface IProfileMyArticleCommentNotification extends IBaseNotification {
|
|
57
|
+
}
|
|
58
|
+
export interface IProfileCollectionCommentNotification extends IBaseNotification {
|
|
59
|
+
}
|
|
60
|
+
export interface IProfileMyCollectionCommentNotification extends IBaseNotification {
|
|
61
|
+
}
|
|
62
|
+
export interface IProfileEpisodeNotification extends IBaseNotification {
|
|
63
|
+
}
|
|
64
|
+
export interface IProfileRelatedReleaseNotification extends IBaseNotification {
|
|
65
|
+
}
|
|
66
|
+
export interface IProfileReleaseCommentNotification extends IBaseNotification {
|
|
67
|
+
}
|
|
68
|
+
export interface IProfileReleaseTypeNotificationPreference {
|
|
69
|
+
}
|
|
70
|
+
export interface IProfileStatusNotificationPreference {
|
|
71
|
+
value?: unknown;
|
|
72
|
+
}
|
|
73
|
+
export interface IProfileTypeNotificationPreference {
|
|
74
|
+
}
|
|
75
|
+
export interface IApiSilentPush {
|
|
76
|
+
}
|
|
77
|
+
export interface ISilentPush {
|
|
78
|
+
type?: number;
|
|
79
|
+
}
|
|
80
|
+
export interface IUnsupportedProfileNotification {
|
|
81
|
+
}
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { IBaseComment, IResponse } from "./response";
|
|
2
|
+
import { IBaseRequestPageable } from "./request";
|
|
3
|
+
import { IRelease, IVideo, IVoteRelease } from "./release";
|
|
4
|
+
import { ICollection } from "./collection";
|
|
5
|
+
export declare enum BookmarkType {
|
|
6
|
+
Watching = 1,
|
|
7
|
+
InPlans = 2,
|
|
8
|
+
Completed = 3,
|
|
9
|
+
HoldOn = 4,
|
|
10
|
+
Dropped = 5
|
|
11
|
+
}
|
|
12
|
+
export declare enum BookmarkSortType {
|
|
13
|
+
NewToOldAddTime = 1,
|
|
14
|
+
OldToNewAddTime = 2,
|
|
15
|
+
NewToOldYear = 3,
|
|
16
|
+
OldToNewYear = 4,
|
|
17
|
+
AlpabetInAToZ = 5,
|
|
18
|
+
AlpabetInZToA = 6
|
|
19
|
+
}
|
|
20
|
+
export interface IBookmarkRequest extends IBaseRequestPageable {
|
|
21
|
+
filter_announce: number;
|
|
22
|
+
id: number;
|
|
23
|
+
type: BookmarkType;
|
|
24
|
+
sort: BookmarkSortType;
|
|
25
|
+
filter?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface IProfileToken {
|
|
28
|
+
id: string;
|
|
29
|
+
token: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ICommentPreview extends IBaseComment {
|
|
32
|
+
commentType: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IProfile {
|
|
35
|
+
id: number;
|
|
36
|
+
login: string;
|
|
37
|
+
avatar: string;
|
|
38
|
+
status: string;
|
|
39
|
+
sponsorshipExpires: number;
|
|
40
|
+
history: IRelease[];
|
|
41
|
+
votes: IVoteRelease[];
|
|
42
|
+
friends_preview: IProfileShort[];
|
|
43
|
+
collections_preview: ICollection[];
|
|
44
|
+
comments_preview: ICommentPreview[];
|
|
45
|
+
release_video_preview: IVideo[];
|
|
46
|
+
last_activity_time: number;
|
|
47
|
+
register_date: number;
|
|
48
|
+
vk_page: string;
|
|
49
|
+
tg_page: string;
|
|
50
|
+
inst_page: string;
|
|
51
|
+
tt_page: string;
|
|
52
|
+
discord_page: string;
|
|
53
|
+
ban_expires: number;
|
|
54
|
+
ban_reason: string;
|
|
55
|
+
privilege_level: number;
|
|
56
|
+
watching_count: number;
|
|
57
|
+
plan_count: number;
|
|
58
|
+
completed_count: number;
|
|
59
|
+
hold_on_count: number;
|
|
60
|
+
dropped_count: number;
|
|
61
|
+
favorite_count: number;
|
|
62
|
+
comment_count: number;
|
|
63
|
+
collection_count: number;
|
|
64
|
+
video_count: number;
|
|
65
|
+
friend_count: number;
|
|
66
|
+
subscription_count: number;
|
|
67
|
+
watched_episode_count: number;
|
|
68
|
+
watched_time: number;
|
|
69
|
+
pinned_section_id: number;
|
|
70
|
+
is_private: boolean;
|
|
71
|
+
is_sponsor: boolean;
|
|
72
|
+
is_banned: boolean;
|
|
73
|
+
is_incognito: boolean;
|
|
74
|
+
is_deleted: boolean;
|
|
75
|
+
is_deletion_requested: boolean;
|
|
76
|
+
is_perm_banned: boolean;
|
|
77
|
+
is_bookmarks_transferred: boolean;
|
|
78
|
+
is_sponsor_transferred: boolean;
|
|
79
|
+
is_vk_bound: boolean;
|
|
80
|
+
is_google_bound: boolean;
|
|
81
|
+
is_article_notifications_enabled: boolean;
|
|
82
|
+
is_release_type_notifications_enabled: boolean;
|
|
83
|
+
is_episode_notifications_enabled: boolean;
|
|
84
|
+
is_first_episode_notification_enabled: boolean;
|
|
85
|
+
is_related_release_notifications_enabled: boolean;
|
|
86
|
+
is_report_process_notifications_enabled: boolean;
|
|
87
|
+
is_comment_notifications_enabled: boolean;
|
|
88
|
+
is_my_collection_comment_notifications_enabled: boolean;
|
|
89
|
+
is_my_article_comment_notifications_enabled: boolean;
|
|
90
|
+
is_verified: boolean;
|
|
91
|
+
deletion_requested_at: number;
|
|
92
|
+
deletion_delete_at: number;
|
|
93
|
+
watch_dynamics: IWatchDynamics[];
|
|
94
|
+
friend_status: number | null;
|
|
95
|
+
rating_score: number;
|
|
96
|
+
is_blocked: boolean;
|
|
97
|
+
is_me_blocked: boolean;
|
|
98
|
+
is_stats_hidden: boolean;
|
|
99
|
+
is_counts_hidden: boolean;
|
|
100
|
+
is_social_hidden: boolean;
|
|
101
|
+
is_friend_requests_disallowed: boolean;
|
|
102
|
+
is_online: boolean;
|
|
103
|
+
roles: IRole[];
|
|
104
|
+
badge: IBadge | null;
|
|
105
|
+
preferred_genres: IPreferredType[];
|
|
106
|
+
preferred_audiences: IPreferredType[];
|
|
107
|
+
preferred_themes: IPreferredType[];
|
|
108
|
+
theme_enabled: boolean;
|
|
109
|
+
theme_gradient_start_color: string | null;
|
|
110
|
+
theme_gradient_end_color: string | null;
|
|
111
|
+
theme_gradient_angle: string | null;
|
|
112
|
+
theme_icon_res_name: string | null;
|
|
113
|
+
theme_icon_url: string | null;
|
|
114
|
+
theme_icon_color: string | null;
|
|
115
|
+
theme_icon_alpha: number;
|
|
116
|
+
theme_icon_destiny: string | null;
|
|
117
|
+
theme_icon_size: string | null;
|
|
118
|
+
theme_animation_enabled: boolean;
|
|
119
|
+
theme_animation_speed: string | null;
|
|
120
|
+
theme_background_url: string | null;
|
|
121
|
+
theme_background_mode: string | null;
|
|
122
|
+
theme_background_alpha: number | null;
|
|
123
|
+
}
|
|
124
|
+
export interface IPreferredType {
|
|
125
|
+
name: string;
|
|
126
|
+
percentage: number;
|
|
127
|
+
}
|
|
128
|
+
export interface IWatchDynamics {
|
|
129
|
+
id: number;
|
|
130
|
+
day: number;
|
|
131
|
+
count: number;
|
|
132
|
+
timestamp: number;
|
|
133
|
+
}
|
|
134
|
+
export interface IRole {
|
|
135
|
+
color: string;
|
|
136
|
+
name: string;
|
|
137
|
+
}
|
|
138
|
+
export interface IProfileCompact {
|
|
139
|
+
id: number;
|
|
140
|
+
login: string;
|
|
141
|
+
avatar: string;
|
|
142
|
+
}
|
|
143
|
+
export interface IProfileShort {
|
|
144
|
+
id: number;
|
|
145
|
+
login: string;
|
|
146
|
+
avatar: string;
|
|
147
|
+
ban_expires: number;
|
|
148
|
+
ban_reason: string;
|
|
149
|
+
privilege_level: number;
|
|
150
|
+
badge_id: number | null;
|
|
151
|
+
badge_name: string | null;
|
|
152
|
+
badge_type: number | null;
|
|
153
|
+
badge_url: string | null;
|
|
154
|
+
is_banned: boolean;
|
|
155
|
+
is_sponsor: boolean;
|
|
156
|
+
is_verified: boolean;
|
|
157
|
+
is_online: boolean;
|
|
158
|
+
friend_status: number | null;
|
|
159
|
+
friend_count: number;
|
|
160
|
+
}
|
|
161
|
+
export interface IProfileChannel {
|
|
162
|
+
id: number;
|
|
163
|
+
login: string;
|
|
164
|
+
avatar: string;
|
|
165
|
+
permission_creation_date: number;
|
|
166
|
+
permission: number;
|
|
167
|
+
badge_name: string | null;
|
|
168
|
+
badge_type: number | null;
|
|
169
|
+
badge_url: string | null;
|
|
170
|
+
is_blocked: boolean;
|
|
171
|
+
is_sponsor: boolean;
|
|
172
|
+
is_verified: boolean;
|
|
173
|
+
is_perm_blocked: boolean;
|
|
174
|
+
channel_id: number;
|
|
175
|
+
block_reason: string | null;
|
|
176
|
+
block_expire_date: number | null;
|
|
177
|
+
}
|
|
178
|
+
export interface IProfileResponse extends IResponse {
|
|
179
|
+
profile: IProfile;
|
|
180
|
+
is_my_profile: boolean;
|
|
181
|
+
}
|
|
182
|
+
export interface IProfileInfoResponse extends IResponse {
|
|
183
|
+
channel_id?: number | null;
|
|
184
|
+
privilege_level: number;
|
|
185
|
+
rating_score: number;
|
|
186
|
+
sponsorship_expires: number;
|
|
187
|
+
is_sponsor: boolean;
|
|
188
|
+
is_perm_banned: boolean;
|
|
189
|
+
}
|
|
190
|
+
export interface IFriendsRequest extends IBaseRequestPageable {
|
|
191
|
+
id: number;
|
|
192
|
+
}
|
|
193
|
+
export interface IFriendRequestResponse<T extends number = SendFriendRequestResult> extends IResponse {
|
|
194
|
+
friend_status: T | null;
|
|
195
|
+
}
|
|
196
|
+
export interface IBadge {
|
|
197
|
+
id: number;
|
|
198
|
+
name: string;
|
|
199
|
+
type: number;
|
|
200
|
+
image_url: string;
|
|
201
|
+
timestamp: number;
|
|
202
|
+
}
|
|
203
|
+
export interface ISocialRequest {
|
|
204
|
+
vkPage: string;
|
|
205
|
+
tgPage: string;
|
|
206
|
+
instPage: string;
|
|
207
|
+
ttPage: string;
|
|
208
|
+
discordPage: string;
|
|
209
|
+
}
|
|
210
|
+
export interface ISocialResponse extends IResponse {
|
|
211
|
+
vk_page: string;
|
|
212
|
+
tg_page: string;
|
|
213
|
+
inst_page: string;
|
|
214
|
+
tt_page: string;
|
|
215
|
+
discord_page: string;
|
|
216
|
+
}
|
|
217
|
+
export interface IHealthStatusResponse extends IResponse {
|
|
218
|
+
ban_count: number;
|
|
219
|
+
ban_for_3_month_count: number;
|
|
220
|
+
last_ban_timestamp: number;
|
|
221
|
+
last_ban_expires: number;
|
|
222
|
+
blog_suspension_expires: number;
|
|
223
|
+
blog_mute_expires: number;
|
|
224
|
+
}
|
|
225
|
+
export interface IProfileEnforcement {
|
|
226
|
+
type: "profile_ban" | "channel_suspension" | "channel_mute" | "article_edit" | "release_comment_edit" | "collection_comment_edit" | "article_comment_edit";
|
|
227
|
+
id: number;
|
|
228
|
+
reason: string | null;
|
|
229
|
+
creation_timestamp: number;
|
|
230
|
+
appeal_type: "UNKNOWN" | "NOT_AVAILABLE" | "MESSAGE" | "ADJUSTMENT";
|
|
231
|
+
appeal_status: "UNKNOWN" | "NOT_SUBMITTED" | "SUBMITTED" | "ACCEPTED" | "REJECTED";
|
|
232
|
+
appeal_submit_timestamp: number | null;
|
|
233
|
+
appeal_expires_timestamp: number | null;
|
|
234
|
+
appeal_process_message: string | null;
|
|
235
|
+
appeal_process_timestamp: number | null;
|
|
236
|
+
revocation_timestamp: number | null;
|
|
237
|
+
is_revoked: boolean;
|
|
238
|
+
}
|
|
239
|
+
export interface IEditEnforcement<T> extends IProfileEnforcement {
|
|
240
|
+
entity_id: number;
|
|
241
|
+
entity: T | null;
|
|
242
|
+
changes: IEditEnforcementChange[];
|
|
243
|
+
}
|
|
244
|
+
export interface IEditEnforcementChange {
|
|
245
|
+
type: string;
|
|
246
|
+
new_value: any;
|
|
247
|
+
}
|
|
248
|
+
export interface IExpiringEnforcement extends IProfileEnforcement {
|
|
249
|
+
expiration_timestamp: number;
|
|
250
|
+
}
|
|
251
|
+
export interface IProfileEnforcementResponse extends IResponse {
|
|
252
|
+
enforcement: IEditEnforcement<any> | IExpiringEnforcement | IProfileEnforcement | null;
|
|
253
|
+
}
|
|
254
|
+
export declare enum SendFriendRequestResult {
|
|
255
|
+
RequestConfirmed = 2,
|
|
256
|
+
RequestSent = 3,
|
|
257
|
+
ProfileWasBlocked = 4,
|
|
258
|
+
MyProfileWasBlocked = 5,
|
|
259
|
+
FriendLimitReached = 6,
|
|
260
|
+
TargetFriendLimitReached = 7,
|
|
261
|
+
TargetFriendRequestsDisallowed = 8,
|
|
262
|
+
FriendRequestLimitReached = 9
|
|
263
|
+
}
|
|
264
|
+
export declare enum RemoveFriendRequestResult {
|
|
265
|
+
RequestRemoved = 2,
|
|
266
|
+
FriendshipRemoved = 3
|
|
267
|
+
}
|
|
268
|
+
export declare enum AchivementResult {
|
|
269
|
+
AlreadyGranted = 2,
|
|
270
|
+
AchivementNotFound = 3
|
|
271
|
+
}
|
|
272
|
+
export declare enum BlocklistAddResult {
|
|
273
|
+
AlreadyInBlocklist = 2
|
|
274
|
+
}
|
|
275
|
+
export interface IChangeLogin {
|
|
276
|
+
id: number;
|
|
277
|
+
timestamp: number;
|
|
278
|
+
}
|
|
279
|
+
export interface IProfileSocialResponse extends IResponse {
|
|
280
|
+
discord_page?: string;
|
|
281
|
+
inst_page?: string;
|
|
282
|
+
tg_page?: string;
|
|
283
|
+
tt_page?: string;
|
|
284
|
+
vk_page?: string;
|
|
285
|
+
}
|
|
286
|
+
export interface IProfileListResponse extends IResponse {
|
|
287
|
+
}
|
|
288
|
+
export interface IBlockProfileListAddResponse extends IResponse {
|
|
289
|
+
}
|
|
290
|
+
export interface IProfileEnforcementAppealResponse extends IResponse {
|
|
291
|
+
}
|
|
292
|
+
export interface IBookmarksImportStatusResponse extends IResponse {
|
|
293
|
+
}
|
|
294
|
+
export interface IAchievementResponse extends IResponse {
|
|
295
|
+
}
|
|
296
|
+
export interface IProfileRole {
|
|
297
|
+
is_online?: boolean;
|
|
298
|
+
}
|
|
299
|
+
export interface IProfileSlim {
|
|
300
|
+
avatar: string;
|
|
301
|
+
id: number;
|
|
302
|
+
login: string;
|
|
303
|
+
}
|
|
304
|
+
export interface IProfileGenre {
|
|
305
|
+
percentage?: number;
|
|
306
|
+
}
|
|
307
|
+
export interface IProfileWatchDynamics {
|
|
308
|
+
count?: number;
|
|
309
|
+
day?: number;
|
|
310
|
+
id?: number;
|
|
311
|
+
timestamp?: number;
|
|
312
|
+
}
|
|
313
|
+
export interface IRoleDto {
|
|
314
|
+
id: number;
|
|
315
|
+
}
|
|
316
|
+
export interface ITheme {
|
|
317
|
+
name?: string;
|
|
318
|
+
theme_animation_enabled?: boolean;
|
|
319
|
+
theme_animation_speed?: string | null;
|
|
320
|
+
theme_background_alpha?: number | null;
|
|
321
|
+
theme_background_mode?: string | null;
|
|
322
|
+
theme_background_url?: string | null;
|
|
323
|
+
theme_enabled?: boolean;
|
|
324
|
+
theme_gradient_angle?: string | null;
|
|
325
|
+
theme_gradient_end_color?: string | null;
|
|
326
|
+
theme_gradient_start_color?: string | null;
|
|
327
|
+
theme_icon_alpha?: number;
|
|
328
|
+
theme_icon_color?: string | null;
|
|
329
|
+
theme_icon_density?: string | null;
|
|
330
|
+
theme_icon_res_name?: string | null;
|
|
331
|
+
theme_icon_size?: string | null;
|
|
332
|
+
theme_icon_url?: string | null;
|
|
333
|
+
}
|
|
334
|
+
export interface IAvailableTheme {
|
|
335
|
+
id: number;
|
|
336
|
+
}
|
|
337
|
+
export interface IUser {
|
|
338
|
+
id: number;
|
|
339
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//Thanks Nekonyx for this types (https://github.com/Nekonyx/anixart-api/blob/master/src/contracts/profile.ts)
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.BlocklistAddResult = exports.AchivementResult = exports.RemoveFriendRequestResult = exports.SendFriendRequestResult = exports.BookmarkSortType = exports.BookmarkType = void 0;
|
|
5
|
+
var BookmarkType;
|
|
6
|
+
(function (BookmarkType) {
|
|
7
|
+
BookmarkType[BookmarkType["Watching"] = 1] = "Watching";
|
|
8
|
+
BookmarkType[BookmarkType["InPlans"] = 2] = "InPlans";
|
|
9
|
+
BookmarkType[BookmarkType["Completed"] = 3] = "Completed";
|
|
10
|
+
BookmarkType[BookmarkType["HoldOn"] = 4] = "HoldOn";
|
|
11
|
+
BookmarkType[BookmarkType["Dropped"] = 5] = "Dropped";
|
|
12
|
+
})(BookmarkType || (exports.BookmarkType = BookmarkType = {}));
|
|
13
|
+
var BookmarkSortType;
|
|
14
|
+
(function (BookmarkSortType) {
|
|
15
|
+
BookmarkSortType[BookmarkSortType["NewToOldAddTime"] = 1] = "NewToOldAddTime";
|
|
16
|
+
BookmarkSortType[BookmarkSortType["OldToNewAddTime"] = 2] = "OldToNewAddTime";
|
|
17
|
+
BookmarkSortType[BookmarkSortType["NewToOldYear"] = 3] = "NewToOldYear";
|
|
18
|
+
BookmarkSortType[BookmarkSortType["OldToNewYear"] = 4] = "OldToNewYear";
|
|
19
|
+
BookmarkSortType[BookmarkSortType["AlpabetInAToZ"] = 5] = "AlpabetInAToZ";
|
|
20
|
+
BookmarkSortType[BookmarkSortType["AlpabetInZToA"] = 6] = "AlpabetInZToA";
|
|
21
|
+
})(BookmarkSortType || (exports.BookmarkSortType = BookmarkSortType = {}));
|
|
22
|
+
var SendFriendRequestResult;
|
|
23
|
+
(function (SendFriendRequestResult) {
|
|
24
|
+
SendFriendRequestResult[SendFriendRequestResult["RequestConfirmed"] = 2] = "RequestConfirmed";
|
|
25
|
+
SendFriendRequestResult[SendFriendRequestResult["RequestSent"] = 3] = "RequestSent";
|
|
26
|
+
SendFriendRequestResult[SendFriendRequestResult["ProfileWasBlocked"] = 4] = "ProfileWasBlocked";
|
|
27
|
+
SendFriendRequestResult[SendFriendRequestResult["MyProfileWasBlocked"] = 5] = "MyProfileWasBlocked";
|
|
28
|
+
SendFriendRequestResult[SendFriendRequestResult["FriendLimitReached"] = 6] = "FriendLimitReached";
|
|
29
|
+
SendFriendRequestResult[SendFriendRequestResult["TargetFriendLimitReached"] = 7] = "TargetFriendLimitReached";
|
|
30
|
+
SendFriendRequestResult[SendFriendRequestResult["TargetFriendRequestsDisallowed"] = 8] = "TargetFriendRequestsDisallowed";
|
|
31
|
+
SendFriendRequestResult[SendFriendRequestResult["FriendRequestLimitReached"] = 9] = "FriendRequestLimitReached";
|
|
32
|
+
})(SendFriendRequestResult || (exports.SendFriendRequestResult = SendFriendRequestResult = {}));
|
|
33
|
+
var RemoveFriendRequestResult;
|
|
34
|
+
(function (RemoveFriendRequestResult) {
|
|
35
|
+
RemoveFriendRequestResult[RemoveFriendRequestResult["RequestRemoved"] = 2] = "RequestRemoved";
|
|
36
|
+
RemoveFriendRequestResult[RemoveFriendRequestResult["FriendshipRemoved"] = 3] = "FriendshipRemoved";
|
|
37
|
+
})(RemoveFriendRequestResult || (exports.RemoveFriendRequestResult = RemoveFriendRequestResult = {}));
|
|
38
|
+
var AchivementResult;
|
|
39
|
+
(function (AchivementResult) {
|
|
40
|
+
AchivementResult[AchivementResult["AlreadyGranted"] = 2] = "AlreadyGranted";
|
|
41
|
+
AchivementResult[AchivementResult["AchivementNotFound"] = 3] = "AchivementNotFound";
|
|
42
|
+
})(AchivementResult || (exports.AchivementResult = AchivementResult = {}));
|
|
43
|
+
var BlocklistAddResult;
|
|
44
|
+
(function (BlocklistAddResult) {
|
|
45
|
+
BlocklistAddResult[BlocklistAddResult["AlreadyInBlocklist"] = 2] = "AlreadyInBlocklist";
|
|
46
|
+
})(BlocklistAddResult || (exports.BlocklistAddResult = BlocklistAddResult = {}));
|