anixartjs 0.0.8 → 0.1.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/dist/api/auth.d.ts +4 -4
- package/dist/api/channel.d.ts +9 -9
- package/dist/api/collection.d.ts +7 -14
- package/dist/api/collection.js +0 -7
- package/dist/api/notification.d.ts +1 -1
- package/dist/api/notification.js +3 -2
- package/dist/api/profile.d.ts +8 -4
- package/dist/api/profile.js +15 -1
- package/dist/api/release.d.ts +4 -3
- package/dist/api/release.js +3 -0
- package/dist/api/settings.d.ts +5 -5
- package/dist/classes/Article.d.ts +3 -3
- package/dist/classes/Article.js +3 -2
- package/dist/classes/ArticleComment.d.ts +3 -3
- package/dist/classes/ArticleComment.js +2 -1
- package/dist/classes/BaseProfile.d.ts +4 -3
- package/dist/classes/BaseProfile.js +6 -2
- package/dist/classes/Channel.d.ts +4 -4
- package/dist/classes/Channel.js +6 -5
- package/dist/classes/Collection.d.ts +5 -5
- package/dist/classes/Collection.js +2 -1
- package/dist/classes/Episode.d.ts +3 -3
- package/dist/classes/Release.d.ts +7 -7
- package/dist/classes/Release.js +9 -8
- package/dist/classes/ReleaseComment.d.ts +4 -4
- package/dist/classes/ReleaseComment.js +3 -2
- package/dist/classes/SuggestionArticle.d.ts +2 -2
- package/dist/classes/SuggestionArticle.js +2 -1
- package/dist/client.d.ts +10 -3
- package/dist/client.js +5 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/types/auth.d.ts +41 -2
- package/dist/types/auth.js +45 -0
- package/dist/types/channel.d.ts +88 -8
- package/dist/types/channel.js +95 -0
- package/dist/types/collection.d.ts +38 -4
- package/dist/types/collection.js +42 -0
- package/dist/types/profile.d.ts +20 -2
- package/dist/types/profile.js +22 -1
- package/dist/types/release.d.ts +30 -3
- package/dist/types/release.js +10 -1
- package/dist/types/response.d.ts +26 -6
- package/dist/types/response.js +33 -10
- package/dist/types/settings.d.ts +33 -2
- package/dist/types/settings.js +39 -1
- package/package.json +1 -1
package/dist/types/release.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPageableResponse, IResponse, IBaseComment } from './response';
|
|
1
|
+
import { IPageableResponse, IResponse, IBaseComment, CommentAddResult } from './response';
|
|
2
2
|
import { IProfile } from './profile';
|
|
3
3
|
import { IBaseRequestPageable } from './request';
|
|
4
4
|
export declare enum ReleaseCategory {
|
|
@@ -18,6 +18,13 @@ export declare enum ReleaseStatus {
|
|
|
18
18
|
Airing = 2,
|
|
19
19
|
Announced = 3
|
|
20
20
|
}
|
|
21
|
+
export declare enum ReleaseVideoResult {
|
|
22
|
+
InvalidReleaseId = 2
|
|
23
|
+
}
|
|
24
|
+
export declare enum BookmarkExportResult {
|
|
25
|
+
InvalidProfileLists = 2,
|
|
26
|
+
InvalidExtraFields = 3
|
|
27
|
+
}
|
|
21
28
|
export interface ICommentRepliesRequest extends IBaseRequestPageable {
|
|
22
29
|
id: number;
|
|
23
30
|
sort: number;
|
|
@@ -201,7 +208,7 @@ export interface IVideo {
|
|
|
201
208
|
is_favorite: boolean;
|
|
202
209
|
favorites_count: number;
|
|
203
210
|
}
|
|
204
|
-
export interface IVideoResponse extends IResponse {
|
|
211
|
+
export interface IVideoResponse extends IResponse<ReleaseVideoResult> {
|
|
205
212
|
release: IRelease;
|
|
206
213
|
blocks: IVideo[];
|
|
207
214
|
streaming_platforms: IVideoStreamingPlatform[];
|
|
@@ -229,7 +236,7 @@ export interface ICommentReleaseRequest extends IBaseRequestPageable {
|
|
|
229
236
|
id: number;
|
|
230
237
|
sort: number;
|
|
231
238
|
}
|
|
232
|
-
export interface ICommentReleaseResponse extends IResponse {
|
|
239
|
+
export interface ICommentReleaseResponse extends IResponse<CommentAddResult> {
|
|
233
240
|
comment: ICommentRelease;
|
|
234
241
|
}
|
|
235
242
|
export interface ICommentRelease extends IBaseComment {
|
|
@@ -287,3 +294,23 @@ export interface IInterestingRelease {
|
|
|
287
294
|
action: string;
|
|
288
295
|
is_hidden: boolean;
|
|
289
296
|
}
|
|
297
|
+
export interface ILastEpisodeUpdate {
|
|
298
|
+
last_episode_update_date: number;
|
|
299
|
+
last_episode_update_name: string;
|
|
300
|
+
last_episode_source_update_id: number;
|
|
301
|
+
last_episode_source_update_name: string;
|
|
302
|
+
last_episode_type_update_id: number;
|
|
303
|
+
lastEpisodeTypeUpdateName: string;
|
|
304
|
+
}
|
|
305
|
+
export interface IExportBookmarksResponse extends IResponse<BookmarkExportResult> {
|
|
306
|
+
releases: IExportRelease[];
|
|
307
|
+
}
|
|
308
|
+
export interface IExportRelease {
|
|
309
|
+
id: number;
|
|
310
|
+
title_alt: string;
|
|
311
|
+
title_ru: string;
|
|
312
|
+
title_original: string;
|
|
313
|
+
your_vote: number | null;
|
|
314
|
+
profile_list_status: number;
|
|
315
|
+
is_favorite: boolean;
|
|
316
|
+
}
|
package/dist/types/release.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReleaseStatus = exports.VoteType = exports.ReleaseCategory = void 0;
|
|
3
|
+
exports.BookmarkExportResult = exports.ReleaseVideoResult = exports.ReleaseStatus = exports.VoteType = exports.ReleaseCategory = void 0;
|
|
4
4
|
var ReleaseCategory;
|
|
5
5
|
(function (ReleaseCategory) {
|
|
6
6
|
ReleaseCategory[ReleaseCategory["Unknown"] = 0] = "Unknown";
|
|
@@ -21,3 +21,12 @@ var ReleaseStatus;
|
|
|
21
21
|
ReleaseStatus[ReleaseStatus["Airing"] = 2] = "Airing";
|
|
22
22
|
ReleaseStatus[ReleaseStatus["Announced"] = 3] = "Announced";
|
|
23
23
|
})(ReleaseStatus || (exports.ReleaseStatus = ReleaseStatus = {}));
|
|
24
|
+
var ReleaseVideoResult;
|
|
25
|
+
(function (ReleaseVideoResult) {
|
|
26
|
+
ReleaseVideoResult[ReleaseVideoResult["InvalidReleaseId"] = 2] = "InvalidReleaseId";
|
|
27
|
+
})(ReleaseVideoResult || (exports.ReleaseVideoResult = ReleaseVideoResult = {}));
|
|
28
|
+
var BookmarkExportResult;
|
|
29
|
+
(function (BookmarkExportResult) {
|
|
30
|
+
BookmarkExportResult[BookmarkExportResult["InvalidProfileLists"] = 2] = "InvalidProfileLists";
|
|
31
|
+
BookmarkExportResult[BookmarkExportResult["InvalidExtraFields"] = 3] = "InvalidExtraFields";
|
|
32
|
+
})(BookmarkExportResult || (exports.BookmarkExportResult = BookmarkExportResult = {}));
|
package/dist/types/response.d.ts
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import { IDubber, IRelease } from "./release";
|
|
2
2
|
import { IProfileShort } from "./profile";
|
|
3
|
-
export declare enum
|
|
3
|
+
export declare enum DefaultResult {
|
|
4
4
|
Ok = 0,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
RateLimit = 401,
|
|
5
|
+
UnexpectedError = 1,
|
|
6
|
+
Unauthorized = 401,
|
|
8
7
|
Ban = 402,
|
|
9
8
|
PermBan = 403
|
|
10
9
|
}
|
|
11
|
-
export interface IResponse {
|
|
12
|
-
code:
|
|
10
|
+
export interface IResponse<T extends number = DefaultResult> {
|
|
11
|
+
code: DefaultResult | T;
|
|
12
|
+
}
|
|
13
|
+
export declare enum CommentAddResult {
|
|
14
|
+
EmbeddableNotFound = 2,
|
|
15
|
+
CommentNotFound = 3,
|
|
16
|
+
ProfileNotFound = 4,
|
|
17
|
+
CommentIsTooShort = 5,
|
|
18
|
+
CommentIsTooLong = 6,
|
|
19
|
+
CommentLimitReached = 7,
|
|
20
|
+
InBlocklist = 8
|
|
21
|
+
}
|
|
22
|
+
export declare enum CommentDeleteResult {
|
|
23
|
+
CommentNotFound = 2,
|
|
24
|
+
CommentNotOwned = 3
|
|
25
|
+
}
|
|
26
|
+
export declare enum CommentEditResult {
|
|
27
|
+
CommentNotFound = 2,
|
|
28
|
+
CommentIsTooShort = 3,
|
|
29
|
+
CommentIsTooLong = 4,
|
|
30
|
+
CommentNotOwned = 5,
|
|
31
|
+
CommentWasDeleted = 6,
|
|
32
|
+
EmbeddableNotFound = 7
|
|
13
33
|
}
|
|
14
34
|
export interface IPageableResponse<T> extends IResponse {
|
|
15
35
|
content: T[];
|
package/dist/types/response.js
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
exports.CommentEditResult = exports.CommentDeleteResult = exports.CommentAddResult = exports.DefaultResult = void 0;
|
|
4
|
+
var DefaultResult;
|
|
5
|
+
(function (DefaultResult) {
|
|
6
|
+
DefaultResult[DefaultResult["Ok"] = 0] = "Ok";
|
|
7
|
+
DefaultResult[DefaultResult["UnexpectedError"] = 1] = "UnexpectedError";
|
|
8
|
+
DefaultResult[DefaultResult["Unauthorized"] = 401] = "Unauthorized";
|
|
9
|
+
DefaultResult[DefaultResult["Ban"] = 402] = "Ban";
|
|
10
|
+
DefaultResult[DefaultResult["PermBan"] = 403] = "PermBan";
|
|
11
|
+
})(DefaultResult || (exports.DefaultResult = DefaultResult = {}));
|
|
12
|
+
var CommentAddResult;
|
|
13
|
+
(function (CommentAddResult) {
|
|
14
|
+
CommentAddResult[CommentAddResult["EmbeddableNotFound"] = 2] = "EmbeddableNotFound";
|
|
15
|
+
CommentAddResult[CommentAddResult["CommentNotFound"] = 3] = "CommentNotFound";
|
|
16
|
+
CommentAddResult[CommentAddResult["ProfileNotFound"] = 4] = "ProfileNotFound";
|
|
17
|
+
CommentAddResult[CommentAddResult["CommentIsTooShort"] = 5] = "CommentIsTooShort";
|
|
18
|
+
CommentAddResult[CommentAddResult["CommentIsTooLong"] = 6] = "CommentIsTooLong";
|
|
19
|
+
CommentAddResult[CommentAddResult["CommentLimitReached"] = 7] = "CommentLimitReached";
|
|
20
|
+
CommentAddResult[CommentAddResult["InBlocklist"] = 8] = "InBlocklist";
|
|
21
|
+
})(CommentAddResult || (exports.CommentAddResult = CommentAddResult = {}));
|
|
22
|
+
var CommentDeleteResult;
|
|
23
|
+
(function (CommentDeleteResult) {
|
|
24
|
+
CommentDeleteResult[CommentDeleteResult["CommentNotFound"] = 2] = "CommentNotFound";
|
|
25
|
+
CommentDeleteResult[CommentDeleteResult["CommentNotOwned"] = 3] = "CommentNotOwned";
|
|
26
|
+
})(CommentDeleteResult || (exports.CommentDeleteResult = CommentDeleteResult = {}));
|
|
27
|
+
var CommentEditResult;
|
|
28
|
+
(function (CommentEditResult) {
|
|
29
|
+
CommentEditResult[CommentEditResult["CommentNotFound"] = 2] = "CommentNotFound";
|
|
30
|
+
CommentEditResult[CommentEditResult["CommentIsTooShort"] = 3] = "CommentIsTooShort";
|
|
31
|
+
CommentEditResult[CommentEditResult["CommentIsTooLong"] = 4] = "CommentIsTooLong";
|
|
32
|
+
CommentEditResult[CommentEditResult["CommentNotOwned"] = 5] = "CommentNotOwned";
|
|
33
|
+
CommentEditResult[CommentEditResult["CommentWasDeleted"] = 6] = "CommentWasDeleted";
|
|
34
|
+
CommentEditResult[CommentEditResult["EmbeddableNotFound"] = 7] = "EmbeddableNotFound";
|
|
35
|
+
})(CommentEditResult || (exports.CommentEditResult = CommentEditResult = {}));
|
package/dist/types/settings.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface IProfileSettingsResponse extends IResponse {
|
|
|
26
26
|
export interface IBadgesResponse extends IPageableResponse<IBadge> {
|
|
27
27
|
profile: IProfile;
|
|
28
28
|
}
|
|
29
|
-
export interface IEmailChangeConfirmResponse extends IResponse {
|
|
29
|
+
export interface IEmailChangeConfirmResponse extends IResponse<ChangeEmailConfirmResult> {
|
|
30
30
|
emailHint: string;
|
|
31
31
|
}
|
|
32
32
|
export interface IEmailChangeRequest {
|
|
@@ -47,6 +47,37 @@ export interface INewLogin {
|
|
|
47
47
|
newLogin: string;
|
|
48
48
|
timestamp: number;
|
|
49
49
|
}
|
|
50
|
+
export declare enum SocialEditResult {
|
|
51
|
+
InvalidVk = 2,
|
|
52
|
+
InvalidTelegram = 3,
|
|
53
|
+
InvalidInstagram = 4,
|
|
54
|
+
InvalidTiktok = 5,
|
|
55
|
+
InvalidDiscord = 6
|
|
56
|
+
}
|
|
57
|
+
export declare enum ChangeLoginResult {
|
|
58
|
+
InvalidLogin = 2,
|
|
59
|
+
LoginAlreadyTaken = 3,
|
|
60
|
+
TimeLimit = 4
|
|
61
|
+
}
|
|
62
|
+
export declare enum BlocklistAddResult {
|
|
63
|
+
AlreadyInBlocklist = 2
|
|
64
|
+
}
|
|
65
|
+
export declare enum ChangeEmailResult {
|
|
66
|
+
InvalidEmail = 2,
|
|
67
|
+
InvalidCurrentEmail = 3,
|
|
68
|
+
EmailAlreadyTaken = 4
|
|
69
|
+
}
|
|
70
|
+
export declare enum ChangeEmailConfirmResult {
|
|
71
|
+
InvalidPassword = 2
|
|
72
|
+
}
|
|
73
|
+
export declare enum ChangePasswordResult {
|
|
74
|
+
InvalidPassword = 2,
|
|
75
|
+
InvalidCurrentPassword = 3
|
|
76
|
+
}
|
|
77
|
+
export declare enum PasswordChangeResult {
|
|
78
|
+
InvalidPassword = 2,
|
|
79
|
+
InvalidCurrentPassword = 3
|
|
80
|
+
}
|
|
50
81
|
export declare enum PrivacyState {
|
|
51
82
|
All = 0,
|
|
52
83
|
OnlyFriends = 1,
|
|
@@ -56,6 +87,6 @@ export declare enum PrivacyFriendRequestState {
|
|
|
56
87
|
All = 0,
|
|
57
88
|
OnlyMe = 1
|
|
58
89
|
}
|
|
59
|
-
export interface IPasswordChangeResponse extends IResponse {
|
|
90
|
+
export interface IPasswordChangeResponse extends IResponse<ChangePasswordResult> {
|
|
60
91
|
token: string;
|
|
61
92
|
}
|
package/dist/types/settings.js
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrivacyFriendRequestState = exports.PrivacyState = void 0;
|
|
3
|
+
exports.PrivacyFriendRequestState = exports.PrivacyState = exports.PasswordChangeResult = exports.ChangePasswordResult = exports.ChangeEmailConfirmResult = exports.ChangeEmailResult = exports.BlocklistAddResult = exports.ChangeLoginResult = exports.SocialEditResult = void 0;
|
|
4
|
+
var SocialEditResult;
|
|
5
|
+
(function (SocialEditResult) {
|
|
6
|
+
SocialEditResult[SocialEditResult["InvalidVk"] = 2] = "InvalidVk";
|
|
7
|
+
SocialEditResult[SocialEditResult["InvalidTelegram"] = 3] = "InvalidTelegram";
|
|
8
|
+
SocialEditResult[SocialEditResult["InvalidInstagram"] = 4] = "InvalidInstagram";
|
|
9
|
+
SocialEditResult[SocialEditResult["InvalidTiktok"] = 5] = "InvalidTiktok";
|
|
10
|
+
SocialEditResult[SocialEditResult["InvalidDiscord"] = 6] = "InvalidDiscord";
|
|
11
|
+
})(SocialEditResult || (exports.SocialEditResult = SocialEditResult = {}));
|
|
12
|
+
var ChangeLoginResult;
|
|
13
|
+
(function (ChangeLoginResult) {
|
|
14
|
+
ChangeLoginResult[ChangeLoginResult["InvalidLogin"] = 2] = "InvalidLogin";
|
|
15
|
+
ChangeLoginResult[ChangeLoginResult["LoginAlreadyTaken"] = 3] = "LoginAlreadyTaken";
|
|
16
|
+
ChangeLoginResult[ChangeLoginResult["TimeLimit"] = 4] = "TimeLimit";
|
|
17
|
+
})(ChangeLoginResult || (exports.ChangeLoginResult = ChangeLoginResult = {}));
|
|
18
|
+
var BlocklistAddResult;
|
|
19
|
+
(function (BlocklistAddResult) {
|
|
20
|
+
BlocklistAddResult[BlocklistAddResult["AlreadyInBlocklist"] = 2] = "AlreadyInBlocklist";
|
|
21
|
+
})(BlocklistAddResult || (exports.BlocklistAddResult = BlocklistAddResult = {}));
|
|
22
|
+
var ChangeEmailResult;
|
|
23
|
+
(function (ChangeEmailResult) {
|
|
24
|
+
ChangeEmailResult[ChangeEmailResult["InvalidEmail"] = 2] = "InvalidEmail";
|
|
25
|
+
ChangeEmailResult[ChangeEmailResult["InvalidCurrentEmail"] = 3] = "InvalidCurrentEmail";
|
|
26
|
+
ChangeEmailResult[ChangeEmailResult["EmailAlreadyTaken"] = 4] = "EmailAlreadyTaken";
|
|
27
|
+
})(ChangeEmailResult || (exports.ChangeEmailResult = ChangeEmailResult = {}));
|
|
28
|
+
var ChangeEmailConfirmResult;
|
|
29
|
+
(function (ChangeEmailConfirmResult) {
|
|
30
|
+
ChangeEmailConfirmResult[ChangeEmailConfirmResult["InvalidPassword"] = 2] = "InvalidPassword";
|
|
31
|
+
})(ChangeEmailConfirmResult || (exports.ChangeEmailConfirmResult = ChangeEmailConfirmResult = {}));
|
|
32
|
+
var ChangePasswordResult;
|
|
33
|
+
(function (ChangePasswordResult) {
|
|
34
|
+
ChangePasswordResult[ChangePasswordResult["InvalidPassword"] = 2] = "InvalidPassword";
|
|
35
|
+
ChangePasswordResult[ChangePasswordResult["InvalidCurrentPassword"] = 3] = "InvalidCurrentPassword";
|
|
36
|
+
})(ChangePasswordResult || (exports.ChangePasswordResult = ChangePasswordResult = {}));
|
|
37
|
+
var PasswordChangeResult;
|
|
38
|
+
(function (PasswordChangeResult) {
|
|
39
|
+
PasswordChangeResult[PasswordChangeResult["InvalidPassword"] = 2] = "InvalidPassword";
|
|
40
|
+
PasswordChangeResult[PasswordChangeResult["InvalidCurrentPassword"] = 3] = "InvalidCurrentPassword";
|
|
41
|
+
})(PasswordChangeResult || (exports.PasswordChangeResult = PasswordChangeResult = {}));
|
|
4
42
|
var PrivacyState;
|
|
5
43
|
(function (PrivacyState) {
|
|
6
44
|
PrivacyState[PrivacyState["All"] = 0] = "All";
|