@ccw-api/api 0.8.0 → 0.9.1

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/index.cjs CHANGED
@@ -283,8 +283,8 @@ async function queryMallProducts(productCategory, pageArgs_ = {
283
283
  // src/community-web/creation/detail.ts
284
284
  var import_axios18 = require("@ccw-api/axios");
285
285
  var url18 = "https://community-web.ccw.site/creation/detail";
286
- async function getCreationDetail(oid, accessKey) {
287
- const req = { oid, accessKey };
286
+ async function getCreationDetail(oid, accessKey, mode = "") {
287
+ const req = { oid, accessKey, mode };
288
288
  return await import_axios18.ccwAxios.post(url18, req).then((res) => res.data.body);
289
289
  }
290
290
 
package/dist/index.d.cts CHANGED
@@ -2593,9 +2593,10 @@ type Res$q = Creation;
2593
2593
  * 获取作品详情
2594
2594
  * @param {MongoDBId} oid 作品id
2595
2595
  * @param {string} accessKey
2596
+ * @param {''|'EDIT'} mode
2596
2597
  * @returns {Promise<Creation>} 作品详情
2597
2598
  */
2598
- declare function getCreationDetail(oid: MongoDBId, accessKey: string): Promise<Res$q>;
2599
+ declare function getCreationDetail(oid: MongoDBId, accessKey: string, mode?: "" | "EDIT"): Promise<Res$q>;
2599
2600
 
2600
2601
  type KeypadConfig = {
2601
2602
  maxR: number;
package/dist/index.d.ts CHANGED
@@ -2593,9 +2593,10 @@ type Res$q = Creation;
2593
2593
  * 获取作品详情
2594
2594
  * @param {MongoDBId} oid 作品id
2595
2595
  * @param {string} accessKey
2596
+ * @param {''|'EDIT'} mode
2596
2597
  * @returns {Promise<Creation>} 作品详情
2597
2598
  */
2598
- declare function getCreationDetail(oid: MongoDBId, accessKey: string): Promise<Res$q>;
2599
+ declare function getCreationDetail(oid: MongoDBId, accessKey: string, mode?: "" | "EDIT"): Promise<Res$q>;
2599
2600
 
2600
2601
  type KeypadConfig = {
2601
2602
  maxR: number;
package/dist/index.js CHANGED
@@ -241,8 +241,8 @@ async function queryMallProducts(productCategory, pageArgs_ = {
241
241
  // src/community-web/creation/detail.ts
242
242
  import { ccwAxios as ccwAxios18 } from "@ccw-api/axios";
243
243
  var url18 = "https://community-web.ccw.site/creation/detail";
244
- async function getCreationDetail(oid, accessKey) {
245
- const req = { oid, accessKey };
244
+ async function getCreationDetail(oid, accessKey, mode = "") {
245
+ const req = { oid, accessKey, mode };
246
246
  return await ccwAxios18.post(url18, req).then((res) => res.data.body);
247
247
  }
248
248
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccw-api/api",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "ccw api collections",
5
5
  "license": "MIT",
6
6
  "author": "Meng Fuzi",
@@ -29,7 +29,7 @@
29
29
  "build": "tsup"
30
30
  },
31
31
  "dependencies": {
32
- "@ccw-api/axios": "^3.0.0"
32
+ "@ccw-api/axios": "^4.0.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/jest": "^30.0.0",