@ccw-api/api 0.10.1 → 0.10.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 +64 -6
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +304 -230
- package/dist/index.d.ts +304 -230
- package/dist/index.global.js +5 -5
- package/dist/index.js +1 -1
- package/package.json +9 -7
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ await logoutBySession(12345);
|
|
|
85
85
|
// 手机号+短信验证码登录(V3)
|
|
86
86
|
await loginByPhone("12345671145", "123456");
|
|
87
87
|
|
|
88
|
-
//
|
|
88
|
+
// 发送短信验证码(图形验证码可选,用于登录/注册场景)
|
|
89
89
|
await createSmsCaptcha("10011451919");
|
|
90
90
|
```
|
|
91
91
|
|
|
@@ -93,7 +93,7 @@ await createSmsCaptcha("10011451919");
|
|
|
93
93
|
|
|
94
94
|
## 模块二:Community-Web(community-web.ccw.site)
|
|
95
95
|
|
|
96
|
-
覆盖作品 / 学生 / 星球 / 评论 / 通知 / 任务 / 表情 / 签到 / 云资产 / 学科专区 / 打赏 / 商城 / 商品 等业务领域,共 **
|
|
96
|
+
覆盖作品 / 学生 / 星球 / 评论 / 通知 / 任务 / 表情 / 签到 / 云资产 / 学科专区 / 打赏 / 商城 / 商品 / 协作成员 等业务领域,共 **114 个 API**。
|
|
97
97
|
下面是常用场景示例。
|
|
98
98
|
|
|
99
99
|
### 学生与作品
|
|
@@ -118,6 +118,23 @@ const creations = await communityWeb.getCreationsByStudent(
|
|
|
118
118
|
console.log(creations.totalNum, creations.data[0].title);
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
+
### 学生账号管理(绑定手机、修改密码)
|
|
122
|
+
|
|
123
|
+
```ts
|
|
124
|
+
// 绑定手机号(需要 token)
|
|
125
|
+
await communityWeb.bindStudentPhone(
|
|
126
|
+
"13800138000", // 手机号
|
|
127
|
+
"123456", // 短信验证码
|
|
128
|
+
"86", // 国家代码
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
// 修改密码(需要 token + 短信验证码,无需旧密码)
|
|
132
|
+
// Step 1:先通过 session 发送短信验证码(手机号从登录 session 获取)
|
|
133
|
+
await communityWeb.createSmsCaptchaBySession("change_password");
|
|
134
|
+
// Step 2:用收到的验证码设置新密码
|
|
135
|
+
await communityWeb.changeStudentPassword("我的新密码123", "短信验证码");
|
|
136
|
+
```
|
|
137
|
+
|
|
121
138
|
### 星球(HashTag)与作品关联
|
|
122
139
|
|
|
123
140
|
```ts
|
|
@@ -325,6 +342,31 @@ await communityWeb.setUserProductStatus(false, 105847); // id, status=false
|
|
|
325
342
|
await communityWeb.setUserProductStatus(true, 105847);
|
|
326
343
|
```
|
|
327
344
|
|
|
345
|
+
### 协作成员邀请(作品团队协作)
|
|
346
|
+
|
|
347
|
+
```ts
|
|
348
|
+
const CREATION_OID = "68ce4849811b737483bf7027";
|
|
349
|
+
|
|
350
|
+
// 获取普通成员(MEMBER)邀请 token(需要 token)
|
|
351
|
+
const memberToken = await communityWeb.fetchMemberInviteToken(
|
|
352
|
+
CREATION_OID,
|
|
353
|
+
"MEMBER", // 或 "ADMIN"
|
|
354
|
+
);
|
|
355
|
+
// → 拼接成完整邀请链接:https://ccw.site/creation/.../join?token={memberToken}
|
|
356
|
+
|
|
357
|
+
// 获取观察者(OBSERVER)邀请 token(需要 token)
|
|
358
|
+
const observerToken = await communityWeb.fetchObserverInviteToken(CREATION_OID);
|
|
359
|
+
|
|
360
|
+
// 查询当前作品的协作成员列表(需要 token)
|
|
361
|
+
const members = await communityWeb.getTeamMemberList(CREATION_OID);
|
|
362
|
+
|
|
363
|
+
// 生成成员加入凭证(配合邀请链接,需要 token)
|
|
364
|
+
await communityWeb.produceTeamMemberTicket(CREATION_OID, memberToken);
|
|
365
|
+
|
|
366
|
+
// 查询协作日志分页(需要 token)
|
|
367
|
+
const logs = await communityWeb.getTeamworkLogPage(CREATION_OID, { page: 1 });
|
|
368
|
+
```
|
|
369
|
+
|
|
328
370
|
### 更换代表作
|
|
329
371
|
|
|
330
372
|
```ts
|
|
@@ -472,21 +514,37 @@ const result = await opParentApi.checkCaptcha(captcha.token, 120, 5);
|
|
|
472
514
|
// 生成短链
|
|
473
515
|
await communityWeb.createShortUrl("https://ccw.site/detail/xxx");
|
|
474
516
|
|
|
517
|
+
// 还原短链(需要 token)
|
|
518
|
+
await communityWeb.decompressShortUrl("abc123");
|
|
519
|
+
|
|
475
520
|
// 生成邀请码(api/v1/short_code/encode)
|
|
476
521
|
await communityWeb.encodeShortCode("hello world", 1, 6);
|
|
477
522
|
|
|
478
523
|
// 服务器时间
|
|
479
524
|
await communityWeb.getTime();
|
|
480
525
|
|
|
526
|
+
// CCW 主服务状态(需要 token,返回服务运行状态)
|
|
527
|
+
await communityWeb.getCcwMainStatus();
|
|
528
|
+
|
|
481
529
|
// 埋点事件上报
|
|
482
530
|
await communityWeb.sendEvent("creation_detail_view_6880873d2211fa69e41c9d19");
|
|
483
531
|
|
|
532
|
+
// 通过登录 session 发送短信验证码(需要 token,用于重置密码,手机号从 session 获取)
|
|
533
|
+
await communityWeb.createSmsCaptchaBySession("change_password");
|
|
534
|
+
// → { batchId: "xxx", sendResult: 1 }(sendResult=1 表示成功)
|
|
535
|
+
|
|
484
536
|
// 广告横幅
|
|
485
537
|
await communityWeb.getLeafletsItemList(1001);
|
|
486
538
|
|
|
487
539
|
// 学科专区(分页 / 按频道)
|
|
488
540
|
await communityWeb.getSubjectAreaPage({ page: 1, perPage: 20 });
|
|
489
541
|
await communityWeb.getSubjectAreaPageByChannel("PRIMARY");
|
|
542
|
+
|
|
543
|
+
// 搜索热词
|
|
544
|
+
await communityWeb.getSearchHotWords();
|
|
545
|
+
|
|
546
|
+
// 创建作品(需要 token)
|
|
547
|
+
await communityWeb.createCreation("我的作品标题", "作品描述");
|
|
490
548
|
```
|
|
491
549
|
|
|
492
550
|
---
|
|
@@ -557,12 +615,12 @@ const p: PagesRes<Creation.Creation> = {
|
|
|
557
615
|
## 开发 & 发布
|
|
558
616
|
|
|
559
617
|
```bash
|
|
560
|
-
# 三产物构建(node
|
|
618
|
+
# 三产物构建(dist/node CJS + dist/esm ESM + dist .d.ts)
|
|
561
619
|
npm run build
|
|
562
620
|
|
|
563
|
-
# 跑测试(
|
|
564
|
-
npm test
|
|
565
|
-
npm run test:dev
|
|
621
|
+
# 跑测试(node:test + tsx,132 tests)
|
|
622
|
+
npm test # 一次性全量
|
|
623
|
+
npm run test:dev # watch 模式(tsx watch)
|
|
566
624
|
|
|
567
625
|
# 文档(TypeDoc,生成到 doc/ 或默认输出目录)
|
|
568
626
|
npm run doc
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var ms=Object.create;var u=Object.defineProperty;var ds=Object.getOwnPropertyDescriptor;var us=Object.getOwnPropertyNames;var gs=Object.getPrototypeOf,ls=Object.prototype.hasOwnProperty;var Rs=(e,t)=>{for(var o in t)u(e,o,{get:t[o],enumerable:!0})},w=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of us(t))!ls.call(e,s)&&s!==o&&u(e,s,{get:()=>t[s],enumerable:!(r=ds(t,s))||r.enumerable});return e};var P=(e,t,o)=>(o=e!=null?ms(gs(e)):{},w(t||!e||!e.__esModule?u(o,"default",{value:e,enumerable:!0}):o,e)),ys=e=>w(u({},"__esModule",{value:!0}),e);var Ki={};Rs(Ki,{bfsWeb:()=>A,communityWeb:()=>R,communityWebCloudDatabase:()=>b,default:()=>Hi,gandiMain:()=>x,opParentApi:()=>f,setToken:()=>cs.setToken,sso:()=>l});module.exports=ys(Ki);var C=require("@ccw-api/axios"),xs="https://sso.ccw.site/web/auth/login-by-password";async function S(e,t,o={device:"Node",browser:"Node.js"}){let r={loginKey:e,password:t,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})},{extra:s,...n}=await C.ccwAxios.post(xs,r).then(c=>c.data.body),a=JSON.parse(s);return{...n,extra:a}}var h=require("@ccw-api/axios"),As="https://sso.ccw.site/web/auth/logout";async function I(){return await h.ccwAxios.post(As,{}).then(e=>e.data.body)}var T=require("@ccw-api/axios"),bs="https://sso.ccw.site/web/auth/logout_by_session";async function D(e){return await T.ccwAxios.post(bs,{id:e}).then(t=>t.data.body)}var q=require("@ccw-api/axios"),fs="https://sso.ccw.site/web/auth/assistant/captcha/v2/create";async function M(e,t="loginbyPhone",o="86",r="ccw_sms",s){let n={recipient:e,countryCode:o,scene:t,ruleCode:r,captcha:s};return await q.ccwAxios.post(fs,n).then(a=>a.data.body)}var B=require("@ccw-api/axios"),ws="https://sso.ccw.site/web/auth/v3/login/by_phone";async function E(e,t,o={device:"Node",browser:"Node.js"},r="86",s="ccw_sms",n="loginbyPhone"){let{extra:a,...c}=await B.ccwAxios.post(ws,{phone:e,code:t,countryCode:r,ruleCode:s,scene:n,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})}).then(m=>m.data.body),d=JSON.parse(a);return{...c,extra:d}}var l={loginByPassword:S,logout:I,logoutBySession:D,createSmsCaptcha:M,loginByPhone:E};var O=require("@ccw-api/axios"),Ps="https://community-web.ccw.site/api/v1/short_code/encode";async function L(e,t,o,r){let s={origin:{inviterAvatar:t,inviterName:o,inviterId:e,inviterType:"STUDENT",entrance:"create_detail",creationOid:r}};return await O.ccwAxios.post(Ps,s).then(n=>n.data.body)}var U=P(require("@ccw-api/axios"),1),Cs="https://community-web.ccw.site/approval/list";async function _(e){let t={objectId:e,objectType:"STUDENT"};return await U.default.post(Cs,t).then(o=>o.data.body)}var k=P(require("@ccw-api/axios"),1),Ss="https://community-web.ccw.site/base/dateTime";async function N(){return k.default.post(Ss,void 0).then(e=>e.data.body)}var F=require("@ccw-api/axios"),hs="https://community-web.ccw.site/campaign_resource/detail";async function v(e){return await F.ccwAxios.post(hs,{keyword:e}).then(t=>t.data.body)}var j=require("@ccw-api/axios"),Is="https://community-web.ccw.site/check_in_record/detail";async function G(){let e={scene:"HOMEPAGE"};return await j.ccwAxios.post(Is,e).then(t=>t.data.body)}var H=require("@ccw-api/axios"),Ts="https://community-web.ccw.site/check_in_record/insert";async function K(){let e={scene:"HOMEPAGE"};return await H.ccwAxios.post(Ts,e).then(t=>t.data.body)}var V=require("@ccw-api/axios"),Ds="https://community-web.ccw.site/cloud_asset/user/privacy";async function z(){return await V.ccwAxios.post(Ds,{}).then(e=>e.data.body)}var W=require("@ccw-api/axios");function i(e,t){let o=new URL(e);return Object.entries(t).forEach(([r,s])=>{s!=null&&o.searchParams.set(r,s)}),o.toString()}var p={page:1,perPage:20,sortType:"DESC",sortField:""};var qs="https://community-web.ccw.site/cloud_asset/search",Ms={...p,sortField:"createdAt"};async function $(e,t="/",o={}){let r={...Ms,...o},s=i(qs,r),n={creatorOid:e,path:t};return await W.ccwAxios.post(s,n).then(a=>a.data.body)}var Y=require("@ccw-api/axios");var Bs="https://community-web.ccw.site/comment/page";async function J(e,t,o=["PUBLISHED","FOLDED"],r={sortField:"createdAt"}){let s={...p,...r},n=i(Bs,s),a={topicId:e,parentId:t,statuses:o};return await Y.ccwAxios.post(n,a).then(c=>c.data.body)}var Z=require("@ccw-api/axios");var Es="https://community-web.ccw.site/comment/page_by_topic",Os={...p,sortField:"createdAt"};async function X(e,t,o,r={sortField:"createdAt"}){let s={...Os,...r},n=i(Es,s),a={subjectOid:e,subjectType:t,sectionType:o};return await Z.ccwAxios.post(n,a).then(c=>c.data.body)}var Q=require("@ccw-api/axios"),Ls="https://community-web.ccw.site/config/detail";async function ee(e){let t={key:e};return await Q.ccwAxios.post(Ls,t).then(o=>o.data.body)}var te=require("@ccw-api/axios");var Us="https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";async function oe(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Us,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e,source:"CCW_OFFICIAL"};return await te.ccwAxios.post(r,s).then(n=>n.data.body)}var re=require("@ccw-api/axios"),_s="https://community-web.ccw.site/creation/detail";async function se(e,t,o=""){let r={oid:e,accessKey:t,mode:o};return await re.ccwAxios.post(_s,r).then(s=>s.data.body)}var ne=require("@ccw-api/axios"),ks="https://community-web.ccw.site/creation/excellent/list";async function ie(e){let t={num:e};return await ne.ccwAxios.post(ks,t).then(o=>o.data.body)}var pe=require("@ccw-api/axios"),Ns="https://community-web.ccw.site/creation/introduction/detail";async function ae(e){let t={studentOid:e};return await pe.ccwAxios.post(Ns,t).then(o=>o.data.body)}var ce=require("@ccw-api/axios"),Fs="https://community-web.ccw.site/creation/like/detail";async function me(e){let t={creationOid:e};return await ce.ccwAxios.post(Fs,t).then(o=>o.data.body)}var de=require("@ccw-api/axios"),vs="https://community-web.ccw.site/creation/loading/tips";async function ue(){return await de.ccwAxios.post(vs,{}).then(e=>e.data.body)}var ge=require("@ccw-api/axios");var js="https://community-web.ccw.site/creation/page",Gs={...p,sortField:"createdAt"};async function le(e,t={}){let o={...Gs,...t},r=i(js,o),s={remixCreationOids:e};return await ge.ccwAxios.post(r,s).then(n=>n.data.body)}var Re=require("@ccw-api/axios");var Hs="https://community-web.ccw.site/creation/page_by_student",Ks={...p,sortField:"createdAt"};async function ye(e,t={}){let o={...Ks,...t},r=i(Hs,o),s={studentOids:e};return await Re.ccwAxios.post(r,s).then(n=>n.data.body)}var xe=require("@ccw-api/axios"),Vs="https://community-web.ccw.site/creation/potential/list";async function Ae(e){let t={num:e};return await xe.ccwAxios.post(Vs,t).then(o=>o.data.body)}var be=require("@ccw-api/axios");var zs="https://community-web.ccw.site/creation/recommend",Ws={...p,sortField:"createdAt"};async function fe(e,t={}){let o={...Ws,...t},r=i(zs,o),s={num:e,subjectType:"POTENTIAL"};return await be.ccwAxios.post(r,s).then(n=>n.data.body)}var we=require("@ccw-api/axios"),$s="https://community-web.ccw.site/recommend_creator/list";async function Pe(e=4,t=8){let o={excellentCount:e,potentialCount:t};return await we.ccwAxios.post($s,o).then(r=>r.data.body)}var Ce=require("@ccw-api/axios");var Ys="https://community-web.ccw.site/creation/search/page",Js={...p,sortField:"createdAt"};async function Se(e,t={}){let o={...Js,...t},r=i(Ys,o);return await Ce.ccwAxios.post(r,e).then(s=>s.data.body)}var he=require("@ccw-api/axios"),Zs="https://community-web.ccw.site/creation/student/detail";async function Ie(e){let t={studentOid:e};return await he.ccwAxios.post(Zs,t).then(o=>o.data.body)}var Te=require("@ccw-api/axios"),Xs="https://community-web.ccw.site/creation/tag/list";async function De(){let e={visibility:"PUBLIC"};return await Te.ccwAxios.post(Xs,e).then(t=>t.data.body)}var qe=require("@ccw-api/axios"),Qs="https://community-web.ccw.site/short_url/create";async function Me(e){let t={originUrl:e};return await qe.ccwAxios.post(Qs,t).then(o=>o.data.body)}var Be=require("@ccw-api/axios"),en="https://community-web.ccw.site/hash_tag_creation/list_relation";async function Ee(e){let t={creationOid:e};return await Be.ccwAxios.post(en,t).then(o=>o.data.body)}var Oe=require("@ccw-api/axios");var tn="https://community-web.ccw.site/hash_tag_creation/mine",on={...p,sortField:"lastPassedAt"};async function Le(e,t,o={}){let r={...on,...o},s=i(tn,r),n={...r,excludeHashTag:e,statuses:t};return await Oe.ccwAxios.post(s,n).then(a=>a.data.body)}var Ue=require("@ccw-api/axios"),rn="https://community-web.ccw.site/hash_tag/detail";async function _e(e){let t={identifier:e};return await Ue.ccwAxios.post(rn,t).then(o=>o.data.body)}var ke=require("@ccw-api/axios");var sn="https://community-web.ccw.site/hash_tag/managed/list",nn={...p,sortField:"createdAt"};async function Ne(e,t=[],o={}){let r={...nn,...o},s=i(sn,r),n={...r,studentOid:e,excludeHashTagIds:t};return await ke.ccwAxios.post(s,n).then(a=>a.data.body)}var Fe=require("@ccw-api/axios"),pn="https://community-web.ccw.site/hash_tag_favorite/detail";async function ve(e){let t={hashTagId:e};return await Fe.ccwAxios.post(pn,t).then(o=>o.data.body)}var je=require("@ccw-api/axios");var an="https://community-web.ccw.site/creation_donated_record/ranking_list";async function Ge(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(an,o),s={creationOid:e};return await je.ccwAxios.post(r,s).then(n=>n.data.body)}var He=require("@ccw-api/axios"),cn="https://community-web.ccw.site/creation_favorite/detail";async function Ke(e){let t={creationOid:e};return await He.ccwAxios.post(cn,t).then(o=>o.data.body)}var Ve=require("@ccw-api/axios"),mn="https://community-web.ccw.site/creation_recommend_position/list";async function ze(e){let t={creationOid:e};return await Ve.ccwAxios.post(mn,t).then(o=>o.data.body)}var We=require("@ccw-api/axios");var dn="https://community-web.ccw.site/creation_screenshot/page";async function $e(e,t={}){let o={...p,...t},r=i(dn,o),s={subjectOid:e};return await We.ccwAxios.post(r,s).then(n=>n.data.body)}var Ye=require("@ccw-api/axios"),un="https://community-web.ccw.site/creation_stats/view";async function Je(e,t=""){let o={oid:e,inviteCode:t};return await Ye.ccwAxios.post(un,o).then(r=>r.data.body)}var Ze=require("@ccw-api/axios"),gn="https://community-web.ccw.site/notify_message/show";async function Xe(){let e={type:"COMMENT_AUDIT"};return await Ze.ccwAxios.post(gn,e).then(t=>t.data.body)}var Qe=require("@ccw-api/axios"),ln="https://community-web.ccw.site/post/detail";async function et(e){let t={slug:e};return await Qe.ccwAxios.post(ln,t).then(o=>o.data.body)}var tt=require("@ccw-api/axios"),Rn="https://community-web.ccw.site/search/hot_words";async function ot(e){let t={length:e};return await tt.ccwAxios.post(Rn,t).then(o=>o.data.body)}var rt=require("@ccw-api/axios"),yn="https://community-web.ccw.site/student/block_record/detail";async function st(e){let t={studentOid:e};return await rt.ccwAxios.post(yn,t).then(o=>o.data.body)}var nt=require("@ccw-api/axios");var xn="https://community-web.ccw.site/student/block_record/list";async function it(e={sortField:"createdAt"}){let t={...p,...e},o=i(xn,t),r={};return await nt.ccwAxios.post(o,r).then(s=>s.data.body)}var pt=require("@ccw-api/axios"),An="https://community-web.ccw.site/student/block_record/status";async function at(e){let t={studentOid:e};return await pt.ccwAxios.post(An,t).then(o=>o.data.body)}var ct=require("@ccw-api/axios"),bn="https://community-web.ccw.site/students/creator_score";async function mt(){return await ct.ccwAxios.post(bn,void 0).then(t=>t.data.body)}var dt=require("@ccw-api/axios"),fn="https://community-web.ccw.site/students/last_active_at";async function ut(e){let t={studentOid:e};return await dt.ccwAxios.post(fn,t).then(o=>o.data.body)}var gt=require("@ccw-api/axios"),wn="https://community-web.ccw.site/students/list";async function lt(e){let t={studentOids:e};return await gt.ccwAxios.post(wn,t).then(o=>o.data.body)}var Rt=require("@ccw-api/axios");var Pn="https://community-web.ccw.site/students/list_sessions";async function yt(e={sortField:"createdAt"}){let t={...p,...e},o=i(Pn,t),r={};return await Rt.ccwAxios.post(o,r).then(s=>s.data.body)}var xt=require("@ccw-api/axios"),Cn="https://community-web.ccw.site/students/profile";async function At(e){let t={studentOid:e};return await xt.ccwAxios.post(Cn,t).then(o=>o.data.body)}var bt=require("@ccw-api/axios");var Sn="https://community-web.ccw.site/students/reputation_score_log/page";async function ft(e={sortField:"createdAt"}){let t={...p,...e},o=i(Sn,t),r={};return await bt.ccwAxios.post(o,r).then(s=>s.data.body)}var wt=require("@ccw-api/axios"),hn="https://community-web.ccw.site/students/self/detail";async function Pt(e,t,o){let r={needGrade:e,needExtraInfo:t,fields:o};return await wt.ccwAxios.post(hn,r).then(s=>s.data.body)}var Ct=require("@ccw-api/axios"),In="https://community-web.ccw.site/students/stats";async function St(e){let t={studentOid:e};return await Ct.ccwAxios.post(In,t).then(o=>o.data.body)}var ht=require("@ccw-api/axios"),Tn="https://community-web.ccw.site/students/update";async function It(e,t,o,r,s,n,a,c,d){let m={gender:e,hideGender:t,fullName:o,birthday:r,programmingCapability:s,school:n,qq:a,hobbies:c,learnedProgrammingLanguages:d};return await ht.ccwAxios.post(Tn,m).then(g=>g.data.body)}var Tt=require("@ccw-api/axios"),Dn="https://community-web.ccw.site/study-community/member/detail";async function Dt(){let e={};return await Tt.ccwAxios.post(Dn,e).then(t=>t.data.body)}var qt=require("@ccw-api/axios"),qn="https://community-web.ccw.site/study-community/spread_feed/unread/count";async function Mt(e){let t={studentOid:e};return await qt.ccwAxios.post(qn,t).then(o=>o.data.body)}var Bt=require("@ccw-api/axios");var Mn="https://community-web.ccw.site/subject_area/page";async function Et(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Mn,o),s={scene:e};return await Bt.ccwAxios.post(r,s).then(n=>n.data.body)}var Ot=require("@ccw-api/axios");var Bn="https://community-web.ccw.site/subject_area/page_by_channel";async function Lt(e,t={sortField:"campaignResourceId"}){let o={...p,...t},r=i(Bn,o),s={channel:e,scene:"CUSTOM_PAGE"};return await Ot.ccwAxios.post(r,s).then(n=>n.data.body)}var Ut=require("@ccw-api/axios"),En="https://community-web.ccw.site/task/award";async function _t(e){let t={taskOid:e};return await Ut.ccwAxios.post(En,t).then(o=>o.data.body)}var kt=require("@ccw-api/axios"),On="https://community-web.ccw.site/task/mine";async function Nt(){let e={scene:"checkIn"};return await kt.ccwAxios.post(On,e).then(t=>t.data.body)}var Ft=require("@ccw-api/axios"),Ln="https://community-web.ccw.site/user-card/detail";async function vt(e){let t={oid:e};return await Ft.ccwAxios.post(Ln,t).then(o=>o.data.body)}var jt=require("@ccw-api/axios"),Un="https://community-web.ccw.site/user_label/list";async function Gt(){let e={};return await jt.ccwAxios.post(Un,e).then(t=>t.data.body)}var Ht=require("@ccw-api/axios"),_n="https://community-web.ccw.site/currency/account/personal";async function Kt(){return await Ht.ccwAxios.post(_n).then(e=>e.data.body)}var Vt=require("@ccw-api/axios"),kn="https://community-web.ccw.site/emoji/all";async function zt(){return await Vt.ccwAxios.post(kn,{}).then(e=>e.data.body)}var Wt=require("@ccw-api/axios"),Nn="https://community-web.ccw.site/emoji/category/list";async function $t(){return await Wt.ccwAxios.post(Nn,{}).then(e=>e.data.body)}var Yt=require("@ccw-api/axios");var Fn="https://community-web.ccw.site/emoji/page";async function Jt(e="ENABLED",t={sortField:"createdAt"}){let o={...p,...t},r=i(Fn,o),s={page:o.page,perPage:o.perPage,status:e};return await Yt.ccwAxios.post(r,s).then(n=>n.data.body)}var Zt=require("@ccw-api/axios"),vn="https://community-web.ccw.site/event";async function Xt(e){let t={actionId:e};return await Zt.ccwAxios.post(vn,t).then(o=>o.data.body)}var Qt=require("@ccw-api/axios"),jn="https://community-web.ccw.site/health/check";async function eo(){return await Qt.ccwAxios.post(jn).then(e=>e.data.body)}var to=require("@ccw-api/axios"),Gn="https://community-web.ccw.site/leaflets/item/list";async function oo(e){let t={advertisementId:e};return await to.ccwAxios.post(Gn,t).then(o=>o.data.body)}var ro=require("@ccw-api/axios"),Hn="https://community-web.ccw.site/locked_user/detail";async function so(e){let t={accountOid:e};return await ro.ccwAxios.post(Hn,t).then(o=>o.data.body)}var no=require("@ccw-api/axios"),Kn="https://community-web.ccw.site/muted_user/detail";async function io(e){let t={studentNumber:e};return await no.ccwAxios.post(Kn,t).then(o=>o.data.body)}var po=require("@ccw-api/axios");var Vn="https://community-web.ccw.site/notification/page";async function ao(e="COMMENT_TO_ME",t={sortField:"createdAt"}){let o={...p,...t},r=i(Vn,o),s={notifyGroup:e,page:o.page};return await po.ccwAxios.post(r,s).then(n=>n.data.body)}var co=require("@ccw-api/axios"),zn="https://community-web.ccw.site/notification/stats/v2";async function mo(e=!0){let t={countAll:e};return await co.ccwAxios.post(zn,t).then(o=>o.data.body)}var uo=require("@ccw-api/axios");var Wn="https://community-web.ccw.site/typical_project/page";async function go(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Wn,o),s={studentOid:e,templateType:"APPLICATION"};return await uo.ccwAxios.post(r,s).then(n=>n.data.body)}var lo=require("@ccw-api/axios"),$n="https://community-web.ccw.site/typical_project/student/unread_count";async function Ro(e){let t={studentOid:e};return await lo.ccwAxios.post($n,t).then(o=>o.data.body)}var yo=require("@ccw-api/axios");var Yn="https://community-web.ccw.site/creation/own/page";async function xo(e={sortField:"updatedAt"},t=["BANNED","PUBLISHED","REJECTED","SUBMITTED"],o=!1){let r={...p,...e},s=i(Yn,r),n={statuses:t,ignoreTypicalProject:o};return await yo.ccwAxios.post(s,n).then(a=>a.data.body)}var Ao=require("@ccw-api/axios"),Jn="https://community-web.ccw.site/creation/team_member/produce_ticket";async function bo(e){let t={creationOid:e};return await Ao.ccwAxios.post(Jn,t).then(o=>o.data.body)}var fo=require("@ccw-api/axios"),Zn="https://community-web.ccw.site/creation/team_member/list";async function wo(e,t){let o={creationOid:e,authorities:t};return await fo.ccwAxios.post(Zn,o).then(r=>r.data.body)}var Po=require("@ccw-api/axios");var Xn="https://community-web.ccw.site/creation/teamwork_log/page";async function Co(e,t,o={sortField:"createdAt"}){let r={...p,...o},s=i(Xn,r),n={creationId:e,operateTargets:t},a=await Po.ccwAxios.post(s,n).then(m=>m.data.body),{data:c}=a,d=c.map(m=>{let{content:g}=m;return{...m,content:JSON.parse(g)}});return{...a,data:d}}var So=require("@ccw-api/axios"),Qn="https://community-web.ccw.site/creation/update";async function ho(e,t,o="LANDSCAPE",r){if(!t.includes("t=")){let a=new URL(t);a.searchParams.set("t",Date.now().toString()),t=a.toString()}let n={oid:e,latestProjectLink:t,screenMode:o,latestCoverLink:r};return await So.ccwAxios.post(Qn,n).then(a=>a.data.body)}var Io=require("@ccw-api/axios"),ei="https://community-web.ccw.site/creation/submit";async function To(e){return await Io.ccwAxios.post(ei,e).then(t=>t.data.body)}var Do=require("@ccw-api/axios"),ti="https://community-web.ccw.site/creation/smart_contract/split_rule/detail";async function qo(e){let t={creationOid:e};return await Do.ccwAxios.post(ti,t).then(o=>o.data.body)}var Mo=require("@ccw-api/axios"),oi="https://community-web.ccw.site/students/bind_phone";async function Bo(e,t,o="86"){let r={phone:e,code:t,ruleCode:"ccw_sms",scene:"bindPhone",countryCode:o};return await Mo.ccwAxios.post(oi,r).then(s=>s.data.body)}var Eo=require("@ccw-api/axios"),ri="https://community-web.ccw.site/students/password/change";async function Oo(e,t){let o={newPassword:e,code:t};return await Eo.ccwAxios.post(ri,o).then(r=>r.data.body)}var Lo=require("@ccw-api/axios"),si="https://community-web.ccw.site/captcha/v2/create_by_session";async function Uo(e="change_password",t="86",o="ccw_sms",r="SMS"){let s={type:r,countryCode:t,scene:e,ruleCode:o};return await Lo.ccwAxios.post(si,s).then(n=>n.data.body)}var _o=require("@ccw-api/axios"),ni="https://community-web.ccw.site/creation/smart_contract/split_rule/create";async function ko(e,t){let o={creationOid:e,memberSplitDetails:t};return await _o.ccwAxios.post(ni,o).then(r=>r.data.body)}var No=require("@ccw-api/axios"),ii="https://community-web.ccw.site/creation_attribute/detail";async function Fo(e){let t={creationOid:e},o=await No.ccwAxios.post(ii,t).then(n=>n.data.body);if(o===null)return null;let{ext:{KEYPAD_CONFIG:r}}=o,s=JSON.parse(r);return{...o,ext:{KEYPAD_CONFIG:s}}}var vo=require("@ccw-api/axios"),pi="https://community-web.ccw.site/creation_activity_stats/list";async function jo(e){let t={creationOid:e,type:"DAY"};return await vo.ccwAxios.post(pi,t).then(o=>o.data.body)}var Go=require("@ccw-api/axios");var ai="https://community-web.ccw.site/creation_release/page";async function Ho(e,t={sortField:"submittedAt"}){let o={...p,...t},r=i(ai,o),s={creationOid:e};return await Go.ccwAxios.post(r,s).then(n=>n.data.body)}var Ko=require("@ccw-api/axios"),ci="https://community-web.ccw.site/creation_release/code_profiling/detail";async function Vo(e,t){let o={creationOid:e,creationReleaseOid:t};return await Ko.ccwAxios.post(ci,o).then(r=>r.data.body)}var zo=require("@ccw-api/axios");var mi="https://community-web.ccw.site/historical_team_member/page";async function Wo(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(mi,o),s={creationOid:e,page:o.page,perPage:o.perPage};return await zo.ccwAxios.post(r,s).then(n=>n.data.body)}var $o=require("@ccw-api/axios"),di="https://community-web.ccw.site/short_url/decompress";async function Yo(e){let t={shortUrlCode:e};return await $o.ccwAxios.post(di,t).then(o=>o.data.body)}var Jo=require("@ccw-api/axios"),ui="https://community-web.ccw.site/hash_tag/recommend/list";async function Zo(){return await Jo.ccwAxios.post(ui).then(e=>e.data.body)}var Xo=require("@ccw-api/axios"),gi="https://community-web.ccw.site/ccw-main/status";async function Qo(){let e={};return await Xo.ccwAxios.post(gi,e).then(t=>t.data.body)}var er=require("@ccw-api/axios"),li="https://community-web.ccw.site/study-community/cloud_variable/create";async function tr(e,t){let o={projectId:e,variables:t};return await er.ccwAxios.post(li,o).then(r=>r.data.body)}var or=require("@ccw-api/axios"),Ri="https://community-web.ccw.site/study-community/comment/top";async function rr(e){let t={id:e};return await or.ccwAxios.post(Ri,t).then(o=>o.data.body)}var sr=require("@ccw-api/axios"),yi="https://community-web.ccw.site/study-community/comment/fold";async function nr(e){let t={id:e};return await sr.ccwAxios.post(yi,t).then(o=>o.data.body)}var ir=require("@ccw-api/axios"),xi="https://community-web.ccw.site/study-community/comment/reset_weight";async function pr(e){let t={id:e};return await ir.ccwAxios.post(xi,t).then(o=>o.data.body)}var ar=require("@ccw-api/axios"),Ai="https://community-web.ccw.site/study-community/comment/delete";async function cr(e){let t={id:e};return await ar.ccwAxios.post(Ai,t).then(o=>o.data.body)}var mr=require("@ccw-api/axios"),bi="https://community-web.ccw.site/comment/create";async function dr(e,t,o){t.outline??="foo";let r={content:e,topic:t,sectionType:o};return await mr.ccwAxios.post(bi,r).then(s=>s.data.body)}var ur=require("@ccw-api/axios"),fi="https://community-web.ccw.site/comment/like_record/create";async function gr(e){let t={commentId:e};return await ur.ccwAxios.post(fi,t).then(o=>o.data.body)}var lr=require("@ccw-api/axios");var wi="https://community-web.ccw.site/student/following/page";async function Rr(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(wi,o),s={studentOid:e};return await lr.ccwAxios.post(r,s).then(n=>n.data.body)}var yr=require("@ccw-api/axios"),Pi="https://community-web.ccw.site/study-trade/trade/donate";async function xr(e,t,o="CREATION"){let r={bucks:e,objectId:t,objectType:o};return await yr.ccwAxios.post(Pi,r).then(s=>s.data.body)}var Ar=require("@ccw-api/axios");var Ci="https://community-web.ccw.site/user_package/user_product";async function br(e=5,t={}){let o={...p,...t},r=i(Ci,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e};return await Ar.ccwAxios.post(r,s).then(n=>n.data.body)}var fr=require("@ccw-api/axios"),Si="https://community-web.ccw.site/user_package/status";async function wr(e,t){let o={status:t,id:e};return await fr.ccwAxios.post(Si,o).then(r=>r.data.body)}var Pr=require("@ccw-api/axios"),hi="https://community-web.ccw.site/great_creation/update";async function Cr(e){let t={creationOid:e};return await Pr.ccwAxios.post(hi,t).then(o=>o.data.body)}var Sr=require("@ccw-api/axios"),Ii="https://community-web.ccw.site/smart_contract/execute";async function hr(e,t,o,r,s="CREATION"){let n={bizId:e,bizType:s,id:t,ruleId:o,params:{bucks:r}};return await Sr.ccwAxios.post(Ii,n).then(a=>a.data.body)}var Ir=require("@ccw-api/axios"),Ti="https://community-web.ccw.site/smart_contract/account";async function Tr(e){let t={id:e};return await Ir.ccwAxios.post(Ti,t).then(o=>o.data.body)}var Dr=require("@ccw-api/axios"),Di="https://community-web.ccw.site/smart_contract/detail";async function qr(e){let t={id:e};return await Dr.ccwAxios.post(Di,t).then(o=>o.data.body)}var Mr=require("@ccw-api/axios"),qi="https://community-web.ccw.site/smart_contract/list";async function Br(e,t="CREATION"){let o={bizId:e,bizType:t};return await Mr.ccwAxios.post(qi,o).then(r=>r.data.body)}var Er=require("@ccw-api/axios"),Mi="https://community-web.ccw.site/extensions/following/status";async function Or(e,t){let o={playingCreationOid:e,userOid:t};return await Er.ccwAxios.post(Mi,o).then(r=>r.data.body)}var Lr=require("@ccw-api/axios"),Bi="https://community-web.ccw.site/extensions/creation-like/detail";async function Ur(e,t){let o={playingCreationOid:e,creationOid:t};return await Lr.ccwAxios.post(Bi,o).then(r=>r.data.body)}var _r=require("@ccw-api/axios"),Ei="https://community-web.ccw.site/study-community/following/follow";async function kr(e){let t={followingOid:e};return await _r.ccwAxios.post(Ei,t).then(o=>o.data.body)}var Nr=require("@ccw-api/axios"),Oi="https://community-web.ccw.site/study-community/following/unfollow";async function Fr(e){let t={followingOid:e};return await Nr.ccwAxios.post(Oi,t).then(o=>o.data.body)}var R={acceptAward:_t,bindStudentPhone:Bo,changeStudentPassword:Oo,donateTrade:xr,encodeShortCode:L,executeSmartContract:hr,createCloudVariable:tr,createComment:dr,createShortUrl:Me,createSmsCaptchaBySession:Uo,createSplitRule:ko,decompressShortUrl:Yo,deleteComment:cr,foldComment:nr,followCreator:kr,unfollowCreator:Fr,getApprovalTags:_,getCampaignResources:v,getCcwMainStatus:Qo,getCheckInRecords:G,getCodeProfilingDetail:Vo,getCommentReplies:J,getCommentsByTopic:X,getConfigDetail:ee,getCreationActivityStatsList:jo,getCreationAttributeDetail:Fo,getCreationDetail:se,getCreationFavoriteDetail:Ke,getCreationIntroduction:ae,getConnectCommunityCreationLikeStatus:Ur,getCreationRecommendPositionList:ze,getCreationReleasePage:Ho,getCreationScreenshotPage:$e,getCreationStudentDetail:Ie,getCreationTags:De,getCreatorScore:mt,getDonatedRecordRanking:Ge,getExcellentCreations:ie,getConnectCommunityFollowingStatus:Or,getEmojiCategoryList:$t,getEmojiPage:Jt,getAllEmojis:zt,getHashTagDetail:_e,getHashTagFavoriteDetail:ve,getHistoricalTeamMemberPage:Wo,getManagedHashTags:Ne,getHealthCheck:eo,getLeafletsItemList:oo,getLikeDetail:me,getLoadingTips:ue,getLockedUserDetail:so,getMutedUserDetail:io,getMyHashTagCreations:Le,getMyTasks:Nt,getNotifyDeleteReasons:Xe,getNotificationPage:ao,getNotificationStats:mo,getOwnCreationPage:xo,getPersonalCurrencyAccount:Kt,getPlanetsOfCreation:Ee,getPostDetail:et,getPotentialCreations:Ae,getRecommendCreations:fe,getRecommendCreators:Pe,getRecommendHashTags:Zo,getRemixedCreationPage:le,getReputationScoreLogPage:ft,getSearchHotWords:ot,getSmartContractAccount:Tr,getSmartContractDetail:qr,getSmartContractList:Br,getSplitRuleDetail:qo,getSpreadFeedUnreadCount:Mt,getStudentBlockRecordDetail:st,getStudentBlockRecordList:it,getStudentBlockStatus:at,getStudentFollowingPage:Rr,getStudentLastActiveAt:ut,getStudentProfile:At,getStudentSelfDetail:Pt,getStudentSessions:yt,getStudentsList:lt,getStudentStats:St,getStudyCommunityMemberDetail:Dt,getSubjectAreaPage:Et,getSubjectAreaPageByChannel:Lt,getTeamMemberList:wo,getTeamworkLogPage:Co,getTime:N,getTypicalProjectPage:go,getTypicalProjectUnreadCount:Ro,getUserAssetStorageSize:z,getUserCardDetail:vt,getUserLabelList:Gt,getUserProductsPage:br,queryMallProducts:oe,getCreationsByStudent:ye,insertCheckInRecord:K,likeComment:gr,produceTeamMemberTicket:bo,resetCommentWeight:pr,searchCloudAssets:$,searchCreationsByTag:Se,sendEvent:Xt,setUserProductStatus:wr,submitCreation:To,topComment:rr,updateCreation:ho,updateGreatCreation:Cr,updateStudent:It,viewCreationStats:Je};var vr=require("@ccw-api/axios"),Li="https://gandi-main.ccw.site/timestamp/current";async function jr(){return await vr.ccwAxios.get(Li).then(e=>e.data.body)}var Gr=require("@ccw-api/axios");var Ui="https://gandi-main.ccw.site/bulletins";async function Hr(e="PUBLISHED",t={sortField:"publishedAt"}){let o={...p,...t},r=i(Ui,{...o,status:e});return await Gr.ccwAxios.get(r).then(s=>s.data.body)}var Kr=require("@ccw-api/axios"),_i="https://gandi-main.ccw.site/bulletins";async function Vr(e){return await Kr.ccwAxios.get(`${_i}/${e}`).then(t=>t.data.body)}var y=require("@ccw-api/axios"),zr="https://gandi-main.ccw.site/creation/leaderboards";async function Wr(e,t,o,r=""){let s={score:t,oid:o,ext:r},n=`${zr}/${e}/records`;return await y.ccwAxios.post(n,s).then(a=>a.data.body)}async function $r(e){let t=`${zr}/${e}/records`;return await y.ccwAxios.get(t).then(o=>o.data.body)}var x={getCurrentTimestamp:jr,getBulletinsPage:Hr,getBulletinDetail:Vr,submitLeaderboardRecord:Wr,getLeaderboardRecords:$r};var Yr=require("@ccw-api/axios");var ki="https://bfs-web.ccw.site/users";async function Jr(e,t={sortField:"updatedAt"}){let o={...p,...t},r=i(`${ki}/${e}/extensions`,o);return await Yr.ccwAxios.get(r).then(s=>s.data.body)}var Zr=require("@ccw-api/axios"),Ni="https://bfs-web.ccw.site/extensions";async function Xr(e,t){let o={eid:e,bucks:t};return await Zr.ccwAxios.post(`${Ni}/${e}/donate`,o).then(r=>r.data.body)}var A={donateExtension:Xr,getUserExtensions:Jr};var Qr=require("@ccw-api/axios"),Fi="https://community-web-cloud-database.ccw.site/cloud_variable/save";async function es(e,t,o){let r={primaryKey:e,secondaryKey:t,value:o};return await Qr.ccwAxios.post(Fi,r).then(s=>s.data.body)}async function ts(e,t,o){return await es(e,t,{v:o})}async function os(e,t,o){let r=`${e}-u`;return await es(r,`${t}`,o)}var rs=require("@ccw-api/axios"),vi="https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";async function ss(e,t,o,r){let s={accessKey:e,primaryKey:t,secondaryKey:o,filterKeys:r};return await rs.ccwAxios.post(vi,s).then(n=>n.data.body)}var b={saveProjectCloudVariable:ts,saveUserCloudVariable:os,getCloudVariableDetailV2:ss};var ns=require("@ccw-api/axios"),ji="https://op-parent-api.xiguacity.cn/captcha/create";async function is(e="BLOCK_PUZZLE"){let t={type:e};return await ns.ccwAxios.post(ji,t).then(o=>o.data.body)}var ps=require("@ccw-api/axios"),Gi="https://op-parent-api.xiguacity.cn/captcha/check";async function as(e,t,o=5){let r={data:{x:t,y:o},token:e};return await ps.ccwAxios.post(Gi,r).then(s=>s.data.body)}var f={createCaptcha:is,checkCaptcha:as};var cs=require("@ccw-api/axios");var Hi={sso:l,communityWeb:R,gandiMain:x,bfsWeb:A,communityWebCloudDatabase:b,opParentApi:f};
|
|
1
|
+
var ys=Object.create;var d=Object.defineProperty;var As=Object.getOwnPropertyDescriptor;var xs=Object.getOwnPropertyNames;var bs=Object.getPrototypeOf,fs=Object.prototype.hasOwnProperty;var ws=(e,t)=>{for(var o in t)d(e,o,{get:t[o],enumerable:!0})},w=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of xs(t))!fs.call(e,s)&&s!==o&&d(e,s,{get:()=>t[s],enumerable:!(r=As(t,s))||r.enumerable});return e};var P=(e,t,o)=>(o=e!=null?ys(bs(e)):{},w(t||!e||!e.__esModule?d(o,"default",{value:e,enumerable:!0}):o,e)),Ps=e=>w(d({},"__esModule",{value:!0}),e);var Qi={};ws(Qi,{bfsWeb:()=>x,communityWeb:()=>R,communityWebCloudDatabase:()=>b,default:()=>Zi,gandiMain:()=>A,opParentApi:()=>f,setToken:()=>Rs.setToken,sso:()=>l});module.exports=Ps(Qi);var C=require("@ccw-api/axios"),Cs="https://sso.ccw.site/web/auth/login-by-password";async function I(e,t,o={device:"Node",browser:"Node.js"}){let r={loginKey:e,password:t,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})},{extra:s,...n}=await C.ccwAxios.post(Cs,r).then(c=>c.data.body),a=JSON.parse(s);return{...n,extra:a}}var S=require("@ccw-api/axios"),Is="https://sso.ccw.site/web/auth/logout";async function h(){return await S.ccwAxios.post(Is,{}).then(e=>e.data.body)}var T=require("@ccw-api/axios"),Ss="https://sso.ccw.site/web/auth/logout_by_session";async function D(e){return await T.ccwAxios.post(Ss,{id:e}).then(t=>t.data.body)}var q=require("@ccw-api/axios"),hs="https://sso.ccw.site/web/auth/assistant/captcha/v2/create";async function M(e,t="loginbyPhone",o="86",r="ccw_sms",s){let n={recipient:e,countryCode:o,scene:t,ruleCode:r,captcha:s};return await q.ccwAxios.post(hs,n).then(a=>a.data.body)}var B=require("@ccw-api/axios"),Ts="https://sso.ccw.site/web/auth/v3/login/by_phone";async function O(e,t,o={device:"Node",browser:"Node.js"},r="86",s="ccw_sms",n="loginbyPhone"){let{extra:a,...c}=await B.ccwAxios.post(Ts,{phone:e,code:t,countryCode:r,ruleCode:s,scene:n,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})}).then(m=>m.data.body),u=JSON.parse(a);return{...c,extra:u}}var l={loginByPassword:I,logout:h,logoutBySession:D,createSmsCaptcha:M,loginByPhone:O};var E=require("@ccw-api/axios"),Ds="https://community-web.ccw.site/api/v1/short_code/encode";async function L(e,t,o,r){let s={origin:{inviterAvatar:t,inviterName:o,inviterId:e,inviterType:"STUDENT",entrance:"create_detail",creationOid:r}};return await E.ccwAxios.post(Ds,s).then(n=>n.data.body)}var U=P(require("@ccw-api/axios"),1),qs="https://community-web.ccw.site/approval/list";async function _(e){let t={objectId:e,objectType:"STUDENT"};return await U.default.post(qs,t).then(o=>o.data.body)}var k=P(require("@ccw-api/axios"),1),Ms="https://community-web.ccw.site/base/dateTime";async function N(){return k.default.post(Ms,void 0).then(e=>e.data.body)}var v=require("@ccw-api/axios"),Bs="https://community-web.ccw.site/campaign_resource/detail";async function F(e){return await v.ccwAxios.post(Bs,{keyword:e}).then(t=>t.data.body)}var j=require("@ccw-api/axios"),Os="https://community-web.ccw.site/check_in_record/detail";async function G(){let e={scene:"HOMEPAGE"};return await j.ccwAxios.post(Os,e).then(t=>t.data.body)}var H=require("@ccw-api/axios"),Es="https://community-web.ccw.site/check_in_record/insert";async function K(){let e={scene:"HOMEPAGE"};return await H.ccwAxios.post(Es,e).then(t=>t.data.body)}var V=require("@ccw-api/axios"),Ls="https://community-web.ccw.site/cloud_asset/user/privacy";async function z(){return await V.ccwAxios.post(Ls,{}).then(e=>e.data.body)}var W=require("@ccw-api/axios");function i(e,t){let o=new URL(e);return Object.entries(t).forEach(([r,s])=>{s!=null&&o.searchParams.set(r,s)}),o.toString()}var p={page:1,perPage:20,sortType:"DESC",sortField:""};var Us="https://community-web.ccw.site/cloud_asset/search",_s={...p,sortField:"createdAt"};async function $(e,t="/",o={}){let r={..._s,...o},s=i(Us,r),n={creatorOid:e,path:t};return await W.ccwAxios.post(s,n).then(a=>a.data.body)}var Y=require("@ccw-api/axios");var ks="https://community-web.ccw.site/comment/page";async function J(e,t,o=["PUBLISHED","FOLDED"],r={sortField:"createdAt"}){let s={...p,...r},n=i(ks,s),a={topicId:e,parentId:t,statuses:o};return await Y.ccwAxios.post(n,a).then(c=>c.data.body)}var X=require("@ccw-api/axios");var Ns="https://community-web.ccw.site/comment/page_by_topic",vs={...p,sortField:"createdAt"};async function Z(e,t,o,r={sortField:"createdAt"}){let s={...vs,...r},n=i(Ns,s),a={subjectOid:e,subjectType:t,sectionType:o};return await X.ccwAxios.post(n,a).then(c=>c.data.body)}var Q=require("@ccw-api/axios"),Fs="https://community-web.ccw.site/config/detail";async function ee(e){let t={key:e};return await Q.ccwAxios.post(Fs,t).then(o=>o.data.body)}var te=require("@ccw-api/axios");var js="https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";async function oe(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(js,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e,source:"CCW_OFFICIAL"};return await te.ccwAxios.post(r,s).then(n=>n.data.body)}var re=require("@ccw-api/axios"),Gs="https://community-web.ccw.site/creation/create";async function se(e,t,o,r="ORIGINAL",s="LANDSCAPE",n="PRIVATE"){let a={type:r,title:e,latestProjectLink:t,screenMode:s,artifactType:"STANDARD",sourceOpenLevel:n,latestCoverLink:o};return await re.ccwAxios.post(Gs,a).then(c=>c.data.body)}var ne=require("@ccw-api/axios"),Hs="https://community-web.ccw.site/creation/detail";async function ie(e,t,o=""){let r={oid:e,accessKey:t,mode:o};return await ne.ccwAxios.post(Hs,r).then(s=>s.data.body)}var pe=require("@ccw-api/axios"),Ks="https://community-web.ccw.site/creation/excellent/list";async function ae(e){let t={num:e};return await pe.ccwAxios.post(Ks,t).then(o=>o.data.body)}var ce=require("@ccw-api/axios"),Vs="https://community-web.ccw.site/creation/introduction/detail";async function me(e){let t={studentOid:e};return await ce.ccwAxios.post(Vs,t).then(o=>o.data.body)}var ue=require("@ccw-api/axios"),zs="https://community-web.ccw.site/creation/like/detail";async function de(e){let t={creationOid:e};return await ue.ccwAxios.post(zs,t).then(o=>o.data.body)}var ge=require("@ccw-api/axios"),Ws="https://community-web.ccw.site/creation/loading/tips";async function le(){return await ge.ccwAxios.post(Ws,{}).then(e=>e.data.body)}var Re=require("@ccw-api/axios");var $s="https://community-web.ccw.site/creation/page",Ys={...p,sortField:"createdAt"};async function ye(e,t={}){let o={...Ys,...t},r=i($s,o),s={remixCreationOids:e};return await Re.ccwAxios.post(r,s).then(n=>n.data.body)}var Ae=require("@ccw-api/axios");var Js="https://community-web.ccw.site/creation/page_by_student",Xs={...p,sortField:"createdAt"};async function xe(e,t={}){let o={...Xs,...t},r=i(Js,o),s={studentOids:e};return await Ae.ccwAxios.post(r,s).then(n=>n.data.body)}var be=require("@ccw-api/axios"),Zs="https://community-web.ccw.site/creation/potential/list";async function fe(e){let t={num:e};return await be.ccwAxios.post(Zs,t).then(o=>o.data.body)}var we=require("@ccw-api/axios");var Qs="https://community-web.ccw.site/creation/recommend",en={...p,sortField:"createdAt"};async function Pe(e,t={}){let o={...en,...t},r=i(Qs,o),s={num:e,subjectType:"POTENTIAL"};return await we.ccwAxios.post(r,s).then(n=>n.data.body)}var Ce=require("@ccw-api/axios"),tn="https://community-web.ccw.site/recommend_creator/list";async function Ie(e=4,t=8){let o={excellentCount:e,potentialCount:t};return await Ce.ccwAxios.post(tn,o).then(r=>r.data.body)}var Se=require("@ccw-api/axios");var on="https://community-web.ccw.site/creation/search/page",rn={...p,sortField:"createdAt"};async function he(e,t={}){let o={...rn,...t},r=i(on,o);return await Se.ccwAxios.post(r,e).then(s=>s.data.body)}var Te=require("@ccw-api/axios"),sn="https://community-web.ccw.site/creation/student/detail";async function De(e){let t={studentOid:e};return await Te.ccwAxios.post(sn,t).then(o=>o.data.body)}var qe=require("@ccw-api/axios"),nn="https://community-web.ccw.site/creation/tag/list";async function Me(){let e={visibility:"PUBLIC"};return await qe.ccwAxios.post(nn,e).then(t=>t.data.body)}var Be=require("@ccw-api/axios"),pn="https://community-web.ccw.site/short_url/create";async function Oe(e){let t={originUrl:e};return await Be.ccwAxios.post(pn,t).then(o=>o.data.body)}var Ee=require("@ccw-api/axios"),an="https://community-web.ccw.site/hash_tag_creation/list_relation";async function Le(e){let t={creationOid:e};return await Ee.ccwAxios.post(an,t).then(o=>o.data.body)}var Ue=require("@ccw-api/axios");var cn="https://community-web.ccw.site/hash_tag_creation/mine",mn={...p,sortField:"lastPassedAt"};async function _e(e,t,o={}){let r={...mn,...o},s=i(cn,r),n={...r,excludeHashTag:e,statuses:t};return await Ue.ccwAxios.post(s,n).then(a=>a.data.body)}var ke=require("@ccw-api/axios"),un="https://community-web.ccw.site/hash_tag/detail";async function Ne(e){let t={identifier:e};return await ke.ccwAxios.post(un,t).then(o=>o.data.body)}var ve=require("@ccw-api/axios");var dn="https://community-web.ccw.site/hash_tag/managed/list",gn={...p,sortField:"createdAt"};async function Fe(e,t=[],o={}){let r={...gn,...o},s=i(dn,r),n={...r,studentOid:e,excludeHashTagIds:t};return await ve.ccwAxios.post(s,n).then(a=>a.data.body)}var je=require("@ccw-api/axios"),ln="https://community-web.ccw.site/hash_tag_favorite/detail";async function Ge(e){let t={hashTagId:e};return await je.ccwAxios.post(ln,t).then(o=>o.data.body)}var He=require("@ccw-api/axios");var Rn="https://community-web.ccw.site/creation_donated_record/ranking_list";async function Ke(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Rn,o),s={creationOid:e};return await He.ccwAxios.post(r,s).then(n=>n.data.body)}var Ve=require("@ccw-api/axios"),yn="https://community-web.ccw.site/creation_favorite/detail";async function ze(e){let t={creationOid:e};return await Ve.ccwAxios.post(yn,t).then(o=>o.data.body)}var We=require("@ccw-api/axios"),An="https://community-web.ccw.site/creation_recommend_position/list";async function $e(e){let t={creationOid:e};return await We.ccwAxios.post(An,t).then(o=>o.data.body)}var Ye=require("@ccw-api/axios");var xn="https://community-web.ccw.site/creation_screenshot/page";async function Je(e,t={}){let o={...p,...t},r=i(xn,o),s={subjectOid:e};return await Ye.ccwAxios.post(r,s).then(n=>n.data.body)}var Xe=require("@ccw-api/axios"),bn="https://community-web.ccw.site/creation_stats/view";async function Ze(e,t=""){let o={oid:e,inviteCode:t};return await Xe.ccwAxios.post(bn,o).then(r=>r.data.body)}var Qe=require("@ccw-api/axios"),fn="https://community-web.ccw.site/notify_message/show";async function et(){let e={type:"COMMENT_AUDIT"};return await Qe.ccwAxios.post(fn,e).then(t=>t.data.body)}var tt=require("@ccw-api/axios"),wn="https://community-web.ccw.site/post/detail";async function ot(e){let t={slug:e};return await tt.ccwAxios.post(wn,t).then(o=>o.data.body)}var rt=require("@ccw-api/axios"),Pn="https://community-web.ccw.site/search/hot_words";async function st(e){let t={length:e};return await rt.ccwAxios.post(Pn,t).then(o=>o.data.body)}var nt=require("@ccw-api/axios"),Cn="https://community-web.ccw.site/student/block_record/detail";async function it(e){let t={studentOid:e};return await nt.ccwAxios.post(Cn,t).then(o=>o.data.body)}var pt=require("@ccw-api/axios");var In="https://community-web.ccw.site/student/block_record/list";async function at(e={sortField:"createdAt"}){let t={...p,...e},o=i(In,t),r={};return await pt.ccwAxios.post(o,r).then(s=>s.data.body)}var ct=require("@ccw-api/axios"),Sn="https://community-web.ccw.site/student/block_record/status";async function mt(e){let t={studentOid:e};return await ct.ccwAxios.post(Sn,t).then(o=>o.data.body)}var ut=require("@ccw-api/axios"),hn="https://community-web.ccw.site/students/creator_score";async function dt(){return await ut.ccwAxios.post(hn,void 0).then(t=>t.data.body)}var gt=require("@ccw-api/axios"),Tn="https://community-web.ccw.site/students/last_active_at";async function lt(e){let t={studentOid:e};return await gt.ccwAxios.post(Tn,t).then(o=>o.data.body)}var Rt=require("@ccw-api/axios"),Dn="https://community-web.ccw.site/students/list";async function yt(e){let t={studentOids:e};return await Rt.ccwAxios.post(Dn,t).then(o=>o.data.body)}var At=require("@ccw-api/axios");var qn="https://community-web.ccw.site/students/list_sessions";async function xt(e={sortField:"createdAt"}){let t={...p,...e},o=i(qn,t),r={};return await At.ccwAxios.post(o,r).then(s=>s.data.body)}var bt=require("@ccw-api/axios"),Mn="https://community-web.ccw.site/students/profile";async function ft(e){let t={studentOid:e};return await bt.ccwAxios.post(Mn,t).then(o=>o.data.body)}var wt=require("@ccw-api/axios");var Bn="https://community-web.ccw.site/students/reputation_score_log/page";async function Pt(e={sortField:"createdAt"}){let t={...p,...e},o=i(Bn,t),r={};return await wt.ccwAxios.post(o,r).then(s=>s.data.body)}var Ct=require("@ccw-api/axios"),On="https://community-web.ccw.site/students/self/detail";async function It(e,t,o){let r={needGrade:e,needExtraInfo:t,fields:o};return await Ct.ccwAxios.post(On,r).then(s=>s.data.body)}var St=require("@ccw-api/axios"),En="https://community-web.ccw.site/students/stats";async function ht(e){let t={studentOid:e};return await St.ccwAxios.post(En,t).then(o=>o.data.body)}var Tt=require("@ccw-api/axios"),Ln="https://community-web.ccw.site/students/update";async function Dt(e,t,o,r,s,n,a,c,u){let m={gender:e,hideGender:t,fullName:o,birthday:r,programmingCapability:s,school:n,qq:a,hobbies:c,learnedProgrammingLanguages:u};return await Tt.ccwAxios.post(Ln,m).then(g=>g.data.body)}var qt=require("@ccw-api/axios"),Un="https://community-web.ccw.site/study-community/member/detail";async function Mt(){let e={};return await qt.ccwAxios.post(Un,e).then(t=>t.data.body)}var Bt=require("@ccw-api/axios"),_n="https://community-web.ccw.site/study-community/spread_feed/unread/count";async function Ot(e){let t={studentOid:e};return await Bt.ccwAxios.post(_n,t).then(o=>o.data.body)}var Et=require("@ccw-api/axios");var kn="https://community-web.ccw.site/subject_area/page";async function Lt(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(kn,o),s={scene:e};return await Et.ccwAxios.post(r,s).then(n=>n.data.body)}var Ut=require("@ccw-api/axios");var Nn="https://community-web.ccw.site/subject_area/page_by_channel";async function _t(e,t={sortField:"campaignResourceId"}){let o={...p,...t},r=i(Nn,o),s={channel:e,scene:"CUSTOM_PAGE"};return await Ut.ccwAxios.post(r,s).then(n=>n.data.body)}var kt=require("@ccw-api/axios"),vn="https://community-web.ccw.site/task/award";async function Nt(e){let t={taskOid:e};return await kt.ccwAxios.post(vn,t).then(o=>o.data.body)}var vt=require("@ccw-api/axios"),Fn="https://community-web.ccw.site/task/mine";async function Ft(){let e={scene:"checkIn"};return await vt.ccwAxios.post(Fn,e).then(t=>t.data.body)}var jt=require("@ccw-api/axios"),jn="https://community-web.ccw.site/user-card/detail";async function Gt(e){let t={oid:e};return await jt.ccwAxios.post(jn,t).then(o=>o.data.body)}var Ht=require("@ccw-api/axios"),Gn="https://community-web.ccw.site/user_label/list";async function Kt(){let e={};return await Ht.ccwAxios.post(Gn,e).then(t=>t.data.body)}var Vt=require("@ccw-api/axios"),Hn="https://community-web.ccw.site/currency/account/personal";async function zt(){return await Vt.ccwAxios.post(Hn).then(e=>e.data.body)}var Wt=require("@ccw-api/axios"),Kn="https://community-web.ccw.site/emoji/all";async function $t(){return await Wt.ccwAxios.post(Kn,{}).then(e=>e.data.body)}var Yt=require("@ccw-api/axios"),Vn="https://community-web.ccw.site/emoji/category/list";async function Jt(){return await Yt.ccwAxios.post(Vn,{}).then(e=>e.data.body)}var Xt=require("@ccw-api/axios");var zn="https://community-web.ccw.site/emoji/page";async function Zt(e="ENABLED",t={sortField:"createdAt"}){let o={...p,...t},r=i(zn,o),s={page:o.page,perPage:o.perPage,status:e};return await Xt.ccwAxios.post(r,s).then(n=>n.data.body)}var Qt=require("@ccw-api/axios"),Wn="https://community-web.ccw.site/event";async function eo(e){let t={actionId:e};return await Qt.ccwAxios.post(Wn,t).then(o=>o.data.body)}var to=require("@ccw-api/axios"),$n="https://community-web.ccw.site/health/check";async function oo(){return await to.ccwAxios.post($n).then(e=>e.data.body)}var ro=require("@ccw-api/axios"),Yn="https://community-web.ccw.site/leaflets/item/list";async function so(e){let t={advertisementId:e};return await ro.ccwAxios.post(Yn,t).then(o=>o.data.body)}var no=require("@ccw-api/axios"),Jn="https://community-web.ccw.site/locked_user/detail";async function io(e){let t={accountOid:e};return await no.ccwAxios.post(Jn,t).then(o=>o.data.body)}var po=require("@ccw-api/axios"),Xn="https://community-web.ccw.site/muted_user/detail";async function ao(e){let t={studentNumber:e};return await po.ccwAxios.post(Xn,t).then(o=>o.data.body)}var co=require("@ccw-api/axios");var Zn="https://community-web.ccw.site/notification/page";async function mo(e="COMMENT_TO_ME",t={sortField:"createdAt"}){let o={...p,...t},r=i(Zn,o),s={notifyGroup:e,page:o.page};return await co.ccwAxios.post(r,s).then(n=>n.data.body)}var uo=require("@ccw-api/axios"),Qn="https://community-web.ccw.site/notification/stats/v2";async function go(e=!0){let t={countAll:e};return await uo.ccwAxios.post(Qn,t).then(o=>o.data.body)}var lo=require("@ccw-api/axios");var ei="https://community-web.ccw.site/typical_project/page";async function Ro(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(ei,o),s={studentOid:e,templateType:"APPLICATION"};return await lo.ccwAxios.post(r,s).then(n=>n.data.body)}var yo=require("@ccw-api/axios"),ti="https://community-web.ccw.site/typical_project/student/unread_count";async function Ao(e){let t={studentOid:e};return await yo.ccwAxios.post(ti,t).then(o=>o.data.body)}var xo=require("@ccw-api/axios");var oi="https://community-web.ccw.site/creation/own/page";async function bo(e={sortField:"updatedAt"},t=["BANNED","PUBLISHED","REJECTED","SUBMITTED"],o=!1){let r={...p,...e},s=i(oi,r),n={statuses:t,ignoreTypicalProject:o};return await xo.ccwAxios.post(s,n).then(a=>a.data.body)}var fo=require("@ccw-api/axios"),ri="https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch";async function wo(e){let t={creationOid:e};return await fo.ccwAxios.post(ri,t).then(o=>o.data.body)}var Po=require("@ccw-api/axios"),si="https://community-web.ccw.site/creation/team_member/invite_token/fetch";async function Co(e,t="MEMBER"){let o={creationOid:e,authority:t};return await Po.ccwAxios.post(si,o).then(r=>r.data.body)}var Io=require("@ccw-api/axios"),ni="https://community-web.ccw.site/creation/team_member/produce_ticket";async function So(e){let t={creationOid:e};return await Io.ccwAxios.post(ni,t).then(o=>o.data.body)}var ho=require("@ccw-api/axios"),ii="https://community-web.ccw.site/creation/team_member/list";async function To(e,t){let o={creationOid:e,authorities:t};return await ho.ccwAxios.post(ii,o).then(r=>r.data.body)}var Do=require("@ccw-api/axios");var pi="https://community-web.ccw.site/creation/teamwork_log/page";async function qo(e,t,o={sortField:"createdAt"}){let r={...p,...o},s=i(pi,r),n={creationId:e,operateTargets:t},a=await Do.ccwAxios.post(s,n).then(m=>m.data.body),{data:c}=a,u=c.map(m=>{let{content:g}=m;return{...m,content:JSON.parse(g)}});return{...a,data:u}}var Mo=require("@ccw-api/axios"),ai="https://community-web.ccw.site/creation/update";async function Bo(e,t,o="LANDSCAPE",r){if(!t.includes("t=")){let a=new URL(t);a.searchParams.set("t",Date.now().toString()),t=a.toString()}let n={oid:e,latestProjectLink:t,screenMode:o,latestCoverLink:r};return await Mo.ccwAxios.post(ai,n).then(a=>a.data.body)}var Oo=require("@ccw-api/axios"),ci="https://community-web.ccw.site/creation/submit";async function Eo(e){return await Oo.ccwAxios.post(ci,e).then(t=>t.data.body)}var Lo=require("@ccw-api/axios"),mi="https://community-web.ccw.site/creation/smart_contract/split_rule/detail";async function Uo(e){let t={creationOid:e};return await Lo.ccwAxios.post(mi,t).then(o=>o.data.body)}var _o=require("@ccw-api/axios"),ui="https://community-web.ccw.site/students/bind_phone";async function ko(e,t,o="86"){let r={phone:e,code:t,ruleCode:"ccw_sms",scene:"bindPhone",countryCode:o};return await _o.ccwAxios.post(ui,r).then(s=>s.data.body)}var No=require("@ccw-api/axios"),di="https://community-web.ccw.site/students/password/change";async function vo(e,t){let o={newPassword:e,code:t};return await No.ccwAxios.post(di,o).then(r=>r.data.body)}var Fo=require("@ccw-api/axios"),gi="https://community-web.ccw.site/captcha/v2/create_by_session";async function jo(e="change_password",t="86",o="ccw_sms",r="SMS"){let s={type:r,countryCode:t,scene:e,ruleCode:o};return await Fo.ccwAxios.post(gi,s).then(n=>n.data.body)}var Go=require("@ccw-api/axios"),li="https://community-web.ccw.site/creation/smart_contract/split_rule/create";async function Ho(e,t){let o={creationOid:e,memberSplitDetails:t};return await Go.ccwAxios.post(li,o).then(r=>r.data.body)}var Ko=require("@ccw-api/axios"),Ri="https://community-web.ccw.site/creation_attribute/detail";async function Vo(e){let t={creationOid:e},o=await Ko.ccwAxios.post(Ri,t).then(n=>n.data.body);if(o===null)return null;let{ext:{KEYPAD_CONFIG:r}}=o,s=JSON.parse(r);return{...o,ext:{KEYPAD_CONFIG:s}}}var zo=require("@ccw-api/axios"),yi="https://community-web.ccw.site/creation_activity_stats/list";async function Wo(e){let t={creationOid:e,type:"DAY"};return await zo.ccwAxios.post(yi,t).then(o=>o.data.body)}var $o=require("@ccw-api/axios");var Ai="https://community-web.ccw.site/creation_release/page";async function Yo(e,t={sortField:"submittedAt"}){let o={...p,...t},r=i(Ai,o),s={creationOid:e};return await $o.ccwAxios.post(r,s).then(n=>n.data.body)}var Jo=require("@ccw-api/axios"),xi="https://community-web.ccw.site/creation_release/code_profiling/detail";async function Xo(e,t){let o={creationOid:e,creationReleaseOid:t};return await Jo.ccwAxios.post(xi,o).then(r=>r.data.body)}var Zo=require("@ccw-api/axios");var bi="https://community-web.ccw.site/historical_team_member/page";async function Qo(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(bi,o),s={creationOid:e,page:o.page,perPage:o.perPage};return await Zo.ccwAxios.post(r,s).then(n=>n.data.body)}var er=require("@ccw-api/axios"),fi="https://community-web.ccw.site/short_url/decompress";async function tr(e){let t={shortUrlCode:e};return await er.ccwAxios.post(fi,t).then(o=>o.data.body)}var or=require("@ccw-api/axios"),wi="https://community-web.ccw.site/hash_tag/recommend/list";async function rr(){return await or.ccwAxios.post(wi).then(e=>e.data.body)}var sr=require("@ccw-api/axios"),Pi="https://community-web.ccw.site/ccw-main/status";async function nr(){let e={};return await sr.ccwAxios.post(Pi,e).then(t=>t.data.body)}var ir=require("@ccw-api/axios"),Ci="https://community-web.ccw.site/study-community/cloud_variable/create";async function pr(e,t){let o={projectId:e,variables:t};return await ir.ccwAxios.post(Ci,o).then(r=>r.data.body)}var ar=require("@ccw-api/axios"),Ii="https://community-web.ccw.site/study-community/comment/top";async function cr(e){let t={id:e};return await ar.ccwAxios.post(Ii,t).then(o=>o.data.body)}var mr=require("@ccw-api/axios"),Si="https://community-web.ccw.site/study-community/comment/fold";async function ur(e){let t={id:e};return await mr.ccwAxios.post(Si,t).then(o=>o.data.body)}var dr=require("@ccw-api/axios"),hi="https://community-web.ccw.site/study-community/comment/reset_weight";async function gr(e){let t={id:e};return await dr.ccwAxios.post(hi,t).then(o=>o.data.body)}var lr=require("@ccw-api/axios"),Ti="https://community-web.ccw.site/study-community/comment/delete";async function Rr(e){let t={id:e};return await lr.ccwAxios.post(Ti,t).then(o=>o.data.body)}var yr=require("@ccw-api/axios"),Di="https://community-web.ccw.site/comment/create";async function Ar(e,t,o){t.outline??="foo";let r={content:e,topic:t,sectionType:o};return await yr.ccwAxios.post(Di,r).then(s=>s.data.body)}var xr=require("@ccw-api/axios"),qi="https://community-web.ccw.site/comment/like_record/create";async function br(e){let t={commentId:e};return await xr.ccwAxios.post(qi,t).then(o=>o.data.body)}var fr=require("@ccw-api/axios");var Mi="https://community-web.ccw.site/student/following/page";async function wr(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Mi,o),s={studentOid:e};return await fr.ccwAxios.post(r,s).then(n=>n.data.body)}var Pr=require("@ccw-api/axios"),Bi="https://community-web.ccw.site/study-trade/trade/donate";async function Cr(e,t,o="CREATION"){let r={bucks:e,objectId:t,objectType:o};return await Pr.ccwAxios.post(Bi,r).then(s=>s.data.body)}var Ir=require("@ccw-api/axios");var Oi="https://community-web.ccw.site/user_package/user_product";async function Sr(e=5,t={}){let o={...p,...t},r=i(Oi,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e};return await Ir.ccwAxios.post(r,s).then(n=>n.data.body)}var hr=require("@ccw-api/axios"),Ei="https://community-web.ccw.site/user_package/status";async function Tr(e,t){let o={status:t,id:e};return await hr.ccwAxios.post(Ei,o).then(r=>r.data.body)}var Dr=require("@ccw-api/axios"),Li="https://community-web.ccw.site/great_creation/update";async function qr(e){let t={creationOid:e};return await Dr.ccwAxios.post(Li,t).then(o=>o.data.body)}var Mr=require("@ccw-api/axios"),Ui="https://community-web.ccw.site/smart_contract/execute";async function Br(e,t,o,r,s="CREATION"){let n={bizId:e,bizType:s,id:t,ruleId:o,params:{bucks:r}};return await Mr.ccwAxios.post(Ui,n).then(a=>a.data.body)}var Or=require("@ccw-api/axios"),_i="https://community-web.ccw.site/smart_contract/account";async function Er(e){let t={id:e};return await Or.ccwAxios.post(_i,t).then(o=>o.data.body)}var Lr=require("@ccw-api/axios"),ki="https://community-web.ccw.site/smart_contract/detail";async function Ur(e){let t={id:e};return await Lr.ccwAxios.post(ki,t).then(o=>o.data.body)}var _r=require("@ccw-api/axios"),Ni="https://community-web.ccw.site/smart_contract/list";async function kr(e,t="CREATION"){let o={bizId:e,bizType:t};return await _r.ccwAxios.post(Ni,o).then(r=>r.data.body)}var Nr=require("@ccw-api/axios"),vi="https://community-web.ccw.site/extensions/following/status";async function vr(e,t){let o={playingCreationOid:e,userOid:t};return await Nr.ccwAxios.post(vi,o).then(r=>r.data.body)}var Fr=require("@ccw-api/axios"),Fi="https://community-web.ccw.site/extensions/creation-like/detail";async function jr(e,t){let o={playingCreationOid:e,creationOid:t};return await Fr.ccwAxios.post(Fi,o).then(r=>r.data.body)}var Gr=require("@ccw-api/axios"),ji="https://community-web.ccw.site/study-community/following/follow";async function Hr(e){let t={followingOid:e};return await Gr.ccwAxios.post(ji,t).then(o=>o.data.body)}var Kr=require("@ccw-api/axios"),Gi="https://community-web.ccw.site/study-community/following/unfollow";async function Vr(e){let t={followingOid:e};return await Kr.ccwAxios.post(Gi,t).then(o=>o.data.body)}var R={acceptAward:Nt,bindStudentPhone:ko,changeStudentPassword:vo,createCreation:se,donateTrade:Cr,encodeShortCode:L,executeSmartContract:Br,fetchMemberInviteToken:Co,fetchObserverInviteToken:wo,createCloudVariable:pr,createComment:Ar,createShortUrl:Oe,createSmsCaptchaBySession:jo,createSplitRule:Ho,decompressShortUrl:tr,deleteComment:Rr,foldComment:ur,followCreator:Hr,unfollowCreator:Vr,getApprovalTags:_,getCampaignResources:F,getCcwMainStatus:nr,getCheckInRecords:G,getCodeProfilingDetail:Xo,getCommentReplies:J,getCommentsByTopic:Z,getConfigDetail:ee,getCreationActivityStatsList:Wo,getCreationAttributeDetail:Vo,getCreationDetail:ie,getCreationFavoriteDetail:ze,getCreationIntroduction:me,getConnectCommunityCreationLikeStatus:jr,getCreationRecommendPositionList:$e,getCreationReleasePage:Yo,getCreationScreenshotPage:Je,getCreationStudentDetail:De,getCreationTags:Me,getCreatorScore:dt,getDonatedRecordRanking:Ke,getExcellentCreations:ae,getConnectCommunityFollowingStatus:vr,getEmojiCategoryList:Jt,getEmojiPage:Zt,getAllEmojis:$t,getHashTagDetail:Ne,getHashTagFavoriteDetail:Ge,getHistoricalTeamMemberPage:Qo,getManagedHashTags:Fe,getHealthCheck:oo,getLeafletsItemList:so,getLikeDetail:de,getLoadingTips:le,getLockedUserDetail:io,getMutedUserDetail:ao,getMyHashTagCreations:_e,getMyTasks:Ft,getNotifyDeleteReasons:et,getNotificationPage:mo,getNotificationStats:go,getOwnCreationPage:bo,getPersonalCurrencyAccount:zt,getPlanetsOfCreation:Le,getPostDetail:ot,getPotentialCreations:fe,getRecommendCreations:Pe,getRecommendCreators:Ie,getRecommendHashTags:rr,getRemixedCreationPage:ye,getReputationScoreLogPage:Pt,getSearchHotWords:st,getSmartContractAccount:Er,getSmartContractDetail:Ur,getSmartContractList:kr,getSplitRuleDetail:Uo,getSpreadFeedUnreadCount:Ot,getStudentBlockRecordDetail:it,getStudentBlockRecordList:at,getStudentBlockStatus:mt,getStudentFollowingPage:wr,getStudentLastActiveAt:lt,getStudentProfile:ft,getStudentSelfDetail:It,getStudentSessions:xt,getStudentsList:yt,getStudentStats:ht,getStudyCommunityMemberDetail:Mt,getSubjectAreaPage:Lt,getSubjectAreaPageByChannel:_t,getTeamMemberList:To,getTeamworkLogPage:qo,getTime:N,getTypicalProjectPage:Ro,getTypicalProjectUnreadCount:Ao,getUserAssetStorageSize:z,getUserCardDetail:Gt,getUserLabelList:Kt,getUserProductsPage:Sr,queryMallProducts:oe,getCreationsByStudent:xe,insertCheckInRecord:K,likeComment:br,produceTeamMemberTicket:So,resetCommentWeight:gr,searchCloudAssets:$,searchCreationsByTag:he,sendEvent:eo,setUserProductStatus:Tr,submitCreation:Eo,topComment:cr,updateCreation:Bo,updateGreatCreation:qr,updateStudent:Dt,viewCreationStats:Ze};var zr=require("@ccw-api/axios"),Hi="https://gandi-main.ccw.site/timestamp/current";async function Wr(){return await zr.ccwAxios.get(Hi).then(e=>e.data.body)}var $r=require("@ccw-api/axios");var Ki="https://gandi-main.ccw.site/bulletins";async function Yr(e="PUBLISHED",t={sortField:"publishedAt"}){let o={...p,...t},r=i(Ki,{...o,status:e});return await $r.ccwAxios.get(r).then(s=>s.data.body)}var Jr=require("@ccw-api/axios"),Vi="https://gandi-main.ccw.site/bulletins";async function Xr(e){return await Jr.ccwAxios.get(`${Vi}/${e}`).then(t=>t.data.body)}var y=require("@ccw-api/axios"),Zr="https://gandi-main.ccw.site/creation/leaderboards";async function Qr(e,t,o,r=""){let s={score:t,oid:o,ext:r},n=`${Zr}/${e}/records`;return await y.ccwAxios.post(n,s).then(a=>a.data.body)}async function es(e){let t=`${Zr}/${e}/records`;return await y.ccwAxios.get(t).then(o=>o.data.body)}var A={getCurrentTimestamp:Wr,getBulletinsPage:Yr,getBulletinDetail:Xr,submitLeaderboardRecord:Qr,getLeaderboardRecords:es};var ts=require("@ccw-api/axios");var zi="https://bfs-web.ccw.site/users";async function os(e,t={sortField:"updatedAt"}){let o={...p,...t},r=i(`${zi}/${e}/extensions`,o);return await ts.ccwAxios.get(r).then(s=>s.data.body)}var rs=require("@ccw-api/axios"),Wi="https://bfs-web.ccw.site/extensions";async function ss(e,t){let o={eid:e,bucks:t};return await rs.ccwAxios.post(`${Wi}/${e}/donate`,o).then(r=>r.data.body)}var x={donateExtension:ss,getUserExtensions:os};var ns=require("@ccw-api/axios"),$i="https://community-web-cloud-database.ccw.site/cloud_variable/save";async function is(e,t,o){let r={primaryKey:e,secondaryKey:t,value:o};return await ns.ccwAxios.post($i,r).then(s=>s.data.body)}async function ps(e,t,o){return await is(e,t,{v:o})}async function as(e,t,o){let r=`${e}-u`;return await is(r,`${t}`,o)}var cs=require("@ccw-api/axios"),Yi="https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";async function ms(e,t,o,r){let s={accessKey:e,primaryKey:t,secondaryKey:o,filterKeys:r};return await cs.ccwAxios.post(Yi,s).then(n=>n.data.body)}var b={saveProjectCloudVariable:ps,saveUserCloudVariable:as,getCloudVariableDetailV2:ms};var us=require("@ccw-api/axios"),Ji="https://op-parent-api.xiguacity.cn/captcha/create";async function ds(e="BLOCK_PUZZLE"){let t={type:e};return await us.ccwAxios.post(Ji,t).then(o=>o.data.body)}var gs=require("@ccw-api/axios"),Xi="https://op-parent-api.xiguacity.cn/captcha/check";async function ls(e,t,o=5){let r={data:{x:t,y:o},token:e};return await gs.ccwAxios.post(Xi,r).then(s=>s.data.body)}var f={createCaptcha:ds,checkCaptcha:ls};var Rs=require("@ccw-api/axios");var Zi={sso:l,communityWeb:R,gandiMain:A,bfsWeb:x,communityWebCloudDatabase:b,opParentApi:f};
|