@ccw-api/api 0.9.1 → 0.10.1

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/index.js CHANGED
@@ -1,1502 +1 @@
1
- // src/sso/web/auth/login-by-password.ts
2
- import { ccwAxios } from "@ccw-api/axios";
3
- var url = "https://sso.ccw.site/web/auth/login-by-password";
4
- async function loginByPassword(loginKey, password, reqExtra = {
5
- device: "Node",
6
- browser: "Node.js"
7
- }) {
8
- const req = {
9
- loginKey,
10
- password,
11
- clientCode: "STUDY_COMMUNITY",
12
- extra: JSON.stringify({ ...reqExtra, scene: null })
13
- };
14
- const { extra, ...restBody } = await ccwAxios.post(url, req).then((res) => res.data.body);
15
- const resExtra = JSON.parse(extra);
16
- return {
17
- ...restBody,
18
- extra: resExtra
19
- };
20
- }
21
-
22
- // src/sso/web/auth/logout.ts
23
- import { ccwAxios as ccwAxios2 } from "@ccw-api/axios";
24
- var url2 = "https://sso.ccw.site/web/auth/logout";
25
- async function logout() {
26
- return await ccwAxios2.post(url2, {}).then((res) => res.data.body);
27
- }
28
-
29
- // src/sso/web/auth/logout_by_session.ts
30
- import { ccwAxios as ccwAxios3 } from "@ccw-api/axios";
31
- var url3 = "https://sso.ccw.site/web/auth/logout_by_session";
32
- async function logoutBySession(sessionId) {
33
- return await ccwAxios3.post(url3, { id: sessionId }).then((res) => res.data.body);
34
- }
35
-
36
- // src/sso/web/auth/assistant/captcha/v2/create.ts
37
- import { ccwAxios as ccwAxios4 } from "@ccw-api/axios";
38
- var url4 = "https://sso.ccw.site/web/auth/assistant/captcha/v2/create";
39
- async function createSmsCaptcha(recipient, scene = "loginbyPhone", countryCode = "86", ruleCode = "ccw_sms", captcha) {
40
- const req = { recipient, countryCode, scene, ruleCode, captcha };
41
- return await ccwAxios4.post(url4, req).then((res) => res.data.body);
42
- }
43
-
44
- // src/sso/web/auth/v3/login/by-phone.ts
45
- import { ccwAxios as ccwAxios5 } from "@ccw-api/axios";
46
- var url5 = "https://sso.ccw.site/web/auth/v3/login/by_phone";
47
- async function loginByPhone(phone, code, reqExtra = {
48
- device: "Node",
49
- browser: "Node.js"
50
- }, countryCode = "86", ruleCode = "ccw_sms", scene = "loginbyPhone") {
51
- const { extra, ...restBody } = await ccwAxios5.post(url5, {
52
- phone,
53
- code,
54
- countryCode,
55
- ruleCode,
56
- scene,
57
- clientCode: "STUDY_COMMUNITY",
58
- extra: JSON.stringify({ ...reqExtra, scene: null })
59
- }).then((res) => res.data.body);
60
- const resExtra = JSON.parse(extra);
61
- return {
62
- ...restBody,
63
- extra: resExtra
64
- };
65
- }
66
-
67
- // src/sso/index.ts
68
- var sso = {
69
- loginByPassword,
70
- logout,
71
- logoutBySession,
72
- createSmsCaptcha,
73
- loginByPhone
74
- };
75
-
76
- // src/community-web/api/v1/short_code/encode.ts
77
- import { ccwAxios as ccwAxios6 } from "@ccw-api/axios";
78
- var url6 = "https://community-web.ccw.site/api/v1/short_code/encode";
79
- async function encodeShortCode(inviterId, inviterAvatar, inviterName, creationOid) {
80
- const req = {
81
- origin: {
82
- inviterAvatar,
83
- inviterName,
84
- inviterId,
85
- inviterType: "STUDENT",
86
- entrance: "create_detail",
87
- creationOid
88
- }
89
- };
90
- return await ccwAxios6.post(url6, req).then((res) => res.data.body);
91
- }
92
-
93
- // src/community-web/approval/list.ts
94
- import ccwAxios7 from "@ccw-api/axios";
95
- var url7 = "https://community-web.ccw.site/approval/list";
96
- async function getApprovalTags(studentOid) {
97
- const req = {
98
- objectId: studentOid,
99
- objectType: "STUDENT"
100
- };
101
- return await ccwAxios7.post(url7, req).then((res) => res.data.body);
102
- }
103
-
104
- // src/community-web/base/dateTime.ts
105
- import ccwAxios8 from "@ccw-api/axios";
106
- var url8 = "https://community-web.ccw.site/base/dateTime";
107
- async function getTime() {
108
- return ccwAxios8.post(url8, void 0).then((res) => res.data.body);
109
- }
110
-
111
- // src/community-web/campaign_resource/detail.ts
112
- import { ccwAxios as ccwAxios9 } from "@ccw-api/axios";
113
- var url9 = "https://community-web.ccw.site/campaign_resource/detail";
114
- async function getCampaignResources(keyword) {
115
- return await ccwAxios9.post(url9, { keyword }).then((res) => res.data.body);
116
- }
117
-
118
- // src/community-web/check_in_record/detail.ts
119
- import { ccwAxios as ccwAxios10 } from "@ccw-api/axios";
120
- var url10 = "https://community-web.ccw.site/check_in_record/detail";
121
- async function getCheckInRecords() {
122
- const req = { scene: "HOMEPAGE" };
123
- return await ccwAxios10.post(url10, req).then((res) => res.data.body);
124
- }
125
-
126
- // src/community-web/check_in_record/insert.ts
127
- import { ccwAxios as ccwAxios11 } from "@ccw-api/axios";
128
- var url11 = "https://community-web.ccw.site/check_in_record/insert";
129
- async function insertCheckInRecord() {
130
- const req = { scene: "HOMEPAGE" };
131
- return await ccwAxios11.post(url11, req).then((res) => res.data.body);
132
- }
133
-
134
- // src/community-web/cloud_asset/user/privacy.ts
135
- import { ccwAxios as ccwAxios12 } from "@ccw-api/axios";
136
- var url12 = "https://community-web.ccw.site/cloud_asset/user/privacy";
137
- async function getUserAssetStorageSize() {
138
- return await ccwAxios12.post(url12, {}).then((res) => res.data.body);
139
- }
140
-
141
- // src/community-web/cloud_asset/search.ts
142
- import { ccwAxios as ccwAxios13 } from "@ccw-api/axios";
143
-
144
- // src/queryPages.ts
145
- function queryPage(url_, pageArgs) {
146
- const url124 = new URL(url_);
147
- Object.entries(pageArgs).forEach(([k, v]) => {
148
- if (v == null) {
149
- return;
150
- }
151
- url124.searchParams.set(k, v);
152
- });
153
- return url124.toString();
154
- }
155
- var DEFAULT_PAGE_ARGS = {
156
- page: 1,
157
- perPage: 20,
158
- sortType: "DESC",
159
- sortField: ""
160
- };
161
-
162
- // src/community-web/cloud_asset/search.ts
163
- var url13 = "https://community-web.ccw.site/cloud_asset/search";
164
- var dpa = {
165
- ...DEFAULT_PAGE_ARGS,
166
- sortField: "createdAt"
167
- };
168
- async function searchCloudAssets(creatorOid, path = "/", pageArgs_ = {}) {
169
- const pageArgs = {
170
- ...dpa,
171
- ...pageArgs_
172
- };
173
- const queryUrl = queryPage(url13, pageArgs);
174
- const req = { creatorOid, path };
175
- return await ccwAxios13.post(queryUrl, req).then((res) => res.data.body);
176
- }
177
-
178
- // src/community-web/comment/page.ts
179
- import { ccwAxios as ccwAxios14 } from "@ccw-api/axios";
180
- var url14 = "https://community-web.ccw.site/comment/page";
181
- async function getCommentReplies(topicId, parentId, statuses = ["PUBLISHED", "FOLDED"], pageArgs_ = {
182
- sortField: "createdAt"
183
- }) {
184
- const pageArgs = {
185
- ...DEFAULT_PAGE_ARGS,
186
- ...pageArgs_
187
- };
188
- const queryUrl = queryPage(url14, pageArgs);
189
- const req = { topicId, parentId, statuses };
190
- return await ccwAxios14.post(queryUrl, req).then((res) => res.data.body);
191
- }
192
-
193
- // src/community-web/comment/page_by_topic.ts
194
- import { ccwAxios as ccwAxios15 } from "@ccw-api/axios";
195
- var url15 = "https://community-web.ccw.site/comment/page_by_topic";
196
- var dpa2 = {
197
- ...DEFAULT_PAGE_ARGS,
198
- sortField: "createdAt"
199
- };
200
- async function getCommentsByTopic(subjectOid, subjectType, sectionType, pageArgs_ = {
201
- sortField: "createdAt"
202
- }) {
203
- const pageArgs = {
204
- ...dpa2,
205
- ...pageArgs_
206
- };
207
- const queryUrl = queryPage(url15, pageArgs);
208
- const req = { subjectOid, subjectType, sectionType };
209
- return await ccwAxios15.post(queryUrl, req).then((res) => res.data.body);
210
- }
211
-
212
- // src/community-web/config/detail.ts
213
- import { ccwAxios as ccwAxios16 } from "@ccw-api/axios";
214
- var url16 = "https://community-web.ccw.site/config/detail";
215
- async function getConfigDetail(key) {
216
- const req = { key };
217
- return await ccwAxios16.post(url16, req).then((res) => res.data.body);
218
- }
219
-
220
- // src/community-web/ccw-mall/ccw/product/fe/query.ts
221
- import { ccwAxios as ccwAxios17 } from "@ccw-api/axios";
222
- var url17 = "https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";
223
- async function queryMallProducts(productCategory, pageArgs_ = {
224
- sortField: "createdAt"
225
- }) {
226
- const pageArgs = {
227
- ...DEFAULT_PAGE_ARGS,
228
- ...pageArgs_
229
- };
230
- const queryUrl = queryPage(url17, pageArgs);
231
- const req = {
232
- page: pageArgs.page,
233
- perPage: pageArgs.perPage,
234
- sortType: pageArgs.sortType,
235
- productCategory,
236
- source: "CCW_OFFICIAL"
237
- };
238
- return await ccwAxios17.post(queryUrl, req).then((res) => res.data.body);
239
- }
240
-
241
- // src/community-web/creation/detail.ts
242
- import { ccwAxios as ccwAxios18 } from "@ccw-api/axios";
243
- var url18 = "https://community-web.ccw.site/creation/detail";
244
- async function getCreationDetail(oid, accessKey, mode = "") {
245
- const req = { oid, accessKey, mode };
246
- return await ccwAxios18.post(url18, req).then((res) => res.data.body);
247
- }
248
-
249
- // src/community-web/creation/excellent/list.ts
250
- import { ccwAxios as ccwAxios19 } from "@ccw-api/axios";
251
- var url19 = "https://community-web.ccw.site/creation/excellent/list";
252
- async function getExcellentCreations(num) {
253
- const req = { num };
254
- return await ccwAxios19.post(url19, req).then((res) => res.data.body);
255
- }
256
-
257
- // src/community-web/creation/introduction/detail.ts
258
- import { ccwAxios as ccwAxios20 } from "@ccw-api/axios";
259
- var url20 = "https://community-web.ccw.site/creation/introduction/detail";
260
- async function getCreationIntroduction(studentOid) {
261
- const req = { studentOid };
262
- return await ccwAxios20.post(url20, req).then((res) => res.data.body);
263
- }
264
-
265
- // src/community-web/creation/like/detail.ts
266
- import { ccwAxios as ccwAxios21 } from "@ccw-api/axios";
267
- var url21 = "https://community-web.ccw.site/creation/like/detail";
268
- async function getLikeDetail(creationOid) {
269
- const req = { creationOid };
270
- return await ccwAxios21.post(url21, req).then((res) => res.data.body);
271
- }
272
-
273
- // src/community-web/creation/loading/tips.ts
274
- import { ccwAxios as ccwAxios22 } from "@ccw-api/axios";
275
- var url22 = "https://community-web.ccw.site/creation/loading/tips";
276
- async function getLoadingTips() {
277
- return await ccwAxios22.post(url22, {}).then((res) => res.data.body);
278
- }
279
-
280
- // src/community-web/creation/page.ts
281
- import { ccwAxios as ccwAxios23 } from "@ccw-api/axios";
282
- var url23 = "https://community-web.ccw.site/creation/page";
283
- var dpa3 = {
284
- ...DEFAULT_PAGE_ARGS,
285
- sortField: "createdAt"
286
- };
287
- async function getRemixedCreationPage(originCreationOids, pageArgs_ = {}) {
288
- const pageArgs = {
289
- ...dpa3,
290
- ...pageArgs_
291
- };
292
- const queryUrl = queryPage(url23, pageArgs);
293
- const req = { remixCreationOids: originCreationOids };
294
- return await ccwAxios23.post(queryUrl, req).then((res) => res.data.body);
295
- }
296
-
297
- // src/community-web/creation/page_by_student.ts
298
- import { ccwAxios as ccwAxios24 } from "@ccw-api/axios";
299
- var url24 = "https://community-web.ccw.site/creation/page_by_student";
300
- var dpa4 = {
301
- ...DEFAULT_PAGE_ARGS,
302
- sortField: "createdAt"
303
- };
304
- async function getCreationsByStudent(studentOids, pageArgs_ = {}) {
305
- const pageArgs = {
306
- ...dpa4,
307
- ...pageArgs_
308
- };
309
- const queryUrl = queryPage(url24, pageArgs);
310
- const req = { studentOids };
311
- return await ccwAxios24.post(queryUrl, req).then((res) => res.data.body);
312
- }
313
-
314
- // src/community-web/creation/potential/list.ts
315
- import { ccwAxios as ccwAxios25 } from "@ccw-api/axios";
316
- var url25 = "https://community-web.ccw.site/creation/potential/list";
317
- async function getPotentialCreations(num) {
318
- const req = { num };
319
- return await ccwAxios25.post(url25, req).then((res) => res.data.body);
320
- }
321
-
322
- // src/community-web/creation/recommend.ts
323
- import { ccwAxios as ccwAxios26 } from "@ccw-api/axios";
324
- var url26 = "https://community-web.ccw.site/creation/recommend";
325
- var dpa5 = {
326
- ...DEFAULT_PAGE_ARGS,
327
- sortField: "createdAt"
328
- };
329
- async function getRecommendCreations(num, pageArgs_ = {}) {
330
- const pageArgs = {
331
- ...dpa5,
332
- ...pageArgs_
333
- };
334
- const queryUrl = queryPage(url26, pageArgs);
335
- const req = { num, subjectType: "POTENTIAL" };
336
- return await ccwAxios26.post(queryUrl, req).then((res) => res.data.body);
337
- }
338
-
339
- // src/community-web/recommend_creator/list.ts
340
- import { ccwAxios as ccwAxios27 } from "@ccw-api/axios";
341
- var url27 = "https://community-web.ccw.site/recommend_creator/list";
342
- async function getRecommendCreators(excellentCount = 4, potentialCount = 8) {
343
- const req = { excellentCount, potentialCount };
344
- return await ccwAxios27.post(url27, req).then((res) => res.data.body);
345
- }
346
-
347
- // src/community-web/creation/search/page.ts
348
- import { ccwAxios as ccwAxios28 } from "@ccw-api/axios";
349
- var url28 = "https://community-web.ccw.site/creation/search/page";
350
- var dpa6 = {
351
- ...DEFAULT_PAGE_ARGS,
352
- sortField: "createdAt"
353
- };
354
- async function searchCreationsByTag(req, pageArgs_ = {}) {
355
- const pageArgs = {
356
- ...dpa6,
357
- ...pageArgs_
358
- };
359
- const queryUrl = queryPage(url28, pageArgs);
360
- return await ccwAxios28.post(queryUrl, req).then((res) => res.data.body);
361
- }
362
-
363
- // src/community-web/creation/student/detail.ts
364
- import { ccwAxios as ccwAxios29 } from "@ccw-api/axios";
365
- var url29 = "https://community-web.ccw.site/creation/student/detail";
366
- async function getCreationStudentDetail(studentOid) {
367
- const req = { studentOid };
368
- return await ccwAxios29.post(url29, req).then((res) => res.data.body);
369
- }
370
-
371
- // src/community-web/creation/tag/list.ts
372
- import { ccwAxios as ccwAxios30 } from "@ccw-api/axios";
373
- var url30 = "https://community-web.ccw.site/creation/tag/list";
374
- async function getCreationTags() {
375
- const req = { visibility: "PUBLIC" };
376
- return await ccwAxios30.post(url30, req).then((res) => res.data.body);
377
- }
378
-
379
- // src/community-web/short_url/create.ts
380
- import { ccwAxios as ccwAxios31 } from "@ccw-api/axios";
381
- var url31 = "https://community-web.ccw.site/short_url/create";
382
- async function createShortUrl(originUrl) {
383
- const req = {
384
- originUrl
385
- };
386
- return await ccwAxios31.post(url31, req).then((res) => res.data.body);
387
- }
388
-
389
- // src/community-web/hash_tag_creation/list_relation.ts
390
- import { ccwAxios as ccwAxios32 } from "@ccw-api/axios";
391
- var url32 = "https://community-web.ccw.site/hash_tag_creation/list_relation";
392
- async function getPlanetsOfCreation(creationOid) {
393
- const req = { creationOid };
394
- return await ccwAxios32.post(url32, req).then((res) => res.data.body);
395
- }
396
-
397
- // src/community-web/hash_tag_creation/mine.ts
398
- import { ccwAxios as ccwAxios33 } from "@ccw-api/axios";
399
- var url33 = "https://community-web.ccw.site/hash_tag_creation/mine";
400
- var dpa7 = {
401
- ...DEFAULT_PAGE_ARGS,
402
- sortField: "lastPassedAt"
403
- };
404
- async function getMyHashTagCreations(excludeHashTag, statuses, pageArgs_ = {}) {
405
- const pageArgs = {
406
- ...dpa7,
407
- ...pageArgs_
408
- };
409
- const queryUrl = queryPage(url33, pageArgs);
410
- const req = {
411
- ...pageArgs,
412
- excludeHashTag,
413
- statuses
414
- };
415
- return await ccwAxios33.post(queryUrl, req).then((res) => res.data.body);
416
- }
417
-
418
- // src/community-web/hash_tag/detail.ts
419
- import { ccwAxios as ccwAxios34 } from "@ccw-api/axios";
420
- var url34 = "https://community-web.ccw.site/hash_tag/detail";
421
- async function getHashTagDetail(identifier) {
422
- const req = { identifier };
423
- return await ccwAxios34.post(url34, req).then((res) => res.data.body);
424
- }
425
-
426
- // src/community-web/hash_tag/managed/list.ts
427
- import { ccwAxios as ccwAxios35 } from "@ccw-api/axios";
428
- var url35 = "https://community-web.ccw.site/hash_tag/managed/list";
429
- var dpa8 = {
430
- ...DEFAULT_PAGE_ARGS,
431
- sortField: "createdAt"
432
- };
433
- async function getManagedHashTags(studentOid, excludeHashTagIds = [], pageArgs_ = {}) {
434
- const pageArgs = {
435
- ...dpa8,
436
- ...pageArgs_
437
- };
438
- const queryUrl = queryPage(url35, pageArgs);
439
- const req = {
440
- ...pageArgs,
441
- studentOid,
442
- excludeHashTagIds
443
- };
444
- return await ccwAxios35.post(queryUrl, req).then((res) => res.data.body);
445
- }
446
-
447
- // src/community-web/hash_tag_favorite/detail.ts
448
- import { ccwAxios as ccwAxios36 } from "@ccw-api/axios";
449
- var url36 = "https://community-web.ccw.site/hash_tag_favorite/detail";
450
- async function getHashTagFavoriteDetail(hashTagId) {
451
- const req = { hashTagId };
452
- return await ccwAxios36.post(url36, req).then((res) => res.data.body);
453
- }
454
-
455
- // src/community-web/creation_donated_record/ranking_list.ts
456
- import { ccwAxios as ccwAxios37 } from "@ccw-api/axios";
457
- var url37 = "https://community-web.ccw.site/creation_donated_record/ranking_list";
458
- async function getDonatedRecordRanking(creationOid, pageArgs_ = {
459
- sortField: "createdAt"
460
- }) {
461
- const pageArgs = {
462
- ...DEFAULT_PAGE_ARGS,
463
- ...pageArgs_
464
- };
465
- const queryUrl = queryPage(url37, pageArgs);
466
- const req = { creationOid };
467
- return await ccwAxios37.post(queryUrl, req).then((res) => res.data.body);
468
- }
469
-
470
- // src/community-web/creation_favorite/detail.ts
471
- import { ccwAxios as ccwAxios38 } from "@ccw-api/axios";
472
- var url38 = "https://community-web.ccw.site/creation_favorite/detail";
473
- async function getCreationFavoriteDetail(creationOid) {
474
- const req = { creationOid };
475
- return await ccwAxios38.post(url38, req).then((res) => res.data.body);
476
- }
477
-
478
- // src/community-web/creation_recommend_position/list.ts
479
- import { ccwAxios as ccwAxios39 } from "@ccw-api/axios";
480
- var url39 = "https://community-web.ccw.site/creation_recommend_position/list";
481
- async function getCreationRecommendPositionList(creationOid) {
482
- const req = { creationOid };
483
- return await ccwAxios39.post(url39, req).then((res) => res.data.body);
484
- }
485
-
486
- // src/community-web/creation_screenshot/page.ts
487
- import { ccwAxios as ccwAxios40 } from "@ccw-api/axios";
488
- var url40 = "https://community-web.ccw.site/creation_screenshot/page";
489
- async function getCreationScreenshotPage(subjectOid, pageArgs_ = {}) {
490
- const pageArgs = {
491
- ...DEFAULT_PAGE_ARGS,
492
- ...pageArgs_
493
- };
494
- const queryUrl = queryPage(url40, pageArgs);
495
- const req = { subjectOid };
496
- return await ccwAxios40.post(queryUrl, req).then((res) => res.data.body);
497
- }
498
-
499
- // src/community-web/creation_stats/view.ts
500
- import { ccwAxios as ccwAxios41 } from "@ccw-api/axios";
501
- var url41 = "https://community-web.ccw.site/creation_stats/view";
502
- async function viewCreationStats(oid, inviteCode = "") {
503
- const req = { oid, inviteCode };
504
- return await ccwAxios41.post(url41, req).then((res) => res.data.body);
505
- }
506
-
507
- // src/community-web/notify_message/show.ts
508
- import { ccwAxios as ccwAxios42 } from "@ccw-api/axios";
509
- var url42 = "https://community-web.ccw.site/notify_message/show";
510
- async function getNotifyDeleteReasons() {
511
- const req = { type: "COMMENT_AUDIT" };
512
- return await ccwAxios42.post(url42, req).then((res) => res.data.body);
513
- }
514
-
515
- // src/community-web/post/detail.ts
516
- import { ccwAxios as ccwAxios43 } from "@ccw-api/axios";
517
- var url43 = "https://community-web.ccw.site/post/detail";
518
- async function getPostDetail(slug) {
519
- const req = { slug };
520
- return await ccwAxios43.post(url43, req).then((res) => res.data.body);
521
- }
522
-
523
- // src/community-web/search/hot_words.ts
524
- import { ccwAxios as ccwAxios44 } from "@ccw-api/axios";
525
- var url44 = "https://community-web.ccw.site/search/hot_words";
526
- async function getSearchHotWords(length) {
527
- const req = { length };
528
- return await ccwAxios44.post(url44, req).then((res) => res.data.body);
529
- }
530
-
531
- // src/community-web/student/block_record/detail.ts
532
- import { ccwAxios as ccwAxios45 } from "@ccw-api/axios";
533
- var url45 = "https://community-web.ccw.site/student/block_record/detail";
534
- async function getStudentBlockRecordDetail(studentOid) {
535
- const req = { studentOid };
536
- return await ccwAxios45.post(url45, req).then((res) => res.data.body);
537
- }
538
-
539
- // src/community-web/student/block_record/list.ts
540
- import { ccwAxios as ccwAxios46 } from "@ccw-api/axios";
541
- var url46 = "https://community-web.ccw.site/student/block_record/list";
542
- async function getStudentBlockRecordList(pageArgs_ = {
543
- sortField: "createdAt"
544
- }) {
545
- const pageArgs = {
546
- ...DEFAULT_PAGE_ARGS,
547
- ...pageArgs_
548
- };
549
- const queryUrl = queryPage(url46, pageArgs);
550
- const req = {};
551
- return await ccwAxios46.post(queryUrl, req).then((res) => res.data.body);
552
- }
553
-
554
- // src/community-web/student/block_record/status.ts
555
- import { ccwAxios as ccwAxios47 } from "@ccw-api/axios";
556
- var url47 = "https://community-web.ccw.site/student/block_record/status";
557
- async function getStudentBlockStatus(studentOid) {
558
- const req = { studentOid };
559
- return await ccwAxios47.post(url47, req).then((res) => res.data.body);
560
- }
561
-
562
- // src/community-web/students/creator_score.ts
563
- import { ccwAxios as ccwAxios48 } from "@ccw-api/axios";
564
- var url48 = "https://community-web.ccw.site/students/creator_score";
565
- async function getCreatorScore() {
566
- const req = void 0;
567
- return await ccwAxios48.post(url48, req).then((res) => res.data.body);
568
- }
569
-
570
- // src/community-web/students/last_active_at.ts
571
- import { ccwAxios as ccwAxios49 } from "@ccw-api/axios";
572
- var url49 = "https://community-web.ccw.site/students/last_active_at";
573
- async function getStudentLastActiveAt(studentOid) {
574
- const req = { studentOid };
575
- return await ccwAxios49.post(url49, req).then((res) => res.data.body);
576
- }
577
-
578
- // src/community-web/students/list.ts
579
- import { ccwAxios as ccwAxios50 } from "@ccw-api/axios";
580
- var url50 = "https://community-web.ccw.site/students/list";
581
- async function getStudentsList(studentOids) {
582
- const req = { studentOids };
583
- return await ccwAxios50.post(url50, req).then((res) => res.data.body);
584
- }
585
-
586
- // src/community-web/students/list_sessions.ts
587
- import { ccwAxios as ccwAxios51 } from "@ccw-api/axios";
588
- var url51 = "https://community-web.ccw.site/students/list_sessions";
589
- async function getStudentSessions(pageArgs_ = {
590
- sortField: "createdAt"
591
- }) {
592
- const pageArgs = {
593
- ...DEFAULT_PAGE_ARGS,
594
- ...pageArgs_
595
- };
596
- const queryUrl = queryPage(url51, pageArgs);
597
- const req = {};
598
- return await ccwAxios51.post(queryUrl, req).then((res) => res.data.body);
599
- }
600
-
601
- // src/community-web/students/profile.ts
602
- import { ccwAxios as ccwAxios52 } from "@ccw-api/axios";
603
- var url52 = "https://community-web.ccw.site/students/profile";
604
- async function getStudentProfile(studentOid) {
605
- const req = { studentOid };
606
- return await ccwAxios52.post(url52, req).then((res) => res.data.body);
607
- }
608
-
609
- // src/community-web/students/reputation_score_log/page.ts
610
- import { ccwAxios as ccwAxios53 } from "@ccw-api/axios";
611
- var url53 = "https://community-web.ccw.site/students/reputation_score_log/page";
612
- async function getReputationScoreLog(pageArgs_ = {
613
- sortField: "createdAt"
614
- }) {
615
- const pageArgs = {
616
- ...DEFAULT_PAGE_ARGS,
617
- ...pageArgs_
618
- };
619
- const queryUrl = queryPage(url53, pageArgs);
620
- const req = {};
621
- return await ccwAxios53.post(queryUrl, req).then((res) => res.data.body);
622
- }
623
-
624
- // src/community-web/students/self/detail.ts
625
- import { ccwAxios as ccwAxios54 } from "@ccw-api/axios";
626
- var url54 = "https://community-web.ccw.site/students/self/detail";
627
- async function getStudentSelfDetail(needGrade, needExtraInfo, fields) {
628
- const req = { needGrade, needExtraInfo, fields };
629
- return await ccwAxios54.post(url54, req).then((res) => res.data.body);
630
- }
631
-
632
- // src/community-web/students/stats.ts
633
- import { ccwAxios as ccwAxios55 } from "@ccw-api/axios";
634
- var url55 = "https://community-web.ccw.site/students/stats";
635
- async function getStudentStats(studentOid) {
636
- const req = { studentOid };
637
- return await ccwAxios55.post(url55, req).then((res) => res.data.body);
638
- }
639
-
640
- // src/community-web/students/update.ts
641
- import { ccwAxios as ccwAxios56 } from "@ccw-api/axios";
642
- var url56 = "https://community-web.ccw.site/students/update";
643
- async function updateStudent(gender, hideGender, fullName, birthday, programmingCapability, school, qq, hobbies, learnedProgrammingLanguages) {
644
- const req = {
645
- gender,
646
- hideGender,
647
- fullName,
648
- birthday,
649
- programmingCapability,
650
- school,
651
- qq,
652
- hobbies,
653
- learnedProgrammingLanguages
654
- };
655
- return await ccwAxios56.post(url56, req).then((res) => res.data.body);
656
- }
657
-
658
- // src/community-web/study-community/member/detail.ts
659
- import { ccwAxios as ccwAxios57 } from "@ccw-api/axios";
660
- var url57 = "https://community-web.ccw.site/study-community/member/detail";
661
- async function getStudyCommunityMemberDetail() {
662
- const req = {};
663
- return await ccwAxios57.post(url57, req).then((res) => res.data.body);
664
- }
665
-
666
- // src/community-web/study-community/spread_feed/unread/count.ts
667
- import { ccwAxios as ccwAxios58 } from "@ccw-api/axios";
668
- var url58 = "https://community-web.ccw.site/study-community/spread_feed/unread/count";
669
- async function getSpreadFeedUnreadCount(studentOid) {
670
- const req = { studentOid };
671
- return await ccwAxios58.post(url58, req).then((res) => res.data.body);
672
- }
673
-
674
- // src/community-web/subject_area/page.ts
675
- import { ccwAxios as ccwAxios59 } from "@ccw-api/axios";
676
- var url59 = "https://community-web.ccw.site/subject_area/page";
677
- async function getSubjectAreaPage(scene, pageArgs_ = {
678
- sortField: "createdAt"
679
- }) {
680
- const pageArgs = {
681
- ...DEFAULT_PAGE_ARGS,
682
- ...pageArgs_
683
- };
684
- const queryUrl = queryPage(url59, pageArgs);
685
- const req = { scene };
686
- return await ccwAxios59.post(queryUrl, req).then((res) => res.data.body);
687
- }
688
-
689
- // src/community-web/subject_area/page_by_channel.ts
690
- import { ccwAxios as ccwAxios60 } from "@ccw-api/axios";
691
- var url60 = "https://community-web.ccw.site/subject_area/page_by_channel";
692
- async function getSubjectAreaPageByChannel(channel, pageArgs_ = {
693
- sortField: "campaignResourceId"
694
- }) {
695
- const pageArgs = {
696
- ...DEFAULT_PAGE_ARGS,
697
- ...pageArgs_
698
- };
699
- const queryUrl = queryPage(url60, pageArgs);
700
- const req = { channel, scene: "CUSTOM_PAGE" };
701
- return await ccwAxios60.post(queryUrl, req).then((res) => res.data.body);
702
- }
703
-
704
- // src/community-web/task/award.ts
705
- import { ccwAxios as ccwAxios61 } from "@ccw-api/axios";
706
- var url61 = "https://community-web.ccw.site/task/award";
707
- async function acceptAward(taskOid) {
708
- const req = { taskOid };
709
- return await ccwAxios61.post(url61, req).then((res) => res.data.body);
710
- }
711
-
712
- // src/community-web/task/mine.ts
713
- import { ccwAxios as ccwAxios62 } from "@ccw-api/axios";
714
- var url62 = "https://community-web.ccw.site/task/mine";
715
- async function getMyTasks() {
716
- const req = { scene: "checkIn" };
717
- return await ccwAxios62.post(url62, req).then((res) => res.data.body);
718
- }
719
-
720
- // src/community-web/user-card/detail.ts
721
- import { ccwAxios as ccwAxios63 } from "@ccw-api/axios";
722
- var url63 = "https://community-web.ccw.site/user-card/detail";
723
- async function getUserCardDetail(oid) {
724
- const req = { oid };
725
- return await ccwAxios63.post(url63, req).then((res) => res.data.body);
726
- }
727
-
728
- // src/community-web/user_label/list.ts
729
- import { ccwAxios as ccwAxios64 } from "@ccw-api/axios";
730
- var url64 = "https://community-web.ccw.site/user_label/list";
731
- async function getUserLabelList() {
732
- const req = {};
733
- return await ccwAxios64.post(url64, req).then((res) => res.data.body);
734
- }
735
-
736
- // src/community-web/currency/account/personal.ts
737
- import { ccwAxios as ccwAxios65 } from "@ccw-api/axios";
738
- var url65 = "https://community-web.ccw.site/currency/account/personal";
739
- async function getPersonalCurrencyAccount() {
740
- return await ccwAxios65.post(url65).then((res) => res.data.body);
741
- }
742
-
743
- // src/community-web/emoji/all.ts
744
- import { ccwAxios as ccwAxios66 } from "@ccw-api/axios";
745
- var url66 = "https://community-web.ccw.site/emoji/all";
746
- async function getAllEmojis() {
747
- return await ccwAxios66.post(url66, {}).then((res) => res.data.body);
748
- }
749
-
750
- // src/community-web/emoji/category/list.ts
751
- import { ccwAxios as ccwAxios67 } from "@ccw-api/axios";
752
- var url67 = "https://community-web.ccw.site/emoji/category/list";
753
- async function getEmojiCategoryList() {
754
- return await ccwAxios67.post(url67, {}).then((res) => res.data.body);
755
- }
756
-
757
- // src/community-web/emoji/page.ts
758
- import { ccwAxios as ccwAxios68 } from "@ccw-api/axios";
759
- var url68 = "https://community-web.ccw.site/emoji/page";
760
- async function getEmojiPage(status = "ENABLED", pageArgs_ = {
761
- sortField: "createdAt"
762
- }) {
763
- const pageArgs = { ...DEFAULT_PAGE_ARGS, ...pageArgs_ };
764
- const queryUrl = queryPage(url68, pageArgs);
765
- const req = {
766
- page: pageArgs.page,
767
- perPage: pageArgs.perPage,
768
- status
769
- };
770
- return await ccwAxios68.post(queryUrl, req).then((res) => res.data.body);
771
- }
772
-
773
- // src/community-web/event.ts
774
- import { ccwAxios as ccwAxios69 } from "@ccw-api/axios";
775
- var url69 = "https://community-web.ccw.site/event";
776
- async function sendEvent(actionId) {
777
- const req = { actionId };
778
- return await ccwAxios69.post(url69, req).then((res) => res.data.body);
779
- }
780
-
781
- // src/community-web/health/check.ts
782
- import { ccwAxios as ccwAxios70 } from "@ccw-api/axios";
783
- var url70 = "https://community-web.ccw.site/health/check";
784
- async function healthCheck() {
785
- return await ccwAxios70.post(url70).then((res) => res.data.body);
786
- }
787
-
788
- // src/community-web/leaflets/item/list.ts
789
- import { ccwAxios as ccwAxios71 } from "@ccw-api/axios";
790
- var url71 = "https://community-web.ccw.site/leaflets/item/list";
791
- async function getLeafletsItemList(advertisementId) {
792
- const req = { advertisementId };
793
- return await ccwAxios71.post(url71, req).then((res) => res.data.body);
794
- }
795
-
796
- // src/community-web/locked_user/detail.ts
797
- import { ccwAxios as ccwAxios72 } from "@ccw-api/axios";
798
- var url72 = "https://community-web.ccw.site/locked_user/detail";
799
- async function getLockedUserDetail(accountOid) {
800
- const req = { accountOid };
801
- return await ccwAxios72.post(url72, req).then((res) => res.data.body);
802
- }
803
-
804
- // src/community-web/muted_user/detail.ts
805
- import { ccwAxios as ccwAxios73 } from "@ccw-api/axios";
806
- var url73 = "https://community-web.ccw.site/muted_user/detail";
807
- async function getMutedUserDetail(studentNumber) {
808
- const req = { studentNumber };
809
- return await ccwAxios73.post(url73, req).then((res) => res.data.body);
810
- }
811
-
812
- // src/community-web/notification/page.ts
813
- import { ccwAxios as ccwAxios74 } from "@ccw-api/axios";
814
- var url74 = "https://community-web.ccw.site/notification/page";
815
- async function getNotificationPage(notifyGroup = "COMMENT_TO_ME" /* CommentToMe */, pageArgs_ = {
816
- sortField: "createdAt"
817
- }) {
818
- const pageArgs = { ...DEFAULT_PAGE_ARGS, ...pageArgs_ };
819
- const queryUrl = queryPage(url74, pageArgs);
820
- const req = {
821
- notifyGroup,
822
- page: pageArgs.page
823
- };
824
- return await ccwAxios74.post(queryUrl, req).then((res) => res.data.body);
825
- }
826
-
827
- // src/community-web/notification/stats/v2.ts
828
- import { ccwAxios as ccwAxios75 } from "@ccw-api/axios";
829
- var url75 = "https://community-web.ccw.site/notification/stats/v2";
830
- async function getNotificationStats(countAll = true) {
831
- const req = { countAll };
832
- return await ccwAxios75.post(url75, req).then((res) => res.data.body);
833
- }
834
-
835
- // src/community-web/typical_project/page.ts
836
- import { ccwAxios as ccwAxios76 } from "@ccw-api/axios";
837
- var url76 = "https://community-web.ccw.site/typical_project/page";
838
- async function getTypicalProjectPage(studentOid, pageArgs_ = {
839
- sortField: "createdAt"
840
- }) {
841
- const pageArgs = {
842
- ...DEFAULT_PAGE_ARGS,
843
- ...pageArgs_
844
- };
845
- const queryUrl = queryPage(url76, pageArgs);
846
- const req = {
847
- studentOid,
848
- templateType: "APPLICATION"
849
- };
850
- return await ccwAxios76.post(queryUrl, req).then((res) => res.data.body);
851
- }
852
-
853
- // src/community-web/typical_project/student/unread_count.ts
854
- import { ccwAxios as ccwAxios77 } from "@ccw-api/axios";
855
- var url77 = "https://community-web.ccw.site/typical_project/student/unread_count";
856
- async function getTypicalProjectUnreadCount(studentOid) {
857
- const req = { studentOid };
858
- return await ccwAxios77.post(url77, req).then((res) => res.data.body);
859
- }
860
-
861
- // src/community-web/creation/own/page.ts
862
- import { ccwAxios as ccwAxios78 } from "@ccw-api/axios";
863
- var url78 = "https://community-web.ccw.site/creation/own/page";
864
- async function getOwnCreationPage(pageArgs_ = {
865
- sortField: "updatedAt"
866
- }, statuses = ["BANNED", "PUBLISHED", "REJECTED", "SUBMITTED"], ignoreTypicalProject = false) {
867
- const pageArgs = {
868
- ...DEFAULT_PAGE_ARGS,
869
- ...pageArgs_
870
- };
871
- const queryUrl = queryPage(url78, pageArgs);
872
- const req = {
873
- statuses,
874
- ignoreTypicalProject
875
- };
876
- return await ccwAxios78.post(queryUrl, req).then((res) => res.data.body);
877
- }
878
-
879
- // src/community-web/creation/team_member/produce_ticket.ts
880
- import { ccwAxios as ccwAxios79 } from "@ccw-api/axios";
881
- var url79 = "https://community-web.ccw.site/creation/team_member/produce_ticket";
882
- async function produceTeamMemberTicket(creationOid) {
883
- const req = { creationOid };
884
- return await ccwAxios79.post(url79, req).then((res) => res.data.body);
885
- }
886
-
887
- // src/community-web/creation/team_member/list.ts
888
- import { ccwAxios as ccwAxios80 } from "@ccw-api/axios";
889
- var url80 = "https://community-web.ccw.site/creation/team_member/list";
890
- async function getTeamMemberList(creationOid, authorities) {
891
- const req = { creationOid, authorities };
892
- return await ccwAxios80.post(url80, req).then((res) => res.data.body);
893
- }
894
-
895
- // src/community-web/creation/teamwork_log/page.ts
896
- import { ccwAxios as ccwAxios81 } from "@ccw-api/axios";
897
- var url81 = "https://community-web.ccw.site/creation/teamwork_log/page";
898
- async function getTeamworkLogPage(creationId, operateTargets, pageArgs_ = {
899
- sortField: "createdAt"
900
- }) {
901
- const pageArgs = {
902
- ...DEFAULT_PAGE_ARGS,
903
- ...pageArgs_
904
- };
905
- const queryUrl = queryPage(url81, pageArgs);
906
- const req = {
907
- creationId,
908
- operateTargets
909
- };
910
- const res = await ccwAxios81.post(queryUrl, req).then((res2) => res2.data.body);
911
- const { data: logs } = res;
912
- const parsedLogs = logs.map((l) => {
913
- const { content } = l;
914
- return {
915
- ...l,
916
- content: JSON.parse(content)
917
- };
918
- });
919
- return {
920
- ...res,
921
- data: parsedLogs
922
- };
923
- }
924
-
925
- // src/community-web/creation/update.ts
926
- import { ccwAxios as ccwAxios82 } from "@ccw-api/axios";
927
- var url82 = "https://community-web.ccw.site/creation/update";
928
- async function updateCreation(oid, latestProjectLink_, screenMode = "LANDSCAPE", latestCoverLink) {
929
- if (!latestProjectLink_.includes("t=")) {
930
- const url124 = new URL(latestProjectLink_);
931
- url124.searchParams.set("t", Date.now().toString());
932
- latestProjectLink_ = url124.toString();
933
- }
934
- const latestProjectLink = latestProjectLink_;
935
- const req = { oid, latestProjectLink, screenMode, latestCoverLink };
936
- return await ccwAxios82.post(url82, req).then((res) => res.data.body);
937
- }
938
-
939
- // src/community-web/creation/submit.ts
940
- import { ccwAxios as ccwAxios83 } from "@ccw-api/axios";
941
- var url83 = "https://community-web.ccw.site/creation/submit";
942
- async function submitCreation(req) {
943
- return await ccwAxios83.post(url83, req).then((res) => res.data.body);
944
- }
945
-
946
- // src/community-web/creation/smart_contract/split_rule/detail.ts
947
- import { ccwAxios as ccwAxios84 } from "@ccw-api/axios";
948
- var url84 = "https://community-web.ccw.site/creation/smart_contract/split_rule/detail";
949
- async function getSplitRuleDetail(creationOid) {
950
- const req = { creationOid };
951
- return await ccwAxios84.post(url84, req).then((res) => res.data.body);
952
- }
953
-
954
- // src/community-web/creation/smart_contract/split_rule/create.ts
955
- import { ccwAxios as ccwAxios85 } from "@ccw-api/axios";
956
- var url85 = "https://community-web.ccw.site/creation/smart_contract/split_rule/create";
957
- async function createSplitRule(creationOid, memberSplitDetails) {
958
- const req = { creationOid, memberSplitDetails };
959
- return await ccwAxios85.post(url85, req).then((res) => res.data.body);
960
- }
961
-
962
- // src/community-web/creation_attribute/detail.ts
963
- import { ccwAxios as ccwAxios86 } from "@ccw-api/axios";
964
- var url86 = "https://community-web.ccw.site/creation_attribute/detail";
965
- async function getCreationAttributeDetail(creationOid) {
966
- const req = { creationOid };
967
- const dat = await ccwAxios86.post(url86, req).then((res) => res.data.body);
968
- if (dat === null) {
969
- return null;
970
- }
971
- const {
972
- ext: { KEYPAD_CONFIG: kc }
973
- } = dat;
974
- const parsedKC = JSON.parse(kc);
975
- return {
976
- ...dat,
977
- ext: {
978
- KEYPAD_CONFIG: parsedKC
979
- }
980
- };
981
- }
982
-
983
- // src/community-web/creation_activity_stats/list.ts
984
- import { ccwAxios as ccwAxios87 } from "@ccw-api/axios";
985
- var url87 = "https://community-web.ccw.site/creation_activity_stats/list";
986
- async function getCreationActivityStatsList(creationOid) {
987
- const req = { creationOid, type: "DAY" };
988
- return await ccwAxios87.post(url87, req).then((res) => res.data.body);
989
- }
990
-
991
- // src/community-web/creation_release/page.ts
992
- import { ccwAxios as ccwAxios88 } from "@ccw-api/axios";
993
- var url88 = "https://community-web.ccw.site/creation_release/page";
994
- async function getCreationReleasePage(creationOid, pageArgs_ = {
995
- sortField: "submittedAt"
996
- }) {
997
- const pageArgs = {
998
- ...DEFAULT_PAGE_ARGS,
999
- ...pageArgs_
1000
- };
1001
- const queryUrl = queryPage(url88, pageArgs);
1002
- const req = {
1003
- creationOid
1004
- };
1005
- return await ccwAxios88.post(queryUrl, req).then((res) => res.data.body);
1006
- }
1007
-
1008
- // src/community-web/creation_release/code_profiling/detail.ts
1009
- import { ccwAxios as ccwAxios89 } from "@ccw-api/axios";
1010
- var url89 = "https://community-web.ccw.site/creation_release/code_profiling/detail";
1011
- async function getCodeProfilingDetail(creationOid, creationReleaseOid) {
1012
- const req = { creationOid, creationReleaseOid };
1013
- return await ccwAxios89.post(url89, req).then((res) => res.data.body);
1014
- }
1015
-
1016
- // src/community-web/historical_team_member/page.ts
1017
- import { ccwAxios as ccwAxios90 } from "@ccw-api/axios";
1018
- var url90 = "https://community-web.ccw.site/historical_team_member/page";
1019
- async function getHistoricalTeamMemberPage(creationOid, pageArgs_ = {
1020
- sortField: "createdAt"
1021
- }) {
1022
- const pageArgs = {
1023
- ...DEFAULT_PAGE_ARGS,
1024
- ...pageArgs_
1025
- };
1026
- const queryUrl = queryPage(url90, pageArgs);
1027
- const req = {
1028
- creationOid,
1029
- page: pageArgs.page,
1030
- perPage: pageArgs.perPage
1031
- };
1032
- return await ccwAxios90.post(queryUrl, req).then((res) => res.data.body);
1033
- }
1034
-
1035
- // src/community-web/short_url/decompress.ts
1036
- import { ccwAxios as ccwAxios91 } from "@ccw-api/axios";
1037
- var url91 = "https://community-web.ccw.site/short_url/decompress";
1038
- async function decompressShortUrl(shortUrlCode) {
1039
- const req = { shortUrlCode };
1040
- return await ccwAxios91.post(url91, req).then((res) => res.data.body);
1041
- }
1042
-
1043
- // src/community-web/hash_tag/recommend/list.ts
1044
- import { ccwAxios as ccwAxios92 } from "@ccw-api/axios";
1045
- var url92 = "https://community-web.ccw.site/hash_tag/recommend/list";
1046
- async function getRecommendHashTags() {
1047
- return await ccwAxios92.post(url92).then((res) => res.data.body);
1048
- }
1049
-
1050
- // src/community-web/ccw-main/status.ts
1051
- import { ccwAxios as ccwAxios93 } from "@ccw-api/axios";
1052
- var url93 = "https://community-web.ccw.site/ccw-main/status";
1053
- async function getCCWMainStatus() {
1054
- const req = {};
1055
- return await ccwAxios93.post(url93, req).then((res) => res.data.body);
1056
- }
1057
-
1058
- // src/community-web/study-community/cloud_variable/create.ts
1059
- import { ccwAxios as ccwAxios94 } from "@ccw-api/axios";
1060
- var url94 = "https://community-web.ccw.site/study-community/cloud_variable/create";
1061
- async function createCloudVariable(projectId, variables) {
1062
- const req = { projectId, variables };
1063
- return await ccwAxios94.post(url94, req).then((res) => res.data.body);
1064
- }
1065
-
1066
- // src/community-web/study-community/comment/top.ts
1067
- import { ccwAxios as ccwAxios95 } from "@ccw-api/axios";
1068
- var url95 = "https://community-web.ccw.site/study-community/comment/top";
1069
- async function topComment(id) {
1070
- const req = { id };
1071
- return await ccwAxios95.post(url95, req).then((res) => res.data.body);
1072
- }
1073
-
1074
- // src/community-web/study-community/comment/fold.ts
1075
- import { ccwAxios as ccwAxios96 } from "@ccw-api/axios";
1076
- var url96 = "https://community-web.ccw.site/study-community/comment/fold";
1077
- async function foldComment(id) {
1078
- const req = { id };
1079
- return await ccwAxios96.post(url96, req).then((res) => res.data.body);
1080
- }
1081
-
1082
- // src/community-web/study-community/comment/reset_weight.ts
1083
- import { ccwAxios as ccwAxios97 } from "@ccw-api/axios";
1084
- var url97 = "https://community-web.ccw.site/study-community/comment/reset_weight";
1085
- async function resetCommentWeight(id) {
1086
- const req = { id };
1087
- return await ccwAxios97.post(url97, req).then((res) => res.data.body);
1088
- }
1089
-
1090
- // src/community-web/study-community/comment/delete.ts
1091
- import { ccwAxios as ccwAxios98 } from "@ccw-api/axios";
1092
- var url98 = "https://community-web.ccw.site/study-community/comment/delete";
1093
- async function deleteComment(id) {
1094
- const req = { id };
1095
- return await ccwAxios98.post(url98, req).then((res) => res.data.body);
1096
- }
1097
-
1098
- // src/community-web/comment/create.ts
1099
- import { ccwAxios as ccwAxios99 } from "@ccw-api/axios";
1100
- var url99 = "https://community-web.ccw.site/comment/create";
1101
- async function createComment(content, topic, sectionType) {
1102
- topic.outline ??= "foo";
1103
- const req = { content, topic, sectionType };
1104
- return await ccwAxios99.post(url99, req).then((res) => res.data.body);
1105
- }
1106
-
1107
- // src/community-web/comment/like_record/create.ts
1108
- import { ccwAxios as ccwAxios100 } from "@ccw-api/axios";
1109
- var url100 = "https://community-web.ccw.site/comment/like_record/create";
1110
- async function likeComment(commentId) {
1111
- const req = { commentId };
1112
- return await ccwAxios100.post(url100, req).then((res) => res.data.body);
1113
- }
1114
-
1115
- // src/community-web/student/following/page.ts
1116
- import { ccwAxios as ccwAxios101 } from "@ccw-api/axios";
1117
- var url101 = "https://community-web.ccw.site/student/following/page";
1118
- async function getStudentFollowingPage(studentOid, pageArgs_ = {
1119
- sortField: "createdAt"
1120
- }) {
1121
- const pageArgs = {
1122
- ...DEFAULT_PAGE_ARGS,
1123
- ...pageArgs_
1124
- };
1125
- const queryUrl = queryPage(url101, pageArgs);
1126
- const req = {
1127
- studentOid
1128
- };
1129
- return await ccwAxios101.post(queryUrl, req).then((res) => res.data.body);
1130
- }
1131
-
1132
- // src/community-web/study-trade/trade/donate.ts
1133
- import { ccwAxios as ccwAxios102 } from "@ccw-api/axios";
1134
- var url102 = "https://community-web.ccw.site/study-trade/trade/donate";
1135
- async function donateTrade(bucks, objectId, objectType = "CREATION") {
1136
- const req = { bucks, objectId, objectType };
1137
- return await ccwAxios102.post(url102, req).then((res) => res.data.body);
1138
- }
1139
-
1140
- // src/community-web/user_package/user_product.ts
1141
- import { ccwAxios as ccwAxios103 } from "@ccw-api/axios";
1142
- var url103 = "https://community-web.ccw.site/user_package/user_product";
1143
- async function getUserProductsPage(productCategory = 5 /* AVATAR_FRAME */, pageArgs_ = {}) {
1144
- const pageArgs = {
1145
- ...DEFAULT_PAGE_ARGS,
1146
- ...pageArgs_
1147
- };
1148
- const queryUrl = queryPage(url103, pageArgs);
1149
- const req = {
1150
- page: pageArgs.page,
1151
- perPage: pageArgs.perPage,
1152
- sortType: pageArgs.sortType,
1153
- productCategory
1154
- };
1155
- return await ccwAxios103.post(queryUrl, req).then((res) => res.data.body);
1156
- }
1157
-
1158
- // src/community-web/user_package/status.ts
1159
- import { ccwAxios as ccwAxios104 } from "@ccw-api/axios";
1160
- var url104 = "https://community-web.ccw.site/user_package/status";
1161
- async function setUserProductStatus(id, status) {
1162
- const req = { status, id };
1163
- return await ccwAxios104.post(url104, req).then((res) => res.data.body);
1164
- }
1165
-
1166
- // src/community-web/great_creation/update.ts
1167
- import { ccwAxios as ccwAxios105 } from "@ccw-api/axios";
1168
- var url105 = "https://community-web.ccw.site/great_creation/update";
1169
- async function updateGreatCreation(creationOid) {
1170
- const req = { creationOid };
1171
- return await ccwAxios105.post(url105, req).then((res) => res.data.body);
1172
- }
1173
-
1174
- // src/community-web/smart_contract/execute.ts
1175
- import { ccwAxios as ccwAxios106 } from "@ccw-api/axios";
1176
- var url106 = "https://community-web.ccw.site/smart_contract/execute";
1177
- async function executeSmartContract(bizId, id, ruleId, bucks, bizType = "CREATION") {
1178
- const req = { bizId, bizType, id, ruleId, params: { bucks } };
1179
- return await ccwAxios106.post(url106, req).then((res) => res.data.body);
1180
- }
1181
-
1182
- // src/community-web/smart_contract/account.ts
1183
- import { ccwAxios as ccwAxios107 } from "@ccw-api/axios";
1184
- var url107 = "https://community-web.ccw.site/smart_contract/account";
1185
- async function getSmartContractAccount(id) {
1186
- const req = { id };
1187
- return await ccwAxios107.post(url107, req).then((res) => res.data.body);
1188
- }
1189
-
1190
- // src/community-web/smart_contract/detail.ts
1191
- import { ccwAxios as ccwAxios108 } from "@ccw-api/axios";
1192
- var url108 = "https://community-web.ccw.site/smart_contract/detail";
1193
- async function getSmartContractDetail(id) {
1194
- const req = { id };
1195
- return await ccwAxios108.post(url108, req).then((res) => res.data.body);
1196
- }
1197
-
1198
- // src/community-web/smart_contract/list.ts
1199
- import { ccwAxios as ccwAxios109 } from "@ccw-api/axios";
1200
- var url109 = "https://community-web.ccw.site/smart_contract/list";
1201
- async function getSmartContractList(bizId, bizType = "CREATION") {
1202
- const req = { bizId, bizType };
1203
- return await ccwAxios109.post(url109, req).then((res) => res.data.body);
1204
- }
1205
-
1206
- // src/community-web/extensions/following/status.ts
1207
- import { ccwAxios as ccwAxios110 } from "@ccw-api/axios";
1208
- var url110 = "https://community-web.ccw.site/extensions/following/status";
1209
- async function getConnectCommunityFollowingStatus(playingCreationOid, userOid) {
1210
- const req = { playingCreationOid, userOid };
1211
- return await ccwAxios110.post(url110, req).then((res) => res.data.body);
1212
- }
1213
-
1214
- // src/community-web/extensions/creation-like/detail.ts
1215
- import { ccwAxios as ccwAxios111 } from "@ccw-api/axios";
1216
- var url111 = "https://community-web.ccw.site/extensions/creation-like/detail";
1217
- async function getConnectCommunityCreationLikeStatus(playingCreationOid, creationOid) {
1218
- const req = { playingCreationOid, creationOid };
1219
- return await ccwAxios111.post(url111, req).then((res) => res.data.body);
1220
- }
1221
-
1222
- // src/community-web/study-community/following/follow.ts
1223
- import { ccwAxios as ccwAxios112 } from "@ccw-api/axios";
1224
- var url112 = "https://community-web.ccw.site/study-community/following/follow";
1225
- async function followCreator(followingOid) {
1226
- const req = { followingOid };
1227
- return await ccwAxios112.post(url112, req).then((res) => res.data.body);
1228
- }
1229
-
1230
- // src/community-web/study-community/following/unfollow.ts
1231
- import { ccwAxios as ccwAxios113 } from "@ccw-api/axios";
1232
- var url113 = "https://community-web.ccw.site/study-community/following/unfollow";
1233
- async function unfollowCreator(followingOid) {
1234
- const req = { followingOid };
1235
- return await ccwAxios113.post(url113, req).then((res) => res.data.body);
1236
- }
1237
-
1238
- // src/community-web/index.ts
1239
- var communityWeb = {
1240
- acceptAward,
1241
- donateTrade,
1242
- encodeShortCode,
1243
- executeSmartContract,
1244
- createCloudVariable,
1245
- createComment,
1246
- createShortUrl,
1247
- createSplitRule,
1248
- decompressShortUrl,
1249
- deleteComment,
1250
- foldComment,
1251
- followCreator,
1252
- unfollowCreator,
1253
- getApprovalTags,
1254
- getCampaignResources,
1255
- getCcwMainStatus: getCCWMainStatus,
1256
- getCheckInRecords,
1257
- getCodeProfilingDetail,
1258
- getCommentReplies,
1259
- getCommentsByTopic,
1260
- getConfigDetail,
1261
- getCreationActivityStatsList,
1262
- getCreationAttributeDetail,
1263
- getCreationDetail,
1264
- getCreationFavoriteDetail,
1265
- getCreationIntroduction,
1266
- getConnectCommunityCreationLikeStatus,
1267
- getCreationRecommendPositionList,
1268
- getCreationReleasePage,
1269
- getCreationScreenshotPage,
1270
- getCreationStudentDetail,
1271
- getCreationTags,
1272
- getCreatorScore,
1273
- getDonatedRecordRanking,
1274
- getExcellentCreations,
1275
- getConnectCommunityFollowingStatus,
1276
- getEmojiCategoryList,
1277
- getEmojiPage,
1278
- getAllEmojis,
1279
- getHashTagDetail,
1280
- getHashTagFavoriteDetail,
1281
- getHistoricalTeamMemberPage,
1282
- getManagedHashTags,
1283
- getHealthCheck: healthCheck,
1284
- getLeafletsItemList,
1285
- getLikeDetail,
1286
- getLoadingTips,
1287
- getLockedUserDetail,
1288
- getMutedUserDetail,
1289
- getMyHashTagCreations,
1290
- getMyTasks,
1291
- getNotifyDeleteReasons,
1292
- getNotificationPage,
1293
- getNotificationStats,
1294
- getOwnCreationPage,
1295
- getPersonalCurrencyAccount,
1296
- getPlanetsOfCreation,
1297
- getPostDetail,
1298
- getPotentialCreations,
1299
- getRecommendCreations,
1300
- getRecommendCreators,
1301
- getRecommendHashTags,
1302
- getRemixedCreationPage,
1303
- getReputationScoreLogPage: getReputationScoreLog,
1304
- getSearchHotWords,
1305
- getSmartContractAccount,
1306
- getSmartContractDetail,
1307
- getSmartContractList,
1308
- getSplitRuleDetail,
1309
- getSpreadFeedUnreadCount,
1310
- getStudentBlockRecordDetail,
1311
- getStudentBlockRecordList,
1312
- getStudentBlockStatus,
1313
- getStudentFollowingPage,
1314
- getStudentLastActiveAt,
1315
- getStudentProfile,
1316
- getStudentSelfDetail,
1317
- getStudentSessions,
1318
- getStudentsList,
1319
- getStudentStats,
1320
- getStudyCommunityMemberDetail,
1321
- getSubjectAreaPage,
1322
- getSubjectAreaPageByChannel,
1323
- getTeamMemberList,
1324
- getTeamworkLogPage,
1325
- getTime,
1326
- getTypicalProjectPage,
1327
- getTypicalProjectUnreadCount,
1328
- getUserAssetStorageSize,
1329
- getUserCardDetail,
1330
- getUserLabelList,
1331
- getUserProductsPage,
1332
- queryMallProducts,
1333
- getCreationsByStudent,
1334
- insertCheckInRecord,
1335
- likeComment,
1336
- produceTeamMemberTicket,
1337
- resetCommentWeight,
1338
- searchCloudAssets,
1339
- searchCreationsByTag,
1340
- sendEvent,
1341
- setUserProductStatus,
1342
- submitCreation,
1343
- topComment,
1344
- updateCreation,
1345
- updateGreatCreation,
1346
- updateStudent,
1347
- viewCreationStats
1348
- };
1349
-
1350
- // src/gandi-main/timestamp/current.ts
1351
- import { ccwAxios as ccwAxios114 } from "@ccw-api/axios";
1352
- var url114 = "https://gandi-main.ccw.site/timestamp/current";
1353
- async function getCurrentTimestamp() {
1354
- return await ccwAxios114.get(url114).then((res) => res.data.body);
1355
- }
1356
-
1357
- // src/gandi-main/bulletins/page.ts
1358
- import { ccwAxios as ccwAxios115 } from "@ccw-api/axios";
1359
- var url115 = "https://gandi-main.ccw.site/bulletins";
1360
- async function getBulletinsPage(status = "PUBLISHED", pageArgs_ = {
1361
- sortField: "publishedAt"
1362
- }) {
1363
- const pageArgs = {
1364
- ...DEFAULT_PAGE_ARGS,
1365
- ...pageArgs_
1366
- };
1367
- const queryUrl = queryPage(url115, {
1368
- ...pageArgs,
1369
- status
1370
- });
1371
- return await ccwAxios115.get(queryUrl).then((res) => res.data.body);
1372
- }
1373
-
1374
- // src/gandi-main/bulletins/detail.ts
1375
- import { ccwAxios as ccwAxios116 } from "@ccw-api/axios";
1376
- var url116 = "https://gandi-main.ccw.site/bulletins";
1377
- async function getBulletinDetail(id) {
1378
- return await ccwAxios116.get(`${url116}/${id}`).then((res) => res.data.body);
1379
- }
1380
-
1381
- // src/gandi-main/creation/leaderboards/{oid}/records.ts
1382
- import { ccwAxios as ccwAxios117 } from "@ccw-api/axios";
1383
- var url117 = "https://gandi-main.ccw.site/creation/leaderboards";
1384
- async function submitLeaderboardRecord(leaderboardOid, score, userOid, ext = "") {
1385
- const req = { score, oid: userOid, ext };
1386
- const requestUrl = `${url117}/${leaderboardOid}/records`;
1387
- return await ccwAxios117.post(requestUrl, req).then((res) => res.data.body);
1388
- }
1389
- async function getLeaderboardRecords(leaderboardOid) {
1390
- const requestUrl = `${url117}/${leaderboardOid}/records`;
1391
- return await ccwAxios117.get(requestUrl).then((res) => res.data.body);
1392
- }
1393
-
1394
- // src/gandi-main/index.ts
1395
- var gandiMain = {
1396
- getCurrentTimestamp,
1397
- getBulletinsPage,
1398
- getBulletinDetail,
1399
- submitLeaderboardRecord,
1400
- getLeaderboardRecords
1401
- };
1402
-
1403
- // src/bfs-web/users/{oid}/extensions.ts
1404
- import { ccwAxios as ccwAxios118 } from "@ccw-api/axios";
1405
- var url118 = "https://bfs-web.ccw.site/users";
1406
- async function getUserExtensions(userOid, pageArgs_ = {
1407
- sortField: "updatedAt"
1408
- }) {
1409
- const pageArgs = {
1410
- ...DEFAULT_PAGE_ARGS,
1411
- ...pageArgs_
1412
- };
1413
- const queryUrl = queryPage(`${url118}/${userOid}/extensions`, pageArgs);
1414
- return await ccwAxios118.get(queryUrl).then((res) => res.data.body);
1415
- }
1416
-
1417
- // src/bfs-web/extensions/{eid}/donate.ts
1418
- import { ccwAxios as ccwAxios119 } from "@ccw-api/axios";
1419
- var url119 = "https://bfs-web.ccw.site/extensions";
1420
- async function donateExtension(eid, bucks) {
1421
- const req = { eid, bucks };
1422
- return await ccwAxios119.post(`${url119}/${eid}/donate`, req).then((res) => res.data.body);
1423
- }
1424
-
1425
- // src/bfs-web/index.ts
1426
- var bfsWeb = {
1427
- donateExtension,
1428
- getUserExtensions
1429
- };
1430
-
1431
- // src/community-web-cloud-database/cloud_variable/save.ts
1432
- import { ccwAxios as ccwAxios120 } from "@ccw-api/axios";
1433
- var url120 = "https://community-web-cloud-database.ccw.site/cloud_variable/save";
1434
- async function saveCloudVariableBase(primaryKey, secondaryKey, value) {
1435
- const req = { primaryKey, secondaryKey, value };
1436
- return await ccwAxios120.post(url120, req).then((res) => res.data.body);
1437
- }
1438
- async function saveProjectCloudVariable(projectId, secondaryKey, value) {
1439
- return await saveCloudVariableBase(projectId, secondaryKey, { v: value });
1440
- }
1441
- async function saveUserCloudVariable(projectId, studentNum, value) {
1442
- const primaryKey = `${projectId}-u`;
1443
- return await saveCloudVariableBase(primaryKey, `${studentNum}`, value);
1444
- }
1445
-
1446
- // src/community-web-cloud-database/cloud_variable/detail/v2.ts
1447
- import { ccwAxios as ccwAxios121 } from "@ccw-api/axios";
1448
- var url121 = "https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";
1449
- async function getCloudVariableDetailV2(accessKey, primaryKey, secondaryKey, filterKeys) {
1450
- const req = { accessKey, primaryKey, secondaryKey, filterKeys };
1451
- return await ccwAxios121.post(url121, req).then((res) => res.data.body);
1452
- }
1453
-
1454
- // src/community-web-cloud-database/index.ts
1455
- var communityWebCloudDatabase = {
1456
- saveProjectCloudVariable,
1457
- saveUserCloudVariable,
1458
- getCloudVariableDetailV2
1459
- };
1460
-
1461
- // src/op-parent-api/captcha/create.ts
1462
- import { ccwAxios as ccwAxios122 } from "@ccw-api/axios";
1463
- var url122 = "https://op-parent-api.xiguacity.cn/captcha/create";
1464
- async function createCaptcha(type = "BLOCK_PUZZLE") {
1465
- const req = { type };
1466
- return await ccwAxios122.post(url122, req).then((res) => res.data.body);
1467
- }
1468
-
1469
- // src/op-parent-api/captcha/check.ts
1470
- import { ccwAxios as ccwAxios123 } from "@ccw-api/axios";
1471
- var url123 = "https://op-parent-api.xiguacity.cn/captcha/check";
1472
- async function checkCaptcha(token, x, y = 5) {
1473
- const req = { data: { x, y }, token };
1474
- return await ccwAxios123.post(url123, req).then((res) => res.data.body);
1475
- }
1476
-
1477
- // src/op-parent-api/index.ts
1478
- var opParentApi = {
1479
- createCaptcha,
1480
- checkCaptcha
1481
- };
1482
-
1483
- // src/index.ts
1484
- import { setToken } from "@ccw-api/axios";
1485
- var index_default = {
1486
- sso,
1487
- communityWeb,
1488
- gandiMain,
1489
- bfsWeb,
1490
- communityWebCloudDatabase,
1491
- opParentApi
1492
- };
1493
- export {
1494
- bfsWeb,
1495
- communityWeb,
1496
- communityWebCloudDatabase,
1497
- index_default as default,
1498
- gandiMain,
1499
- opParentApi,
1500
- setToken,
1501
- sso
1502
- };
1
+ import{ccwAxios as Gt}from"@ccw-api/axios";var Ht="https://sso.ccw.site/web/auth/login-by-password";async function g(e,t,o={device:"Node",browser:"Node.js"}){let r={loginKey:e,password:t,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})},{extra:s,...n}=await Gt.post(Ht,r).then(c=>c.data.body),a=JSON.parse(s);return{...n,extra:a}}import{ccwAxios as Kt}from"@ccw-api/axios";var Vt="https://sso.ccw.site/web/auth/logout";async function l(){return await Kt.post(Vt,{}).then(e=>e.data.body)}import{ccwAxios as zt}from"@ccw-api/axios";var Wt="https://sso.ccw.site/web/auth/logout_by_session";async function R(e){return await zt.post(Wt,{id:e}).then(t=>t.data.body)}import{ccwAxios as $t}from"@ccw-api/axios";var Yt="https://sso.ccw.site/web/auth/assistant/captcha/v2/create";async function y(e,t="loginbyPhone",o="86",r="ccw_sms",s){let n={recipient:e,countryCode:o,scene:t,ruleCode:r,captcha:s};return await $t.post(Yt,n).then(a=>a.data.body)}import{ccwAxios as Jt}from"@ccw-api/axios";var Zt="https://sso.ccw.site/web/auth/v3/login/by_phone";async function x(e,t,o={device:"Node",browser:"Node.js"},r="86",s="ccw_sms",n="loginbyPhone"){let{extra:a,...c}=await Jt.post(Zt,{phone:e,code:t,countryCode:r,ruleCode:s,scene:n,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})}).then(m=>m.data.body),d=JSON.parse(a);return{...c,extra:d}}var A={loginByPassword:g,logout:l,logoutBySession:R,createSmsCaptcha:y,loginByPhone:x};import{ccwAxios as Xt}from"@ccw-api/axios";var Qt="https://community-web.ccw.site/api/v1/short_code/encode";async function b(e,t,o,r){let s={origin:{inviterAvatar:t,inviterName:o,inviterId:e,inviterType:"STUDENT",entrance:"create_detail",creationOid:r}};return await Xt.post(Qt,s).then(n=>n.data.body)}import eo from"@ccw-api/axios";var to="https://community-web.ccw.site/approval/list";async function f(e){let t={objectId:e,objectType:"STUDENT"};return await eo.post(to,t).then(o=>o.data.body)}import oo from"@ccw-api/axios";var ro="https://community-web.ccw.site/base/dateTime";async function w(){return oo.post(ro,void 0).then(e=>e.data.body)}import{ccwAxios as so}from"@ccw-api/axios";var no="https://community-web.ccw.site/campaign_resource/detail";async function P(e){return await so.post(no,{keyword:e}).then(t=>t.data.body)}import{ccwAxios as io}from"@ccw-api/axios";var po="https://community-web.ccw.site/check_in_record/detail";async function C(){let e={scene:"HOMEPAGE"};return await io.post(po,e).then(t=>t.data.body)}import{ccwAxios as ao}from"@ccw-api/axios";var co="https://community-web.ccw.site/check_in_record/insert";async function S(){let e={scene:"HOMEPAGE"};return await ao.post(co,e).then(t=>t.data.body)}import{ccwAxios as mo}from"@ccw-api/axios";var uo="https://community-web.ccw.site/cloud_asset/user/privacy";async function h(){return await mo.post(uo,{}).then(e=>e.data.body)}import{ccwAxios as go}from"@ccw-api/axios";function i(e,t){let o=new URL(e);return Object.entries(t).forEach(([r,s])=>{s!=null&&o.searchParams.set(r,s)}),o.toString()}var p={page:1,perPage:20,sortType:"DESC",sortField:""};var lo="https://community-web.ccw.site/cloud_asset/search",Ro={...p,sortField:"createdAt"};async function I(e,t="/",o={}){let r={...Ro,...o},s=i(lo,r),n={creatorOid:e,path:t};return await go.post(s,n).then(a=>a.data.body)}import{ccwAxios as yo}from"@ccw-api/axios";var xo="https://community-web.ccw.site/comment/page";async function T(e,t,o=["PUBLISHED","FOLDED"],r={sortField:"createdAt"}){let s={...p,...r},n=i(xo,s),a={topicId:e,parentId:t,statuses:o};return await yo.post(n,a).then(c=>c.data.body)}import{ccwAxios as Ao}from"@ccw-api/axios";var bo="https://community-web.ccw.site/comment/page_by_topic",fo={...p,sortField:"createdAt"};async function D(e,t,o,r={sortField:"createdAt"}){let s={...fo,...r},n=i(bo,s),a={subjectOid:e,subjectType:t,sectionType:o};return await Ao.post(n,a).then(c=>c.data.body)}import{ccwAxios as wo}from"@ccw-api/axios";var Po="https://community-web.ccw.site/config/detail";async function q(e){let t={key:e};return await wo.post(Po,t).then(o=>o.data.body)}import{ccwAxios as Co}from"@ccw-api/axios";var So="https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";async function M(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(So,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e,source:"CCW_OFFICIAL"};return await Co.post(r,s).then(n=>n.data.body)}import{ccwAxios as ho}from"@ccw-api/axios";var Io="https://community-web.ccw.site/creation/detail";async function B(e,t,o=""){let r={oid:e,accessKey:t,mode:o};return await ho.post(Io,r).then(s=>s.data.body)}import{ccwAxios as To}from"@ccw-api/axios";var Do="https://community-web.ccw.site/creation/excellent/list";async function E(e){let t={num:e};return await To.post(Do,t).then(o=>o.data.body)}import{ccwAxios as qo}from"@ccw-api/axios";var Mo="https://community-web.ccw.site/creation/introduction/detail";async function O(e){let t={studentOid:e};return await qo.post(Mo,t).then(o=>o.data.body)}import{ccwAxios as Bo}from"@ccw-api/axios";var Eo="https://community-web.ccw.site/creation/like/detail";async function L(e){let t={creationOid:e};return await Bo.post(Eo,t).then(o=>o.data.body)}import{ccwAxios as Oo}from"@ccw-api/axios";var Lo="https://community-web.ccw.site/creation/loading/tips";async function U(){return await Oo.post(Lo,{}).then(e=>e.data.body)}import{ccwAxios as Uo}from"@ccw-api/axios";var _o="https://community-web.ccw.site/creation/page",ko={...p,sortField:"createdAt"};async function _(e,t={}){let o={...ko,...t},r=i(_o,o),s={remixCreationOids:e};return await Uo.post(r,s).then(n=>n.data.body)}import{ccwAxios as No}from"@ccw-api/axios";var Fo="https://community-web.ccw.site/creation/page_by_student",vo={...p,sortField:"createdAt"};async function k(e,t={}){let o={...vo,...t},r=i(Fo,o),s={studentOids:e};return await No.post(r,s).then(n=>n.data.body)}import{ccwAxios as jo}from"@ccw-api/axios";var Go="https://community-web.ccw.site/creation/potential/list";async function N(e){let t={num:e};return await jo.post(Go,t).then(o=>o.data.body)}import{ccwAxios as Ho}from"@ccw-api/axios";var Ko="https://community-web.ccw.site/creation/recommend",Vo={...p,sortField:"createdAt"};async function F(e,t={}){let o={...Vo,...t},r=i(Ko,o),s={num:e,subjectType:"POTENTIAL"};return await Ho.post(r,s).then(n=>n.data.body)}import{ccwAxios as zo}from"@ccw-api/axios";var Wo="https://community-web.ccw.site/recommend_creator/list";async function v(e=4,t=8){let o={excellentCount:e,potentialCount:t};return await zo.post(Wo,o).then(r=>r.data.body)}import{ccwAxios as $o}from"@ccw-api/axios";var Yo="https://community-web.ccw.site/creation/search/page",Jo={...p,sortField:"createdAt"};async function j(e,t={}){let o={...Jo,...t},r=i(Yo,o);return await $o.post(r,e).then(s=>s.data.body)}import{ccwAxios as Zo}from"@ccw-api/axios";var Xo="https://community-web.ccw.site/creation/student/detail";async function G(e){let t={studentOid:e};return await Zo.post(Xo,t).then(o=>o.data.body)}import{ccwAxios as Qo}from"@ccw-api/axios";var er="https://community-web.ccw.site/creation/tag/list";async function H(){let e={visibility:"PUBLIC"};return await Qo.post(er,e).then(t=>t.data.body)}import{ccwAxios as tr}from"@ccw-api/axios";var or="https://community-web.ccw.site/short_url/create";async function K(e){let t={originUrl:e};return await tr.post(or,t).then(o=>o.data.body)}import{ccwAxios as rr}from"@ccw-api/axios";var sr="https://community-web.ccw.site/hash_tag_creation/list_relation";async function V(e){let t={creationOid:e};return await rr.post(sr,t).then(o=>o.data.body)}import{ccwAxios as nr}from"@ccw-api/axios";var ir="https://community-web.ccw.site/hash_tag_creation/mine",pr={...p,sortField:"lastPassedAt"};async function z(e,t,o={}){let r={...pr,...o},s=i(ir,r),n={...r,excludeHashTag:e,statuses:t};return await nr.post(s,n).then(a=>a.data.body)}import{ccwAxios as ar}from"@ccw-api/axios";var cr="https://community-web.ccw.site/hash_tag/detail";async function W(e){let t={identifier:e};return await ar.post(cr,t).then(o=>o.data.body)}import{ccwAxios as mr}from"@ccw-api/axios";var dr="https://community-web.ccw.site/hash_tag/managed/list",ur={...p,sortField:"createdAt"};async function $(e,t=[],o={}){let r={...ur,...o},s=i(dr,r),n={...r,studentOid:e,excludeHashTagIds:t};return await mr.post(s,n).then(a=>a.data.body)}import{ccwAxios as gr}from"@ccw-api/axios";var lr="https://community-web.ccw.site/hash_tag_favorite/detail";async function Y(e){let t={hashTagId:e};return await gr.post(lr,t).then(o=>o.data.body)}import{ccwAxios as Rr}from"@ccw-api/axios";var yr="https://community-web.ccw.site/creation_donated_record/ranking_list";async function J(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(yr,o),s={creationOid:e};return await Rr.post(r,s).then(n=>n.data.body)}import{ccwAxios as xr}from"@ccw-api/axios";var Ar="https://community-web.ccw.site/creation_favorite/detail";async function Z(e){let t={creationOid:e};return await xr.post(Ar,t).then(o=>o.data.body)}import{ccwAxios as br}from"@ccw-api/axios";var fr="https://community-web.ccw.site/creation_recommend_position/list";async function X(e){let t={creationOid:e};return await br.post(fr,t).then(o=>o.data.body)}import{ccwAxios as wr}from"@ccw-api/axios";var Pr="https://community-web.ccw.site/creation_screenshot/page";async function Q(e,t={}){let o={...p,...t},r=i(Pr,o),s={subjectOid:e};return await wr.post(r,s).then(n=>n.data.body)}import{ccwAxios as Cr}from"@ccw-api/axios";var Sr="https://community-web.ccw.site/creation_stats/view";async function ee(e,t=""){let o={oid:e,inviteCode:t};return await Cr.post(Sr,o).then(r=>r.data.body)}import{ccwAxios as hr}from"@ccw-api/axios";var Ir="https://community-web.ccw.site/notify_message/show";async function te(){let e={type:"COMMENT_AUDIT"};return await hr.post(Ir,e).then(t=>t.data.body)}import{ccwAxios as Tr}from"@ccw-api/axios";var Dr="https://community-web.ccw.site/post/detail";async function oe(e){let t={slug:e};return await Tr.post(Dr,t).then(o=>o.data.body)}import{ccwAxios as qr}from"@ccw-api/axios";var Mr="https://community-web.ccw.site/search/hot_words";async function re(e){let t={length:e};return await qr.post(Mr,t).then(o=>o.data.body)}import{ccwAxios as Br}from"@ccw-api/axios";var Er="https://community-web.ccw.site/student/block_record/detail";async function se(e){let t={studentOid:e};return await Br.post(Er,t).then(o=>o.data.body)}import{ccwAxios as Or}from"@ccw-api/axios";var Lr="https://community-web.ccw.site/student/block_record/list";async function ne(e={sortField:"createdAt"}){let t={...p,...e},o=i(Lr,t),r={};return await Or.post(o,r).then(s=>s.data.body)}import{ccwAxios as Ur}from"@ccw-api/axios";var _r="https://community-web.ccw.site/student/block_record/status";async function ie(e){let t={studentOid:e};return await Ur.post(_r,t).then(o=>o.data.body)}import{ccwAxios as kr}from"@ccw-api/axios";var Nr="https://community-web.ccw.site/students/creator_score";async function pe(){return await kr.post(Nr,void 0).then(t=>t.data.body)}import{ccwAxios as Fr}from"@ccw-api/axios";var vr="https://community-web.ccw.site/students/last_active_at";async function ae(e){let t={studentOid:e};return await Fr.post(vr,t).then(o=>o.data.body)}import{ccwAxios as jr}from"@ccw-api/axios";var Gr="https://community-web.ccw.site/students/list";async function ce(e){let t={studentOids:e};return await jr.post(Gr,t).then(o=>o.data.body)}import{ccwAxios as Hr}from"@ccw-api/axios";var Kr="https://community-web.ccw.site/students/list_sessions";async function me(e={sortField:"createdAt"}){let t={...p,...e},o=i(Kr,t),r={};return await Hr.post(o,r).then(s=>s.data.body)}import{ccwAxios as Vr}from"@ccw-api/axios";var zr="https://community-web.ccw.site/students/profile";async function de(e){let t={studentOid:e};return await Vr.post(zr,t).then(o=>o.data.body)}import{ccwAxios as Wr}from"@ccw-api/axios";var $r="https://community-web.ccw.site/students/reputation_score_log/page";async function ue(e={sortField:"createdAt"}){let t={...p,...e},o=i($r,t),r={};return await Wr.post(o,r).then(s=>s.data.body)}import{ccwAxios as Yr}from"@ccw-api/axios";var Jr="https://community-web.ccw.site/students/self/detail";async function ge(e,t,o){let r={needGrade:e,needExtraInfo:t,fields:o};return await Yr.post(Jr,r).then(s=>s.data.body)}import{ccwAxios as Zr}from"@ccw-api/axios";var Xr="https://community-web.ccw.site/students/stats";async function le(e){let t={studentOid:e};return await Zr.post(Xr,t).then(o=>o.data.body)}import{ccwAxios as Qr}from"@ccw-api/axios";var es="https://community-web.ccw.site/students/update";async function Re(e,t,o,r,s,n,a,c,d){let m={gender:e,hideGender:t,fullName:o,birthday:r,programmingCapability:s,school:n,qq:a,hobbies:c,learnedProgrammingLanguages:d};return await Qr.post(es,m).then(u=>u.data.body)}import{ccwAxios as ts}from"@ccw-api/axios";var os="https://community-web.ccw.site/study-community/member/detail";async function ye(){let e={};return await ts.post(os,e).then(t=>t.data.body)}import{ccwAxios as rs}from"@ccw-api/axios";var ss="https://community-web.ccw.site/study-community/spread_feed/unread/count";async function xe(e){let t={studentOid:e};return await rs.post(ss,t).then(o=>o.data.body)}import{ccwAxios as ns}from"@ccw-api/axios";var is="https://community-web.ccw.site/subject_area/page";async function Ae(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(is,o),s={scene:e};return await ns.post(r,s).then(n=>n.data.body)}import{ccwAxios as ps}from"@ccw-api/axios";var as="https://community-web.ccw.site/subject_area/page_by_channel";async function be(e,t={sortField:"campaignResourceId"}){let o={...p,...t},r=i(as,o),s={channel:e,scene:"CUSTOM_PAGE"};return await ps.post(r,s).then(n=>n.data.body)}import{ccwAxios as cs}from"@ccw-api/axios";var ms="https://community-web.ccw.site/task/award";async function fe(e){let t={taskOid:e};return await cs.post(ms,t).then(o=>o.data.body)}import{ccwAxios as ds}from"@ccw-api/axios";var us="https://community-web.ccw.site/task/mine";async function we(){let e={scene:"checkIn"};return await ds.post(us,e).then(t=>t.data.body)}import{ccwAxios as gs}from"@ccw-api/axios";var ls="https://community-web.ccw.site/user-card/detail";async function Pe(e){let t={oid:e};return await gs.post(ls,t).then(o=>o.data.body)}import{ccwAxios as Rs}from"@ccw-api/axios";var ys="https://community-web.ccw.site/user_label/list";async function Ce(){let e={};return await Rs.post(ys,e).then(t=>t.data.body)}import{ccwAxios as xs}from"@ccw-api/axios";var As="https://community-web.ccw.site/currency/account/personal";async function Se(){return await xs.post(As).then(e=>e.data.body)}import{ccwAxios as bs}from"@ccw-api/axios";var fs="https://community-web.ccw.site/emoji/all";async function he(){return await bs.post(fs,{}).then(e=>e.data.body)}import{ccwAxios as ws}from"@ccw-api/axios";var Ps="https://community-web.ccw.site/emoji/category/list";async function Ie(){return await ws.post(Ps,{}).then(e=>e.data.body)}import{ccwAxios as Cs}from"@ccw-api/axios";var Ss="https://community-web.ccw.site/emoji/page";async function Te(e="ENABLED",t={sortField:"createdAt"}){let o={...p,...t},r=i(Ss,o),s={page:o.page,perPage:o.perPage,status:e};return await Cs.post(r,s).then(n=>n.data.body)}import{ccwAxios as hs}from"@ccw-api/axios";var Is="https://community-web.ccw.site/event";async function De(e){let t={actionId:e};return await hs.post(Is,t).then(o=>o.data.body)}import{ccwAxios as Ts}from"@ccw-api/axios";var Ds="https://community-web.ccw.site/health/check";async function qe(){return await Ts.post(Ds).then(e=>e.data.body)}import{ccwAxios as qs}from"@ccw-api/axios";var Ms="https://community-web.ccw.site/leaflets/item/list";async function Me(e){let t={advertisementId:e};return await qs.post(Ms,t).then(o=>o.data.body)}import{ccwAxios as Bs}from"@ccw-api/axios";var Es="https://community-web.ccw.site/locked_user/detail";async function Be(e){let t={accountOid:e};return await Bs.post(Es,t).then(o=>o.data.body)}import{ccwAxios as Os}from"@ccw-api/axios";var Ls="https://community-web.ccw.site/muted_user/detail";async function Ee(e){let t={studentNumber:e};return await Os.post(Ls,t).then(o=>o.data.body)}import{ccwAxios as Us}from"@ccw-api/axios";var _s="https://community-web.ccw.site/notification/page";async function Oe(e="COMMENT_TO_ME",t={sortField:"createdAt"}){let o={...p,...t},r=i(_s,o),s={notifyGroup:e,page:o.page};return await Us.post(r,s).then(n=>n.data.body)}import{ccwAxios as ks}from"@ccw-api/axios";var Ns="https://community-web.ccw.site/notification/stats/v2";async function Le(e=!0){let t={countAll:e};return await ks.post(Ns,t).then(o=>o.data.body)}import{ccwAxios as Fs}from"@ccw-api/axios";var vs="https://community-web.ccw.site/typical_project/page";async function Ue(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(vs,o),s={studentOid:e,templateType:"APPLICATION"};return await Fs.post(r,s).then(n=>n.data.body)}import{ccwAxios as js}from"@ccw-api/axios";var Gs="https://community-web.ccw.site/typical_project/student/unread_count";async function _e(e){let t={studentOid:e};return await js.post(Gs,t).then(o=>o.data.body)}import{ccwAxios as Hs}from"@ccw-api/axios";var Ks="https://community-web.ccw.site/creation/own/page";async function ke(e={sortField:"updatedAt"},t=["BANNED","PUBLISHED","REJECTED","SUBMITTED"],o=!1){let r={...p,...e},s=i(Ks,r),n={statuses:t,ignoreTypicalProject:o};return await Hs.post(s,n).then(a=>a.data.body)}import{ccwAxios as Vs}from"@ccw-api/axios";var zs="https://community-web.ccw.site/creation/team_member/produce_ticket";async function Ne(e){let t={creationOid:e};return await Vs.post(zs,t).then(o=>o.data.body)}import{ccwAxios as Ws}from"@ccw-api/axios";var $s="https://community-web.ccw.site/creation/team_member/list";async function Fe(e,t){let o={creationOid:e,authorities:t};return await Ws.post($s,o).then(r=>r.data.body)}import{ccwAxios as Ys}from"@ccw-api/axios";var Js="https://community-web.ccw.site/creation/teamwork_log/page";async function ve(e,t,o={sortField:"createdAt"}){let r={...p,...o},s=i(Js,r),n={creationId:e,operateTargets:t},a=await Ys.post(s,n).then(m=>m.data.body),{data:c}=a,d=c.map(m=>{let{content:u}=m;return{...m,content:JSON.parse(u)}});return{...a,data:d}}import{ccwAxios as Zs}from"@ccw-api/axios";var Xs="https://community-web.ccw.site/creation/update";async function je(e,t,o="LANDSCAPE",r){if(!t.includes("t=")){let a=new URL(t);a.searchParams.set("t",Date.now().toString()),t=a.toString()}let n={oid:e,latestProjectLink:t,screenMode:o,latestCoverLink:r};return await Zs.post(Xs,n).then(a=>a.data.body)}import{ccwAxios as Qs}from"@ccw-api/axios";var en="https://community-web.ccw.site/creation/submit";async function Ge(e){return await Qs.post(en,e).then(t=>t.data.body)}import{ccwAxios as tn}from"@ccw-api/axios";var on="https://community-web.ccw.site/creation/smart_contract/split_rule/detail";async function He(e){let t={creationOid:e};return await tn.post(on,t).then(o=>o.data.body)}import{ccwAxios as rn}from"@ccw-api/axios";var sn="https://community-web.ccw.site/students/bind_phone";async function Ke(e,t,o="86"){let r={phone:e,code:t,ruleCode:"ccw_sms",scene:"bindPhone",countryCode:o};return await rn.post(sn,r).then(s=>s.data.body)}import{ccwAxios as nn}from"@ccw-api/axios";var pn="https://community-web.ccw.site/students/password/change";async function Ve(e,t){let o={newPassword:e,code:t};return await nn.post(pn,o).then(r=>r.data.body)}import{ccwAxios as an}from"@ccw-api/axios";var cn="https://community-web.ccw.site/captcha/v2/create_by_session";async function ze(e="change_password",t="86",o="ccw_sms",r="SMS"){let s={type:r,countryCode:t,scene:e,ruleCode:o};return await an.post(cn,s).then(n=>n.data.body)}import{ccwAxios as mn}from"@ccw-api/axios";var dn="https://community-web.ccw.site/creation/smart_contract/split_rule/create";async function We(e,t){let o={creationOid:e,memberSplitDetails:t};return await mn.post(dn,o).then(r=>r.data.body)}import{ccwAxios as un}from"@ccw-api/axios";var gn="https://community-web.ccw.site/creation_attribute/detail";async function $e(e){let t={creationOid:e},o=await un.post(gn,t).then(n=>n.data.body);if(o===null)return null;let{ext:{KEYPAD_CONFIG:r}}=o,s=JSON.parse(r);return{...o,ext:{KEYPAD_CONFIG:s}}}import{ccwAxios as ln}from"@ccw-api/axios";var Rn="https://community-web.ccw.site/creation_activity_stats/list";async function Ye(e){let t={creationOid:e,type:"DAY"};return await ln.post(Rn,t).then(o=>o.data.body)}import{ccwAxios as yn}from"@ccw-api/axios";var xn="https://community-web.ccw.site/creation_release/page";async function Je(e,t={sortField:"submittedAt"}){let o={...p,...t},r=i(xn,o),s={creationOid:e};return await yn.post(r,s).then(n=>n.data.body)}import{ccwAxios as An}from"@ccw-api/axios";var bn="https://community-web.ccw.site/creation_release/code_profiling/detail";async function Ze(e,t){let o={creationOid:e,creationReleaseOid:t};return await An.post(bn,o).then(r=>r.data.body)}import{ccwAxios as fn}from"@ccw-api/axios";var wn="https://community-web.ccw.site/historical_team_member/page";async function Xe(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(wn,o),s={creationOid:e,page:o.page,perPage:o.perPage};return await fn.post(r,s).then(n=>n.data.body)}import{ccwAxios as Pn}from"@ccw-api/axios";var Cn="https://community-web.ccw.site/short_url/decompress";async function Qe(e){let t={shortUrlCode:e};return await Pn.post(Cn,t).then(o=>o.data.body)}import{ccwAxios as Sn}from"@ccw-api/axios";var hn="https://community-web.ccw.site/hash_tag/recommend/list";async function et(){return await Sn.post(hn).then(e=>e.data.body)}import{ccwAxios as In}from"@ccw-api/axios";var Tn="https://community-web.ccw.site/ccw-main/status";async function tt(){let e={};return await In.post(Tn,e).then(t=>t.data.body)}import{ccwAxios as Dn}from"@ccw-api/axios";var qn="https://community-web.ccw.site/study-community/cloud_variable/create";async function ot(e,t){let o={projectId:e,variables:t};return await Dn.post(qn,o).then(r=>r.data.body)}import{ccwAxios as Mn}from"@ccw-api/axios";var Bn="https://community-web.ccw.site/study-community/comment/top";async function rt(e){let t={id:e};return await Mn.post(Bn,t).then(o=>o.data.body)}import{ccwAxios as En}from"@ccw-api/axios";var On="https://community-web.ccw.site/study-community/comment/fold";async function st(e){let t={id:e};return await En.post(On,t).then(o=>o.data.body)}import{ccwAxios as Ln}from"@ccw-api/axios";var Un="https://community-web.ccw.site/study-community/comment/reset_weight";async function nt(e){let t={id:e};return await Ln.post(Un,t).then(o=>o.data.body)}import{ccwAxios as _n}from"@ccw-api/axios";var kn="https://community-web.ccw.site/study-community/comment/delete";async function it(e){let t={id:e};return await _n.post(kn,t).then(o=>o.data.body)}import{ccwAxios as Nn}from"@ccw-api/axios";var Fn="https://community-web.ccw.site/comment/create";async function pt(e,t,o){t.outline??="foo";let r={content:e,topic:t,sectionType:o};return await Nn.post(Fn,r).then(s=>s.data.body)}import{ccwAxios as vn}from"@ccw-api/axios";var jn="https://community-web.ccw.site/comment/like_record/create";async function at(e){let t={commentId:e};return await vn.post(jn,t).then(o=>o.data.body)}import{ccwAxios as Gn}from"@ccw-api/axios";var Hn="https://community-web.ccw.site/student/following/page";async function ct(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Hn,o),s={studentOid:e};return await Gn.post(r,s).then(n=>n.data.body)}import{ccwAxios as Kn}from"@ccw-api/axios";var Vn="https://community-web.ccw.site/study-trade/trade/donate";async function mt(e,t,o="CREATION"){let r={bucks:e,objectId:t,objectType:o};return await Kn.post(Vn,r).then(s=>s.data.body)}import{ccwAxios as zn}from"@ccw-api/axios";var Wn="https://community-web.ccw.site/user_package/user_product";async function dt(e=5,t={}){let o={...p,...t},r=i(Wn,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e};return await zn.post(r,s).then(n=>n.data.body)}import{ccwAxios as $n}from"@ccw-api/axios";var Yn="https://community-web.ccw.site/user_package/status";async function ut(e,t){let o={status:t,id:e};return await $n.post(Yn,o).then(r=>r.data.body)}import{ccwAxios as Jn}from"@ccw-api/axios";var Zn="https://community-web.ccw.site/great_creation/update";async function gt(e){let t={creationOid:e};return await Jn.post(Zn,t).then(o=>o.data.body)}import{ccwAxios as Xn}from"@ccw-api/axios";var Qn="https://community-web.ccw.site/smart_contract/execute";async function lt(e,t,o,r,s="CREATION"){let n={bizId:e,bizType:s,id:t,ruleId:o,params:{bucks:r}};return await Xn.post(Qn,n).then(a=>a.data.body)}import{ccwAxios as ei}from"@ccw-api/axios";var ti="https://community-web.ccw.site/smart_contract/account";async function Rt(e){let t={id:e};return await ei.post(ti,t).then(o=>o.data.body)}import{ccwAxios as oi}from"@ccw-api/axios";var ri="https://community-web.ccw.site/smart_contract/detail";async function yt(e){let t={id:e};return await oi.post(ri,t).then(o=>o.data.body)}import{ccwAxios as si}from"@ccw-api/axios";var ni="https://community-web.ccw.site/smart_contract/list";async function xt(e,t="CREATION"){let o={bizId:e,bizType:t};return await si.post(ni,o).then(r=>r.data.body)}import{ccwAxios as ii}from"@ccw-api/axios";var pi="https://community-web.ccw.site/extensions/following/status";async function At(e,t){let o={playingCreationOid:e,userOid:t};return await ii.post(pi,o).then(r=>r.data.body)}import{ccwAxios as ai}from"@ccw-api/axios";var ci="https://community-web.ccw.site/extensions/creation-like/detail";async function bt(e,t){let o={playingCreationOid:e,creationOid:t};return await ai.post(ci,o).then(r=>r.data.body)}import{ccwAxios as mi}from"@ccw-api/axios";var di="https://community-web.ccw.site/study-community/following/follow";async function ft(e){let t={followingOid:e};return await mi.post(di,t).then(o=>o.data.body)}import{ccwAxios as ui}from"@ccw-api/axios";var gi="https://community-web.ccw.site/study-community/following/unfollow";async function wt(e){let t={followingOid:e};return await ui.post(gi,t).then(o=>o.data.body)}var Pt={acceptAward:fe,bindStudentPhone:Ke,changeStudentPassword:Ve,donateTrade:mt,encodeShortCode:b,executeSmartContract:lt,createCloudVariable:ot,createComment:pt,createShortUrl:K,createSmsCaptchaBySession:ze,createSplitRule:We,decompressShortUrl:Qe,deleteComment:it,foldComment:st,followCreator:ft,unfollowCreator:wt,getApprovalTags:f,getCampaignResources:P,getCcwMainStatus:tt,getCheckInRecords:C,getCodeProfilingDetail:Ze,getCommentReplies:T,getCommentsByTopic:D,getConfigDetail:q,getCreationActivityStatsList:Ye,getCreationAttributeDetail:$e,getCreationDetail:B,getCreationFavoriteDetail:Z,getCreationIntroduction:O,getConnectCommunityCreationLikeStatus:bt,getCreationRecommendPositionList:X,getCreationReleasePage:Je,getCreationScreenshotPage:Q,getCreationStudentDetail:G,getCreationTags:H,getCreatorScore:pe,getDonatedRecordRanking:J,getExcellentCreations:E,getConnectCommunityFollowingStatus:At,getEmojiCategoryList:Ie,getEmojiPage:Te,getAllEmojis:he,getHashTagDetail:W,getHashTagFavoriteDetail:Y,getHistoricalTeamMemberPage:Xe,getManagedHashTags:$,getHealthCheck:qe,getLeafletsItemList:Me,getLikeDetail:L,getLoadingTips:U,getLockedUserDetail:Be,getMutedUserDetail:Ee,getMyHashTagCreations:z,getMyTasks:we,getNotifyDeleteReasons:te,getNotificationPage:Oe,getNotificationStats:Le,getOwnCreationPage:ke,getPersonalCurrencyAccount:Se,getPlanetsOfCreation:V,getPostDetail:oe,getPotentialCreations:N,getRecommendCreations:F,getRecommendCreators:v,getRecommendHashTags:et,getRemixedCreationPage:_,getReputationScoreLogPage:ue,getSearchHotWords:re,getSmartContractAccount:Rt,getSmartContractDetail:yt,getSmartContractList:xt,getSplitRuleDetail:He,getSpreadFeedUnreadCount:xe,getStudentBlockRecordDetail:se,getStudentBlockRecordList:ne,getStudentBlockStatus:ie,getStudentFollowingPage:ct,getStudentLastActiveAt:ae,getStudentProfile:de,getStudentSelfDetail:ge,getStudentSessions:me,getStudentsList:ce,getStudentStats:le,getStudyCommunityMemberDetail:ye,getSubjectAreaPage:Ae,getSubjectAreaPageByChannel:be,getTeamMemberList:Fe,getTeamworkLogPage:ve,getTime:w,getTypicalProjectPage:Ue,getTypicalProjectUnreadCount:_e,getUserAssetStorageSize:h,getUserCardDetail:Pe,getUserLabelList:Ce,getUserProductsPage:dt,queryMallProducts:M,getCreationsByStudent:k,insertCheckInRecord:S,likeComment:at,produceTeamMemberTicket:Ne,resetCommentWeight:nt,searchCloudAssets:I,searchCreationsByTag:j,sendEvent:De,setUserProductStatus:ut,submitCreation:Ge,topComment:rt,updateCreation:je,updateGreatCreation:gt,updateStudent:Re,viewCreationStats:ee};import{ccwAxios as li}from"@ccw-api/axios";var Ri="https://gandi-main.ccw.site/timestamp/current";async function Ct(){return await li.get(Ri).then(e=>e.data.body)}import{ccwAxios as yi}from"@ccw-api/axios";var xi="https://gandi-main.ccw.site/bulletins";async function St(e="PUBLISHED",t={sortField:"publishedAt"}){let o={...p,...t},r=i(xi,{...o,status:e});return await yi.get(r).then(s=>s.data.body)}import{ccwAxios as Ai}from"@ccw-api/axios";var bi="https://gandi-main.ccw.site/bulletins";async function ht(e){return await Ai.get(`${bi}/${e}`).then(t=>t.data.body)}import{ccwAxios as It}from"@ccw-api/axios";var Tt="https://gandi-main.ccw.site/creation/leaderboards";async function Dt(e,t,o,r=""){let s={score:t,oid:o,ext:r},n=`${Tt}/${e}/records`;return await It.post(n,s).then(a=>a.data.body)}async function qt(e){let t=`${Tt}/${e}/records`;return await It.get(t).then(o=>o.data.body)}var Mt={getCurrentTimestamp:Ct,getBulletinsPage:St,getBulletinDetail:ht,submitLeaderboardRecord:Dt,getLeaderboardRecords:qt};import{ccwAxios as fi}from"@ccw-api/axios";var wi="https://bfs-web.ccw.site/users";async function Bt(e,t={sortField:"updatedAt"}){let o={...p,...t},r=i(`${wi}/${e}/extensions`,o);return await fi.get(r).then(s=>s.data.body)}import{ccwAxios as Pi}from"@ccw-api/axios";var Ci="https://bfs-web.ccw.site/extensions";async function Et(e,t){let o={eid:e,bucks:t};return await Pi.post(`${Ci}/${e}/donate`,o).then(r=>r.data.body)}var Ot={donateExtension:Et,getUserExtensions:Bt};import{ccwAxios as Si}from"@ccw-api/axios";var hi="https://community-web-cloud-database.ccw.site/cloud_variable/save";async function Lt(e,t,o){let r={primaryKey:e,secondaryKey:t,value:o};return await Si.post(hi,r).then(s=>s.data.body)}async function Ut(e,t,o){return await Lt(e,t,{v:o})}async function _t(e,t,o){let r=`${e}-u`;return await Lt(r,`${t}`,o)}import{ccwAxios as Ii}from"@ccw-api/axios";var Ti="https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";async function kt(e,t,o,r){let s={accessKey:e,primaryKey:t,secondaryKey:o,filterKeys:r};return await Ii.post(Ti,s).then(n=>n.data.body)}var Nt={saveProjectCloudVariable:Ut,saveUserCloudVariable:_t,getCloudVariableDetailV2:kt};import{ccwAxios as Di}from"@ccw-api/axios";var qi="https://op-parent-api.xiguacity.cn/captcha/create";async function Ft(e="BLOCK_PUZZLE"){let t={type:e};return await Di.post(qi,t).then(o=>o.data.body)}import{ccwAxios as Mi}from"@ccw-api/axios";var Bi="https://op-parent-api.xiguacity.cn/captcha/check";async function vt(e,t,o=5){let r={data:{x:t,y:o},token:e};return await Mi.post(Bi,r).then(s=>s.data.body)}var jt={createCaptcha:Ft,checkCaptcha:vt};import{setToken as Il}from"@ccw-api/axios";var Cl={sso:A,communityWeb:Pt,gandiMain:Mt,bfsWeb:Ot,communityWebCloudDatabase:Nt,opParentApi:jt};export{Ot as bfsWeb,Pt as communityWeb,Nt as communityWebCloudDatabase,Cl as default,Mt as gandiMain,jt as opParentApi,Il as setToken,A as sso};