anixartjs 0.1.3 → 0.1.5
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/classes/Release.d.ts +3 -3
- package/dist/types/release.d.ts +22 -14
- package/dist/types/release.js +8 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Anixart } from "../client";
|
|
2
|
-
import { BookmarkType, IBaseCommentAddRequest, ICommentRelease, IEpisodeLastUpdate, IRelated, IRelease, IReleaseCategory, IReleaseStatus, IVideoBanners, DefaultResult, ReleaseAddCollectionResult } from "../types";
|
|
2
|
+
import { BookmarkType, IBaseCommentAddRequest, ICommentRelease, IEpisodeLastUpdate, IRelated, IRelease, IReleaseCategory, IReleaseStatus, IVideoBanners, DefaultResult, ReleaseAddCollectionResult, IEpisode } from "../types";
|
|
3
3
|
import { Collection } from "./Collection";
|
|
4
4
|
import { Dubber } from "./Dubber";
|
|
5
5
|
import { ReleaseComment } from "./ReleaseComment";
|
|
@@ -16,7 +16,7 @@ export declare class Release {
|
|
|
16
16
|
readonly translators: string;
|
|
17
17
|
readonly studio: string;
|
|
18
18
|
readonly description: string;
|
|
19
|
-
readonly note: null;
|
|
19
|
+
readonly note: string | null;
|
|
20
20
|
readonly related: IRelated;
|
|
21
21
|
readonly category: IReleaseCategory;
|
|
22
22
|
readonly rating: number;
|
|
@@ -63,7 +63,7 @@ export declare class Release {
|
|
|
63
63
|
readonly profileListStatus: number;
|
|
64
64
|
readonly statusId: number;
|
|
65
65
|
readonly lastViewTimestamp: number;
|
|
66
|
-
readonly lastViewEpisode:
|
|
66
|
+
readonly lastViewEpisode: IEpisode;
|
|
67
67
|
readonly isViewed: boolean;
|
|
68
68
|
readonly isFavorite: boolean;
|
|
69
69
|
readonly isViewBlocked: boolean;
|
package/dist/types/release.d.ts
CHANGED
|
@@ -25,6 +25,12 @@ export declare enum BookmarkExportResult {
|
|
|
25
25
|
InvalidProfileLists = 2,
|
|
26
26
|
InvalidExtraFields = 3
|
|
27
27
|
}
|
|
28
|
+
export declare enum FilterSortType {
|
|
29
|
+
SortDateUpdate = 0,
|
|
30
|
+
SortGrade = 1,
|
|
31
|
+
SortYear = 2,
|
|
32
|
+
SortPopular = 3
|
|
33
|
+
}
|
|
28
34
|
export interface ICommentRepliesRequest extends IBaseRequestPageable {
|
|
29
35
|
id: number;
|
|
30
36
|
sort: number;
|
|
@@ -34,23 +40,24 @@ export interface IVideoReleaseInCategoryRequest extends IBaseRequestPageable {
|
|
|
34
40
|
categoryId: number;
|
|
35
41
|
}
|
|
36
42
|
export interface IReleaseFilterRequest {
|
|
37
|
-
|
|
43
|
+
category_id?: number;
|
|
38
44
|
country?: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
end_year?: number;
|
|
46
|
+
episode_duration_from?: number;
|
|
47
|
+
episode_duration_to?: number;
|
|
48
|
+
episodes_from?: number;
|
|
49
|
+
episodes_to?: number;
|
|
50
|
+
is_genres_exclude_mode_enabled?: boolean;
|
|
45
51
|
season?: number;
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
start_year?: number;
|
|
53
|
+
status_id?: number;
|
|
48
54
|
studio?: string;
|
|
49
|
-
sort?:
|
|
55
|
+
sort?: FilterSortType;
|
|
50
56
|
genres?: string[];
|
|
51
|
-
|
|
57
|
+
profile_list_exclusions?: number[];
|
|
52
58
|
types?: number[];
|
|
53
|
-
|
|
59
|
+
age_ratings?: number[];
|
|
60
|
+
source?: string;
|
|
54
61
|
}
|
|
55
62
|
export interface IReleaseFilterResponse extends IPageableResponse<IRelease> {
|
|
56
63
|
}
|
|
@@ -92,7 +99,7 @@ export interface IRelease {
|
|
|
92
99
|
translators: string;
|
|
93
100
|
studio: string;
|
|
94
101
|
description: string;
|
|
95
|
-
note: null;
|
|
102
|
+
note: string | null;
|
|
96
103
|
related: IRelated;
|
|
97
104
|
category: IReleaseCategory;
|
|
98
105
|
rating: number;
|
|
@@ -139,7 +146,7 @@ export interface IRelease {
|
|
|
139
146
|
profile_list_status: number;
|
|
140
147
|
status_id: number;
|
|
141
148
|
last_view_timestamp: number;
|
|
142
|
-
last_view_episode:
|
|
149
|
+
last_view_episode: IEpisode;
|
|
143
150
|
is_viewed: boolean;
|
|
144
151
|
is_favorite: boolean;
|
|
145
152
|
is_view_blocked: boolean;
|
|
@@ -170,6 +177,7 @@ export interface IVoteRelease {
|
|
|
170
177
|
rating: number;
|
|
171
178
|
grade: number;
|
|
172
179
|
status: number;
|
|
180
|
+
poster: string;
|
|
173
181
|
title_original: string;
|
|
174
182
|
title_ru: string;
|
|
175
183
|
favorites_count: number;
|
package/dist/types/release.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BookmarkExportResult = exports.ReleaseVideoResult = exports.ReleaseStatus = exports.VoteType = exports.ReleaseCategory = void 0;
|
|
3
|
+
exports.FilterSortType = 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";
|
|
@@ -30,3 +30,10 @@ var BookmarkExportResult;
|
|
|
30
30
|
BookmarkExportResult[BookmarkExportResult["InvalidProfileLists"] = 2] = "InvalidProfileLists";
|
|
31
31
|
BookmarkExportResult[BookmarkExportResult["InvalidExtraFields"] = 3] = "InvalidExtraFields";
|
|
32
32
|
})(BookmarkExportResult || (exports.BookmarkExportResult = BookmarkExportResult = {}));
|
|
33
|
+
var FilterSortType;
|
|
34
|
+
(function (FilterSortType) {
|
|
35
|
+
FilterSortType[FilterSortType["SortDateUpdate"] = 0] = "SortDateUpdate";
|
|
36
|
+
FilterSortType[FilterSortType["SortGrade"] = 1] = "SortGrade";
|
|
37
|
+
FilterSortType[FilterSortType["SortYear"] = 2] = "SortYear";
|
|
38
|
+
FilterSortType[FilterSortType["SortPopular"] = 3] = "SortPopular";
|
|
39
|
+
})(FilterSortType || (exports.FilterSortType = FilterSortType = {}));
|