@book000/pixivts 0.51.1 → 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/index.d.ts +29 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -21
- package/dist/index.js.map +1 -1
- package/dist/options.d.ts +61 -62
- 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 +43 -32
- package/dist/saving-responses/index.d.ts.map +1 -1
- 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 +11 -9
- package/dist/types/error-response.d.ts.map +1 -1
- 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 +95 -90
- package/dist/types/pixiv-user.d.ts.map +1 -1
- package/dist/types/pixiv-user.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,44 +3,44 @@ import { OSFilter } from '../../../../options';
|
|
|
3
3
|
import { PrivacyPolicy } from '../../../pixiv-common';
|
|
4
4
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
5
5
|
/**
|
|
6
|
-
* GET /v1/illust/recommended
|
|
6
|
+
* Request for GET /v1/illust/recommended
|
|
7
7
|
*/
|
|
8
8
|
export interface GetV1IllustRecommendedRequest {
|
|
9
9
|
/**
|
|
10
|
-
* OS
|
|
10
|
+
* OS filter
|
|
11
11
|
*
|
|
12
12
|
* @default 'for_ios'
|
|
13
13
|
*/
|
|
14
14
|
filter: OSFilter;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Whether to include ranking illusts (?)
|
|
17
17
|
*
|
|
18
18
|
* @default true
|
|
19
19
|
* @beta
|
|
20
20
|
*/
|
|
21
21
|
include_ranking_illusts: boolean;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Minimum bookmark ID for recent illusts (?)
|
|
24
24
|
*
|
|
25
25
|
* @default undefined
|
|
26
26
|
* @beta
|
|
27
27
|
*/
|
|
28
28
|
min_bookmark_id_for_recent_illust?: number;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Maximum bookmark ID for recommended illusts (?)
|
|
31
31
|
*
|
|
32
32
|
* @default undefined
|
|
33
33
|
* @beta
|
|
34
34
|
*/
|
|
35
35
|
max_bookmark_id_for_recommend?: number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Offset
|
|
38
38
|
*
|
|
39
39
|
* @default undefined
|
|
40
40
|
*/
|
|
41
41
|
offset?: number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Whether to include the privacy policy (?)
|
|
44
44
|
*
|
|
45
45
|
* @default true
|
|
46
46
|
* @beta
|
|
@@ -48,31 +48,31 @@ export interface GetV1IllustRecommendedRequest {
|
|
|
48
48
|
include_privacy_policy: boolean;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* GET /v1/illust/recommended
|
|
51
|
+
* Response for GET /v1/illust/recommended
|
|
52
52
|
*/
|
|
53
53
|
export interface GetV1IllustRecommendedResponse {
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Recommended illusts
|
|
56
56
|
*/
|
|
57
57
|
illusts: PixivIllustItem[];
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Ranking illusts?
|
|
60
60
|
*
|
|
61
61
|
* @beta
|
|
62
62
|
*/
|
|
63
63
|
ranking_illusts: PixivIllustItem[];
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Whether a contest exists?
|
|
66
66
|
*
|
|
67
67
|
* @beta
|
|
68
68
|
*/
|
|
69
69
|
contest_exists: boolean;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Privacy policy
|
|
72
72
|
*/
|
|
73
73
|
privacy_policy?: PrivacyPolicy;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* URL to use for the next request.
|
|
76
76
|
*
|
|
77
77
|
* @see {Pixiv.parseQueryString}
|
|
78
78
|
*/
|
|
@@ -3,38 +3,38 @@ import { IllustSeriesDetail } from '../../../pixiv-illust-series';
|
|
|
3
3
|
import { OSFilter } from '../../../../options';
|
|
4
4
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
5
5
|
/**
|
|
6
|
-
* GET /v1/illust/series
|
|
6
|
+
* Request for GET /v1/illust/series
|
|
7
7
|
*/
|
|
8
8
|
export interface GetV1IllustSeriesRequest {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Illust series ID
|
|
11
11
|
*/
|
|
12
12
|
illust_series_id: number;
|
|
13
13
|
/**
|
|
14
|
-
* OS
|
|
14
|
+
* OS filter
|
|
15
15
|
*
|
|
16
16
|
* @default 'for_ios'
|
|
17
17
|
*/
|
|
18
18
|
filter: OSFilter;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* GET /v1/illust/series
|
|
21
|
+
* Response for GET /v1/illust/series
|
|
22
22
|
*/
|
|
23
23
|
export interface GetV1IllustSeriesResponse {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Series details
|
|
26
26
|
*/
|
|
27
27
|
illust_series_detail: IllustSeriesDetail;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* First illust in the series
|
|
30
30
|
*/
|
|
31
31
|
illust_series_first_illust: PixivIllustItem;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Illusts included in the series
|
|
34
34
|
*/
|
|
35
35
|
illusts: PixivIllustItem[];
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Next URL
|
|
38
38
|
*/
|
|
39
39
|
next_url: string | null;
|
|
40
40
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../../checks';
|
|
2
2
|
import { PixivUgoiraItem } from '../../../../pixiv-ugoira';
|
|
3
3
|
/**
|
|
4
|
-
* GET /v1/illust/ugoira/detail
|
|
4
|
+
* Request for GET /v1/illust/ugoira/detail
|
|
5
5
|
*/
|
|
6
6
|
export interface GetV1IllustUgoiraMetadataRequest {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Illust ID
|
|
9
9
|
*/
|
|
10
10
|
illust_id: number;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* GET /v1/illust/ugoira/detail
|
|
13
|
+
* Response for GET /v1/illust/ugoira/detail
|
|
14
14
|
*/
|
|
15
15
|
export interface GetV1IllustUgoiraMetadataResponse {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Ugoira details
|
|
18
18
|
*/
|
|
19
19
|
ugoira_metadata: PixivUgoiraItem;
|
|
20
20
|
}
|
|
@@ -3,37 +3,37 @@ import { OSFilter } from '../../../../options';
|
|
|
3
3
|
import { PrivacyPolicy } from '../../../pixiv-common';
|
|
4
4
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
5
5
|
/**
|
|
6
|
-
* GET /v1/manga/recommended
|
|
6
|
+
* Request for GET /v1/manga/recommended
|
|
7
7
|
*/
|
|
8
8
|
export interface GetV1MangaRecommendedRequest {
|
|
9
9
|
/**
|
|
10
|
-
* OS
|
|
10
|
+
* OS filter
|
|
11
11
|
*
|
|
12
12
|
* @default 'for_ios'
|
|
13
13
|
*/
|
|
14
14
|
filter: OSFilter;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Whether to include ranking illusts (?)
|
|
17
17
|
*
|
|
18
18
|
* @default true
|
|
19
19
|
* @beta
|
|
20
20
|
*/
|
|
21
21
|
include_ranking_illusts: boolean;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Maximum bookmark ID (?)
|
|
24
24
|
*
|
|
25
25
|
* @default undefined
|
|
26
26
|
* @beta
|
|
27
27
|
*/
|
|
28
28
|
max_bookmark_id?: number;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Offset
|
|
31
31
|
*
|
|
32
32
|
* @default undefined
|
|
33
33
|
*/
|
|
34
34
|
offset?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Whether to include the privacy policy (?)
|
|
37
37
|
*
|
|
38
38
|
* @default true
|
|
39
39
|
* @beta
|
|
@@ -41,25 +41,25 @@ export interface GetV1MangaRecommendedRequest {
|
|
|
41
41
|
include_privacy_policy: boolean;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* GET /v1/manga/recommended
|
|
44
|
+
* Response for GET /v1/manga/recommended
|
|
45
45
|
*/
|
|
46
46
|
export interface GetV1MangaRecommendedResponse {
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Recommended illusts
|
|
49
49
|
*/
|
|
50
50
|
illusts: PixivIllustItem[];
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Ranking illusts?
|
|
53
53
|
*
|
|
54
54
|
* @beta
|
|
55
55
|
*/
|
|
56
56
|
ranking_illusts: PixivIllustItem[];
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Privacy policy
|
|
59
59
|
*/
|
|
60
60
|
privacy_policy?: PrivacyPolicy;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* URL to use for the next request.
|
|
63
63
|
*
|
|
64
64
|
* @see {Pixiv.parseQueryString}
|
|
65
65
|
*/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* POST /v1/novel/bookmark/delete
|
|
2
|
+
* Request for POST /v1/novel/bookmark/delete
|
|
3
3
|
*/
|
|
4
4
|
export interface PostV1NovelBookmarkDeleteRequest {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Novel ID
|
|
7
7
|
*/
|
|
8
8
|
novel_id: string;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* POST /v1/novel/bookmark/delete
|
|
11
|
+
* Response for POST /v1/novel/bookmark/delete
|
|
12
12
|
*/
|
|
13
13
|
export type PostV1NovelBookmarkDeleteResponse = Record<string, never>;
|
|
14
14
|
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -2,32 +2,32 @@ import { RankingMode } from '../../../../options';
|
|
|
2
2
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
3
3
|
import { PixivNovelItem } from '../../../pixiv-novel';
|
|
4
4
|
/**
|
|
5
|
-
* GET /v1/novel/ranking
|
|
5
|
+
* Request for GET /v1/novel/ranking
|
|
6
6
|
*/
|
|
7
7
|
export interface GetV1NovelRankingRequest {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Ranking type
|
|
10
10
|
*/
|
|
11
11
|
mode: RankingMode;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Target date (YYYY-MM-DD. Defaults to today's date if unspecified)
|
|
14
14
|
*/
|
|
15
15
|
date?: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Offset
|
|
18
18
|
*/
|
|
19
19
|
offset?: number;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* GET /v1/novel/ranking
|
|
22
|
+
* Response for GET /v1/novel/ranking
|
|
23
23
|
*/
|
|
24
24
|
export interface GetV1NovelRankingResponse {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Novel details
|
|
27
27
|
*/
|
|
28
28
|
novels: PixivNovelItem[];
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* URL to use for the next request
|
|
31
31
|
*
|
|
32
32
|
* @see {Pixiv.parseQueryString}
|
|
33
33
|
*/
|
|
@@ -37,10 +37,10 @@ export declare class GetV1NovelRankingCheck extends BaseMultipleCheck<GetV1Novel
|
|
|
37
37
|
requestChecks(): CheckFunctions<GetV1NovelRankingRequest>;
|
|
38
38
|
responseChecks(): CheckFunctions<GetV1NovelRankingResponse>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Checks whether the date is in YYYY-MM-DD format
|
|
41
41
|
*
|
|
42
|
-
* @param date
|
|
43
|
-
* @returns YYYY-MM-DD
|
|
42
|
+
* @param date The date to check
|
|
43
|
+
* @returns true if it is in YYYY-MM-DD format
|
|
44
44
|
*/
|
|
45
45
|
checkDate(date: string): boolean;
|
|
46
46
|
}
|
|
@@ -25,10 +25,10 @@ class GetV1NovelRankingCheck extends checks_1.BaseMultipleCheck {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Checks whether the date is in YYYY-MM-DD format
|
|
29
29
|
*
|
|
30
|
-
* @param date
|
|
31
|
-
* @returns YYYY-MM-DD
|
|
30
|
+
* @param date The date to check
|
|
31
|
+
* @returns true if it is in YYYY-MM-DD format
|
|
32
32
|
*/
|
|
33
33
|
checkDate(date) {
|
|
34
34
|
const regex = /^\d{4}-\d{2}-\d{2}$/;
|
|
@@ -2,38 +2,38 @@ import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
|
2
2
|
import { PrivacyPolicy } from '../../../pixiv-common';
|
|
3
3
|
import { PixivNovelItem } from '../../../pixiv-novel';
|
|
4
4
|
/**
|
|
5
|
-
* GET /v1/novel/recommended
|
|
5
|
+
* Request for GET /v1/novel/recommended
|
|
6
6
|
*/
|
|
7
7
|
export interface GetV1NovelRecommendedRequest {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Whether to include ranking novels (?)
|
|
10
10
|
*
|
|
11
11
|
* @default true
|
|
12
12
|
* @beta
|
|
13
13
|
*/
|
|
14
14
|
include_ranking_novels: boolean;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* IDs of novels already recommended. Comma-separated (?)
|
|
17
17
|
*
|
|
18
18
|
* @default undefined
|
|
19
19
|
* @beta
|
|
20
20
|
*/
|
|
21
21
|
already_recommended?: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Maximum bookmark ID for recommended novels (?)
|
|
24
24
|
*
|
|
25
25
|
* @default undefined
|
|
26
26
|
* @beta
|
|
27
27
|
*/
|
|
28
28
|
max_bookmark_id_for_recommend?: number;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Offset
|
|
31
31
|
*
|
|
32
32
|
* @default undefined
|
|
33
33
|
*/
|
|
34
34
|
offset?: number;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Whether to include the privacy policy (?)
|
|
37
37
|
*
|
|
38
38
|
* @default true
|
|
39
39
|
* @beta
|
|
@@ -41,25 +41,25 @@ export interface GetV1NovelRecommendedRequest {
|
|
|
41
41
|
include_privacy_policy: boolean;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* GET /v1/novel/recommended
|
|
44
|
+
* Response for GET /v1/novel/recommended
|
|
45
45
|
*/
|
|
46
46
|
export interface GetV1NovelRecommendedResponse {
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Recommended novels
|
|
49
49
|
*/
|
|
50
50
|
novels: PixivNovelItem[];
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Ranking novels?
|
|
53
53
|
*
|
|
54
54
|
* @beta
|
|
55
55
|
*/
|
|
56
56
|
ranking_novels: PixivNovelItem[];
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Privacy policy
|
|
59
59
|
*/
|
|
60
60
|
privacy_policy?: PrivacyPolicy;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* URL to use for the next request.
|
|
63
63
|
*
|
|
64
64
|
* @see {Pixiv.parseQueryString}
|
|
65
65
|
*/
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
2
2
|
import { PixivNovelItem } from '../../../../types/pixiv-novel';
|
|
3
3
|
/**
|
|
4
|
-
* GET /v1/novel/related
|
|
4
|
+
* Request for GET /v1/novel/related
|
|
5
5
|
*/
|
|
6
6
|
export interface GetV1NovelRelatedRequest {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Novel ID
|
|
9
9
|
*/
|
|
10
10
|
novel_id: number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Array of seed novel IDs (?)
|
|
13
13
|
*/
|
|
14
14
|
seed_novel_ids?: number[];
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Viewed novel IDs
|
|
17
17
|
*/
|
|
18
18
|
viewed?: number[];
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* GET /v1/novel/related
|
|
21
|
+
* Response for GET /v1/novel/related
|
|
22
22
|
*/
|
|
23
23
|
export interface GetV1NovelRelatedResponse {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Novel details
|
|
26
26
|
*/
|
|
27
27
|
novels: PixivNovelItem[];
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Next URL
|
|
30
30
|
*/
|
|
31
31
|
next_url: string;
|
|
32
32
|
}
|
|
@@ -2,58 +2,58 @@ import { PixivIllustItem } from '../../../pixiv-illust';
|
|
|
2
2
|
import { OSFilter, SearchSort, SearchTarget } from '../../../../options';
|
|
3
3
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
4
4
|
/**
|
|
5
|
-
* GET /v1/search/illust
|
|
5
|
+
* Request for GET /v1/search/illust
|
|
6
6
|
*/
|
|
7
7
|
export interface GetV1SearchIllustRequest {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Search word
|
|
10
10
|
*/
|
|
11
11
|
word: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Search target
|
|
14
14
|
*
|
|
15
15
|
* @default 'partial_match_for_tags'
|
|
16
16
|
*/
|
|
17
17
|
search_target: SearchTarget;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sort order
|
|
20
20
|
*
|
|
21
21
|
* @default 'date_desc'
|
|
22
22
|
*/
|
|
23
23
|
sort: SearchSort;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Start date and time
|
|
26
26
|
*
|
|
27
27
|
* @default undefined
|
|
28
28
|
*/
|
|
29
29
|
start_date?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* End date and time
|
|
32
32
|
*
|
|
33
33
|
* @default undefined
|
|
34
34
|
*/
|
|
35
35
|
end_date?: string;
|
|
36
36
|
/**
|
|
37
|
-
* OS
|
|
37
|
+
* OS filter
|
|
38
38
|
*
|
|
39
39
|
* @default 'for_ios'
|
|
40
40
|
*/
|
|
41
41
|
filter?: OSFilter;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Offset
|
|
44
44
|
*
|
|
45
45
|
* @default undefined
|
|
46
46
|
*/
|
|
47
47
|
offset?: number;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Whether to merge plain keyword search results (?)
|
|
50
50
|
*
|
|
51
51
|
* @default true
|
|
52
52
|
* @beta
|
|
53
53
|
*/
|
|
54
54
|
merge_plain_keyword_results: boolean;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Whether to include translated tag search results
|
|
57
57
|
*
|
|
58
58
|
* @default true
|
|
59
59
|
* @beta
|
|
@@ -61,23 +61,23 @@ export interface GetV1SearchIllustRequest {
|
|
|
61
61
|
include_translated_tag_results: boolean;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* GET /v1/search/illust
|
|
64
|
+
* Response for GET /v1/search/illust
|
|
65
65
|
*/
|
|
66
66
|
export interface GetV1SearchIllustResponse {
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Search result illusts
|
|
69
69
|
*/
|
|
70
70
|
illusts: PixivIllustItem[];
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* URL to use for the next request.
|
|
73
73
|
*
|
|
74
74
|
* @see {Pixiv.parseQueryString}
|
|
75
75
|
*/
|
|
76
76
|
next_url: string | null;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Unknown
|
|
79
79
|
*
|
|
80
|
-
*
|
|
80
|
+
* Fixed at "31536000"? One year?
|
|
81
81
|
*
|
|
82
82
|
* @beta
|
|
83
83
|
*/
|
|
@@ -2,58 +2,58 @@ import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
|
2
2
|
import { OSFilter, SearchSort, SearchTarget } from '../../../../options';
|
|
3
3
|
import { PixivNovelItem } from '../../../pixiv-novel';
|
|
4
4
|
/**
|
|
5
|
-
* GET /v1/search/novel
|
|
5
|
+
* Request for GET /v1/search/novel
|
|
6
6
|
*/
|
|
7
7
|
export interface GetV1SearchNovelRequest {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Search word
|
|
10
10
|
*/
|
|
11
11
|
word: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Search target
|
|
14
14
|
*
|
|
15
15
|
* @default 'partial_match_for_tags'
|
|
16
16
|
*/
|
|
17
17
|
search_target: SearchTarget;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sort order
|
|
20
20
|
*
|
|
21
21
|
* @default 'date_desc'
|
|
22
22
|
*/
|
|
23
23
|
sort: SearchSort;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Start date and time
|
|
26
26
|
*
|
|
27
27
|
* @default undefined
|
|
28
28
|
*/
|
|
29
29
|
start_date?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* End date and time
|
|
32
32
|
*
|
|
33
33
|
* @default undefined
|
|
34
34
|
*/
|
|
35
35
|
end_date?: string;
|
|
36
36
|
/**
|
|
37
|
-
* OS
|
|
37
|
+
* OS filter
|
|
38
38
|
*
|
|
39
39
|
* @default 'for_ios'
|
|
40
40
|
*/
|
|
41
41
|
filter?: OSFilter;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Offset
|
|
44
44
|
*
|
|
45
45
|
* @default undefined
|
|
46
46
|
*/
|
|
47
47
|
offset?: number;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Whether to merge plain keyword search results (?)
|
|
50
50
|
*
|
|
51
51
|
* @default true
|
|
52
52
|
* @beta
|
|
53
53
|
*/
|
|
54
54
|
merge_plain_keyword_results: boolean;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Whether to include translated tag search results
|
|
57
57
|
*
|
|
58
58
|
* @default true
|
|
59
59
|
* @beta
|
|
@@ -61,23 +61,23 @@ export interface GetV1SearchNovelRequest {
|
|
|
61
61
|
include_translated_tag_results: boolean;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* GET /v1/search/novel
|
|
64
|
+
* Response for GET /v1/search/novel
|
|
65
65
|
*/
|
|
66
66
|
export interface GetV1SearchNovelResponse {
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Search result novels
|
|
69
69
|
*/
|
|
70
70
|
novels: PixivNovelItem[];
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* URL to use for the next request.
|
|
73
73
|
*
|
|
74
74
|
* @see {Pixiv.parseQueryString}
|
|
75
75
|
*/
|
|
76
76
|
next_url: string | null;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Unknown
|
|
79
79
|
*
|
|
80
|
-
*
|
|
80
|
+
* Fixed at "31536000"? One year?
|
|
81
81
|
*
|
|
82
82
|
* @beta
|
|
83
83
|
*/
|