@ccw-api/api 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bfs.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as bfsWeb } from "./index-IcG5LsGk.cjs";
1
+ import { t as bfsWeb } from "./index-CGc-IRl1.cjs";
2
2
  export { bfsWeb };
package/dist/bfs.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as bfsWeb } from "./index-CDuyecw5.js";
1
+ import { t as bfsWeb } from "./index-0a1W6K_R.js";
2
2
  export { bfsWeb };
@@ -0,0 +1 @@
1
+ import{t as e}from"./request-CzgJtv9u.js";import{n as t,t as n}from"./queryPages-Cj4eQL4Q.js";async function r(t,n,r,i){let a={origin:{inviterAvatar:n,inviterName:r,inviterId:t,inviterType:`STUDENT`,entrance:`create_detail`,creationOid:i}};return await e.post(`https://community-web.ccw.site/api/v1/short_code/encode`,a).then(e=>e.data.body)}async function i(t){let n={objectId:t,objectType:`STUDENT`};return await e.post(`https://community-web.ccw.site/approval/list`,n).then(e=>e.data.body)}async function a(){return e.post(`https://community-web.ccw.site/base/dateTime`,void 0).then(e=>e.data.body)}async function o(t){return await e.post(`https://community-web.ccw.site/campaign_resource/detail`,{keyword:t}).then(e=>e.data.body)}async function s(){return await e.post(`https://community-web.ccw.site/check_in_record/detail`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function c(){return await e.post(`https://community-web.ccw.site/check_in_record/insert`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function l(){return await e.post(`https://community-web.ccw.site/cloud_asset/user/privacy`,{}).then(e=>e.data.body)}const u={...n,sortField:`createdAt`};async function ee(n,r=`/`,i={}){let a=t(`https://community-web.ccw.site/cloud_asset/search`,{...u,...i}),o={creatorOid:n,path:r};return await e.post(a,o).then(e=>e.data.body)}async function te(r,i,a=[`PUBLISHED`,`FOLDED`],o={sortField:`createdAt`}){let s=t(`https://community-web.ccw.site/comment/page`,{...n,...o}),c={topicId:r,parentId:i,statuses:a};return await e.post(s,c).then(e=>e.data.body)}const d={...n,sortField:`createdAt`};async function f(n,r,i,a={sortField:`createdAt`}){let o=t(`https://community-web.ccw.site/comment/page_by_topic`,{...d,...a}),s={subjectOid:n,subjectType:r,sectionType:i};return await e.post(o,s).then(e=>e.data.body)}async function p(t){let n={key:t};return await e.post(`https://community-web.ccw.site/config/detail`,n).then(e=>e.data.body)}async function m(r,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/ccw-mall/ccw/product/fe/query`,a),s={page:a.page,perPage:a.perPage,sortType:a.sortType,productCategory:r,source:`CCW_OFFICIAL`};return await e.post(o,s).then(e=>e.data.body)}async function h(t,n,r,i=`ORIGINAL`,a=`LANDSCAPE`,o=`PRIVATE`){let s={type:i,title:t,latestProjectLink:n,screenMode:a,artifactType:`STANDARD`,sourceOpenLevel:o,latestCoverLink:r};return await e.post(`https://community-web.ccw.site/creation/create`,s).then(e=>e.data.body)}async function g(t,n,r=``){let i={oid:t,accessKey:n,mode:r};return await e.post(`https://community-web.ccw.site/creation/detail`,i).then(e=>e.data.body)}async function _(t){let n={num:t};return await e.post(`https://community-web.ccw.site/creation/excellent/list`,n).then(e=>e.data.body)}async function v(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/creation/introduction/detail`,n).then(e=>e.data.body)}async function y(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/like/detail`,n).then(e=>e.data.body)}async function b(){return await e.post(`https://community-web.ccw.site/creation/loading/tips`,{}).then(e=>e.data.body)}const x={...n,sortField:`createdAt`};async function S(n,r={}){let i=t(`https://community-web.ccw.site/creation/page`,{...x,...r}),a={remixCreationOids:n};return await e.post(i,a).then(e=>e.data.body)}const C={...n,sortField:`createdAt`};async function w(n,r={}){let i=t(`https://community-web.ccw.site/creation/page_by_student`,{...C,...r}),a={studentOids:n};return await e.post(i,a).then(e=>e.data.body)}async function T(t){let n={num:t};return await e.post(`https://community-web.ccw.site/creation/potential/list`,n).then(e=>e.data.body)}const E={...n,sortField:`createdAt`};async function D(n,r={}){let i=t(`https://community-web.ccw.site/creation/recommend`,{...E,...r}),a={num:n,subjectType:`POTENTIAL`};return await e.post(i,a).then(e=>e.data.body)}async function O(t=4,n=8){let r={excellentCount:t,potentialCount:n};return await e.post(`https://community-web.ccw.site/recommend_creator/list`,r).then(e=>e.data.body)}const k={...n,sortField:`createdAt`};async function A(n,r={}){let i=t(`https://community-web.ccw.site/creation/search/page`,{...k,...r});return await e.post(i,n).then(e=>e.data.body)}async function j(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/creation/student/detail`,n).then(e=>e.data.body)}async function M(){return await e.post(`https://community-web.ccw.site/creation/tag/list`,{visibility:`PUBLIC`}).then(e=>e.data.body)}async function N(t){let n={originUrl:t};return await e.post(`https://community-web.ccw.site/short_url/create`,n).then(e=>e.data.body)}async function P(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/hash_tag_creation/list_relation`,n).then(e=>e.data.body)}const F={...n,sortField:`lastPassedAt`};async function I(n,r,i={}){let a={...F,...i},o=t(`https://community-web.ccw.site/hash_tag_creation/mine`,a),s={...a,excludeHashTag:n,statuses:r};return await e.post(o,s).then(e=>e.data.body)}async function L(t){let n={identifier:t};return await e.post(`https://community-web.ccw.site/hash_tag/detail`,n).then(e=>e.data.body)}const R={...n,sortField:`createdAt`};async function z(n,r=[],i={}){let a={...R,...i},o=t(`https://community-web.ccw.site/hash_tag/managed/list`,a),s={...a,studentOid:n,excludeHashTagIds:r};return await e.post(o,s).then(e=>e.data.body)}async function B(t){let n={hashTagId:t};return await e.post(`https://community-web.ccw.site/hash_tag_favorite/detail`,n).then(e=>e.data.body)}async function V(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/creation_donated_record/ranking_list`,{...n,...i}),o={creationOid:r};return await e.post(a,o).then(e=>e.data.body)}async function H(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation_favorite/detail`,n).then(e=>e.data.body)}async function U(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation_recommend_position/list`,n).then(e=>e.data.body)}async function W(r,i={}){let a=t(`https://community-web.ccw.site/creation_screenshot/page`,{...n,...i}),o={subjectOid:r};return await e.post(a,o).then(e=>e.data.body)}async function G(t,n=``){let r={oid:t,inviteCode:n};return await e.post(`https://community-web.ccw.site/creation_stats/view`,r).then(e=>e.data.body)}async function K(){return await e.post(`https://community-web.ccw.site/notify_message/show`,{type:`COMMENT_AUDIT`}).then(e=>e.data.body)}async function q(t){let n={slug:t};return await e.post(`https://community-web.ccw.site/post/detail`,n).then(e=>e.data.body)}async function J(t){let n={length:t};return await e.post(`https://community-web.ccw.site/search/hot_words`,n).then(e=>e.data.body)}async function Y(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/student/block_record/detail`,n).then(e=>e.data.body)}async function X(r={sortField:`createdAt`}){let i=t(`https://community-web.ccw.site/student/block_record/list`,{...n,...r});return await e.post(i,{}).then(e=>e.data.body)}async function Z(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/student/block_record/status`,n).then(e=>e.data.body)}async function Q(){return await e.post(`https://community-web.ccw.site/students/creator_score`,void 0).then(e=>e.data.body)}async function ne(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/students/last_active_at`,n).then(e=>e.data.body)}async function re(t){let n={studentOids:t};return await e.post(`https://community-web.ccw.site/students/list`,n).then(e=>e.data.body)}async function ie(r={sortField:`createdAt`}){let i=t(`https://community-web.ccw.site/students/list_sessions`,{...n,...r});return await e.post(i,{}).then(e=>e.data.body)}async function ae(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/students/profile`,n).then(e=>e.data.body)}async function oe(r={sortField:`createdAt`}){let i=t(`https://community-web.ccw.site/students/reputation_score_log/page`,{...n,...r});return await e.post(i,{}).then(e=>e.data.body)}async function se(t,n,r){let i={needGrade:t,needExtraInfo:n,fields:r};return await e.post(`https://community-web.ccw.site/students/self/detail`,i).then(e=>e.data.body)}async function ce(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/students/stats`,n).then(e=>e.data.body)}async function le(t){let n=t;return await e.post(`https://community-web.ccw.site/students/update`,n).then(e=>e.data.body)}async function ue(){return await e.post(`https://community-web.ccw.site/study-community/member/detail`,{}).then(e=>e.data.body)}async function de(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/study-community/spread_feed/unread/count`,n).then(e=>e.data.body)}async function fe(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/subject_area/page`,{...n,...i}),o={scene:r};return await e.post(a,o).then(e=>e.data.body)}async function pe(r,i={sortField:`campaignResourceId`}){let a=t(`https://community-web.ccw.site/subject_area/page_by_channel`,{...n,...i}),o={channel:r,scene:`CUSTOM_PAGE`};return await e.post(a,o).then(e=>e.data.body)}async function me(t){let n={taskOid:t};return await e.post(`https://community-web.ccw.site/task/award`,n).then(e=>e.data.body)}async function he(){return await e.post(`https://community-web.ccw.site/task/mine`,{scene:`checkIn`}).then(e=>e.data.body)}async function ge(t){let n={oid:t};return await e.post(`https://community-web.ccw.site/user-card/detail`,n).then(e=>e.data.body)}async function _e(){return await e.post(`https://community-web.ccw.site/user_label/list`,{}).then(e=>e.data.body)}async function ve(){return await e.post(`https://community-web.ccw.site/currency/account/personal`).then(e=>e.data.body)}async function ye(){return await e.post(`https://community-web.ccw.site/emoji/all`,{}).then(e=>e.data.body)}async function be(){return await e.post(`https://community-web.ccw.site/emoji/category/list`,{}).then(e=>e.data.body)}async function xe(r=`ENABLED`,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/emoji/page`,a),s={page:a.page,perPage:a.perPage,status:r};return await e.post(o,s).then(e=>e.data.body)}async function Se(t){let n={actionId:t};return await e.post(`https://community-web.ccw.site/event`,n).then(e=>e.data.body)}async function Ce(){return await e.post(`https://community-web.ccw.site/health/check`).then(e=>e.data.body)}async function we(t){let n={advertisementId:t};return await e.post(`https://community-web.ccw.site/leaflets/item/list`,n).then(e=>e.data.body)}async function Te(t){let n={accountOid:t};return await e.post(`https://community-web.ccw.site/locked_user/detail`,n).then(e=>e.data.body)}async function Ee(t){let n={studentNumber:t};return await e.post(`https://community-web.ccw.site/muted_user/detail`,n).then(e=>e.data.body)}async function De(r=`COMMENT_TO_ME`,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/notification/page`,a),s={notifyGroup:r,page:a.page};return await e.post(o,s).then(e=>e.data.body)}async function Oe(t=!0){let n={countAll:t};return await e.post(`https://community-web.ccw.site/notification/stats/v2`,n).then(e=>e.data.body)}async function ke(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/typical_project/page`,{...n,...i}),o={studentOid:r,templateType:`APPLICATION`};return await e.post(a,o).then(e=>e.data.body)}async function Ae(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/typical_project/student/unread_count`,n).then(e=>e.data.body)}async function je(r={sortField:`updatedAt`},i=[`BANNED`,`PUBLISHED`,`REJECTED`,`SUBMITTED`],a=!1){let o=t(`https://community-web.ccw.site/creation/own/page`,{...n,...r}),s={statuses:i,ignoreTypicalProject:a};return await e.post(o,s).then(e=>e.data.body)}async function Me(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch`,n).then(e=>e.data.body)}async function Ne(t,n=`MEMBER`){let r={creationOid:t,authority:n};return await e.post(`https://community-web.ccw.site/creation/team_member/invite_token/fetch`,r).then(e=>e.data.body)}async function Pe(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/team_member/produce_ticket`,n).then(e=>e.data.body)}async function Fe(t,n){let r={creationOid:t,authorities:n};return await e.post(`https://community-web.ccw.site/creation/team_member/list`,r).then(e=>e.data.body)}async function Ie(r,i,a={sortField:`createdAt`}){let o=t(`https://community-web.ccw.site/creation/teamwork_log/page`,{...n,...a}),s={creationId:r,operateTargets:i},c=await e.post(o,s).then(e=>e.data.body),{data:l}=c,u=l.map(e=>{let{content:t}=e;return{...e,content:JSON.parse(t)}});return{...c,data:u}}async function Le(t,n,r=`LANDSCAPE`,i){if(!n.includes(`t=`)){let e=new URL(n);e.searchParams.set(`t`,Date.now().toString()),n=e.toString()}let a={oid:t,latestProjectLink:n,screenMode:r,latestCoverLink:i};return await e.post(`https://community-web.ccw.site/creation/update`,a).then(e=>e.data.body)}async function Re(t){return await e.post(`https://community-web.ccw.site/creation/submit`,t).then(e=>e.data.body)}async function ze(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/detail`,n).then(e=>e.data.body)}async function Be(t,n,r=`86`){let i={phone:t,code:n,ruleCode:`ccw_sms`,scene:`bindPhone`,countryCode:r};return await e.post(`https://community-web.ccw.site/students/bind_phone`,i).then(e=>e.data.body)}async function Ve(t,n){let r={newPassword:t,code:n};return await e.post(`https://community-web.ccw.site/students/password/change`,r).then(e=>e.data.body)}async function He(t=`change_password`,n=`86`,r=`ccw_sms`,i=`SMS`){let a={type:i,countryCode:n,scene:t,ruleCode:r};return await e.post(`https://community-web.ccw.site/captcha/v2/create_by_session`,a).then(e=>e.data.body)}async function Ue(t,n){let r={creationOid:t,memberSplitDetails:n};return await e.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/create`,r).then(e=>e.data.body)}async function We(t){let n={creationOid:t},r=await e.post(`https://community-web.ccw.site/creation_attribute/detail`,n).then(e=>e.data.body);if(r===null)return null;let{ext:{KEYPAD_CONFIG:i}}=r,a=JSON.parse(i);return{...r,ext:{KEYPAD_CONFIG:a}}}async function Ge(t){let n={creationOid:t,type:`DAY`};return await e.post(`https://community-web.ccw.site/creation_activity_stats/list`,n).then(e=>e.data.body)}async function Ke(r,i={sortField:`submittedAt`}){let a=t(`https://community-web.ccw.site/creation_release/page`,{...n,...i}),o={creationOid:r};return await e.post(a,o).then(e=>e.data.body)}async function qe(t,n){let r={creationOid:t,creationReleaseOid:n};return await e.post(`https://community-web.ccw.site/creation_release/code_profiling/detail`,r).then(e=>e.data.body)}async function Je(r,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/historical_team_member/page`,a),s={creationOid:r,page:a.page,perPage:a.perPage};return await e.post(o,s).then(e=>e.data.body)}async function Ye(t){let n={shortUrlCode:t};return await e.post(`https://community-web.ccw.site/short_url/decompress`,n).then(e=>e.data.body)}async function Xe(){return await e.post(`https://community-web.ccw.site/hash_tag/recommend/list`).then(e=>e.data.body)}async function Ze(){return await e.post(`https://community-web.ccw.site/ccw-main/status`,{}).then(e=>e.data.body)}async function Qe(t,n){let r={projectId:t,variables:n};return await e.post(`https://community-web.ccw.site/study-community/cloud_variable/create`,r).then(e=>e.data.body)}async function $e(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/top`,n).then(e=>e.data.body)}async function et(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/fold`,n).then(e=>e.data.body)}async function tt(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/reset_weight`,n).then(e=>e.data.body)}async function $(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/delete`,n).then(e=>e.data.body)}async function nt(t,n,r){n.outline??=`foo`;let i={content:t,topic:n,sectionType:r};return await e.post(`https://community-web.ccw.site/comment/create`,i).then(e=>e.data.body)}async function rt(t){let n={commentId:t};return await e.post(`https://community-web.ccw.site/comment/like_record/create`,n).then(e=>e.data.body)}async function it(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/student/following/page`,{...n,...i}),o={studentOid:r};return await e.post(a,o).then(e=>e.data.body)}async function at(t,n,r=`CREATION`){let i={bucks:t,objectId:n,objectType:r};return await e.post(`https://community-web.ccw.site/study-trade/trade/donate`,i).then(e=>e.data.body)}async function ot(r=5,i={}){let a={...n,...i},o=t(`https://community-web.ccw.site/user_package/user_product`,a),s={page:a.page,perPage:a.perPage,sortType:a.sortType,productCategory:r};return await e.post(o,s).then(e=>e.data.body)}async function st(t,n){let r={status:n,id:t};return await e.post(`https://community-web.ccw.site/user_package/status`,r).then(e=>e.data.body)}async function ct(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/great_creation/update`,n).then(e=>e.data.body)}async function lt(t,n,r,i,a=`CREATION`){let o={bizId:t,bizType:a,id:n,ruleId:r,params:{bucks:i}};return await e.post(`https://community-web.ccw.site/smart_contract/execute`,o).then(e=>e.data.body)}async function ut(t){let n={id:t};return await e.post(`https://community-web.ccw.site/smart_contract/account`,n).then(e=>e.data.body)}async function dt(t){let n={id:t};return await e.post(`https://community-web.ccw.site/smart_contract/detail`,n).then(e=>e.data.body)}async function ft(t,n=`CREATION`){let r={bizId:t,bizType:n};return await e.post(`https://community-web.ccw.site/smart_contract/list`,r).then(e=>e.data.body)}async function pt(t,n){let r={playingCreationOid:t,userOid:n};return await e.post(`https://community-web.ccw.site/extensions/following/status`,r).then(e=>e.data.body)}async function mt(t,n){let r={playingCreationOid:t,creationOid:n};return await e.post(`https://community-web.ccw.site/extensions/creation-like/detail`,r).then(e=>e.data.body)}async function ht(t){let n={followingOid:t};return await e.post(`https://community-web.ccw.site/study-community/following/follow`,n).then(e=>e.data.body)}async function gt(t){let n={followingOid:t};return await e.post(`https://community-web.ccw.site/study-community/following/unfollow`,n).then(e=>e.data.body)}const _t={acceptAward:me,bindStudentPhone:Be,changeStudentPassword:Ve,createCreation:h,donateTrade:at,encodeShortCode:r,executeSmartContract:lt,fetchMemberInviteToken:Ne,fetchObserverInviteToken:Me,createCloudVariable:Qe,createComment:nt,createShortUrl:N,createSmsCaptchaBySession:He,createSplitRule:Ue,decompressShortUrl:Ye,deleteComment:$,foldComment:et,followCreator:ht,unfollowCreator:gt,getApprovalTags:i,getCampaignResources:o,getCcwMainStatus:Ze,getCheckInRecords:s,getCodeProfilingDetail:qe,getCommentReplies:te,getCommentsByTopic:f,getConfigDetail:p,getCreationActivityStatsList:Ge,getCreationAttributeDetail:We,getCreationDetail:g,getCreationFavoriteDetail:H,getCreationIntroduction:v,getConnectCommunityCreationLikeStatus:mt,getCreationRecommendPositionList:U,getCreationReleasePage:Ke,getCreationScreenshotPage:W,getCreationStudentDetail:j,getCreationTags:M,getCreatorScore:Q,getDonatedRecordRanking:V,getExcellentCreations:_,getConnectCommunityFollowingStatus:pt,getEmojiCategoryList:be,getEmojiPage:xe,getAllEmojis:ye,getHashTagDetail:L,getHashTagFavoriteDetail:B,getHistoricalTeamMemberPage:Je,getManagedHashTags:z,getHealthCheck:Ce,getLeafletsItemList:we,getLikeDetail:y,getLoadingTips:b,getLockedUserDetail:Te,getMutedUserDetail:Ee,getMyHashTagCreations:I,getMyTasks:he,getNotifyDeleteReasons:K,getNotificationPage:De,getNotificationStats:Oe,getOwnCreationPage:je,getPersonalCurrencyAccount:ve,getPlanetsOfCreation:P,getPostDetail:q,getPotentialCreations:T,getRecommendCreations:D,getRecommendCreators:O,getRecommendHashTags:Xe,getRemixedCreationPage:S,getReputationScoreLogPage:oe,getSearchHotWords:J,getSmartContractAccount:ut,getSmartContractDetail:dt,getSmartContractList:ft,getSplitRuleDetail:ze,getSpreadFeedUnreadCount:de,getStudentBlockRecordDetail:Y,getStudentBlockRecordList:X,getStudentBlockStatus:Z,getStudentFollowingPage:it,getStudentLastActiveAt:ne,getStudentProfile:ae,getStudentSelfDetail:se,getStudentSessions:ie,getStudentsList:re,getStudentStats:ce,getStudyCommunityMemberDetail:ue,getSubjectAreaPage:fe,getSubjectAreaPageByChannel:pe,getTeamMemberList:Fe,getTeamworkLogPage:Ie,getTime:a,getTypicalProjectPage:ke,getTypicalProjectUnreadCount:Ae,getUserAssetStorageSize:l,getUserCardDetail:ge,getUserLabelList:_e,getUserProductsPage:ot,queryMallProducts:m,getCreationsByStudent:w,insertCheckInRecord:c,likeComment:rt,produceTeamMemberTicket:Pe,resetCommentWeight:tt,searchCloudAssets:ee,searchCreationsByTag:A,sendEvent:Se,setUserProductStatus:st,submitCreation:Re,topComment:$e,updateCreation:Le,updateGreatCreation:ct,updateStudent:le,viewCreationStats:G};export{_t as t};
@@ -0,0 +1 @@
1
+ const e=require("./request-CIq4GGVU.cjs"),t=require("./queryPages-CfywLB4S.cjs");async function n(t,n,r,i){let a={origin:{inviterAvatar:n,inviterName:r,inviterId:t,inviterType:`STUDENT`,entrance:`create_detail`,creationOid:i}};return await e.t.post(`https://community-web.ccw.site/api/v1/short_code/encode`,a).then(e=>e.data.body)}async function r(t){let n={objectId:t,objectType:`STUDENT`};return await e.t.post(`https://community-web.ccw.site/approval/list`,n).then(e=>e.data.body)}async function i(){return e.t.post(`https://community-web.ccw.site/base/dateTime`,void 0).then(e=>e.data.body)}async function a(t){return await e.t.post(`https://community-web.ccw.site/campaign_resource/detail`,{keyword:t}).then(e=>e.data.body)}async function o(){return await e.t.post(`https://community-web.ccw.site/check_in_record/detail`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function s(){return await e.t.post(`https://community-web.ccw.site/check_in_record/insert`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function c(){return await e.t.post(`https://community-web.ccw.site/cloud_asset/user/privacy`,{}).then(e=>e.data.body)}const l={...t.t,sortField:`createdAt`};async function u(n,r=`/`,i={}){let a={...l,...i},o=t.n(`https://community-web.ccw.site/cloud_asset/search`,a),s={creatorOid:n,path:r};return await e.t.post(o,s).then(e=>e.data.body)}async function d(n,r,i=[`PUBLISHED`,`FOLDED`],a={sortField:`createdAt`}){let o={...t.t,...a},s=t.n(`https://community-web.ccw.site/comment/page`,o),c={topicId:n,parentId:r,statuses:i};return await e.t.post(s,c).then(e=>e.data.body)}const f={...t.t,sortField:`createdAt`};async function p(n,r,i,a={sortField:`createdAt`}){let o={...f,...a},s=t.n(`https://community-web.ccw.site/comment/page_by_topic`,o),c={subjectOid:n,subjectType:r,sectionType:i};return await e.t.post(s,c).then(e=>e.data.body)}async function m(t){let n={key:t};return await e.t.post(`https://community-web.ccw.site/config/detail`,n).then(e=>e.data.body)}async function h(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/ccw-mall/ccw/product/fe/query`,i),o={page:i.page,perPage:i.perPage,sortType:i.sortType,productCategory:n,source:`CCW_OFFICIAL`};return await e.t.post(a,o).then(e=>e.data.body)}async function g(t,n,r,i=`ORIGINAL`,a=`LANDSCAPE`,o=`PRIVATE`){let s={type:i,title:t,latestProjectLink:n,screenMode:a,artifactType:`STANDARD`,sourceOpenLevel:o,latestCoverLink:r};return await e.t.post(`https://community-web.ccw.site/creation/create`,s).then(e=>e.data.body)}async function _(t,n,r=``){let i={oid:t,accessKey:n,mode:r};return await e.t.post(`https://community-web.ccw.site/creation/detail`,i).then(e=>e.data.body)}async function v(t){let n={num:t};return await e.t.post(`https://community-web.ccw.site/creation/excellent/list`,n).then(e=>e.data.body)}async function y(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/creation/introduction/detail`,n).then(e=>e.data.body)}async function b(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/like/detail`,n).then(e=>e.data.body)}async function x(){return await e.t.post(`https://community-web.ccw.site/creation/loading/tips`,{}).then(e=>e.data.body)}const S={...t.t,sortField:`createdAt`};async function C(n,r={}){let i={...S,...r},a=t.n(`https://community-web.ccw.site/creation/page`,i),o={remixCreationOids:n};return await e.t.post(a,o).then(e=>e.data.body)}const w={...t.t,sortField:`createdAt`};async function T(n,r={}){let i={...w,...r},a=t.n(`https://community-web.ccw.site/creation/page_by_student`,i),o={studentOids:n};return await e.t.post(a,o).then(e=>e.data.body)}async function E(t){let n={num:t};return await e.t.post(`https://community-web.ccw.site/creation/potential/list`,n).then(e=>e.data.body)}const D={...t.t,sortField:`createdAt`};async function O(n,r={}){let i={...D,...r},a=t.n(`https://community-web.ccw.site/creation/recommend`,i),o={num:n,subjectType:`POTENTIAL`};return await e.t.post(a,o).then(e=>e.data.body)}async function k(t=4,n=8){let r={excellentCount:t,potentialCount:n};return await e.t.post(`https://community-web.ccw.site/recommend_creator/list`,r).then(e=>e.data.body)}const A={...t.t,sortField:`createdAt`};async function j(n,r={}){let i={...A,...r},a=t.n(`https://community-web.ccw.site/creation/search/page`,i);return await e.t.post(a,n).then(e=>e.data.body)}async function M(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/creation/student/detail`,n).then(e=>e.data.body)}async function N(){return await e.t.post(`https://community-web.ccw.site/creation/tag/list`,{visibility:`PUBLIC`}).then(e=>e.data.body)}async function P(t){let n={originUrl:t};return await e.t.post(`https://community-web.ccw.site/short_url/create`,n).then(e=>e.data.body)}async function F(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/hash_tag_creation/list_relation`,n).then(e=>e.data.body)}const I={...t.t,sortField:`lastPassedAt`};async function L(n,r,i={}){let a={...I,...i},o=t.n(`https://community-web.ccw.site/hash_tag_creation/mine`,a),s={...a,excludeHashTag:n,statuses:r};return await e.t.post(o,s).then(e=>e.data.body)}async function R(t){let n={identifier:t};return await e.t.post(`https://community-web.ccw.site/hash_tag/detail`,n).then(e=>e.data.body)}const z={...t.t,sortField:`createdAt`};async function B(n,r=[],i={}){let a={...z,...i},o=t.n(`https://community-web.ccw.site/hash_tag/managed/list`,a),s={...a,studentOid:n,excludeHashTagIds:r};return await e.t.post(o,s).then(e=>e.data.body)}async function V(t){let n={hashTagId:t};return await e.t.post(`https://community-web.ccw.site/hash_tag_favorite/detail`,n).then(e=>e.data.body)}async function H(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/creation_donated_record/ranking_list`,i),o={creationOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function U(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation_favorite/detail`,n).then(e=>e.data.body)}async function W(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation_recommend_position/list`,n).then(e=>e.data.body)}async function G(n,r={}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/creation_screenshot/page`,i),o={subjectOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function K(t,n=``){let r={oid:t,inviteCode:n};return await e.t.post(`https://community-web.ccw.site/creation_stats/view`,r).then(e=>e.data.body)}async function q(){return await e.t.post(`https://community-web.ccw.site/notify_message/show`,{type:`COMMENT_AUDIT`}).then(e=>e.data.body)}async function J(t){let n={slug:t};return await e.t.post(`https://community-web.ccw.site/post/detail`,n).then(e=>e.data.body)}async function Y(t){let n={length:t};return await e.t.post(`https://community-web.ccw.site/search/hot_words`,n).then(e=>e.data.body)}async function X(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/student/block_record/detail`,n).then(e=>e.data.body)}async function Z(n={sortField:`createdAt`}){let r={...t.t,...n},i=t.n(`https://community-web.ccw.site/student/block_record/list`,r);return await e.t.post(i,{}).then(e=>e.data.body)}async function Q(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/student/block_record/status`,n).then(e=>e.data.body)}async function $(){return await e.t.post(`https://community-web.ccw.site/students/creator_score`,void 0).then(e=>e.data.body)}async function ee(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/students/last_active_at`,n).then(e=>e.data.body)}async function te(t){let n={studentOids:t};return await e.t.post(`https://community-web.ccw.site/students/list`,n).then(e=>e.data.body)}async function ne(n={sortField:`createdAt`}){let r={...t.t,...n},i=t.n(`https://community-web.ccw.site/students/list_sessions`,r);return await e.t.post(i,{}).then(e=>e.data.body)}async function re(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/students/profile`,n).then(e=>e.data.body)}async function ie(n={sortField:`createdAt`}){let r={...t.t,...n},i=t.n(`https://community-web.ccw.site/students/reputation_score_log/page`,r);return await e.t.post(i,{}).then(e=>e.data.body)}async function ae(t,n,r){let i={needGrade:t,needExtraInfo:n,fields:r};return await e.t.post(`https://community-web.ccw.site/students/self/detail`,i).then(e=>e.data.body)}async function oe(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/students/stats`,n).then(e=>e.data.body)}async function se(t){let n=t;return await e.t.post(`https://community-web.ccw.site/students/update`,n).then(e=>e.data.body)}async function ce(){return await e.t.post(`https://community-web.ccw.site/study-community/member/detail`,{}).then(e=>e.data.body)}async function le(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/study-community/spread_feed/unread/count`,n).then(e=>e.data.body)}async function ue(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/subject_area/page`,i),o={scene:n};return await e.t.post(a,o).then(e=>e.data.body)}async function de(n,r={sortField:`campaignResourceId`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/subject_area/page_by_channel`,i),o={channel:n,scene:`CUSTOM_PAGE`};return await e.t.post(a,o).then(e=>e.data.body)}async function fe(t){let n={taskOid:t};return await e.t.post(`https://community-web.ccw.site/task/award`,n).then(e=>e.data.body)}async function pe(){return await e.t.post(`https://community-web.ccw.site/task/mine`,{scene:`checkIn`}).then(e=>e.data.body)}async function me(t){let n={oid:t};return await e.t.post(`https://community-web.ccw.site/user-card/detail`,n).then(e=>e.data.body)}async function he(){return await e.t.post(`https://community-web.ccw.site/user_label/list`,{}).then(e=>e.data.body)}async function ge(){return await e.t.post(`https://community-web.ccw.site/currency/account/personal`).then(e=>e.data.body)}async function _e(){return await e.t.post(`https://community-web.ccw.site/emoji/all`,{}).then(e=>e.data.body)}async function ve(){return await e.t.post(`https://community-web.ccw.site/emoji/category/list`,{}).then(e=>e.data.body)}async function ye(n=`ENABLED`,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/emoji/page`,i),o={page:i.page,perPage:i.perPage,status:n};return await e.t.post(a,o).then(e=>e.data.body)}async function be(t){let n={actionId:t};return await e.t.post(`https://community-web.ccw.site/event`,n).then(e=>e.data.body)}async function xe(){return await e.t.post(`https://community-web.ccw.site/health/check`).then(e=>e.data.body)}async function Se(t){let n={advertisementId:t};return await e.t.post(`https://community-web.ccw.site/leaflets/item/list`,n).then(e=>e.data.body)}async function Ce(t){let n={accountOid:t};return await e.t.post(`https://community-web.ccw.site/locked_user/detail`,n).then(e=>e.data.body)}async function we(t){let n={studentNumber:t};return await e.t.post(`https://community-web.ccw.site/muted_user/detail`,n).then(e=>e.data.body)}async function Te(n=`COMMENT_TO_ME`,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/notification/page`,i),o={notifyGroup:n,page:i.page};return await e.t.post(a,o).then(e=>e.data.body)}async function Ee(t=!0){let n={countAll:t};return await e.t.post(`https://community-web.ccw.site/notification/stats/v2`,n).then(e=>e.data.body)}async function De(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/typical_project/page`,i),o={studentOid:n,templateType:`APPLICATION`};return await e.t.post(a,o).then(e=>e.data.body)}async function Oe(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/typical_project/student/unread_count`,n).then(e=>e.data.body)}async function ke(n={sortField:`updatedAt`},r=[`BANNED`,`PUBLISHED`,`REJECTED`,`SUBMITTED`],i=!1){let a={...t.t,...n},o=t.n(`https://community-web.ccw.site/creation/own/page`,a),s={statuses:r,ignoreTypicalProject:i};return await e.t.post(o,s).then(e=>e.data.body)}async function Ae(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch`,n).then(e=>e.data.body)}async function je(t,n=`MEMBER`){let r={creationOid:t,authority:n};return await e.t.post(`https://community-web.ccw.site/creation/team_member/invite_token/fetch`,r).then(e=>e.data.body)}async function Me(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/team_member/produce_ticket`,n).then(e=>e.data.body)}async function Ne(t,n){let r={creationOid:t,authorities:n};return await e.t.post(`https://community-web.ccw.site/creation/team_member/list`,r).then(e=>e.data.body)}async function Pe(n,r,i={sortField:`createdAt`}){let a={...t.t,...i},o=t.n(`https://community-web.ccw.site/creation/teamwork_log/page`,a),s={creationId:n,operateTargets:r},c=await e.t.post(o,s).then(e=>e.data.body),{data:l}=c,u=l.map(e=>{let{content:t}=e;return{...e,content:JSON.parse(t)}});return{...c,data:u}}async function Fe(t,n,r=`LANDSCAPE`,i){if(!n.includes(`t=`)){let e=new URL(n);e.searchParams.set(`t`,Date.now().toString()),n=e.toString()}let a={oid:t,latestProjectLink:n,screenMode:r,latestCoverLink:i};return await e.t.post(`https://community-web.ccw.site/creation/update`,a).then(e=>e.data.body)}async function Ie(t){return await e.t.post(`https://community-web.ccw.site/creation/submit`,t).then(e=>e.data.body)}async function Le(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/detail`,n).then(e=>e.data.body)}async function Re(t,n,r=`86`){let i={phone:t,code:n,ruleCode:`ccw_sms`,scene:`bindPhone`,countryCode:r};return await e.t.post(`https://community-web.ccw.site/students/bind_phone`,i).then(e=>e.data.body)}async function ze(t,n){let r={newPassword:t,code:n};return await e.t.post(`https://community-web.ccw.site/students/password/change`,r).then(e=>e.data.body)}async function Be(t=`change_password`,n=`86`,r=`ccw_sms`,i=`SMS`){let a={type:i,countryCode:n,scene:t,ruleCode:r};return await e.t.post(`https://community-web.ccw.site/captcha/v2/create_by_session`,a).then(e=>e.data.body)}async function Ve(t,n){let r={creationOid:t,memberSplitDetails:n};return await e.t.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/create`,r).then(e=>e.data.body)}async function He(t){let n={creationOid:t},r=await e.t.post(`https://community-web.ccw.site/creation_attribute/detail`,n).then(e=>e.data.body);if(r===null)return null;let{ext:{KEYPAD_CONFIG:i}}=r,a=JSON.parse(i);return{...r,ext:{KEYPAD_CONFIG:a}}}async function Ue(t){let n={creationOid:t,type:`DAY`};return await e.t.post(`https://community-web.ccw.site/creation_activity_stats/list`,n).then(e=>e.data.body)}async function We(n,r={sortField:`submittedAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/creation_release/page`,i),o={creationOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function Ge(t,n){let r={creationOid:t,creationReleaseOid:n};return await e.t.post(`https://community-web.ccw.site/creation_release/code_profiling/detail`,r).then(e=>e.data.body)}async function Ke(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/historical_team_member/page`,i),o={creationOid:n,page:i.page,perPage:i.perPage};return await e.t.post(a,o).then(e=>e.data.body)}async function qe(t){let n={shortUrlCode:t};return await e.t.post(`https://community-web.ccw.site/short_url/decompress`,n).then(e=>e.data.body)}async function Je(){return await e.t.post(`https://community-web.ccw.site/hash_tag/recommend/list`).then(e=>e.data.body)}async function Ye(){return await e.t.post(`https://community-web.ccw.site/ccw-main/status`,{}).then(e=>e.data.body)}async function Xe(t,n){let r={projectId:t,variables:n};return await e.t.post(`https://community-web.ccw.site/study-community/cloud_variable/create`,r).then(e=>e.data.body)}async function Ze(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/top`,n).then(e=>e.data.body)}async function Qe(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/fold`,n).then(e=>e.data.body)}async function $e(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/reset_weight`,n).then(e=>e.data.body)}async function et(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/delete`,n).then(e=>e.data.body)}async function tt(t,n,r){n.outline??=`foo`;let i={content:t,topic:n,sectionType:r};return await e.t.post(`https://community-web.ccw.site/comment/create`,i).then(e=>e.data.body)}async function nt(t){let n={commentId:t};return await e.t.post(`https://community-web.ccw.site/comment/like_record/create`,n).then(e=>e.data.body)}async function rt(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/student/following/page`,i),o={studentOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function it(t,n,r=`CREATION`){let i={bucks:t,objectId:n,objectType:r};return await e.t.post(`https://community-web.ccw.site/study-trade/trade/donate`,i).then(e=>e.data.body)}async function at(n=5,r={}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/user_package/user_product`,i),o={page:i.page,perPage:i.perPage,sortType:i.sortType,productCategory:n};return await e.t.post(a,o).then(e=>e.data.body)}async function ot(t,n){let r={status:n,id:t};return await e.t.post(`https://community-web.ccw.site/user_package/status`,r).then(e=>e.data.body)}async function st(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/great_creation/update`,n).then(e=>e.data.body)}async function ct(t,n,r,i,a=`CREATION`){let o={bizId:t,bizType:a,id:n,ruleId:r,params:{bucks:i}};return await e.t.post(`https://community-web.ccw.site/smart_contract/execute`,o).then(e=>e.data.body)}async function lt(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/smart_contract/account`,n).then(e=>e.data.body)}async function ut(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/smart_contract/detail`,n).then(e=>e.data.body)}async function dt(t,n=`CREATION`){let r={bizId:t,bizType:n};return await e.t.post(`https://community-web.ccw.site/smart_contract/list`,r).then(e=>e.data.body)}async function ft(t,n){let r={playingCreationOid:t,userOid:n};return await e.t.post(`https://community-web.ccw.site/extensions/following/status`,r).then(e=>e.data.body)}async function pt(t,n){let r={playingCreationOid:t,creationOid:n};return await e.t.post(`https://community-web.ccw.site/extensions/creation-like/detail`,r).then(e=>e.data.body)}async function mt(t){let n={followingOid:t};return await e.t.post(`https://community-web.ccw.site/study-community/following/follow`,n).then(e=>e.data.body)}async function ht(t){let n={followingOid:t};return await e.t.post(`https://community-web.ccw.site/study-community/following/unfollow`,n).then(e=>e.data.body)}const gt={acceptAward:fe,bindStudentPhone:Re,changeStudentPassword:ze,createCreation:g,donateTrade:it,encodeShortCode:n,executeSmartContract:ct,fetchMemberInviteToken:je,fetchObserverInviteToken:Ae,createCloudVariable:Xe,createComment:tt,createShortUrl:P,createSmsCaptchaBySession:Be,createSplitRule:Ve,decompressShortUrl:qe,deleteComment:et,foldComment:Qe,followCreator:mt,unfollowCreator:ht,getApprovalTags:r,getCampaignResources:a,getCcwMainStatus:Ye,getCheckInRecords:o,getCodeProfilingDetail:Ge,getCommentReplies:d,getCommentsByTopic:p,getConfigDetail:m,getCreationActivityStatsList:Ue,getCreationAttributeDetail:He,getCreationDetail:_,getCreationFavoriteDetail:U,getCreationIntroduction:y,getConnectCommunityCreationLikeStatus:pt,getCreationRecommendPositionList:W,getCreationReleasePage:We,getCreationScreenshotPage:G,getCreationStudentDetail:M,getCreationTags:N,getCreatorScore:$,getDonatedRecordRanking:H,getExcellentCreations:v,getConnectCommunityFollowingStatus:ft,getEmojiCategoryList:ve,getEmojiPage:ye,getAllEmojis:_e,getHashTagDetail:R,getHashTagFavoriteDetail:V,getHistoricalTeamMemberPage:Ke,getManagedHashTags:B,getHealthCheck:xe,getLeafletsItemList:Se,getLikeDetail:b,getLoadingTips:x,getLockedUserDetail:Ce,getMutedUserDetail:we,getMyHashTagCreations:L,getMyTasks:pe,getNotifyDeleteReasons:q,getNotificationPage:Te,getNotificationStats:Ee,getOwnCreationPage:ke,getPersonalCurrencyAccount:ge,getPlanetsOfCreation:F,getPostDetail:J,getPotentialCreations:E,getRecommendCreations:O,getRecommendCreators:k,getRecommendHashTags:Je,getRemixedCreationPage:C,getReputationScoreLogPage:ie,getSearchHotWords:Y,getSmartContractAccount:lt,getSmartContractDetail:ut,getSmartContractList:dt,getSplitRuleDetail:Le,getSpreadFeedUnreadCount:le,getStudentBlockRecordDetail:X,getStudentBlockRecordList:Z,getStudentBlockStatus:Q,getStudentFollowingPage:rt,getStudentLastActiveAt:ee,getStudentProfile:re,getStudentSelfDetail:ae,getStudentSessions:ne,getStudentsList:te,getStudentStats:oe,getStudyCommunityMemberDetail:ce,getSubjectAreaPage:ue,getSubjectAreaPageByChannel:de,getTeamMemberList:Ne,getTeamworkLogPage:Pe,getTime:i,getTypicalProjectPage:De,getTypicalProjectUnreadCount:Oe,getUserAssetStorageSize:c,getUserCardDetail:me,getUserLabelList:he,getUserProductsPage:at,queryMallProducts:h,getCreationsByStudent:T,insertCheckInRecord:s,likeComment:nt,produceTeamMemberTicket:Me,resetCommentWeight:$e,searchCloudAssets:u,searchCreationsByTag:j,sendEvent:be,setUserProductStatus:ot,submitCreation:Ie,topComment:Ze,updateCreation:Fe,updateGreatCreation:st,updateStudent:se,viewCreationStats:K};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return gt}});
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./community-web-B7SGi5-y.cjs");exports.communityWeb=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./community-web-DROBnJOT.cjs");exports.communityWeb=e.t;
@@ -1,2 +1,2 @@
1
- import { t as communityWeb } from "./index-CV03H74N.cjs";
1
+ import { t as communityWeb } from "./index-D3txjDPB.cjs";
2
2
  export { communityWeb };
@@ -1,2 +1,2 @@
1
- import { t as communityWeb } from "./index-CobjrinB.js";
1
+ import { t as communityWeb } from "./index-DFVqKOcp.js";
2
2
  export { communityWeb };
@@ -1 +1 @@
1
- import{t as e}from"./community-web-Dzl0mbbh.js";export{e as communityWeb};
1
+ import{t as e}from"./community-web-3zMKf8Ic.js";export{e as communityWeb};
@@ -372,7 +372,8 @@ interface StudentFollowerStats {
372
372
  followerCount: number;
373
373
  followingCount: number;
374
374
  }
375
- interface StudentUpdateReq {
375
+ type StudentUpdateReq = Partial<{
376
+ avatar: string;
376
377
  birthday: number;
377
378
  fullName: string;
378
379
  gender: string;
@@ -382,7 +383,7 @@ interface StudentUpdateReq {
382
383
  programmingCapability: string;
383
384
  qq: string;
384
385
  school: string;
385
- }
386
+ }>;
386
387
  declare namespace creation_d_exports {
387
388
  export { Creation, CreationMinimal, CreationRelease, CreationScreenMode, CreationScreenshot, CreationSimple, CreationStatus, CreationTag, DonatedRecord, FavoriteDetail, KBDLayout, LikeActions, LoadingTip, ReleaseTag, SourceOpenLevel, TeamMemberResp, TeamworkStatus, UserLikeDetail };
388
389
  }
@@ -614,4 +615,4 @@ interface ExtensionVersion {
614
615
  }
615
616
  type ExtensionApproveStatus = "PENDING" | "APPROVED" | "REJECTED";
616
617
  //#endregion
617
- export { ApprovalTag as A, StudentListItem as C, StudentSimple as D, StudentSelfDetailFields as E, UserLabels as O, StudentFollowerStats as S, StudentSelfDetail as T, creation_d_exports as _, CreationScreenMode as a, ReputationScoreLog as b, CreationStatus as c, FavoriteDetail as d, KBDLayout as f, UserLikeDetail as g, SourceOpenLevel as h, CreationRelease as i, approval_d_exports as j, userData_d_exports as k, CreationTag as l, ReleaseTag as m, Creation as n, CreationScreenshot as o, LoadingTip as p, CreationMinimal as r, CreationSimple as s, Extension as t, DonatedRecord as u, CreatorScore as v, StudentProfile as w, Student as x, OtherUser as y };
618
+ export { userData_d_exports as A, StudentListItem as C, StudentSimple as D, StudentSelfDetailFields as E, approval_d_exports as M, StudentUpdateReq as O, StudentFollowerStats as S, StudentSelfDetail as T, creation_d_exports as _, CreationScreenMode as a, ReputationScoreLog as b, CreationStatus as c, FavoriteDetail as d, KBDLayout as f, UserLikeDetail as g, SourceOpenLevel as h, CreationRelease as i, ApprovalTag as j, UserLabels as k, CreationTag as l, ReleaseTag as m, Creation as n, CreationScreenshot as o, LoadingTip as p, CreationMinimal as r, CreationSimple as s, Extension as t, DonatedRecord as u, CreatorScore as v, StudentProfile as w, Student as x, OtherUser as y };
@@ -372,7 +372,8 @@ interface StudentFollowerStats {
372
372
  followerCount: number;
373
373
  followingCount: number;
374
374
  }
375
- interface StudentUpdateReq {
375
+ type StudentUpdateReq = Partial<{
376
+ avatar: string;
376
377
  birthday: number;
377
378
  fullName: string;
378
379
  gender: string;
@@ -382,7 +383,7 @@ interface StudentUpdateReq {
382
383
  programmingCapability: string;
383
384
  qq: string;
384
385
  school: string;
385
- }
386
+ }>;
386
387
  declare namespace creation_d_exports {
387
388
  export { Creation, CreationMinimal, CreationRelease, CreationScreenMode, CreationScreenshot, CreationSimple, CreationStatus, CreationTag, DonatedRecord, FavoriteDetail, KBDLayout, LikeActions, LoadingTip, ReleaseTag, SourceOpenLevel, TeamMemberResp, TeamworkStatus, UserLikeDetail };
388
389
  }
@@ -614,4 +615,4 @@ interface ExtensionVersion {
614
615
  }
615
616
  type ExtensionApproveStatus = "PENDING" | "APPROVED" | "REJECTED";
616
617
  //#endregion
617
- export { ApprovalTag as A, StudentListItem as C, StudentSimple as D, StudentSelfDetailFields as E, UserLabels as O, StudentFollowerStats as S, StudentSelfDetail as T, creation_d_exports as _, CreationScreenMode as a, ReputationScoreLog as b, CreationStatus as c, FavoriteDetail as d, KBDLayout as f, UserLikeDetail as g, SourceOpenLevel as h, CreationRelease as i, approval_d_exports as j, userData_d_exports as k, CreationTag as l, ReleaseTag as m, Creation as n, CreationScreenshot as o, LoadingTip as p, CreationMinimal as r, CreationSimple as s, Extension as t, DonatedRecord as u, CreatorScore as v, StudentProfile as w, Student as x, OtherUser as y };
618
+ export { userData_d_exports as A, StudentListItem as C, StudentSimple as D, StudentSelfDetailFields as E, approval_d_exports as M, StudentUpdateReq as O, StudentFollowerStats as S, StudentSelfDetail as T, creation_d_exports as _, CreationScreenMode as a, ReputationScoreLog as b, CreationStatus as c, FavoriteDetail as d, KBDLayout as f, UserLikeDetail as g, SourceOpenLevel as h, CreationRelease as i, ApprovalTag as j, UserLabels as k, CreationTag as l, ReleaseTag as m, Creation as n, CreationScreenshot as o, LoadingTip as p, CreationMinimal as r, CreationSimple as s, Extension as t, DonatedRecord as u, CreatorScore as v, StudentProfile as w, Student as x, OtherUser as y };
@@ -1,5 +1,5 @@
1
1
  import { n as MongoDBId } from "./api-DK7ohLa7.js";
2
- import { t as Extension } from "./extensions-D1JeVkuw.js";
2
+ import { t as Extension } from "./extensions-DAv_-abd.js";
3
3
  import { n as PagesRes, t as PageArgs } from "./pages-K5jlky49.js";
4
4
  //#region src/bfs-web/users/{oid}/extensions.d.ts
5
5
  type Res$1 = PagesRes<Extension>;
@@ -1,8 +1,8 @@
1
1
  import { n as MongoDBId } from "./api-DK7ohLa7.js";
2
2
  import { t as LoginSession } from "./session-Cw37kR-m.js";
3
3
  //#region src/sso/web/auth/login-by-password.d.ts
4
- type Res$2<Extra> = LoginSession<Extra, null>;
5
- type Extra$1 = {
4
+ type Res$3<Extra> = LoginSession<Extra, null>;
5
+ type Extra$2 = {
6
6
  browser: string;
7
7
  device: string;
8
8
  ip: string;
@@ -25,7 +25,7 @@ interface ReqExtra$1 {
25
25
  * @param {ReqExtra} reqExtra 额外信息
26
26
  * @returns {Res<Extra>}
27
27
  */
28
- declare function loginByPassword(loginKey: string, password: string, reqExtra?: ReqExtra$1): Promise<Res$2<Extra$1>>;
28
+ declare function loginByPassword(loginKey: string, password: string, reqExtra?: ReqExtra$1): Promise<Res$3<Extra$2>>;
29
29
  //#endregion
30
30
  //#region src/sso/web/auth/logout.d.ts
31
31
  /**
@@ -52,7 +52,7 @@ type CaptchaPayload = {
52
52
  };
53
53
  token: string;
54
54
  };
55
- type Res$1 = {
55
+ type Res$2 = {
56
56
  batchId: string | null;
57
57
  /**
58
58
  * sendResult=1 表示成功
@@ -68,13 +68,13 @@ type Res$1 = {
68
68
  * @param {CaptchaPayload} captcha 图形验证码校验结果(滑块拼图的坐标与token),可选(部分场景未强制要求时可省略,但失败时sendResult!=1)
69
69
  * @returns {Promise<Res>} 发送结果:batchId 为短信批次ID,sendResult=1 表示成功
70
70
  */
71
- declare function createSmsCaptcha(recipient: string, scene?: SmsScene, countryCode?: string, ruleCode?: SmsRuleCode, captcha?: CaptchaPayload): Promise<Res$1>;
71
+ declare function createSmsCaptcha(recipient: string, scene?: SmsScene, countryCode?: string, ruleCode?: SmsRuleCode, captcha?: CaptchaPayload): Promise<Res$2>;
72
72
  //#endregion
73
73
  //#region src/sso/web/auth/v3/login/by-phone.d.ts
74
74
  type LoginScene = "loginbyPhone";
75
75
  type LoginRuleCode = "ccw_sms";
76
- type Res<Extra> = LoginSession<Extra>;
77
- type Extra = {
76
+ type Res$1<Extra> = LoginSession<Extra>;
77
+ type Extra$1 = {
78
78
  browser: string;
79
79
  device: string;
80
80
  ip: string;
@@ -95,7 +95,30 @@ interface ReqExtra {
95
95
  * @param {LoginScene} scene 登录场景,默认 "loginbyPhone"
96
96
  * @returns {Promise<Res<Extra>>} session 信息
97
97
  */
98
- declare function loginByPhone(phone: string, code: string, reqExtra?: ReqExtra, countryCode?: string, ruleCode?: LoginRuleCode, scene?: LoginScene): Promise<Res<Extra>>;
98
+ declare function loginByPhone(phone: string, code: string, reqExtra?: ReqExtra, countryCode?: string, ruleCode?: LoginRuleCode, scene?: LoginScene): Promise<Res$1<Extra$1>>;
99
+ //#endregion
100
+ //#region src/sso/oauth/authorize.d.ts
101
+ /**
102
+ * 获取加密后的oauth code, 此接口存在盗号漏洞, 近期被报告, 可能被修改
103
+ * @returns {Promise<string>}
104
+ */
105
+ declare function oauthAuthorize(state: string): Promise<string>;
106
+ //#endregion
107
+ //#region src/sso/oauth/token.d.ts
108
+ type Res<Extra = string> = LoginSession<Extra, string>;
109
+ type Extra = {
110
+ browser: string;
111
+ device: string;
112
+ ip: string;
113
+ loginParentOid: MongoDBId;
114
+ loginType: "BY_CCW_OAUTH";
115
+ orgId: "";
116
+ };
117
+ /**
118
+ * 获取oauth token, 此接口存在盗号漏洞, 近期被报告, 可能被修改
119
+ * @returns {Promise<string>}
120
+ */
121
+ declare function getOauthToken(code: string): Promise<Res<Extra>>;
99
122
  //#endregion
100
123
  //#region src/sso/index.d.ts
101
124
  declare const sso: {
@@ -104,6 +127,8 @@ declare const sso: {
104
127
  logoutBySession: typeof logoutBySession;
105
128
  createSmsCaptcha: typeof createSmsCaptcha;
106
129
  loginByPhone: typeof loginByPhone;
130
+ oauthAuthorize: typeof oauthAuthorize;
131
+ getOauthToken: typeof getOauthToken;
107
132
  };
108
133
  //#endregion
109
- export { logout as a, logoutBySession as i, loginByPhone as n, loginByPassword as o, createSmsCaptcha as r, sso as t };
134
+ export { createSmsCaptcha as a, loginByPassword as c, loginByPhone as i, getOauthToken as n, logoutBySession as o, oauthAuthorize as r, logout as s, sso as t };
@@ -1,5 +1,5 @@
1
1
  import { n as MongoDBId } from "./api-DK7ohLa7.cjs";
2
- import { t as Extension } from "./extensions-BhEKLZ5I.cjs";
2
+ import { t as Extension } from "./extensions-DdV3oh16.cjs";
3
3
  import { n as PagesRes, t as PageArgs } from "./pages-K5jlky49.cjs";
4
4
  //#region src/bfs-web/users/{oid}/extensions.d.ts
5
5
  type Res$1 = PagesRes<Extension>;
@@ -1,5 +1,5 @@
1
1
  import { i as UUID, n as MongoDBId, o as __exportAll, r as OriginOssUrl, t as CNameOssUrl } from "./api-DK7ohLa7.cjs";
2
- import { A as ApprovalTag, C as StudentListItem, D as StudentSimple, E as StudentSelfDetailFields, O as UserLabels, S as StudentFollowerStats, T as StudentSelfDetail, a as CreationScreenMode, b as ReputationScoreLog, c as CreationStatus, d as FavoriteDetail, f as KBDLayout, g as UserLikeDetail, h as SourceOpenLevel, i as CreationRelease, l as CreationTag, m as ReleaseTag, n as Creation, o as CreationScreenshot, p as LoadingTip, r as CreationMinimal, s as CreationSimple, u as DonatedRecord, v as CreatorScore, w as StudentProfile, x as Student, y as OtherUser } from "./extensions-BhEKLZ5I.cjs";
2
+ import { C as StudentListItem, D as StudentSimple, E as StudentSelfDetailFields, O as StudentUpdateReq, S as StudentFollowerStats, T as StudentSelfDetail, a as CreationScreenMode, b as ReputationScoreLog, c as CreationStatus, d as FavoriteDetail, f as KBDLayout, g as UserLikeDetail, h as SourceOpenLevel, i as CreationRelease, j as ApprovalTag, k as UserLabels, l as CreationTag, m as ReleaseTag, n as Creation, o as CreationScreenshot, p as LoadingTip, r as CreationMinimal, s as CreationSimple, u as DonatedRecord, v as CreatorScore, w as StudentProfile, x as Student, y as OtherUser } from "./extensions-DdV3oh16.cjs";
3
3
  import { t as AccountTypes } from "./account-_e06LVHE.cjs";
4
4
  import { n as PagesRes, t as PageArgs } from "./pages-K5jlky49.cjs";
5
5
  import { n as StudentSession } from "./session-D8sffvmq.cjs";
@@ -885,20 +885,7 @@ declare function getStudentStats(studentOid: MongoDBId): Promise<Res$63>;
885
885
  //#endregion
886
886
  //#region src/community-web/students/update.d.ts
887
887
  type Res$62 = boolean;
888
- /**
889
- * 更新学生个人信息
890
- * @param {string} gender 性别
891
- * @param {boolean} hideGender 是否隐藏性别
892
- * @param {string} fullName 全名
893
- * @param {number} birthday 生日时间戳
894
- * @param {string} programmingCapability 编程能力
895
- * @param {string} school 学校
896
- * @param {string} qq QQ号
897
- * @param {string} hobbies 爱好
898
- * @param {string} learnedProgrammingLanguages 学过的编程语言
899
- * @returns {Promise<boolean>} 是否更新成功
900
- */
901
- declare function updateStudent(gender: string, hideGender: boolean, fullName: string, birthday: number, programmingCapability: string, school: string, qq: string, hobbies: string, learnedProgrammingLanguages: string): Promise<Res$62>;
888
+ declare function updateStudent(profile: StudentUpdateReq): Promise<Res$62>;
902
889
  //#endregion
903
890
  //#region src/community-web/study-community/member/detail.d.ts
904
891
  type Res$61 = {
@@ -1,5 +1,5 @@
1
1
  import { i as UUID, n as MongoDBId, o as __exportAll, r as OriginOssUrl, t as CNameOssUrl } from "./api-DK7ohLa7.js";
2
- import { A as ApprovalTag, C as StudentListItem, D as StudentSimple, E as StudentSelfDetailFields, O as UserLabels, S as StudentFollowerStats, T as StudentSelfDetail, a as CreationScreenMode, b as ReputationScoreLog, c as CreationStatus, d as FavoriteDetail, f as KBDLayout, g as UserLikeDetail, h as SourceOpenLevel, i as CreationRelease, l as CreationTag, m as ReleaseTag, n as Creation, o as CreationScreenshot, p as LoadingTip, r as CreationMinimal, s as CreationSimple, u as DonatedRecord, v as CreatorScore, w as StudentProfile, x as Student, y as OtherUser } from "./extensions-D1JeVkuw.js";
2
+ import { C as StudentListItem, D as StudentSimple, E as StudentSelfDetailFields, O as StudentUpdateReq, S as StudentFollowerStats, T as StudentSelfDetail, a as CreationScreenMode, b as ReputationScoreLog, c as CreationStatus, d as FavoriteDetail, f as KBDLayout, g as UserLikeDetail, h as SourceOpenLevel, i as CreationRelease, j as ApprovalTag, k as UserLabels, l as CreationTag, m as ReleaseTag, n as Creation, o as CreationScreenshot, p as LoadingTip, r as CreationMinimal, s as CreationSimple, u as DonatedRecord, v as CreatorScore, w as StudentProfile, x as Student, y as OtherUser } from "./extensions-DAv_-abd.js";
3
3
  import { t as AccountTypes } from "./account-_e06LVHE.js";
4
4
  import { n as PagesRes, t as PageArgs } from "./pages-K5jlky49.js";
5
5
  import { n as StudentSession } from "./session-Cw37kR-m.js";
@@ -885,20 +885,7 @@ declare function getStudentStats(studentOid: MongoDBId): Promise<Res$63>;
885
885
  //#endregion
886
886
  //#region src/community-web/students/update.d.ts
887
887
  type Res$62 = boolean;
888
- /**
889
- * 更新学生个人信息
890
- * @param {string} gender 性别
891
- * @param {boolean} hideGender 是否隐藏性别
892
- * @param {string} fullName 全名
893
- * @param {number} birthday 生日时间戳
894
- * @param {string} programmingCapability 编程能力
895
- * @param {string} school 学校
896
- * @param {string} qq QQ号
897
- * @param {string} hobbies 爱好
898
- * @param {string} learnedProgrammingLanguages 学过的编程语言
899
- * @returns {Promise<boolean>} 是否更新成功
900
- */
901
- declare function updateStudent(gender: string, hideGender: boolean, fullName: string, birthday: number, programmingCapability: string, school: string, qq: string, hobbies: string, learnedProgrammingLanguages: string): Promise<Res$62>;
888
+ declare function updateStudent(profile: StudentUpdateReq): Promise<Res$62>;
902
889
  //#endregion
903
890
  //#region src/community-web/study-community/member/detail.d.ts
904
891
  type Res$61 = {
@@ -1,8 +1,8 @@
1
1
  import { n as MongoDBId } from "./api-DK7ohLa7.cjs";
2
2
  import { t as LoginSession } from "./session-D8sffvmq.cjs";
3
3
  //#region src/sso/web/auth/login-by-password.d.ts
4
- type Res$2<Extra> = LoginSession<Extra, null>;
5
- type Extra$1 = {
4
+ type Res$3<Extra> = LoginSession<Extra, null>;
5
+ type Extra$2 = {
6
6
  browser: string;
7
7
  device: string;
8
8
  ip: string;
@@ -25,7 +25,7 @@ interface ReqExtra$1 {
25
25
  * @param {ReqExtra} reqExtra 额外信息
26
26
  * @returns {Res<Extra>}
27
27
  */
28
- declare function loginByPassword(loginKey: string, password: string, reqExtra?: ReqExtra$1): Promise<Res$2<Extra$1>>;
28
+ declare function loginByPassword(loginKey: string, password: string, reqExtra?: ReqExtra$1): Promise<Res$3<Extra$2>>;
29
29
  //#endregion
30
30
  //#region src/sso/web/auth/logout.d.ts
31
31
  /**
@@ -52,7 +52,7 @@ type CaptchaPayload = {
52
52
  };
53
53
  token: string;
54
54
  };
55
- type Res$1 = {
55
+ type Res$2 = {
56
56
  batchId: string | null;
57
57
  /**
58
58
  * sendResult=1 表示成功
@@ -68,13 +68,13 @@ type Res$1 = {
68
68
  * @param {CaptchaPayload} captcha 图形验证码校验结果(滑块拼图的坐标与token),可选(部分场景未强制要求时可省略,但失败时sendResult!=1)
69
69
  * @returns {Promise<Res>} 发送结果:batchId 为短信批次ID,sendResult=1 表示成功
70
70
  */
71
- declare function createSmsCaptcha(recipient: string, scene?: SmsScene, countryCode?: string, ruleCode?: SmsRuleCode, captcha?: CaptchaPayload): Promise<Res$1>;
71
+ declare function createSmsCaptcha(recipient: string, scene?: SmsScene, countryCode?: string, ruleCode?: SmsRuleCode, captcha?: CaptchaPayload): Promise<Res$2>;
72
72
  //#endregion
73
73
  //#region src/sso/web/auth/v3/login/by-phone.d.ts
74
74
  type LoginScene = "loginbyPhone";
75
75
  type LoginRuleCode = "ccw_sms";
76
- type Res<Extra> = LoginSession<Extra>;
77
- type Extra = {
76
+ type Res$1<Extra> = LoginSession<Extra>;
77
+ type Extra$1 = {
78
78
  browser: string;
79
79
  device: string;
80
80
  ip: string;
@@ -95,7 +95,30 @@ interface ReqExtra {
95
95
  * @param {LoginScene} scene 登录场景,默认 "loginbyPhone"
96
96
  * @returns {Promise<Res<Extra>>} session 信息
97
97
  */
98
- declare function loginByPhone(phone: string, code: string, reqExtra?: ReqExtra, countryCode?: string, ruleCode?: LoginRuleCode, scene?: LoginScene): Promise<Res<Extra>>;
98
+ declare function loginByPhone(phone: string, code: string, reqExtra?: ReqExtra, countryCode?: string, ruleCode?: LoginRuleCode, scene?: LoginScene): Promise<Res$1<Extra$1>>;
99
+ //#endregion
100
+ //#region src/sso/oauth/authorize.d.ts
101
+ /**
102
+ * 获取加密后的oauth code, 此接口存在盗号漏洞, 近期被报告, 可能被修改
103
+ * @returns {Promise<string>}
104
+ */
105
+ declare function oauthAuthorize(state: string): Promise<string>;
106
+ //#endregion
107
+ //#region src/sso/oauth/token.d.ts
108
+ type Res<Extra = string> = LoginSession<Extra, string>;
109
+ type Extra = {
110
+ browser: string;
111
+ device: string;
112
+ ip: string;
113
+ loginParentOid: MongoDBId;
114
+ loginType: "BY_CCW_OAUTH";
115
+ orgId: "";
116
+ };
117
+ /**
118
+ * 获取oauth token, 此接口存在盗号漏洞, 近期被报告, 可能被修改
119
+ * @returns {Promise<string>}
120
+ */
121
+ declare function getOauthToken(code: string): Promise<Res<Extra>>;
99
122
  //#endregion
100
123
  //#region src/sso/index.d.ts
101
124
  declare const sso: {
@@ -104,6 +127,8 @@ declare const sso: {
104
127
  logoutBySession: typeof logoutBySession;
105
128
  createSmsCaptcha: typeof createSmsCaptcha;
106
129
  loginByPhone: typeof loginByPhone;
130
+ oauthAuthorize: typeof oauthAuthorize;
131
+ getOauthToken: typeof getOauthToken;
107
132
  };
108
133
  //#endregion
109
- export { logout as a, logoutBySession as i, loginByPhone as n, loginByPassword as o, createSmsCaptcha as r, sso as t };
134
+ export { createSmsCaptcha as a, loginByPassword as c, loginByPhone as i, getOauthToken as n, logoutBySession as o, oauthAuthorize as r, logout as s, sso as t };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./request-CIq4GGVU.cjs"),t=require("./sso-C0ZWQvKo.cjs"),n=require("./community-web-B7SGi5-y.cjs"),r=require("./gandi-main-CVC31Jom.cjs"),i=require("./bfs-web-BtWTiGvL.cjs"),a=require("./community-web-cloud-database-BkH9wp1u.cjs"),o=require("./op-parent-api-BZbZzfJ6.cjs");var s={sso:t.t,communityWeb:n.t,gandiMain:r.t,bfsWeb:i.t,communityWebCloudDatabase:a.t,opParentApi:o.t};exports.bfsWeb=i.t,exports.communityWeb=n.t,exports.communityWebCloudDatabase=a.t,exports.default=s,exports.gandiMain=r.t,exports.opParentApi=o.t,exports.setRequestUtils=e.n,exports.sso=t.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./request-CIq4GGVU.cjs"),t=require("./sso-CLU8Ir_K.cjs"),n=require("./community-web-DROBnJOT.cjs"),r=require("./gandi-main-CVC31Jom.cjs"),i=require("./bfs-web-BtWTiGvL.cjs"),a=require("./community-web-cloud-database-BkH9wp1u.cjs"),o=require("./op-parent-api-BZbZzfJ6.cjs");var s={sso:t.t,communityWeb:n.t,gandiMain:r.t,bfsWeb:i.t,communityWebCloudDatabase:a.t,opParentApi:o.t};exports.bfsWeb=i.t,exports.communityWeb=n.t,exports.communityWebCloudDatabase=a.t,exports.default=s,exports.gandiMain=r.t,exports.opParentApi=o.t,exports.setRequestUtils=e.n,exports.sso=t.t;
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { a as api_d_exports } from "./api-DK7ohLa7.cjs";
2
- import { _ as creation_d_exports, j as approval_d_exports, k as userData_d_exports } from "./extensions-BhEKLZ5I.cjs";
2
+ import { A as userData_d_exports, M as approval_d_exports, _ as creation_d_exports } from "./extensions-DdV3oh16.cjs";
3
3
  import { n as account_d_exports } from "./account-_e06LVHE.cjs";
4
4
  import { i as pages_d_exports } from "./pages-K5jlky49.cjs";
5
- import { n as donateExtension, r as getUserExtensions, t as bfsWeb } from "./index-IcG5LsGk.cjs";
5
+ import { n as donateExtension, r as getUserExtensions, t as bfsWeb } from "./index-CGc-IRl1.cjs";
6
6
  import { i as saveUserCloudVariable, n as getCloudVariableDetailV2, r as saveProjectCloudVariable, t as communityWebCloudDatabase } from "./index-sOyHrix1.cjs";
7
- import { $ as sendEvent, $t as queryMallProducts, A as createSplitRule, At as getCreationFavoriteDetail, B as fetchMemberInviteToken, Bt as getCreationStudentDetail, C as getRecommendHashTags, Ct as getStudentBlockRecordDetail, D as getCreationReleasePage, Dt as viewCreationStats, E as getCodeProfilingDetail, Et as getNotifyDeleteReasons, F as submitCreation, Ft as getMyHashTagCreations, G as getNotificationStats, Gt as getCreationsByStudent, H as getOwnCreationPage, Ht as getRecommendCreators, I as updateCreation, It as getPlanetsOfCreation, J as notificationContent_d_exports, Jt as getLikeDetail, K as getNotificationPage, Kt as getRemixedCreationPage, L as getTeamworkLogPage, Lt as hashTag_d_exports, M as changeStudentPassword, Mt as getHashTagFavoriteDetail, N as bindStudentPhone, Nt as getManagedHashTags, O as getCreationActivityStatsList, Ot as getCreationScreenshotPage, P as getSplitRuleDetail, Pt as getHashTagDetail, Q as getHealthCheck, Qt as createCreation, R as getTeamMemberList, Rt as createShortUrl, S as getCCWMainStatus, St as getStudentBlockRecordList, T as getHistoricalTeamMemberPage, Tt as getPostDetail, U as getTypicalProjectUnreadCount, Ut as getRecommendCreations, V as fetchObserverInviteToken, Vt as searchCreationsByTag, W as getTypicalProjectPage, Wt as getPotentialCreations, X as getLockedUserDetail, Xt as getExcellentCreations, Y as getMutedUserDetail, Yt as getCreationIntroduction, Z as getLeafletsItemList, Zt as getCreationDetail, _ as deleteComment, _t as getStudentSessions, a as getConnectCommunityFollowingStatus, an as searchCloudAssets, at as getUserCardDetail, b as topComment, bt as getCreatorScore, c as executeSmartContract, cn as getCheckInRecords, ct as getSubjectAreaPageByChannel, d as setUserProductStatus, dn as getApprovalTags, dt as getStudyCommunityMemberDetail, en as mall_d_exports, et as getEmojiPage, f as getUserProductsPage, fn as encodeShortCode, ft as updateStudent, g as createComment, gt as getStudentProfile, h as likeComment, ht as getReputationScoreLog, i as getConnectCommunityCreationLikeStatus, in as comment_d_exports, it as getUserLabelList, j as createSmsCaptchaBySession, jt as getDonatedRecordRanking, k as getCreationAttributeDetail, kt as getCreationRecommendPositionList, l as getSmartContractList, ln as getCampaignResources, lt as getSubjectAreaPage, m as getStudentFollowingPage, mt as getStudentSelfDetail, n as unfollowCreator, nn as getCommentsByTopic, nt as getAllEmojis, o as getSmartContractDetail, on as getUserAssetStorageSize, ot as getMyTasks, p as donateTrade, pt as getStudentStats, q as notification_d_exports, qt as getLoadingTips, r as followCreator, rn as getCommentReplies, rt as getPersonalCurrencyAccount, s as getSmartContractAccount, sn as insertCheckInRecord, st as acceptAward, t as communityWeb, tn as getConfigDetail, tt as getEmojiCategoryList, u as updateGreatCreation, un as getTime, ut as getSpreadFeedUnreadCount, v as resetCommentWeight, vt as getStudentsList, w as decompressShortUrl, wt as getSearchHotWords, x as createCloudVariable, xt as getStudentBlockStatus, y as foldComment, yt as getStudentLastActiveAt, z as produceTeamMemberTicket, zt as getCreationTags } from "./index-CV03H74N.cjs";
7
+ import { $ as sendEvent, $t as queryMallProducts, A as createSplitRule, At as getCreationFavoriteDetail, B as fetchMemberInviteToken, Bt as getCreationStudentDetail, C as getRecommendHashTags, Ct as getStudentBlockRecordDetail, D as getCreationReleasePage, Dt as viewCreationStats, E as getCodeProfilingDetail, Et as getNotifyDeleteReasons, F as submitCreation, Ft as getMyHashTagCreations, G as getNotificationStats, Gt as getCreationsByStudent, H as getOwnCreationPage, Ht as getRecommendCreators, I as updateCreation, It as getPlanetsOfCreation, J as notificationContent_d_exports, Jt as getLikeDetail, K as getNotificationPage, Kt as getRemixedCreationPage, L as getTeamworkLogPage, Lt as hashTag_d_exports, M as changeStudentPassword, Mt as getHashTagFavoriteDetail, N as bindStudentPhone, Nt as getManagedHashTags, O as getCreationActivityStatsList, Ot as getCreationScreenshotPage, P as getSplitRuleDetail, Pt as getHashTagDetail, Q as getHealthCheck, Qt as createCreation, R as getTeamMemberList, Rt as createShortUrl, S as getCCWMainStatus, St as getStudentBlockRecordList, T as getHistoricalTeamMemberPage, Tt as getPostDetail, U as getTypicalProjectUnreadCount, Ut as getRecommendCreations, V as fetchObserverInviteToken, Vt as searchCreationsByTag, W as getTypicalProjectPage, Wt as getPotentialCreations, X as getLockedUserDetail, Xt as getExcellentCreations, Y as getMutedUserDetail, Yt as getCreationIntroduction, Z as getLeafletsItemList, Zt as getCreationDetail, _ as deleteComment, _t as getStudentSessions, a as getConnectCommunityFollowingStatus, an as searchCloudAssets, at as getUserCardDetail, b as topComment, bt as getCreatorScore, c as executeSmartContract, cn as getCheckInRecords, ct as getSubjectAreaPageByChannel, d as setUserProductStatus, dn as getApprovalTags, dt as getStudyCommunityMemberDetail, en as mall_d_exports, et as getEmojiPage, f as getUserProductsPage, fn as encodeShortCode, ft as updateStudent, g as createComment, gt as getStudentProfile, h as likeComment, ht as getReputationScoreLog, i as getConnectCommunityCreationLikeStatus, in as comment_d_exports, it as getUserLabelList, j as createSmsCaptchaBySession, jt as getDonatedRecordRanking, k as getCreationAttributeDetail, kt as getCreationRecommendPositionList, l as getSmartContractList, ln as getCampaignResources, lt as getSubjectAreaPage, m as getStudentFollowingPage, mt as getStudentSelfDetail, n as unfollowCreator, nn as getCommentsByTopic, nt as getAllEmojis, o as getSmartContractDetail, on as getUserAssetStorageSize, ot as getMyTasks, p as donateTrade, pt as getStudentStats, q as notification_d_exports, qt as getLoadingTips, r as followCreator, rn as getCommentReplies, rt as getPersonalCurrencyAccount, s as getSmartContractAccount, sn as insertCheckInRecord, st as acceptAward, t as communityWeb, tn as getConfigDetail, tt as getEmojiCategoryList, u as updateGreatCreation, un as getTime, ut as getSpreadFeedUnreadCount, v as resetCommentWeight, vt as getStudentsList, w as decompressShortUrl, wt as getSearchHotWords, x as createCloudVariable, xt as getStudentBlockStatus, y as foldComment, yt as getStudentLastActiveAt, z as produceTeamMemberTicket, zt as getCreationTags } from "./index-D3txjDPB.cjs";
8
8
  import { r as session_d_exports } from "./session-D8sffvmq.cjs";
9
9
  import { a as getBulletinsPage, i as getBulletinDetail, n as getLeaderboardRecords, o as getCurrentTimestamp, r as submitLeaderboardRecord, t as gandiMain } from "./index-CwWMFbgH.cjs";
10
- import { a as logout, i as logoutBySession, n as loginByPhone, o as loginByPassword, r as createSmsCaptcha, t as sso } from "./index-DCDRwVC2.cjs";
10
+ import { a as createSmsCaptcha, c as loginByPassword, i as loginByPhone, n as getOauthToken, o as logoutBySession, r as oauthAuthorize, s as logout, t as sso } from "./index-et5F1JeT.cjs";
11
11
  import { n as checkCaptcha, r as createCaptcha, t as opParentApi } from "./index-JnYvwWhY.cjs";
12
12
  //#region src/request.d.ts
13
13
  type Response<Res = any> = {
@@ -27,6 +27,8 @@ declare const _default: {
27
27
  logoutBySession: typeof logoutBySession;
28
28
  createSmsCaptcha: typeof createSmsCaptcha;
29
29
  loginByPhone: typeof loginByPhone;
30
+ oauthAuthorize: typeof oauthAuthorize;
31
+ getOauthToken: typeof getOauthToken;
30
32
  };
31
33
  communityWeb: {
32
34
  acceptAward: typeof acceptAward;
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { a as api_d_exports } from "./api-DK7ohLa7.js";
2
- import { _ as creation_d_exports, j as approval_d_exports, k as userData_d_exports } from "./extensions-D1JeVkuw.js";
2
+ import { A as userData_d_exports, M as approval_d_exports, _ as creation_d_exports } from "./extensions-DAv_-abd.js";
3
3
  import { n as account_d_exports } from "./account-_e06LVHE.js";
4
4
  import { i as pages_d_exports } from "./pages-K5jlky49.js";
5
- import { n as donateExtension, r as getUserExtensions, t as bfsWeb } from "./index-CDuyecw5.js";
5
+ import { n as donateExtension, r as getUserExtensions, t as bfsWeb } from "./index-0a1W6K_R.js";
6
6
  import { i as saveUserCloudVariable, n as getCloudVariableDetailV2, r as saveProjectCloudVariable, t as communityWebCloudDatabase } from "./index-BVdJi7l7.js";
7
- import { $ as sendEvent, $t as queryMallProducts, A as createSplitRule, At as getCreationFavoriteDetail, B as fetchMemberInviteToken, Bt as getCreationStudentDetail, C as getRecommendHashTags, Ct as getStudentBlockRecordDetail, D as getCreationReleasePage, Dt as viewCreationStats, E as getCodeProfilingDetail, Et as getNotifyDeleteReasons, F as submitCreation, Ft as getMyHashTagCreations, G as getNotificationStats, Gt as getCreationsByStudent, H as getOwnCreationPage, Ht as getRecommendCreators, I as updateCreation, It as getPlanetsOfCreation, J as notificationContent_d_exports, Jt as getLikeDetail, K as getNotificationPage, Kt as getRemixedCreationPage, L as getTeamworkLogPage, Lt as hashTag_d_exports, M as changeStudentPassword, Mt as getHashTagFavoriteDetail, N as bindStudentPhone, Nt as getManagedHashTags, O as getCreationActivityStatsList, Ot as getCreationScreenshotPage, P as getSplitRuleDetail, Pt as getHashTagDetail, Q as getHealthCheck, Qt as createCreation, R as getTeamMemberList, Rt as createShortUrl, S as getCCWMainStatus, St as getStudentBlockRecordList, T as getHistoricalTeamMemberPage, Tt as getPostDetail, U as getTypicalProjectUnreadCount, Ut as getRecommendCreations, V as fetchObserverInviteToken, Vt as searchCreationsByTag, W as getTypicalProjectPage, Wt as getPotentialCreations, X as getLockedUserDetail, Xt as getExcellentCreations, Y as getMutedUserDetail, Yt as getCreationIntroduction, Z as getLeafletsItemList, Zt as getCreationDetail, _ as deleteComment, _t as getStudentSessions, a as getConnectCommunityFollowingStatus, an as searchCloudAssets, at as getUserCardDetail, b as topComment, bt as getCreatorScore, c as executeSmartContract, cn as getCheckInRecords, ct as getSubjectAreaPageByChannel, d as setUserProductStatus, dn as getApprovalTags, dt as getStudyCommunityMemberDetail, en as mall_d_exports, et as getEmojiPage, f as getUserProductsPage, fn as encodeShortCode, ft as updateStudent, g as createComment, gt as getStudentProfile, h as likeComment, ht as getReputationScoreLog, i as getConnectCommunityCreationLikeStatus, in as comment_d_exports, it as getUserLabelList, j as createSmsCaptchaBySession, jt as getDonatedRecordRanking, k as getCreationAttributeDetail, kt as getCreationRecommendPositionList, l as getSmartContractList, ln as getCampaignResources, lt as getSubjectAreaPage, m as getStudentFollowingPage, mt as getStudentSelfDetail, n as unfollowCreator, nn as getCommentsByTopic, nt as getAllEmojis, o as getSmartContractDetail, on as getUserAssetStorageSize, ot as getMyTasks, p as donateTrade, pt as getStudentStats, q as notification_d_exports, qt as getLoadingTips, r as followCreator, rn as getCommentReplies, rt as getPersonalCurrencyAccount, s as getSmartContractAccount, sn as insertCheckInRecord, st as acceptAward, t as communityWeb, tn as getConfigDetail, tt as getEmojiCategoryList, u as updateGreatCreation, un as getTime, ut as getSpreadFeedUnreadCount, v as resetCommentWeight, vt as getStudentsList, w as decompressShortUrl, wt as getSearchHotWords, x as createCloudVariable, xt as getStudentBlockStatus, y as foldComment, yt as getStudentLastActiveAt, z as produceTeamMemberTicket, zt as getCreationTags } from "./index-CobjrinB.js";
7
+ import { $ as sendEvent, $t as queryMallProducts, A as createSplitRule, At as getCreationFavoriteDetail, B as fetchMemberInviteToken, Bt as getCreationStudentDetail, C as getRecommendHashTags, Ct as getStudentBlockRecordDetail, D as getCreationReleasePage, Dt as viewCreationStats, E as getCodeProfilingDetail, Et as getNotifyDeleteReasons, F as submitCreation, Ft as getMyHashTagCreations, G as getNotificationStats, Gt as getCreationsByStudent, H as getOwnCreationPage, Ht as getRecommendCreators, I as updateCreation, It as getPlanetsOfCreation, J as notificationContent_d_exports, Jt as getLikeDetail, K as getNotificationPage, Kt as getRemixedCreationPage, L as getTeamworkLogPage, Lt as hashTag_d_exports, M as changeStudentPassword, Mt as getHashTagFavoriteDetail, N as bindStudentPhone, Nt as getManagedHashTags, O as getCreationActivityStatsList, Ot as getCreationScreenshotPage, P as getSplitRuleDetail, Pt as getHashTagDetail, Q as getHealthCheck, Qt as createCreation, R as getTeamMemberList, Rt as createShortUrl, S as getCCWMainStatus, St as getStudentBlockRecordList, T as getHistoricalTeamMemberPage, Tt as getPostDetail, U as getTypicalProjectUnreadCount, Ut as getRecommendCreations, V as fetchObserverInviteToken, Vt as searchCreationsByTag, W as getTypicalProjectPage, Wt as getPotentialCreations, X as getLockedUserDetail, Xt as getExcellentCreations, Y as getMutedUserDetail, Yt as getCreationIntroduction, Z as getLeafletsItemList, Zt as getCreationDetail, _ as deleteComment, _t as getStudentSessions, a as getConnectCommunityFollowingStatus, an as searchCloudAssets, at as getUserCardDetail, b as topComment, bt as getCreatorScore, c as executeSmartContract, cn as getCheckInRecords, ct as getSubjectAreaPageByChannel, d as setUserProductStatus, dn as getApprovalTags, dt as getStudyCommunityMemberDetail, en as mall_d_exports, et as getEmojiPage, f as getUserProductsPage, fn as encodeShortCode, ft as updateStudent, g as createComment, gt as getStudentProfile, h as likeComment, ht as getReputationScoreLog, i as getConnectCommunityCreationLikeStatus, in as comment_d_exports, it as getUserLabelList, j as createSmsCaptchaBySession, jt as getDonatedRecordRanking, k as getCreationAttributeDetail, kt as getCreationRecommendPositionList, l as getSmartContractList, ln as getCampaignResources, lt as getSubjectAreaPage, m as getStudentFollowingPage, mt as getStudentSelfDetail, n as unfollowCreator, nn as getCommentsByTopic, nt as getAllEmojis, o as getSmartContractDetail, on as getUserAssetStorageSize, ot as getMyTasks, p as donateTrade, pt as getStudentStats, q as notification_d_exports, qt as getLoadingTips, r as followCreator, rn as getCommentReplies, rt as getPersonalCurrencyAccount, s as getSmartContractAccount, sn as insertCheckInRecord, st as acceptAward, t as communityWeb, tn as getConfigDetail, tt as getEmojiCategoryList, u as updateGreatCreation, un as getTime, ut as getSpreadFeedUnreadCount, v as resetCommentWeight, vt as getStudentsList, w as decompressShortUrl, wt as getSearchHotWords, x as createCloudVariable, xt as getStudentBlockStatus, y as foldComment, yt as getStudentLastActiveAt, z as produceTeamMemberTicket, zt as getCreationTags } from "./index-DFVqKOcp.js";
8
8
  import { r as session_d_exports } from "./session-Cw37kR-m.js";
9
9
  import { a as getBulletinsPage, i as getBulletinDetail, n as getLeaderboardRecords, o as getCurrentTimestamp, r as submitLeaderboardRecord, t as gandiMain } from "./index-B8SvUvok.js";
10
- import { a as logout, i as logoutBySession, n as loginByPhone, o as loginByPassword, r as createSmsCaptcha, t as sso } from "./index-DXMyzE0v.js";
10
+ import { a as createSmsCaptcha, c as loginByPassword, i as loginByPhone, n as getOauthToken, o as logoutBySession, r as oauthAuthorize, s as logout, t as sso } from "./index-B4S_NZQT.js";
11
11
  import { n as checkCaptcha, r as createCaptcha, t as opParentApi } from "./index-JnYvwWhY.js";
12
12
  //#region src/request.d.ts
13
13
  type Response<Res = any> = {
@@ -27,6 +27,8 @@ declare const _default: {
27
27
  logoutBySession: typeof logoutBySession;
28
28
  createSmsCaptcha: typeof createSmsCaptcha;
29
29
  loginByPhone: typeof loginByPhone;
30
+ oauthAuthorize: typeof oauthAuthorize;
31
+ getOauthToken: typeof getOauthToken;
30
32
  };
31
33
  communityWeb: {
32
34
  acceptAward: typeof acceptAward;
@@ -1 +1 @@
1
- var ccwApi=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let t={post(e,t=null){return n.post(e,t)},get(e){return n.get(e)}},n={async post(e,t=null){throw Error(`requestUtils for @ccw-api/api is not initialized`)},async get(e){throw Error(`requestUtils for @ccw-api/api is not initialized`)}};function r(e){n=e}async function i(e,n,r={device:`Node`,browser:`Node.js`}){let i={loginKey:e,password:n,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})},{extra:a,...o}=await t.post(`https://sso.ccw.site/web/auth/login-by-password`,i).then(e=>e.data.body),s=JSON.parse(a);return{...o,extra:s}}async function a(){return await t.post(`https://sso.ccw.site/web/auth/logout`,{}).then(e=>e.data.body)}async function o(e){return await t.post(`https://sso.ccw.site/web/auth/logout_by_session`,{id:e}).then(e=>e.data.body)}async function s(e,n=`loginbyPhone`,r=`86`,i=`ccw_sms`,a){let o={recipient:e,countryCode:r,scene:n,ruleCode:i,captcha:a};return await t.post(`https://sso.ccw.site/web/auth/assistant/captcha/v2/create`,o).then(e=>e.data.body)}async function c(e,n,r={device:`Node`,browser:`Node.js`},i=`86`,a=`ccw_sms`,o=`loginbyPhone`){let{extra:s,...c}=await t.post(`https://sso.ccw.site/web/auth/v3/login/by_phone`,{phone:e,code:n,countryCode:i,ruleCode:a,scene:o,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})}).then(e=>e.data.body),l=JSON.parse(s);return{...c,extra:l}}let l={loginByPassword:i,logout:a,logoutBySession:o,createSmsCaptcha:s,loginByPhone:c};async function u(e,n,r,i){let a={origin:{inviterAvatar:n,inviterName:r,inviterId:e,inviterType:`STUDENT`,entrance:`create_detail`,creationOid:i}};return await t.post(`https://community-web.ccw.site/api/v1/short_code/encode`,a).then(e=>e.data.body)}async function ee(e){let n={objectId:e,objectType:`STUDENT`};return await t.post(`https://community-web.ccw.site/approval/list`,n).then(e=>e.data.body)}async function te(){return t.post(`https://community-web.ccw.site/base/dateTime`,void 0).then(e=>e.data.body)}async function ne(e){return await t.post(`https://community-web.ccw.site/campaign_resource/detail`,{keyword:e}).then(e=>e.data.body)}async function re(){return await t.post(`https://community-web.ccw.site/check_in_record/detail`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function ie(){return await t.post(`https://community-web.ccw.site/check_in_record/insert`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function ae(){return await t.post(`https://community-web.ccw.site/cloud_asset/user/privacy`,{}).then(e=>e.data.body)}function d(e,t){let n=new URL(e);return Object.entries(t).forEach(([e,t])=>{t!=null&&n.searchParams.set(e,t)}),n.toString()}let f={page:1,perPage:20,sortType:`DESC`,sortField:``},oe={...f,sortField:`createdAt`};async function se(e,n=`/`,r={}){let i=d(`https://community-web.ccw.site/cloud_asset/search`,{...oe,...r}),a={creatorOid:e,path:n};return await t.post(i,a).then(e=>e.data.body)}async function ce(e,n,r=[`PUBLISHED`,`FOLDED`],i={sortField:`createdAt`}){let a=d(`https://community-web.ccw.site/comment/page`,{...f,...i}),o={topicId:e,parentId:n,statuses:r};return await t.post(a,o).then(e=>e.data.body)}let p={...f,sortField:`createdAt`};async function m(e,n,r,i={sortField:`createdAt`}){let a=d(`https://community-web.ccw.site/comment/page_by_topic`,{...p,...i}),o={subjectOid:e,subjectType:n,sectionType:r};return await t.post(a,o).then(e=>e.data.body)}async function h(e){let n={key:e};return await t.post(`https://community-web.ccw.site/config/detail`,n).then(e=>e.data.body)}async function g(e,n={sortField:`createdAt`}){let r={...f,...n},i=d(`https://community-web.ccw.site/ccw-mall/ccw/product/fe/query`,r),a={page:r.page,perPage:r.perPage,sortType:r.sortType,productCategory:e,source:`CCW_OFFICIAL`};return await t.post(i,a).then(e=>e.data.body)}async function _(e,n,r,i=`ORIGINAL`,a=`LANDSCAPE`,o=`PRIVATE`){let s={type:i,title:e,latestProjectLink:n,screenMode:a,artifactType:`STANDARD`,sourceOpenLevel:o,latestCoverLink:r};return await t.post(`https://community-web.ccw.site/creation/create`,s).then(e=>e.data.body)}async function v(e,n,r=``){let i={oid:e,accessKey:n,mode:r};return await t.post(`https://community-web.ccw.site/creation/detail`,i).then(e=>e.data.body)}async function y(e){let n={num:e};return await t.post(`https://community-web.ccw.site/creation/excellent/list`,n).then(e=>e.data.body)}async function b(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/creation/introduction/detail`,n).then(e=>e.data.body)}async function x(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation/like/detail`,n).then(e=>e.data.body)}async function S(){return await t.post(`https://community-web.ccw.site/creation/loading/tips`,{}).then(e=>e.data.body)}let C={...f,sortField:`createdAt`};async function w(e,n={}){let r=d(`https://community-web.ccw.site/creation/page`,{...C,...n}),i={remixCreationOids:e};return await t.post(r,i).then(e=>e.data.body)}let T={...f,sortField:`createdAt`};async function E(e,n={}){let r=d(`https://community-web.ccw.site/creation/page_by_student`,{...T,...n}),i={studentOids:e};return await t.post(r,i).then(e=>e.data.body)}async function D(e){let n={num:e};return await t.post(`https://community-web.ccw.site/creation/potential/list`,n).then(e=>e.data.body)}let O={...f,sortField:`createdAt`};async function k(e,n={}){let r=d(`https://community-web.ccw.site/creation/recommend`,{...O,...n}),i={num:e,subjectType:`POTENTIAL`};return await t.post(r,i).then(e=>e.data.body)}async function A(e=4,n=8){let r={excellentCount:e,potentialCount:n};return await t.post(`https://community-web.ccw.site/recommend_creator/list`,r).then(e=>e.data.body)}let j={...f,sortField:`createdAt`};async function M(e,n={}){let r=d(`https://community-web.ccw.site/creation/search/page`,{...j,...n});return await t.post(r,e).then(e=>e.data.body)}async function N(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/creation/student/detail`,n).then(e=>e.data.body)}async function P(){return await t.post(`https://community-web.ccw.site/creation/tag/list`,{visibility:`PUBLIC`}).then(e=>e.data.body)}async function F(e){let n={originUrl:e};return await t.post(`https://community-web.ccw.site/short_url/create`,n).then(e=>e.data.body)}async function I(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/hash_tag_creation/list_relation`,n).then(e=>e.data.body)}let L={...f,sortField:`lastPassedAt`};async function R(e,n,r={}){let i={...L,...r},a=d(`https://community-web.ccw.site/hash_tag_creation/mine`,i),o={...i,excludeHashTag:e,statuses:n};return await t.post(a,o).then(e=>e.data.body)}async function z(e){let n={identifier:e};return await t.post(`https://community-web.ccw.site/hash_tag/detail`,n).then(e=>e.data.body)}let B={...f,sortField:`createdAt`};async function V(e,n=[],r={}){let i={...B,...r},a=d(`https://community-web.ccw.site/hash_tag/managed/list`,i),o={...i,studentOid:e,excludeHashTagIds:n};return await t.post(a,o).then(e=>e.data.body)}async function H(e){let n={hashTagId:e};return await t.post(`https://community-web.ccw.site/hash_tag_favorite/detail`,n).then(e=>e.data.body)}async function U(e,n={sortField:`createdAt`}){let r=d(`https://community-web.ccw.site/creation_donated_record/ranking_list`,{...f,...n}),i={creationOid:e};return await t.post(r,i).then(e=>e.data.body)}async function W(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation_favorite/detail`,n).then(e=>e.data.body)}async function G(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation_recommend_position/list`,n).then(e=>e.data.body)}async function le(e,n={}){let r=d(`https://community-web.ccw.site/creation_screenshot/page`,{...f,...n}),i={subjectOid:e};return await t.post(r,i).then(e=>e.data.body)}async function ue(e,n=``){let r={oid:e,inviteCode:n};return await t.post(`https://community-web.ccw.site/creation_stats/view`,r).then(e=>e.data.body)}async function de(){return await t.post(`https://community-web.ccw.site/notify_message/show`,{type:`COMMENT_AUDIT`}).then(e=>e.data.body)}async function fe(e){let n={slug:e};return await t.post(`https://community-web.ccw.site/post/detail`,n).then(e=>e.data.body)}async function pe(e){let n={length:e};return await t.post(`https://community-web.ccw.site/search/hot_words`,n).then(e=>e.data.body)}async function me(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/student/block_record/detail`,n).then(e=>e.data.body)}async function he(e={sortField:`createdAt`}){let n=d(`https://community-web.ccw.site/student/block_record/list`,{...f,...e});return await t.post(n,{}).then(e=>e.data.body)}async function ge(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/student/block_record/status`,n).then(e=>e.data.body)}async function _e(){return await t.post(`https://community-web.ccw.site/students/creator_score`,void 0).then(e=>e.data.body)}async function ve(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/students/last_active_at`,n).then(e=>e.data.body)}async function ye(e){let n={studentOids:e};return await t.post(`https://community-web.ccw.site/students/list`,n).then(e=>e.data.body)}async function be(e={sortField:`createdAt`}){let n=d(`https://community-web.ccw.site/students/list_sessions`,{...f,...e});return await t.post(n,{}).then(e=>e.data.body)}async function xe(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/students/profile`,n).then(e=>e.data.body)}async function Se(e={sortField:`createdAt`}){let n=d(`https://community-web.ccw.site/students/reputation_score_log/page`,{...f,...e});return await t.post(n,{}).then(e=>e.data.body)}async function Ce(e,n,r){let i={needGrade:e,needExtraInfo:n,fields:r};return await t.post(`https://community-web.ccw.site/students/self/detail`,i).then(e=>e.data.body)}async function we(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/students/stats`,n).then(e=>e.data.body)}async function Te(e,n,r,i,a,o,s,c,l){let u={gender:e,hideGender:n,fullName:r,birthday:i,programmingCapability:a,school:o,qq:s,hobbies:c,learnedProgrammingLanguages:l};return await t.post(`https://community-web.ccw.site/students/update`,u).then(e=>e.data.body)}async function Ee(){return await t.post(`https://community-web.ccw.site/study-community/member/detail`,{}).then(e=>e.data.body)}async function De(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/study-community/spread_feed/unread/count`,n).then(e=>e.data.body)}async function Oe(e,n={sortField:`createdAt`}){let r=d(`https://community-web.ccw.site/subject_area/page`,{...f,...n}),i={scene:e};return await t.post(r,i).then(e=>e.data.body)}async function ke(e,n={sortField:`campaignResourceId`}){let r=d(`https://community-web.ccw.site/subject_area/page_by_channel`,{...f,...n}),i={channel:e,scene:`CUSTOM_PAGE`};return await t.post(r,i).then(e=>e.data.body)}async function Ae(e){let n={taskOid:e};return await t.post(`https://community-web.ccw.site/task/award`,n).then(e=>e.data.body)}async function je(){return await t.post(`https://community-web.ccw.site/task/mine`,{scene:`checkIn`}).then(e=>e.data.body)}async function Me(e){let n={oid:e};return await t.post(`https://community-web.ccw.site/user-card/detail`,n).then(e=>e.data.body)}async function Ne(){return await t.post(`https://community-web.ccw.site/user_label/list`,{}).then(e=>e.data.body)}async function Pe(){return await t.post(`https://community-web.ccw.site/currency/account/personal`).then(e=>e.data.body)}async function Fe(){return await t.post(`https://community-web.ccw.site/emoji/all`,{}).then(e=>e.data.body)}async function Ie(){return await t.post(`https://community-web.ccw.site/emoji/category/list`,{}).then(e=>e.data.body)}async function Le(e=`ENABLED`,n={sortField:`createdAt`}){let r={...f,...n},i=d(`https://community-web.ccw.site/emoji/page`,r),a={page:r.page,perPage:r.perPage,status:e};return await t.post(i,a).then(e=>e.data.body)}async function Re(e){let n={actionId:e};return await t.post(`https://community-web.ccw.site/event`,n).then(e=>e.data.body)}async function ze(){return await t.post(`https://community-web.ccw.site/health/check`).then(e=>e.data.body)}async function Be(e){let n={advertisementId:e};return await t.post(`https://community-web.ccw.site/leaflets/item/list`,n).then(e=>e.data.body)}async function Ve(e){let n={accountOid:e};return await t.post(`https://community-web.ccw.site/locked_user/detail`,n).then(e=>e.data.body)}async function He(e){let n={studentNumber:e};return await t.post(`https://community-web.ccw.site/muted_user/detail`,n).then(e=>e.data.body)}async function Ue(e=`COMMENT_TO_ME`,n={sortField:`createdAt`}){let r={...f,...n},i=d(`https://community-web.ccw.site/notification/page`,r),a={notifyGroup:e,page:r.page};return await t.post(i,a).then(e=>e.data.body)}async function We(e=!0){let n={countAll:e};return await t.post(`https://community-web.ccw.site/notification/stats/v2`,n).then(e=>e.data.body)}async function Ge(e,n={sortField:`createdAt`}){let r=d(`https://community-web.ccw.site/typical_project/page`,{...f,...n}),i={studentOid:e,templateType:`APPLICATION`};return await t.post(r,i).then(e=>e.data.body)}async function Ke(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/typical_project/student/unread_count`,n).then(e=>e.data.body)}async function qe(e={sortField:`updatedAt`},n=[`BANNED`,`PUBLISHED`,`REJECTED`,`SUBMITTED`],r=!1){let i=d(`https://community-web.ccw.site/creation/own/page`,{...f,...e}),a={statuses:n,ignoreTypicalProject:r};return await t.post(i,a).then(e=>e.data.body)}async function Je(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch`,n).then(e=>e.data.body)}async function Ye(e,n=`MEMBER`){let r={creationOid:e,authority:n};return await t.post(`https://community-web.ccw.site/creation/team_member/invite_token/fetch`,r).then(e=>e.data.body)}async function Xe(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation/team_member/produce_ticket`,n).then(e=>e.data.body)}async function Ze(e,n){let r={creationOid:e,authorities:n};return await t.post(`https://community-web.ccw.site/creation/team_member/list`,r).then(e=>e.data.body)}async function Qe(e,n,r={sortField:`createdAt`}){let i=d(`https://community-web.ccw.site/creation/teamwork_log/page`,{...f,...r}),a={creationId:e,operateTargets:n},o=await t.post(i,a).then(e=>e.data.body),{data:s}=o,c=s.map(e=>{let{content:t}=e;return{...e,content:JSON.parse(t)}});return{...o,data:c}}async function $e(e,n,r=`LANDSCAPE`,i){if(!n.includes(`t=`)){let e=new URL(n);e.searchParams.set(`t`,Date.now().toString()),n=e.toString()}let a={oid:e,latestProjectLink:n,screenMode:r,latestCoverLink:i};return await t.post(`https://community-web.ccw.site/creation/update`,a).then(e=>e.data.body)}async function et(e){return await t.post(`https://community-web.ccw.site/creation/submit`,e).then(e=>e.data.body)}async function tt(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/detail`,n).then(e=>e.data.body)}async function nt(e,n,r=`86`){let i={phone:e,code:n,ruleCode:`ccw_sms`,scene:`bindPhone`,countryCode:r};return await t.post(`https://community-web.ccw.site/students/bind_phone`,i).then(e=>e.data.body)}async function rt(e,n){let r={newPassword:e,code:n};return await t.post(`https://community-web.ccw.site/students/password/change`,r).then(e=>e.data.body)}async function it(e=`change_password`,n=`86`,r=`ccw_sms`,i=`SMS`){let a={type:i,countryCode:n,scene:e,ruleCode:r};return await t.post(`https://community-web.ccw.site/captcha/v2/create_by_session`,a).then(e=>e.data.body)}async function at(e,n){let r={creationOid:e,memberSplitDetails:n};return await t.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/create`,r).then(e=>e.data.body)}async function ot(e){let n={creationOid:e},r=await t.post(`https://community-web.ccw.site/creation_attribute/detail`,n).then(e=>e.data.body);if(r===null)return null;let{ext:{KEYPAD_CONFIG:i}}=r,a=JSON.parse(i);return{...r,ext:{KEYPAD_CONFIG:a}}}async function st(e){let n={creationOid:e,type:`DAY`};return await t.post(`https://community-web.ccw.site/creation_activity_stats/list`,n).then(e=>e.data.body)}async function ct(e,n={sortField:`submittedAt`}){let r=d(`https://community-web.ccw.site/creation_release/page`,{...f,...n}),i={creationOid:e};return await t.post(r,i).then(e=>e.data.body)}async function lt(e,n){let r={creationOid:e,creationReleaseOid:n};return await t.post(`https://community-web.ccw.site/creation_release/code_profiling/detail`,r).then(e=>e.data.body)}async function ut(e,n={sortField:`createdAt`}){let r={...f,...n},i=d(`https://community-web.ccw.site/historical_team_member/page`,r),a={creationOid:e,page:r.page,perPage:r.perPage};return await t.post(i,a).then(e=>e.data.body)}async function dt(e){let n={shortUrlCode:e};return await t.post(`https://community-web.ccw.site/short_url/decompress`,n).then(e=>e.data.body)}async function ft(){return await t.post(`https://community-web.ccw.site/hash_tag/recommend/list`).then(e=>e.data.body)}async function pt(){return await t.post(`https://community-web.ccw.site/ccw-main/status`,{}).then(e=>e.data.body)}async function mt(e,n){let r={projectId:e,variables:n};return await t.post(`https://community-web.ccw.site/study-community/cloud_variable/create`,r).then(e=>e.data.body)}async function ht(e){let n={id:e};return await t.post(`https://community-web.ccw.site/study-community/comment/top`,n).then(e=>e.data.body)}async function gt(e){let n={id:e};return await t.post(`https://community-web.ccw.site/study-community/comment/fold`,n).then(e=>e.data.body)}async function _t(e){let n={id:e};return await t.post(`https://community-web.ccw.site/study-community/comment/reset_weight`,n).then(e=>e.data.body)}async function vt(e){let n={id:e};return await t.post(`https://community-web.ccw.site/study-community/comment/delete`,n).then(e=>e.data.body)}async function yt(e,n,r){n.outline??=`foo`;let i={content:e,topic:n,sectionType:r};return await t.post(`https://community-web.ccw.site/comment/create`,i).then(e=>e.data.body)}async function bt(e){let n={commentId:e};return await t.post(`https://community-web.ccw.site/comment/like_record/create`,n).then(e=>e.data.body)}async function xt(e,n={sortField:`createdAt`}){let r=d(`https://community-web.ccw.site/student/following/page`,{...f,...n}),i={studentOid:e};return await t.post(r,i).then(e=>e.data.body)}async function St(e,n,r=`CREATION`){let i={bucks:e,objectId:n,objectType:r};return await t.post(`https://community-web.ccw.site/study-trade/trade/donate`,i).then(e=>e.data.body)}async function Ct(e=5,n={}){let r={...f,...n},i=d(`https://community-web.ccw.site/user_package/user_product`,r),a={page:r.page,perPage:r.perPage,sortType:r.sortType,productCategory:e};return await t.post(i,a).then(e=>e.data.body)}async function wt(e,n){let r={status:n,id:e};return await t.post(`https://community-web.ccw.site/user_package/status`,r).then(e=>e.data.body)}async function Tt(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/great_creation/update`,n).then(e=>e.data.body)}async function Et(e,n,r,i,a=`CREATION`){let o={bizId:e,bizType:a,id:n,ruleId:r,params:{bucks:i}};return await t.post(`https://community-web.ccw.site/smart_contract/execute`,o).then(e=>e.data.body)}async function Dt(e){let n={id:e};return await t.post(`https://community-web.ccw.site/smart_contract/account`,n).then(e=>e.data.body)}async function Ot(e){let n={id:e};return await t.post(`https://community-web.ccw.site/smart_contract/detail`,n).then(e=>e.data.body)}async function kt(e,n=`CREATION`){let r={bizId:e,bizType:n};return await t.post(`https://community-web.ccw.site/smart_contract/list`,r).then(e=>e.data.body)}async function At(e,n){let r={playingCreationOid:e,userOid:n};return await t.post(`https://community-web.ccw.site/extensions/following/status`,r).then(e=>e.data.body)}async function jt(e,n){let r={playingCreationOid:e,creationOid:n};return await t.post(`https://community-web.ccw.site/extensions/creation-like/detail`,r).then(e=>e.data.body)}async function Mt(e){let n={followingOid:e};return await t.post(`https://community-web.ccw.site/study-community/following/follow`,n).then(e=>e.data.body)}async function Nt(e){let n={followingOid:e};return await t.post(`https://community-web.ccw.site/study-community/following/unfollow`,n).then(e=>e.data.body)}let K={acceptAward:Ae,bindStudentPhone:nt,changeStudentPassword:rt,createCreation:_,donateTrade:St,encodeShortCode:u,executeSmartContract:Et,fetchMemberInviteToken:Ye,fetchObserverInviteToken:Je,createCloudVariable:mt,createComment:yt,createShortUrl:F,createSmsCaptchaBySession:it,createSplitRule:at,decompressShortUrl:dt,deleteComment:vt,foldComment:gt,followCreator:Mt,unfollowCreator:Nt,getApprovalTags:ee,getCampaignResources:ne,getCcwMainStatus:pt,getCheckInRecords:re,getCodeProfilingDetail:lt,getCommentReplies:ce,getCommentsByTopic:m,getConfigDetail:h,getCreationActivityStatsList:st,getCreationAttributeDetail:ot,getCreationDetail:v,getCreationFavoriteDetail:W,getCreationIntroduction:b,getConnectCommunityCreationLikeStatus:jt,getCreationRecommendPositionList:G,getCreationReleasePage:ct,getCreationScreenshotPage:le,getCreationStudentDetail:N,getCreationTags:P,getCreatorScore:_e,getDonatedRecordRanking:U,getExcellentCreations:y,getConnectCommunityFollowingStatus:At,getEmojiCategoryList:Ie,getEmojiPage:Le,getAllEmojis:Fe,getHashTagDetail:z,getHashTagFavoriteDetail:H,getHistoricalTeamMemberPage:ut,getManagedHashTags:V,getHealthCheck:ze,getLeafletsItemList:Be,getLikeDetail:x,getLoadingTips:S,getLockedUserDetail:Ve,getMutedUserDetail:He,getMyHashTagCreations:R,getMyTasks:je,getNotifyDeleteReasons:de,getNotificationPage:Ue,getNotificationStats:We,getOwnCreationPage:qe,getPersonalCurrencyAccount:Pe,getPlanetsOfCreation:I,getPostDetail:fe,getPotentialCreations:D,getRecommendCreations:k,getRecommendCreators:A,getRecommendHashTags:ft,getRemixedCreationPage:w,getReputationScoreLogPage:Se,getSearchHotWords:pe,getSmartContractAccount:Dt,getSmartContractDetail:Ot,getSmartContractList:kt,getSplitRuleDetail:tt,getSpreadFeedUnreadCount:De,getStudentBlockRecordDetail:me,getStudentBlockRecordList:he,getStudentBlockStatus:ge,getStudentFollowingPage:xt,getStudentLastActiveAt:ve,getStudentProfile:xe,getStudentSelfDetail:Ce,getStudentSessions:be,getStudentsList:ye,getStudentStats:we,getStudyCommunityMemberDetail:Ee,getSubjectAreaPage:Oe,getSubjectAreaPageByChannel:ke,getTeamMemberList:Ze,getTeamworkLogPage:Qe,getTime:te,getTypicalProjectPage:Ge,getTypicalProjectUnreadCount:Ke,getUserAssetStorageSize:ae,getUserCardDetail:Me,getUserLabelList:Ne,getUserProductsPage:Ct,queryMallProducts:g,getCreationsByStudent:E,insertCheckInRecord:ie,likeComment:bt,produceTeamMemberTicket:Xe,resetCommentWeight:_t,searchCloudAssets:se,searchCreationsByTag:M,sendEvent:Re,setUserProductStatus:wt,submitCreation:et,topComment:ht,updateCreation:$e,updateGreatCreation:Tt,updateStudent:Te,viewCreationStats:ue};async function Pt(){return await t.get(`https://gandi-main.ccw.site/timestamp/current`).then(e=>e.data.body)}async function Ft(e=`PUBLISHED`,n={sortField:`publishedAt`}){let r=d(`https://gandi-main.ccw.site/bulletins`,{...f,...n,status:e});return await t.get(r).then(e=>e.data.body)}async function It(e){return await t.get(`https://gandi-main.ccw.site/bulletins/${e}`).then(e=>e.data.body)}let q=`https://gandi-main.ccw.site/creation/leaderboards`;async function Lt(e,n,r,i=``){let a={score:n,oid:r,ext:i},o=`${q}/${e}/records`;return await t.post(o,a).then(e=>e.data.body)}async function Rt(e){let n=`${q}/${e}/records`;return await t.get(n).then(e=>e.data.body)}let J={getCurrentTimestamp:Pt,getBulletinsPage:Ft,getBulletinDetail:It,submitLeaderboardRecord:Lt,getLeaderboardRecords:Rt};async function zt(e,n={sortField:`updatedAt`}){let r={...f,...n},i=d(`https://bfs-web.ccw.site/users/${e}/extensions`,r);return await t.get(i).then(e=>e.data.body)}async function Bt(e,n){let r={eid:e,bucks:n};return await t.post(`https://bfs-web.ccw.site/extensions/${e}/donate`,r).then(e=>e.data.body)}let Y={donateExtension:Bt,getUserExtensions:zt};async function X(e,n,r){let i={primaryKey:e,secondaryKey:n,value:r};return await t.post(`https://community-web-cloud-database.ccw.site/cloud_variable/save`,i).then(e=>e.data.body)}async function Vt(e,t,n){return await X(e,t,{v:n})}async function Z(e,t,n){return await X(`${e}-u`,`${t}`,n)}async function Ht(e,n,r,i){let a={accessKey:e,primaryKey:n,secondaryKey:r,filterKeys:i};return await t.post(`https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2`,a).then(e=>e.data.body)}let Q={saveProjectCloudVariable:Vt,saveUserCloudVariable:Z,getCloudVariableDetailV2:Ht};async function Ut(e=`BLOCK_PUZZLE`){let n={type:e};return await t.post(`https://op-parent-api.xiguacity.cn/captcha/create`,n).then(e=>e.data.body)}async function Wt(e,n,r=5){let i={data:{x:n,y:r},token:e};return await t.post(`https://op-parent-api.xiguacity.cn/captcha/check`,i).then(e=>e.data.body)}let $={createCaptcha:Ut,checkCaptcha:Wt};var Gt={sso:l,communityWeb:K,gandiMain:J,bfsWeb:Y,communityWebCloudDatabase:Q,opParentApi:$};return e.bfsWeb=Y,e.communityWeb=K,e.communityWebCloudDatabase=Q,e.default=Gt,e.gandiMain=J,e.opParentApi=$,e.setRequestUtils=r,e.sso=l,e})({});
1
+ var ccwApi=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let t={post(e,t=null){return n.post(e,t)},get(e){return n.get(e)}},n={async post(e,t=null){throw Error(`requestUtils for @ccw-api/api is not initialized`)},async get(e){throw Error(`requestUtils for @ccw-api/api is not initialized`)}};function r(e){n=e}async function i(e,n,r={device:`Node`,browser:`Node.js`}){let i={loginKey:e,password:n,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})},{extra:a,...o}=await t.post(`https://sso.ccw.site/web/auth/login-by-password`,i).then(e=>e.data.body),s=JSON.parse(a);return{...o,extra:s}}async function a(){return await t.post(`https://sso.ccw.site/web/auth/logout`,{}).then(e=>e.data.body)}async function o(e){return await t.post(`https://sso.ccw.site/web/auth/logout_by_session`,{id:e}).then(e=>e.data.body)}async function s(e,n=`loginbyPhone`,r=`86`,i=`ccw_sms`,a){let o={recipient:e,countryCode:r,scene:n,ruleCode:i,captcha:a};return await t.post(`https://sso.ccw.site/web/auth/assistant/captcha/v2/create`,o).then(e=>e.data.body)}async function c(e,n,r={device:`Node`,browser:`Node.js`},i=`86`,a=`ccw_sms`,o=`loginbyPhone`){let{extra:s,...c}=await t.post(`https://sso.ccw.site/web/auth/v3/login/by_phone`,{phone:e,code:n,countryCode:i,ruleCode:a,scene:o,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})}).then(e=>e.data.body),l=JSON.parse(s);return{...c,extra:l}}async function l(e){let n=new URL(`https://sso.ccw.site/oauth/authorize`);return n.searchParams.set(`state`,e),await t.get(n.toString()).then(e=>e.data.body)}async function ee(e){let{extra:n,...r}=await t.post(`https://sso.ccw.site/oauth/token`,{code:e}).then(e=>e.data.body);return{extra:JSON.parse(n),...r}}let u={loginByPassword:i,logout:a,logoutBySession:o,createSmsCaptcha:s,loginByPhone:c,oauthAuthorize:l,getOauthToken:ee};async function te(e,n,r,i){let a={origin:{inviterAvatar:n,inviterName:r,inviterId:e,inviterType:`STUDENT`,entrance:`create_detail`,creationOid:i}};return await t.post(`https://community-web.ccw.site/api/v1/short_code/encode`,a).then(e=>e.data.body)}async function ne(e){let n={objectId:e,objectType:`STUDENT`};return await t.post(`https://community-web.ccw.site/approval/list`,n).then(e=>e.data.body)}async function re(){return t.post(`https://community-web.ccw.site/base/dateTime`,void 0).then(e=>e.data.body)}async function ie(e){return await t.post(`https://community-web.ccw.site/campaign_resource/detail`,{keyword:e}).then(e=>e.data.body)}async function ae(){return await t.post(`https://community-web.ccw.site/check_in_record/detail`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function oe(){return await t.post(`https://community-web.ccw.site/check_in_record/insert`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function se(){return await t.post(`https://community-web.ccw.site/cloud_asset/user/privacy`,{}).then(e=>e.data.body)}function d(e,t){let n=new URL(e);return Object.entries(t).forEach(([e,t])=>{t!=null&&n.searchParams.set(e,t)}),n.toString()}let f={page:1,perPage:20,sortType:`DESC`,sortField:``},ce={...f,sortField:`createdAt`};async function p(e,n=`/`,r={}){let i=d(`https://community-web.ccw.site/cloud_asset/search`,{...ce,...r}),a={creatorOid:e,path:n};return await t.post(i,a).then(e=>e.data.body)}async function m(e,n,r=[`PUBLISHED`,`FOLDED`],i={sortField:`createdAt`}){let a=d(`https://community-web.ccw.site/comment/page`,{...f,...i}),o={topicId:e,parentId:n,statuses:r};return await t.post(a,o).then(e=>e.data.body)}let h={...f,sortField:`createdAt`};async function g(e,n,r,i={sortField:`createdAt`}){let a=d(`https://community-web.ccw.site/comment/page_by_topic`,{...h,...i}),o={subjectOid:e,subjectType:n,sectionType:r};return await t.post(a,o).then(e=>e.data.body)}async function _(e){let n={key:e};return await t.post(`https://community-web.ccw.site/config/detail`,n).then(e=>e.data.body)}async function v(e,n={sortField:`createdAt`}){let r={...f,...n},i=d(`https://community-web.ccw.site/ccw-mall/ccw/product/fe/query`,r),a={page:r.page,perPage:r.perPage,sortType:r.sortType,productCategory:e,source:`CCW_OFFICIAL`};return await t.post(i,a).then(e=>e.data.body)}async function y(e,n,r,i=`ORIGINAL`,a=`LANDSCAPE`,o=`PRIVATE`){let s={type:i,title:e,latestProjectLink:n,screenMode:a,artifactType:`STANDARD`,sourceOpenLevel:o,latestCoverLink:r};return await t.post(`https://community-web.ccw.site/creation/create`,s).then(e=>e.data.body)}async function b(e,n,r=``){let i={oid:e,accessKey:n,mode:r};return await t.post(`https://community-web.ccw.site/creation/detail`,i).then(e=>e.data.body)}async function x(e){let n={num:e};return await t.post(`https://community-web.ccw.site/creation/excellent/list`,n).then(e=>e.data.body)}async function S(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/creation/introduction/detail`,n).then(e=>e.data.body)}async function C(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation/like/detail`,n).then(e=>e.data.body)}async function w(){return await t.post(`https://community-web.ccw.site/creation/loading/tips`,{}).then(e=>e.data.body)}let T={...f,sortField:`createdAt`};async function E(e,n={}){let r=d(`https://community-web.ccw.site/creation/page`,{...T,...n}),i={remixCreationOids:e};return await t.post(r,i).then(e=>e.data.body)}let D={...f,sortField:`createdAt`};async function O(e,n={}){let r=d(`https://community-web.ccw.site/creation/page_by_student`,{...D,...n}),i={studentOids:e};return await t.post(r,i).then(e=>e.data.body)}async function k(e){let n={num:e};return await t.post(`https://community-web.ccw.site/creation/potential/list`,n).then(e=>e.data.body)}let A={...f,sortField:`createdAt`};async function j(e,n={}){let r=d(`https://community-web.ccw.site/creation/recommend`,{...A,...n}),i={num:e,subjectType:`POTENTIAL`};return await t.post(r,i).then(e=>e.data.body)}async function M(e=4,n=8){let r={excellentCount:e,potentialCount:n};return await t.post(`https://community-web.ccw.site/recommend_creator/list`,r).then(e=>e.data.body)}let N={...f,sortField:`createdAt`};async function P(e,n={}){let r=d(`https://community-web.ccw.site/creation/search/page`,{...N,...n});return await t.post(r,e).then(e=>e.data.body)}async function F(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/creation/student/detail`,n).then(e=>e.data.body)}async function I(){return await t.post(`https://community-web.ccw.site/creation/tag/list`,{visibility:`PUBLIC`}).then(e=>e.data.body)}async function L(e){let n={originUrl:e};return await t.post(`https://community-web.ccw.site/short_url/create`,n).then(e=>e.data.body)}async function R(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/hash_tag_creation/list_relation`,n).then(e=>e.data.body)}let z={...f,sortField:`lastPassedAt`};async function B(e,n,r={}){let i={...z,...r},a=d(`https://community-web.ccw.site/hash_tag_creation/mine`,i),o={...i,excludeHashTag:e,statuses:n};return await t.post(a,o).then(e=>e.data.body)}async function V(e){let n={identifier:e};return await t.post(`https://community-web.ccw.site/hash_tag/detail`,n).then(e=>e.data.body)}let H={...f,sortField:`createdAt`};async function U(e,n=[],r={}){let i={...H,...r},a=d(`https://community-web.ccw.site/hash_tag/managed/list`,i),o={...i,studentOid:e,excludeHashTagIds:n};return await t.post(a,o).then(e=>e.data.body)}async function W(e){let n={hashTagId:e};return await t.post(`https://community-web.ccw.site/hash_tag_favorite/detail`,n).then(e=>e.data.body)}async function G(e,n={sortField:`createdAt`}){let r=d(`https://community-web.ccw.site/creation_donated_record/ranking_list`,{...f,...n}),i={creationOid:e};return await t.post(r,i).then(e=>e.data.body)}async function le(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation_favorite/detail`,n).then(e=>e.data.body)}async function ue(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation_recommend_position/list`,n).then(e=>e.data.body)}async function de(e,n={}){let r=d(`https://community-web.ccw.site/creation_screenshot/page`,{...f,...n}),i={subjectOid:e};return await t.post(r,i).then(e=>e.data.body)}async function fe(e,n=``){let r={oid:e,inviteCode:n};return await t.post(`https://community-web.ccw.site/creation_stats/view`,r).then(e=>e.data.body)}async function pe(){return await t.post(`https://community-web.ccw.site/notify_message/show`,{type:`COMMENT_AUDIT`}).then(e=>e.data.body)}async function me(e){let n={slug:e};return await t.post(`https://community-web.ccw.site/post/detail`,n).then(e=>e.data.body)}async function he(e){let n={length:e};return await t.post(`https://community-web.ccw.site/search/hot_words`,n).then(e=>e.data.body)}async function ge(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/student/block_record/detail`,n).then(e=>e.data.body)}async function _e(e={sortField:`createdAt`}){let n=d(`https://community-web.ccw.site/student/block_record/list`,{...f,...e});return await t.post(n,{}).then(e=>e.data.body)}async function ve(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/student/block_record/status`,n).then(e=>e.data.body)}async function ye(){return await t.post(`https://community-web.ccw.site/students/creator_score`,void 0).then(e=>e.data.body)}async function be(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/students/last_active_at`,n).then(e=>e.data.body)}async function xe(e){let n={studentOids:e};return await t.post(`https://community-web.ccw.site/students/list`,n).then(e=>e.data.body)}async function Se(e={sortField:`createdAt`}){let n=d(`https://community-web.ccw.site/students/list_sessions`,{...f,...e});return await t.post(n,{}).then(e=>e.data.body)}async function Ce(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/students/profile`,n).then(e=>e.data.body)}async function we(e={sortField:`createdAt`}){let n=d(`https://community-web.ccw.site/students/reputation_score_log/page`,{...f,...e});return await t.post(n,{}).then(e=>e.data.body)}async function Te(e,n,r){let i={needGrade:e,needExtraInfo:n,fields:r};return await t.post(`https://community-web.ccw.site/students/self/detail`,i).then(e=>e.data.body)}async function Ee(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/students/stats`,n).then(e=>e.data.body)}async function De(e){let n=e;return await t.post(`https://community-web.ccw.site/students/update`,n).then(e=>e.data.body)}async function Oe(){return await t.post(`https://community-web.ccw.site/study-community/member/detail`,{}).then(e=>e.data.body)}async function ke(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/study-community/spread_feed/unread/count`,n).then(e=>e.data.body)}async function Ae(e,n={sortField:`createdAt`}){let r=d(`https://community-web.ccw.site/subject_area/page`,{...f,...n}),i={scene:e};return await t.post(r,i).then(e=>e.data.body)}async function je(e,n={sortField:`campaignResourceId`}){let r=d(`https://community-web.ccw.site/subject_area/page_by_channel`,{...f,...n}),i={channel:e,scene:`CUSTOM_PAGE`};return await t.post(r,i).then(e=>e.data.body)}async function Me(e){let n={taskOid:e};return await t.post(`https://community-web.ccw.site/task/award`,n).then(e=>e.data.body)}async function Ne(){return await t.post(`https://community-web.ccw.site/task/mine`,{scene:`checkIn`}).then(e=>e.data.body)}async function Pe(e){let n={oid:e};return await t.post(`https://community-web.ccw.site/user-card/detail`,n).then(e=>e.data.body)}async function Fe(){return await t.post(`https://community-web.ccw.site/user_label/list`,{}).then(e=>e.data.body)}async function Ie(){return await t.post(`https://community-web.ccw.site/currency/account/personal`).then(e=>e.data.body)}async function Le(){return await t.post(`https://community-web.ccw.site/emoji/all`,{}).then(e=>e.data.body)}async function Re(){return await t.post(`https://community-web.ccw.site/emoji/category/list`,{}).then(e=>e.data.body)}async function ze(e=`ENABLED`,n={sortField:`createdAt`}){let r={...f,...n},i=d(`https://community-web.ccw.site/emoji/page`,r),a={page:r.page,perPage:r.perPage,status:e};return await t.post(i,a).then(e=>e.data.body)}async function Be(e){let n={actionId:e};return await t.post(`https://community-web.ccw.site/event`,n).then(e=>e.data.body)}async function Ve(){return await t.post(`https://community-web.ccw.site/health/check`).then(e=>e.data.body)}async function He(e){let n={advertisementId:e};return await t.post(`https://community-web.ccw.site/leaflets/item/list`,n).then(e=>e.data.body)}async function Ue(e){let n={accountOid:e};return await t.post(`https://community-web.ccw.site/locked_user/detail`,n).then(e=>e.data.body)}async function We(e){let n={studentNumber:e};return await t.post(`https://community-web.ccw.site/muted_user/detail`,n).then(e=>e.data.body)}async function Ge(e=`COMMENT_TO_ME`,n={sortField:`createdAt`}){let r={...f,...n},i=d(`https://community-web.ccw.site/notification/page`,r),a={notifyGroup:e,page:r.page};return await t.post(i,a).then(e=>e.data.body)}async function Ke(e=!0){let n={countAll:e};return await t.post(`https://community-web.ccw.site/notification/stats/v2`,n).then(e=>e.data.body)}async function qe(e,n={sortField:`createdAt`}){let r=d(`https://community-web.ccw.site/typical_project/page`,{...f,...n}),i={studentOid:e,templateType:`APPLICATION`};return await t.post(r,i).then(e=>e.data.body)}async function Je(e){let n={studentOid:e};return await t.post(`https://community-web.ccw.site/typical_project/student/unread_count`,n).then(e=>e.data.body)}async function Ye(e={sortField:`updatedAt`},n=[`BANNED`,`PUBLISHED`,`REJECTED`,`SUBMITTED`],r=!1){let i=d(`https://community-web.ccw.site/creation/own/page`,{...f,...e}),a={statuses:n,ignoreTypicalProject:r};return await t.post(i,a).then(e=>e.data.body)}async function Xe(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch`,n).then(e=>e.data.body)}async function Ze(e,n=`MEMBER`){let r={creationOid:e,authority:n};return await t.post(`https://community-web.ccw.site/creation/team_member/invite_token/fetch`,r).then(e=>e.data.body)}async function Qe(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation/team_member/produce_ticket`,n).then(e=>e.data.body)}async function $e(e,n){let r={creationOid:e,authorities:n};return await t.post(`https://community-web.ccw.site/creation/team_member/list`,r).then(e=>e.data.body)}async function et(e,n,r={sortField:`createdAt`}){let i=d(`https://community-web.ccw.site/creation/teamwork_log/page`,{...f,...r}),a={creationId:e,operateTargets:n},o=await t.post(i,a).then(e=>e.data.body),{data:s}=o,c=s.map(e=>{let{content:t}=e;return{...e,content:JSON.parse(t)}});return{...o,data:c}}async function tt(e,n,r=`LANDSCAPE`,i){if(!n.includes(`t=`)){let e=new URL(n);e.searchParams.set(`t`,Date.now().toString()),n=e.toString()}let a={oid:e,latestProjectLink:n,screenMode:r,latestCoverLink:i};return await t.post(`https://community-web.ccw.site/creation/update`,a).then(e=>e.data.body)}async function nt(e){return await t.post(`https://community-web.ccw.site/creation/submit`,e).then(e=>e.data.body)}async function rt(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/detail`,n).then(e=>e.data.body)}async function it(e,n,r=`86`){let i={phone:e,code:n,ruleCode:`ccw_sms`,scene:`bindPhone`,countryCode:r};return await t.post(`https://community-web.ccw.site/students/bind_phone`,i).then(e=>e.data.body)}async function at(e,n){let r={newPassword:e,code:n};return await t.post(`https://community-web.ccw.site/students/password/change`,r).then(e=>e.data.body)}async function ot(e=`change_password`,n=`86`,r=`ccw_sms`,i=`SMS`){let a={type:i,countryCode:n,scene:e,ruleCode:r};return await t.post(`https://community-web.ccw.site/captcha/v2/create_by_session`,a).then(e=>e.data.body)}async function st(e,n){let r={creationOid:e,memberSplitDetails:n};return await t.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/create`,r).then(e=>e.data.body)}async function ct(e){let n={creationOid:e},r=await t.post(`https://community-web.ccw.site/creation_attribute/detail`,n).then(e=>e.data.body);if(r===null)return null;let{ext:{KEYPAD_CONFIG:i}}=r,a=JSON.parse(i);return{...r,ext:{KEYPAD_CONFIG:a}}}async function lt(e){let n={creationOid:e,type:`DAY`};return await t.post(`https://community-web.ccw.site/creation_activity_stats/list`,n).then(e=>e.data.body)}async function ut(e,n={sortField:`submittedAt`}){let r=d(`https://community-web.ccw.site/creation_release/page`,{...f,...n}),i={creationOid:e};return await t.post(r,i).then(e=>e.data.body)}async function dt(e,n){let r={creationOid:e,creationReleaseOid:n};return await t.post(`https://community-web.ccw.site/creation_release/code_profiling/detail`,r).then(e=>e.data.body)}async function ft(e,n={sortField:`createdAt`}){let r={...f,...n},i=d(`https://community-web.ccw.site/historical_team_member/page`,r),a={creationOid:e,page:r.page,perPage:r.perPage};return await t.post(i,a).then(e=>e.data.body)}async function pt(e){let n={shortUrlCode:e};return await t.post(`https://community-web.ccw.site/short_url/decompress`,n).then(e=>e.data.body)}async function mt(){return await t.post(`https://community-web.ccw.site/hash_tag/recommend/list`).then(e=>e.data.body)}async function ht(){return await t.post(`https://community-web.ccw.site/ccw-main/status`,{}).then(e=>e.data.body)}async function gt(e,n){let r={projectId:e,variables:n};return await t.post(`https://community-web.ccw.site/study-community/cloud_variable/create`,r).then(e=>e.data.body)}async function _t(e){let n={id:e};return await t.post(`https://community-web.ccw.site/study-community/comment/top`,n).then(e=>e.data.body)}async function vt(e){let n={id:e};return await t.post(`https://community-web.ccw.site/study-community/comment/fold`,n).then(e=>e.data.body)}async function yt(e){let n={id:e};return await t.post(`https://community-web.ccw.site/study-community/comment/reset_weight`,n).then(e=>e.data.body)}async function bt(e){let n={id:e};return await t.post(`https://community-web.ccw.site/study-community/comment/delete`,n).then(e=>e.data.body)}async function xt(e,n,r){n.outline??=`foo`;let i={content:e,topic:n,sectionType:r};return await t.post(`https://community-web.ccw.site/comment/create`,i).then(e=>e.data.body)}async function St(e){let n={commentId:e};return await t.post(`https://community-web.ccw.site/comment/like_record/create`,n).then(e=>e.data.body)}async function Ct(e,n={sortField:`createdAt`}){let r=d(`https://community-web.ccw.site/student/following/page`,{...f,...n}),i={studentOid:e};return await t.post(r,i).then(e=>e.data.body)}async function wt(e,n,r=`CREATION`){let i={bucks:e,objectId:n,objectType:r};return await t.post(`https://community-web.ccw.site/study-trade/trade/donate`,i).then(e=>e.data.body)}async function Tt(e=5,n={}){let r={...f,...n},i=d(`https://community-web.ccw.site/user_package/user_product`,r),a={page:r.page,perPage:r.perPage,sortType:r.sortType,productCategory:e};return await t.post(i,a).then(e=>e.data.body)}async function Et(e,n){let r={status:n,id:e};return await t.post(`https://community-web.ccw.site/user_package/status`,r).then(e=>e.data.body)}async function Dt(e){let n={creationOid:e};return await t.post(`https://community-web.ccw.site/great_creation/update`,n).then(e=>e.data.body)}async function Ot(e,n,r,i,a=`CREATION`){let o={bizId:e,bizType:a,id:n,ruleId:r,params:{bucks:i}};return await t.post(`https://community-web.ccw.site/smart_contract/execute`,o).then(e=>e.data.body)}async function kt(e){let n={id:e};return await t.post(`https://community-web.ccw.site/smart_contract/account`,n).then(e=>e.data.body)}async function At(e){let n={id:e};return await t.post(`https://community-web.ccw.site/smart_contract/detail`,n).then(e=>e.data.body)}async function jt(e,n=`CREATION`){let r={bizId:e,bizType:n};return await t.post(`https://community-web.ccw.site/smart_contract/list`,r).then(e=>e.data.body)}async function Mt(e,n){let r={playingCreationOid:e,userOid:n};return await t.post(`https://community-web.ccw.site/extensions/following/status`,r).then(e=>e.data.body)}async function Nt(e,n){let r={playingCreationOid:e,creationOid:n};return await t.post(`https://community-web.ccw.site/extensions/creation-like/detail`,r).then(e=>e.data.body)}async function Pt(e){let n={followingOid:e};return await t.post(`https://community-web.ccw.site/study-community/following/follow`,n).then(e=>e.data.body)}async function Ft(e){let n={followingOid:e};return await t.post(`https://community-web.ccw.site/study-community/following/unfollow`,n).then(e=>e.data.body)}let K={acceptAward:Me,bindStudentPhone:it,changeStudentPassword:at,createCreation:y,donateTrade:wt,encodeShortCode:te,executeSmartContract:Ot,fetchMemberInviteToken:Ze,fetchObserverInviteToken:Xe,createCloudVariable:gt,createComment:xt,createShortUrl:L,createSmsCaptchaBySession:ot,createSplitRule:st,decompressShortUrl:pt,deleteComment:bt,foldComment:vt,followCreator:Pt,unfollowCreator:Ft,getApprovalTags:ne,getCampaignResources:ie,getCcwMainStatus:ht,getCheckInRecords:ae,getCodeProfilingDetail:dt,getCommentReplies:m,getCommentsByTopic:g,getConfigDetail:_,getCreationActivityStatsList:lt,getCreationAttributeDetail:ct,getCreationDetail:b,getCreationFavoriteDetail:le,getCreationIntroduction:S,getConnectCommunityCreationLikeStatus:Nt,getCreationRecommendPositionList:ue,getCreationReleasePage:ut,getCreationScreenshotPage:de,getCreationStudentDetail:F,getCreationTags:I,getCreatorScore:ye,getDonatedRecordRanking:G,getExcellentCreations:x,getConnectCommunityFollowingStatus:Mt,getEmojiCategoryList:Re,getEmojiPage:ze,getAllEmojis:Le,getHashTagDetail:V,getHashTagFavoriteDetail:W,getHistoricalTeamMemberPage:ft,getManagedHashTags:U,getHealthCheck:Ve,getLeafletsItemList:He,getLikeDetail:C,getLoadingTips:w,getLockedUserDetail:Ue,getMutedUserDetail:We,getMyHashTagCreations:B,getMyTasks:Ne,getNotifyDeleteReasons:pe,getNotificationPage:Ge,getNotificationStats:Ke,getOwnCreationPage:Ye,getPersonalCurrencyAccount:Ie,getPlanetsOfCreation:R,getPostDetail:me,getPotentialCreations:k,getRecommendCreations:j,getRecommendCreators:M,getRecommendHashTags:mt,getRemixedCreationPage:E,getReputationScoreLogPage:we,getSearchHotWords:he,getSmartContractAccount:kt,getSmartContractDetail:At,getSmartContractList:jt,getSplitRuleDetail:rt,getSpreadFeedUnreadCount:ke,getStudentBlockRecordDetail:ge,getStudentBlockRecordList:_e,getStudentBlockStatus:ve,getStudentFollowingPage:Ct,getStudentLastActiveAt:be,getStudentProfile:Ce,getStudentSelfDetail:Te,getStudentSessions:Se,getStudentsList:xe,getStudentStats:Ee,getStudyCommunityMemberDetail:Oe,getSubjectAreaPage:Ae,getSubjectAreaPageByChannel:je,getTeamMemberList:$e,getTeamworkLogPage:et,getTime:re,getTypicalProjectPage:qe,getTypicalProjectUnreadCount:Je,getUserAssetStorageSize:se,getUserCardDetail:Pe,getUserLabelList:Fe,getUserProductsPage:Tt,queryMallProducts:v,getCreationsByStudent:O,insertCheckInRecord:oe,likeComment:St,produceTeamMemberTicket:Qe,resetCommentWeight:yt,searchCloudAssets:p,searchCreationsByTag:P,sendEvent:Be,setUserProductStatus:Et,submitCreation:nt,topComment:_t,updateCreation:tt,updateGreatCreation:Dt,updateStudent:De,viewCreationStats:fe};async function It(){return await t.get(`https://gandi-main.ccw.site/timestamp/current`).then(e=>e.data.body)}async function Lt(e=`PUBLISHED`,n={sortField:`publishedAt`}){let r=d(`https://gandi-main.ccw.site/bulletins`,{...f,...n,status:e});return await t.get(r).then(e=>e.data.body)}async function Rt(e){return await t.get(`https://gandi-main.ccw.site/bulletins/${e}`).then(e=>e.data.body)}let q=`https://gandi-main.ccw.site/creation/leaderboards`;async function J(e,n,r,i=``){let a={score:n,oid:r,ext:i},o=`${q}/${e}/records`;return await t.post(o,a).then(e=>e.data.body)}async function zt(e){let n=`${q}/${e}/records`;return await t.get(n).then(e=>e.data.body)}let Y={getCurrentTimestamp:It,getBulletinsPage:Lt,getBulletinDetail:Rt,submitLeaderboardRecord:J,getLeaderboardRecords:zt};async function Bt(e,n={sortField:`updatedAt`}){let r={...f,...n},i=d(`https://bfs-web.ccw.site/users/${e}/extensions`,r);return await t.get(i).then(e=>e.data.body)}async function Vt(e,n){let r={eid:e,bucks:n};return await t.post(`https://bfs-web.ccw.site/extensions/${e}/donate`,r).then(e=>e.data.body)}let X={donateExtension:Vt,getUserExtensions:Bt};async function Z(e,n,r){let i={primaryKey:e,secondaryKey:n,value:r};return await t.post(`https://community-web-cloud-database.ccw.site/cloud_variable/save`,i).then(e=>e.data.body)}async function Ht(e,t,n){return await Z(e,t,{v:n})}async function Ut(e,t,n){return await Z(`${e}-u`,`${t}`,n)}async function Wt(e,n,r,i){let a={accessKey:e,primaryKey:n,secondaryKey:r,filterKeys:i};return await t.post(`https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2`,a).then(e=>e.data.body)}let Q={saveProjectCloudVariable:Ht,saveUserCloudVariable:Ut,getCloudVariableDetailV2:Wt};async function Gt(e=`BLOCK_PUZZLE`){let n={type:e};return await t.post(`https://op-parent-api.xiguacity.cn/captcha/create`,n).then(e=>e.data.body)}async function Kt(e,n,r=5){let i={data:{x:n,y:r},token:e};return await t.post(`https://op-parent-api.xiguacity.cn/captcha/check`,i).then(e=>e.data.body)}let $={createCaptcha:Gt,checkCaptcha:Kt};var qt={sso:u,communityWeb:K,gandiMain:Y,bfsWeb:X,communityWebCloudDatabase:Q,opParentApi:$};return e.bfsWeb=X,e.communityWeb=K,e.communityWebCloudDatabase=Q,e.default=qt,e.gandiMain=Y,e.opParentApi=$,e.setRequestUtils=r,e.sso=u,e})({});
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{n as e}from"./request-CzgJtv9u.js";import{t}from"./sso-DUoym0qZ.js";import{t as n}from"./community-web-Dzl0mbbh.js";import{t as r}from"./gandi-main-Bdq3vj-l.js";import{t as i}from"./bfs-web-xFSpR-s6.js";import{t as a}from"./community-web-cloud-database-D9IZZIjN.js";import{t as o}from"./op-parent-api-BC6-0rS8.js";var s={sso:t,communityWeb:n,gandiMain:r,bfsWeb:i,communityWebCloudDatabase:a,opParentApi:o};export{i as bfsWeb,n as communityWeb,a as communityWebCloudDatabase,s as default,r as gandiMain,o as opParentApi,e as setRequestUtils,t as sso};
1
+ import{n as e}from"./request-CzgJtv9u.js";import{t}from"./sso-CKzH4aGn.js";import{t as n}from"./community-web-3zMKf8Ic.js";import{t as r}from"./gandi-main-Bdq3vj-l.js";import{t as i}from"./bfs-web-xFSpR-s6.js";import{t as a}from"./community-web-cloud-database-D9IZZIjN.js";import{t as o}from"./op-parent-api-BC6-0rS8.js";var s={sso:t,communityWeb:n,gandiMain:r,bfsWeb:i,communityWebCloudDatabase:a,opParentApi:o};export{i as bfsWeb,n as communityWeb,a as communityWebCloudDatabase,s as default,r as gandiMain,o as opParentApi,e as setRequestUtils,t as sso};
@@ -1 +1 @@
1
- import{t as e}from"./request-CzgJtv9u.js";async function t(t,n,r={device:`Node`,browser:`Node.js`}){let i={loginKey:t,password:n,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})},{extra:a,...o}=await e.post(`https://sso.ccw.site/web/auth/login-by-password`,i).then(e=>e.data.body),s=JSON.parse(a);return{...o,extra:s}}async function n(){return await e.post(`https://sso.ccw.site/web/auth/logout`,{}).then(e=>e.data.body)}async function r(t){return await e.post(`https://sso.ccw.site/web/auth/logout_by_session`,{id:t}).then(e=>e.data.body)}async function i(t,n=`loginbyPhone`,r=`86`,i=`ccw_sms`,a){let o={recipient:t,countryCode:r,scene:n,ruleCode:i,captcha:a};return await e.post(`https://sso.ccw.site/web/auth/assistant/captcha/v2/create`,o).then(e=>e.data.body)}async function a(t,n,r={device:`Node`,browser:`Node.js`},i=`86`,a=`ccw_sms`,o=`loginbyPhone`){let{extra:s,...c}=await e.post(`https://sso.ccw.site/web/auth/v3/login/by_phone`,{phone:t,code:n,countryCode:i,ruleCode:a,scene:o,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})}).then(e=>e.data.body),l=JSON.parse(s);return{...c,extra:l}}const o={loginByPassword:t,logout:n,logoutBySession:r,createSmsCaptcha:i,loginByPhone:a};export{o as t};
1
+ import{t as e}from"./request-CzgJtv9u.js";async function t(t,n,r={device:`Node`,browser:`Node.js`}){let i={loginKey:t,password:n,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})},{extra:a,...o}=await e.post(`https://sso.ccw.site/web/auth/login-by-password`,i).then(e=>e.data.body),s=JSON.parse(a);return{...o,extra:s}}async function n(){return await e.post(`https://sso.ccw.site/web/auth/logout`,{}).then(e=>e.data.body)}async function r(t){return await e.post(`https://sso.ccw.site/web/auth/logout_by_session`,{id:t}).then(e=>e.data.body)}async function i(t,n=`loginbyPhone`,r=`86`,i=`ccw_sms`,a){let o={recipient:t,countryCode:r,scene:n,ruleCode:i,captcha:a};return await e.post(`https://sso.ccw.site/web/auth/assistant/captcha/v2/create`,o).then(e=>e.data.body)}async function a(t,n,r={device:`Node`,browser:`Node.js`},i=`86`,a=`ccw_sms`,o=`loginbyPhone`){let{extra:s,...c}=await e.post(`https://sso.ccw.site/web/auth/v3/login/by_phone`,{phone:t,code:n,countryCode:i,ruleCode:a,scene:o,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})}).then(e=>e.data.body),l=JSON.parse(s);return{...c,extra:l}}async function o(t){let n=new URL(`https://sso.ccw.site/oauth/authorize`);return n.searchParams.set(`state`,t),await e.get(n.toString()).then(e=>e.data.body)}async function s(t){let{extra:n,...r}=await e.post(`https://sso.ccw.site/oauth/token`,{code:t}).then(e=>e.data.body);return{extra:JSON.parse(n),...r}}const c={loginByPassword:t,logout:n,logoutBySession:r,createSmsCaptcha:i,loginByPhone:a,oauthAuthorize:o,getOauthToken:s};export{c as t};
@@ -1 +1 @@
1
- const e=require("./request-CIq4GGVU.cjs");async function t(t,n,r={device:`Node`,browser:`Node.js`}){let i={loginKey:t,password:n,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})},{extra:a,...o}=await e.t.post(`https://sso.ccw.site/web/auth/login-by-password`,i).then(e=>e.data.body),s=JSON.parse(a);return{...o,extra:s}}async function n(){return await e.t.post(`https://sso.ccw.site/web/auth/logout`,{}).then(e=>e.data.body)}async function r(t){return await e.t.post(`https://sso.ccw.site/web/auth/logout_by_session`,{id:t}).then(e=>e.data.body)}async function i(t,n=`loginbyPhone`,r=`86`,i=`ccw_sms`,a){let o={recipient:t,countryCode:r,scene:n,ruleCode:i,captcha:a};return await e.t.post(`https://sso.ccw.site/web/auth/assistant/captcha/v2/create`,o).then(e=>e.data.body)}async function a(t,n,r={device:`Node`,browser:`Node.js`},i=`86`,a=`ccw_sms`,o=`loginbyPhone`){let{extra:s,...c}=await e.t.post(`https://sso.ccw.site/web/auth/v3/login/by_phone`,{phone:t,code:n,countryCode:i,ruleCode:a,scene:o,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})}).then(e=>e.data.body),l=JSON.parse(s);return{...c,extra:l}}const o={loginByPassword:t,logout:n,logoutBySession:r,createSmsCaptcha:i,loginByPhone:a};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
1
+ const e=require("./request-CIq4GGVU.cjs");async function t(t,n,r={device:`Node`,browser:`Node.js`}){let i={loginKey:t,password:n,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})},{extra:a,...o}=await e.t.post(`https://sso.ccw.site/web/auth/login-by-password`,i).then(e=>e.data.body),s=JSON.parse(a);return{...o,extra:s}}async function n(){return await e.t.post(`https://sso.ccw.site/web/auth/logout`,{}).then(e=>e.data.body)}async function r(t){return await e.t.post(`https://sso.ccw.site/web/auth/logout_by_session`,{id:t}).then(e=>e.data.body)}async function i(t,n=`loginbyPhone`,r=`86`,i=`ccw_sms`,a){let o={recipient:t,countryCode:r,scene:n,ruleCode:i,captcha:a};return await e.t.post(`https://sso.ccw.site/web/auth/assistant/captcha/v2/create`,o).then(e=>e.data.body)}async function a(t,n,r={device:`Node`,browser:`Node.js`},i=`86`,a=`ccw_sms`,o=`loginbyPhone`){let{extra:s,...c}=await e.t.post(`https://sso.ccw.site/web/auth/v3/login/by_phone`,{phone:t,code:n,countryCode:i,ruleCode:a,scene:o,clientCode:`STUDY_COMMUNITY`,extra:JSON.stringify({...r,scene:null})}).then(e=>e.data.body),l=JSON.parse(s);return{...c,extra:l}}async function o(t){let n=new URL(`https://sso.ccw.site/oauth/authorize`);return n.searchParams.set(`state`,t),await e.t.get(n.toString()).then(e=>e.data.body)}async function s(t){let{extra:n,...r}=await e.t.post(`https://sso.ccw.site/oauth/token`,{code:t}).then(e=>e.data.body);return{extra:JSON.parse(n),...r}}const c={loginByPassword:t,logout:n,logoutBySession:r,createSmsCaptcha:i,loginByPhone:a,oauthAuthorize:o,getOauthToken:s};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
package/dist/sso.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./sso-C0ZWQvKo.cjs");exports.sso=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./sso-CLU8Ir_K.cjs");exports.sso=e.t;
package/dist/sso.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as sso } from "./index-DCDRwVC2.cjs";
1
+ import { t as sso } from "./index-et5F1JeT.cjs";
2
2
  export { sso };
package/dist/sso.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as sso } from "./index-DXMyzE0v.js";
1
+ import { t as sso } from "./index-B4S_NZQT.js";
2
2
  export { sso };
package/dist/sso.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./sso-DUoym0qZ.js";export{e as sso};
1
+ import{t as e}from"./sso-CKzH4aGn.js";export{e as sso};
package/package.json CHANGED
@@ -1,78 +1,78 @@
1
- {
2
- "name": "@ccw-api/api",
3
- "version": "1.0.2",
4
- "description": "ccw api collections",
5
- "license": "MIT",
6
- "author": "Meng Fuzi",
7
- "homepage": "https://schale.qzz.io/ccw-api-api/",
8
- "type": "module",
9
- "types": "./dist/index.d.ts",
10
- "module": "./dist/index.js",
11
- "main": "./dist/index.cjs",
12
- "exports": {
13
- ".": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/index.js",
16
- "require": "./dist/index.cjs"
17
- },
18
- "./community-web": {
19
- "types": "./dist/communityWeb.d.ts",
20
- "import": "./dist/communityWeb.js",
21
- "require": "./dist/communityWeb.cjs"
22
- },
23
- "./community-web-cloud-database": {
24
- "types": "./dist/communityWebDB.d.ts",
25
- "import": "./dist/communityWebDB.js",
26
- "require": "./dist/communityWebDB.cjs"
27
- },
28
- "./gandi-main": {
29
- "types": "./dist/gandiMain.d.ts",
30
- "import": "./dist/gandiMain.js",
31
- "require": "./dist/gandiMain.cjs"
32
- },
33
- "./op-parent-api": {
34
- "types": "./dist/opParent.d.ts",
35
- "import": "./dist/opParent.js",
36
- "require": "./dist/opParent.cjs"
37
- },
38
- "./sso": {
39
- "types": "./dist/sso.d.ts",
40
- "import": "./dist/sso.js",
41
- "require": "./dist/sso.cjs"
42
- },
43
- "./bfs-web": {
44
- "types": "./dist/bfs.d.ts",
45
- "import": "./dist/bfs.js",
46
- "require": "./dist/bfs.cjs"
47
- }
48
- },
49
- "files": [
50
- "dist",
51
- "README.md",
52
- "LICENSE"
53
- ],
54
- "unpkg": "./dist/index.iife.js",
55
- "scripts": {
56
- "prepublishOnly": "npm run build && npm test",
57
- "test": "tsx --import ./src/before.test.ts --test",
58
- "doc": "typedoc",
59
- "doc:dev": "typedoc --watch",
60
- "build": "tsdown"
61
- },
62
- "dependencies": {
63
- "blueimp-md5": "^2.19.0"
64
- },
65
- "devDependencies": {
66
- "@ccw-api/request": "^1.2.1",
67
- "@types/blueimp-md5": "^2.18.2",
68
- "@types/node": "^26.0.1",
69
- "dotenv": "^17.4.2",
70
- "prettier-plugin-sort-members": "^0.2.4",
71
- "tsdown": "^0.22.9",
72
- "tsx": "^4.19.2",
73
- "typedoc": "^0.28.19"
74
- },
75
- "publishConfig": {
76
- "registry": "https://registry.npmjs.org/"
77
- }
78
- }
1
+ {
2
+ "name": "@ccw-api/api",
3
+ "version": "1.0.4",
4
+ "description": "ccw api collections",
5
+ "license": "MIT",
6
+ "author": "Meng Fuzi",
7
+ "homepage": "https://schale.qzz.io/ccw-api-api/",
8
+ "type": "module",
9
+ "types": "./dist/index.d.ts",
10
+ "module": "./dist/index.js",
11
+ "main": "./dist/index.cjs",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.cjs"
17
+ },
18
+ "./community-web": {
19
+ "types": "./dist/communityWeb.d.ts",
20
+ "import": "./dist/communityWeb.js",
21
+ "require": "./dist/communityWeb.cjs"
22
+ },
23
+ "./community-web-cloud-database": {
24
+ "types": "./dist/communityWebDB.d.ts",
25
+ "import": "./dist/communityWebDB.js",
26
+ "require": "./dist/communityWebDB.cjs"
27
+ },
28
+ "./gandi-main": {
29
+ "types": "./dist/gandiMain.d.ts",
30
+ "import": "./dist/gandiMain.js",
31
+ "require": "./dist/gandiMain.cjs"
32
+ },
33
+ "./op-parent-api": {
34
+ "types": "./dist/opParent.d.ts",
35
+ "import": "./dist/opParent.js",
36
+ "require": "./dist/opParent.cjs"
37
+ },
38
+ "./sso": {
39
+ "types": "./dist/sso.d.ts",
40
+ "import": "./dist/sso.js",
41
+ "require": "./dist/sso.cjs"
42
+ },
43
+ "./bfs-web": {
44
+ "types": "./dist/bfs.d.ts",
45
+ "import": "./dist/bfs.js",
46
+ "require": "./dist/bfs.cjs"
47
+ }
48
+ },
49
+ "files": [
50
+ "dist",
51
+ "README.md",
52
+ "LICENSE"
53
+ ],
54
+ "unpkg": "./dist/index.iife.js",
55
+ "scripts": {
56
+ "prepublishOnly": "npm run build",
57
+ "test": "tsx --import ./src/before.test.ts --test",
58
+ "doc": "typedoc",
59
+ "doc:dev": "typedoc --watch",
60
+ "build": "tsdown"
61
+ },
62
+ "dependencies": {
63
+ "blueimp-md5": "^2.19.0"
64
+ },
65
+ "devDependencies": {
66
+ "@ccw-api/request": "^1.2.1",
67
+ "@types/blueimp-md5": "^2.18.2",
68
+ "@types/node": "^26.0.1",
69
+ "dotenv": "^17.4.2",
70
+ "prettier-plugin-sort-members": "^0.2.4",
71
+ "tsdown": "^0.22.9",
72
+ "tsx": "^4.19.2",
73
+ "typedoc": "^0.28.19"
74
+ },
75
+ "publishConfig": {
76
+ "registry": "https://registry.npmjs.org/"
77
+ }
78
+ }
@@ -1 +0,0 @@
1
- const e=require("./request-CIq4GGVU.cjs"),t=require("./queryPages-CfywLB4S.cjs");async function n(t,n,r,i){let a={origin:{inviterAvatar:n,inviterName:r,inviterId:t,inviterType:`STUDENT`,entrance:`create_detail`,creationOid:i}};return await e.t.post(`https://community-web.ccw.site/api/v1/short_code/encode`,a).then(e=>e.data.body)}async function r(t){let n={objectId:t,objectType:`STUDENT`};return await e.t.post(`https://community-web.ccw.site/approval/list`,n).then(e=>e.data.body)}async function i(){return e.t.post(`https://community-web.ccw.site/base/dateTime`,void 0).then(e=>e.data.body)}async function a(t){return await e.t.post(`https://community-web.ccw.site/campaign_resource/detail`,{keyword:t}).then(e=>e.data.body)}async function o(){return await e.t.post(`https://community-web.ccw.site/check_in_record/detail`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function s(){return await e.t.post(`https://community-web.ccw.site/check_in_record/insert`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function c(){return await e.t.post(`https://community-web.ccw.site/cloud_asset/user/privacy`,{}).then(e=>e.data.body)}const l={...t.t,sortField:`createdAt`};async function u(n,r=`/`,i={}){let a={...l,...i},o=t.n(`https://community-web.ccw.site/cloud_asset/search`,a),s={creatorOid:n,path:r};return await e.t.post(o,s).then(e=>e.data.body)}async function d(n,r,i=[`PUBLISHED`,`FOLDED`],a={sortField:`createdAt`}){let o={...t.t,...a},s=t.n(`https://community-web.ccw.site/comment/page`,o),c={topicId:n,parentId:r,statuses:i};return await e.t.post(s,c).then(e=>e.data.body)}const f={...t.t,sortField:`createdAt`};async function p(n,r,i,a={sortField:`createdAt`}){let o={...f,...a},s=t.n(`https://community-web.ccw.site/comment/page_by_topic`,o),c={subjectOid:n,subjectType:r,sectionType:i};return await e.t.post(s,c).then(e=>e.data.body)}async function m(t){let n={key:t};return await e.t.post(`https://community-web.ccw.site/config/detail`,n).then(e=>e.data.body)}async function h(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/ccw-mall/ccw/product/fe/query`,i),o={page:i.page,perPage:i.perPage,sortType:i.sortType,productCategory:n,source:`CCW_OFFICIAL`};return await e.t.post(a,o).then(e=>e.data.body)}async function g(t,n,r,i=`ORIGINAL`,a=`LANDSCAPE`,o=`PRIVATE`){let s={type:i,title:t,latestProjectLink:n,screenMode:a,artifactType:`STANDARD`,sourceOpenLevel:o,latestCoverLink:r};return await e.t.post(`https://community-web.ccw.site/creation/create`,s).then(e=>e.data.body)}async function _(t,n,r=``){let i={oid:t,accessKey:n,mode:r};return await e.t.post(`https://community-web.ccw.site/creation/detail`,i).then(e=>e.data.body)}async function v(t){let n={num:t};return await e.t.post(`https://community-web.ccw.site/creation/excellent/list`,n).then(e=>e.data.body)}async function y(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/creation/introduction/detail`,n).then(e=>e.data.body)}async function b(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/like/detail`,n).then(e=>e.data.body)}async function x(){return await e.t.post(`https://community-web.ccw.site/creation/loading/tips`,{}).then(e=>e.data.body)}const S={...t.t,sortField:`createdAt`};async function C(n,r={}){let i={...S,...r},a=t.n(`https://community-web.ccw.site/creation/page`,i),o={remixCreationOids:n};return await e.t.post(a,o).then(e=>e.data.body)}const w={...t.t,sortField:`createdAt`};async function T(n,r={}){let i={...w,...r},a=t.n(`https://community-web.ccw.site/creation/page_by_student`,i),o={studentOids:n};return await e.t.post(a,o).then(e=>e.data.body)}async function E(t){let n={num:t};return await e.t.post(`https://community-web.ccw.site/creation/potential/list`,n).then(e=>e.data.body)}const D={...t.t,sortField:`createdAt`};async function O(n,r={}){let i={...D,...r},a=t.n(`https://community-web.ccw.site/creation/recommend`,i),o={num:n,subjectType:`POTENTIAL`};return await e.t.post(a,o).then(e=>e.data.body)}async function k(t=4,n=8){let r={excellentCount:t,potentialCount:n};return await e.t.post(`https://community-web.ccw.site/recommend_creator/list`,r).then(e=>e.data.body)}const A={...t.t,sortField:`createdAt`};async function j(n,r={}){let i={...A,...r},a=t.n(`https://community-web.ccw.site/creation/search/page`,i);return await e.t.post(a,n).then(e=>e.data.body)}async function M(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/creation/student/detail`,n).then(e=>e.data.body)}async function N(){return await e.t.post(`https://community-web.ccw.site/creation/tag/list`,{visibility:`PUBLIC`}).then(e=>e.data.body)}async function P(t){let n={originUrl:t};return await e.t.post(`https://community-web.ccw.site/short_url/create`,n).then(e=>e.data.body)}async function F(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/hash_tag_creation/list_relation`,n).then(e=>e.data.body)}const I={...t.t,sortField:`lastPassedAt`};async function L(n,r,i={}){let a={...I,...i},o=t.n(`https://community-web.ccw.site/hash_tag_creation/mine`,a),s={...a,excludeHashTag:n,statuses:r};return await e.t.post(o,s).then(e=>e.data.body)}async function R(t){let n={identifier:t};return await e.t.post(`https://community-web.ccw.site/hash_tag/detail`,n).then(e=>e.data.body)}const z={...t.t,sortField:`createdAt`};async function B(n,r=[],i={}){let a={...z,...i},o=t.n(`https://community-web.ccw.site/hash_tag/managed/list`,a),s={...a,studentOid:n,excludeHashTagIds:r};return await e.t.post(o,s).then(e=>e.data.body)}async function V(t){let n={hashTagId:t};return await e.t.post(`https://community-web.ccw.site/hash_tag_favorite/detail`,n).then(e=>e.data.body)}async function H(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/creation_donated_record/ranking_list`,i),o={creationOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function U(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation_favorite/detail`,n).then(e=>e.data.body)}async function W(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation_recommend_position/list`,n).then(e=>e.data.body)}async function G(n,r={}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/creation_screenshot/page`,i),o={subjectOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function K(t,n=``){let r={oid:t,inviteCode:n};return await e.t.post(`https://community-web.ccw.site/creation_stats/view`,r).then(e=>e.data.body)}async function q(){return await e.t.post(`https://community-web.ccw.site/notify_message/show`,{type:`COMMENT_AUDIT`}).then(e=>e.data.body)}async function J(t){let n={slug:t};return await e.t.post(`https://community-web.ccw.site/post/detail`,n).then(e=>e.data.body)}async function Y(t){let n={length:t};return await e.t.post(`https://community-web.ccw.site/search/hot_words`,n).then(e=>e.data.body)}async function X(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/student/block_record/detail`,n).then(e=>e.data.body)}async function Z(n={sortField:`createdAt`}){let r={...t.t,...n},i=t.n(`https://community-web.ccw.site/student/block_record/list`,r);return await e.t.post(i,{}).then(e=>e.data.body)}async function Q(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/student/block_record/status`,n).then(e=>e.data.body)}async function $(){return await e.t.post(`https://community-web.ccw.site/students/creator_score`,void 0).then(e=>e.data.body)}async function ee(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/students/last_active_at`,n).then(e=>e.data.body)}async function te(t){let n={studentOids:t};return await e.t.post(`https://community-web.ccw.site/students/list`,n).then(e=>e.data.body)}async function ne(n={sortField:`createdAt`}){let r={...t.t,...n},i=t.n(`https://community-web.ccw.site/students/list_sessions`,r);return await e.t.post(i,{}).then(e=>e.data.body)}async function re(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/students/profile`,n).then(e=>e.data.body)}async function ie(n={sortField:`createdAt`}){let r={...t.t,...n},i=t.n(`https://community-web.ccw.site/students/reputation_score_log/page`,r);return await e.t.post(i,{}).then(e=>e.data.body)}async function ae(t,n,r){let i={needGrade:t,needExtraInfo:n,fields:r};return await e.t.post(`https://community-web.ccw.site/students/self/detail`,i).then(e=>e.data.body)}async function oe(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/students/stats`,n).then(e=>e.data.body)}async function se(t,n,r,i,a,o,s,c,l){let u={gender:t,hideGender:n,fullName:r,birthday:i,programmingCapability:a,school:o,qq:s,hobbies:c,learnedProgrammingLanguages:l};return await e.t.post(`https://community-web.ccw.site/students/update`,u).then(e=>e.data.body)}async function ce(){return await e.t.post(`https://community-web.ccw.site/study-community/member/detail`,{}).then(e=>e.data.body)}async function le(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/study-community/spread_feed/unread/count`,n).then(e=>e.data.body)}async function ue(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/subject_area/page`,i),o={scene:n};return await e.t.post(a,o).then(e=>e.data.body)}async function de(n,r={sortField:`campaignResourceId`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/subject_area/page_by_channel`,i),o={channel:n,scene:`CUSTOM_PAGE`};return await e.t.post(a,o).then(e=>e.data.body)}async function fe(t){let n={taskOid:t};return await e.t.post(`https://community-web.ccw.site/task/award`,n).then(e=>e.data.body)}async function pe(){return await e.t.post(`https://community-web.ccw.site/task/mine`,{scene:`checkIn`}).then(e=>e.data.body)}async function me(t){let n={oid:t};return await e.t.post(`https://community-web.ccw.site/user-card/detail`,n).then(e=>e.data.body)}async function he(){return await e.t.post(`https://community-web.ccw.site/user_label/list`,{}).then(e=>e.data.body)}async function ge(){return await e.t.post(`https://community-web.ccw.site/currency/account/personal`).then(e=>e.data.body)}async function _e(){return await e.t.post(`https://community-web.ccw.site/emoji/all`,{}).then(e=>e.data.body)}async function ve(){return await e.t.post(`https://community-web.ccw.site/emoji/category/list`,{}).then(e=>e.data.body)}async function ye(n=`ENABLED`,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/emoji/page`,i),o={page:i.page,perPage:i.perPage,status:n};return await e.t.post(a,o).then(e=>e.data.body)}async function be(t){let n={actionId:t};return await e.t.post(`https://community-web.ccw.site/event`,n).then(e=>e.data.body)}async function xe(){return await e.t.post(`https://community-web.ccw.site/health/check`).then(e=>e.data.body)}async function Se(t){let n={advertisementId:t};return await e.t.post(`https://community-web.ccw.site/leaflets/item/list`,n).then(e=>e.data.body)}async function Ce(t){let n={accountOid:t};return await e.t.post(`https://community-web.ccw.site/locked_user/detail`,n).then(e=>e.data.body)}async function we(t){let n={studentNumber:t};return await e.t.post(`https://community-web.ccw.site/muted_user/detail`,n).then(e=>e.data.body)}async function Te(n=`COMMENT_TO_ME`,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/notification/page`,i),o={notifyGroup:n,page:i.page};return await e.t.post(a,o).then(e=>e.data.body)}async function Ee(t=!0){let n={countAll:t};return await e.t.post(`https://community-web.ccw.site/notification/stats/v2`,n).then(e=>e.data.body)}async function De(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/typical_project/page`,i),o={studentOid:n,templateType:`APPLICATION`};return await e.t.post(a,o).then(e=>e.data.body)}async function Oe(t){let n={studentOid:t};return await e.t.post(`https://community-web.ccw.site/typical_project/student/unread_count`,n).then(e=>e.data.body)}async function ke(n={sortField:`updatedAt`},r=[`BANNED`,`PUBLISHED`,`REJECTED`,`SUBMITTED`],i=!1){let a={...t.t,...n},o=t.n(`https://community-web.ccw.site/creation/own/page`,a),s={statuses:r,ignoreTypicalProject:i};return await e.t.post(o,s).then(e=>e.data.body)}async function Ae(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch`,n).then(e=>e.data.body)}async function je(t,n=`MEMBER`){let r={creationOid:t,authority:n};return await e.t.post(`https://community-web.ccw.site/creation/team_member/invite_token/fetch`,r).then(e=>e.data.body)}async function Me(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/team_member/produce_ticket`,n).then(e=>e.data.body)}async function Ne(t,n){let r={creationOid:t,authorities:n};return await e.t.post(`https://community-web.ccw.site/creation/team_member/list`,r).then(e=>e.data.body)}async function Pe(n,r,i={sortField:`createdAt`}){let a={...t.t,...i},o=t.n(`https://community-web.ccw.site/creation/teamwork_log/page`,a),s={creationId:n,operateTargets:r},c=await e.t.post(o,s).then(e=>e.data.body),{data:l}=c,u=l.map(e=>{let{content:t}=e;return{...e,content:JSON.parse(t)}});return{...c,data:u}}async function Fe(t,n,r=`LANDSCAPE`,i){if(!n.includes(`t=`)){let e=new URL(n);e.searchParams.set(`t`,Date.now().toString()),n=e.toString()}let a={oid:t,latestProjectLink:n,screenMode:r,latestCoverLink:i};return await e.t.post(`https://community-web.ccw.site/creation/update`,a).then(e=>e.data.body)}async function Ie(t){return await e.t.post(`https://community-web.ccw.site/creation/submit`,t).then(e=>e.data.body)}async function Le(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/detail`,n).then(e=>e.data.body)}async function Re(t,n,r=`86`){let i={phone:t,code:n,ruleCode:`ccw_sms`,scene:`bindPhone`,countryCode:r};return await e.t.post(`https://community-web.ccw.site/students/bind_phone`,i).then(e=>e.data.body)}async function ze(t,n){let r={newPassword:t,code:n};return await e.t.post(`https://community-web.ccw.site/students/password/change`,r).then(e=>e.data.body)}async function Be(t=`change_password`,n=`86`,r=`ccw_sms`,i=`SMS`){let a={type:i,countryCode:n,scene:t,ruleCode:r};return await e.t.post(`https://community-web.ccw.site/captcha/v2/create_by_session`,a).then(e=>e.data.body)}async function Ve(t,n){let r={creationOid:t,memberSplitDetails:n};return await e.t.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/create`,r).then(e=>e.data.body)}async function He(t){let n={creationOid:t},r=await e.t.post(`https://community-web.ccw.site/creation_attribute/detail`,n).then(e=>e.data.body);if(r===null)return null;let{ext:{KEYPAD_CONFIG:i}}=r,a=JSON.parse(i);return{...r,ext:{KEYPAD_CONFIG:a}}}async function Ue(t){let n={creationOid:t,type:`DAY`};return await e.t.post(`https://community-web.ccw.site/creation_activity_stats/list`,n).then(e=>e.data.body)}async function We(n,r={sortField:`submittedAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/creation_release/page`,i),o={creationOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function Ge(t,n){let r={creationOid:t,creationReleaseOid:n};return await e.t.post(`https://community-web.ccw.site/creation_release/code_profiling/detail`,r).then(e=>e.data.body)}async function Ke(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/historical_team_member/page`,i),o={creationOid:n,page:i.page,perPage:i.perPage};return await e.t.post(a,o).then(e=>e.data.body)}async function qe(t){let n={shortUrlCode:t};return await e.t.post(`https://community-web.ccw.site/short_url/decompress`,n).then(e=>e.data.body)}async function Je(){return await e.t.post(`https://community-web.ccw.site/hash_tag/recommend/list`).then(e=>e.data.body)}async function Ye(){return await e.t.post(`https://community-web.ccw.site/ccw-main/status`,{}).then(e=>e.data.body)}async function Xe(t,n){let r={projectId:t,variables:n};return await e.t.post(`https://community-web.ccw.site/study-community/cloud_variable/create`,r).then(e=>e.data.body)}async function Ze(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/top`,n).then(e=>e.data.body)}async function Qe(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/fold`,n).then(e=>e.data.body)}async function $e(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/reset_weight`,n).then(e=>e.data.body)}async function et(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/study-community/comment/delete`,n).then(e=>e.data.body)}async function tt(t,n,r){n.outline??=`foo`;let i={content:t,topic:n,sectionType:r};return await e.t.post(`https://community-web.ccw.site/comment/create`,i).then(e=>e.data.body)}async function nt(t){let n={commentId:t};return await e.t.post(`https://community-web.ccw.site/comment/like_record/create`,n).then(e=>e.data.body)}async function rt(n,r={sortField:`createdAt`}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/student/following/page`,i),o={studentOid:n};return await e.t.post(a,o).then(e=>e.data.body)}async function it(t,n,r=`CREATION`){let i={bucks:t,objectId:n,objectType:r};return await e.t.post(`https://community-web.ccw.site/study-trade/trade/donate`,i).then(e=>e.data.body)}async function at(n=5,r={}){let i={...t.t,...r},a=t.n(`https://community-web.ccw.site/user_package/user_product`,i),o={page:i.page,perPage:i.perPage,sortType:i.sortType,productCategory:n};return await e.t.post(a,o).then(e=>e.data.body)}async function ot(t,n){let r={status:n,id:t};return await e.t.post(`https://community-web.ccw.site/user_package/status`,r).then(e=>e.data.body)}async function st(t){let n={creationOid:t};return await e.t.post(`https://community-web.ccw.site/great_creation/update`,n).then(e=>e.data.body)}async function ct(t,n,r,i,a=`CREATION`){let o={bizId:t,bizType:a,id:n,ruleId:r,params:{bucks:i}};return await e.t.post(`https://community-web.ccw.site/smart_contract/execute`,o).then(e=>e.data.body)}async function lt(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/smart_contract/account`,n).then(e=>e.data.body)}async function ut(t){let n={id:t};return await e.t.post(`https://community-web.ccw.site/smart_contract/detail`,n).then(e=>e.data.body)}async function dt(t,n=`CREATION`){let r={bizId:t,bizType:n};return await e.t.post(`https://community-web.ccw.site/smart_contract/list`,r).then(e=>e.data.body)}async function ft(t,n){let r={playingCreationOid:t,userOid:n};return await e.t.post(`https://community-web.ccw.site/extensions/following/status`,r).then(e=>e.data.body)}async function pt(t,n){let r={playingCreationOid:t,creationOid:n};return await e.t.post(`https://community-web.ccw.site/extensions/creation-like/detail`,r).then(e=>e.data.body)}async function mt(t){let n={followingOid:t};return await e.t.post(`https://community-web.ccw.site/study-community/following/follow`,n).then(e=>e.data.body)}async function ht(t){let n={followingOid:t};return await e.t.post(`https://community-web.ccw.site/study-community/following/unfollow`,n).then(e=>e.data.body)}const gt={acceptAward:fe,bindStudentPhone:Re,changeStudentPassword:ze,createCreation:g,donateTrade:it,encodeShortCode:n,executeSmartContract:ct,fetchMemberInviteToken:je,fetchObserverInviteToken:Ae,createCloudVariable:Xe,createComment:tt,createShortUrl:P,createSmsCaptchaBySession:Be,createSplitRule:Ve,decompressShortUrl:qe,deleteComment:et,foldComment:Qe,followCreator:mt,unfollowCreator:ht,getApprovalTags:r,getCampaignResources:a,getCcwMainStatus:Ye,getCheckInRecords:o,getCodeProfilingDetail:Ge,getCommentReplies:d,getCommentsByTopic:p,getConfigDetail:m,getCreationActivityStatsList:Ue,getCreationAttributeDetail:He,getCreationDetail:_,getCreationFavoriteDetail:U,getCreationIntroduction:y,getConnectCommunityCreationLikeStatus:pt,getCreationRecommendPositionList:W,getCreationReleasePage:We,getCreationScreenshotPage:G,getCreationStudentDetail:M,getCreationTags:N,getCreatorScore:$,getDonatedRecordRanking:H,getExcellentCreations:v,getConnectCommunityFollowingStatus:ft,getEmojiCategoryList:ve,getEmojiPage:ye,getAllEmojis:_e,getHashTagDetail:R,getHashTagFavoriteDetail:V,getHistoricalTeamMemberPage:Ke,getManagedHashTags:B,getHealthCheck:xe,getLeafletsItemList:Se,getLikeDetail:b,getLoadingTips:x,getLockedUserDetail:Ce,getMutedUserDetail:we,getMyHashTagCreations:L,getMyTasks:pe,getNotifyDeleteReasons:q,getNotificationPage:Te,getNotificationStats:Ee,getOwnCreationPage:ke,getPersonalCurrencyAccount:ge,getPlanetsOfCreation:F,getPostDetail:J,getPotentialCreations:E,getRecommendCreations:O,getRecommendCreators:k,getRecommendHashTags:Je,getRemixedCreationPage:C,getReputationScoreLogPage:ie,getSearchHotWords:Y,getSmartContractAccount:lt,getSmartContractDetail:ut,getSmartContractList:dt,getSplitRuleDetail:Le,getSpreadFeedUnreadCount:le,getStudentBlockRecordDetail:X,getStudentBlockRecordList:Z,getStudentBlockStatus:Q,getStudentFollowingPage:rt,getStudentLastActiveAt:ee,getStudentProfile:re,getStudentSelfDetail:ae,getStudentSessions:ne,getStudentsList:te,getStudentStats:oe,getStudyCommunityMemberDetail:ce,getSubjectAreaPage:ue,getSubjectAreaPageByChannel:de,getTeamMemberList:Ne,getTeamworkLogPage:Pe,getTime:i,getTypicalProjectPage:De,getTypicalProjectUnreadCount:Oe,getUserAssetStorageSize:c,getUserCardDetail:me,getUserLabelList:he,getUserProductsPage:at,queryMallProducts:h,getCreationsByStudent:T,insertCheckInRecord:s,likeComment:nt,produceTeamMemberTicket:Me,resetCommentWeight:$e,searchCloudAssets:u,searchCreationsByTag:j,sendEvent:be,setUserProductStatus:ot,submitCreation:Ie,topComment:Ze,updateCreation:Fe,updateGreatCreation:st,updateStudent:se,viewCreationStats:K};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return gt}});
@@ -1 +0,0 @@
1
- import{t as e}from"./request-CzgJtv9u.js";import{n as t,t as n}from"./queryPages-Cj4eQL4Q.js";async function r(t,n,r,i){let a={origin:{inviterAvatar:n,inviterName:r,inviterId:t,inviterType:`STUDENT`,entrance:`create_detail`,creationOid:i}};return await e.post(`https://community-web.ccw.site/api/v1/short_code/encode`,a).then(e=>e.data.body)}async function i(t){let n={objectId:t,objectType:`STUDENT`};return await e.post(`https://community-web.ccw.site/approval/list`,n).then(e=>e.data.body)}async function a(){return e.post(`https://community-web.ccw.site/base/dateTime`,void 0).then(e=>e.data.body)}async function o(t){return await e.post(`https://community-web.ccw.site/campaign_resource/detail`,{keyword:t}).then(e=>e.data.body)}async function s(){return await e.post(`https://community-web.ccw.site/check_in_record/detail`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function c(){return await e.post(`https://community-web.ccw.site/check_in_record/insert`,{scene:`HOMEPAGE`}).then(e=>e.data.body)}async function l(){return await e.post(`https://community-web.ccw.site/cloud_asset/user/privacy`,{}).then(e=>e.data.body)}const u={...n,sortField:`createdAt`};async function ee(n,r=`/`,i={}){let a=t(`https://community-web.ccw.site/cloud_asset/search`,{...u,...i}),o={creatorOid:n,path:r};return await e.post(a,o).then(e=>e.data.body)}async function te(r,i,a=[`PUBLISHED`,`FOLDED`],o={sortField:`createdAt`}){let s=t(`https://community-web.ccw.site/comment/page`,{...n,...o}),c={topicId:r,parentId:i,statuses:a};return await e.post(s,c).then(e=>e.data.body)}const d={...n,sortField:`createdAt`};async function f(n,r,i,a={sortField:`createdAt`}){let o=t(`https://community-web.ccw.site/comment/page_by_topic`,{...d,...a}),s={subjectOid:n,subjectType:r,sectionType:i};return await e.post(o,s).then(e=>e.data.body)}async function p(t){let n={key:t};return await e.post(`https://community-web.ccw.site/config/detail`,n).then(e=>e.data.body)}async function m(r,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/ccw-mall/ccw/product/fe/query`,a),s={page:a.page,perPage:a.perPage,sortType:a.sortType,productCategory:r,source:`CCW_OFFICIAL`};return await e.post(o,s).then(e=>e.data.body)}async function h(t,n,r,i=`ORIGINAL`,a=`LANDSCAPE`,o=`PRIVATE`){let s={type:i,title:t,latestProjectLink:n,screenMode:a,artifactType:`STANDARD`,sourceOpenLevel:o,latestCoverLink:r};return await e.post(`https://community-web.ccw.site/creation/create`,s).then(e=>e.data.body)}async function g(t,n,r=``){let i={oid:t,accessKey:n,mode:r};return await e.post(`https://community-web.ccw.site/creation/detail`,i).then(e=>e.data.body)}async function _(t){let n={num:t};return await e.post(`https://community-web.ccw.site/creation/excellent/list`,n).then(e=>e.data.body)}async function v(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/creation/introduction/detail`,n).then(e=>e.data.body)}async function y(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/like/detail`,n).then(e=>e.data.body)}async function b(){return await e.post(`https://community-web.ccw.site/creation/loading/tips`,{}).then(e=>e.data.body)}const x={...n,sortField:`createdAt`};async function S(n,r={}){let i=t(`https://community-web.ccw.site/creation/page`,{...x,...r}),a={remixCreationOids:n};return await e.post(i,a).then(e=>e.data.body)}const C={...n,sortField:`createdAt`};async function w(n,r={}){let i=t(`https://community-web.ccw.site/creation/page_by_student`,{...C,...r}),a={studentOids:n};return await e.post(i,a).then(e=>e.data.body)}async function T(t){let n={num:t};return await e.post(`https://community-web.ccw.site/creation/potential/list`,n).then(e=>e.data.body)}const E={...n,sortField:`createdAt`};async function D(n,r={}){let i=t(`https://community-web.ccw.site/creation/recommend`,{...E,...r}),a={num:n,subjectType:`POTENTIAL`};return await e.post(i,a).then(e=>e.data.body)}async function O(t=4,n=8){let r={excellentCount:t,potentialCount:n};return await e.post(`https://community-web.ccw.site/recommend_creator/list`,r).then(e=>e.data.body)}const k={...n,sortField:`createdAt`};async function A(n,r={}){let i=t(`https://community-web.ccw.site/creation/search/page`,{...k,...r});return await e.post(i,n).then(e=>e.data.body)}async function j(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/creation/student/detail`,n).then(e=>e.data.body)}async function M(){return await e.post(`https://community-web.ccw.site/creation/tag/list`,{visibility:`PUBLIC`}).then(e=>e.data.body)}async function N(t){let n={originUrl:t};return await e.post(`https://community-web.ccw.site/short_url/create`,n).then(e=>e.data.body)}async function P(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/hash_tag_creation/list_relation`,n).then(e=>e.data.body)}const F={...n,sortField:`lastPassedAt`};async function I(n,r,i={}){let a={...F,...i},o=t(`https://community-web.ccw.site/hash_tag_creation/mine`,a),s={...a,excludeHashTag:n,statuses:r};return await e.post(o,s).then(e=>e.data.body)}async function L(t){let n={identifier:t};return await e.post(`https://community-web.ccw.site/hash_tag/detail`,n).then(e=>e.data.body)}const R={...n,sortField:`createdAt`};async function z(n,r=[],i={}){let a={...R,...i},o=t(`https://community-web.ccw.site/hash_tag/managed/list`,a),s={...a,studentOid:n,excludeHashTagIds:r};return await e.post(o,s).then(e=>e.data.body)}async function B(t){let n={hashTagId:t};return await e.post(`https://community-web.ccw.site/hash_tag_favorite/detail`,n).then(e=>e.data.body)}async function V(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/creation_donated_record/ranking_list`,{...n,...i}),o={creationOid:r};return await e.post(a,o).then(e=>e.data.body)}async function H(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation_favorite/detail`,n).then(e=>e.data.body)}async function U(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation_recommend_position/list`,n).then(e=>e.data.body)}async function W(r,i={}){let a=t(`https://community-web.ccw.site/creation_screenshot/page`,{...n,...i}),o={subjectOid:r};return await e.post(a,o).then(e=>e.data.body)}async function G(t,n=``){let r={oid:t,inviteCode:n};return await e.post(`https://community-web.ccw.site/creation_stats/view`,r).then(e=>e.data.body)}async function K(){return await e.post(`https://community-web.ccw.site/notify_message/show`,{type:`COMMENT_AUDIT`}).then(e=>e.data.body)}async function q(t){let n={slug:t};return await e.post(`https://community-web.ccw.site/post/detail`,n).then(e=>e.data.body)}async function J(t){let n={length:t};return await e.post(`https://community-web.ccw.site/search/hot_words`,n).then(e=>e.data.body)}async function Y(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/student/block_record/detail`,n).then(e=>e.data.body)}async function X(r={sortField:`createdAt`}){let i=t(`https://community-web.ccw.site/student/block_record/list`,{...n,...r});return await e.post(i,{}).then(e=>e.data.body)}async function Z(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/student/block_record/status`,n).then(e=>e.data.body)}async function Q(){return await e.post(`https://community-web.ccw.site/students/creator_score`,void 0).then(e=>e.data.body)}async function ne(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/students/last_active_at`,n).then(e=>e.data.body)}async function re(t){let n={studentOids:t};return await e.post(`https://community-web.ccw.site/students/list`,n).then(e=>e.data.body)}async function ie(r={sortField:`createdAt`}){let i=t(`https://community-web.ccw.site/students/list_sessions`,{...n,...r});return await e.post(i,{}).then(e=>e.data.body)}async function ae(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/students/profile`,n).then(e=>e.data.body)}async function oe(r={sortField:`createdAt`}){let i=t(`https://community-web.ccw.site/students/reputation_score_log/page`,{...n,...r});return await e.post(i,{}).then(e=>e.data.body)}async function se(t,n,r){let i={needGrade:t,needExtraInfo:n,fields:r};return await e.post(`https://community-web.ccw.site/students/self/detail`,i).then(e=>e.data.body)}async function ce(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/students/stats`,n).then(e=>e.data.body)}async function le(t,n,r,i,a,o,s,c,l){let u={gender:t,hideGender:n,fullName:r,birthday:i,programmingCapability:a,school:o,qq:s,hobbies:c,learnedProgrammingLanguages:l};return await e.post(`https://community-web.ccw.site/students/update`,u).then(e=>e.data.body)}async function ue(){return await e.post(`https://community-web.ccw.site/study-community/member/detail`,{}).then(e=>e.data.body)}async function de(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/study-community/spread_feed/unread/count`,n).then(e=>e.data.body)}async function fe(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/subject_area/page`,{...n,...i}),o={scene:r};return await e.post(a,o).then(e=>e.data.body)}async function pe(r,i={sortField:`campaignResourceId`}){let a=t(`https://community-web.ccw.site/subject_area/page_by_channel`,{...n,...i}),o={channel:r,scene:`CUSTOM_PAGE`};return await e.post(a,o).then(e=>e.data.body)}async function me(t){let n={taskOid:t};return await e.post(`https://community-web.ccw.site/task/award`,n).then(e=>e.data.body)}async function he(){return await e.post(`https://community-web.ccw.site/task/mine`,{scene:`checkIn`}).then(e=>e.data.body)}async function ge(t){let n={oid:t};return await e.post(`https://community-web.ccw.site/user-card/detail`,n).then(e=>e.data.body)}async function _e(){return await e.post(`https://community-web.ccw.site/user_label/list`,{}).then(e=>e.data.body)}async function ve(){return await e.post(`https://community-web.ccw.site/currency/account/personal`).then(e=>e.data.body)}async function ye(){return await e.post(`https://community-web.ccw.site/emoji/all`,{}).then(e=>e.data.body)}async function be(){return await e.post(`https://community-web.ccw.site/emoji/category/list`,{}).then(e=>e.data.body)}async function xe(r=`ENABLED`,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/emoji/page`,a),s={page:a.page,perPage:a.perPage,status:r};return await e.post(o,s).then(e=>e.data.body)}async function Se(t){let n={actionId:t};return await e.post(`https://community-web.ccw.site/event`,n).then(e=>e.data.body)}async function Ce(){return await e.post(`https://community-web.ccw.site/health/check`).then(e=>e.data.body)}async function we(t){let n={advertisementId:t};return await e.post(`https://community-web.ccw.site/leaflets/item/list`,n).then(e=>e.data.body)}async function Te(t){let n={accountOid:t};return await e.post(`https://community-web.ccw.site/locked_user/detail`,n).then(e=>e.data.body)}async function Ee(t){let n={studentNumber:t};return await e.post(`https://community-web.ccw.site/muted_user/detail`,n).then(e=>e.data.body)}async function De(r=`COMMENT_TO_ME`,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/notification/page`,a),s={notifyGroup:r,page:a.page};return await e.post(o,s).then(e=>e.data.body)}async function Oe(t=!0){let n={countAll:t};return await e.post(`https://community-web.ccw.site/notification/stats/v2`,n).then(e=>e.data.body)}async function ke(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/typical_project/page`,{...n,...i}),o={studentOid:r,templateType:`APPLICATION`};return await e.post(a,o).then(e=>e.data.body)}async function Ae(t){let n={studentOid:t};return await e.post(`https://community-web.ccw.site/typical_project/student/unread_count`,n).then(e=>e.data.body)}async function je(r={sortField:`updatedAt`},i=[`BANNED`,`PUBLISHED`,`REJECTED`,`SUBMITTED`],a=!1){let o=t(`https://community-web.ccw.site/creation/own/page`,{...n,...r}),s={statuses:i,ignoreTypicalProject:a};return await e.post(o,s).then(e=>e.data.body)}async function Me(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch`,n).then(e=>e.data.body)}async function Ne(t,n=`MEMBER`){let r={creationOid:t,authority:n};return await e.post(`https://community-web.ccw.site/creation/team_member/invite_token/fetch`,r).then(e=>e.data.body)}async function Pe(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/team_member/produce_ticket`,n).then(e=>e.data.body)}async function Fe(t,n){let r={creationOid:t,authorities:n};return await e.post(`https://community-web.ccw.site/creation/team_member/list`,r).then(e=>e.data.body)}async function Ie(r,i,a={sortField:`createdAt`}){let o=t(`https://community-web.ccw.site/creation/teamwork_log/page`,{...n,...a}),s={creationId:r,operateTargets:i},c=await e.post(o,s).then(e=>e.data.body),{data:l}=c,u=l.map(e=>{let{content:t}=e;return{...e,content:JSON.parse(t)}});return{...c,data:u}}async function Le(t,n,r=`LANDSCAPE`,i){if(!n.includes(`t=`)){let e=new URL(n);e.searchParams.set(`t`,Date.now().toString()),n=e.toString()}let a={oid:t,latestProjectLink:n,screenMode:r,latestCoverLink:i};return await e.post(`https://community-web.ccw.site/creation/update`,a).then(e=>e.data.body)}async function Re(t){return await e.post(`https://community-web.ccw.site/creation/submit`,t).then(e=>e.data.body)}async function ze(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/detail`,n).then(e=>e.data.body)}async function Be(t,n,r=`86`){let i={phone:t,code:n,ruleCode:`ccw_sms`,scene:`bindPhone`,countryCode:r};return await e.post(`https://community-web.ccw.site/students/bind_phone`,i).then(e=>e.data.body)}async function Ve(t,n){let r={newPassword:t,code:n};return await e.post(`https://community-web.ccw.site/students/password/change`,r).then(e=>e.data.body)}async function He(t=`change_password`,n=`86`,r=`ccw_sms`,i=`SMS`){let a={type:i,countryCode:n,scene:t,ruleCode:r};return await e.post(`https://community-web.ccw.site/captcha/v2/create_by_session`,a).then(e=>e.data.body)}async function Ue(t,n){let r={creationOid:t,memberSplitDetails:n};return await e.post(`https://community-web.ccw.site/creation/smart_contract/split_rule/create`,r).then(e=>e.data.body)}async function We(t){let n={creationOid:t},r=await e.post(`https://community-web.ccw.site/creation_attribute/detail`,n).then(e=>e.data.body);if(r===null)return null;let{ext:{KEYPAD_CONFIG:i}}=r,a=JSON.parse(i);return{...r,ext:{KEYPAD_CONFIG:a}}}async function Ge(t){let n={creationOid:t,type:`DAY`};return await e.post(`https://community-web.ccw.site/creation_activity_stats/list`,n).then(e=>e.data.body)}async function Ke(r,i={sortField:`submittedAt`}){let a=t(`https://community-web.ccw.site/creation_release/page`,{...n,...i}),o={creationOid:r};return await e.post(a,o).then(e=>e.data.body)}async function qe(t,n){let r={creationOid:t,creationReleaseOid:n};return await e.post(`https://community-web.ccw.site/creation_release/code_profiling/detail`,r).then(e=>e.data.body)}async function Je(r,i={sortField:`createdAt`}){let a={...n,...i},o=t(`https://community-web.ccw.site/historical_team_member/page`,a),s={creationOid:r,page:a.page,perPage:a.perPage};return await e.post(o,s).then(e=>e.data.body)}async function Ye(t){let n={shortUrlCode:t};return await e.post(`https://community-web.ccw.site/short_url/decompress`,n).then(e=>e.data.body)}async function Xe(){return await e.post(`https://community-web.ccw.site/hash_tag/recommend/list`).then(e=>e.data.body)}async function Ze(){return await e.post(`https://community-web.ccw.site/ccw-main/status`,{}).then(e=>e.data.body)}async function Qe(t,n){let r={projectId:t,variables:n};return await e.post(`https://community-web.ccw.site/study-community/cloud_variable/create`,r).then(e=>e.data.body)}async function $e(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/top`,n).then(e=>e.data.body)}async function et(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/fold`,n).then(e=>e.data.body)}async function tt(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/reset_weight`,n).then(e=>e.data.body)}async function $(t){let n={id:t};return await e.post(`https://community-web.ccw.site/study-community/comment/delete`,n).then(e=>e.data.body)}async function nt(t,n,r){n.outline??=`foo`;let i={content:t,topic:n,sectionType:r};return await e.post(`https://community-web.ccw.site/comment/create`,i).then(e=>e.data.body)}async function rt(t){let n={commentId:t};return await e.post(`https://community-web.ccw.site/comment/like_record/create`,n).then(e=>e.data.body)}async function it(r,i={sortField:`createdAt`}){let a=t(`https://community-web.ccw.site/student/following/page`,{...n,...i}),o={studentOid:r};return await e.post(a,o).then(e=>e.data.body)}async function at(t,n,r=`CREATION`){let i={bucks:t,objectId:n,objectType:r};return await e.post(`https://community-web.ccw.site/study-trade/trade/donate`,i).then(e=>e.data.body)}async function ot(r=5,i={}){let a={...n,...i},o=t(`https://community-web.ccw.site/user_package/user_product`,a),s={page:a.page,perPage:a.perPage,sortType:a.sortType,productCategory:r};return await e.post(o,s).then(e=>e.data.body)}async function st(t,n){let r={status:n,id:t};return await e.post(`https://community-web.ccw.site/user_package/status`,r).then(e=>e.data.body)}async function ct(t){let n={creationOid:t};return await e.post(`https://community-web.ccw.site/great_creation/update`,n).then(e=>e.data.body)}async function lt(t,n,r,i,a=`CREATION`){let o={bizId:t,bizType:a,id:n,ruleId:r,params:{bucks:i}};return await e.post(`https://community-web.ccw.site/smart_contract/execute`,o).then(e=>e.data.body)}async function ut(t){let n={id:t};return await e.post(`https://community-web.ccw.site/smart_contract/account`,n).then(e=>e.data.body)}async function dt(t){let n={id:t};return await e.post(`https://community-web.ccw.site/smart_contract/detail`,n).then(e=>e.data.body)}async function ft(t,n=`CREATION`){let r={bizId:t,bizType:n};return await e.post(`https://community-web.ccw.site/smart_contract/list`,r).then(e=>e.data.body)}async function pt(t,n){let r={playingCreationOid:t,userOid:n};return await e.post(`https://community-web.ccw.site/extensions/following/status`,r).then(e=>e.data.body)}async function mt(t,n){let r={playingCreationOid:t,creationOid:n};return await e.post(`https://community-web.ccw.site/extensions/creation-like/detail`,r).then(e=>e.data.body)}async function ht(t){let n={followingOid:t};return await e.post(`https://community-web.ccw.site/study-community/following/follow`,n).then(e=>e.data.body)}async function gt(t){let n={followingOid:t};return await e.post(`https://community-web.ccw.site/study-community/following/unfollow`,n).then(e=>e.data.body)}const _t={acceptAward:me,bindStudentPhone:Be,changeStudentPassword:Ve,createCreation:h,donateTrade:at,encodeShortCode:r,executeSmartContract:lt,fetchMemberInviteToken:Ne,fetchObserverInviteToken:Me,createCloudVariable:Qe,createComment:nt,createShortUrl:N,createSmsCaptchaBySession:He,createSplitRule:Ue,decompressShortUrl:Ye,deleteComment:$,foldComment:et,followCreator:ht,unfollowCreator:gt,getApprovalTags:i,getCampaignResources:o,getCcwMainStatus:Ze,getCheckInRecords:s,getCodeProfilingDetail:qe,getCommentReplies:te,getCommentsByTopic:f,getConfigDetail:p,getCreationActivityStatsList:Ge,getCreationAttributeDetail:We,getCreationDetail:g,getCreationFavoriteDetail:H,getCreationIntroduction:v,getConnectCommunityCreationLikeStatus:mt,getCreationRecommendPositionList:U,getCreationReleasePage:Ke,getCreationScreenshotPage:W,getCreationStudentDetail:j,getCreationTags:M,getCreatorScore:Q,getDonatedRecordRanking:V,getExcellentCreations:_,getConnectCommunityFollowingStatus:pt,getEmojiCategoryList:be,getEmojiPage:xe,getAllEmojis:ye,getHashTagDetail:L,getHashTagFavoriteDetail:B,getHistoricalTeamMemberPage:Je,getManagedHashTags:z,getHealthCheck:Ce,getLeafletsItemList:we,getLikeDetail:y,getLoadingTips:b,getLockedUserDetail:Te,getMutedUserDetail:Ee,getMyHashTagCreations:I,getMyTasks:he,getNotifyDeleteReasons:K,getNotificationPage:De,getNotificationStats:Oe,getOwnCreationPage:je,getPersonalCurrencyAccount:ve,getPlanetsOfCreation:P,getPostDetail:q,getPotentialCreations:T,getRecommendCreations:D,getRecommendCreators:O,getRecommendHashTags:Xe,getRemixedCreationPage:S,getReputationScoreLogPage:oe,getSearchHotWords:J,getSmartContractAccount:ut,getSmartContractDetail:dt,getSmartContractList:ft,getSplitRuleDetail:ze,getSpreadFeedUnreadCount:de,getStudentBlockRecordDetail:Y,getStudentBlockRecordList:X,getStudentBlockStatus:Z,getStudentFollowingPage:it,getStudentLastActiveAt:ne,getStudentProfile:ae,getStudentSelfDetail:se,getStudentSessions:ie,getStudentsList:re,getStudentStats:ce,getStudyCommunityMemberDetail:ue,getSubjectAreaPage:fe,getSubjectAreaPageByChannel:pe,getTeamMemberList:Fe,getTeamworkLogPage:Ie,getTime:a,getTypicalProjectPage:ke,getTypicalProjectUnreadCount:Ae,getUserAssetStorageSize:l,getUserCardDetail:ge,getUserLabelList:_e,getUserProductsPage:ot,queryMallProducts:m,getCreationsByStudent:w,insertCheckInRecord:c,likeComment:rt,produceTeamMemberTicket:Pe,resetCommentWeight:tt,searchCloudAssets:ee,searchCreationsByTag:A,sendEvent:Se,setUserProductStatus:st,submitCreation:Re,topComment:$e,updateCreation:Le,updateGreatCreation:ct,updateStudent:le,viewCreationStats:G};export{_t as t};