@ccw-api/api 0.11.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +9 -0
- package/README.md +58 -10
- package/dist/account-_e06LVHE.d.cts +6 -0
- package/dist/account-_e06LVHE.d.ts +6 -0
- package/dist/{api-eD9o12yg.d.cts → api-DK7ohLa7.d.cts} +9 -18
- package/dist/{api-eD9o12yg.d.ts → api-DK7ohLa7.d.ts} +9 -18
- package/dist/bfs-web-BtWTiGvL.cjs +1 -0
- package/dist/bfs-web-xFSpR-s6.js +1 -0
- package/dist/bfs.cjs +1 -0
- package/dist/bfs.d.cts +2 -0
- package/dist/bfs.d.ts +2 -0
- package/dist/bfs.js +1 -0
- package/dist/community-web-B7SGi5-y.cjs +1 -0
- package/dist/community-web-Dzl0mbbh.js +1 -0
- package/dist/community-web-cloud-database-BkH9wp1u.cjs +1 -0
- package/dist/community-web-cloud-database-D9IZZIjN.js +1 -0
- package/dist/communityWeb.cjs +1 -0
- package/dist/communityWeb.d.cts +2 -0
- package/dist/communityWeb.d.ts +2 -0
- package/dist/communityWeb.js +1 -0
- package/dist/communityWebDB.cjs +1 -0
- package/dist/communityWebDB.d.cts +2 -0
- package/dist/communityWebDB.d.ts +2 -0
- package/dist/communityWebDB.js +1 -0
- package/dist/extensions-BhEKLZ5I.d.cts +617 -0
- package/dist/extensions-D1JeVkuw.d.ts +617 -0
- package/dist/gandi-main-Bdq3vj-l.js +1 -0
- package/dist/gandi-main-CVC31Jom.cjs +1 -0
- package/dist/gandiMain.cjs +1 -0
- package/dist/gandiMain.d.cts +2 -0
- package/dist/gandiMain.d.ts +2 -0
- package/dist/gandiMain.js +1 -0
- package/dist/index-B8SvUvok.d.ts +112 -0
- package/dist/{index-DHBvF_JC.d.ts → index-BVdJi7l7.d.ts} +12 -10
- package/dist/{index-Df4POgQq.d.ts → index-CDuyecw5.d.ts} +12 -10
- package/dist/index-CV03H74N.d.cts +2351 -0
- package/dist/index-CobjrinB.d.ts +2351 -0
- package/dist/index-CwWMFbgH.d.cts +112 -0
- package/dist/{index-BE998Kka.d.cts → index-DCDRwVC2.d.cts} +79 -74
- package/dist/{index-BDpiLiUN.d.ts → index-DXMyzE0v.d.ts} +79 -74
- package/dist/{index-DBnhnINQ.d.cts → index-IcG5LsGk.d.cts} +12 -10
- package/dist/{index-CTK9UFeW.d.cts → index-JnYvwWhY.d.cts} +33 -30
- package/dist/{index-CTK9UFeW.d.ts → index-JnYvwWhY.d.ts} +33 -30
- package/dist/{index-DcBdyIv0.d.cts → index-sOyHrix1.d.cts} +12 -10
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +167 -164
- package/dist/index.d.ts +167 -164
- package/dist/index.js +1 -2
- package/dist/op-parent-api-BC6-0rS8.js +1 -0
- package/dist/op-parent-api-BZbZzfJ6.cjs +1 -0
- package/dist/opParent.cjs +1 -0
- package/dist/opParent.d.cts +2 -0
- package/dist/opParent.d.ts +2 -0
- package/dist/opParent.js +1 -0
- package/dist/pages-K5jlky49.d.cts +42 -0
- package/dist/pages-K5jlky49.d.ts +42 -0
- package/dist/queryPages-CfywLB4S.cjs +1 -0
- package/dist/queryPages-Cj4eQL4Q.js +1 -0
- package/dist/request-CIq4GGVU.cjs +1 -0
- package/dist/request-CzgJtv9u.js +1 -0
- package/dist/session-Cw37kR-m.d.ts +43 -0
- package/dist/session-D8sffvmq.d.cts +43 -0
- package/dist/sso-C0ZWQvKo.cjs +1 -0
- package/dist/sso-DUoym0qZ.js +1 -0
- package/dist/sso.cjs +1 -0
- package/dist/sso.d.cts +2 -0
- package/dist/sso.d.ts +2 -0
- package/dist/sso.js +1 -0
- package/package.json +9 -9
- package/dist/account-Dk_iscrW.d.cts +0 -8
- package/dist/account-Dk_iscrW.d.ts +0 -8
- package/dist/bfs-web/index.cjs +0 -2
- package/dist/bfs-web/index.d.cts +0 -5
- package/dist/bfs-web/index.d.ts +0 -5
- package/dist/bfs-web/index.global.js +0 -29
- package/dist/bfs-web/index.js +0 -2
- package/dist/community-web/index.cjs +0 -2
- package/dist/community-web/index.d.cts +0 -6
- package/dist/community-web/index.d.ts +0 -6
- package/dist/community-web/index.global.js +0 -29
- package/dist/community-web/index.js +0 -2
- package/dist/community-web-cloud-database/index.cjs +0 -2
- package/dist/community-web-cloud-database/index.d.cts +0 -2
- package/dist/community-web-cloud-database/index.d.ts +0 -2
- package/dist/community-web-cloud-database/index.global.js +0 -29
- package/dist/community-web-cloud-database/index.js +0 -2
- package/dist/extensions-Bj9XMupR.d.cts +0 -662
- package/dist/extensions-zuu8XVBR.d.ts +0 -662
- package/dist/gandi-main/index.cjs +0 -2
- package/dist/gandi-main/index.d.cts +0 -3
- package/dist/gandi-main/index.d.ts +0 -3
- package/dist/gandi-main/index.global.js +0 -29
- package/dist/gandi-main/index.js +0 -2
- package/dist/index-BrxSkWbg.d.cts +0 -2289
- package/dist/index-CYQhPzUX.d.ts +0 -108
- package/dist/index-Ci0X9uqV.d.cts +0 -108
- package/dist/index-DBAUdwJo.d.ts +0 -2289
- package/dist/index.global.js +0 -29
- package/dist/op-parent-api/index.cjs +0 -2
- package/dist/op-parent-api/index.d.cts +0 -1
- package/dist/op-parent-api/index.d.ts +0 -1
- package/dist/op-parent-api/index.global.js +0 -29
- package/dist/op-parent-api/index.js +0 -2
- package/dist/pages-BgT6bhJd.d.cts +0 -46
- package/dist/pages-BgT6bhJd.d.ts +0 -46
- package/dist/session-Cq-kUclp.d.ts +0 -48
- package/dist/session-DGUV-m-G.d.cts +0 -48
- package/dist/setToken.cjs +0 -1
- package/dist/setToken.d.cts +0 -1
- package/dist/setToken.d.ts +0 -1
- package/dist/setToken.global.js +0 -29
- package/dist/setToken.js +0 -1
- package/dist/sso/index.cjs +0 -2
- package/dist/sso/index.d.cts +0 -4
- package/dist/sso/index.d.ts +0 -4
- package/dist/sso/index.global.js +0 -29
- package/dist/sso/index.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,166 +1,169 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import { a as
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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";
|
|
3
|
+
import { n as account_d_exports } from "./account-_e06LVHE.js";
|
|
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";
|
|
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";
|
|
8
|
+
import { r as session_d_exports } from "./session-Cw37kR-m.js";
|
|
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";
|
|
11
|
+
import { n as checkCaptcha, r as createCaptcha, t as opParentApi } from "./index-JnYvwWhY.js";
|
|
12
|
+
//#region src/request.d.ts
|
|
13
|
+
type Response<Res = any> = {
|
|
14
|
+
data: Res;
|
|
15
|
+
};
|
|
16
|
+
interface RequestUtils {
|
|
17
|
+
get<Res = any>(url: string | URL): Promise<Response<Res>>;
|
|
18
|
+
post<Res>(url: string | URL, args?: any): Promise<Response<Res>>;
|
|
19
|
+
}
|
|
20
|
+
declare function setRequestUtils(reqUtils: RequestUtils): void;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/index.d.ts
|
|
20
23
|
declare const _default: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
24
|
+
sso: {
|
|
25
|
+
loginByPassword: typeof loginByPassword;
|
|
26
|
+
logout: typeof logout;
|
|
27
|
+
logoutBySession: typeof logoutBySession;
|
|
28
|
+
createSmsCaptcha: typeof createSmsCaptcha;
|
|
29
|
+
loginByPhone: typeof loginByPhone;
|
|
30
|
+
};
|
|
31
|
+
communityWeb: {
|
|
32
|
+
acceptAward: typeof acceptAward;
|
|
33
|
+
bindStudentPhone: typeof bindStudentPhone;
|
|
34
|
+
changeStudentPassword: typeof changeStudentPassword;
|
|
35
|
+
createCreation: typeof createCreation;
|
|
36
|
+
donateTrade: typeof donateTrade;
|
|
37
|
+
encodeShortCode: typeof encodeShortCode;
|
|
38
|
+
executeSmartContract: typeof executeSmartContract;
|
|
39
|
+
fetchMemberInviteToken: typeof fetchMemberInviteToken;
|
|
40
|
+
fetchObserverInviteToken: typeof fetchObserverInviteToken;
|
|
41
|
+
createCloudVariable: typeof createCloudVariable;
|
|
42
|
+
createComment: typeof createComment;
|
|
43
|
+
createShortUrl: typeof createShortUrl;
|
|
44
|
+
createSmsCaptchaBySession: typeof createSmsCaptchaBySession;
|
|
45
|
+
createSplitRule: typeof createSplitRule;
|
|
46
|
+
decompressShortUrl: typeof decompressShortUrl;
|
|
47
|
+
deleteComment: typeof deleteComment;
|
|
48
|
+
foldComment: typeof foldComment;
|
|
49
|
+
followCreator: typeof followCreator;
|
|
50
|
+
unfollowCreator: typeof unfollowCreator;
|
|
51
|
+
getApprovalTags: typeof getApprovalTags;
|
|
52
|
+
getCampaignResources: typeof getCampaignResources;
|
|
53
|
+
getCcwMainStatus: typeof getCCWMainStatus;
|
|
54
|
+
getCheckInRecords: typeof getCheckInRecords;
|
|
55
|
+
getCodeProfilingDetail: typeof getCodeProfilingDetail;
|
|
56
|
+
getCommentReplies: typeof getCommentReplies;
|
|
57
|
+
getCommentsByTopic: typeof getCommentsByTopic;
|
|
58
|
+
getConfigDetail: typeof getConfigDetail;
|
|
59
|
+
getCreationActivityStatsList: typeof getCreationActivityStatsList;
|
|
60
|
+
getCreationAttributeDetail: typeof getCreationAttributeDetail;
|
|
61
|
+
getCreationDetail: typeof getCreationDetail;
|
|
62
|
+
getCreationFavoriteDetail: typeof getCreationFavoriteDetail;
|
|
63
|
+
getCreationIntroduction: typeof getCreationIntroduction;
|
|
64
|
+
getConnectCommunityCreationLikeStatus: typeof getConnectCommunityCreationLikeStatus;
|
|
65
|
+
getCreationRecommendPositionList: typeof getCreationRecommendPositionList;
|
|
66
|
+
getCreationReleasePage: typeof getCreationReleasePage;
|
|
67
|
+
getCreationScreenshotPage: typeof getCreationScreenshotPage;
|
|
68
|
+
getCreationStudentDetail: typeof getCreationStudentDetail;
|
|
69
|
+
getCreationTags: typeof getCreationTags;
|
|
70
|
+
getCreatorScore: typeof getCreatorScore;
|
|
71
|
+
getDonatedRecordRanking: typeof getDonatedRecordRanking;
|
|
72
|
+
getExcellentCreations: typeof getExcellentCreations;
|
|
73
|
+
getConnectCommunityFollowingStatus: typeof getConnectCommunityFollowingStatus;
|
|
74
|
+
getEmojiCategoryList: typeof getEmojiCategoryList;
|
|
75
|
+
getEmojiPage: typeof getEmojiPage;
|
|
76
|
+
getAllEmojis: typeof getAllEmojis;
|
|
77
|
+
getHashTagDetail: typeof getHashTagDetail;
|
|
78
|
+
getHashTagFavoriteDetail: typeof getHashTagFavoriteDetail;
|
|
79
|
+
getHistoricalTeamMemberPage: typeof getHistoricalTeamMemberPage;
|
|
80
|
+
getManagedHashTags: typeof getManagedHashTags;
|
|
81
|
+
getHealthCheck: typeof getHealthCheck;
|
|
82
|
+
getLeafletsItemList: typeof getLeafletsItemList;
|
|
83
|
+
getLikeDetail: typeof getLikeDetail;
|
|
84
|
+
getLoadingTips: typeof getLoadingTips;
|
|
85
|
+
getLockedUserDetail: typeof getLockedUserDetail;
|
|
86
|
+
getMutedUserDetail: typeof getMutedUserDetail;
|
|
87
|
+
getMyHashTagCreations: typeof getMyHashTagCreations;
|
|
88
|
+
getMyTasks: typeof getMyTasks;
|
|
89
|
+
getNotifyDeleteReasons: typeof getNotifyDeleteReasons;
|
|
90
|
+
getNotificationPage: typeof getNotificationPage;
|
|
91
|
+
getNotificationStats: typeof getNotificationStats;
|
|
92
|
+
getOwnCreationPage: typeof getOwnCreationPage;
|
|
93
|
+
getPersonalCurrencyAccount: typeof getPersonalCurrencyAccount;
|
|
94
|
+
getPlanetsOfCreation: typeof getPlanetsOfCreation;
|
|
95
|
+
getPostDetail: typeof getPostDetail;
|
|
96
|
+
getPotentialCreations: typeof getPotentialCreations;
|
|
97
|
+
getRecommendCreations: typeof getRecommendCreations;
|
|
98
|
+
getRecommendCreators: typeof getRecommendCreators;
|
|
99
|
+
getRecommendHashTags: typeof getRecommendHashTags;
|
|
100
|
+
getRemixedCreationPage: typeof getRemixedCreationPage;
|
|
101
|
+
getReputationScoreLogPage: typeof getReputationScoreLog;
|
|
102
|
+
getSearchHotWords: typeof getSearchHotWords;
|
|
103
|
+
getSmartContractAccount: typeof getSmartContractAccount;
|
|
104
|
+
getSmartContractDetail: typeof getSmartContractDetail;
|
|
105
|
+
getSmartContractList: typeof getSmartContractList;
|
|
106
|
+
getSplitRuleDetail: typeof getSplitRuleDetail;
|
|
107
|
+
getSpreadFeedUnreadCount: typeof getSpreadFeedUnreadCount;
|
|
108
|
+
getStudentBlockRecordDetail: typeof getStudentBlockRecordDetail;
|
|
109
|
+
getStudentBlockRecordList: typeof getStudentBlockRecordList;
|
|
110
|
+
getStudentBlockStatus: typeof getStudentBlockStatus;
|
|
111
|
+
getStudentFollowingPage: typeof getStudentFollowingPage;
|
|
112
|
+
getStudentLastActiveAt: typeof getStudentLastActiveAt;
|
|
113
|
+
getStudentProfile: typeof getStudentProfile;
|
|
114
|
+
getStudentSelfDetail: typeof getStudentSelfDetail;
|
|
115
|
+
getStudentSessions: typeof getStudentSessions;
|
|
116
|
+
getStudentsList: typeof getStudentsList;
|
|
117
|
+
getStudentStats: typeof getStudentStats;
|
|
118
|
+
getStudyCommunityMemberDetail: typeof getStudyCommunityMemberDetail;
|
|
119
|
+
getSubjectAreaPage: typeof getSubjectAreaPage;
|
|
120
|
+
getSubjectAreaPageByChannel: typeof getSubjectAreaPageByChannel;
|
|
121
|
+
getTeamMemberList: typeof getTeamMemberList;
|
|
122
|
+
getTeamworkLogPage: typeof getTeamworkLogPage;
|
|
123
|
+
getTime: typeof getTime;
|
|
124
|
+
getTypicalProjectPage: typeof getTypicalProjectPage;
|
|
125
|
+
getTypicalProjectUnreadCount: typeof getTypicalProjectUnreadCount;
|
|
126
|
+
getUserAssetStorageSize: typeof getUserAssetStorageSize;
|
|
127
|
+
getUserCardDetail: typeof getUserCardDetail;
|
|
128
|
+
getUserLabelList: typeof getUserLabelList;
|
|
129
|
+
getUserProductsPage: typeof getUserProductsPage;
|
|
130
|
+
queryMallProducts: typeof queryMallProducts;
|
|
131
|
+
getCreationsByStudent: typeof getCreationsByStudent;
|
|
132
|
+
insertCheckInRecord: typeof insertCheckInRecord;
|
|
133
|
+
likeComment: typeof likeComment;
|
|
134
|
+
produceTeamMemberTicket: typeof produceTeamMemberTicket;
|
|
135
|
+
resetCommentWeight: typeof resetCommentWeight;
|
|
136
|
+
searchCloudAssets: typeof searchCloudAssets;
|
|
137
|
+
searchCreationsByTag: typeof searchCreationsByTag;
|
|
138
|
+
sendEvent: typeof sendEvent;
|
|
139
|
+
setUserProductStatus: typeof setUserProductStatus;
|
|
140
|
+
submitCreation: typeof submitCreation;
|
|
141
|
+
topComment: typeof topComment;
|
|
142
|
+
updateCreation: typeof updateCreation;
|
|
143
|
+
updateGreatCreation: typeof updateGreatCreation;
|
|
144
|
+
updateStudent: typeof updateStudent;
|
|
145
|
+
viewCreationStats: typeof viewCreationStats;
|
|
146
|
+
};
|
|
147
|
+
gandiMain: {
|
|
148
|
+
getCurrentTimestamp: typeof getCurrentTimestamp;
|
|
149
|
+
getBulletinsPage: typeof getBulletinsPage;
|
|
150
|
+
getBulletinDetail: typeof getBulletinDetail;
|
|
151
|
+
submitLeaderboardRecord: typeof submitLeaderboardRecord;
|
|
152
|
+
getLeaderboardRecords: typeof getLeaderboardRecords;
|
|
153
|
+
};
|
|
154
|
+
bfsWeb: {
|
|
155
|
+
donateExtension: typeof donateExtension;
|
|
156
|
+
getUserExtensions: typeof getUserExtensions;
|
|
157
|
+
};
|
|
158
|
+
communityWebCloudDatabase: {
|
|
159
|
+
saveProjectCloudVariable: typeof saveProjectCloudVariable;
|
|
160
|
+
saveUserCloudVariable: typeof saveUserCloudVariable;
|
|
161
|
+
getCloudVariableDetailV2: typeof getCloudVariableDetailV2;
|
|
162
|
+
};
|
|
163
|
+
opParentApi: {
|
|
164
|
+
createCaptcha: typeof createCaptcha;
|
|
165
|
+
checkCaptcha: typeof checkCaptcha;
|
|
166
|
+
};
|
|
164
167
|
};
|
|
165
|
-
|
|
166
|
-
export { _default as default };
|
|
168
|
+
//#endregion
|
|
169
|
+
export { type account_d_exports as Account, type api_d_exports as Api, type approval_d_exports as Approval, type comment_d_exports as Comment, type creation_d_exports as Creation, type hashTag_d_exports as HashTag, type mall_d_exports as Mall, type notification_d_exports as Notification, type notificationContent_d_exports as NotificationContent, type pages_d_exports as Pages, type session_d_exports as Session, type userData_d_exports as UserData, bfsWeb, communityWeb, communityWebCloudDatabase, _default as default, gandiMain, opParentApi, setRequestUtils, sso };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import ro,{ccwAxios}from'@ccw-api/axios';export{setToken}from'@ccw-api/axios';var zt="https://sso.ccw.site/web/auth/login-by-password";async function g(e,t,o={device:"Node",browser:"Node.js"}){let r={loginKey:e,password:t,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})},{extra:s,...n}=await ccwAxios.post(zt,r).then(c=>c.data.body),a=JSON.parse(s);return {...n,extra:a}}var $t="https://sso.ccw.site/web/auth/logout";async function l(){return await ccwAxios.post($t,{}).then(e=>e.data.body)}var Jt="https://sso.ccw.site/web/auth/logout_by_session";async function R(e){return await ccwAxios.post(Jt,{id:e}).then(t=>t.data.body)}var Zt="https://sso.ccw.site/web/auth/assistant/captcha/v2/create";async function y(e,t="loginbyPhone",o="86",r="ccw_sms",s){let n={recipient:e,countryCode:o,scene:t,ruleCode:r,captcha:s};return await ccwAxios.post(Zt,n).then(a=>a.data.body)}var eo="https://sso.ccw.site/web/auth/v3/login/by_phone";async function A(e,t,o={device:"Node",browser:"Node.js"},r="86",s="ccw_sms",n="loginbyPhone"){let{extra:a,...c}=await ccwAxios.post(eo,{phone:e,code:t,countryCode:r,ruleCode:s,scene:n,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})}).then(m=>m.data.body),u=JSON.parse(a);return {...c,extra:u}}var x={loginByPassword:g,logout:l,logoutBySession:R,createSmsCaptcha:y,loginByPhone:A};var oo="https://community-web.ccw.site/api/v1/short_code/encode";async function b(e,t,o,r){let s={origin:{inviterAvatar:t,inviterName:o,inviterId:e,inviterType:"STUDENT",entrance:"create_detail",creationOid:r}};return await ccwAxios.post(oo,s).then(n=>n.data.body)}var so="https://community-web.ccw.site/approval/list";async function f(e){let t={objectId:e,objectType:"STUDENT"};return await ro.post(so,t).then(o=>o.data.body)}var io="https://community-web.ccw.site/base/dateTime";async function w(){return ro.post(io,void 0).then(e=>e.data.body)}var ao="https://community-web.ccw.site/campaign_resource/detail";async function P(e){return await ccwAxios.post(ao,{keyword:e}).then(t=>t.data.body)}var mo="https://community-web.ccw.site/check_in_record/detail";async function C(){let e={scene:"HOMEPAGE"};return await ccwAxios.post(mo,e).then(t=>t.data.body)}var go="https://community-web.ccw.site/check_in_record/insert";async function I(){let e={scene:"HOMEPAGE"};return await ccwAxios.post(go,e).then(t=>t.data.body)}var Ro="https://community-web.ccw.site/cloud_asset/user/privacy";async function S(){return await ccwAxios.post(Ro,{}).then(e=>e.data.body)}function i(e,t){let o=new URL(e);return Object.entries(t).forEach(([r,s])=>{s!=null&&o.searchParams.set(r,s);}),o.toString()}var p={page:1,perPage:20,sortType:"DESC",sortField:""};var Ao="https://community-web.ccw.site/cloud_asset/search",xo={...p,sortField:"createdAt"};async function h(e,t="/",o={}){let r={...xo,...o},s=i(Ao,r),n={creatorOid:e,path:t};return await ccwAxios.post(s,n).then(a=>a.data.body)}var fo="https://community-web.ccw.site/comment/page";async function T(e,t,o=["PUBLISHED","FOLDED"],r={sortField:"createdAt"}){let s={...p,...r},n=i(fo,s),a={topicId:e,parentId:t,statuses:o};return await ccwAxios.post(n,a).then(c=>c.data.body)}var Po="https://community-web.ccw.site/comment/page_by_topic",Co={...p,sortField:"createdAt"};async function D(e,t,o,r={sortField:"createdAt"}){let s={...Co,...r},n=i(Po,s),a={subjectOid:e,subjectType:t,sectionType:o};return await ccwAxios.post(n,a).then(c=>c.data.body)}var So="https://community-web.ccw.site/config/detail";async function q(e){let t={key:e};return await ccwAxios.post(So,t).then(o=>o.data.body)}var To="https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";async function M(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(To,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e,source:"CCW_OFFICIAL"};return await ccwAxios.post(r,s).then(n=>n.data.body)}var qo="https://community-web.ccw.site/creation/create";async function B(e,t,o,r="ORIGINAL",s="LANDSCAPE",n="PRIVATE"){let a={type:r,title:e,latestProjectLink:t,screenMode:s,artifactType:"STANDARD",sourceOpenLevel:n,latestCoverLink:o};return await ccwAxios.post(qo,a).then(c=>c.data.body)}var Bo="https://community-web.ccw.site/creation/detail";async function O(e,t,o=""){let r={oid:e,accessKey:t,mode:o};return await ccwAxios.post(Bo,r).then(s=>s.data.body)}var Eo="https://community-web.ccw.site/creation/excellent/list";async function E(e){let t={num:e};return await ccwAxios.post(Eo,t).then(o=>o.data.body)}var Uo="https://community-web.ccw.site/creation/introduction/detail";async function L(e){let t={studentOid:e};return await ccwAxios.post(Uo,t).then(o=>o.data.body)}var ko="https://community-web.ccw.site/creation/like/detail";async function U(e){let t={creationOid:e};return await ccwAxios.post(ko,t).then(o=>o.data.body)}var vo="https://community-web.ccw.site/creation/loading/tips";async function _(){return await ccwAxios.post(vo,{}).then(e=>e.data.body)}var jo="https://community-web.ccw.site/creation/page",Go={...p,sortField:"createdAt"};async function k(e,t={}){let o={...Go,...t},r=i(jo,o),s={remixCreationOids:e};return await ccwAxios.post(r,s).then(n=>n.data.body)}var Ko="https://community-web.ccw.site/creation/page_by_student",Vo={...p,sortField:"createdAt"};async function N(e,t={}){let o={...Vo,...t},r=i(Ko,o),s={studentOids:e};return await ccwAxios.post(r,s).then(n=>n.data.body)}var Wo="https://community-web.ccw.site/creation/potential/list";async function v(e){let t={num:e};return await ccwAxios.post(Wo,t).then(o=>o.data.body)}var Yo="https://community-web.ccw.site/creation/recommend",Jo={...p,sortField:"createdAt"};async function F(e,t={}){let o={...Jo,...t},r=i(Yo,o),s={num:e,subjectType:"POTENTIAL"};return await ccwAxios.post(r,s).then(n=>n.data.body)}var Zo="https://community-web.ccw.site/recommend_creator/list";async function j(e=4,t=8){let o={excellentCount:e,potentialCount:t};return await ccwAxios.post(Zo,o).then(r=>r.data.body)}var er="https://community-web.ccw.site/creation/search/page",tr={...p,sortField:"createdAt"};async function G(e,t={}){let o={...tr,...t},r=i(er,o);return await ccwAxios.post(r,e).then(s=>s.data.body)}var rr="https://community-web.ccw.site/creation/student/detail";async function H(e){let t={studentOid:e};return await ccwAxios.post(rr,t).then(o=>o.data.body)}var nr="https://community-web.ccw.site/creation/tag/list";async function K(){let e={visibility:"PUBLIC"};return await ccwAxios.post(nr,e).then(t=>t.data.body)}var pr="https://community-web.ccw.site/short_url/create";async function V(e){let t={originUrl:e};return await ccwAxios.post(pr,t).then(o=>o.data.body)}var cr="https://community-web.ccw.site/hash_tag_creation/list_relation";async function z(e){let t={creationOid:e};return await ccwAxios.post(cr,t).then(o=>o.data.body)}var ur="https://community-web.ccw.site/hash_tag_creation/mine",dr={...p,sortField:"lastPassedAt"};async function W(e,t,o={}){let r={...dr,...o},s=i(ur,r),n={...r,excludeHashTag:e,statuses:t};return await ccwAxios.post(s,n).then(a=>a.data.body)}var lr="https://community-web.ccw.site/hash_tag/detail";async function $(e){let t={identifier:e};return await ccwAxios.post(lr,t).then(o=>o.data.body)}var yr="https://community-web.ccw.site/hash_tag/managed/list",Ar={...p,sortField:"createdAt"};async function Y(e,t=[],o={}){let r={...Ar,...o},s=i(yr,r),n={...r,studentOid:e,excludeHashTagIds:t};return await ccwAxios.post(s,n).then(a=>a.data.body)}var br="https://community-web.ccw.site/hash_tag_favorite/detail";async function J(e){let t={hashTagId:e};return await ccwAxios.post(br,t).then(o=>o.data.body)}var wr="https://community-web.ccw.site/creation_donated_record/ranking_list";async function X(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(wr,o),s={creationOid:e};return await ccwAxios.post(r,s).then(n=>n.data.body)}var Cr="https://community-web.ccw.site/creation_favorite/detail";async function Z(e){let t={creationOid:e};return await ccwAxios.post(Cr,t).then(o=>o.data.body)}var Sr="https://community-web.ccw.site/creation_recommend_position/list";async function Q(e){let t={creationOid:e};return await ccwAxios.post(Sr,t).then(o=>o.data.body)}var Tr="https://community-web.ccw.site/creation_screenshot/page";async function ee(e,t={}){let o={...p,...t},r=i(Tr,o),s={subjectOid:e};return await ccwAxios.post(r,s).then(n=>n.data.body)}var qr="https://community-web.ccw.site/creation_stats/view";async function te(e,t=""){let o={oid:e,inviteCode:t};return await ccwAxios.post(qr,o).then(r=>r.data.body)}var Br="https://community-web.ccw.site/notify_message/show";async function oe(){let e={type:"COMMENT_AUDIT"};return await ccwAxios.post(Br,e).then(t=>t.data.body)}var Er="https://community-web.ccw.site/post/detail";async function re(e){let t={slug:e};return await ccwAxios.post(Er,t).then(o=>o.data.body)}var Ur="https://community-web.ccw.site/search/hot_words";async function se(e){let t={length:e};return await ccwAxios.post(Ur,t).then(o=>o.data.body)}var kr="https://community-web.ccw.site/student/block_record/detail";async function ne(e){let t={studentOid:e};return await ccwAxios.post(kr,t).then(o=>o.data.body)}var vr="https://community-web.ccw.site/student/block_record/list";async function ie(e={sortField:"createdAt"}){let t={...p,...e},o=i(vr,t),r={};return await ccwAxios.post(o,r).then(s=>s.data.body)}var jr="https://community-web.ccw.site/student/block_record/status";async function pe(e){let t={studentOid:e};return await ccwAxios.post(jr,t).then(o=>o.data.body)}var Hr="https://community-web.ccw.site/students/creator_score";async function ae(){return await ccwAxios.post(Hr,void 0).then(t=>t.data.body)}var Vr="https://community-web.ccw.site/students/last_active_at";async function ce(e){let t={studentOid:e};return await ccwAxios.post(Vr,t).then(o=>o.data.body)}var Wr="https://community-web.ccw.site/students/list";async function me(e){let t={studentOids:e};return await ccwAxios.post(Wr,t).then(o=>o.data.body)}var Yr="https://community-web.ccw.site/students/list_sessions";async function ue(e={sortField:"createdAt"}){let t={...p,...e},o=i(Yr,t),r={};return await ccwAxios.post(o,r).then(s=>s.data.body)}var Xr="https://community-web.ccw.site/students/profile";async function de(e){let t={studentOid:e};return await ccwAxios.post(Xr,t).then(o=>o.data.body)}var Qr="https://community-web.ccw.site/students/reputation_score_log/page";async function ge(e={sortField:"createdAt"}){let t={...p,...e},o=i(Qr,t),r={};return await ccwAxios.post(o,r).then(s=>s.data.body)}var ts="https://community-web.ccw.site/students/self/detail";async function le(e,t,o){let r={needGrade:e,needExtraInfo:t,fields:o};return await ccwAxios.post(ts,r).then(s=>s.data.body)}var rs="https://community-web.ccw.site/students/stats";async function Re(e){let t={studentOid:e};return await ccwAxios.post(rs,t).then(o=>o.data.body)}var ns="https://community-web.ccw.site/students/update";async function ye(e,t,o,r,s,n,a,c,u){let m={gender:e,hideGender:t,fullName:o,birthday:r,programmingCapability:s,school:n,qq:a,hobbies:c,learnedProgrammingLanguages:u};return await ccwAxios.post(ns,m).then(d=>d.data.body)}var ps="https://community-web.ccw.site/study-community/member/detail";async function Ae(){let e={};return await ccwAxios.post(ps,e).then(t=>t.data.body)}var cs="https://community-web.ccw.site/study-community/spread_feed/unread/count";async function xe(e){let t={studentOid:e};return await ccwAxios.post(cs,t).then(o=>o.data.body)}var us="https://community-web.ccw.site/subject_area/page";async function be(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(us,o),s={scene:e};return await ccwAxios.post(r,s).then(n=>n.data.body)}var gs="https://community-web.ccw.site/subject_area/page_by_channel";async function fe(e,t={sortField:"campaignResourceId"}){let o={...p,...t},r=i(gs,o),s={channel:e,scene:"CUSTOM_PAGE"};return await ccwAxios.post(r,s).then(n=>n.data.body)}var Rs="https://community-web.ccw.site/task/award";async function we(e){let t={taskOid:e};return await ccwAxios.post(Rs,t).then(o=>o.data.body)}var As="https://community-web.ccw.site/task/mine";async function Pe(){let e={scene:"checkIn"};return await ccwAxios.post(As,e).then(t=>t.data.body)}var bs="https://community-web.ccw.site/user-card/detail";async function Ce(e){let t={oid:e};return await ccwAxios.post(bs,t).then(o=>o.data.body)}var ws="https://community-web.ccw.site/user_label/list";async function Ie(){let e={};return await ccwAxios.post(ws,e).then(t=>t.data.body)}var Cs="https://community-web.ccw.site/currency/account/personal";async function Se(){return await ccwAxios.post(Cs).then(e=>e.data.body)}var Ss="https://community-web.ccw.site/emoji/all";async function he(){return await ccwAxios.post(Ss,{}).then(e=>e.data.body)}var Ts="https://community-web.ccw.site/emoji/category/list";async function Te(){return await ccwAxios.post(Ts,{}).then(e=>e.data.body)}var qs="https://community-web.ccw.site/emoji/page";async function De(e="ENABLED",t={sortField:"createdAt"}){let o={...p,...t},r=i(qs,o),s={page:o.page,perPage:o.perPage,status:e};return await ccwAxios.post(r,s).then(n=>n.data.body)}var Bs="https://community-web.ccw.site/event";async function qe(e){let t={actionId:e};return await ccwAxios.post(Bs,t).then(o=>o.data.body)}var Es="https://community-web.ccw.site/health/check";async function Me(){return await ccwAxios.post(Es).then(e=>e.data.body)}var Us="https://community-web.ccw.site/leaflets/item/list";async function Be(e){let t={advertisementId:e};return await ccwAxios.post(Us,t).then(o=>o.data.body)}var ks="https://community-web.ccw.site/locked_user/detail";async function Oe(e){let t={accountOid:e};return await ccwAxios.post(ks,t).then(o=>o.data.body)}var vs="https://community-web.ccw.site/muted_user/detail";async function Ee(e){let t={studentNumber:e};return await ccwAxios.post(vs,t).then(o=>o.data.body)}var js="https://community-web.ccw.site/notification/page";async function Le(e="COMMENT_TO_ME",t={sortField:"createdAt"}){let o={...p,...t},r=i(js,o),s={notifyGroup:e,page:o.page};return await ccwAxios.post(r,s).then(n=>n.data.body)}var Hs="https://community-web.ccw.site/notification/stats/v2";async function Ue(e=true){let t={countAll:e};return await ccwAxios.post(Hs,t).then(o=>o.data.body)}var Vs="https://community-web.ccw.site/typical_project/page";async function _e(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Vs,o),s={studentOid:e,templateType:"APPLICATION"};return await ccwAxios.post(r,s).then(n=>n.data.body)}var Ws="https://community-web.ccw.site/typical_project/student/unread_count";async function ke(e){let t={studentOid:e};return await ccwAxios.post(Ws,t).then(o=>o.data.body)}var Ys="https://community-web.ccw.site/creation/own/page";async function Ne(e={sortField:"updatedAt"},t=["BANNED","PUBLISHED","REJECTED","SUBMITTED"],o=false){let r={...p,...e},s=i(Ys,r),n={statuses:t,ignoreTypicalProject:o};return await ccwAxios.post(s,n).then(a=>a.data.body)}var Xs="https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch";async function ve(e){let t={creationOid:e};return await ccwAxios.post(Xs,t).then(o=>o.data.body)}var Qs="https://community-web.ccw.site/creation/team_member/invite_token/fetch";async function Fe(e,t="MEMBER"){let o={creationOid:e,authority:t};return await ccwAxios.post(Qs,o).then(r=>r.data.body)}var tn="https://community-web.ccw.site/creation/team_member/produce_ticket";async function je(e){let t={creationOid:e};return await ccwAxios.post(tn,t).then(o=>o.data.body)}var rn="https://community-web.ccw.site/creation/team_member/list";async function Ge(e,t){let o={creationOid:e,authorities:t};return await ccwAxios.post(rn,o).then(r=>r.data.body)}var nn="https://community-web.ccw.site/creation/teamwork_log/page";async function He(e,t,o={sortField:"createdAt"}){let r={...p,...o},s=i(nn,r),n={creationId:e,operateTargets:t},a=await ccwAxios.post(s,n).then(m=>m.data.body),{data:c}=a,u=c.map(m=>{let{content:d}=m;return {...m,content:JSON.parse(d)}});return {...a,data:u}}var an="https://community-web.ccw.site/creation/update";async function Ke(e,t,o="LANDSCAPE",r){if(!t.includes("t=")){let a=new URL(t);a.searchParams.set("t",Date.now().toString()),t=a.toString();}let n={oid:e,latestProjectLink:t,screenMode:o,latestCoverLink:r};return await ccwAxios.post(an,n).then(a=>a.data.body)}var mn="https://community-web.ccw.site/creation/submit";async function Ve(e){return await ccwAxios.post(mn,e).then(t=>t.data.body)}var dn="https://community-web.ccw.site/creation/smart_contract/split_rule/detail";async function ze(e){let t={creationOid:e};return await ccwAxios.post(dn,t).then(o=>o.data.body)}var ln="https://community-web.ccw.site/students/bind_phone";async function We(e,t,o="86"){let r={phone:e,code:t,ruleCode:"ccw_sms",scene:"bindPhone",countryCode:o};return await ccwAxios.post(ln,r).then(s=>s.data.body)}var yn="https://community-web.ccw.site/students/password/change";async function $e(e,t){let o={newPassword:e,code:t};return await ccwAxios.post(yn,o).then(r=>r.data.body)}var xn="https://community-web.ccw.site/captcha/v2/create_by_session";async function Ye(e="change_password",t="86",o="ccw_sms",r="SMS"){let s={type:r,countryCode:t,scene:e,ruleCode:o};return await ccwAxios.post(xn,s).then(n=>n.data.body)}var fn="https://community-web.ccw.site/creation/smart_contract/split_rule/create";async function Je(e,t){let o={creationOid:e,memberSplitDetails:t};return await ccwAxios.post(fn,o).then(r=>r.data.body)}var Pn="https://community-web.ccw.site/creation_attribute/detail";async function Xe(e){let t={creationOid:e},o=await ccwAxios.post(Pn,t).then(n=>n.data.body);if(o===null)return null;let{ext:{KEYPAD_CONFIG:r}}=o,s=JSON.parse(r);return {...o,ext:{KEYPAD_CONFIG:s}}}var In="https://community-web.ccw.site/creation_activity_stats/list";async function Ze(e){let t={creationOid:e,type:"DAY"};return await ccwAxios.post(In,t).then(o=>o.data.body)}var hn="https://community-web.ccw.site/creation_release/page";async function Qe(e,t={sortField:"submittedAt"}){let o={...p,...t},r=i(hn,o),s={creationOid:e};return await ccwAxios.post(r,s).then(n=>n.data.body)}var Dn="https://community-web.ccw.site/creation_release/code_profiling/detail";async function et(e,t){let o={creationOid:e,creationReleaseOid:t};return await ccwAxios.post(Dn,o).then(r=>r.data.body)}var Mn="https://community-web.ccw.site/historical_team_member/page";async function tt(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Mn,o),s={creationOid:e,page:o.page,perPage:o.perPage};return await ccwAxios.post(r,s).then(n=>n.data.body)}var On="https://community-web.ccw.site/short_url/decompress";async function ot(e){let t={shortUrlCode:e};return await ccwAxios.post(On,t).then(o=>o.data.body)}var Ln="https://community-web.ccw.site/hash_tag/recommend/list";async function rt(){return await ccwAxios.post(Ln).then(e=>e.data.body)}var _n="https://community-web.ccw.site/ccw-main/status";async function st(){let e={};return await ccwAxios.post(_n,e).then(t=>t.data.body)}var Nn="https://community-web.ccw.site/study-community/cloud_variable/create";async function nt(e,t){let o={projectId:e,variables:t};return await ccwAxios.post(Nn,o).then(r=>r.data.body)}var Fn="https://community-web.ccw.site/study-community/comment/top";async function it(e){let t={id:e};return await ccwAxios.post(Fn,t).then(o=>o.data.body)}var Gn="https://community-web.ccw.site/study-community/comment/fold";async function pt(e){let t={id:e};return await ccwAxios.post(Gn,t).then(o=>o.data.body)}var Kn="https://community-web.ccw.site/study-community/comment/reset_weight";async function at(e){let t={id:e};return await ccwAxios.post(Kn,t).then(o=>o.data.body)}var zn="https://community-web.ccw.site/study-community/comment/delete";async function ct(e){let t={id:e};return await ccwAxios.post(zn,t).then(o=>o.data.body)}var $n="https://community-web.ccw.site/comment/create";async function mt(e,t,o){t.outline??="foo";let r={content:e,topic:t,sectionType:o};return await ccwAxios.post($n,r).then(s=>s.data.body)}var Jn="https://community-web.ccw.site/comment/like_record/create";async function ut(e){let t={commentId:e};return await ccwAxios.post(Jn,t).then(o=>o.data.body)}var Zn="https://community-web.ccw.site/student/following/page";async function dt(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Zn,o),s={studentOid:e};return await ccwAxios.post(r,s).then(n=>n.data.body)}var ei="https://community-web.ccw.site/study-trade/trade/donate";async function gt(e,t,o="CREATION"){let r={bucks:e,objectId:t,objectType:o};return await ccwAxios.post(ei,r).then(s=>s.data.body)}var oi="https://community-web.ccw.site/user_package/user_product";async function lt(e=5,t={}){let o={...p,...t},r=i(oi,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e};return await ccwAxios.post(r,s).then(n=>n.data.body)}var si="https://community-web.ccw.site/user_package/status";async function Rt(e,t){let o={status:t,id:e};return await ccwAxios.post(si,o).then(r=>r.data.body)}var ii="https://community-web.ccw.site/great_creation/update";async function yt(e){let t={creationOid:e};return await ccwAxios.post(ii,t).then(o=>o.data.body)}var ai="https://community-web.ccw.site/smart_contract/execute";async function At(e,t,o,r,s="CREATION"){let n={bizId:e,bizType:s,id:t,ruleId:o,params:{bucks:r}};return await ccwAxios.post(ai,n).then(a=>a.data.body)}var mi="https://community-web.ccw.site/smart_contract/account";async function xt(e){let t={id:e};return await ccwAxios.post(mi,t).then(o=>o.data.body)}var di="https://community-web.ccw.site/smart_contract/detail";async function bt(e){let t={id:e};return await ccwAxios.post(di,t).then(o=>o.data.body)}var li="https://community-web.ccw.site/smart_contract/list";async function ft(e,t="CREATION"){let o={bizId:e,bizType:t};return await ccwAxios.post(li,o).then(r=>r.data.body)}var yi="https://community-web.ccw.site/extensions/following/status";async function wt(e,t){let o={playingCreationOid:e,userOid:t};return await ccwAxios.post(yi,o).then(r=>r.data.body)}var xi="https://community-web.ccw.site/extensions/creation-like/detail";async function Pt(e,t){let o={playingCreationOid:e,creationOid:t};return await ccwAxios.post(xi,o).then(r=>r.data.body)}var fi="https://community-web.ccw.site/study-community/following/follow";async function Ct(e){let t={followingOid:e};return await ccwAxios.post(fi,t).then(o=>o.data.body)}var Pi="https://community-web.ccw.site/study-community/following/unfollow";async function It(e){let t={followingOid:e};return await ccwAxios.post(Pi,t).then(o=>o.data.body)}var St={acceptAward:we,bindStudentPhone:We,changeStudentPassword:$e,createCreation:B,donateTrade:gt,encodeShortCode:b,executeSmartContract:At,fetchMemberInviteToken:Fe,fetchObserverInviteToken:ve,createCloudVariable:nt,createComment:mt,createShortUrl:V,createSmsCaptchaBySession:Ye,createSplitRule:Je,decompressShortUrl:ot,deleteComment:ct,foldComment:pt,followCreator:Ct,unfollowCreator:It,getApprovalTags:f,getCampaignResources:P,getCcwMainStatus:st,getCheckInRecords:C,getCodeProfilingDetail:et,getCommentReplies:T,getCommentsByTopic:D,getConfigDetail:q,getCreationActivityStatsList:Ze,getCreationAttributeDetail:Xe,getCreationDetail:O,getCreationFavoriteDetail:Z,getCreationIntroduction:L,getConnectCommunityCreationLikeStatus:Pt,getCreationRecommendPositionList:Q,getCreationReleasePage:Qe,getCreationScreenshotPage:ee,getCreationStudentDetail:H,getCreationTags:K,getCreatorScore:ae,getDonatedRecordRanking:X,getExcellentCreations:E,getConnectCommunityFollowingStatus:wt,getEmojiCategoryList:Te,getEmojiPage:De,getAllEmojis:he,getHashTagDetail:$,getHashTagFavoriteDetail:J,getHistoricalTeamMemberPage:tt,getManagedHashTags:Y,getHealthCheck:Me,getLeafletsItemList:Be,getLikeDetail:U,getLoadingTips:_,getLockedUserDetail:Oe,getMutedUserDetail:Ee,getMyHashTagCreations:W,getMyTasks:Pe,getNotifyDeleteReasons:oe,getNotificationPage:Le,getNotificationStats:Ue,getOwnCreationPage:Ne,getPersonalCurrencyAccount:Se,getPlanetsOfCreation:z,getPostDetail:re,getPotentialCreations:v,getRecommendCreations:F,getRecommendCreators:j,getRecommendHashTags:rt,getRemixedCreationPage:k,getReputationScoreLogPage:ge,getSearchHotWords:se,getSmartContractAccount:xt,getSmartContractDetail:bt,getSmartContractList:ft,getSplitRuleDetail:ze,getSpreadFeedUnreadCount:xe,getStudentBlockRecordDetail:ne,getStudentBlockRecordList:ie,getStudentBlockStatus:pe,getStudentFollowingPage:dt,getStudentLastActiveAt:ce,getStudentProfile:de,getStudentSelfDetail:le,getStudentSessions:ue,getStudentsList:me,getStudentStats:Re,getStudyCommunityMemberDetail:Ae,getSubjectAreaPage:be,getSubjectAreaPageByChannel:fe,getTeamMemberList:Ge,getTeamworkLogPage:He,getTime:w,getTypicalProjectPage:_e,getTypicalProjectUnreadCount:ke,getUserAssetStorageSize:S,getUserCardDetail:Ce,getUserLabelList:Ie,getUserProductsPage:lt,queryMallProducts:M,getCreationsByStudent:N,insertCheckInRecord:I,likeComment:ut,produceTeamMemberTicket:je,resetCommentWeight:at,searchCloudAssets:h,searchCreationsByTag:G,sendEvent:qe,setUserProductStatus:Rt,submitCreation:Ve,topComment:it,updateCreation:Ke,updateGreatCreation:yt,updateStudent:ye,viewCreationStats:te};var Ii="https://gandi-main.ccw.site/timestamp/current";async function ht(){return await ccwAxios.get(Ii).then(e=>e.data.body)}var hi="https://gandi-main.ccw.site/bulletins";async function Tt(e="PUBLISHED",t={sortField:"publishedAt"}){let o={...p,...t},r=i(hi,{...o,status:e});return await ccwAxios.get(r).then(s=>s.data.body)}var Di="https://gandi-main.ccw.site/bulletins";async function Dt(e){return await ccwAxios.get(`${Di}/${e}`).then(t=>t.data.body)}var Mt="https://gandi-main.ccw.site/creation/leaderboards";async function Bt(e,t,o,r=""){let s={score:t,oid:o,ext:r},n=`${Mt}/${e}/records`;return await ccwAxios.post(n,s).then(a=>a.data.body)}async function Ot(e){let t=`${Mt}/${e}/records`;return await ccwAxios.get(t).then(o=>o.data.body)}var Et={getCurrentTimestamp:ht,getBulletinsPage:Tt,getBulletinDetail:Dt,submitLeaderboardRecord:Bt,getLeaderboardRecords:Ot};var Mi="https://bfs-web.ccw.site/users";async function Lt(e,t={sortField:"updatedAt"}){let o={...p,...t},r=i(`${Mi}/${e}/extensions`,o);return await ccwAxios.get(r).then(s=>s.data.body)}var Oi="https://bfs-web.ccw.site/extensions";async function Ut(e,t){let o={eid:e,bucks:t};return await ccwAxios.post(`${Oi}/${e}/donate`,o).then(r=>r.data.body)}var _t={donateExtension:Ut,getUserExtensions:Lt};var Li="https://community-web-cloud-database.ccw.site/cloud_variable/save";async function kt(e,t,o){let r={primaryKey:e,secondaryKey:t,value:o};return await ccwAxios.post(Li,r).then(s=>s.data.body)}async function Nt(e,t,o){return await kt(e,t,{v:o})}async function vt(e,t,o){let r=`${e}-u`;return await kt(r,`${t}`,o)}var _i="https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";async function Ft(e,t,o,r){let s={accessKey:e,primaryKey:t,secondaryKey:o,filterKeys:r};return await ccwAxios.post(_i,s).then(n=>n.data.body)}var jt={saveProjectCloudVariable:Nt,saveUserCloudVariable:vt,getCloudVariableDetailV2:Ft};var Ni="https://op-parent-api.xiguacity.cn/captcha/create";async function Gt(e="BLOCK_PUZZLE"){let t={type:e};return await ccwAxios.post(Ni,t).then(o=>o.data.body)}var Fi="https://op-parent-api.xiguacity.cn/captcha/check";async function Ht(e,t,o=5){let r={data:{x:t,y:o},token:e};return await ccwAxios.post(Fi,r).then(s=>s.data.body)}var Kt={createCaptcha:Gt,checkCaptcha:Ht};var jl={sso:x,communityWeb:St,gandiMain:Et,bfsWeb:_t,communityWebCloudDatabase:jt,opParentApi:Kt};
|
|
2
|
-
export{_t as bfsWeb,St as communityWeb,jt as communityWebCloudDatabase,jl as default,Et as gandiMain,Kt as opParentApi,x as sso};
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./request-CzgJtv9u.js";async function t(t=`BLOCK_PUZZLE`){let n={type:t};return await e.post(`https://op-parent-api.xiguacity.cn/captcha/create`,n).then(e=>e.data.body)}async function n(t,n,r=5){let i={data:{x:n,y:r},token:t};return await e.post(`https://op-parent-api.xiguacity.cn/captcha/check`,i).then(e=>e.data.body)}const r={createCaptcha:t,checkCaptcha:n};export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./request-CIq4GGVU.cjs");async function t(t=`BLOCK_PUZZLE`){let n={type:t};return await e.t.post(`https://op-parent-api.xiguacity.cn/captcha/create`,n).then(e=>e.data.body)}async function n(t,n,r=5){let i={data:{x:n,y:r},token:t};return await e.t.post(`https://op-parent-api.xiguacity.cn/captcha/check`,i).then(e=>e.data.body)}const r={createCaptcha:t,checkCaptcha:n};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./op-parent-api-BZbZzfJ6.cjs");exports.opParentApi=e.t;
|
package/dist/opParent.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./op-parent-api-BC6-0rS8.js";export{e as opParentApi};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare namespace pages_d_exports {
|
|
2
|
+
export { PageArgs, PagesRes, SortType };
|
|
3
|
+
}
|
|
4
|
+
type SortType = "ASC" | "DESC";
|
|
5
|
+
/**
|
|
6
|
+
* 分页参数
|
|
7
|
+
*/
|
|
8
|
+
interface PageArgs<SortField extends string> {
|
|
9
|
+
/**
|
|
10
|
+
* 当前页码
|
|
11
|
+
*/
|
|
12
|
+
page: number;
|
|
13
|
+
/**
|
|
14
|
+
* 每页数据量
|
|
15
|
+
*/
|
|
16
|
+
perPage: number;
|
|
17
|
+
/**
|
|
18
|
+
* 排序依据
|
|
19
|
+
*
|
|
20
|
+
* 这个实际上可以根据返回值的任何键排序
|
|
21
|
+
*/
|
|
22
|
+
sortField: SortField;
|
|
23
|
+
/**
|
|
24
|
+
* 排序方式
|
|
25
|
+
*
|
|
26
|
+
* ASC: 升序,
|
|
27
|
+
* DESC: 降序
|
|
28
|
+
*/
|
|
29
|
+
sortType: SortType;
|
|
30
|
+
}
|
|
31
|
+
type PagesRes<Item, SortField = string> = {
|
|
32
|
+
data: Item[];
|
|
33
|
+
offset: number;
|
|
34
|
+
page: number;
|
|
35
|
+
perPage: number;
|
|
36
|
+
sortField: SortField;
|
|
37
|
+
sortType: SortType;
|
|
38
|
+
totalNum: number;
|
|
39
|
+
totalPages: number;
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { pages_d_exports as i, PagesRes as n, SortType as r, PageArgs as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare namespace pages_d_exports {
|
|
2
|
+
export { PageArgs, PagesRes, SortType };
|
|
3
|
+
}
|
|
4
|
+
type SortType = "ASC" | "DESC";
|
|
5
|
+
/**
|
|
6
|
+
* 分页参数
|
|
7
|
+
*/
|
|
8
|
+
interface PageArgs<SortField extends string> {
|
|
9
|
+
/**
|
|
10
|
+
* 当前页码
|
|
11
|
+
*/
|
|
12
|
+
page: number;
|
|
13
|
+
/**
|
|
14
|
+
* 每页数据量
|
|
15
|
+
*/
|
|
16
|
+
perPage: number;
|
|
17
|
+
/**
|
|
18
|
+
* 排序依据
|
|
19
|
+
*
|
|
20
|
+
* 这个实际上可以根据返回值的任何键排序
|
|
21
|
+
*/
|
|
22
|
+
sortField: SortField;
|
|
23
|
+
/**
|
|
24
|
+
* 排序方式
|
|
25
|
+
*
|
|
26
|
+
* ASC: 升序,
|
|
27
|
+
* DESC: 降序
|
|
28
|
+
*/
|
|
29
|
+
sortType: SortType;
|
|
30
|
+
}
|
|
31
|
+
type PagesRes<Item, SortField = string> = {
|
|
32
|
+
data: Item[];
|
|
33
|
+
offset: number;
|
|
34
|
+
page: number;
|
|
35
|
+
perPage: number;
|
|
36
|
+
sortField: SortField;
|
|
37
|
+
sortType: SortType;
|
|
38
|
+
totalNum: number;
|
|
39
|
+
totalPages: number;
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { pages_d_exports as i, PagesRes as n, SortType as r, PageArgs as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){let n=new URL(e);return Object.entries(t).forEach(([e,t])=>{t!=null&&n.searchParams.set(e,t)}),n.toString()}const t={page:1,perPage:20,sortType:`DESC`,sortField:``};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){let n=new URL(e);return Object.entries(t).forEach(([e,t])=>{t!=null&&n.searchParams.set(e,t)}),n.toString()}const t={page:1,perPage:20,sortType:`DESC`,sortField:``};export{e as n,t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e={post(e,n=null){return t.post(e,n)},get(e){return t.get(e)}},t={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 n(e){t=e}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return e}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e={post(e,n=null){return t.post(e,n)},get(e){return t.get(e)}},t={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 n(e){t=e}export{n,e as t};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { n as MongoDBId, o as __exportAll } from "./api-DK7ohLa7.js";
|
|
2
|
+
import { t as AccountTypes } from "./account-_e06LVHE.js";
|
|
3
|
+
declare namespace session_d_exports {
|
|
4
|
+
export { LoginSession, SessionArea, StudentSession };
|
|
5
|
+
}
|
|
6
|
+
interface SessionArea {
|
|
7
|
+
city: string;
|
|
8
|
+
country: string;
|
|
9
|
+
ip: string;
|
|
10
|
+
province: string;
|
|
11
|
+
}
|
|
12
|
+
interface StudentSession {
|
|
13
|
+
area: SessionArea;
|
|
14
|
+
browser: string;
|
|
15
|
+
clientCode: "STUDY_COMMUNITY";
|
|
16
|
+
createdAt: number;
|
|
17
|
+
currentDevice: boolean;
|
|
18
|
+
device: string;
|
|
19
|
+
expireTime: number;
|
|
20
|
+
extra: string;
|
|
21
|
+
id: number;
|
|
22
|
+
ip: string;
|
|
23
|
+
lastAccessTime: number;
|
|
24
|
+
}
|
|
25
|
+
interface LoginSession<Extra = string, Token = string> {
|
|
26
|
+
accountId: -1;
|
|
27
|
+
accountObjectId: MongoDBId;
|
|
28
|
+
accountType: AccountTypes;
|
|
29
|
+
clientCode: "STUDY_COMMUNITY";
|
|
30
|
+
createdAt: number;
|
|
31
|
+
email: null;
|
|
32
|
+
expireTime: number;
|
|
33
|
+
extra: Extra;
|
|
34
|
+
id: number;
|
|
35
|
+
lastAccessTime: number;
|
|
36
|
+
orgId: "";
|
|
37
|
+
scene: null;
|
|
38
|
+
status: "ENABLED";
|
|
39
|
+
token: Token;
|
|
40
|
+
urlEncodedFullName: null;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { StudentSession as n, session_d_exports as r, LoginSession as t };
|