@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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BaseSimpleCheck, CheckFunctions } from '../checks';
|
|
2
2
|
import { PixivUser } from './pixiv-common';
|
|
3
3
|
/**
|
|
4
|
-
* pixiv
|
|
4
|
+
* pixiv user item
|
|
5
5
|
*/
|
|
6
6
|
export type PixivUserItem = PixivUser & {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Self-introduction
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Line breaks appear to be \r\n.
|
|
11
11
|
*/
|
|
12
12
|
comment: string;
|
|
13
13
|
};
|
|
@@ -15,172 +15,172 @@ export declare class PixivUserItemCheck extends BaseSimpleCheck<PixivUserItem> {
|
|
|
15
15
|
checks(): CheckFunctions<PixivUserItem>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* pixiv
|
|
18
|
+
* Gender of the pixiv user
|
|
19
19
|
*/
|
|
20
20
|
export type Gender = 'male' | 'female' | 'unknown';
|
|
21
21
|
/**
|
|
22
|
-
* pixiv
|
|
22
|
+
* pixiv user profile
|
|
23
23
|
*/
|
|
24
24
|
export interface PixivUserProfile {
|
|
25
|
-
/**
|
|
25
|
+
/** Website */
|
|
26
26
|
webpage: string | null;
|
|
27
|
-
/**
|
|
27
|
+
/** Gender */
|
|
28
28
|
gender: Gender;
|
|
29
|
-
/**
|
|
29
|
+
/** Date of birth (YYYY-MM-DD) */
|
|
30
30
|
birth: string;
|
|
31
|
-
/**
|
|
31
|
+
/** Birthday (MM-DD) */
|
|
32
32
|
birth_day: string;
|
|
33
|
-
/**
|
|
33
|
+
/** Birth year (YYYY) */
|
|
34
34
|
birth_year: number;
|
|
35
|
-
/**
|
|
35
|
+
/** Address (country name, and prefecture if public, space-separated) */
|
|
36
36
|
region: string;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Prefecture number
|
|
39
39
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
40
|
+
* - 0: Private
|
|
41
|
+
* - 1-47: Prefecture number
|
|
42
|
+
* - 48: Outside Japan?
|
|
43
43
|
*/
|
|
44
44
|
address_id: number;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Country code
|
|
47
47
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
48
|
+
* - Empty string for Japan
|
|
49
|
+
* - ISO 3166-1 alpha-2 format
|
|
50
50
|
*/
|
|
51
51
|
country_code: string;
|
|
52
|
-
/**
|
|
52
|
+
/** Occupation */
|
|
53
53
|
job: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Occupation ID
|
|
56
56
|
*
|
|
57
|
-
*
|
|
58
|
-
* 0:
|
|
59
|
-
* 1: IT
|
|
60
|
-
* 2:
|
|
61
|
-
* 3:
|
|
62
|
-
* 4:
|
|
63
|
-
* 5:
|
|
64
|
-
* 6:
|
|
65
|
-
* 7:
|
|
66
|
-
* 8:
|
|
67
|
-
* 9:
|
|
68
|
-
* 10:
|
|
69
|
-
* 11:
|
|
70
|
-
* 12:
|
|
71
|
-
* 13:
|
|
72
|
-
* 14:
|
|
73
|
-
* 15:
|
|
74
|
-
* 16:
|
|
75
|
-
* 17:
|
|
76
|
-
* 18:
|
|
77
|
-
* 19:
|
|
78
|
-
* 20:
|
|
79
|
-
* 21:
|
|
80
|
-
* 22:
|
|
81
|
-
* 23:
|
|
57
|
+
* The numbering is as follows.
|
|
58
|
+
* 0: Unspecified or private
|
|
59
|
+
* 1: IT-related
|
|
60
|
+
* 2: Office work
|
|
61
|
+
* 3: Technical
|
|
62
|
+
* 4: Sales / planning
|
|
63
|
+
* 5: Creator
|
|
64
|
+
* 6: Sales
|
|
65
|
+
* 7: Service industry
|
|
66
|
+
* 8: Manual labor
|
|
67
|
+
* 9: Executive / manager
|
|
68
|
+
* 10: Specialist
|
|
69
|
+
* 11: Civil servant
|
|
70
|
+
* 12: Teacher
|
|
71
|
+
* 13: Self-employed
|
|
72
|
+
* 14: Artist
|
|
73
|
+
* 15: Freeter (part-time worker)
|
|
74
|
+
* 16: Elementary school student
|
|
75
|
+
* 17: Junior high school student
|
|
76
|
+
* 18: High school student
|
|
77
|
+
* 19: University / graduate student
|
|
78
|
+
* 20: Vocational school student
|
|
79
|
+
* 21: Homemaker
|
|
80
|
+
* 22: Job seeker
|
|
81
|
+
* 23: Other
|
|
82
82
|
*/
|
|
83
83
|
job_id: number;
|
|
84
|
-
/**
|
|
84
|
+
/** Number of users being followed */
|
|
85
85
|
total_follow_users: number;
|
|
86
|
-
/**
|
|
86
|
+
/** Number of "mypixiv" users */
|
|
87
87
|
total_mypixiv_users: number;
|
|
88
|
-
/**
|
|
88
|
+
/** Number of posted illusts */
|
|
89
89
|
total_illusts: number;
|
|
90
|
-
/**
|
|
90
|
+
/** Number of posted manga */
|
|
91
91
|
total_manga: number;
|
|
92
|
-
/**
|
|
92
|
+
/** Number of posted novels */
|
|
93
93
|
total_novels: number;
|
|
94
|
-
/**
|
|
94
|
+
/** Number of public bookmarks */
|
|
95
95
|
total_illust_bookmarks_public: number;
|
|
96
|
-
/**
|
|
96
|
+
/** Number of created illust series */
|
|
97
97
|
total_illust_series: number;
|
|
98
|
-
/**
|
|
98
|
+
/** Number of created novel series */
|
|
99
99
|
total_novel_series: number;
|
|
100
|
-
/**
|
|
100
|
+
/** Background image URL */
|
|
101
101
|
background_image_url: string | null;
|
|
102
102
|
/**
|
|
103
|
-
* Twitter
|
|
103
|
+
* Twitter account screen name
|
|
104
104
|
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
105
|
+
* - Empty string if not set
|
|
106
|
+
* - Does not include @
|
|
107
|
+
* - This is manually entered rather than linked, so it may not exist due to a screen name change, account deletion, etc.
|
|
108
|
+
* - Other services such as Instagram or Tumblr cannot be retrieved
|
|
109
109
|
*/
|
|
110
110
|
twitter_account: string;
|
|
111
|
-
/** Twitter
|
|
111
|
+
/** Twitter account URL */
|
|
112
112
|
twitter_url: string;
|
|
113
113
|
/**
|
|
114
|
-
* Pawoo
|
|
114
|
+
* Pawoo account URL
|
|
115
115
|
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
116
|
+
* - Only present if linked with a Pawoo account and "Show link to Pawoo account" is checked.
|
|
117
|
+
* - Empty string if not linked or not displayed
|
|
118
118
|
*/
|
|
119
119
|
pawoo_url: string;
|
|
120
|
-
/**
|
|
120
|
+
/** Whether it is a premium account */
|
|
121
121
|
is_premium: boolean;
|
|
122
|
-
/**
|
|
122
|
+
/** Whether a custom profile image is used */
|
|
123
123
|
is_using_custom_profile_image: boolean;
|
|
124
124
|
}
|
|
125
125
|
export declare class PixivUserProfileCheck extends BaseSimpleCheck<PixivUserProfile> {
|
|
126
126
|
checks(): CheckFunctions<PixivUserProfile>;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
|
-
* pixiv
|
|
129
|
+
* Visibility setting value for a pixiv user profile
|
|
130
130
|
*/
|
|
131
131
|
export type Publicity = 'public' | 'private' | 'mypixiv';
|
|
132
132
|
/**
|
|
133
|
-
* pixiv
|
|
133
|
+
* pixiv user profile visibility settings
|
|
134
134
|
*
|
|
135
|
-
*
|
|
136
|
-
* public
|
|
135
|
+
* Basically one of public, private, or mypixiv.
|
|
136
|
+
* public means visible to everyone, private means hidden, and mypixiv means visible only to "mypixiv" users.
|
|
137
137
|
*/
|
|
138
138
|
export interface PixivUserProfilePublicity {
|
|
139
|
-
/**
|
|
139
|
+
/** Gender */
|
|
140
140
|
gender: Publicity;
|
|
141
|
-
/**
|
|
141
|
+
/** Address (prefecture) */
|
|
142
142
|
region: Publicity;
|
|
143
|
-
/**
|
|
143
|
+
/** Birthday */
|
|
144
144
|
birth_day: Publicity;
|
|
145
|
-
/**
|
|
145
|
+
/** Birth year */
|
|
146
146
|
birth_year: Publicity;
|
|
147
|
-
/**
|
|
147
|
+
/** Occupation */
|
|
148
148
|
job: Publicity;
|
|
149
|
-
/** Pawoo
|
|
149
|
+
/** Whether to show a link to the Pawoo account */
|
|
150
150
|
pawoo: boolean;
|
|
151
151
|
}
|
|
152
152
|
export declare class PixivUserProfilePublicityCheck extends BaseSimpleCheck<PixivUserProfilePublicity> {
|
|
153
153
|
checks(): CheckFunctions<PixivUserProfilePublicity>;
|
|
154
154
|
}
|
|
155
155
|
/**
|
|
156
|
-
* pixiv
|
|
156
|
+
* pixiv user workspace information
|
|
157
157
|
*/
|
|
158
158
|
export interface PixivUserProfileWorkspace {
|
|
159
|
-
/**
|
|
159
|
+
/** Computer */
|
|
160
160
|
pc: string;
|
|
161
|
-
/**
|
|
161
|
+
/** Monitor */
|
|
162
162
|
monitor: string;
|
|
163
|
-
/**
|
|
163
|
+
/** Software */
|
|
164
164
|
tool: string;
|
|
165
|
-
/**
|
|
165
|
+
/** Scanner */
|
|
166
166
|
scanner: string;
|
|
167
|
-
/**
|
|
167
|
+
/** Tablet */
|
|
168
168
|
tablet: string;
|
|
169
|
-
/**
|
|
169
|
+
/** Mouse */
|
|
170
170
|
mouse: string;
|
|
171
|
-
/**
|
|
171
|
+
/** Printer */
|
|
172
172
|
printer: string;
|
|
173
|
-
/**
|
|
173
|
+
/** Items on the desk */
|
|
174
174
|
desktop: string;
|
|
175
|
-
/**
|
|
175
|
+
/** Music listened to while drawing */
|
|
176
176
|
music: string;
|
|
177
|
-
/**
|
|
177
|
+
/** Desk */
|
|
178
178
|
desk: string;
|
|
179
|
-
/**
|
|
179
|
+
/** Chair */
|
|
180
180
|
chair: string;
|
|
181
|
-
/**
|
|
181
|
+
/** Other */
|
|
182
182
|
comment: string;
|
|
183
|
-
/**
|
|
183
|
+
/** Image */
|
|
184
184
|
workspace_image_url: string | null;
|
|
185
185
|
}
|
|
186
186
|
export declare class PixivUserProfileWorkspaceCheck extends BaseSimpleCheck<PixivUserProfileWorkspace> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pixiv-user.d.ts","sourceRoot":"","sources":["../../src/types/pixiv-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAA;AAE1D;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG;IACtC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,qBAAa,kBAAmB,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