@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.
Files changed (117) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +58 -10
  3. package/dist/account-_e06LVHE.d.cts +6 -0
  4. package/dist/account-_e06LVHE.d.ts +6 -0
  5. package/dist/{api-eD9o12yg.d.cts → api-DK7ohLa7.d.cts} +9 -18
  6. package/dist/{api-eD9o12yg.d.ts → api-DK7ohLa7.d.ts} +9 -18
  7. package/dist/bfs-web-BtWTiGvL.cjs +1 -0
  8. package/dist/bfs-web-xFSpR-s6.js +1 -0
  9. package/dist/bfs.cjs +1 -0
  10. package/dist/bfs.d.cts +2 -0
  11. package/dist/bfs.d.ts +2 -0
  12. package/dist/bfs.js +1 -0
  13. package/dist/community-web-B7SGi5-y.cjs +1 -0
  14. package/dist/community-web-Dzl0mbbh.js +1 -0
  15. package/dist/community-web-cloud-database-BkH9wp1u.cjs +1 -0
  16. package/dist/community-web-cloud-database-D9IZZIjN.js +1 -0
  17. package/dist/communityWeb.cjs +1 -0
  18. package/dist/communityWeb.d.cts +2 -0
  19. package/dist/communityWeb.d.ts +2 -0
  20. package/dist/communityWeb.js +1 -0
  21. package/dist/communityWebDB.cjs +1 -0
  22. package/dist/communityWebDB.d.cts +2 -0
  23. package/dist/communityWebDB.d.ts +2 -0
  24. package/dist/communityWebDB.js +1 -0
  25. package/dist/extensions-BhEKLZ5I.d.cts +617 -0
  26. package/dist/extensions-D1JeVkuw.d.ts +617 -0
  27. package/dist/gandi-main-Bdq3vj-l.js +1 -0
  28. package/dist/gandi-main-CVC31Jom.cjs +1 -0
  29. package/dist/gandiMain.cjs +1 -0
  30. package/dist/gandiMain.d.cts +2 -0
  31. package/dist/gandiMain.d.ts +2 -0
  32. package/dist/gandiMain.js +1 -0
  33. package/dist/index-B8SvUvok.d.ts +112 -0
  34. package/dist/{index-DHBvF_JC.d.ts → index-BVdJi7l7.d.ts} +12 -10
  35. package/dist/{index-Df4POgQq.d.ts → index-CDuyecw5.d.ts} +12 -10
  36. package/dist/index-CV03H74N.d.cts +2351 -0
  37. package/dist/index-CobjrinB.d.ts +2351 -0
  38. package/dist/index-CwWMFbgH.d.cts +112 -0
  39. package/dist/{index-BE998Kka.d.cts → index-DCDRwVC2.d.cts} +79 -74
  40. package/dist/{index-BDpiLiUN.d.ts → index-DXMyzE0v.d.ts} +79 -74
  41. package/dist/{index-DBnhnINQ.d.cts → index-IcG5LsGk.d.cts} +12 -10
  42. package/dist/{index-CTK9UFeW.d.cts → index-JnYvwWhY.d.cts} +33 -30
  43. package/dist/{index-CTK9UFeW.d.ts → index-JnYvwWhY.d.ts} +33 -30
  44. package/dist/{index-DcBdyIv0.d.cts → index-sOyHrix1.d.cts} +12 -10
  45. package/dist/index.cjs +1 -2
  46. package/dist/index.d.cts +167 -164
  47. package/dist/index.d.ts +167 -164
  48. package/dist/index.js +1 -2
  49. package/dist/op-parent-api-BC6-0rS8.js +1 -0
  50. package/dist/op-parent-api-BZbZzfJ6.cjs +1 -0
  51. package/dist/opParent.cjs +1 -0
  52. package/dist/opParent.d.cts +2 -0
  53. package/dist/opParent.d.ts +2 -0
  54. package/dist/opParent.js +1 -0
  55. package/dist/pages-K5jlky49.d.cts +42 -0
  56. package/dist/pages-K5jlky49.d.ts +42 -0
  57. package/dist/queryPages-CfywLB4S.cjs +1 -0
  58. package/dist/queryPages-Cj4eQL4Q.js +1 -0
  59. package/dist/request-CIq4GGVU.cjs +1 -0
  60. package/dist/request-CzgJtv9u.js +1 -0
  61. package/dist/session-Cw37kR-m.d.ts +43 -0
  62. package/dist/session-D8sffvmq.d.cts +43 -0
  63. package/dist/sso-C0ZWQvKo.cjs +1 -0
  64. package/dist/sso-DUoym0qZ.js +1 -0
  65. package/dist/sso.cjs +1 -0
  66. package/dist/sso.d.cts +2 -0
  67. package/dist/sso.d.ts +2 -0
  68. package/dist/sso.js +1 -0
  69. package/package.json +9 -9
  70. package/dist/account-Dk_iscrW.d.cts +0 -8
  71. package/dist/account-Dk_iscrW.d.ts +0 -8
  72. package/dist/bfs-web/index.cjs +0 -2
  73. package/dist/bfs-web/index.d.cts +0 -5
  74. package/dist/bfs-web/index.d.ts +0 -5
  75. package/dist/bfs-web/index.global.js +0 -29
  76. package/dist/bfs-web/index.js +0 -2
  77. package/dist/community-web/index.cjs +0 -2
  78. package/dist/community-web/index.d.cts +0 -6
  79. package/dist/community-web/index.d.ts +0 -6
  80. package/dist/community-web/index.global.js +0 -29
  81. package/dist/community-web/index.js +0 -2
  82. package/dist/community-web-cloud-database/index.cjs +0 -2
  83. package/dist/community-web-cloud-database/index.d.cts +0 -2
  84. package/dist/community-web-cloud-database/index.d.ts +0 -2
  85. package/dist/community-web-cloud-database/index.global.js +0 -29
  86. package/dist/community-web-cloud-database/index.js +0 -2
  87. package/dist/extensions-Bj9XMupR.d.cts +0 -662
  88. package/dist/extensions-zuu8XVBR.d.ts +0 -662
  89. package/dist/gandi-main/index.cjs +0 -2
  90. package/dist/gandi-main/index.d.cts +0 -3
  91. package/dist/gandi-main/index.d.ts +0 -3
  92. package/dist/gandi-main/index.global.js +0 -29
  93. package/dist/gandi-main/index.js +0 -2
  94. package/dist/index-BrxSkWbg.d.cts +0 -2289
  95. package/dist/index-CYQhPzUX.d.ts +0 -108
  96. package/dist/index-Ci0X9uqV.d.cts +0 -108
  97. package/dist/index-DBAUdwJo.d.ts +0 -2289
  98. package/dist/index.global.js +0 -29
  99. package/dist/op-parent-api/index.cjs +0 -2
  100. package/dist/op-parent-api/index.d.cts +0 -1
  101. package/dist/op-parent-api/index.d.ts +0 -1
  102. package/dist/op-parent-api/index.global.js +0 -29
  103. package/dist/op-parent-api/index.js +0 -2
  104. package/dist/pages-BgT6bhJd.d.cts +0 -46
  105. package/dist/pages-BgT6bhJd.d.ts +0 -46
  106. package/dist/session-Cq-kUclp.d.ts +0 -48
  107. package/dist/session-DGUV-m-G.d.cts +0 -48
  108. package/dist/setToken.cjs +0 -1
  109. package/dist/setToken.d.cts +0 -1
  110. package/dist/setToken.d.ts +0 -1
  111. package/dist/setToken.global.js +0 -29
  112. package/dist/setToken.js +0 -1
  113. package/dist/sso/index.cjs +0 -2
  114. package/dist/sso/index.d.cts +0 -4
  115. package/dist/sso/index.d.ts +0 -4
  116. package/dist/sso/index.global.js +0 -29
  117. package/dist/sso/index.js +0 -2
@@ -0,0 +1,617 @@
1
+ import { n as MongoDBId, o as __exportAll, t as CNameOssUrl } from "./api-DK7ohLa7.js";
2
+ import { t as AccountTypes } from "./account-_e06LVHE.js";
3
+ declare namespace approval_d_exports {
4
+ export { ApprovalTag };
5
+ }
6
+ interface ApprovalTag<Tid = number, Tn = string> {
7
+ bizId: null;
8
+ bizType: null;
9
+ description: string;
10
+ /**
11
+ * 有时会包含tag的名称,如"Gandi开发者"
12
+ */
13
+ iconLink: CNameOssUrl;
14
+ id: Tid;
15
+ /**
16
+ * 浮于iconLink之上的icon
17
+ */
18
+ mediumImage: CNameOssUrl;
19
+ name: Tn;
20
+ prerequisite: string;
21
+ tag: null;
22
+ }
23
+ declare namespace userData_d_exports {
24
+ export { BaseUser, CreatorScore, CurrentParent, InfoModifyDate, MemberArchive, OtherUser, ParentInfo, ProfileExtraInfo, ProfileStatistics, ReputationScore, ReputationScoreLog, Student, StudentFollowerStats, StudentListItem, StudentOverview, StudentProfile, StudentSelfDetail, StudentSelfDetailFields, StudentSimple, StudentUpdateReq, UserLabels };
25
+ }
26
+ interface BaseUser {
27
+ avatar: CNameOssUrl;
28
+ name: string;
29
+ picUrl: CNameOssUrl;
30
+ virtualValue: CNameOssUrl;
31
+ }
32
+ interface StudentSimple extends BaseUser {
33
+ bio: string;
34
+ oid: MongoDBId;
35
+ }
36
+ interface Student extends StudentSimple {
37
+ approvedContent: null | string;
38
+ approvedType: null | string;
39
+ commentCount: number;
40
+ creationCount: number;
41
+ favoriteCount: number;
42
+ followerCount: number;
43
+ followingCount: number;
44
+ followingStatus: "UNFOLLOWED" | "FOLLOWED";
45
+ isSelf: boolean;
46
+ likeCount: number;
47
+ remixedCount: number;
48
+ viewCount: number;
49
+ }
50
+ interface StudentOverview {
51
+ approvedContent: null | string;
52
+ approvedType: null | string;
53
+ avatar: CNameOssUrl;
54
+ bio: string;
55
+ commentCount: null | number;
56
+ creationCount: null | number;
57
+ favoriteCount: null | number;
58
+ followerCount: null | number;
59
+ followingCount: null | number;
60
+ followingStatus: null | "UNFOLLOWED" | "FOLLOWED" | "BOTH_FOLLOWED" | string;
61
+ isSelf: null | boolean;
62
+ likeCount: null | number;
63
+ name: string;
64
+ oid: MongoDBId;
65
+ picUrl: null | CNameOssUrl;
66
+ remixedCount: null | number;
67
+ viewCount: null | number;
68
+ virtualValue: null | CNameOssUrl;
69
+ }
70
+ interface OtherUser extends BaseUser {
71
+ accountOid: MongoDBId;
72
+ accountType: AccountTypes;
73
+ approvalTagRelations: ApprovalTag[];
74
+ createdAt: number;
75
+ currentCreationPlaytime: null;
76
+ ext: {};
77
+ hideGender: boolean;
78
+ id: number;
79
+ status: "NORMAL";
80
+ updatedAt: number;
81
+ virtualValue: CNameOssUrl;
82
+ }
83
+ type UserLabels = "POTENTIAL_CREATION";
84
+ interface ProfileExtraInfo {
85
+ hobbies: string;
86
+ learnedProgrammingLanguages: string;
87
+ programmingCapability: string;
88
+ selfIntroduction: string;
89
+ }
90
+ interface MemberArchive {
91
+ accountOid: null | MongoDBId;
92
+ defaultEditor: string;
93
+ greatCreationOid: MongoDBId;
94
+ homepageCover: CNameOssUrl;
95
+ }
96
+ interface ReputationScore {
97
+ rank: string;
98
+ score: number;
99
+ studentOid: MongoDBId;
100
+ }
101
+ interface ProfileStatistics {
102
+ badgesCount: null | number;
103
+ homeworkCount: number;
104
+ likeHomeworkCount: number;
105
+ }
106
+ interface ReputationScoreLog {
107
+ createdAt: number;
108
+ description: string;
109
+ id: number;
110
+ score: number;
111
+ studentOid: MongoDBId;
112
+ }
113
+ interface StudentProfile extends BaseUser {
114
+ bio: string;
115
+ birthday: number;
116
+ category: string;
117
+ commentCount: number;
118
+ extraInfo: ProfileExtraInfo;
119
+ gender: string;
120
+ hideGender: boolean;
121
+ identityAuthRank: string;
122
+ lastLoginAt: number;
123
+ memberArchive: MemberArchive;
124
+ regChannel: null | string;
125
+ reputationScore: ReputationScore;
126
+ statistics: ProfileStatistics;
127
+ studentCreatedDays: number;
128
+ studentNumber: string;
129
+ studentOid: MongoDBId;
130
+ }
131
+ interface ParentInfo {
132
+ acceptedCashInviteOnce: null | boolean;
133
+ alphaUser: null | boolean;
134
+ altName: null | string;
135
+ annualIncome: null | string;
136
+ archive: null | boolean;
137
+ authedTime: null | number;
138
+ avatar: null | CNameOssUrl;
139
+ bindPhone: string;
140
+ birthday: null | number;
141
+ cashInviteCreatedAt: null | number;
142
+ cashInviteRestartAt: null | number;
143
+ clazzDevice: null | string;
144
+ company: null | string;
145
+ countryCode: null | string;
146
+ createdAt: null | number;
147
+ degree: null | string;
148
+ distinctId: string;
149
+ divorced: null | boolean;
150
+ email: null | string;
151
+ ext: {};
152
+ followTeachers: object[];
153
+ fullName: null | string;
154
+ gender: null | string;
155
+ giftCardCampaign: null | string;
156
+ guestOid: null | MongoDBId;
157
+ idcard: null | string;
158
+ industry: null | string;
159
+ integer: null | number;
160
+ inviterableId: null | string;
161
+ inviterableType: null | string;
162
+ isEmployee: null | boolean;
163
+ jobPosition: null | string;
164
+ lastSubscribeAt: null | number;
165
+ mainContact: null | boolean;
166
+ name: null | string;
167
+ needSelectClazz: null | boolean;
168
+ oid: MongoDBId;
169
+ overseaExperience: null | boolean;
170
+ phoneAddr: null | string;
171
+ powerUser: null | boolean;
172
+ realName: null | string;
173
+ relationship: null | string;
174
+ remarkName: null | string;
175
+ rewardsCashesCount: null | number;
176
+ source: null | string;
177
+ sourceCategory: null | string;
178
+ sourceInfo: null | string;
179
+ status: null | string;
180
+ student: null | object;
181
+ studentOid: MongoDBId;
182
+ subscribe: null | boolean;
183
+ subscribeScene: null | string;
184
+ tags: null | string[];
185
+ telephone: string;
186
+ university: null | string;
187
+ updatedAt: null | number;
188
+ userTags: string[];
189
+ userType: null | string;
190
+ wechatAccount: null | string;
191
+ wechatCity: null | string;
192
+ wechatCountry: null | string;
193
+ wechatOpenid: null | string;
194
+ wechatProvince: null | string;
195
+ wechatUnionid: null | string;
196
+ wehubWxid: null | string;
197
+ wxid: null | string;
198
+ }
199
+ interface CurrentParent {
200
+ bindPhone: string;
201
+ qqNickname: string;
202
+ qqNum: null | string;
203
+ }
204
+ interface InfoModifyDate {
205
+ avatarModifiedAt: null | number;
206
+ nameModifiedAt: null | number;
207
+ }
208
+ type StudentSelfDetailFields = "abGroup" | "accountNumber" | "address" | "age" | "avatar" | "bio" | "birthday" | "city" | "commentCount" | "countryCode" | "createdAt" | "currentParent" | "email" | "extraInfo" | "fullName" | "gender" | "grade" | "hideGender" | "host" | "identity" | "identityAuthRank" | "identityType" | "informationModifyDate" | "lastLoginAt" | "name" | "oid" | "parents" | "picUrl" | "province" | "qq" | "reputationScore" | "school" | "studentNumber" | "updatedAt" | "virtualValue";
209
+ interface StudentSelfDetail {
210
+ abGroup: null | string;
211
+ accountNumber: string;
212
+ address: null | string;
213
+ addressCode: null | string;
214
+ age: number;
215
+ archive: null | boolean;
216
+ avatar: CNameOssUrl;
217
+ bio: string;
218
+ birthYear: null | number;
219
+ birthday: number;
220
+ category: null | string;
221
+ city: null | string;
222
+ commentCount: number;
223
+ contactPhone: null | string;
224
+ countryCode: null | string;
225
+ createdAt: number;
226
+ currentMajorClazzOid: null | MongoDBId;
227
+ currentParent: CurrentParent;
228
+ distinctId: null | string;
229
+ district: null | string;
230
+ email: null | string;
231
+ energy: null | number;
232
+ energyRegain: null | number;
233
+ examScore: null | number;
234
+ extraInfo: ProfileExtraInfo;
235
+ firstTime: null | boolean;
236
+ followingStatus: null | string;
237
+ fullName: string;
238
+ gender: string;
239
+ grade: number;
240
+ group: null | string;
241
+ guest: null | boolean;
242
+ guestNumber: null | string;
243
+ hideGender: boolean;
244
+ host: string;
245
+ identity: string;
246
+ identityAuthRank: string;
247
+ identityType: string;
248
+ informationModifyDate: InfoModifyDate;
249
+ keywords: string[];
250
+ lastLoginAt: null | number;
251
+ lastStudyAt: null | number;
252
+ lowAge: null | boolean;
253
+ midexamScore: null | number;
254
+ miniprojectFreeNum: null | number;
255
+ mpClicked: null | boolean;
256
+ mpShowedModal: null | boolean;
257
+ mpTutorial: null | string;
258
+ name: string;
259
+ newWorkbenchTutorial: null | boolean;
260
+ oid: MongoDBId;
261
+ orgId: null | string;
262
+ parents: ParentInfo[];
263
+ passwordDigest: null | string;
264
+ photo: null | string;
265
+ picUrl: CNameOssUrl;
266
+ province: null | string;
267
+ qq: string;
268
+ receiver: null | string;
269
+ regChannel: null | string;
270
+ remarkName: null | string;
271
+ reputationScore: ReputationScore;
272
+ role: null | string;
273
+ school: string;
274
+ showServiceTerm: null | boolean;
275
+ showTaskList: null | boolean;
276
+ stats: null | object;
277
+ studentNumber: string;
278
+ task: null | object;
279
+ teacherUnreadedMessages: null | number;
280
+ tutorialSteps: null | string;
281
+ updatedAt: number;
282
+ validateSchool: null | boolean;
283
+ virtualValue: CNameOssUrl;
284
+ watchedMiniProjectTutorailVideo: null | boolean;
285
+ xiguaStudentNo: null | string;
286
+ }
287
+ interface StudentListItem {
288
+ abGroup: null | string;
289
+ accountNumber: null | string;
290
+ address: null | string;
291
+ addressCode: null | string;
292
+ age: null | number;
293
+ archive: null | boolean;
294
+ avatar: CNameOssUrl;
295
+ bio: null | string;
296
+ birthYear: null | number;
297
+ birthday: null | number;
298
+ category: null | string;
299
+ city: null | string;
300
+ commentCount: null | number;
301
+ contactPhone: null | string;
302
+ countryCode: null | string;
303
+ createdAt: null | number;
304
+ currentMajorClazzOid: null | MongoDBId;
305
+ currentParent: null | object;
306
+ distinctId: null | string;
307
+ district: null | string;
308
+ email: null | string;
309
+ energy: null | number;
310
+ energyRegain: null | number;
311
+ examScore: null | number;
312
+ extraInfo: null | object;
313
+ firstTime: null | boolean;
314
+ followingStatus: null | string;
315
+ fullName: null | string;
316
+ gender: null | string;
317
+ grade: null | number;
318
+ group: null | string;
319
+ guest: null | boolean;
320
+ guestNumber: null | string;
321
+ hideGender: null | boolean;
322
+ host: null | string;
323
+ identity: null | string;
324
+ identityAuthRank: null | string;
325
+ identityType: null | string;
326
+ informationModifyDate: null | object;
327
+ keywords: string[];
328
+ lastLoginAt: null | number;
329
+ lastStudyAt: null | number;
330
+ lowAge: null | boolean;
331
+ midexamScore: null | number;
332
+ miniprojectFreeNum: null | number;
333
+ mpClicked: null | boolean;
334
+ mpShowedModal: null | boolean;
335
+ mpTutorial: null | string;
336
+ name: string;
337
+ newWorkbenchTutorial: null | boolean;
338
+ oid: MongoDBId;
339
+ orgId: null | string;
340
+ parents: object[];
341
+ passwordDigest: null | string;
342
+ photo: null | string;
343
+ picUrl: CNameOssUrl;
344
+ province: null | string;
345
+ qq: null | string;
346
+ receiver: null | string;
347
+ regChannel: null | string;
348
+ remarkName: null | string;
349
+ reputationScore: null | number;
350
+ role: null | string;
351
+ school: null | string;
352
+ showServiceTerm: null | boolean;
353
+ showTaskList: null | boolean;
354
+ stats: null | object;
355
+ studentNumber: string;
356
+ task: null | object;
357
+ teacherUnreadedMessages: null | number;
358
+ tutorialSteps: null | string;
359
+ updatedAt: null | number;
360
+ validateSchool: null | boolean;
361
+ virtualValue: CNameOssUrl;
362
+ watchedMiniProjectTutorailVideo: null | boolean;
363
+ xiguaStudentNo: null | string;
364
+ }
365
+ interface CreatorScore {
366
+ rank: "ORDINARY" | "HACKER" | "ADVANCED";
367
+ rankRetentionDate: null;
368
+ score: number;
369
+ studentOid: MongoDBId;
370
+ }
371
+ interface StudentFollowerStats {
372
+ followerCount: number;
373
+ followingCount: number;
374
+ }
375
+ interface StudentUpdateReq {
376
+ birthday: number;
377
+ fullName: string;
378
+ gender: string;
379
+ hideGender: boolean;
380
+ hobbies: string;
381
+ learnedProgrammingLanguages: string;
382
+ programmingCapability: string;
383
+ qq: string;
384
+ school: string;
385
+ }
386
+ declare namespace creation_d_exports {
387
+ export { Creation, CreationMinimal, CreationRelease, CreationScreenMode, CreationScreenshot, CreationSimple, CreationStatus, CreationTag, DonatedRecord, FavoriteDetail, KBDLayout, LikeActions, LoadingTip, ReleaseTag, SourceOpenLevel, TeamMemberResp, TeamworkStatus, UserLikeDetail };
388
+ }
389
+ interface CreationRelease {
390
+ checked: boolean;
391
+ coverGifLink: CNameOssUrl;
392
+ coverLink: CNameOssUrl;
393
+ createdAt: number;
394
+ customVersion: string;
395
+ description: string;
396
+ extensions: string[];
397
+ hasCloudVariables: boolean;
398
+ keyboardLayout: KBDLayout;
399
+ oid: MongoDBId;
400
+ operatingInstruction: string;
401
+ profiling: null | string;
402
+ projectLink: string;
403
+ status: CreationStatus;
404
+ submittedAt: number;
405
+ tags: string[];
406
+ updatedAt: number;
407
+ version: string;
408
+ videoLink: null | string;
409
+ }
410
+ interface TeamMemberResp {
411
+ authority: string;
412
+ avatar: string;
413
+ createdAt: number;
414
+ creationOid: MongoDBId;
415
+ name: string;
416
+ online: null | boolean;
417
+ priority: number;
418
+ profile: null | string;
419
+ role: string;
420
+ userOid: MongoDBId;
421
+ }
422
+ interface TeamworkStatus {
423
+ currentTeamMemberList: TeamMemberResp[];
424
+ online: boolean;
425
+ }
426
+ interface CreationSimple extends CreationMinimal {
427
+ artifactType: string;
428
+ createdAt: number;
429
+ currentReleaseOid: MongoDBId;
430
+ description: string;
431
+ ext: {
432
+ SUBMIT_HASH_TAGS: string[];
433
+ keyboardLayout: KBDLayout;
434
+ requireLogin: boolean;
435
+ };
436
+ featuredCoverLink: string;
437
+ forEveryone: boolean;
438
+ hashTags: string[];
439
+ isOpenSource: boolean;
440
+ isTeamwork: boolean;
441
+ keyboardLayout: KBDLayout;
442
+ lastPassedAt: number;
443
+ latestProjectLink: string;
444
+ operatedAt: number;
445
+ rank: string;
446
+ requireLogin: boolean;
447
+ screenMode: CreationScreenMode;
448
+ sourceOpenLevel: SourceOpenLevel;
449
+ status: CreationStatus;
450
+ student: StudentOverview;
451
+ studentOid: MongoDBId;
452
+ tags: string[];
453
+ teamMemberRespList: TeamMemberResp[];
454
+ type: string;
455
+ updatedAt: number;
456
+ /**
457
+ * ALL: 所有人可见
458
+ * PRIVATE: 仅自己可见
459
+ */
460
+ visibleScope: "PRIVATE" | "ALL";
461
+ }
462
+ interface Creation extends CreationSimple {
463
+ creationReleaseList: CreationRelease[];
464
+ currentHashTag: null | string;
465
+ eid: null | string;
466
+ firstPublishedRelease: null | CreationRelease;
467
+ isSelf: null | boolean;
468
+ projectLastModifiedAt: null | number;
469
+ remixCreationOid: null | MongoDBId;
470
+ remixedCreation: null | object;
471
+ repostedSource: null | object;
472
+ stats: null | ExtensionStats;
473
+ student: StudentOverview;
474
+ teamworkStatus: null | TeamworkStatus;
475
+ typicalProjectId: null | string;
476
+ }
477
+ interface CreationTag {
478
+ code: string;
479
+ createdAt: number;
480
+ id: number;
481
+ priority: number;
482
+ title: string;
483
+ updatedAt: number;
484
+ visibility: "PUBLIC";
485
+ }
486
+ interface LoadingTip {
487
+ 妮可: string[];
488
+ 孙小弟: string[];
489
+ 小八: string[];
490
+ 胖达: string[];
491
+ }
492
+ interface UserLikeDetail {
493
+ action: LikeActions;
494
+ createdAt: number;
495
+ /**
496
+ * 作品id
497
+ */
498
+ creationOid: MongoDBId;
499
+ oid: MongoDBId;
500
+ /**
501
+ * 一般为作品作者
502
+ */
503
+ receiverOid: MongoDBId;
504
+ /**
505
+ * 用户id
506
+ */
507
+ senderOid: MongoDBId;
508
+ }
509
+ type LikeActions = "SIX" | "HEART" | "HANDSHAKE" | "LIKE" | "SMILE" | "FLOWER" | "WATERMELON";
510
+ interface DonatedRecord {
511
+ bucks: number;
512
+ createdAt: number;
513
+ creationOid: MongoDBId;
514
+ donatorAvatar: CNameOssUrl;
515
+ donatorName: string;
516
+ donatorOid: MongoDBId;
517
+ donatorType: AccountTypes;
518
+ id: number;
519
+ updatedAt: number;
520
+ }
521
+ interface CreationScreenshot {
522
+ commenter: OtherUser;
523
+ commenterId: number;
524
+ createdAt: number;
525
+ creationScreenshot: CNameOssUrl;
526
+ ext: {};
527
+ id: number;
528
+ msg: string;
529
+ status: null;
530
+ topicId: number;
531
+ updatedAt: number;
532
+ weight: number;
533
+ }
534
+ interface FavoriteDetail {
535
+ creationOid: MongoDBId;
536
+ favoritedAt: number;
537
+ studentOid: MongoDBId;
538
+ updatedAt: number;
539
+ }
540
+ interface CreationMinimal {
541
+ commentCount: number;
542
+ creationRelease: CreationRelease;
543
+ favoriteCount: number;
544
+ latestCoverLink: string;
545
+ likeCount: number;
546
+ oid: MongoDBId;
547
+ remixedCount: number;
548
+ title: string;
549
+ viewCount: number;
550
+ }
551
+ type CreationScreenMode = "LANDSCAPE";
552
+ type ReleaseTag = "Alpha" | "Beta" | "RC" | "Release";
553
+ type KBDLayout = "CUSTOM" | "TOUCH" | "DISABLED";
554
+ type SourceOpenLevel = "PRIVATE" | "SOURCE_READABLE" | "PUBLIC";
555
+ type CreationStatus = "PUBLISHED" | "BANNED" | "SUBMITTED" | "REJECTED";
556
+ //#endregion
557
+ //#region src/types/extensions.d.ts
558
+ interface ExtensionStats {
559
+ averageRating: number;
560
+ mostApprovedReviewIds: string[];
561
+ reviewCount: number;
562
+ reviewTags: string[];
563
+ }
564
+ interface ExtensionStatsWithCounts extends ExtensionStats {
565
+ commentCount: number;
566
+ donateCount: number;
567
+ favoriteCount: number;
568
+ likeCount: number;
569
+ reviewTags: [];
570
+ }
571
+ interface Extension {
572
+ activeVersionId: number;
573
+ cover: CNameOssUrl;
574
+ createdAt: number;
575
+ creationId: MongoDBId;
576
+ description: string;
577
+ eid: string;
578
+ icon: "test";
579
+ id: number;
580
+ latestProjectCoverLink: null;
581
+ latestProjectLink: null;
582
+ name: string;
583
+ publisher: {
584
+ avatar: CNameOssUrl;
585
+ id: MongoDBId;
586
+ locked: null;
587
+ nickname: string;
588
+ };
589
+ publisherId: MongoDBId;
590
+ stats: ExtensionStatsWithCounts;
591
+ updatedAt: number;
592
+ versions: ExtensionVersion[];
593
+ }
594
+ interface ExtensionVersion {
595
+ assetUri: CNameOssUrl;
596
+ changelog: string;
597
+ createdAt: number;
598
+ demos: [];
599
+ eid: string;
600
+ id: number;
601
+ license: null;
602
+ previews: [CNameOssUrl];
603
+ projectCoverLink: null;
604
+ projectLink: CNameOssUrl;
605
+ readme: string;
606
+ rejectReason: null;
607
+ releaseTags: ReleaseTag[];
608
+ releasedAt: number;
609
+ status: ExtensionApproveStatus;
610
+ tags: [];
611
+ tutorials: [];
612
+ updatedAt: number;
613
+ version: string;
614
+ }
615
+ type ExtensionApproveStatus = "PENDING" | "APPROVED" | "REJECTED";
616
+ //#endregion
617
+ export { ApprovalTag as A, StudentListItem as C, StudentSimple as D, StudentSelfDetailFields as E, UserLabels as O, StudentFollowerStats as S, StudentSelfDetail as T, creation_d_exports as _, CreationScreenMode as a, ReputationScoreLog as b, CreationStatus as c, FavoriteDetail as d, KBDLayout as f, UserLikeDetail as g, SourceOpenLevel as h, CreationRelease as i, approval_d_exports as j, userData_d_exports as k, CreationTag as l, ReleaseTag as m, Creation as n, CreationScreenshot as o, LoadingTip as p, CreationMinimal as r, CreationSimple as s, Extension as t, DonatedRecord as u, CreatorScore as v, StudentProfile as w, Student as x, OtherUser as y };
@@ -0,0 +1 @@
1
+ import{t as e}from"./request-CzgJtv9u.js";import{n as t,t as n}from"./queryPages-Cj4eQL4Q.js";async function r(){return await e.get(`https://gandi-main.ccw.site/timestamp/current`).then(e=>e.data.body)}async function i(r=`PUBLISHED`,i={sortField:`publishedAt`}){let a=t(`https://gandi-main.ccw.site/bulletins`,{...n,...i,status:r});return await e.get(a).then(e=>e.data.body)}async function a(t){return await e.get(`https://gandi-main.ccw.site/bulletins/${t}`).then(e=>e.data.body)}const o=`https://gandi-main.ccw.site/creation/leaderboards`;async function s(t,n,r,i=``){let a={score:n,oid:r,ext:i},s=`${o}/${t}/records`;return await e.post(s,a).then(e=>e.data.body)}async function c(t){let n=`${o}/${t}/records`;return await e.get(n).then(e=>e.data.body)}const l={getCurrentTimestamp:r,getBulletinsPage:i,getBulletinDetail:a,submitLeaderboardRecord:s,getLeaderboardRecords:c};export{l as t};
@@ -0,0 +1 @@
1
+ const e=require("./request-CIq4GGVU.cjs"),t=require("./queryPages-CfywLB4S.cjs");async function n(){return await e.t.get(`https://gandi-main.ccw.site/timestamp/current`).then(e=>e.data.body)}async function r(n=`PUBLISHED`,r={sortField:`publishedAt`}){let i={...t.t,...r},a=t.n(`https://gandi-main.ccw.site/bulletins`,{...i,status:n});return await e.t.get(a).then(e=>e.data.body)}async function i(t){return await e.t.get(`https://gandi-main.ccw.site/bulletins/${t}`).then(e=>e.data.body)}const a=`https://gandi-main.ccw.site/creation/leaderboards`;async function o(t,n,r,i=``){let o={score:n,oid:r,ext:i},s=`${a}/${t}/records`;return await e.t.post(s,o).then(e=>e.data.body)}async function s(t){let n=`${a}/${t}/records`;return await e.t.get(n).then(e=>e.data.body)}const c={getCurrentTimestamp:n,getBulletinsPage:r,getBulletinDetail:i,submitLeaderboardRecord:o,getLeaderboardRecords:s};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./gandi-main-CVC31Jom.cjs");exports.gandiMain=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as gandiMain } from "./index-CwWMFbgH.cjs";
2
+ export { gandiMain };
@@ -0,0 +1,2 @@
1
+ import { t as gandiMain } from "./index-B8SvUvok.js";
2
+ export { gandiMain };
@@ -0,0 +1 @@
1
+ import{t as e}from"./gandi-main-Bdq3vj-l.js";export{e as gandiMain};