@book000/pixivts 0.51.2 → 0.51.3
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/README.md +1 -2
- package/dist/checks.js +9 -9
- package/dist/checks.js.map +1 -1
- package/dist/checks.test.js +28 -28
- package/dist/checks.test.js.map +1 -1
- package/dist/http-client.d.ts +20 -20
- package/dist/http-client.d.ts.map +1 -1
- package/dist/http-client.js +28 -27
- package/dist/http-client.js.map +1 -1
- package/dist/http-client.test.js +11 -11
- package/dist/http-client.test.js.map +1 -1
- package/dist/options.d.ts +59 -59
- package/dist/options.d.ts.map +1 -1
- package/dist/options.js +34 -34
- package/dist/options.js.map +1 -1
- package/dist/pixiv.d.ts +96 -96
- package/dist/pixiv.js +104 -104
- package/dist/pixiv.js.map +1 -1
- package/dist/pixiv.test.js +47 -47
- package/dist/pixiv.test.js.map +1 -1
- package/dist/saving-responses/index.d.ts +33 -33
- package/dist/saving-responses/index.js +31 -31
- package/dist/saving-responses/index.js.map +1 -1
- package/dist/saving-responses/index.test.js +20 -20
- package/dist/saving-responses/index.test.js.map +1 -1
- package/dist/saving-responses/response-entity.js +12 -12
- package/dist/saving-responses/response-entity.js.map +1 -1
- package/dist/types/endpoints/v1/illust/bookmark/delete.d.ts +3 -3
- package/dist/types/endpoints/v1/illust/detail.d.ts +4 -4
- package/dist/types/endpoints/v1/illust/ranking.d.ts +11 -11
- package/dist/types/endpoints/v1/illust/ranking.js +3 -3
- package/dist/types/endpoints/v1/illust/recommended.d.ts +13 -13
- package/dist/types/endpoints/v1/illust/series.d.ts +8 -8
- package/dist/types/endpoints/v1/illust/ugoira/metadata.d.ts +4 -4
- package/dist/types/endpoints/v1/manga/recommended.d.ts +11 -11
- package/dist/types/endpoints/v1/novel/bookmark/delete.d.ts +3 -3
- package/dist/types/endpoints/v1/novel/ranking.d.ts +10 -10
- package/dist/types/endpoints/v1/novel/ranking.js +3 -3
- package/dist/types/endpoints/v1/novel/recommended.d.ts +11 -11
- package/dist/types/endpoints/v1/novel/related.d.ts +7 -7
- package/dist/types/endpoints/v1/search/illust.d.ts +15 -15
- package/dist/types/endpoints/v1/search/novel.d.ts +15 -15
- package/dist/types/endpoints/v1/user/bookmarks/illust.d.ts +9 -9
- package/dist/types/endpoints/v1/user/bookmarks/novel.d.ts +8 -8
- package/dist/types/endpoints/v1/user/detail.d.ts +8 -8
- package/dist/types/endpoints/v2/illust/bookmark/add.d.ts +7 -7
- package/dist/types/endpoints/v2/illust/related.d.ts +8 -8
- package/dist/types/endpoints/v2/novel/bookmark/add.d.ts +7 -7
- package/dist/types/endpoints/v2/novel/detail.d.ts +4 -4
- package/dist/types/endpoints/v2/novel/series.d.ts +9 -9
- package/dist/types/endpoints/webview/v2/novel.d.ts +4 -4
- package/dist/types/error-response.d.ts +7 -7
- package/dist/types/errors.d.ts +1 -1
- package/dist/types/errors.js +1 -1
- package/dist/types/pixiv-common.d.ts +25 -25
- package/dist/types/pixiv-common.d.ts.map +1 -1
- package/dist/types/pixiv-illust-series.d.ts +12 -12
- package/dist/types/pixiv-illust.d.ts +53 -52
- package/dist/types/pixiv-illust.d.ts.map +1 -1
- package/dist/types/pixiv-illust.js.map +1 -1
- package/dist/types/pixiv-novel-series.d.ts +18 -18
- package/dist/types/pixiv-novel.d.ts +34 -33
- package/dist/types/pixiv-novel.d.ts.map +1 -1
- package/dist/types/pixiv-novel.js.map +1 -1
- package/dist/types/pixiv-ugoira.d.ts +10 -10
- package/dist/types/pixiv-user.d.ts +89 -89
- package/dist/types/pixiv-user.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,42 +2,42 @@ import { BaseMultipleCheck, CheckFunctions } from '../../../../../checks';
|
|
|
2
2
|
import { BookmarkRestrict, OSFilter } from '../../../../../options';
|
|
3
3
|
import { PixivIllustItem } from '../../../../pixiv-illust';
|
|
4
4
|
/**
|
|
5
|
-
* GET /v1/user/bookmarks/illust
|
|
5
|
+
* Request for GET /v1/user/bookmarks/illust
|
|
6
6
|
*/
|
|
7
7
|
export interface GetV1UserBookmarksIllustRequest {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* User ID
|
|
10
10
|
*/
|
|
11
11
|
user_id: number;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Bookmark visibility
|
|
14
14
|
*/
|
|
15
15
|
restrict: BookmarkRestrict;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Bookmark tag
|
|
18
18
|
*/
|
|
19
19
|
tag?: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Maximum bookmark ID (pagination?)
|
|
22
22
|
*
|
|
23
23
|
* @beta
|
|
24
24
|
*/
|
|
25
25
|
max_bookmark_id?: number;
|
|
26
26
|
/**
|
|
27
|
-
* OS
|
|
27
|
+
* OS filter
|
|
28
28
|
*/
|
|
29
29
|
filter?: OSFilter;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* GET /v1/user/bookmarks/illust
|
|
32
|
+
* Response for GET /v1/user/bookmarks/illust
|
|
33
33
|
*/
|
|
34
34
|
export interface GetV1UserBookmarksIllustResponse {
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Bookmarked illusts
|
|
37
37
|
*/
|
|
38
38
|
illusts: PixivIllustItem[];
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Next URL
|
|
41
41
|
*/
|
|
42
42
|
next_url: string | null;
|
|
43
43
|
}
|
|
@@ -2,38 +2,38 @@ import { BaseMultipleCheck, CheckFunctions } from '../../../../../checks';
|
|
|
2
2
|
import { BookmarkRestrict } from '../../../../../options';
|
|
3
3
|
import { PixivNovelItem } from '../../../../pixiv-novel';
|
|
4
4
|
/**
|
|
5
|
-
* GET /v1/user/bookmarks/novel
|
|
5
|
+
* Request for GET /v1/user/bookmarks/novel
|
|
6
6
|
*/
|
|
7
7
|
export interface GetV1UserBookmarksNovelRequest {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* User ID
|
|
10
10
|
*/
|
|
11
11
|
user_id: number;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Bookmark visibility
|
|
14
14
|
*/
|
|
15
15
|
restrict: BookmarkRestrict;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Bookmark tag
|
|
18
18
|
*/
|
|
19
19
|
tag?: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Maximum bookmark ID (pagination?)
|
|
22
22
|
*
|
|
23
23
|
* @beta
|
|
24
24
|
*/
|
|
25
25
|
max_bookmark_id?: number;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* GET /v1/user/bookmarks/novel
|
|
28
|
+
* Response for GET /v1/user/bookmarks/novel
|
|
29
29
|
*/
|
|
30
30
|
export interface GetV1UserBookmarksNovelResponse {
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Bookmarked novels
|
|
33
33
|
*/
|
|
34
34
|
novels: PixivNovelItem[];
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Next URL
|
|
37
37
|
*/
|
|
38
38
|
next_url: string | null;
|
|
39
39
|
}
|
|
@@ -2,38 +2,38 @@ import { PixivUserItem, PixivUserProfile, PixivUserProfilePublicity, PixivUserPr
|
|
|
2
2
|
import { OSFilter } from '../../../../options';
|
|
3
3
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
4
4
|
/**
|
|
5
|
-
* GET /v1/user/detail
|
|
5
|
+
* Request for GET /v1/user/detail
|
|
6
6
|
*/
|
|
7
7
|
export interface GetV1UserDetailRequest {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* User ID
|
|
10
10
|
*/
|
|
11
11
|
user_id: number;
|
|
12
12
|
/**
|
|
13
|
-
* OS
|
|
13
|
+
* OS filter
|
|
14
14
|
*
|
|
15
15
|
* @default 'for_ios'
|
|
16
16
|
*/
|
|
17
17
|
filter?: OSFilter;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* GET /v1/user/detail
|
|
20
|
+
* Response for GET /v1/user/detail
|
|
21
21
|
*/
|
|
22
22
|
export interface GetV1UserDetailResponse {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* User details
|
|
25
25
|
*/
|
|
26
26
|
user: PixivUserItem;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* User profile information
|
|
29
29
|
*/
|
|
30
30
|
profile: PixivUserProfile;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* User public profile information
|
|
33
33
|
*/
|
|
34
34
|
profile_publicity: PixivUserProfilePublicity;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* User workspace information
|
|
37
37
|
*/
|
|
38
38
|
workspace: PixivUserProfileWorkspace;
|
|
39
39
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { BookmarkRestrict } from '../../../../../options';
|
|
2
2
|
/**
|
|
3
|
-
* POST /v2/illust/bookmark/add
|
|
3
|
+
* Request for POST /v2/illust/bookmark/add
|
|
4
4
|
*/
|
|
5
5
|
export interface PostV2IllustBookmarkAddRequest {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Illust ID
|
|
8
8
|
*/
|
|
9
9
|
illust_id: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Visibility setting
|
|
12
12
|
*
|
|
13
|
-
* public:
|
|
14
|
-
* private:
|
|
13
|
+
* public: Public
|
|
14
|
+
* private: Private
|
|
15
15
|
*
|
|
16
16
|
* @default BookmarkRestrict.Public
|
|
17
17
|
*/
|
|
18
18
|
restrict: BookmarkRestrict;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Bookmark tags
|
|
21
21
|
*/
|
|
22
22
|
tags?: string[];
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* POST /v2/illust/bookmark/add
|
|
25
|
+
* Response for POST /v2/illust/bookmark/add
|
|
26
26
|
*/
|
|
27
27
|
export type PostV2IllustBookmarkAddResponse = Record<string, never>;
|
|
28
28
|
//# sourceMappingURL=add.d.ts.map
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
2
2
|
import { PixivIllustItem } from '../../../pixiv-illust';
|
|
3
3
|
/**
|
|
4
|
-
* GET /v2/illust/related
|
|
4
|
+
* Request for GET /v2/illust/related
|
|
5
5
|
*/
|
|
6
6
|
export interface GetV2IllustRelatedRequest {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Illust ID
|
|
9
9
|
*/
|
|
10
10
|
illust_id: number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Array of seed illust IDs (?)
|
|
13
13
|
*/
|
|
14
14
|
seed_illust_ids?: number[];
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Viewed illust IDs
|
|
17
17
|
*/
|
|
18
18
|
viewed?: number[];
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Offset
|
|
21
21
|
*/
|
|
22
22
|
offset?: number;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* GET /
|
|
25
|
+
* Response for GET /v2/illust/related
|
|
26
26
|
*/
|
|
27
27
|
export interface GetV2IllustRelatedResponse {
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Illust details
|
|
30
30
|
*/
|
|
31
31
|
illusts: PixivIllustItem[];
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Next URL
|
|
34
34
|
*/
|
|
35
35
|
next_url: string;
|
|
36
36
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* POST /v2/novel/bookmark/add
|
|
2
|
+
* Request for POST /v2/novel/bookmark/add
|
|
3
3
|
*/
|
|
4
4
|
export interface PostV2NovelBookmarkAddRequest {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Novel ID
|
|
7
7
|
*/
|
|
8
8
|
novel_id: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Visibility setting
|
|
11
11
|
*
|
|
12
|
-
* public:
|
|
13
|
-
* private:
|
|
12
|
+
* public: Public
|
|
13
|
+
* private: Private
|
|
14
14
|
*
|
|
15
15
|
* @default BookmarkRestrict.Public
|
|
16
16
|
*/
|
|
17
17
|
restrict: string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Bookmark tags
|
|
20
20
|
*/
|
|
21
21
|
tags?: string[];
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* POST /v2/novel/bookmark/add
|
|
24
|
+
* Response for POST /v2/novel/bookmark/add
|
|
25
25
|
*/
|
|
26
26
|
export type PostV2NovelBookmarkAddResponse = Record<string, never>;
|
|
27
27
|
//# sourceMappingURL=add.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
2
2
|
import { PixivNovelItem } from '../../../pixiv-novel';
|
|
3
3
|
/**
|
|
4
|
-
* GET /v2/novel/detail
|
|
4
|
+
* Request for GET /v2/novel/detail
|
|
5
5
|
*/
|
|
6
6
|
export interface GetV2NovelDetailRequest {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Novel ID
|
|
9
9
|
*/
|
|
10
10
|
novel_id: number;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* GET /v2/novel/detail
|
|
13
|
+
* Response for GET /v2/novel/detail
|
|
14
14
|
*/
|
|
15
15
|
export interface GetV2NovelDetailResponse {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Novel details
|
|
18
18
|
*/
|
|
19
19
|
novel: PixivNovelItem;
|
|
20
20
|
}
|
|
@@ -2,15 +2,15 @@ import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
|
2
2
|
import { PixivNovelItem } from '../../../pixiv-novel';
|
|
3
3
|
import { NovelSeriesDetail } from '../../../pixiv-novel-series';
|
|
4
4
|
/**
|
|
5
|
-
* GET /v2/novel/series
|
|
5
|
+
* Request for GET /v2/novel/series
|
|
6
6
|
*/
|
|
7
7
|
export interface GetV2NovelSeriesRequest {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Novel series ID
|
|
10
10
|
*/
|
|
11
11
|
series_id: number;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Novel offset? It seems 30 items can be retrieved per request
|
|
14
14
|
*
|
|
15
15
|
* @default undefined
|
|
16
16
|
* @beta
|
|
@@ -18,27 +18,27 @@ export interface GetV2NovelSeriesRequest {
|
|
|
18
18
|
last_order?: number;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* GET /v2/novel/series
|
|
21
|
+
* Response for GET /v2/novel/series
|
|
22
22
|
*/
|
|
23
23
|
export interface GetV2NovelSeriesResponse {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Series details
|
|
26
26
|
*/
|
|
27
27
|
novel_series_detail: NovelSeriesDetail;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* First novel data in the series
|
|
30
30
|
*/
|
|
31
31
|
novel_series_first_novel: PixivNovelItem;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Latest novel data in the series
|
|
34
34
|
*/
|
|
35
35
|
novel_series_latest_novel: PixivNovelItem;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* List of novels in the series
|
|
38
38
|
*/
|
|
39
39
|
novels: PixivNovelItem[];
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Next URL
|
|
42
42
|
*/
|
|
43
43
|
next_url: string | null;
|
|
44
44
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
2
2
|
/**
|
|
3
|
-
* GET /webview/v2/novel
|
|
3
|
+
* Request for GET /webview/v2/novel
|
|
4
4
|
*/
|
|
5
5
|
export interface GetWebViewV2NovelRequest {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Novel ID
|
|
8
8
|
*/
|
|
9
9
|
id: number;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* GET /webview/v2/novel
|
|
12
|
+
* Response for GET /webview/v2/novel
|
|
13
13
|
*
|
|
14
|
-
* HTML
|
|
14
|
+
* Returns HTML.
|
|
15
15
|
*/
|
|
16
16
|
export type GetWebViewV2NovelResponse = string;
|
|
17
17
|
export declare class GetWebViewV2NovelCheck extends BaseMultipleCheck<GetWebViewV2NovelRequest, GetWebViewV2NovelResponse> {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* pixiv API
|
|
2
|
+
* Detailed error information returned by the pixiv API
|
|
3
3
|
*/
|
|
4
4
|
export interface PixivErrorDetail {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Error message for the user
|
|
7
7
|
*/
|
|
8
8
|
user_message: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Error message
|
|
11
11
|
*/
|
|
12
12
|
message: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Cause of the error
|
|
15
15
|
*/
|
|
16
16
|
reason: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Details of the error message for the user
|
|
19
19
|
*/
|
|
20
20
|
user_message_details?: unknown;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* pixiv
|
|
23
|
+
* Error response returned by pixiv
|
|
24
24
|
*/
|
|
25
25
|
export interface PixivApiError {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Error details
|
|
28
28
|
*/
|
|
29
29
|
error: PixivErrorDetail;
|
|
30
30
|
}
|
package/dist/types/errors.d.ts
CHANGED
package/dist/types/errors.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PixivRateLimitError = void 0;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Error thrown when a rate limit error is not resolved even after retrying the configured number of times
|
|
6
6
|
*/
|
|
7
7
|
class PixivRateLimitError extends Error {
|
|
8
8
|
constructor(message) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { BaseSimpleCheck, CheckFunctions } from '../checks';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Image URLs for a work
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* For a single image, the original image can be obtained from {@link MetaSinglePage.original_image_url}
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Accessing the images requires an appropriate referer to be set
|
|
8
8
|
*/
|
|
9
9
|
export interface ImageUrls {
|
|
10
10
|
/** 360x360 */
|
|
11
11
|
square_medium: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Long side is at most 540px */
|
|
13
13
|
medium: string;
|
|
14
|
-
/**
|
|
14
|
+
/** Width is at most 600px, height is at most 1200px */
|
|
15
15
|
large: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Original image
|
|
18
18
|
*
|
|
19
|
-
* {@link MetaPages.image_urls}
|
|
19
|
+
* Only present for {@link MetaPages.image_urls}?
|
|
20
20
|
*/
|
|
21
21
|
original?: string;
|
|
22
22
|
}
|
|
@@ -24,53 +24,53 @@ export declare class ImageUrlsCheck extends BaseSimpleCheck<ImageUrls> {
|
|
|
24
24
|
checks(): CheckFunctions<ImageUrls>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Profile image URLs
|
|
28
28
|
*/
|
|
29
29
|
export interface ProfileImageUrls {
|
|
30
|
-
/**
|
|
30
|
+
/** Medium size */
|
|
31
31
|
medium: string;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* User information
|
|
35
35
|
*/
|
|
36
36
|
export interface PixivUser {
|
|
37
|
-
/**
|
|
37
|
+
/** Internal user ID */
|
|
38
38
|
id: number;
|
|
39
|
-
/**
|
|
39
|
+
/** Username */
|
|
40
40
|
name: string;
|
|
41
|
-
/** pixiv ID (URL
|
|
41
|
+
/** pixiv ID (used in the URL) */
|
|
42
42
|
account: string;
|
|
43
|
-
/**
|
|
43
|
+
/** Profile image URLs */
|
|
44
44
|
profile_image_urls: ProfileImageUrls;
|
|
45
|
-
/**
|
|
45
|
+
/** Whether the user is followed */
|
|
46
46
|
is_followed?: boolean;
|
|
47
|
-
/**
|
|
47
|
+
/** Whether this user has blocked access */
|
|
48
48
|
is_access_blocking_user?: boolean;
|
|
49
49
|
}
|
|
50
50
|
export declare class PixivUserCheck extends BaseSimpleCheck<PixivUser> {
|
|
51
51
|
checks(): CheckFunctions<PixivUser>;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Tag information
|
|
55
55
|
*/
|
|
56
56
|
export interface Tag {
|
|
57
|
-
/**
|
|
57
|
+
/** Tag name */
|
|
58
58
|
name: string;
|
|
59
|
-
/**
|
|
59
|
+
/** Translated tag name */
|
|
60
60
|
translated_name: string | null;
|
|
61
|
-
/**
|
|
61
|
+
/** Whether the tag was added by the uploader */
|
|
62
62
|
added_by_uploaded_user?: boolean;
|
|
63
63
|
}
|
|
64
64
|
export declare class TagCheck extends BaseSimpleCheck<Tag> {
|
|
65
65
|
checks(): CheckFunctions<Tag>;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Series information
|
|
69
69
|
*/
|
|
70
70
|
export interface Series {
|
|
71
|
-
/**
|
|
71
|
+
/** Series ID */
|
|
72
72
|
id: number;
|
|
73
|
-
/**
|
|
73
|
+
/** Series title */
|
|
74
74
|
title: string;
|
|
75
75
|
}
|
|
76
76
|
export declare class SeriesCheck extends BaseSimpleCheck<Series> {
|
|
@@ -78,11 +78,11 @@ export declare class SeriesCheck extends BaseSimpleCheck<Series> {
|
|
|
78
78
|
}
|
|
79
79
|
export interface PrivacyPolicy {
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Version
|
|
82
82
|
*/
|
|
83
83
|
version?: string;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* Message
|
|
86
86
|
*/
|
|
87
87
|
message?: string;
|
|
88
88
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pixiv-common.d.ts","sourceRoot":"","sources":["../../src/types/pixiv-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,cAAc;IACd,aAAa,EAAE,MAAM,CAAA;IAErB,
|
|
1
|
+
{"version":3,"file":"pixiv-common.d.ts","sourceRoot":"","sources":["../../src/types/pixiv-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,cAAc;IACd,aAAa,EAAE,MAAM,CAAA;IAErB,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAA;IAEd,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,qBAAa,cAAe,SAAQ,eAAe,CAAC,SAAS,CAAC;IAC5D,MAAM,IAAI,cAAc,CAAC,SAAS,CAAC;CASpC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAA;IAEV,eAAe;IACf,IAAI,EAAE,MAAM,CAAA;IAEZ,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAA;IAEf,yBAAyB;IACzB,kBAAkB,EAAE,gBAAgB,CAAA;IAEpC,mCAAmC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB,2CAA2C;IAC3C,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC;AAED,qBAAa,cAAe,SAAQ,eAAe,CAAC,SAAS,CAAC;IAC5D,MAAM,IAAI,cAAc,CAAC,SAAS,CAAC;CAiBpC;AAED;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,eAAe;IACf,IAAI,EAAE,MAAM,CAAA;IAEZ,0BAA0B;IAC1B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAE9B,gDAAgD;IAChD,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC;AAED,qBAAa,QAAS,SAAQ,eAAe,CAAC,GAAG,CAAC;IAChD,MAAM,IAAI,cAAc,CAAC,GAAG,CAAC;CAY9B;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,gBAAgB;IAChB,EAAE,EAAE,MAAM,CAAA;IAEV,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,qBAAa,WAAY,SAAQ,eAAe,CAAC,MAAM,CAAC;IACtD,MAAM,IAAI,cAAc,CAAC,MAAM,CAAC;CAMjC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,qBAAa,kBAAmB,SAAQ,eAAe,CAAC,aAAa,CAAC;IACpE,MAAM,IAAI,cAAc,CAAC,aAAa,CAAC;CASxC"}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { BaseSimpleCheck, CheckFunctions } from '../checks';
|
|
2
2
|
import { PixivUser } from './pixiv-common';
|
|
3
3
|
/**
|
|
4
|
-
* pixiv
|
|
4
|
+
* pixiv illust series details
|
|
5
5
|
*/
|
|
6
6
|
export interface IllustSeriesDetail {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Series ID
|
|
9
9
|
*/
|
|
10
10
|
id: number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Series title
|
|
13
13
|
*/
|
|
14
14
|
title: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Series description
|
|
17
17
|
*/
|
|
18
18
|
caption: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Cover image URLs
|
|
21
21
|
*/
|
|
22
22
|
cover_image_urls: {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Medium-sized cover image URL
|
|
25
25
|
*/
|
|
26
26
|
medium: string;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Number of works in the series
|
|
30
30
|
*/
|
|
31
31
|
series_work_count: number;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Series creation date and time
|
|
34
34
|
*/
|
|
35
35
|
create_date: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Width of the series cover image
|
|
38
38
|
*/
|
|
39
39
|
width: number;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Height of the series cover image
|
|
42
42
|
*/
|
|
43
43
|
height: number;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Series creator information
|
|
46
46
|
*/
|
|
47
47
|
user: PixivUser;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Whether it has been added to the watchlist
|
|
50
50
|
*/
|
|
51
51
|
watchlist_added: boolean;
|
|
52
52
|
}
|