@ccw-api/api 0.11.0 → 1.0.0
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/LICENSE +9 -0
- package/README.md +58 -10
- package/dist/account-_e06LVHE.d.cts +6 -0
- package/dist/account-_e06LVHE.d.ts +6 -0
- package/dist/{api-eD9o12yg.d.cts → api-DK7ohLa7.d.cts} +9 -18
- package/dist/{api-eD9o12yg.d.ts → api-DK7ohLa7.d.ts} +9 -18
- package/dist/bfs-web-BtWTiGvL.cjs +1 -0
- package/dist/bfs-web-xFSpR-s6.js +1 -0
- package/dist/bfs.cjs +1 -0
- package/dist/bfs.d.cts +2 -0
- package/dist/bfs.d.ts +2 -0
- package/dist/bfs.js +1 -0
- package/dist/community-web-B7SGi5-y.cjs +1 -0
- package/dist/community-web-Dzl0mbbh.js +1 -0
- package/dist/community-web-cloud-database-BkH9wp1u.cjs +1 -0
- package/dist/community-web-cloud-database-D9IZZIjN.js +1 -0
- package/dist/communityWeb.cjs +1 -0
- package/dist/communityWeb.d.cts +2 -0
- package/dist/communityWeb.d.ts +2 -0
- package/dist/communityWeb.js +1 -0
- package/dist/communityWebDB.cjs +1 -0
- package/dist/communityWebDB.d.cts +2 -0
- package/dist/communityWebDB.d.ts +2 -0
- package/dist/communityWebDB.js +1 -0
- package/dist/extensions-BhEKLZ5I.d.cts +617 -0
- package/dist/extensions-D1JeVkuw.d.ts +617 -0
- package/dist/gandi-main-Bdq3vj-l.js +1 -0
- package/dist/gandi-main-CVC31Jom.cjs +1 -0
- package/dist/gandiMain.cjs +1 -0
- package/dist/gandiMain.d.cts +2 -0
- package/dist/gandiMain.d.ts +2 -0
- package/dist/gandiMain.js +1 -0
- package/dist/index-B8SvUvok.d.ts +112 -0
- package/dist/{index-DHBvF_JC.d.ts → index-BVdJi7l7.d.ts} +12 -10
- package/dist/{index-Df4POgQq.d.ts → index-CDuyecw5.d.ts} +12 -10
- package/dist/index-CV03H74N.d.cts +2351 -0
- package/dist/index-CobjrinB.d.ts +2351 -0
- package/dist/index-CwWMFbgH.d.cts +112 -0
- package/dist/{index-BE998Kka.d.cts → index-DCDRwVC2.d.cts} +79 -74
- package/dist/{index-BDpiLiUN.d.ts → index-DXMyzE0v.d.ts} +79 -74
- package/dist/{index-DBnhnINQ.d.cts → index-IcG5LsGk.d.cts} +12 -10
- package/dist/{index-CTK9UFeW.d.cts → index-JnYvwWhY.d.cts} +33 -30
- package/dist/{index-CTK9UFeW.d.ts → index-JnYvwWhY.d.ts} +33 -30
- package/dist/{index-DcBdyIv0.d.cts → index-sOyHrix1.d.cts} +12 -10
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +167 -164
- package/dist/index.d.ts +167 -164
- package/dist/index.js +1 -2
- package/dist/op-parent-api-BC6-0rS8.js +1 -0
- package/dist/op-parent-api-BZbZzfJ6.cjs +1 -0
- package/dist/opParent.cjs +1 -0
- package/dist/opParent.d.cts +2 -0
- package/dist/opParent.d.ts +2 -0
- package/dist/opParent.js +1 -0
- package/dist/pages-K5jlky49.d.cts +42 -0
- package/dist/pages-K5jlky49.d.ts +42 -0
- package/dist/queryPages-CfywLB4S.cjs +1 -0
- package/dist/queryPages-Cj4eQL4Q.js +1 -0
- package/dist/request-CIq4GGVU.cjs +1 -0
- package/dist/request-CzgJtv9u.js +1 -0
- package/dist/session-Cw37kR-m.d.ts +43 -0
- package/dist/session-D8sffvmq.d.cts +43 -0
- package/dist/sso-C0ZWQvKo.cjs +1 -0
- package/dist/sso-DUoym0qZ.js +1 -0
- package/dist/sso.cjs +1 -0
- package/dist/sso.d.cts +2 -0
- package/dist/sso.d.ts +2 -0
- package/dist/sso.js +1 -0
- package/package.json +9 -9
- package/dist/account-Dk_iscrW.d.cts +0 -8
- package/dist/account-Dk_iscrW.d.ts +0 -8
- package/dist/bfs-web/index.cjs +0 -2
- package/dist/bfs-web/index.d.cts +0 -5
- package/dist/bfs-web/index.d.ts +0 -5
- package/dist/bfs-web/index.global.js +0 -29
- package/dist/bfs-web/index.js +0 -2
- package/dist/community-web/index.cjs +0 -2
- package/dist/community-web/index.d.cts +0 -6
- package/dist/community-web/index.d.ts +0 -6
- package/dist/community-web/index.global.js +0 -29
- package/dist/community-web/index.js +0 -2
- package/dist/community-web-cloud-database/index.cjs +0 -2
- package/dist/community-web-cloud-database/index.d.cts +0 -2
- package/dist/community-web-cloud-database/index.d.ts +0 -2
- package/dist/community-web-cloud-database/index.global.js +0 -29
- package/dist/community-web-cloud-database/index.js +0 -2
- package/dist/extensions-Bj9XMupR.d.cts +0 -662
- package/dist/extensions-zuu8XVBR.d.ts +0 -662
- package/dist/gandi-main/index.cjs +0 -2
- package/dist/gandi-main/index.d.cts +0 -3
- package/dist/gandi-main/index.d.ts +0 -3
- package/dist/gandi-main/index.global.js +0 -29
- package/dist/gandi-main/index.js +0 -2
- package/dist/index-BrxSkWbg.d.cts +0 -2289
- package/dist/index-CYQhPzUX.d.ts +0 -108
- package/dist/index-Ci0X9uqV.d.cts +0 -108
- package/dist/index-DBAUdwJo.d.ts +0 -2289
- package/dist/index.global.js +0 -29
- package/dist/op-parent-api/index.cjs +0 -2
- package/dist/op-parent-api/index.d.cts +0 -1
- package/dist/op-parent-api/index.d.ts +0 -1
- package/dist/op-parent-api/index.global.js +0 -29
- package/dist/op-parent-api/index.js +0 -2
- package/dist/pages-BgT6bhJd.d.cts +0 -46
- package/dist/pages-BgT6bhJd.d.ts +0 -46
- package/dist/session-Cq-kUclp.d.ts +0 -48
- package/dist/session-DGUV-m-G.d.cts +0 -48
- package/dist/setToken.cjs +0 -1
- package/dist/setToken.d.cts +0 -1
- package/dist/setToken.d.ts +0 -1
- package/dist/setToken.global.js +0 -29
- package/dist/setToken.js +0 -1
- package/dist/sso/index.cjs +0 -2
- package/dist/sso/index.d.cts +0 -4
- package/dist/sso/index.d.ts +0 -4
- package/dist/sso/index.global.js +0 -29
- package/dist/sso/index.js +0 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Copyright © 2026 BenPaoDeXiaoZhi
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
8
|
+
|
|
9
|
+
Fork this project to create your own MIT license that you can always link to.
|
package/README.md
CHANGED
|
@@ -21,23 +21,72 @@ pnpm add @ccw-api/api
|
|
|
21
21
|
yarn add @ccw-api/api
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
>
|
|
25
|
-
> `@ccw-api/api` 已将常用的 token 设置方法 **`setToken` 重新导出**,无需再单独依赖 axios 包。
|
|
24
|
+
> **零运行时依赖**:本包不内置 HTTP 请求库,需由用户通过 `setRequestUtils` 提供 request 实现以缩小体积。
|
|
26
25
|
|
|
27
26
|
---
|
|
28
27
|
|
|
29
28
|
## 快速开始
|
|
30
29
|
|
|
31
|
-
### 1. 初始化
|
|
30
|
+
### 1. 初始化 Request(前置条件)
|
|
31
|
+
|
|
32
|
+
本包不内置 HTTP 请求库,需由用户提供 request 实现:
|
|
32
33
|
|
|
33
34
|
```ts
|
|
34
|
-
import {
|
|
35
|
+
import { setRequestUtils } from "@ccw-api/api";
|
|
36
|
+
|
|
37
|
+
// 使用 axios 作为底层请求库
|
|
38
|
+
import axios from "axios";
|
|
39
|
+
|
|
40
|
+
setRequestUtils({
|
|
41
|
+
async get(url) {
|
|
42
|
+
const res = await axios.get(url);
|
|
43
|
+
return { data: res.data };
|
|
44
|
+
},
|
|
45
|
+
async post(url, args) {
|
|
46
|
+
const res = await axios.post(url, args);
|
|
47
|
+
return { data: res.data };
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**RequestUtils 接口**:
|
|
35
53
|
|
|
36
|
-
|
|
37
|
-
|
|
54
|
+
```ts
|
|
55
|
+
interface RequestUtils {
|
|
56
|
+
get<Res = any>(url: string | URL): Promise<{ data: Res }>;
|
|
57
|
+
post<Res>(url: string | URL, args?: any): Promise<{ data: Res }>;
|
|
58
|
+
}
|
|
38
59
|
```
|
|
39
60
|
|
|
40
|
-
|
|
61
|
+
**完整示例(含 token 注入)**:
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
import { setRequestUtils } from "@ccw-api/api";
|
|
65
|
+
import axios from "axios";
|
|
66
|
+
|
|
67
|
+
const apiAxios = axios.create({
|
|
68
|
+
baseURL: "",
|
|
69
|
+
headers: {
|
|
70
|
+
"Content-Type": "application/json",
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// 注入 token(推荐使用拦截器)
|
|
75
|
+
apiAxios.interceptors.request.use((config) => {
|
|
76
|
+
// ....
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
setRequestUtils({
|
|
80
|
+
async get(url) {
|
|
81
|
+
const res = await apiAxios.get(String(url));
|
|
82
|
+
return { data: res.data };
|
|
83
|
+
},
|
|
84
|
+
async post(url, args) {
|
|
85
|
+
const res = await apiAxios.post(String(url), args);
|
|
86
|
+
return { data: res.data };
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
```
|
|
41
90
|
|
|
42
91
|
### 2. 调用方式
|
|
43
92
|
|
|
@@ -615,12 +664,11 @@ const p: PagesRes<Creation.Creation> = {
|
|
|
615
664
|
## 开发 & 发布
|
|
616
665
|
|
|
617
666
|
```bash
|
|
618
|
-
# 三产物构建(dist/
|
|
667
|
+
# 三产物构建(dist/ ESM + CJS + .d.ts)
|
|
619
668
|
npm run build
|
|
620
669
|
|
|
621
|
-
# 跑测试(node:test + tsx
|
|
670
|
+
# 跑测试(node:test + tsx)
|
|
622
671
|
npm test # 一次性全量
|
|
623
|
-
npm run test:dev # watch 模式(tsx watch)
|
|
624
672
|
|
|
625
673
|
# 文档(TypeDoc,生成到 doc/ 或默认输出目录)
|
|
626
674
|
npm run doc
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
declare namespace api_d_exports {
|
|
2
|
+
export { ApiResponse, CCWdomain, CNameOssUrl, HexSecTimeStamp, LatestCNameOssUrl, MongoDBId, OriginOssUrl, UUID };
|
|
3
|
+
}
|
|
1
4
|
/**
|
|
2
5
|
* 十六进制秒级时间戳
|
|
3
6
|
* @example const date = new Date(Number.parseInt(t, 16) * 1000);
|
|
@@ -11,10 +14,10 @@ type HexSecTimeStamp = string;
|
|
|
11
14
|
*/
|
|
12
15
|
type MongoDBId = `${HexSecTimeStamp}${string}`;
|
|
13
16
|
type ApiResponse<T> = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
body: T;
|
|
18
|
+
code: string;
|
|
19
|
+
msg: string;
|
|
20
|
+
status: number;
|
|
18
21
|
};
|
|
19
22
|
type CCWdomain = "xiguacity.cn" | "ccw.site";
|
|
20
23
|
type CNameOssUrl = `https://m.${CCWdomain}/${string}`;
|
|
@@ -25,17 +28,5 @@ type OriginOssUrl = `https://zhishi.oss-cn-beijing.aliyuncs.com/${string}`;
|
|
|
25
28
|
* @example "6839840e-aa50-47d4-8028-ae932bddfee7"
|
|
26
29
|
*/
|
|
27
30
|
type UUID = `${string}-${string}-${string}-${string}-${string}`;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
type api_CCWdomain = CCWdomain;
|
|
31
|
-
type api_CNameOssUrl = CNameOssUrl;
|
|
32
|
-
type api_HexSecTimeStamp = HexSecTimeStamp;
|
|
33
|
-
type api_LatestCNameOssUrl = LatestCNameOssUrl;
|
|
34
|
-
type api_MongoDBId = MongoDBId;
|
|
35
|
-
type api_OriginOssUrl = OriginOssUrl;
|
|
36
|
-
type api_UUID = UUID;
|
|
37
|
-
declare namespace api {
|
|
38
|
-
export type { api_ApiResponse as ApiResponse, api_CCWdomain as CCWdomain, api_CNameOssUrl as CNameOssUrl, api_HexSecTimeStamp as HexSecTimeStamp, api_LatestCNameOssUrl as LatestCNameOssUrl, api_MongoDBId as MongoDBId, api_OriginOssUrl as OriginOssUrl, api_UUID as UUID };
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { type CNameOssUrl as C, type MongoDBId as M, type OriginOssUrl as O, type UUID as U, api as a };
|
|
31
|
+
//#endregion
|
|
32
|
+
export { api_d_exports as a, UUID as i, MongoDBId as n, __exportAll as o, OriginOssUrl as r, CNameOssUrl as t };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
declare namespace api_d_exports {
|
|
2
|
+
export { ApiResponse, CCWdomain, CNameOssUrl, HexSecTimeStamp, LatestCNameOssUrl, MongoDBId, OriginOssUrl, UUID };
|
|
3
|
+
}
|
|
1
4
|
/**
|
|
2
5
|
* 十六进制秒级时间戳
|
|
3
6
|
* @example const date = new Date(Number.parseInt(t, 16) * 1000);
|
|
@@ -11,10 +14,10 @@ type HexSecTimeStamp = string;
|
|
|
11
14
|
*/
|
|
12
15
|
type MongoDBId = `${HexSecTimeStamp}${string}`;
|
|
13
16
|
type ApiResponse<T> = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
body: T;
|
|
18
|
+
code: string;
|
|
19
|
+
msg: string;
|
|
20
|
+
status: number;
|
|
18
21
|
};
|
|
19
22
|
type CCWdomain = "xiguacity.cn" | "ccw.site";
|
|
20
23
|
type CNameOssUrl = `https://m.${CCWdomain}/${string}`;
|
|
@@ -25,17 +28,5 @@ type OriginOssUrl = `https://zhishi.oss-cn-beijing.aliyuncs.com/${string}`;
|
|
|
25
28
|
* @example "6839840e-aa50-47d4-8028-ae932bddfee7"
|
|
26
29
|
*/
|
|
27
30
|
type UUID = `${string}-${string}-${string}-${string}-${string}`;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
type api_CCWdomain = CCWdomain;
|
|
31
|
-
type api_CNameOssUrl = CNameOssUrl;
|
|
32
|
-
type api_HexSecTimeStamp = HexSecTimeStamp;
|
|
33
|
-
type api_LatestCNameOssUrl = LatestCNameOssUrl;
|
|
34
|
-
type api_MongoDBId = MongoDBId;
|
|
35
|
-
type api_OriginOssUrl = OriginOssUrl;
|
|
36
|
-
type api_UUID = UUID;
|
|
37
|
-
declare namespace api {
|
|
38
|
-
export type { api_ApiResponse as ApiResponse, api_CCWdomain as CCWdomain, api_CNameOssUrl as CNameOssUrl, api_HexSecTimeStamp as HexSecTimeStamp, api_LatestCNameOssUrl as LatestCNameOssUrl, api_MongoDBId as MongoDBId, api_OriginOssUrl as OriginOssUrl, api_UUID as UUID };
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { type CNameOssUrl as C, type MongoDBId as M, type OriginOssUrl as O, type UUID as U, api as a };
|
|
31
|
+
//#endregion
|
|
32
|
+
export { api_d_exports as a, UUID as i, MongoDBId as n, __exportAll as o, OriginOssUrl as r, CNameOssUrl as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./request-CIq4GGVU.cjs"),t=require("./queryPages-CfywLB4S.cjs");async function n(n,r={sortField:`updatedAt`}){let i={...t.t,...r},a=t.n(`https://bfs-web.ccw.site/users/${n}/extensions`,i);return await e.t.get(a).then(e=>e.data.body)}async function r(t,n){let r={eid:t,bucks:n};return await e.t.post(`https://bfs-web.ccw.site/extensions/${t}/donate`,r).then(e=>e.data.body)}const i={donateExtension:r,getUserExtensions:n};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./request-CzgJtv9u.js";import{n as t,t as n}from"./queryPages-Cj4eQL4Q.js";async function r(r,i={sortField:`updatedAt`}){let a={...n,...i},o=t(`https://bfs-web.ccw.site/users/${r}/extensions`,a);return await e.get(o).then(e=>e.data.body)}async function i(t,n){let r={eid:t,bucks:n};return await e.post(`https://bfs-web.ccw.site/extensions/${t}/donate`,r).then(e=>e.data.body)}const a={donateExtension:i,getUserExtensions:r};export{a as t};
|
package/dist/bfs.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./bfs-web-BtWTiGvL.cjs");exports.bfsWeb=e.t;
|
package/dist/bfs.d.cts
ADDED
package/dist/bfs.d.ts
ADDED
package/dist/bfs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./bfs-web-xFSpR-s6.js";export{e as bfsWeb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./request-CIq4GGVU.cjs"),t=require("./queryPages-CfywLB4S.cjs");async function n(t,n,r,i){let a={origin:{inviterAvatar:n,inviterName:r,inviterId:t,inviterType:`STUDENT`,entrance:`create_detail`,creationOid:i}};return await e.t.post(`https://community-web.ccw.site/api/v1/short_code/encode`,a).then(e=>e.data.body)}async function r(t){let n={objectId:t,objectType:`STUDENT`};return await e.t.post(`https://community-web.ccw.site/approval/list`,n).then(e=>e.data.body)}async function i(){return e.t.post(`https://community-web.ccw.site/base/dateTime`,void 0).then(e=>e.data.body)}async function a(t){return await e.t.post(`https://community-web.ccw.site/campaign_resource/detail`,{keyword:t}).then(e=>e.data.body)}async function o(){return await e.t.post(`https://community-web.ccw.site/check_in_record/detail`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function s(){return await e.t.post(`https://community-web.ccw.site/check_in_record/insert`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function c(){return await e.t.post(`https://community-web.ccw.site/cloud_asset/user/privacy`,{}).then(e=>e.data.body)}const l={...t.t,sortField:`createdAt`};async function u(n,r=`/`,i={}){let a={...l,...i},o=t.n(`https://community-web.ccw.site/cloud_asset/search`,a),s={creatorOid:n,path:r};return await e.t.post(o,s).then(e=>e.data.body)}async function d(n,r,i=[`PUBLISHED`,`FOLDED`],a={sortField:`createdAt`}){let o={...t.t,...a},s=t.n(`https://community-web.ccw.site/comment/page`,o),c={topicId:n,parentId:r,statuses:i};return await e.t.post(s,c).then(e=>e.data.body)}const f={...t.t,sortField:`createdAt`};async function p(n,r,i,a={sortField:`createdAt`}){let o={...f,...a},s=t.n(`https://community-web.ccw.site/comment/page_by_topic`,o),c={subjectOid:n,subjectType:r,sectionType:i};return await e.t.post(s,c).then(e=>e.data.body)}async function m(t){let n={key:t};return await e.t.post(`https://community-web.ccw.site/config/detail`,n).then(e=>e.data.body)}async function h(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/ccw-mall/ccw/product/fe/query`,i),o={page:i.page,perPage:i.perPage,sortType:i.sortType,productCategory:n,source:`CCW_OFFICIAL`};return await e.t.post(a,o).then(e=>e.data.body)}async function g(t,n,r,i=`ORIGINAL`,a=`LANDSCAPE`,o=`PRIVATE`){let s={type:i,title:t,latestProjectLink:n,screenMode:a,artifactType:`STANDARD`,sourceOpenLevel:o,latestCoverLink:r};return await e.t.post(`https://community-web.ccw.site/creation/create`,s).then(e=>e.data.body)}async function _(t,n,r=``){let i={oid:t,accessKey:n,mode:r};return await e.t.post(`https://community-web.ccw.site/creation/detail`,i).then(e=>e.data.body)}async function v(t){let n={num:t};return await e.t.post(`https://community-web.ccw.site/creation/excellent/list`,n).then(e=>e.data.body)}async function y(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/creation/introduction/detail`,n).then(e=>e.data.body)}async function b(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/like/detail`,n).then(e=>e.data.body)}async function x(){return await e.t.post(`https://community-web.ccw.site/creation/loading/tips`,{}).then(e=>e.data.body)}const S={...t.t,sortField:`createdAt`};async function C(n,r={}){let i={...S,...r},a=t.n(`https://community-web.ccw.site/creation/page`,i),o={remixCreationOids:n};return await e.t.post(a,o).then(e=>e.data.body)}const w={...t.t,sortField:`createdAt`};async function T(n,r={}){let i={...w,...r},a=t.n(`https://community-web.ccw.site/creation/page_by_student`,i),o={studentOids:n};return await e.t.post(a,o).then(e=>e.data.body)}async function E(t){let n={num:t};return await e.t.post(`https://community-web.ccw.site/creation/potential/list`,n).then(e=>e.data.body)}const D={...t.t,sortField:`createdAt`};async function O(n,r={}){let i={...D,...r},a=t.n(`https://community-web.ccw.site/creation/recommend`,i),o={num:n,subjectType:`POTENTIAL`};return await e.t.post(a,o).then(e=>e.data.body)}async function k(t=4,n=8){let r={excellentCount:t,potentialCount:n};return await e.t.post(`https://community-web.ccw.site/recommend_creator/list`,r).then(e=>e.data.body)}const A={...t.t,sortField:`createdAt`};async function j(n,r={}){let i={...A,...r},a=t.n(`https://community-web.ccw.site/creation/search/page`,i);return await e.t.post(a,n).then(e=>e.data.body)}async function M(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/creation/student/detail`,n).then(e=>e.data.body)}async function N(){return await e.t.post(`https://community-web.ccw.site/creation/tag/list`,{visibility:`PUBLIC`}).then(e=>e.data.body)}async function P(t){let n={originUrl:t};return await e.t.post(`https://community-web.ccw.site/short_url/create`,n).then(e=>e.data.body)}async function F(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/hash_tag_creation/list_relation`,n).then(e=>e.data.body)}const I={...t.t,sortField:`lastPassedAt`};async function L(n,r,i={}){let a={...I,...i},o=t.n(`https://community-web.ccw.site/hash_tag_creation/mine`,a),s={...a,excludeHashTag:n,statuses:r};return await e.t.post(o,s).then(e=>e.data.body)}async function R(t){let n={identifier:t};return await e.t.post(`https://community-web.ccw.site/hash_tag/detail`,n).then(e=>e.data.body)}const z={...t.t,sortField:`createdAt`};async function B(n,r=[],i={}){let a={...z,...i},o=t.n(`https://community-web.ccw.site/hash_tag/managed/list`,a),s={...a,studentOid:n,excludeHashTagIds:r};return await e.t.post(o,s).then(e=>e.data.body)}async function V(t){let n={hashTagId:t};return await e.t.post(`https://community-web.ccw.site/hash_tag_favorite/detail`,n).then(e=>e.data.body)}async function H(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/creation_donated_record/ranking_list`,i),o={creationOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function U(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation_favorite/detail`,n).then(e=>e.data.body)}async function W(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation_recommend_position/list`,n).then(e=>e.data.body)}async function G(n,r={}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/creation_screenshot/page`,i),o={subjectOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function K(t,n=``){let r={oid:t,inviteCode:n};return await e.t.post(`https://community-web.ccw.site/creation_stats/view`,r).then(e=>e.data.body)}async function q(){return await e.t.post(`https://community-web.ccw.site/notify_message/show`,{type:`COMMENT_AUDIT`}).then(e=>e.data.body)}async function J(t){let n={slug:t};return await e.t.post(`https://community-web.ccw.site/post/detail`,n).then(e=>e.data.body)}async function Y(t){let n={length:t};return await e.t.post(`https://community-web.ccw.site/search/hot_words`,n).then(e=>e.data.body)}async function X(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/student/block_record/detail`,n).then(e=>e.data.body)}async function Z(n={sortField:`createdAt`}){let r={...t.t,...n},i=t.n(`https://community-web.ccw.site/student/block_record/list`,r);return await e.t.post(i,{}).then(e=>e.data.body)}async function Q(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/student/block_record/status`,n).then(e=>e.data.body)}async function $(){return await e.t.post(`https://community-web.ccw.site/students/creator_score`,void 0).then(e=>e.data.body)}async function ee(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/students/last_active_at`,n).then(e=>e.data.body)}async function te(t){let n={studentOids:t};return await e.t.post(`https://community-web.ccw.site/students/list`,n).then(e=>e.data.body)}async function ne(n={sortField:`createdAt`}){let r={...t.t,...n},i=t.n(`https://community-web.ccw.site/students/list_sessions`,r);return await e.t.post(i,{}).then(e=>e.data.body)}async function re(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/students/profile`,n).then(e=>e.data.body)}async function ie(n={sortField:`createdAt`}){let r={...t.t,...n},i=t.n(`https://community-web.ccw.site/students/reputation_score_log/page`,r);return await e.t.post(i,{}).then(e=>e.data.body)}async function ae(t,n,r){let i={needGrade:t,needExtraInfo:n,fields:r};return await e.t.post(`https://community-web.ccw.site/students/self/detail`,i).then(e=>e.data.body)}async function oe(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/students/stats`,n).then(e=>e.data.body)}async function se(t,n,r,i,a,o,s,c,l){let u={gender:t,hideGender:n,fullName:r,birthday:i,programmingCapability:a,school:o,qq:s,hobbies:c,learnedProgrammingLanguages:l};return await e.t.post(`https://community-web.ccw.site/students/update`,u).then(e=>e.data.body)}async function ce(){return await e.t.post(`https://community-web.ccw.site/study-community/member/detail`,{}).then(e=>e.data.body)}async function le(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/study-community/spread_feed/unread/count`,n).then(e=>e.data.body)}async function ue(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/subject_area/page`,i),o={scene:n};return await e.t.post(a,o).then(e=>e.data.body)}async function de(n,r={sortField:`campaignResourceId`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/subject_area/page_by_channel`,i),o={channel:n,scene:`CUSTOM_PAGE`};return await e.t.post(a,o).then(e=>e.data.body)}async function fe(t){let n={taskOid:t};return await e.t.post(`https://community-web.ccw.site/task/award`,n).then(e=>e.data.body)}async function pe(){return await e.t.post(`https://community-web.ccw.site/task/mine`,{scene:`checkIn`}).then(e=>e.data.body)}async function me(t){let n={oid:t};return await e.t.post(`https://community-web.ccw.site/user-card/detail`,n).then(e=>e.data.body)}async function he(){return await e.t.post(`https://community-web.ccw.site/user_label/list`,{}).then(e=>e.data.body)}async function ge(){return await e.t.post(`https://community-web.ccw.site/currency/account/personal`).then(e=>e.data.body)}async function _e(){return await e.t.post(`https://community-web.ccw.site/emoji/all`,{}).then(e=>e.data.body)}async function ve(){return await e.t.post(`https://community-web.ccw.site/emoji/category/list`,{}).then(e=>e.data.body)}async function ye(n=`ENABLED`,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/emoji/page`,i),o={page:i.page,perPage:i.perPage,status:n};return await e.t.post(a,o).then(e=>e.data.body)}async function be(t){let n={actionId:t};return await e.t.post(`https://community-web.ccw.site/event`,n).then(e=>e.data.body)}async function xe(){return await e.t.post(`https://community-web.ccw.site/health/check`).then(e=>e.data.body)}async function Se(t){let n={advertisementId:t};return await e.t.post(`https://community-web.ccw.site/leaflets/item/list`,n).then(e=>e.data.body)}async function Ce(t){let n={accountOid:t};return await e.t.post(`https://community-web.ccw.site/locked_user/detail`,n).then(e=>e.data.body)}async function we(t){let n={studentNumber:t};return await e.t.post(`https://community-web.ccw.site/muted_user/detail`,n).then(e=>e.data.body)}async function Te(n=`COMMENT_TO_ME`,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/notification/page`,i),o={notifyGroup:n,page:i.page};return await e.t.post(a,o).then(e=>e.data.body)}async function Ee(t=!0){let n={countAll:t};return await e.t.post(`https://community-web.ccw.site/notification/stats/v2`,n).then(e=>e.data.body)}async function De(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/typical_project/page`,i),o={studentOid:n,templateType:`APPLICATION`};return await e.t.post(a,o).then(e=>e.data.body)}async function Oe(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/typical_project/student/unread_count`,n).then(e=>e.data.body)}async function ke(n={sortField:`updatedAt`},r=[`BANNED`,`PUBLISHED`,`REJECTED`,`SUBMITTED`],i=!1){let a={...t.t,...n},o=t.n(`https://community-web.ccw.site/creation/own/page`,a),s={statuses:r,ignoreTypicalProject:i};return await e.t.post(o,s).then(e=>e.data.body)}async function Ae(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch`,n).then(e=>e.data.body)}async function je(t,n=`MEMBER`){let r={creationOid:t,authority:n};return await e.t.post(`https://community-web.ccw.site/creation/team_member/invite_token/fetch`,r).then(e=>e.data.body)}async function Me(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/team_member/produce_ticket`,n).then(e=>e.data.body)}async function Ne(t,n){let r={creationOid:t,authorities:n};return await e.t.post(`https://community-web.ccw.site/creation/team_member/list`,r).then(e=>e.data.body)}async function Pe(n,r,i={sortField:`createdAt`}){let a={...t.t,...i},o=t.n(`https://community-web.ccw.site/creation/teamwork_log/page`,a),s={creationId:n,operateTargets:r},c=await e.t.post(o,s).then(e=>e.data.body),{data:l}=c,u=l.map(e=>{let{content:t}=e;return{...e,content:JSON.parse(t)}});return{...c,data:u}}async function Fe(t,n,r=`LANDSCAPE`,i){if(!n.includes(`t=`)){let e=new URL(n);e.searchParams.set(`t`,Date.now().toString()),n=e.toString()}let a={oid:t,latestProjectLink:n,screenMode:r,latestCoverLink:i};return await e.t.post(`https://community-web.ccw.site/creation/update`,a).then(e=>e.data.body)}async function Ie(t){return await e.t.post(`https://community-web.ccw.site/creation/submit`,t).then(e=>e.data.body)}async function Le(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/detail`,n).then(e=>e.data.body)}async function Re(t,n,r=`86`){let i={phone:t,code:n,ruleCode:`ccw_sms`,scene:`bindPhone`,countryCode:r};return await e.t.post(`https://community-web.ccw.site/students/bind_phone`,i).then(e=>e.data.body)}async function ze(t,n){let r={newPassword:t,code:n};return await e.t.post(`https://community-web.ccw.site/students/password/change`,r).then(e=>e.data.body)}async function Be(t=`change_password`,n=`86`,r=`ccw_sms`,i=`SMS`){let a={type:i,countryCode:n,scene:t,ruleCode:r};return await e.t.post(`https://community-web.ccw.site/captcha/v2/create_by_session`,a).then(e=>e.data.body)}async function Ve(t,n){let r={creationOid:t,memberSplitDetails:n};return await e.t.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/create`,r).then(e=>e.data.body)}async function He(t){let n={creationOid:t},r=await e.t.post(`https://community-web.ccw.site/creation_attribute/detail`,n).then(e=>e.data.body);if(r===null)return null;let{ext:{KEYPAD_CONFIG:i}}=r,a=JSON.parse(i);return{...r,ext:{KEYPAD_CONFIG:a}}}async function Ue(t){let n={creationOid:t,type:`DAY`};return await e.t.post(`https://community-web.ccw.site/creation_activity_stats/list`,n).then(e=>e.data.body)}async function We(n,r={sortField:`submittedAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/creation_release/page`,i),o={creationOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function Ge(t,n){let r={creationOid:t,creationReleaseOid:n};return await e.t.post(`https://community-web.ccw.site/creation_release/code_profiling/detail`,r).then(e=>e.data.body)}async function Ke(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/historical_team_member/page`,i),o={creationOid:n,page:i.page,perPage:i.perPage};return await e.t.post(a,o).then(e=>e.data.body)}async function qe(t){let n={shortUrlCode:t};return await e.t.post(`https://community-web.ccw.site/short_url/decompress`,n).then(e=>e.data.body)}async function Je(){return await e.t.post(`https://community-web.ccw.site/hash_tag/recommend/list`).then(e=>e.data.body)}async function Ye(){return await e.t.post(`https://community-web.ccw.site/ccw-main/status`,{}).then(e=>e.data.body)}async function Xe(t,n){let r={projectId:t,variables:n};return await e.t.post(`https://community-web.ccw.site/study-community/cloud_variable/create`,r).then(e=>e.data.body)}async function Ze(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/top`,n).then(e=>e.data.body)}async function Qe(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/fold`,n).then(e=>e.data.body)}async function $e(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/reset_weight`,n).then(e=>e.data.body)}async function et(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/delete`,n).then(e=>e.data.body)}async function tt(t,n,r){n.outline??=`foo`;let i={content:t,topic:n,sectionType:r};return await e.t.post(`https://community-web.ccw.site/comment/create`,i).then(e=>e.data.body)}async function nt(t){let n={commentId:t};return await e.t.post(`https://community-web.ccw.site/comment/like_record/create`,n).then(e=>e.data.body)}async function rt(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/student/following/page`,i),o={studentOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function it(t,n,r=`CREATION`){let i={bucks:t,objectId:n,objectType:r};return await e.t.post(`https://community-web.ccw.site/study-trade/trade/donate`,i).then(e=>e.data.body)}async function at(n=5,r={}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/user_package/user_product`,i),o={page:i.page,perPage:i.perPage,sortType:i.sortType,productCategory:n};return await e.t.post(a,o).then(e=>e.data.body)}async function ot(t,n){let r={status:n,id:t};return await e.t.post(`https://community-web.ccw.site/user_package/status`,r).then(e=>e.data.body)}async function st(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/great_creation/update`,n).then(e=>e.data.body)}async function ct(t,n,r,i,a=`CREATION`){let o={bizId:t,bizType:a,id:n,ruleId:r,params:{bucks:i}};return await e.t.post(`https://community-web.ccw.site/smart_contract/execute`,o).then(e=>e.data.body)}async function lt(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/smart_contract/account`,n).then(e=>e.data.body)}async function ut(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/smart_contract/detail`,n).then(e=>e.data.body)}async function dt(t,n=`CREATION`){let r={bizId:t,bizType:n};return await e.t.post(`https://community-web.ccw.site/smart_contract/list`,r).then(e=>e.data.body)}async function ft(t,n){let r={playingCreationOid:t,userOid:n};return await e.t.post(`https://community-web.ccw.site/extensions/following/status`,r).then(e=>e.data.body)}async function pt(t,n){let r={playingCreationOid:t,creationOid:n};return await e.t.post(`https://community-web.ccw.site/extensions/creation-like/detail`,r).then(e=>e.data.body)}async function mt(t){let n={followingOid:t};return await e.t.post(`https://community-web.ccw.site/study-community/following/follow`,n).then(e=>e.data.body)}async function ht(t){let n={followingOid:t};return await e.t.post(`https://community-web.ccw.site/study-community/following/unfollow`,n).then(e=>e.data.body)}const gt={acceptAward:fe,bindStudentPhone:Re,changeStudentPassword:ze,createCreation:g,donateTrade:it,encodeShortCode:n,executeSmartContract:ct,fetchMemberInviteToken:je,fetchObserverInviteToken:Ae,createCloudVariable:Xe,createComment:tt,createShortUrl:P,createSmsCaptchaBySession:Be,createSplitRule:Ve,decompressShortUrl:qe,deleteComment:et,foldComment:Qe,followCreator:mt,unfollowCreator:ht,getApprovalTags:r,getCampaignResources:a,getCcwMainStatus:Ye,getCheckInRecords:o,getCodeProfilingDetail:Ge,getCommentReplies:d,getCommentsByTopic:p,getConfigDetail:m,getCreationActivityStatsList:Ue,getCreationAttributeDetail:He,getCreationDetail:_,getCreationFavoriteDetail:U,getCreationIntroduction:y,getConnectCommunityCreationLikeStatus:pt,getCreationRecommendPositionList:W,getCreationReleasePage:We,getCreationScreenshotPage:G,getCreationStudentDetail:M,getCreationTags:N,getCreatorScore:$,getDonatedRecordRanking:H,getExcellentCreations:v,getConnectCommunityFollowingStatus:ft,getEmojiCategoryList:ve,getEmojiPage:ye,getAllEmojis:_e,getHashTagDetail:R,getHashTagFavoriteDetail:V,getHistoricalTeamMemberPage:Ke,getManagedHashTags:B,getHealthCheck:xe,getLeafletsItemList:Se,getLikeDetail:b,getLoadingTips:x,getLockedUserDetail:Ce,getMutedUserDetail:we,getMyHashTagCreations:L,getMyTasks:pe,getNotifyDeleteReasons:q,getNotificationPage:Te,getNotificationStats:Ee,getOwnCreationPage:ke,getPersonalCurrencyAccount:ge,getPlanetsOfCreation:F,getPostDetail:J,getPotentialCreations:E,getRecommendCreations:O,getRecommendCreators:k,getRecommendHashTags:Je,getRemixedCreationPage:C,getReputationScoreLogPage:ie,getSearchHotWords:Y,getSmartContractAccount:lt,getSmartContractDetail:ut,getSmartContractList:dt,getSplitRuleDetail:Le,getSpreadFeedUnreadCount:le,getStudentBlockRecordDetail:X,getStudentBlockRecordList:Z,getStudentBlockStatus:Q,getStudentFollowingPage:rt,getStudentLastActiveAt:ee,getStudentProfile:re,getStudentSelfDetail:ae,getStudentSessions:ne,getStudentsList:te,getStudentStats:oe,getStudyCommunityMemberDetail:ce,getSubjectAreaPage:ue,getSubjectAreaPageByChannel:de,getTeamMemberList:Ne,getTeamworkLogPage:Pe,getTime:i,getTypicalProjectPage:De,getTypicalProjectUnreadCount:Oe,getUserAssetStorageSize:c,getUserCardDetail:me,getUserLabelList:he,getUserProductsPage:at,queryMallProducts:h,getCreationsByStudent:T,insertCheckInRecord:s,likeComment:nt,produceTeamMemberTicket:Me,resetCommentWeight:$e,searchCloudAssets:u,searchCreationsByTag:j,sendEvent:be,setUserProductStatus:ot,submitCreation:Ie,topComment:Ze,updateCreation:Fe,updateGreatCreation:st,updateStudent:se,viewCreationStats:K};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return gt}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./request-CzgJtv9u.js";import{n as t,t as n}from"./queryPages-Cj4eQL4Q.js";async function r(t,n,r,i){let a={origin:{inviterAvatar:n,inviterName:r,inviterId:t,inviterType:`STUDENT`,entrance:`create_detail`,creationOid:i}};return await e.post(`https://community-web.ccw.site/api/v1/short_code/encode`,a).then(e=>e.data.body)}async function i(t){let n={objectId:t,objectType:`STUDENT`};return await e.post(`https://community-web.ccw.site/approval/list`,n).then(e=>e.data.body)}async function a(){return e.post(`https://community-web.ccw.site/base/dateTime`,void 0).then(e=>e.data.body)}async function o(t){return await e.post(`https://community-web.ccw.site/campaign_resource/detail`,{keyword:t}).then(e=>e.data.body)}async function s(){return await e.post(`https://community-web.ccw.site/check_in_record/detail`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function c(){return await e.post(`https://community-web.ccw.site/check_in_record/insert`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function l(){return await e.post(`https://community-web.ccw.site/cloud_asset/user/privacy`,{}).then(e=>e.data.body)}const u={...n,sortField:`createdAt`};async function ee(n,r=`/`,i={}){let a=t(`https://community-web.ccw.site/cloud_asset/search`,{...u,...i}),o={creatorOid:n,path:r};return await e.post(a,o).then(e=>e.data.body)}async function te(r,i,a=[`PUBLISHED`,`FOLDED`],o={sortField:`createdAt`}){let s=t(`https://community-web.ccw.site/comment/page`,{...n,...o}),c={topicId:r,parentId:i,statuses:a};return await e.post(s,c).then(e=>e.data.body)}const d={...n,sortField:`createdAt`};async function f(n,r,i,a={sortField:`createdAt`}){let o=t(`https://community-web.ccw.site/comment/page_by_topic`,{...d,...a}),s={subjectOid:n,subjectType:r,sectionType:i};return await e.post(o,s).then(e=>e.data.body)}async function p(t){let n={key:t};return await e.post(`https://community-web.ccw.site/config/detail`,n).then(e=>e.data.body)}async function m(r,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/ccw-mall/ccw/product/fe/query`,a),s={page:a.page,perPage:a.perPage,sortType:a.sortType,productCategory:r,source:`CCW_OFFICIAL`};return await e.post(o,s).then(e=>e.data.body)}async function h(t,n,r,i=`ORIGINAL`,a=`LANDSCAPE`,o=`PRIVATE`){let s={type:i,title:t,latestProjectLink:n,screenMode:a,artifactType:`STANDARD`,sourceOpenLevel:o,latestCoverLink:r};return await e.post(`https://community-web.ccw.site/creation/create`,s).then(e=>e.data.body)}async function g(t,n,r=``){let i={oid:t,accessKey:n,mode:r};return await e.post(`https://community-web.ccw.site/creation/detail`,i).then(e=>e.data.body)}async function _(t){let n={num:t};return await e.post(`https://community-web.ccw.site/creation/excellent/list`,n).then(e=>e.data.body)}async function v(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/creation/introduction/detail`,n).then(e=>e.data.body)}async function y(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/like/detail`,n).then(e=>e.data.body)}async function b(){return await e.post(`https://community-web.ccw.site/creation/loading/tips`,{}).then(e=>e.data.body)}const x={...n,sortField:`createdAt`};async function S(n,r={}){let i=t(`https://community-web.ccw.site/creation/page`,{...x,...r}),a={remixCreationOids:n};return await e.post(i,a).then(e=>e.data.body)}const C={...n,sortField:`createdAt`};async function w(n,r={}){let i=t(`https://community-web.ccw.site/creation/page_by_student`,{...C,...r}),a={studentOids:n};return await e.post(i,a).then(e=>e.data.body)}async function T(t){let n={num:t};return await e.post(`https://community-web.ccw.site/creation/potential/list`,n).then(e=>e.data.body)}const E={...n,sortField:`createdAt`};async function D(n,r={}){let i=t(`https://community-web.ccw.site/creation/recommend`,{...E,...r}),a={num:n,subjectType:`POTENTIAL`};return await e.post(i,a).then(e=>e.data.body)}async function O(t=4,n=8){let r={excellentCount:t,potentialCount:n};return await e.post(`https://community-web.ccw.site/recommend_creator/list`,r).then(e=>e.data.body)}const k={...n,sortField:`createdAt`};async function A(n,r={}){let i=t(`https://community-web.ccw.site/creation/search/page`,{...k,...r});return await e.post(i,n).then(e=>e.data.body)}async function j(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/creation/student/detail`,n).then(e=>e.data.body)}async function M(){return await e.post(`https://community-web.ccw.site/creation/tag/list`,{visibility:`PUBLIC`}).then(e=>e.data.body)}async function N(t){let n={originUrl:t};return await e.post(`https://community-web.ccw.site/short_url/create`,n).then(e=>e.data.body)}async function P(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/hash_tag_creation/list_relation`,n).then(e=>e.data.body)}const F={...n,sortField:`lastPassedAt`};async function I(n,r,i={}){let a={...F,...i},o=t(`https://community-web.ccw.site/hash_tag_creation/mine`,a),s={...a,excludeHashTag:n,statuses:r};return await e.post(o,s).then(e=>e.data.body)}async function L(t){let n={identifier:t};return await e.post(`https://community-web.ccw.site/hash_tag/detail`,n).then(e=>e.data.body)}const R={...n,sortField:`createdAt`};async function z(n,r=[],i={}){let a={...R,...i},o=t(`https://community-web.ccw.site/hash_tag/managed/list`,a),s={...a,studentOid:n,excludeHashTagIds:r};return await e.post(o,s).then(e=>e.data.body)}async function B(t){let n={hashTagId:t};return await e.post(`https://community-web.ccw.site/hash_tag_favorite/detail`,n).then(e=>e.data.body)}async function V(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/creation_donated_record/ranking_list`,{...n,...i}),o={creationOid:r};return await e.post(a,o).then(e=>e.data.body)}async function H(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation_favorite/detail`,n).then(e=>e.data.body)}async function U(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation_recommend_position/list`,n).then(e=>e.data.body)}async function W(r,i={}){let a=t(`https://community-web.ccw.site/creation_screenshot/page`,{...n,...i}),o={subjectOid:r};return await e.post(a,o).then(e=>e.data.body)}async function G(t,n=``){let r={oid:t,inviteCode:n};return await e.post(`https://community-web.ccw.site/creation_stats/view`,r).then(e=>e.data.body)}async function K(){return await e.post(`https://community-web.ccw.site/notify_message/show`,{type:`COMMENT_AUDIT`}).then(e=>e.data.body)}async function q(t){let n={slug:t};return await e.post(`https://community-web.ccw.site/post/detail`,n).then(e=>e.data.body)}async function J(t){let n={length:t};return await e.post(`https://community-web.ccw.site/search/hot_words`,n).then(e=>e.data.body)}async function Y(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/student/block_record/detail`,n).then(e=>e.data.body)}async function X(r={sortField:`createdAt`}){let i=t(`https://community-web.ccw.site/student/block_record/list`,{...n,...r});return await e.post(i,{}).then(e=>e.data.body)}async function Z(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/student/block_record/status`,n).then(e=>e.data.body)}async function Q(){return await e.post(`https://community-web.ccw.site/students/creator_score`,void 0).then(e=>e.data.body)}async function ne(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/students/last_active_at`,n).then(e=>e.data.body)}async function re(t){let n={studentOids:t};return await e.post(`https://community-web.ccw.site/students/list`,n).then(e=>e.data.body)}async function ie(r={sortField:`createdAt`}){let i=t(`https://community-web.ccw.site/students/list_sessions`,{...n,...r});return await e.post(i,{}).then(e=>e.data.body)}async function ae(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/students/profile`,n).then(e=>e.data.body)}async function oe(r={sortField:`createdAt`}){let i=t(`https://community-web.ccw.site/students/reputation_score_log/page`,{...n,...r});return await e.post(i,{}).then(e=>e.data.body)}async function se(t,n,r){let i={needGrade:t,needExtraInfo:n,fields:r};return await e.post(`https://community-web.ccw.site/students/self/detail`,i).then(e=>e.data.body)}async function ce(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/students/stats`,n).then(e=>e.data.body)}async function le(t,n,r,i,a,o,s,c,l){let u={gender:t,hideGender:n,fullName:r,birthday:i,programmingCapability:a,school:o,qq:s,hobbies:c,learnedProgrammingLanguages:l};return await e.post(`https://community-web.ccw.site/students/update`,u).then(e=>e.data.body)}async function ue(){return await e.post(`https://community-web.ccw.site/study-community/member/detail`,{}).then(e=>e.data.body)}async function de(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/study-community/spread_feed/unread/count`,n).then(e=>e.data.body)}async function fe(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/subject_area/page`,{...n,...i}),o={scene:r};return await e.post(a,o).then(e=>e.data.body)}async function pe(r,i={sortField:`campaignResourceId`}){let a=t(`https://community-web.ccw.site/subject_area/page_by_channel`,{...n,...i}),o={channel:r,scene:`CUSTOM_PAGE`};return await e.post(a,o).then(e=>e.data.body)}async function me(t){let n={taskOid:t};return await e.post(`https://community-web.ccw.site/task/award`,n).then(e=>e.data.body)}async function he(){return await e.post(`https://community-web.ccw.site/task/mine`,{scene:`checkIn`}).then(e=>e.data.body)}async function ge(t){let n={oid:t};return await e.post(`https://community-web.ccw.site/user-card/detail`,n).then(e=>e.data.body)}async function _e(){return await e.post(`https://community-web.ccw.site/user_label/list`,{}).then(e=>e.data.body)}async function ve(){return await e.post(`https://community-web.ccw.site/currency/account/personal`).then(e=>e.data.body)}async function ye(){return await e.post(`https://community-web.ccw.site/emoji/all`,{}).then(e=>e.data.body)}async function be(){return await e.post(`https://community-web.ccw.site/emoji/category/list`,{}).then(e=>e.data.body)}async function xe(r=`ENABLED`,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/emoji/page`,a),s={page:a.page,perPage:a.perPage,status:r};return await e.post(o,s).then(e=>e.data.body)}async function Se(t){let n={actionId:t};return await e.post(`https://community-web.ccw.site/event`,n).then(e=>e.data.body)}async function Ce(){return await e.post(`https://community-web.ccw.site/health/check`).then(e=>e.data.body)}async function we(t){let n={advertisementId:t};return await e.post(`https://community-web.ccw.site/leaflets/item/list`,n).then(e=>e.data.body)}async function Te(t){let n={accountOid:t};return await e.post(`https://community-web.ccw.site/locked_user/detail`,n).then(e=>e.data.body)}async function Ee(t){let n={studentNumber:t};return await e.post(`https://community-web.ccw.site/muted_user/detail`,n).then(e=>e.data.body)}async function De(r=`COMMENT_TO_ME`,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/notification/page`,a),s={notifyGroup:r,page:a.page};return await e.post(o,s).then(e=>e.data.body)}async function Oe(t=!0){let n={countAll:t};return await e.post(`https://community-web.ccw.site/notification/stats/v2`,n).then(e=>e.data.body)}async function ke(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/typical_project/page`,{...n,...i}),o={studentOid:r,templateType:`APPLICATION`};return await e.post(a,o).then(e=>e.data.body)}async function Ae(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/typical_project/student/unread_count`,n).then(e=>e.data.body)}async function je(r={sortField:`updatedAt`},i=[`BANNED`,`PUBLISHED`,`REJECTED`,`SUBMITTED`],a=!1){let o=t(`https://community-web.ccw.site/creation/own/page`,{...n,...r}),s={statuses:i,ignoreTypicalProject:a};return await e.post(o,s).then(e=>e.data.body)}async function Me(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch`,n).then(e=>e.data.body)}async function Ne(t,n=`MEMBER`){let r={creationOid:t,authority:n};return await e.post(`https://community-web.ccw.site/creation/team_member/invite_token/fetch`,r).then(e=>e.data.body)}async function Pe(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/team_member/produce_ticket`,n).then(e=>e.data.body)}async function Fe(t,n){let r={creationOid:t,authorities:n};return await e.post(`https://community-web.ccw.site/creation/team_member/list`,r).then(e=>e.data.body)}async function Ie(r,i,a={sortField:`createdAt`}){let o=t(`https://community-web.ccw.site/creation/teamwork_log/page`,{...n,...a}),s={creationId:r,operateTargets:i},c=await e.post(o,s).then(e=>e.data.body),{data:l}=c,u=l.map(e=>{let{content:t}=e;return{...e,content:JSON.parse(t)}});return{...c,data:u}}async function Le(t,n,r=`LANDSCAPE`,i){if(!n.includes(`t=`)){let e=new URL(n);e.searchParams.set(`t`,Date.now().toString()),n=e.toString()}let a={oid:t,latestProjectLink:n,screenMode:r,latestCoverLink:i};return await e.post(`https://community-web.ccw.site/creation/update`,a).then(e=>e.data.body)}async function Re(t){return await e.post(`https://community-web.ccw.site/creation/submit`,t).then(e=>e.data.body)}async function ze(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/detail`,n).then(e=>e.data.body)}async function Be(t,n,r=`86`){let i={phone:t,code:n,ruleCode:`ccw_sms`,scene:`bindPhone`,countryCode:r};return await e.post(`https://community-web.ccw.site/students/bind_phone`,i).then(e=>e.data.body)}async function Ve(t,n){let r={newPassword:t,code:n};return await e.post(`https://community-web.ccw.site/students/password/change`,r).then(e=>e.data.body)}async function He(t=`change_password`,n=`86`,r=`ccw_sms`,i=`SMS`){let a={type:i,countryCode:n,scene:t,ruleCode:r};return await e.post(`https://community-web.ccw.site/captcha/v2/create_by_session`,a).then(e=>e.data.body)}async function Ue(t,n){let r={creationOid:t,memberSplitDetails:n};return await e.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/create`,r).then(e=>e.data.body)}async function We(t){let n={creationOid:t},r=await e.post(`https://community-web.ccw.site/creation_attribute/detail`,n).then(e=>e.data.body);if(r===null)return null;let{ext:{KEYPAD_CONFIG:i}}=r,a=JSON.parse(i);return{...r,ext:{KEYPAD_CONFIG:a}}}async function Ge(t){let n={creationOid:t,type:`DAY`};return await e.post(`https://community-web.ccw.site/creation_activity_stats/list`,n).then(e=>e.data.body)}async function Ke(r,i={sortField:`submittedAt`}){let a=t(`https://community-web.ccw.site/creation_release/page`,{...n,...i}),o={creationOid:r};return await e.post(a,o).then(e=>e.data.body)}async function qe(t,n){let r={creationOid:t,creationReleaseOid:n};return await e.post(`https://community-web.ccw.site/creation_release/code_profiling/detail`,r).then(e=>e.data.body)}async function Je(r,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/historical_team_member/page`,a),s={creationOid:r,page:a.page,perPage:a.perPage};return await e.post(o,s).then(e=>e.data.body)}async function Ye(t){let n={shortUrlCode:t};return await e.post(`https://community-web.ccw.site/short_url/decompress`,n).then(e=>e.data.body)}async function Xe(){return await e.post(`https://community-web.ccw.site/hash_tag/recommend/list`).then(e=>e.data.body)}async function Ze(){return await e.post(`https://community-web.ccw.site/ccw-main/status`,{}).then(e=>e.data.body)}async function Qe(t,n){let r={projectId:t,variables:n};return await e.post(`https://community-web.ccw.site/study-community/cloud_variable/create`,r).then(e=>e.data.body)}async function $e(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/top`,n).then(e=>e.data.body)}async function et(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/fold`,n).then(e=>e.data.body)}async function tt(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/reset_weight`,n).then(e=>e.data.body)}async function $(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/delete`,n).then(e=>e.data.body)}async function nt(t,n,r){n.outline??=`foo`;let i={content:t,topic:n,sectionType:r};return await e.post(`https://community-web.ccw.site/comment/create`,i).then(e=>e.data.body)}async function rt(t){let n={commentId:t};return await e.post(`https://community-web.ccw.site/comment/like_record/create`,n).then(e=>e.data.body)}async function it(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/student/following/page`,{...n,...i}),o={studentOid:r};return await e.post(a,o).then(e=>e.data.body)}async function at(t,n,r=`CREATION`){let i={bucks:t,objectId:n,objectType:r};return await e.post(`https://community-web.ccw.site/study-trade/trade/donate`,i).then(e=>e.data.body)}async function ot(r=5,i={}){let a={...n,...i},o=t(`https://community-web.ccw.site/user_package/user_product`,a),s={page:a.page,perPage:a.perPage,sortType:a.sortType,productCategory:r};return await e.post(o,s).then(e=>e.data.body)}async function st(t,n){let r={status:n,id:t};return await e.post(`https://community-web.ccw.site/user_package/status`,r).then(e=>e.data.body)}async function ct(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/great_creation/update`,n).then(e=>e.data.body)}async function lt(t,n,r,i,a=`CREATION`){let o={bizId:t,bizType:a,id:n,ruleId:r,params:{bucks:i}};return await e.post(`https://community-web.ccw.site/smart_contract/execute`,o).then(e=>e.data.body)}async function ut(t){let n={id:t};return await e.post(`https://community-web.ccw.site/smart_contract/account`,n).then(e=>e.data.body)}async function dt(t){let n={id:t};return await e.post(`https://community-web.ccw.site/smart_contract/detail`,n).then(e=>e.data.body)}async function ft(t,n=`CREATION`){let r={bizId:t,bizType:n};return await e.post(`https://community-web.ccw.site/smart_contract/list`,r).then(e=>e.data.body)}async function pt(t,n){let r={playingCreationOid:t,userOid:n};return await e.post(`https://community-web.ccw.site/extensions/following/status`,r).then(e=>e.data.body)}async function mt(t,n){let r={playingCreationOid:t,creationOid:n};return await e.post(`https://community-web.ccw.site/extensions/creation-like/detail`,r).then(e=>e.data.body)}async function ht(t){let n={followingOid:t};return await e.post(`https://community-web.ccw.site/study-community/following/follow`,n).then(e=>e.data.body)}async function gt(t){let n={followingOid:t};return await e.post(`https://community-web.ccw.site/study-community/following/unfollow`,n).then(e=>e.data.body)}const _t={acceptAward:me,bindStudentPhone:Be,changeStudentPassword:Ve,createCreation:h,donateTrade:at,encodeShortCode:r,executeSmartContract:lt,fetchMemberInviteToken:Ne,fetchObserverInviteToken:Me,createCloudVariable:Qe,createComment:nt,createShortUrl:N,createSmsCaptchaBySession:He,createSplitRule:Ue,decompressShortUrl:Ye,deleteComment:$,foldComment:et,followCreator:ht,unfollowCreator:gt,getApprovalTags:i,getCampaignResources:o,getCcwMainStatus:Ze,getCheckInRecords:s,getCodeProfilingDetail:qe,getCommentReplies:te,getCommentsByTopic:f,getConfigDetail:p,getCreationActivityStatsList:Ge,getCreationAttributeDetail:We,getCreationDetail:g,getCreationFavoriteDetail:H,getCreationIntroduction:v,getConnectCommunityCreationLikeStatus:mt,getCreationRecommendPositionList:U,getCreationReleasePage:Ke,getCreationScreenshotPage:W,getCreationStudentDetail:j,getCreationTags:M,getCreatorScore:Q,getDonatedRecordRanking:V,getExcellentCreations:_,getConnectCommunityFollowingStatus:pt,getEmojiCategoryList:be,getEmojiPage:xe,getAllEmojis:ye,getHashTagDetail:L,getHashTagFavoriteDetail:B,getHistoricalTeamMemberPage:Je,getManagedHashTags:z,getHealthCheck:Ce,getLeafletsItemList:we,getLikeDetail:y,getLoadingTips:b,getLockedUserDetail:Te,getMutedUserDetail:Ee,getMyHashTagCreations:I,getMyTasks:he,getNotifyDeleteReasons:K,getNotificationPage:De,getNotificationStats:Oe,getOwnCreationPage:je,getPersonalCurrencyAccount:ve,getPlanetsOfCreation:P,getPostDetail:q,getPotentialCreations:T,getRecommendCreations:D,getRecommendCreators:O,getRecommendHashTags:Xe,getRemixedCreationPage:S,getReputationScoreLogPage:oe,getSearchHotWords:J,getSmartContractAccount:ut,getSmartContractDetail:dt,getSmartContractList:ft,getSplitRuleDetail:ze,getSpreadFeedUnreadCount:de,getStudentBlockRecordDetail:Y,getStudentBlockRecordList:X,getStudentBlockStatus:Z,getStudentFollowingPage:it,getStudentLastActiveAt:ne,getStudentProfile:ae,getStudentSelfDetail:se,getStudentSessions:ie,getStudentsList:re,getStudentStats:ce,getStudyCommunityMemberDetail:ue,getSubjectAreaPage:fe,getSubjectAreaPageByChannel:pe,getTeamMemberList:Fe,getTeamworkLogPage:Ie,getTime:a,getTypicalProjectPage:ke,getTypicalProjectUnreadCount:Ae,getUserAssetStorageSize:l,getUserCardDetail:ge,getUserLabelList:_e,getUserProductsPage:ot,queryMallProducts:m,getCreationsByStudent:w,insertCheckInRecord:c,likeComment:rt,produceTeamMemberTicket:Pe,resetCommentWeight:tt,searchCloudAssets:ee,searchCreationsByTag:A,sendEvent:Se,setUserProductStatus:st,submitCreation:Re,topComment:$e,updateCreation:Le,updateGreatCreation:ct,updateStudent:le,viewCreationStats:G};export{_t as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./request-CIq4GGVU.cjs");async function t(t,n,r){let i={primaryKey:t,secondaryKey:n,value:r};return await e.t.post(`https://community-web-cloud-database.ccw.site/cloud_variable/save`,i).then(e=>e.data.body)}async function n(e,n,r){return await t(e,n,{v:r})}async function r(e,n,r){return await t(`${e}-u`,`${n}`,r)}async function i(t,n,r,i){let a={accessKey:t,primaryKey:n,secondaryKey:r,filterKeys:i};return await e.t.post(`https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2`,a).then(e=>e.data.body)}const a={saveProjectCloudVariable:n,saveUserCloudVariable:r,getCloudVariableDetailV2:i};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./request-CzgJtv9u.js";async function t(t,n,r){let i={primaryKey:t,secondaryKey:n,value:r};return await e.post(`https://community-web-cloud-database.ccw.site/cloud_variable/save`,i).then(e=>e.data.body)}async function n(e,n,r){return await t(e,n,{v:r})}async function r(e,n,r){return await t(`${e}-u`,`${n}`,r)}async function i(t,n,r,i){let a={accessKey:t,primaryKey:n,secondaryKey:r,filterKeys:i};return await e.post(`https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2`,a).then(e=>e.data.body)}const a={saveProjectCloudVariable:n,saveUserCloudVariable:r,getCloudVariableDetailV2:i};export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./community-web-B7SGi5-y.cjs");exports.communityWeb=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./community-web-Dzl0mbbh.js";export{e as communityWeb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./community-web-cloud-database-BkH9wp1u.cjs");exports.communityWebCloudDatabase=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./community-web-cloud-database-D9IZZIjN.js";export{e as communityWebCloudDatabase};
|