@ccw-api/api 0.10.2 → 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/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ccwAxios as Gt}from"@ccw-api/axios";var Ht="https://sso.ccw.site/web/auth/login-by-password";async function g(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 Gt.post(Ht,r).then(c=>c.data.body),a=JSON.parse(s);return{...n,extra:a}}import{ccwAxios as Kt}from"@ccw-api/axios";var Vt="https://sso.ccw.site/web/auth/logout";async function l(){return await Kt.post(Vt,{}).then(e=>e.data.body)}import{ccwAxios as zt}from"@ccw-api/axios";var Wt="https://sso.ccw.site/web/auth/logout_by_session";async function R(e){return await zt.post(Wt,{id:e}).then(t=>t.data.body)}import{ccwAxios as $t}from"@ccw-api/axios";var Yt="https://sso.ccw.site/web/auth/assistant/captcha/v2/create";async function y(e,t="loginbyPhone",o="86",r="ccw_sms",s){let n={recipient:e,countryCode:o,scene:t,ruleCode:r,captcha:s};return await $t.post(Yt,n).then(a=>a.data.body)}import{ccwAxios as Jt}from"@ccw-api/axios";var Zt="https://sso.ccw.site/web/auth/v3/login/by_phone";async function x(e,t,o={device:"Node",browser:"Node.js"},r="86",s="ccw_sms",n="loginbyPhone"){let{extra:a,...c}=await Jt.post(Zt,{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 A={loginByPassword:g,logout:l,logoutBySession:R,createSmsCaptcha:y,loginByPhone:x};import{ccwAxios as Xt}from"@ccw-api/axios";var Qt="https://community-web.ccw.site/api/v1/short_code/encode";async function b(e,t,o,r){let s={origin:{inviterAvatar:t,inviterName:o,inviterId:e,inviterType:"STUDENT",entrance:"create_detail",creationOid:r}};return await Xt.post(Qt,s).then(n=>n.data.body)}import eo from"@ccw-api/axios";var to="https://community-web.ccw.site/approval/list";async function f(e){let t={objectId:e,objectType:"STUDENT"};return await eo.post(to,t).then(o=>o.data.body)}import oo from"@ccw-api/axios";var ro="https://community-web.ccw.site/base/dateTime";async function w(){return oo.post(ro,void 0).then(e=>e.data.body)}import{ccwAxios as so}from"@ccw-api/axios";var no="https://community-web.ccw.site/campaign_resource/detail";async function P(e){return await so.post(no,{keyword:e}).then(t=>t.data.body)}import{ccwAxios as io}from"@ccw-api/axios";var po="https://community-web.ccw.site/check_in_record/detail";async function C(){let e={scene:"HOMEPAGE"};return await io.post(po,e).then(t=>t.data.body)}import{ccwAxios as ao}from"@ccw-api/axios";var co="https://community-web.ccw.site/check_in_record/insert";async function S(){let e={scene:"HOMEPAGE"};return await ao.post(co,e).then(t=>t.data.body)}import{ccwAxios as mo}from"@ccw-api/axios";var uo="https://community-web.ccw.site/cloud_asset/user/privacy";async function h(){return await mo.post(uo,{}).then(e=>e.data.body)}import{ccwAxios as go}from"@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 lo="https://community-web.ccw.site/cloud_asset/search",Ro={...p,sortField:"createdAt"};async function I(e,t="/",o={}){let r={...Ro,...o},s=i(lo,r),n={creatorOid:e,path:t};return await go.post(s,n).then(a=>a.data.body)}import{ccwAxios as yo}from"@ccw-api/axios";var xo="https://community-web.ccw.site/comment/page";async function T(e,t,o=["PUBLISHED","FOLDED"],r={sortField:"createdAt"}){let s={...p,...r},n=i(xo,s),a={topicId:e,parentId:t,statuses:o};return await yo.post(n,a).then(c=>c.data.body)}import{ccwAxios as Ao}from"@ccw-api/axios";var bo="https://community-web.ccw.site/comment/page_by_topic",fo={...p,sortField:"createdAt"};async function D(e,t,o,r={sortField:"createdAt"}){let s={...fo,...r},n=i(bo,s),a={subjectOid:e,subjectType:t,sectionType:o};return await Ao.post(n,a).then(c=>c.data.body)}import{ccwAxios as wo}from"@ccw-api/axios";var Po="https://community-web.ccw.site/config/detail";async function q(e){let t={key:e};return await wo.post(Po,t).then(o=>o.data.body)}import{ccwAxios as Co}from"@ccw-api/axios";var So="https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";async function M(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(So,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e,source:"CCW_OFFICIAL"};return await Co.post(r,s).then(n=>n.data.body)}import{ccwAxios as ho}from"@ccw-api/axios";var Io="https://community-web.ccw.site/creation/detail";async function B(e,t,o=""){let r={oid:e,accessKey:t,mode:o};return await ho.post(Io,r).then(s=>s.data.body)}import{ccwAxios as To}from"@ccw-api/axios";var Do="https://community-web.ccw.site/creation/excellent/list";async function E(e){let t={num:e};return await To.post(Do,t).then(o=>o.data.body)}import{ccwAxios as qo}from"@ccw-api/axios";var Mo="https://community-web.ccw.site/creation/introduction/detail";async function O(e){let t={studentOid:e};return await qo.post(Mo,t).then(o=>o.data.body)}import{ccwAxios as Bo}from"@ccw-api/axios";var Eo="https://community-web.ccw.site/creation/like/detail";async function L(e){let t={creationOid:e};return await Bo.post(Eo,t).then(o=>o.data.body)}import{ccwAxios as Oo}from"@ccw-api/axios";var Lo="https://community-web.ccw.site/creation/loading/tips";async function U(){return await Oo.post(Lo,{}).then(e=>e.data.body)}import{ccwAxios as Uo}from"@ccw-api/axios";var _o="https://community-web.ccw.site/creation/page",ko={...p,sortField:"createdAt"};async function _(e,t={}){let o={...ko,...t},r=i(_o,o),s={remixCreationOids:e};return await Uo.post(r,s).then(n=>n.data.body)}import{ccwAxios as No}from"@ccw-api/axios";var Fo="https://community-web.ccw.site/creation/page_by_student",vo={...p,sortField:"createdAt"};async function k(e,t={}){let o={...vo,...t},r=i(Fo,o),s={studentOids:e};return await No.post(r,s).then(n=>n.data.body)}import{ccwAxios as jo}from"@ccw-api/axios";var Go="https://community-web.ccw.site/creation/potential/list";async function N(e){let t={num:e};return await jo.post(Go,t).then(o=>o.data.body)}import{ccwAxios as Ho}from"@ccw-api/axios";var Ko="https://community-web.ccw.site/creation/recommend",Vo={...p,sortField:"createdAt"};async function F(e,t={}){let o={...Vo,...t},r=i(Ko,o),s={num:e,subjectType:"POTENTIAL"};return await Ho.post(r,s).then(n=>n.data.body)}import{ccwAxios as zo}from"@ccw-api/axios";var Wo="https://community-web.ccw.site/recommend_creator/list";async function v(e=4,t=8){let o={excellentCount:e,potentialCount:t};return await zo.post(Wo,o).then(r=>r.data.body)}import{ccwAxios as $o}from"@ccw-api/axios";var Yo="https://community-web.ccw.site/creation/search/page",Jo={...p,sortField:"createdAt"};async function j(e,t={}){let o={...Jo,...t},r=i(Yo,o);return await $o.post(r,e).then(s=>s.data.body)}import{ccwAxios as Zo}from"@ccw-api/axios";var Xo="https://community-web.ccw.site/creation/student/detail";async function G(e){let t={studentOid:e};return await Zo.post(Xo,t).then(o=>o.data.body)}import{ccwAxios as Qo}from"@ccw-api/axios";var er="https://community-web.ccw.site/creation/tag/list";async function H(){let e={visibility:"PUBLIC"};return await Qo.post(er,e).then(t=>t.data.body)}import{ccwAxios as tr}from"@ccw-api/axios";var or="https://community-web.ccw.site/short_url/create";async function K(e){let t={originUrl:e};return await tr.post(or,t).then(o=>o.data.body)}import{ccwAxios as rr}from"@ccw-api/axios";var sr="https://community-web.ccw.site/hash_tag_creation/list_relation";async function V(e){let t={creationOid:e};return await rr.post(sr,t).then(o=>o.data.body)}import{ccwAxios as nr}from"@ccw-api/axios";var ir="https://community-web.ccw.site/hash_tag_creation/mine",pr={...p,sortField:"lastPassedAt"};async function z(e,t,o={}){let r={...pr,...o},s=i(ir,r),n={...r,excludeHashTag:e,statuses:t};return await nr.post(s,n).then(a=>a.data.body)}import{ccwAxios as ar}from"@ccw-api/axios";var cr="https://community-web.ccw.site/hash_tag/detail";async function W(e){let t={identifier:e};return await ar.post(cr,t).then(o=>o.data.body)}import{ccwAxios as mr}from"@ccw-api/axios";var dr="https://community-web.ccw.site/hash_tag/managed/list",ur={...p,sortField:"createdAt"};async function $(e,t=[],o={}){let r={...ur,...o},s=i(dr,r),n={...r,studentOid:e,excludeHashTagIds:t};return await mr.post(s,n).then(a=>a.data.body)}import{ccwAxios as gr}from"@ccw-api/axios";var lr="https://community-web.ccw.site/hash_tag_favorite/detail";async function Y(e){let t={hashTagId:e};return await gr.post(lr,t).then(o=>o.data.body)}import{ccwAxios as Rr}from"@ccw-api/axios";var yr="https://community-web.ccw.site/creation_donated_record/ranking_list";async function J(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(yr,o),s={creationOid:e};return await Rr.post(r,s).then(n=>n.data.body)}import{ccwAxios as xr}from"@ccw-api/axios";var Ar="https://community-web.ccw.site/creation_favorite/detail";async function Z(e){let t={creationOid:e};return await xr.post(Ar,t).then(o=>o.data.body)}import{ccwAxios as br}from"@ccw-api/axios";var fr="https://community-web.ccw.site/creation_recommend_position/list";async function X(e){let t={creationOid:e};return await br.post(fr,t).then(o=>o.data.body)}import{ccwAxios as wr}from"@ccw-api/axios";var Pr="https://community-web.ccw.site/creation_screenshot/page";async function Q(e,t={}){let o={...p,...t},r=i(Pr,o),s={subjectOid:e};return await wr.post(r,s).then(n=>n.data.body)}import{ccwAxios as Cr}from"@ccw-api/axios";var Sr="https://community-web.ccw.site/creation_stats/view";async function ee(e,t=""){let o={oid:e,inviteCode:t};return await Cr.post(Sr,o).then(r=>r.data.body)}import{ccwAxios as hr}from"@ccw-api/axios";var Ir="https://community-web.ccw.site/notify_message/show";async function te(){let e={type:"COMMENT_AUDIT"};return await hr.post(Ir,e).then(t=>t.data.body)}import{ccwAxios as Tr}from"@ccw-api/axios";var Dr="https://community-web.ccw.site/post/detail";async function oe(e){let t={slug:e};return await Tr.post(Dr,t).then(o=>o.data.body)}import{ccwAxios as qr}from"@ccw-api/axios";var Mr="https://community-web.ccw.site/search/hot_words";async function re(e){let t={length:e};return await qr.post(Mr,t).then(o=>o.data.body)}import{ccwAxios as Br}from"@ccw-api/axios";var Er="https://community-web.ccw.site/student/block_record/detail";async function se(e){let t={studentOid:e};return await Br.post(Er,t).then(o=>o.data.body)}import{ccwAxios as Or}from"@ccw-api/axios";var Lr="https://community-web.ccw.site/student/block_record/list";async function ne(e={sortField:"createdAt"}){let t={...p,...e},o=i(Lr,t),r={};return await Or.post(o,r).then(s=>s.data.body)}import{ccwAxios as Ur}from"@ccw-api/axios";var _r="https://community-web.ccw.site/student/block_record/status";async function ie(e){let t={studentOid:e};return await Ur.post(_r,t).then(o=>o.data.body)}import{ccwAxios as kr}from"@ccw-api/axios";var Nr="https://community-web.ccw.site/students/creator_score";async function pe(){return await kr.post(Nr,void 0).then(t=>t.data.body)}import{ccwAxios as Fr}from"@ccw-api/axios";var vr="https://community-web.ccw.site/students/last_active_at";async function ae(e){let t={studentOid:e};return await Fr.post(vr,t).then(o=>o.data.body)}import{ccwAxios as jr}from"@ccw-api/axios";var Gr="https://community-web.ccw.site/students/list";async function ce(e){let t={studentOids:e};return await jr.post(Gr,t).then(o=>o.data.body)}import{ccwAxios as Hr}from"@ccw-api/axios";var Kr="https://community-web.ccw.site/students/list_sessions";async function me(e={sortField:"createdAt"}){let t={...p,...e},o=i(Kr,t),r={};return await Hr.post(o,r).then(s=>s.data.body)}import{ccwAxios as Vr}from"@ccw-api/axios";var zr="https://community-web.ccw.site/students/profile";async function de(e){let t={studentOid:e};return await Vr.post(zr,t).then(o=>o.data.body)}import{ccwAxios as Wr}from"@ccw-api/axios";var $r="https://community-web.ccw.site/students/reputation_score_log/page";async function ue(e={sortField:"createdAt"}){let t={...p,...e},o=i($r,t),r={};return await Wr.post(o,r).then(s=>s.data.body)}import{ccwAxios as Yr}from"@ccw-api/axios";var Jr="https://community-web.ccw.site/students/self/detail";async function ge(e,t,o){let r={needGrade:e,needExtraInfo:t,fields:o};return await Yr.post(Jr,r).then(s=>s.data.body)}import{ccwAxios as Zr}from"@ccw-api/axios";var Xr="https://community-web.ccw.site/students/stats";async function le(e){let t={studentOid:e};return await Zr.post(Xr,t).then(o=>o.data.body)}import{ccwAxios as Qr}from"@ccw-api/axios";var es="https://community-web.ccw.site/students/update";async function Re(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 Qr.post(es,m).then(u=>u.data.body)}import{ccwAxios as ts}from"@ccw-api/axios";var os="https://community-web.ccw.site/study-community/member/detail";async function ye(){let e={};return await ts.post(os,e).then(t=>t.data.body)}import{ccwAxios as rs}from"@ccw-api/axios";var ss="https://community-web.ccw.site/study-community/spread_feed/unread/count";async function xe(e){let t={studentOid:e};return await rs.post(ss,t).then(o=>o.data.body)}import{ccwAxios as ns}from"@ccw-api/axios";var is="https://community-web.ccw.site/subject_area/page";async function Ae(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(is,o),s={scene:e};return await ns.post(r,s).then(n=>n.data.body)}import{ccwAxios as ps}from"@ccw-api/axios";var as="https://community-web.ccw.site/subject_area/page_by_channel";async function be(e,t={sortField:"campaignResourceId"}){let o={...p,...t},r=i(as,o),s={channel:e,scene:"CUSTOM_PAGE"};return await ps.post(r,s).then(n=>n.data.body)}import{ccwAxios as cs}from"@ccw-api/axios";var ms="https://community-web.ccw.site/task/award";async function fe(e){let t={taskOid:e};return await cs.post(ms,t).then(o=>o.data.body)}import{ccwAxios as ds}from"@ccw-api/axios";var us="https://community-web.ccw.site/task/mine";async function we(){let e={scene:"checkIn"};return await ds.post(us,e).then(t=>t.data.body)}import{ccwAxios as gs}from"@ccw-api/axios";var ls="https://community-web.ccw.site/user-card/detail";async function Pe(e){let t={oid:e};return await gs.post(ls,t).then(o=>o.data.body)}import{ccwAxios as Rs}from"@ccw-api/axios";var ys="https://community-web.ccw.site/user_label/list";async function Ce(){let e={};return await Rs.post(ys,e).then(t=>t.data.body)}import{ccwAxios as xs}from"@ccw-api/axios";var As="https://community-web.ccw.site/currency/account/personal";async function Se(){return await xs.post(As).then(e=>e.data.body)}import{ccwAxios as bs}from"@ccw-api/axios";var fs="https://community-web.ccw.site/emoji/all";async function he(){return await bs.post(fs,{}).then(e=>e.data.body)}import{ccwAxios as ws}from"@ccw-api/axios";var Ps="https://community-web.ccw.site/emoji/category/list";async function Ie(){return await ws.post(Ps,{}).then(e=>e.data.body)}import{ccwAxios as Cs}from"@ccw-api/axios";var Ss="https://community-web.ccw.site/emoji/page";async function Te(e="ENABLED",t={sortField:"createdAt"}){let o={...p,...t},r=i(Ss,o),s={page:o.page,perPage:o.perPage,status:e};return await Cs.post(r,s).then(n=>n.data.body)}import{ccwAxios as hs}from"@ccw-api/axios";var Is="https://community-web.ccw.site/event";async function De(e){let t={actionId:e};return await hs.post(Is,t).then(o=>o.data.body)}import{ccwAxios as Ts}from"@ccw-api/axios";var Ds="https://community-web.ccw.site/health/check";async function qe(){return await Ts.post(Ds).then(e=>e.data.body)}import{ccwAxios as qs}from"@ccw-api/axios";var Ms="https://community-web.ccw.site/leaflets/item/list";async function Me(e){let t={advertisementId:e};return await qs.post(Ms,t).then(o=>o.data.body)}import{ccwAxios as Bs}from"@ccw-api/axios";var Es="https://community-web.ccw.site/locked_user/detail";async function Be(e){let t={accountOid:e};return await Bs.post(Es,t).then(o=>o.data.body)}import{ccwAxios as Os}from"@ccw-api/axios";var Ls="https://community-web.ccw.site/muted_user/detail";async function Ee(e){let t={studentNumber:e};return await Os.post(Ls,t).then(o=>o.data.body)}import{ccwAxios as Us}from"@ccw-api/axios";var _s="https://community-web.ccw.site/notification/page";async function Oe(e="COMMENT_TO_ME",t={sortField:"createdAt"}){let o={...p,...t},r=i(_s,o),s={notifyGroup:e,page:o.page};return await Us.post(r,s).then(n=>n.data.body)}import{ccwAxios as ks}from"@ccw-api/axios";var Ns="https://community-web.ccw.site/notification/stats/v2";async function Le(e=!0){let t={countAll:e};return await ks.post(Ns,t).then(o=>o.data.body)}import{ccwAxios as Fs}from"@ccw-api/axios";var vs="https://community-web.ccw.site/typical_project/page";async function Ue(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(vs,o),s={studentOid:e,templateType:"APPLICATION"};return await Fs.post(r,s).then(n=>n.data.body)}import{ccwAxios as js}from"@ccw-api/axios";var Gs="https://community-web.ccw.site/typical_project/student/unread_count";async function _e(e){let t={studentOid:e};return await js.post(Gs,t).then(o=>o.data.body)}import{ccwAxios as Hs}from"@ccw-api/axios";var Ks="https://community-web.ccw.site/creation/own/page";async function ke(e={sortField:"updatedAt"},t=["BANNED","PUBLISHED","REJECTED","SUBMITTED"],o=!1){let r={...p,...e},s=i(Ks,r),n={statuses:t,ignoreTypicalProject:o};return await Hs.post(s,n).then(a=>a.data.body)}import{ccwAxios as Vs}from"@ccw-api/axios";var zs="https://community-web.ccw.site/creation/team_member/produce_ticket";async function Ne(e){let t={creationOid:e};return await Vs.post(zs,t).then(o=>o.data.body)}import{ccwAxios as Ws}from"@ccw-api/axios";var $s="https://community-web.ccw.site/creation/team_member/list";async function Fe(e,t){let o={creationOid:e,authorities:t};return await Ws.post($s,o).then(r=>r.data.body)}import{ccwAxios as Ys}from"@ccw-api/axios";var Js="https://community-web.ccw.site/creation/teamwork_log/page";async function ve(e,t,o={sortField:"createdAt"}){let r={...p,...o},s=i(Js,r),n={creationId:e,operateTargets:t},a=await Ys.post(s,n).then(m=>m.data.body),{data:c}=a,d=c.map(m=>{let{content:u}=m;return{...m,content:JSON.parse(u)}});return{...a,data:d}}import{ccwAxios as Zs}from"@ccw-api/axios";var Xs="https://community-web.ccw.site/creation/update";async function je(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 Zs.post(Xs,n).then(a=>a.data.body)}import{ccwAxios as Qs}from"@ccw-api/axios";var en="https://community-web.ccw.site/creation/submit";async function Ge(e){return await Qs.post(en,e).then(t=>t.data.body)}import{ccwAxios as tn}from"@ccw-api/axios";var on="https://community-web.ccw.site/creation/smart_contract/split_rule/detail";async function He(e){let t={creationOid:e};return await tn.post(on,t).then(o=>o.data.body)}import{ccwAxios as rn}from"@ccw-api/axios";var sn="https://community-web.ccw.site/students/bind_phone";async function Ke(e,t,o="86"){let r={phone:e,code:t,ruleCode:"ccw_sms",scene:"bindPhone",countryCode:o};return await rn.post(sn,r).then(s=>s.data.body)}import{ccwAxios as nn}from"@ccw-api/axios";var pn="https://community-web.ccw.site/students/password/change";async function Ve(e,t){let o={newPassword:e,code:t};return await nn.post(pn,o).then(r=>r.data.body)}import{ccwAxios as an}from"@ccw-api/axios";var cn="https://community-web.ccw.site/captcha/v2/create_by_session";async function ze(e="change_password",t="86",o="ccw_sms",r="SMS"){let s={type:r,countryCode:t,scene:e,ruleCode:o};return await an.post(cn,s).then(n=>n.data.body)}import{ccwAxios as mn}from"@ccw-api/axios";var dn="https://community-web.ccw.site/creation/smart_contract/split_rule/create";async function We(e,t){let o={creationOid:e,memberSplitDetails:t};return await mn.post(dn,o).then(r=>r.data.body)}import{ccwAxios as un}from"@ccw-api/axios";var gn="https://community-web.ccw.site/creation_attribute/detail";async function $e(e){let t={creationOid:e},o=await un.post(gn,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}}}import{ccwAxios as ln}from"@ccw-api/axios";var Rn="https://community-web.ccw.site/creation_activity_stats/list";async function Ye(e){let t={creationOid:e,type:"DAY"};return await ln.post(Rn,t).then(o=>o.data.body)}import{ccwAxios as yn}from"@ccw-api/axios";var xn="https://community-web.ccw.site/creation_release/page";async function Je(e,t={sortField:"submittedAt"}){let o={...p,...t},r=i(xn,o),s={creationOid:e};return await yn.post(r,s).then(n=>n.data.body)}import{ccwAxios as An}from"@ccw-api/axios";var bn="https://community-web.ccw.site/creation_release/code_profiling/detail";async function Ze(e,t){let o={creationOid:e,creationReleaseOid:t};return await An.post(bn,o).then(r=>r.data.body)}import{ccwAxios as fn}from"@ccw-api/axios";var wn="https://community-web.ccw.site/historical_team_member/page";async function Xe(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(wn,o),s={creationOid:e,page:o.page,perPage:o.perPage};return await fn.post(r,s).then(n=>n.data.body)}import{ccwAxios as Pn}from"@ccw-api/axios";var Cn="https://community-web.ccw.site/short_url/decompress";async function Qe(e){let t={shortUrlCode:e};return await Pn.post(Cn,t).then(o=>o.data.body)}import{ccwAxios as Sn}from"@ccw-api/axios";var hn="https://community-web.ccw.site/hash_tag/recommend/list";async function et(){return await Sn.post(hn).then(e=>e.data.body)}import{ccwAxios as In}from"@ccw-api/axios";var Tn="https://community-web.ccw.site/ccw-main/status";async function tt(){let e={};return await In.post(Tn,e).then(t=>t.data.body)}import{ccwAxios as Dn}from"@ccw-api/axios";var qn="https://community-web.ccw.site/study-community/cloud_variable/create";async function ot(e,t){let o={projectId:e,variables:t};return await Dn.post(qn,o).then(r=>r.data.body)}import{ccwAxios as Mn}from"@ccw-api/axios";var Bn="https://community-web.ccw.site/study-community/comment/top";async function rt(e){let t={id:e};return await Mn.post(Bn,t).then(o=>o.data.body)}import{ccwAxios as En}from"@ccw-api/axios";var On="https://community-web.ccw.site/study-community/comment/fold";async function st(e){let t={id:e};return await En.post(On,t).then(o=>o.data.body)}import{ccwAxios as Ln}from"@ccw-api/axios";var Un="https://community-web.ccw.site/study-community/comment/reset_weight";async function nt(e){let t={id:e};return await Ln.post(Un,t).then(o=>o.data.body)}import{ccwAxios as _n}from"@ccw-api/axios";var kn="https://community-web.ccw.site/study-community/comment/delete";async function it(e){let t={id:e};return await _n.post(kn,t).then(o=>o.data.body)}import{ccwAxios as Nn}from"@ccw-api/axios";var Fn="https://community-web.ccw.site/comment/create";async function pt(e,t,o){t.outline??="foo";let r={content:e,topic:t,sectionType:o};return await Nn.post(Fn,r).then(s=>s.data.body)}import{ccwAxios as vn}from"@ccw-api/axios";var jn="https://community-web.ccw.site/comment/like_record/create";async function at(e){let t={commentId:e};return await vn.post(jn,t).then(o=>o.data.body)}import{ccwAxios as Gn}from"@ccw-api/axios";var Hn="https://community-web.ccw.site/student/following/page";async function ct(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Hn,o),s={studentOid:e};return await Gn.post(r,s).then(n=>n.data.body)}import{ccwAxios as Kn}from"@ccw-api/axios";var Vn="https://community-web.ccw.site/study-trade/trade/donate";async function mt(e,t,o="CREATION"){let r={bucks:e,objectId:t,objectType:o};return await Kn.post(Vn,r).then(s=>s.data.body)}import{ccwAxios as zn}from"@ccw-api/axios";var Wn="https://community-web.ccw.site/user_package/user_product";async function dt(e=5,t={}){let o={...p,...t},r=i(Wn,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e};return await zn.post(r,s).then(n=>n.data.body)}import{ccwAxios as $n}from"@ccw-api/axios";var Yn="https://community-web.ccw.site/user_package/status";async function ut(e,t){let o={status:t,id:e};return await $n.post(Yn,o).then(r=>r.data.body)}import{ccwAxios as Jn}from"@ccw-api/axios";var Zn="https://community-web.ccw.site/great_creation/update";async function gt(e){let t={creationOid:e};return await Jn.post(Zn,t).then(o=>o.data.body)}import{ccwAxios as Xn}from"@ccw-api/axios";var Qn="https://community-web.ccw.site/smart_contract/execute";async function lt(e,t,o,r,s="CREATION"){let n={bizId:e,bizType:s,id:t,ruleId:o,params:{bucks:r}};return await Xn.post(Qn,n).then(a=>a.data.body)}import{ccwAxios as ei}from"@ccw-api/axios";var ti="https://community-web.ccw.site/smart_contract/account";async function Rt(e){let t={id:e};return await ei.post(ti,t).then(o=>o.data.body)}import{ccwAxios as oi}from"@ccw-api/axios";var ri="https://community-web.ccw.site/smart_contract/detail";async function yt(e){let t={id:e};return await oi.post(ri,t).then(o=>o.data.body)}import{ccwAxios as si}from"@ccw-api/axios";var ni="https://community-web.ccw.site/smart_contract/list";async function xt(e,t="CREATION"){let o={bizId:e,bizType:t};return await si.post(ni,o).then(r=>r.data.body)}import{ccwAxios as ii}from"@ccw-api/axios";var pi="https://community-web.ccw.site/extensions/following/status";async function At(e,t){let o={playingCreationOid:e,userOid:t};return await ii.post(pi,o).then(r=>r.data.body)}import{ccwAxios as ai}from"@ccw-api/axios";var ci="https://community-web.ccw.site/extensions/creation-like/detail";async function bt(e,t){let o={playingCreationOid:e,creationOid:t};return await ai.post(ci,o).then(r=>r.data.body)}import{ccwAxios as mi}from"@ccw-api/axios";var di="https://community-web.ccw.site/study-community/following/follow";async function ft(e){let t={followingOid:e};return await mi.post(di,t).then(o=>o.data.body)}import{ccwAxios as ui}from"@ccw-api/axios";var gi="https://community-web.ccw.site/study-community/following/unfollow";async function wt(e){let t={followingOid:e};return await ui.post(gi,t).then(o=>o.data.body)}var Pt={acceptAward:fe,bindStudentPhone:Ke,changeStudentPassword:Ve,donateTrade:mt,encodeShortCode:b,executeSmartContract:lt,createCloudVariable:ot,createComment:pt,createShortUrl:K,createSmsCaptchaBySession:ze,createSplitRule:We,decompressShortUrl:Qe,deleteComment:it,foldComment:st,followCreator:ft,unfollowCreator:wt,getApprovalTags:f,getCampaignResources:P,getCcwMainStatus:tt,getCheckInRecords:C,getCodeProfilingDetail:Ze,getCommentReplies:T,getCommentsByTopic:D,getConfigDetail:q,getCreationActivityStatsList:Ye,getCreationAttributeDetail:$e,getCreationDetail:B,getCreationFavoriteDetail:Z,getCreationIntroduction:O,getConnectCommunityCreationLikeStatus:bt,getCreationRecommendPositionList:X,getCreationReleasePage:Je,getCreationScreenshotPage:Q,getCreationStudentDetail:G,getCreationTags:H,getCreatorScore:pe,getDonatedRecordRanking:J,getExcellentCreations:E,getConnectCommunityFollowingStatus:At,getEmojiCategoryList:Ie,getEmojiPage:Te,getAllEmojis:he,getHashTagDetail:W,getHashTagFavoriteDetail:Y,getHistoricalTeamMemberPage:Xe,getManagedHashTags:$,getHealthCheck:qe,getLeafletsItemList:Me,getLikeDetail:L,getLoadingTips:U,getLockedUserDetail:Be,getMutedUserDetail:Ee,getMyHashTagCreations:z,getMyTasks:we,getNotifyDeleteReasons:te,getNotificationPage:Oe,getNotificationStats:Le,getOwnCreationPage:ke,getPersonalCurrencyAccount:Se,getPlanetsOfCreation:V,getPostDetail:oe,getPotentialCreations:N,getRecommendCreations:F,getRecommendCreators:v,getRecommendHashTags:et,getRemixedCreationPage:_,getReputationScoreLogPage:ue,getSearchHotWords:re,getSmartContractAccount:Rt,getSmartContractDetail:yt,getSmartContractList:xt,getSplitRuleDetail:He,getSpreadFeedUnreadCount:xe,getStudentBlockRecordDetail:se,getStudentBlockRecordList:ne,getStudentBlockStatus:ie,getStudentFollowingPage:ct,getStudentLastActiveAt:ae,getStudentProfile:de,getStudentSelfDetail:ge,getStudentSessions:me,getStudentsList:ce,getStudentStats:le,getStudyCommunityMemberDetail:ye,getSubjectAreaPage:Ae,getSubjectAreaPageByChannel:be,getTeamMemberList:Fe,getTeamworkLogPage:ve,getTime:w,getTypicalProjectPage:Ue,getTypicalProjectUnreadCount:_e,getUserAssetStorageSize:h,getUserCardDetail:Pe,getUserLabelList:Ce,getUserProductsPage:dt,queryMallProducts:M,getCreationsByStudent:k,insertCheckInRecord:S,likeComment:at,produceTeamMemberTicket:Ne,resetCommentWeight:nt,searchCloudAssets:I,searchCreationsByTag:j,sendEvent:De,setUserProductStatus:ut,submitCreation:Ge,topComment:rt,updateCreation:je,updateGreatCreation:gt,updateStudent:Re,viewCreationStats:ee};import{ccwAxios as li}from"@ccw-api/axios";var Ri="https://gandi-main.ccw.site/timestamp/current";async function Ct(){return await li.get(Ri).then(e=>e.data.body)}import{ccwAxios as yi}from"@ccw-api/axios";var xi="https://gandi-main.ccw.site/bulletins";async function St(e="PUBLISHED",t={sortField:"publishedAt"}){let o={...p,...t},r=i(xi,{...o,status:e});return await yi.get(r).then(s=>s.data.body)}import{ccwAxios as Ai}from"@ccw-api/axios";var bi="https://gandi-main.ccw.site/bulletins";async function ht(e){return await Ai.get(`${bi}/${e}`).then(t=>t.data.body)}import{ccwAxios as It}from"@ccw-api/axios";var Tt="https://gandi-main.ccw.site/creation/leaderboards";async function Dt(e,t,o,r=""){let s={score:t,oid:o,ext:r},n=`${Tt}/${e}/records`;return await It.post(n,s).then(a=>a.data.body)}async function qt(e){let t=`${Tt}/${e}/records`;return await It.get(t).then(o=>o.data.body)}var Mt={getCurrentTimestamp:Ct,getBulletinsPage:St,getBulletinDetail:ht,submitLeaderboardRecord:Dt,getLeaderboardRecords:qt};import{ccwAxios as fi}from"@ccw-api/axios";var wi="https://bfs-web.ccw.site/users";async function Bt(e,t={sortField:"updatedAt"}){let o={...p,...t},r=i(`${wi}/${e}/extensions`,o);return await fi.get(r).then(s=>s.data.body)}import{ccwAxios as Pi}from"@ccw-api/axios";var Ci="https://bfs-web.ccw.site/extensions";async function Et(e,t){let o={eid:e,bucks:t};return await Pi.post(`${Ci}/${e}/donate`,o).then(r=>r.data.body)}var Ot={donateExtension:Et,getUserExtensions:Bt};import{ccwAxios as Si}from"@ccw-api/axios";var hi="https://community-web-cloud-database.ccw.site/cloud_variable/save";async function Lt(e,t,o){let r={primaryKey:e,secondaryKey:t,value:o};return await Si.post(hi,r).then(s=>s.data.body)}async function Ut(e,t,o){return await Lt(e,t,{v:o})}async function _t(e,t,o){let r=`${e}-u`;return await Lt(r,`${t}`,o)}import{ccwAxios as Ii}from"@ccw-api/axios";var Ti="https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";async function kt(e,t,o,r){let s={accessKey:e,primaryKey:t,secondaryKey:o,filterKeys:r};return await Ii.post(Ti,s).then(n=>n.data.body)}var Nt={saveProjectCloudVariable:Ut,saveUserCloudVariable:_t,getCloudVariableDetailV2:kt};import{ccwAxios as Di}from"@ccw-api/axios";var qi="https://op-parent-api.xiguacity.cn/captcha/create";async function Ft(e="BLOCK_PUZZLE"){let t={type:e};return await Di.post(qi,t).then(o=>o.data.body)}import{ccwAxios as Mi}from"@ccw-api/axios";var Bi="https://op-parent-api.xiguacity.cn/captcha/check";async function vt(e,t,o=5){let r={data:{x:t,y:o},token:e};return await Mi.post(Bi,r).then(s=>s.data.body)}var jt={createCaptcha:Ft,checkCaptcha:vt};import{setToken as Il}from"@ccw-api/axios";var Cl={sso:A,communityWeb:Pt,gandiMain:Mt,bfsWeb:Ot,communityWebCloudDatabase:Nt,opParentApi:jt};export{Ot as bfsWeb,Pt as communityWeb,Nt as communityWebCloudDatabase,Cl as default,Mt as gandiMain,jt as opParentApi,Il as setToken,A as sso};
|
|
1
|
+
import{ccwAxios as Vt}from"@ccw-api/axios";var zt="https://sso.ccw.site/web/auth/login-by-password";async function g(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 Vt.post(zt,r).then(c=>c.data.body),a=JSON.parse(s);return{...n,extra:a}}import{ccwAxios as Wt}from"@ccw-api/axios";var $t="https://sso.ccw.site/web/auth/logout";async function l(){return await Wt.post($t,{}).then(e=>e.data.body)}import{ccwAxios as Yt}from"@ccw-api/axios";var Jt="https://sso.ccw.site/web/auth/logout_by_session";async function R(e){return await Yt.post(Jt,{id:e}).then(t=>t.data.body)}import{ccwAxios as Xt}from"@ccw-api/axios";var Zt="https://sso.ccw.site/web/auth/assistant/captcha/v2/create";async function y(e,t="loginbyPhone",o="86",r="ccw_sms",s){let n={recipient:e,countryCode:o,scene:t,ruleCode:r,captcha:s};return await Xt.post(Zt,n).then(a=>a.data.body)}import{ccwAxios as Qt}from"@ccw-api/axios";var eo="https://sso.ccw.site/web/auth/v3/login/by_phone";async function A(e,t,o={device:"Node",browser:"Node.js"},r="86",s="ccw_sms",n="loginbyPhone"){let{extra:a,...c}=await Qt.post(eo,{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 x={loginByPassword:g,logout:l,logoutBySession:R,createSmsCaptcha:y,loginByPhone:A};import{ccwAxios as to}from"@ccw-api/axios";var oo="https://community-web.ccw.site/api/v1/short_code/encode";async function b(e,t,o,r){let s={origin:{inviterAvatar:t,inviterName:o,inviterId:e,inviterType:"STUDENT",entrance:"create_detail",creationOid:r}};return await to.post(oo,s).then(n=>n.data.body)}import ro from"@ccw-api/axios";var so="https://community-web.ccw.site/approval/list";async function f(e){let t={objectId:e,objectType:"STUDENT"};return await ro.post(so,t).then(o=>o.data.body)}import no from"@ccw-api/axios";var io="https://community-web.ccw.site/base/dateTime";async function w(){return no.post(io,void 0).then(e=>e.data.body)}import{ccwAxios as po}from"@ccw-api/axios";var ao="https://community-web.ccw.site/campaign_resource/detail";async function P(e){return await po.post(ao,{keyword:e}).then(t=>t.data.body)}import{ccwAxios as co}from"@ccw-api/axios";var mo="https://community-web.ccw.site/check_in_record/detail";async function C(){let e={scene:"HOMEPAGE"};return await co.post(mo,e).then(t=>t.data.body)}import{ccwAxios as uo}from"@ccw-api/axios";var go="https://community-web.ccw.site/check_in_record/insert";async function I(){let e={scene:"HOMEPAGE"};return await uo.post(go,e).then(t=>t.data.body)}import{ccwAxios as lo}from"@ccw-api/axios";var Ro="https://community-web.ccw.site/cloud_asset/user/privacy";async function S(){return await lo.post(Ro,{}).then(e=>e.data.body)}import{ccwAxios as yo}from"@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 Ao="https://community-web.ccw.site/cloud_asset/search",xo={...p,sortField:"createdAt"};async function h(e,t="/",o={}){let r={...xo,...o},s=i(Ao,r),n={creatorOid:e,path:t};return await yo.post(s,n).then(a=>a.data.body)}import{ccwAxios as bo}from"@ccw-api/axios";var fo="https://community-web.ccw.site/comment/page";async function T(e,t,o=["PUBLISHED","FOLDED"],r={sortField:"createdAt"}){let s={...p,...r},n=i(fo,s),a={topicId:e,parentId:t,statuses:o};return await bo.post(n,a).then(c=>c.data.body)}import{ccwAxios as wo}from"@ccw-api/axios";var Po="https://community-web.ccw.site/comment/page_by_topic",Co={...p,sortField:"createdAt"};async function D(e,t,o,r={sortField:"createdAt"}){let s={...Co,...r},n=i(Po,s),a={subjectOid:e,subjectType:t,sectionType:o};return await wo.post(n,a).then(c=>c.data.body)}import{ccwAxios as Io}from"@ccw-api/axios";var So="https://community-web.ccw.site/config/detail";async function q(e){let t={key:e};return await Io.post(So,t).then(o=>o.data.body)}import{ccwAxios as ho}from"@ccw-api/axios";var To="https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";async function M(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(To,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e,source:"CCW_OFFICIAL"};return await ho.post(r,s).then(n=>n.data.body)}import{ccwAxios as Do}from"@ccw-api/axios";var qo="https://community-web.ccw.site/creation/create";async function B(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 Do.post(qo,a).then(c=>c.data.body)}import{ccwAxios as Mo}from"@ccw-api/axios";var Bo="https://community-web.ccw.site/creation/detail";async function O(e,t,o=""){let r={oid:e,accessKey:t,mode:o};return await Mo.post(Bo,r).then(s=>s.data.body)}import{ccwAxios as Oo}from"@ccw-api/axios";var Eo="https://community-web.ccw.site/creation/excellent/list";async function E(e){let t={num:e};return await Oo.post(Eo,t).then(o=>o.data.body)}import{ccwAxios as Lo}from"@ccw-api/axios";var Uo="https://community-web.ccw.site/creation/introduction/detail";async function L(e){let t={studentOid:e};return await Lo.post(Uo,t).then(o=>o.data.body)}import{ccwAxios as _o}from"@ccw-api/axios";var ko="https://community-web.ccw.site/creation/like/detail";async function U(e){let t={creationOid:e};return await _o.post(ko,t).then(o=>o.data.body)}import{ccwAxios as No}from"@ccw-api/axios";var vo="https://community-web.ccw.site/creation/loading/tips";async function _(){return await No.post(vo,{}).then(e=>e.data.body)}import{ccwAxios as Fo}from"@ccw-api/axios";var jo="https://community-web.ccw.site/creation/page",Go={...p,sortField:"createdAt"};async function k(e,t={}){let o={...Go,...t},r=i(jo,o),s={remixCreationOids:e};return await Fo.post(r,s).then(n=>n.data.body)}import{ccwAxios as Ho}from"@ccw-api/axios";var Ko="https://community-web.ccw.site/creation/page_by_student",Vo={...p,sortField:"createdAt"};async function N(e,t={}){let o={...Vo,...t},r=i(Ko,o),s={studentOids:e};return await Ho.post(r,s).then(n=>n.data.body)}import{ccwAxios as zo}from"@ccw-api/axios";var Wo="https://community-web.ccw.site/creation/potential/list";async function v(e){let t={num:e};return await zo.post(Wo,t).then(o=>o.data.body)}import{ccwAxios as $o}from"@ccw-api/axios";var Yo="https://community-web.ccw.site/creation/recommend",Jo={...p,sortField:"createdAt"};async function F(e,t={}){let o={...Jo,...t},r=i(Yo,o),s={num:e,subjectType:"POTENTIAL"};return await $o.post(r,s).then(n=>n.data.body)}import{ccwAxios as Xo}from"@ccw-api/axios";var Zo="https://community-web.ccw.site/recommend_creator/list";async function j(e=4,t=8){let o={excellentCount:e,potentialCount:t};return await Xo.post(Zo,o).then(r=>r.data.body)}import{ccwAxios as Qo}from"@ccw-api/axios";var er="https://community-web.ccw.site/creation/search/page",tr={...p,sortField:"createdAt"};async function G(e,t={}){let o={...tr,...t},r=i(er,o);return await Qo.post(r,e).then(s=>s.data.body)}import{ccwAxios as or}from"@ccw-api/axios";var rr="https://community-web.ccw.site/creation/student/detail";async function H(e){let t={studentOid:e};return await or.post(rr,t).then(o=>o.data.body)}import{ccwAxios as sr}from"@ccw-api/axios";var nr="https://community-web.ccw.site/creation/tag/list";async function K(){let e={visibility:"PUBLIC"};return await sr.post(nr,e).then(t=>t.data.body)}import{ccwAxios as ir}from"@ccw-api/axios";var pr="https://community-web.ccw.site/short_url/create";async function V(e){let t={originUrl:e};return await ir.post(pr,t).then(o=>o.data.body)}import{ccwAxios as ar}from"@ccw-api/axios";var cr="https://community-web.ccw.site/hash_tag_creation/list_relation";async function z(e){let t={creationOid:e};return await ar.post(cr,t).then(o=>o.data.body)}import{ccwAxios as mr}from"@ccw-api/axios";var ur="https://community-web.ccw.site/hash_tag_creation/mine",dr={...p,sortField:"lastPassedAt"};async function W(e,t,o={}){let r={...dr,...o},s=i(ur,r),n={...r,excludeHashTag:e,statuses:t};return await mr.post(s,n).then(a=>a.data.body)}import{ccwAxios as gr}from"@ccw-api/axios";var lr="https://community-web.ccw.site/hash_tag/detail";async function $(e){let t={identifier:e};return await gr.post(lr,t).then(o=>o.data.body)}import{ccwAxios as Rr}from"@ccw-api/axios";var yr="https://community-web.ccw.site/hash_tag/managed/list",Ar={...p,sortField:"createdAt"};async function Y(e,t=[],o={}){let r={...Ar,...o},s=i(yr,r),n={...r,studentOid:e,excludeHashTagIds:t};return await Rr.post(s,n).then(a=>a.data.body)}import{ccwAxios as xr}from"@ccw-api/axios";var br="https://community-web.ccw.site/hash_tag_favorite/detail";async function J(e){let t={hashTagId:e};return await xr.post(br,t).then(o=>o.data.body)}import{ccwAxios as fr}from"@ccw-api/axios";var wr="https://community-web.ccw.site/creation_donated_record/ranking_list";async function X(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(wr,o),s={creationOid:e};return await fr.post(r,s).then(n=>n.data.body)}import{ccwAxios as Pr}from"@ccw-api/axios";var Cr="https://community-web.ccw.site/creation_favorite/detail";async function Z(e){let t={creationOid:e};return await Pr.post(Cr,t).then(o=>o.data.body)}import{ccwAxios as Ir}from"@ccw-api/axios";var Sr="https://community-web.ccw.site/creation_recommend_position/list";async function Q(e){let t={creationOid:e};return await Ir.post(Sr,t).then(o=>o.data.body)}import{ccwAxios as hr}from"@ccw-api/axios";var Tr="https://community-web.ccw.site/creation_screenshot/page";async function ee(e,t={}){let o={...p,...t},r=i(Tr,o),s={subjectOid:e};return await hr.post(r,s).then(n=>n.data.body)}import{ccwAxios as Dr}from"@ccw-api/axios";var qr="https://community-web.ccw.site/creation_stats/view";async function te(e,t=""){let o={oid:e,inviteCode:t};return await Dr.post(qr,o).then(r=>r.data.body)}import{ccwAxios as Mr}from"@ccw-api/axios";var Br="https://community-web.ccw.site/notify_message/show";async function oe(){let e={type:"COMMENT_AUDIT"};return await Mr.post(Br,e).then(t=>t.data.body)}import{ccwAxios as Or}from"@ccw-api/axios";var Er="https://community-web.ccw.site/post/detail";async function re(e){let t={slug:e};return await Or.post(Er,t).then(o=>o.data.body)}import{ccwAxios as Lr}from"@ccw-api/axios";var Ur="https://community-web.ccw.site/search/hot_words";async function se(e){let t={length:e};return await Lr.post(Ur,t).then(o=>o.data.body)}import{ccwAxios as _r}from"@ccw-api/axios";var kr="https://community-web.ccw.site/student/block_record/detail";async function ne(e){let t={studentOid:e};return await _r.post(kr,t).then(o=>o.data.body)}import{ccwAxios as Nr}from"@ccw-api/axios";var vr="https://community-web.ccw.site/student/block_record/list";async function ie(e={sortField:"createdAt"}){let t={...p,...e},o=i(vr,t),r={};return await Nr.post(o,r).then(s=>s.data.body)}import{ccwAxios as Fr}from"@ccw-api/axios";var jr="https://community-web.ccw.site/student/block_record/status";async function pe(e){let t={studentOid:e};return await Fr.post(jr,t).then(o=>o.data.body)}import{ccwAxios as Gr}from"@ccw-api/axios";var Hr="https://community-web.ccw.site/students/creator_score";async function ae(){return await Gr.post(Hr,void 0).then(t=>t.data.body)}import{ccwAxios as Kr}from"@ccw-api/axios";var Vr="https://community-web.ccw.site/students/last_active_at";async function ce(e){let t={studentOid:e};return await Kr.post(Vr,t).then(o=>o.data.body)}import{ccwAxios as zr}from"@ccw-api/axios";var Wr="https://community-web.ccw.site/students/list";async function me(e){let t={studentOids:e};return await zr.post(Wr,t).then(o=>o.data.body)}import{ccwAxios as $r}from"@ccw-api/axios";var Yr="https://community-web.ccw.site/students/list_sessions";async function ue(e={sortField:"createdAt"}){let t={...p,...e},o=i(Yr,t),r={};return await $r.post(o,r).then(s=>s.data.body)}import{ccwAxios as Jr}from"@ccw-api/axios";var Xr="https://community-web.ccw.site/students/profile";async function de(e){let t={studentOid:e};return await Jr.post(Xr,t).then(o=>o.data.body)}import{ccwAxios as Zr}from"@ccw-api/axios";var Qr="https://community-web.ccw.site/students/reputation_score_log/page";async function ge(e={sortField:"createdAt"}){let t={...p,...e},o=i(Qr,t),r={};return await Zr.post(o,r).then(s=>s.data.body)}import{ccwAxios as es}from"@ccw-api/axios";var ts="https://community-web.ccw.site/students/self/detail";async function le(e,t,o){let r={needGrade:e,needExtraInfo:t,fields:o};return await es.post(ts,r).then(s=>s.data.body)}import{ccwAxios as os}from"@ccw-api/axios";var rs="https://community-web.ccw.site/students/stats";async function Re(e){let t={studentOid:e};return await os.post(rs,t).then(o=>o.data.body)}import{ccwAxios as ss}from"@ccw-api/axios";var ns="https://community-web.ccw.site/students/update";async function ye(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 ss.post(ns,m).then(d=>d.data.body)}import{ccwAxios as is}from"@ccw-api/axios";var ps="https://community-web.ccw.site/study-community/member/detail";async function Ae(){let e={};return await is.post(ps,e).then(t=>t.data.body)}import{ccwAxios as as}from"@ccw-api/axios";var cs="https://community-web.ccw.site/study-community/spread_feed/unread/count";async function xe(e){let t={studentOid:e};return await as.post(cs,t).then(o=>o.data.body)}import{ccwAxios as ms}from"@ccw-api/axios";var us="https://community-web.ccw.site/subject_area/page";async function be(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(us,o),s={scene:e};return await ms.post(r,s).then(n=>n.data.body)}import{ccwAxios as ds}from"@ccw-api/axios";var gs="https://community-web.ccw.site/subject_area/page_by_channel";async function fe(e,t={sortField:"campaignResourceId"}){let o={...p,...t},r=i(gs,o),s={channel:e,scene:"CUSTOM_PAGE"};return await ds.post(r,s).then(n=>n.data.body)}import{ccwAxios as ls}from"@ccw-api/axios";var Rs="https://community-web.ccw.site/task/award";async function we(e){let t={taskOid:e};return await ls.post(Rs,t).then(o=>o.data.body)}import{ccwAxios as ys}from"@ccw-api/axios";var As="https://community-web.ccw.site/task/mine";async function Pe(){let e={scene:"checkIn"};return await ys.post(As,e).then(t=>t.data.body)}import{ccwAxios as xs}from"@ccw-api/axios";var bs="https://community-web.ccw.site/user-card/detail";async function Ce(e){let t={oid:e};return await xs.post(bs,t).then(o=>o.data.body)}import{ccwAxios as fs}from"@ccw-api/axios";var ws="https://community-web.ccw.site/user_label/list";async function Ie(){let e={};return await fs.post(ws,e).then(t=>t.data.body)}import{ccwAxios as Ps}from"@ccw-api/axios";var Cs="https://community-web.ccw.site/currency/account/personal";async function Se(){return await Ps.post(Cs).then(e=>e.data.body)}import{ccwAxios as Is}from"@ccw-api/axios";var Ss="https://community-web.ccw.site/emoji/all";async function he(){return await Is.post(Ss,{}).then(e=>e.data.body)}import{ccwAxios as hs}from"@ccw-api/axios";var Ts="https://community-web.ccw.site/emoji/category/list";async function Te(){return await hs.post(Ts,{}).then(e=>e.data.body)}import{ccwAxios as Ds}from"@ccw-api/axios";var qs="https://community-web.ccw.site/emoji/page";async function De(e="ENABLED",t={sortField:"createdAt"}){let o={...p,...t},r=i(qs,o),s={page:o.page,perPage:o.perPage,status:e};return await Ds.post(r,s).then(n=>n.data.body)}import{ccwAxios as Ms}from"@ccw-api/axios";var Bs="https://community-web.ccw.site/event";async function qe(e){let t={actionId:e};return await Ms.post(Bs,t).then(o=>o.data.body)}import{ccwAxios as Os}from"@ccw-api/axios";var Es="https://community-web.ccw.site/health/check";async function Me(){return await Os.post(Es).then(e=>e.data.body)}import{ccwAxios as Ls}from"@ccw-api/axios";var Us="https://community-web.ccw.site/leaflets/item/list";async function Be(e){let t={advertisementId:e};return await Ls.post(Us,t).then(o=>o.data.body)}import{ccwAxios as _s}from"@ccw-api/axios";var ks="https://community-web.ccw.site/locked_user/detail";async function Oe(e){let t={accountOid:e};return await _s.post(ks,t).then(o=>o.data.body)}import{ccwAxios as Ns}from"@ccw-api/axios";var vs="https://community-web.ccw.site/muted_user/detail";async function Ee(e){let t={studentNumber:e};return await Ns.post(vs,t).then(o=>o.data.body)}import{ccwAxios as Fs}from"@ccw-api/axios";var js="https://community-web.ccw.site/notification/page";async function Le(e="COMMENT_TO_ME",t={sortField:"createdAt"}){let o={...p,...t},r=i(js,o),s={notifyGroup:e,page:o.page};return await Fs.post(r,s).then(n=>n.data.body)}import{ccwAxios as Gs}from"@ccw-api/axios";var Hs="https://community-web.ccw.site/notification/stats/v2";async function Ue(e=!0){let t={countAll:e};return await Gs.post(Hs,t).then(o=>o.data.body)}import{ccwAxios as Ks}from"@ccw-api/axios";var Vs="https://community-web.ccw.site/typical_project/page";async function _e(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Vs,o),s={studentOid:e,templateType:"APPLICATION"};return await Ks.post(r,s).then(n=>n.data.body)}import{ccwAxios as zs}from"@ccw-api/axios";var Ws="https://community-web.ccw.site/typical_project/student/unread_count";async function ke(e){let t={studentOid:e};return await zs.post(Ws,t).then(o=>o.data.body)}import{ccwAxios as $s}from"@ccw-api/axios";var Ys="https://community-web.ccw.site/creation/own/page";async function Ne(e={sortField:"updatedAt"},t=["BANNED","PUBLISHED","REJECTED","SUBMITTED"],o=!1){let r={...p,...e},s=i(Ys,r),n={statuses:t,ignoreTypicalProject:o};return await $s.post(s,n).then(a=>a.data.body)}import{ccwAxios as Js}from"@ccw-api/axios";var Xs="https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch";async function ve(e){let t={creationOid:e};return await Js.post(Xs,t).then(o=>o.data.body)}import{ccwAxios as Zs}from"@ccw-api/axios";var Qs="https://community-web.ccw.site/creation/team_member/invite_token/fetch";async function Fe(e,t="MEMBER"){let o={creationOid:e,authority:t};return await Zs.post(Qs,o).then(r=>r.data.body)}import{ccwAxios as en}from"@ccw-api/axios";var tn="https://community-web.ccw.site/creation/team_member/produce_ticket";async function je(e){let t={creationOid:e};return await en.post(tn,t).then(o=>o.data.body)}import{ccwAxios as on}from"@ccw-api/axios";var rn="https://community-web.ccw.site/creation/team_member/list";async function Ge(e,t){let o={creationOid:e,authorities:t};return await on.post(rn,o).then(r=>r.data.body)}import{ccwAxios as sn}from"@ccw-api/axios";var nn="https://community-web.ccw.site/creation/teamwork_log/page";async function He(e,t,o={sortField:"createdAt"}){let r={...p,...o},s=i(nn,r),n={creationId:e,operateTargets:t},a=await sn.post(s,n).then(m=>m.data.body),{data:c}=a,u=c.map(m=>{let{content:d}=m;return{...m,content:JSON.parse(d)}});return{...a,data:u}}import{ccwAxios as pn}from"@ccw-api/axios";var an="https://community-web.ccw.site/creation/update";async function Ke(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 pn.post(an,n).then(a=>a.data.body)}import{ccwAxios as cn}from"@ccw-api/axios";var mn="https://community-web.ccw.site/creation/submit";async function Ve(e){return await cn.post(mn,e).then(t=>t.data.body)}import{ccwAxios as un}from"@ccw-api/axios";var dn="https://community-web.ccw.site/creation/smart_contract/split_rule/detail";async function ze(e){let t={creationOid:e};return await un.post(dn,t).then(o=>o.data.body)}import{ccwAxios as gn}from"@ccw-api/axios";var ln="https://community-web.ccw.site/students/bind_phone";async function We(e,t,o="86"){let r={phone:e,code:t,ruleCode:"ccw_sms",scene:"bindPhone",countryCode:o};return await gn.post(ln,r).then(s=>s.data.body)}import{ccwAxios as Rn}from"@ccw-api/axios";var yn="https://community-web.ccw.site/students/password/change";async function $e(e,t){let o={newPassword:e,code:t};return await Rn.post(yn,o).then(r=>r.data.body)}import{ccwAxios as An}from"@ccw-api/axios";var xn="https://community-web.ccw.site/captcha/v2/create_by_session";async function Ye(e="change_password",t="86",o="ccw_sms",r="SMS"){let s={type:r,countryCode:t,scene:e,ruleCode:o};return await An.post(xn,s).then(n=>n.data.body)}import{ccwAxios as bn}from"@ccw-api/axios";var fn="https://community-web.ccw.site/creation/smart_contract/split_rule/create";async function Je(e,t){let o={creationOid:e,memberSplitDetails:t};return await bn.post(fn,o).then(r=>r.data.body)}import{ccwAxios as wn}from"@ccw-api/axios";var Pn="https://community-web.ccw.site/creation_attribute/detail";async function Xe(e){let t={creationOid:e},o=await wn.post(Pn,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}}}import{ccwAxios as Cn}from"@ccw-api/axios";var In="https://community-web.ccw.site/creation_activity_stats/list";async function Ze(e){let t={creationOid:e,type:"DAY"};return await Cn.post(In,t).then(o=>o.data.body)}import{ccwAxios as Sn}from"@ccw-api/axios";var hn="https://community-web.ccw.site/creation_release/page";async function Qe(e,t={sortField:"submittedAt"}){let o={...p,...t},r=i(hn,o),s={creationOid:e};return await Sn.post(r,s).then(n=>n.data.body)}import{ccwAxios as Tn}from"@ccw-api/axios";var Dn="https://community-web.ccw.site/creation_release/code_profiling/detail";async function et(e,t){let o={creationOid:e,creationReleaseOid:t};return await Tn.post(Dn,o).then(r=>r.data.body)}import{ccwAxios as qn}from"@ccw-api/axios";var Mn="https://community-web.ccw.site/historical_team_member/page";async function tt(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Mn,o),s={creationOid:e,page:o.page,perPage:o.perPage};return await qn.post(r,s).then(n=>n.data.body)}import{ccwAxios as Bn}from"@ccw-api/axios";var On="https://community-web.ccw.site/short_url/decompress";async function ot(e){let t={shortUrlCode:e};return await Bn.post(On,t).then(o=>o.data.body)}import{ccwAxios as En}from"@ccw-api/axios";var Ln="https://community-web.ccw.site/hash_tag/recommend/list";async function rt(){return await En.post(Ln).then(e=>e.data.body)}import{ccwAxios as Un}from"@ccw-api/axios";var _n="https://community-web.ccw.site/ccw-main/status";async function st(){let e={};return await Un.post(_n,e).then(t=>t.data.body)}import{ccwAxios as kn}from"@ccw-api/axios";var Nn="https://community-web.ccw.site/study-community/cloud_variable/create";async function nt(e,t){let o={projectId:e,variables:t};return await kn.post(Nn,o).then(r=>r.data.body)}import{ccwAxios as vn}from"@ccw-api/axios";var Fn="https://community-web.ccw.site/study-community/comment/top";async function it(e){let t={id:e};return await vn.post(Fn,t).then(o=>o.data.body)}import{ccwAxios as jn}from"@ccw-api/axios";var Gn="https://community-web.ccw.site/study-community/comment/fold";async function pt(e){let t={id:e};return await jn.post(Gn,t).then(o=>o.data.body)}import{ccwAxios as Hn}from"@ccw-api/axios";var Kn="https://community-web.ccw.site/study-community/comment/reset_weight";async function at(e){let t={id:e};return await Hn.post(Kn,t).then(o=>o.data.body)}import{ccwAxios as Vn}from"@ccw-api/axios";var zn="https://community-web.ccw.site/study-community/comment/delete";async function ct(e){let t={id:e};return await Vn.post(zn,t).then(o=>o.data.body)}import{ccwAxios as Wn}from"@ccw-api/axios";var $n="https://community-web.ccw.site/comment/create";async function mt(e,t,o){t.outline??="foo";let r={content:e,topic:t,sectionType:o};return await Wn.post($n,r).then(s=>s.data.body)}import{ccwAxios as Yn}from"@ccw-api/axios";var Jn="https://community-web.ccw.site/comment/like_record/create";async function ut(e){let t={commentId:e};return await Yn.post(Jn,t).then(o=>o.data.body)}import{ccwAxios as Xn}from"@ccw-api/axios";var Zn="https://community-web.ccw.site/student/following/page";async function dt(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Zn,o),s={studentOid:e};return await Xn.post(r,s).then(n=>n.data.body)}import{ccwAxios as Qn}from"@ccw-api/axios";var ei="https://community-web.ccw.site/study-trade/trade/donate";async function gt(e,t,o="CREATION"){let r={bucks:e,objectId:t,objectType:o};return await Qn.post(ei,r).then(s=>s.data.body)}import{ccwAxios as ti}from"@ccw-api/axios";var oi="https://community-web.ccw.site/user_package/user_product";async function lt(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 ti.post(r,s).then(n=>n.data.body)}import{ccwAxios as ri}from"@ccw-api/axios";var si="https://community-web.ccw.site/user_package/status";async function Rt(e,t){let o={status:t,id:e};return await ri.post(si,o).then(r=>r.data.body)}import{ccwAxios as ni}from"@ccw-api/axios";var ii="https://community-web.ccw.site/great_creation/update";async function yt(e){let t={creationOid:e};return await ni.post(ii,t).then(o=>o.data.body)}import{ccwAxios as pi}from"@ccw-api/axios";var ai="https://community-web.ccw.site/smart_contract/execute";async function At(e,t,o,r,s="CREATION"){let n={bizId:e,bizType:s,id:t,ruleId:o,params:{bucks:r}};return await pi.post(ai,n).then(a=>a.data.body)}import{ccwAxios as ci}from"@ccw-api/axios";var mi="https://community-web.ccw.site/smart_contract/account";async function xt(e){let t={id:e};return await ci.post(mi,t).then(o=>o.data.body)}import{ccwAxios as ui}from"@ccw-api/axios";var di="https://community-web.ccw.site/smart_contract/detail";async function bt(e){let t={id:e};return await ui.post(di,t).then(o=>o.data.body)}import{ccwAxios as gi}from"@ccw-api/axios";var li="https://community-web.ccw.site/smart_contract/list";async function ft(e,t="CREATION"){let o={bizId:e,bizType:t};return await gi.post(li,o).then(r=>r.data.body)}import{ccwAxios as Ri}from"@ccw-api/axios";var yi="https://community-web.ccw.site/extensions/following/status";async function wt(e,t){let o={playingCreationOid:e,userOid:t};return await Ri.post(yi,o).then(r=>r.data.body)}import{ccwAxios as Ai}from"@ccw-api/axios";var xi="https://community-web.ccw.site/extensions/creation-like/detail";async function Pt(e,t){let o={playingCreationOid:e,creationOid:t};return await Ai.post(xi,o).then(r=>r.data.body)}import{ccwAxios as bi}from"@ccw-api/axios";var fi="https://community-web.ccw.site/study-community/following/follow";async function Ct(e){let t={followingOid:e};return await bi.post(fi,t).then(o=>o.data.body)}import{ccwAxios as wi}from"@ccw-api/axios";var Pi="https://community-web.ccw.site/study-community/following/unfollow";async function It(e){let t={followingOid:e};return await wi.post(Pi,t).then(o=>o.data.body)}var St={acceptAward:we,bindStudentPhone:We,changeStudentPassword:$e,createCreation:B,donateTrade:gt,encodeShortCode:b,executeSmartContract:At,fetchMemberInviteToken:Fe,fetchObserverInviteToken:ve,createCloudVariable:nt,createComment:mt,createShortUrl:V,createSmsCaptchaBySession:Ye,createSplitRule:Je,decompressShortUrl:ot,deleteComment:ct,foldComment:pt,followCreator:Ct,unfollowCreator:It,getApprovalTags:f,getCampaignResources:P,getCcwMainStatus:st,getCheckInRecords:C,getCodeProfilingDetail:et,getCommentReplies:T,getCommentsByTopic:D,getConfigDetail:q,getCreationActivityStatsList:Ze,getCreationAttributeDetail:Xe,getCreationDetail:O,getCreationFavoriteDetail:Z,getCreationIntroduction:L,getConnectCommunityCreationLikeStatus:Pt,getCreationRecommendPositionList:Q,getCreationReleasePage:Qe,getCreationScreenshotPage:ee,getCreationStudentDetail:H,getCreationTags:K,getCreatorScore:ae,getDonatedRecordRanking:X,getExcellentCreations:E,getConnectCommunityFollowingStatus:wt,getEmojiCategoryList:Te,getEmojiPage:De,getAllEmojis:he,getHashTagDetail:$,getHashTagFavoriteDetail:J,getHistoricalTeamMemberPage:tt,getManagedHashTags:Y,getHealthCheck:Me,getLeafletsItemList:Be,getLikeDetail:U,getLoadingTips:_,getLockedUserDetail:Oe,getMutedUserDetail:Ee,getMyHashTagCreations:W,getMyTasks:Pe,getNotifyDeleteReasons:oe,getNotificationPage:Le,getNotificationStats:Ue,getOwnCreationPage:Ne,getPersonalCurrencyAccount:Se,getPlanetsOfCreation:z,getPostDetail:re,getPotentialCreations:v,getRecommendCreations:F,getRecommendCreators:j,getRecommendHashTags:rt,getRemixedCreationPage:k,getReputationScoreLogPage:ge,getSearchHotWords:se,getSmartContractAccount:xt,getSmartContractDetail:bt,getSmartContractList:ft,getSplitRuleDetail:ze,getSpreadFeedUnreadCount:xe,getStudentBlockRecordDetail:ne,getStudentBlockRecordList:ie,getStudentBlockStatus:pe,getStudentFollowingPage:dt,getStudentLastActiveAt:ce,getStudentProfile:de,getStudentSelfDetail:le,getStudentSessions:ue,getStudentsList:me,getStudentStats:Re,getStudyCommunityMemberDetail:Ae,getSubjectAreaPage:be,getSubjectAreaPageByChannel:fe,getTeamMemberList:Ge,getTeamworkLogPage:He,getTime:w,getTypicalProjectPage:_e,getTypicalProjectUnreadCount:ke,getUserAssetStorageSize:S,getUserCardDetail:Ce,getUserLabelList:Ie,getUserProductsPage:lt,queryMallProducts:M,getCreationsByStudent:N,insertCheckInRecord:I,likeComment:ut,produceTeamMemberTicket:je,resetCommentWeight:at,searchCloudAssets:h,searchCreationsByTag:G,sendEvent:qe,setUserProductStatus:Rt,submitCreation:Ve,topComment:it,updateCreation:Ke,updateGreatCreation:yt,updateStudent:ye,viewCreationStats:te};import{ccwAxios as Ci}from"@ccw-api/axios";var Ii="https://gandi-main.ccw.site/timestamp/current";async function ht(){return await Ci.get(Ii).then(e=>e.data.body)}import{ccwAxios as Si}from"@ccw-api/axios";var hi="https://gandi-main.ccw.site/bulletins";async function Tt(e="PUBLISHED",t={sortField:"publishedAt"}){let o={...p,...t},r=i(hi,{...o,status:e});return await Si.get(r).then(s=>s.data.body)}import{ccwAxios as Ti}from"@ccw-api/axios";var Di="https://gandi-main.ccw.site/bulletins";async function Dt(e){return await Ti.get(`${Di}/${e}`).then(t=>t.data.body)}import{ccwAxios as qt}from"@ccw-api/axios";var Mt="https://gandi-main.ccw.site/creation/leaderboards";async function Bt(e,t,o,r=""){let s={score:t,oid:o,ext:r},n=`${Mt}/${e}/records`;return await qt.post(n,s).then(a=>a.data.body)}async function Ot(e){let t=`${Mt}/${e}/records`;return await qt.get(t).then(o=>o.data.body)}var Et={getCurrentTimestamp:ht,getBulletinsPage:Tt,getBulletinDetail:Dt,submitLeaderboardRecord:Bt,getLeaderboardRecords:Ot};import{ccwAxios as qi}from"@ccw-api/axios";var Mi="https://bfs-web.ccw.site/users";async function Lt(e,t={sortField:"updatedAt"}){let o={...p,...t},r=i(`${Mi}/${e}/extensions`,o);return await qi.get(r).then(s=>s.data.body)}import{ccwAxios as Bi}from"@ccw-api/axios";var Oi="https://bfs-web.ccw.site/extensions";async function Ut(e,t){let o={eid:e,bucks:t};return await Bi.post(`${Oi}/${e}/donate`,o).then(r=>r.data.body)}var _t={donateExtension:Ut,getUserExtensions:Lt};import{ccwAxios as Ei}from"@ccw-api/axios";var Li="https://community-web-cloud-database.ccw.site/cloud_variable/save";async function kt(e,t,o){let r={primaryKey:e,secondaryKey:t,value:o};return await Ei.post(Li,r).then(s=>s.data.body)}async function Nt(e,t,o){return await kt(e,t,{v:o})}async function vt(e,t,o){let r=`${e}-u`;return await kt(r,`${t}`,o)}import{ccwAxios as Ui}from"@ccw-api/axios";var _i="https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";async function Ft(e,t,o,r){let s={accessKey:e,primaryKey:t,secondaryKey:o,filterKeys:r};return await Ui.post(_i,s).then(n=>n.data.body)}var jt={saveProjectCloudVariable:Nt,saveUserCloudVariable:vt,getCloudVariableDetailV2:Ft};import{ccwAxios as ki}from"@ccw-api/axios";var Ni="https://op-parent-api.xiguacity.cn/captcha/create";async function Gt(e="BLOCK_PUZZLE"){let t={type:e};return await ki.post(Ni,t).then(o=>o.data.body)}import{ccwAxios as vi}from"@ccw-api/axios";var Fi="https://op-parent-api.xiguacity.cn/captcha/check";async function Ht(e,t,o=5){let r={data:{x:t,y:o},token:e};return await vi.post(Fi,r).then(s=>s.data.body)}var Kt={createCaptcha:Gt,checkCaptcha:Ht};import{setToken as Kl}from"@ccw-api/axios";var jl={sso:x,communityWeb:St,gandiMain:Et,bfsWeb:_t,communityWebCloudDatabase:jt,opParentApi:Kt};export{_t as bfsWeb,St as communityWeb,jt as communityWebCloudDatabase,jl as default,Et as gandiMain,Kt as opParentApi,Kl as setToken,x as sso};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccw-api/api",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "ccw api collections",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Meng Fuzi",
|
|
@@ -22,24 +22,26 @@
|
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"prepublishOnly": "npm run build && npm test",
|
|
25
|
-
"test": "
|
|
26
|
-
"test:dev": "
|
|
25
|
+
"test": "node --import tsx --import ./env.ts --test \"src/**/*.test.ts\"",
|
|
26
|
+
"test:dev": "node --import tsx --import ./env.ts --test --watch \"src/**/*.test.ts\"",
|
|
27
|
+
"test:single": "node --import tsx --import ./env.ts --test",
|
|
27
28
|
"doc": "typedoc",
|
|
28
29
|
"doc:dev": "typedoc --watch",
|
|
29
30
|
"build": "tsup"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"@ccw-api/axios": "^
|
|
33
|
+
"@ccw-api/axios": "^6.0.1"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@types/jest": "^30.0.0",
|
|
36
36
|
"@types/node": "^26.0.1",
|
|
37
37
|
"dotenv": "^17.4.2",
|
|
38
|
-
"jest": "^30.4.2",
|
|
39
38
|
"prettier-plugin-sort-members": "^0.2.4",
|
|
40
39
|
"resolve-tspaths": "^0.8.23",
|
|
41
|
-
"ts-jest": "^29.4.11",
|
|
42
40
|
"tsup": "^8.5.1",
|
|
41
|
+
"tsx": "^4.19.2",
|
|
43
42
|
"typedoc": "^0.28.19"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"registry": "https://registry.npmjs.org/"
|
|
44
46
|
}
|
|
45
47
|
}
|