@ccw-api/api 0.9.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 +2 -2
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
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
|
|