@book000/pixivts 0.64.0-beta.5 → 0.64.0-beta.7
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 -1
- package/dist/index.cjs +45 -0
- package/dist/index.d.cts +158 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +158 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1176,6 +1176,18 @@ var IllustResource = class {
|
|
|
1176
1176
|
})), this.#http, (page) => page.comments);
|
|
1177
1177
|
}
|
|
1178
1178
|
/**
|
|
1179
|
+
* Fetches replies to a comment on an illust.
|
|
1180
|
+
* GET /v2/illust/comment/replies
|
|
1181
|
+
*
|
|
1182
|
+
* @param params - Request parameters
|
|
1183
|
+
*/
|
|
1184
|
+
commentReplies(params) {
|
|
1185
|
+
return PaginatedResultAsync.fromResultAsync(this.#http.get("/v2/illust/comment/replies", buildParams({
|
|
1186
|
+
commentId: params.commentId,
|
|
1187
|
+
offset: params.offset
|
|
1188
|
+
})), this.#http, (page) => page.comments);
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1179
1191
|
* Fetches bookmark metadata (tags, visibility) for an illust.
|
|
1180
1192
|
* GET /v2/illust/bookmark/detail
|
|
1181
1193
|
*
|
|
@@ -1426,6 +1438,18 @@ var NovelResource = class {
|
|
|
1426
1438
|
})), this.#http, (page) => page.comments);
|
|
1427
1439
|
}
|
|
1428
1440
|
/**
|
|
1441
|
+
* Fetches replies to a comment on a novel.
|
|
1442
|
+
* GET /v2/novel/comment/replies
|
|
1443
|
+
*
|
|
1444
|
+
* @param params - Request parameters
|
|
1445
|
+
*/
|
|
1446
|
+
commentReplies(params) {
|
|
1447
|
+
return PaginatedResultAsync.fromResultAsync(this.#http.get("/v2/novel/comment/replies", buildParams({
|
|
1448
|
+
commentId: params.commentId,
|
|
1449
|
+
offset: params.offset
|
|
1450
|
+
})), this.#http, (page) => page.comments);
|
|
1451
|
+
}
|
|
1452
|
+
/**
|
|
1429
1453
|
* Fetches newly posted novels.
|
|
1430
1454
|
* GET /v1/novel/new
|
|
1431
1455
|
*
|
|
@@ -1519,6 +1543,9 @@ var UserResource = class {
|
|
|
1519
1543
|
* Fetches detailed profile information for a user.
|
|
1520
1544
|
* GET /v1/user/detail
|
|
1521
1545
|
*
|
|
1546
|
+
* See {@link UserResource.detailV2} for the v2 endpoint, which exposes
|
|
1547
|
+
* additional fields (`disabledLinks`, `profile.badge`).
|
|
1548
|
+
*
|
|
1522
1549
|
* @param params - Request parameters
|
|
1523
1550
|
*/
|
|
1524
1551
|
detail(params) {
|
|
@@ -1528,6 +1555,24 @@ var UserResource = class {
|
|
|
1528
1555
|
}));
|
|
1529
1556
|
}
|
|
1530
1557
|
/**
|
|
1558
|
+
* Fetches detailed profile information for a user using the v2 endpoint.
|
|
1559
|
+
* GET /v2/user/detail
|
|
1560
|
+
*
|
|
1561
|
+
* Unlike {@link UserResource.detail}, the response includes `disabledLinks`
|
|
1562
|
+
* and `profile.badge`, several profile values are `null` instead of empty
|
|
1563
|
+
* strings or `0`, and the v1-only fields (`profile.pawooUrl`,
|
|
1564
|
+
* `profile.totalIllustBookmarksPublic`, `profilePublicity.pawoo`,
|
|
1565
|
+
* `workspace.workspaceImageUrl`) are absent.
|
|
1566
|
+
*
|
|
1567
|
+
* @param params - Request parameters
|
|
1568
|
+
*/
|
|
1569
|
+
detailV2(params) {
|
|
1570
|
+
return this.#http.get("/v2/user/detail", buildParams({
|
|
1571
|
+
userId: params.userId,
|
|
1572
|
+
filter: params.filter ?? "for_ios"
|
|
1573
|
+
}));
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1531
1576
|
* Searches for users.
|
|
1532
1577
|
* GET /v1/search/user
|
|
1533
1578
|
*
|