@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
@@ -1,2289 +0,0 @@
1
- import { A as AccountTypes } from './account-Dk_iscrW.cjs';
2
- import { M as MongoDBId, C as CNameOssUrl, O as OriginOssUrl, U as UUID } from './api-eD9o12yg.cjs';
3
- import { A as ApprovalTag, O as OtherUser, C as CreationScreenMode, S as SourceOpenLevel, b as Creation, d as CreationSimple, U as UserLikeDetail, L as LoadingTip, e as Student, f as CreationTag, g as CreationStatus, D as DonatedRecord, F as FavoriteDetail, h as CreationScreenshot, i as CreatorScore, j as StudentListItem, k as StudentProfile, R as ReputationScoreLog, l as StudentSelfDetailFields, m as StudentSelfDetail, n as StudentFollowerStats, o as CreationMinimal, p as UserLabels, K as KBDLayout, q as ReleaseTag, r as CreationRelease, s as StudentSimple } from './extensions-Bj9XMupR.cjs';
4
- import { P as PageArgs, a as PagesRes } from './pages-BgT6bhJd.cjs';
5
- import { S as StudentSession } from './session-DGUV-m-G.cjs';
6
-
7
- type Res$1M = {
8
- /**
9
- * 获取的inviteCode码
10
- */
11
- code: string;
12
- createdAt: number;
13
- ext: null;
14
- id: number;
15
- origin: {
16
- creationOid: MongoDBId;
17
- entrance: "create_detail";
18
- inviterAvatar: string;
19
- inviterId: MongoDBId;
20
- inviterName: string;
21
- inviterType: AccountTypes;
22
- };
23
- status: null;
24
- type: "SHORT_CODE";
25
- updatedAt: number;
26
- };
27
- /**
28
- * 生成作品邀请码
29
- * @param {MongoDBId} inviterId 邀请人id
30
- * @param {CNameOssUrl} inviterAvatar 邀请人头像
31
- * @param {string} inviterName 邀请人用户名
32
- * @param {MongoDBId} creationOid 作品id
33
- * @returns {Promise<Res>}
34
- */
35
- declare function encodeShortCode(inviterId: MongoDBId, inviterAvatar: CNameOssUrl, inviterName: string, creationOid: MongoDBId): Promise<Res$1M>;
36
-
37
- type Res$1L<Tid extends number, Tn extends string> = ApprovalStatus<Tid, Tn>[];
38
- type ApprovalStatus<Tid extends number, Tn extends string> = {
39
- adorned: boolean;
40
- approvalIconLink: CNameOssUrl;
41
- approvalTag: ApprovalTag<Tid, Tn>;
42
- approvalTagId: Tid;
43
- approvalTagName: Tn;
44
- createdAt: number;
45
- id: number;
46
- objectId: MongoDBId;
47
- objectType: AccountTypes;
48
- updatedAt: number;
49
- };
50
- /**
51
- * 获取特定用户的勋章数据
52
- * @param {MongoDBId} studentOid 用户id
53
- * @returns {Promise<Res<Tid, Tn>>} 勋章数据
54
- */
55
- declare function getApprovalTags<Tid extends number = number, Tn extends string = string>(studentOid: MongoDBId): Promise<Res$1L<Tid, Tn>>;
56
-
57
- /**
58
- * @returns {Promise<number>} 当前时间戳,相当于Date.now()
59
- */
60
- declare function getTime(): Promise<number>;
61
-
62
- type CampaignKeywords = "tags" | "mmo";
63
- type Res$1K<K extends string> = {
64
- createdAt: number;
65
- hiddenNavbar: false;
66
- id: number;
67
- keyword: K;
68
- resourceIds: string[];
69
- resourceType: "SUBJECT_AREA";
70
- updatedAt: number;
71
- };
72
- /**
73
- * 不知道这个接口有什么用,请查看https://www.ccw.site/pages/tags自行寻找用法
74
- * @param {K} keyword 活动关键词
75
- * @returns {Promise<Res<K>>}
76
- */
77
- declare function getCampaignResources<K extends CampaignKeywords>(keyword: K): Promise<Res$1K<K>>;
78
-
79
- type Res$1J = {
80
- checkInRecordResps: DailyRecord[];
81
- checkInTimes: number;
82
- todayIndex: number;
83
- };
84
- interface DailyRecord {
85
- bucks: number;
86
- isCheckIn: boolean;
87
- }
88
- /**
89
- * 获取本月签到记录
90
- */
91
- declare function getCheckInRecords(): Promise<Res$1J>;
92
-
93
- type Res$1I = boolean;
94
- /**
95
- * 插入签到记录(相当于签到)
96
- * @returns {Promise<boolean>} 是否成功
97
- */
98
- declare function insertCheckInRecord(): Promise<Res$1I>;
99
-
100
- type Res$1H = {
101
- /**
102
- * @example 100MB: "104857600"
103
- */
104
- totalStorage: string;
105
- usedStorage: string;
106
- };
107
- /**
108
- * 获取用户云存储空间信息
109
- * @returns {Promise<Res>} 存储空间信息
110
- */
111
- declare function getUserAssetStorageSize(): Promise<Res$1H>;
112
-
113
- type SortField$b = "type" | "createdAt";
114
- type Res$1G = PagesRes<CloudAsset>;
115
- interface CloudAsset {
116
- categories: [];
117
- /**
118
- * 毫秒级时间戳
119
- */
120
- createdAt: number;
121
- creatorOid: MongoDBId;
122
- customizedInfo: null;
123
- ext: {};
124
- id: string;
125
- keywords: [];
126
- name: string;
127
- /**
128
- * @example "/23azZqHBnqj/2BzzTdi5I5C/2BzzTdi5I5w"
129
- */
130
- path: string;
131
- previewImages: [CNameOssUrl];
132
- size: number;
133
- tags: [];
134
- type: CloudAssetType;
135
- updatedAt: number;
136
- /**
137
- * 素材直链
138
- */
139
- uri: CNameOssUrl;
140
- }
141
- type CloudAssetType = "COSTUME" | "FOLDER" | "VIDEO" | "AUDIO";
142
- /**
143
- * 获取用户云背包特定目录内素材
144
- * @param {MongoDBId} creatorOid 用户id
145
- * @param {string} path 目录(例如'/23azZqHBnqj/2BzzTdi5I5C/')
146
- * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
147
- * @returns {Promise<Res>} 目录内的素材分页结果
148
- */
149
- declare function searchCloudAssets<T extends string>(creatorOid: MongoDBId, path?: string, pageArgs_?: Partial<PageArgs<SortField$b | T>>): Promise<Res$1G>;
150
-
151
- interface Comment {
152
- commenter: OtherUser;
153
- commenterId: number;
154
- /**
155
- * 评论内容
156
- */
157
- content: string;
158
- createdAt: number;
159
- dislikeCount: number;
160
- disliked: boolean;
161
- ext: {};
162
- hiddenOpinion: null;
163
- id: number;
164
- likeCount: number;
165
- liked: boolean;
166
- /**
167
- * 如果是评论,则为null,如果是回复,则为回复的评论的id
168
- */
169
- parentId: number | null;
170
- receiver: OtherUser | null;
171
- receiverId: number;
172
- replyCount: null | number;
173
- replyToId: number;
174
- reported: boolean;
175
- sectionType: "COMMENT";
176
- status: "PUBLISHED" | "FOLDED";
177
- subComments: [];
178
- topic: TopicInfo;
179
- /**
180
- * 回复的文章/扩展id
181
- */
182
- topicId: number;
183
- updatedAt: number;
184
- weight: number;
185
- }
186
- interface TopicInfo extends MinimalTopicInfo {
187
- createdAt: number;
188
- ext: {
189
- /**
190
- * 文章uuid可能被包含
191
- */
192
- slug?: string;
193
- };
194
- id: number;
195
- /**
196
- * 文章名称/扩展名称/作品名称
197
- */
198
- updatedAt: number;
199
- }
200
- type MinimalTopicInfo = {
201
- /**
202
- * 和响应无关,但至少要传一个字符进去
203
- */
204
- outline?: string;
205
- subjectOid: string;
206
- subjectType: SubjectType$1;
207
- };
208
- type SubjectType$1 = "EXTENSION" | "POST" | "CREATION";
209
- type SectionType = "REVIEW" | "COMMENT" | "PROFILE";
210
-
211
- type comment_Comment = Comment;
212
- type comment_MinimalTopicInfo = MinimalTopicInfo;
213
- type comment_SectionType = SectionType;
214
- type comment_TopicInfo = TopicInfo;
215
- declare namespace comment {
216
- export type { comment_Comment as Comment, comment_MinimalTopicInfo as MinimalTopicInfo, comment_SectionType as SectionType, SubjectType$1 as SubjectType, comment_TopicInfo as TopicInfo };
217
- }
218
-
219
- type SortField$a = "createdAt";
220
- type Res$1F = PagesRes<Comment>;
221
- /**
222
- * 根据topicId获取评论的回复
223
- * @param {number} topicId 话题id
224
- * @param {number} parentId 父评论id
225
- * @param {("PUBLISHED" | "FOLDED")[]} statuses 状态过滤
226
- * @param {Partial<PageArgs<SortField|T>>} pageArgs_ 分页参数
227
- * @returns {Promise<Res>} 评论分页结果
228
- */
229
- declare function getCommentReplies<T extends string>(topicId: number, parentId: number, statuses?: ("PUBLISHED" | "FOLDED")[], pageArgs_?: Partial<PageArgs<SortField$a | T>>): Promise<Res$1F>;
230
-
231
- type SortField$9 = "createdAt" | "likes";
232
- type Res$1E = PagesRes<Comment>;
233
- /**
234
- * 根据主题获取评论列表
235
- * @param {string} subjectOid 主题oid
236
- * @param {SubjectType} subjectType 主题类型 (如: "POST")
237
- * @param {SectionType} sectionType 区块类型 (如: "COMMENT")
238
- * @param {Partial<PageArgs<SortField| T>>} pageArgs_ 分页参数
239
- * @returns {Promise<Res>} 评论分页结果
240
- */
241
- declare function getCommentsByTopic<T extends string>(subjectOid: string, subjectType: SubjectType$1, sectionType: SectionType, pageArgs_?: Partial<PageArgs<SortField$9 | T>>): Promise<Res$1E>;
242
-
243
- type Res$1D = string | number | boolean | null | object;
244
- /**
245
- * 获取配置详情
246
- * @param {string} key 配置键
247
- * @returns {Promise<Res>} 配置值
248
- */
249
- declare function getConfigDetail(key: string): Promise<Res$1D>;
250
-
251
- declare enum ProductCategory$1 {
252
- Merchandise = 7,
253
- AvatarFrame = 5,
254
- EMOJI = 10
255
- }
256
- type ProductSource = "CCW_OFFICIAL";
257
- type ProductType = 1 | 2 | 3;
258
- type Product = {
259
- createdAt: number;
260
- description: string;
261
- elements: unknown[];
262
- functionDescribe: string;
263
- id: number;
264
- name: string;
265
- note: string;
266
- offlineAt: null | number;
267
- oid: MongoDBId;
268
- onlineAt: number;
269
- originPointPrice: number;
270
- originPrice: number;
271
- periodValidityDay: null | number;
272
- periodValidityTime: null | number;
273
- picUrl: null | CNameOssUrl | string;
274
- pointPrice: number;
275
- price: number;
276
- priority: number;
277
- productCategory: ProductCategory$1;
278
- purchaseLimitationNum: number;
279
- source: ProductSource;
280
- status: number;
281
- stockNum: number;
282
- type: ProductType;
283
- updatedAt: number;
284
- virtualValue: null | CNameOssUrl | string;
285
- };
286
-
287
- type mall_Product = Product;
288
- type mall_ProductSource = ProductSource;
289
- type mall_ProductType = ProductType;
290
- declare namespace mall {
291
- export { type mall_Product as Product, ProductCategory$1 as ProductCategory, type mall_ProductSource as ProductSource, type mall_ProductType as ProductType };
292
- }
293
-
294
- type ProductSortField = "createdAt" | "updatedAt" | "pointPrice" | "priority" | "stockNum";
295
- type Res$1C = PagesRes<Product, ProductSortField>;
296
- /**
297
- * 分页查询CCW小商店商品列表
298
- * @param {ProductCategory | undefined} productCategory 商品分类(可选):5=头像框,7=周边商品,10=表情 等
299
- * @param {Partial<PageArgs<ProductSortField>>} pageArgs_ 分页参数(默认 page=1, perPage=30, sortType="DESC")
300
- * @returns {Promise<Res>} 商品分页结果 PagesRes<Product>
301
- */
302
- declare function queryMallProducts<T extends string>(productCategory?: ProductCategory$1, pageArgs_?: Partial<PageArgs<ProductSortField | T>>): Promise<Res$1C>;
303
-
304
- type Res$1B = {
305
- artifactType: "STANDARD";
306
- createdAt: null | number;
307
- creationRelease: null | object;
308
- currentReleaseOid: null | MongoDBId;
309
- deletedAt: null | number;
310
- description: null | string;
311
- eid: null | string;
312
- ext: null | object;
313
- favoriteCount: number;
314
- featuredCoverLink: null | CNameOssUrl;
315
- forEveryone: null | boolean;
316
- hashTags: string[];
317
- isOpenSource: null | boolean;
318
- isTeamwork: null | boolean;
319
- keyboardLayout: null | string;
320
- lastPassedAt: null | number;
321
- latestCoverLink: CNameOssUrl;
322
- latestProjectLink: CNameOssUrl;
323
- likeCount: number;
324
- oid: MongoDBId;
325
- operatedAt: number;
326
- rank: "ORDINARY";
327
- remixCreationOid: null | MongoDBId;
328
- remixedCount: number;
329
- repostedSource: null | object;
330
- requireLogin: null | boolean;
331
- screenMode: CreationScreenMode;
332
- sourceOpenLevel: SourceOpenLevel;
333
- status: "DRAFT" | "PUBLISHED" | "BANNED" | "SUBMITTED" | "REJECTED";
334
- studentOid: MongoDBId;
335
- tags: string[];
336
- title: string;
337
- type: "ORIGINAL" | "REMIXED";
338
- typicalProjectId: null | string;
339
- updatedAt: number;
340
- viewCount: number;
341
- visibleScope: null | "PRIVATE" | "ALL";
342
- };
343
- /**
344
- * 创建作品(草稿)
345
- * @param {string} title 作品名称
346
- * @param {CNameOssUrl} latestProjectLink 最新项目文件链接 (.sb3)
347
- * @param {CNameOssUrl} latestCoverLink 最新封面链接
348
- * @param {"ORIGINAL" | "REMIXED"} type 作品类型
349
- * @param {CreationScreenMode} screenMode 屏幕模式
350
- * @param {SourceOpenLevel} sourceOpenLevel 源码开放级别
351
- * @returns {Promise<Res>} 创建后的作品草稿信息
352
- */
353
- declare function createCreation(title: string, latestProjectLink: CNameOssUrl, latestCoverLink: CNameOssUrl, type?: "ORIGINAL" | "REMIXED", screenMode?: CreationScreenMode, sourceOpenLevel?: SourceOpenLevel): Promise<Res$1B>;
354
-
355
- type Res$1A = Creation;
356
- /**
357
- * 获取作品详情
358
- * @param {MongoDBId} oid 作品id
359
- * @param {string} accessKey
360
- * @param {''|'EDIT'} mode
361
- * @returns {Promise<Creation>} 作品详情
362
- */
363
- declare function getCreationDetail(oid: MongoDBId, accessKey: string, mode?: "" | "EDIT"): Promise<Res$1A>;
364
-
365
- type Res$1z = CreationSimple[];
366
- /**
367
- * 获取精选作品列表
368
- * @param {number} num 数量
369
- * @returns {Promise<CreationSimple[]>} 作品列表
370
- */
371
- declare function getExcellentCreations(num: number): Promise<Res$1z>;
372
-
373
- type Res$1y = Creation;
374
- /**
375
- * 获取用户代表作
376
- * @param {MongoDBId} studentOid 学生id
377
- * @returns {Promise<Creation>} 作品详情
378
- */
379
- declare function getCreationIntroduction(studentOid: MongoDBId): Promise<Res$1y>;
380
-
381
- type Res$1x = UserLikeDetail;
382
- /**
383
- * 获取用户是否曾给作品点赞及点赞动作
384
- * @param {MongoDBId} creationOid 作品id
385
- * @returns {Promise<UserLikeDetail>} 点赞详情
386
- */
387
- declare function getLikeDetail(creationOid: MongoDBId): Promise<Res$1x>;
388
-
389
- type Res$1w = LoadingTip;
390
- /**
391
- * 获取加载提示语
392
- * @returns {Promise<LoadingTip>} 加载提示语
393
- */
394
- declare function getLoadingTips(): Promise<Res$1w>;
395
-
396
- type SortField$8 = "createdAt" | "likeCount" | "viewCount" | "updatedAt" | "commentCount";
397
- type Res$1v = PagesRes<CreationSimple>;
398
- /**
399
- * 根据原作品id获取改编作品分页列表
400
- * @param {MongoDBId[]} originCreationOids 原作品id列表
401
- * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
402
- * @returns {Promise<Res>} 改编作品分页结果
403
- */
404
- declare function getRemixedCreationPage<T extends string>(originCreationOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$8 | T>>): Promise<Res$1v>;
405
-
406
- type SortField$7 = "createdAt" | "likeCount" | "viewCount";
407
- type Res$1u = PagesRes<Creation>;
408
- /**
409
- * 获取学生的作品列表
410
- * @param {MongoDBId[]} studentOids 学生id列表
411
- * @param {Partial<PageArgs<SortField|T>>} pageArgs_ 分页参数
412
- * @returns {Promise<Res>} 作品分页结果
413
- */
414
- declare function getCreationsByStudent<T extends string>(studentOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$7 | T>>): Promise<Res$1u>;
415
-
416
- type Res$1t = CreationSimple[];
417
- /**
418
- * 获取潜力作品列表
419
- * @param {number} num 数量
420
- * @returns {Promise<CreationSimple[]>} 作品列表
421
- */
422
- declare function getPotentialCreations(num: number): Promise<Res$1t>;
423
-
424
- type SortField$6 = "createdAt" | "likeCount" | "viewCount";
425
- type Res$1s = PagesRes<CreationSimple>;
426
- /**
427
- * 获取推荐作品列表
428
- * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
429
- * @returns {Promise<Res>} 作品分页结果
430
- */
431
- declare function getRecommendCreations<T extends string>(num: number, pageArgs_?: Partial<PageArgs<SortField$6 | T>>): Promise<Res$1s>;
432
-
433
- type CreatorType = "EXCELLENT" | "POTENTIAL";
434
- type RecommendCreator = {
435
- approvedContent: null | string;
436
- approvedType: null | string;
437
- avatar: CNameOssUrl;
438
- bio: string;
439
- creationCount: number;
440
- creatorType: CreatorType;
441
- followerCount: number;
442
- gender: "MALE" | "FEMALE";
443
- name: string;
444
- studentOid: MongoDBId;
445
- };
446
- type Res$1r = RecommendCreator[];
447
- /**
448
- * 获取社区推荐创作者列表
449
- * @param {number} excellentCount 精选创作者数量
450
- * @param {number} potentialCount 潜力创作者数量
451
- * @returns {Promise<Res>} 推荐创作者列表
452
- */
453
- declare function getRecommendCreators(excellentCount?: number, potentialCount?: number): Promise<Res$1r>;
454
-
455
- type SortField$5 = "createdAt" | "likeCount" | "viewCount";
456
- type Req$1 = {
457
- oids?: string[];
458
- tag?: string;
459
- };
460
- type Res$1q = PagesRes<CreationSimple>;
461
- /**
462
- * 搜索作品
463
- * @param {string} req.tag 标签 例如:游戏 动画故事 角色扮演 kukeChat
464
- * @param {string[]} req.oids 作品id列表
465
- * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
466
- * @returns {Promise<Res>} 作品分页结果
467
- */
468
- declare function searchCreationsByTag<T extends string>(req: Req$1, pageArgs_?: Partial<PageArgs<SortField$5 | T>>): Promise<Res$1q>;
469
-
470
- type Res$1p = Student;
471
- /**
472
- * 获取学生详情
473
- * @param {MongoDBId} studentOid 学生id
474
- * @returns {Promise<Student>} 学生详情
475
- */
476
- declare function getCreationStudentDetail(studentOid: MongoDBId): Promise<Res$1p>;
477
-
478
- type Res$1o = CreationTag[];
479
- /**
480
- * 获取作品标签列表 例如 https://www.ccw.site/pages/tags/anime
481
- * @returns {Promise<CreationTag[]>} 标签列表
482
- */
483
- declare function getCreationTags(): Promise<Res$1o>;
484
-
485
- type Res$1n = `https://ccw.site/s/${string}`;
486
- /**
487
- * 创建短链接(用于分享)
488
- * @param originUrl 原链接
489
- * @returns {Promise<Res>} 创建的短链接
490
- */
491
- declare function createShortUrl(originUrl: string): Promise<Res$1n>;
492
-
493
- type HashTagCreationRank = "ORDINARY";
494
- type HashTagCreationStatus$1 = CreationStatus;
495
- interface HashTagCreationRelation {
496
- blurb: null | string;
497
- canAudit: boolean;
498
- createdAt: number;
499
- creationOid: MongoDBId;
500
- hashTagId: number;
501
- hashTagIdentifier: string;
502
- id: number;
503
- lastPublishedAt: number;
504
- lastSubmittedAt: number;
505
- projectLastModifiedAt: null | number;
506
- rank: HashTagCreationRank;
507
- status: HashTagCreationStatus$1;
508
- /**
509
- * 作品作者id,不是星球管理id
510
- */
511
- studentOid: MongoDBId;
512
- updatedAt: number;
513
- }
514
- type HashTagFollowingStatus = "UNFOLLOWED" | "FOLLOWED" | "BOTH_FOLLOWED";
515
- interface HashTagMemberSimple {
516
- avatar: CNameOssUrl;
517
- followingStatus: HashTagFollowingStatus;
518
- name: string;
519
- oid: MongoDBId;
520
- }
521
- type HashTagStatus = "ENABLED";
522
- type HashTagType = "ORDINARY";
523
- interface HashTag {
524
- bulletin: string | null;
525
- bulletinOperatedAt: number | null;
526
- bulletinOperator: HashTagMemberSimple | null;
527
- bulletinOperatorOid: MongoDBId | null;
528
- commentCount: number | null;
529
- coverLink: CNameOssUrl;
530
- createdAt: number;
531
- creationCount: number;
532
- description: string | null;
533
- enableApplyManager: boolean | null;
534
- enableBatchAudit: boolean | null;
535
- favoriteStatus: unknown | null;
536
- favoritedStudentCount: number;
537
- hashTagScoreStatsResp: unknown | null;
538
- id: number;
539
- identifier: string;
540
- latestFavoritedStudents: HashTagMemberSimple[];
541
- managerIds: MongoDBId[];
542
- managers: HashTagMemberSimple[];
543
- memberCount: number;
544
- ownerType: unknown | null;
545
- priority: number;
546
- recommended: boolean;
547
- relatedStarNum: number | null;
548
- status: HashTagStatus;
549
- type: HashTagType;
550
- updatedAt: number;
551
- }
552
- interface HashTagFavorite {
553
- createdAt: number;
554
- ext: object;
555
- hashTagId: number;
556
- id: number;
557
- lastFavoritedAt: number;
558
- studentOid: MongoDBId;
559
- unfavoritedAt: number | null;
560
- updatedAt: number;
561
- }
562
-
563
- type hashTag_HashTag = HashTag;
564
- type hashTag_HashTagCreationRank = HashTagCreationRank;
565
- type hashTag_HashTagCreationRelation = HashTagCreationRelation;
566
- type hashTag_HashTagFavorite = HashTagFavorite;
567
- type hashTag_HashTagFollowingStatus = HashTagFollowingStatus;
568
- type hashTag_HashTagMemberSimple = HashTagMemberSimple;
569
- type hashTag_HashTagStatus = HashTagStatus;
570
- type hashTag_HashTagType = HashTagType;
571
- declare namespace hashTag {
572
- export type { hashTag_HashTag as HashTag, hashTag_HashTagCreationRank as HashTagCreationRank, hashTag_HashTagCreationRelation as HashTagCreationRelation, HashTagCreationStatus$1 as HashTagCreationStatus, hashTag_HashTagFavorite as HashTagFavorite, hashTag_HashTagFollowingStatus as HashTagFollowingStatus, hashTag_HashTagMemberSimple as HashTagMemberSimple, hashTag_HashTagStatus as HashTagStatus, hashTag_HashTagType as HashTagType };
573
- }
574
-
575
- type Res$1m = HashTagCreationRelation[];
576
- /**
577
- * 获取作品所在星球列表
578
- * @param {MongoDBId} creationOid 作品ID
579
- * @returns {Promise<Res>} 星球列表
580
- */
581
- declare function getPlanetsOfCreation(creationOid: MongoDBId): Promise<Res$1m>;
582
-
583
- type SortField$4 = "createdAt" | "lastPassedAt" | "lastSubmittedAt" | "lastPublishedAt" | string;
584
- type HashTagCreationStatus = "PUBLISHED" | "SUBMITTED" | string;
585
- type Res$1l = PagesRes<Creation, SortField$4>;
586
- /**
587
- * 获取当前用户提交到星球的作品列表
588
- * @param {string} [excludeHashTag] 排除的星球标识符(名称)
589
- * @param {HashTagCreationStatus[]} [statuses] 作品状态筛选,例如 ["PUBLISHED"]
590
- * @param {Partial<PageArgs<SortField | T>>} [pageArgs_] 分页参数
591
- * @returns {Promise<Res>} 星球作品分页结果
592
- */
593
- declare function getMyHashTagCreations<T extends string>(excludeHashTag?: string, statuses?: HashTagCreationStatus[], pageArgs_?: Partial<PageArgs<SortField$4 | T>>): Promise<Res$1l>;
594
-
595
- type Res$1k = HashTag;
596
- /**
597
- * 获取星球详情
598
- * @param {string} identifier 星球标识符(名称)
599
- * @returns {Promise<Res>} 星球详情
600
- */
601
- declare function getHashTagDetail(identifier: string): Promise<Res$1k>;
602
-
603
- type SortField$3 = "createdAt" | "priority" | string;
604
- type Res$1j = PagesRes<HashTag, SortField$3>;
605
- /**
606
- * 获取用户管理的星球列表
607
- * @param {MongoDBId} studentOid 学生oid
608
- * @param {number[]} excludeHashTagIds 排除的星球id列表
609
- * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
610
- * @returns {Promise<Res>} 管理的星球分页结果
611
- */
612
- declare function getManagedHashTags<T extends string>(studentOid: MongoDBId, excludeHashTagIds?: number[], pageArgs_?: Partial<PageArgs<SortField$3 | T>>): Promise<Res$1j>;
613
-
614
- type Res$1i = HashTagFavorite;
615
- /**
616
- * 获取星球收藏详情
617
- * @param {number} hashTagId 星球ID
618
- * @returns {Promise<Res>} 星球收藏详情
619
- */
620
- declare function getHashTagFavoriteDetail(hashTagId: number): Promise<Res$1i>;
621
-
622
- type Res$1h = {
623
- curUserDonatedRecord: null | DonatedRecord;
624
- rankingList: PagesRes<DonatedRecord>;
625
- totalBucks: null | number;
626
- };
627
- /**
628
- * 获取作品投币排行
629
- * @param {MongoDBId} creationOid 作品id
630
- * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
631
- * @returns {Promise<Res>} 投币排行数据
632
- */
633
- declare function getDonatedRecordRanking<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1h>;
634
-
635
- type Res$1g = null | FavoriteDetail;
636
- /**
637
- * 获取作品收藏详情(需要登录)
638
- * @param {MongoDBId} creationOid 作品id
639
- * @returns {Promise<Res>} 收藏详情(未收藏返回null)
640
- */
641
- declare function getCreationFavoriteDetail(creationOid: MongoDBId): Promise<Res$1g>;
642
-
643
- type Res$1f = [];
644
- /**
645
- * 获取作品推荐位置列表
646
- * @deprecated 此接口不可用,请使用 `getRecommendCreations` from `src/community-web/creation/recommend.ts`
647
- * @param {MongoDBId} creationOid 作品id
648
- * @returns {Promise<Res>} 推荐位置列表,因为不知道什么bug,固定为[]
649
- */
650
- declare function getCreationRecommendPositionList(creationOid: MongoDBId): Promise<Res$1f>;
651
-
652
- type Res$1e = PagesRes<CreationScreenshot>;
653
- /**
654
- * 获取作品截图分页
655
- * @param {MongoDBId} subjectOid 作品id
656
- * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
657
- * @returns {Promise<Res>} 分页截图列表
658
- */
659
- declare function getCreationScreenshotPage<T extends string>(subjectOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1e>;
660
-
661
- type Res$1d = boolean;
662
- /**
663
- * 查看作品统计(增加浏览量)
664
- * @param {MongoDBId} oid 作品id
665
- * @param {string} inviteCode 邀请码
666
- * @returns {Promise<boolean>} 是否成功
667
- */
668
- declare function viewCreationStats(oid: MongoDBId, inviteCode?: string): Promise<Res$1d>;
669
-
670
- type NotifyMessage = {
671
- /** @example message = '由于包含广告或垃圾信息,已被管理员删除!' */
672
- message: string;
673
- /** @example title = '广告或垃圾信息' */
674
- title: string;
675
- };
676
- type Res$1c = NotifyMessage[];
677
- /**
678
- * 获取通知删除原因列表
679
- * @returns {Promise<Res>} 消息删除原因列表
680
- */
681
- declare function getNotifyDeleteReasons(): Promise<Res$1c>;
682
-
683
- type PostTag = {
684
- name: string;
685
- slag: string;
686
- };
687
- type PostFeatureImage = {
688
- alt: string;
689
- caption: string;
690
- url: CNameOssUrl;
691
- };
692
- type PostAuthor = {
693
- avatar: CNameOssUrl;
694
- name: string;
695
- oid: MongoDBId;
696
- };
697
- type Res$1b = {
698
- author: PostAuthor;
699
- authorOid: MongoDBId;
700
- collectCount: null | number;
701
- commentCount: number;
702
- content: string;
703
- createdAt: number;
704
- draftContent: null | string;
705
- excerpt: string;
706
- featureImage: PostFeatureImage;
707
- keywords: null | string[];
708
- oid: MongoDBId;
709
- pageView: number;
710
- publishedAt: number;
711
- rank: "EXCELLENT" | "ORDINARY";
712
- rankUpdatedAt: null | number;
713
- reviewedAt: number;
714
- slug: string;
715
- status: string;
716
- tagRefs: PostTag[];
717
- tags: string[];
718
- title: string;
719
- updatedAt: number;
720
- visibility: string;
721
- };
722
- /**
723
- * 获取帖子详情
724
- * @param {string} slug 帖子slug
725
- * @returns {Promise<Res>} 帖子详情
726
- */
727
- declare function getPostDetail(slug: string): Promise<Res$1b>;
728
-
729
- type Res$1a = string[];
730
- /**
731
- * 获取搜索热词
732
- * @param {number} length 热词数量
733
- * @returns {Promise<Res>} 热词列表
734
- */
735
- declare function getSearchHotWords(length: number): Promise<Res$1a>;
736
-
737
- type BlockActionRecord = {
738
- action: "BLOCK";
739
- createdAt: number;
740
- deletedAt: null;
741
- ext: null;
742
- /**
743
- * 我的用户id
744
- */
745
- fromEntityId: MongoDBId;
746
- fromEntityType: AccountTypes;
747
- oid: MongoDBId;
748
- /**
749
- * 被加入黑名单的id
750
- */
751
- relatedEntityId: MongoDBId;
752
- relatedEntityType: AccountTypes;
753
- updatedAt: number;
754
- };
755
- type Res$19 = BlockActionRecord | null;
756
- /**
757
- * 获取特定用户黑名单详细信息
758
- * @param {MongoDBId} studentOid 学生id
759
- * @returns {Promise<Res>} 封禁状态
760
- */
761
- declare function getStudentBlockRecordDetail(studentOid: MongoDBId): Promise<Res$19>;
762
-
763
- type BlockRecord = {
764
- createdAt: number;
765
- expireAt: number;
766
- id: number;
767
- reason: string;
768
- studentOid: MongoDBId;
769
- };
770
- type Res$18 = PagesRes<BlockRecord>;
771
- /**
772
- * 获取学生封禁记录列表
773
- * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
774
- * @returns {Promise<Res>} 封禁记录分页数据
775
- */
776
- declare function getStudentBlockRecordList<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$18>;
777
-
778
- /**
779
- * 用户是否在我的黑名单中
780
- */
781
- type BlockStatus = "NOT_BLOCKED" | "BLOCKING";
782
- type Res$17 = BlockStatus;
783
- /**
784
- * 获取特定用户黑名单状态
785
- * @param {MongoDBId} studentOid 学生id
786
- * @returns {Promise<Res>} 封禁状态
787
- */
788
- declare function getStudentBlockStatus(studentOid: MongoDBId): Promise<Res$17>;
789
-
790
- type Res$16 = CreatorScore;
791
- /**
792
- * 获取当前学生创作分
793
- * @returns {Promise<Res>} 创作分信息
794
- */
795
- declare function getCreatorScore(): Promise<Res$16>;
796
-
797
- type Res$15 = {
798
- lastActiveAt: number;
799
- };
800
- /**
801
- * 获取学生最后活跃时间
802
- * @param {MongoDBId} studentOid 学生id
803
- * @returns {Promise<Res>} 最后活跃时间数据
804
- */
805
- declare function getStudentLastActiveAt(studentOid: MongoDBId): Promise<Res$15>;
806
-
807
- type Res$14 = StudentListItem[];
808
- /**
809
- * 根据学生OID列表获取学生信息列表(这个会返回一堆null,不建议使用)
810
- * @param {MongoDBId[]} studentOids 学生OID列表
811
- * @returns {Promise<Res>} 学生信息列表
812
- */
813
- declare function getStudentsList(studentOids: MongoDBId[]): Promise<Res$14>;
814
-
815
- type Res$13 = PagesRes<StudentSession>;
816
- /**
817
- * 获取学生登录会话列表
818
- * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
819
- * @returns {Promise<Res>} 会话列表分页数据
820
- */
821
- declare function getStudentSessions<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$13>;
822
-
823
- type Res$12 = StudentProfile;
824
- /**
825
- * 获取学生个人主页资料
826
- * @param {MongoDBId} studentOid 学生id
827
- * @returns {Promise<Res>} 学生资料
828
- */
829
- declare function getStudentProfile(studentOid: MongoDBId): Promise<Res$12>;
830
-
831
- type Res$11 = PagesRes<ReputationScoreLog>;
832
- /**
833
- * 获取学生信誉分记录
834
- * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
835
- * @returns {Promise<Res>} 信誉分记录分页数据
836
- */
837
- declare function getReputationScoreLog<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$11>;
838
-
839
- type Res$10 = StudentSelfDetail;
840
- /**
841
- * 获取当前登录学生的详细信息
842
- * @param {boolean} needGrade 是否需要年级信息
843
- * @param {boolean} needExtraInfo 是否需要扩展信息
844
- * @param {StudentSelfDetailFields[]} fields 需要返回的字段列表
845
- * @returns {Promise<Res>} 当前学生详情
846
- */
847
- declare function getStudentSelfDetail(needGrade: boolean, needExtraInfo: boolean, fields: StudentSelfDetailFields[]): Promise<Res$10>;
848
-
849
- type Res$$ = StudentFollowerStats;
850
- /**
851
- * 获取学生统计数据(关注数、粉丝数)
852
- * @param {MongoDBId} studentOid 学生id
853
- * @returns {Promise<Res>} 统计数据
854
- */
855
- declare function getStudentStats(studentOid: MongoDBId): Promise<Res$$>;
856
-
857
- type Res$_ = boolean;
858
- /**
859
- * 更新学生个人信息
860
- * @param {string} gender 性别
861
- * @param {boolean} hideGender 是否隐藏性别
862
- * @param {string} fullName 全名
863
- * @param {number} birthday 生日时间戳
864
- * @param {string} programmingCapability 编程能力
865
- * @param {string} school 学校
866
- * @param {string} qq QQ号
867
- * @param {string} hobbies 爱好
868
- * @param {string} learnedProgrammingLanguages 学过的编程语言
869
- * @returns {Promise<boolean>} 是否更新成功
870
- */
871
- declare function updateStudent(gender: string, hideGender: boolean, fullName: string, birthday: number, programmingCapability: string, school: string, qq: string, hobbies: string, learnedProgrammingLanguages: string): Promise<Res$_>;
872
-
873
- type Res$Z = {
874
- accountOid: MongoDBId;
875
- accountType: AccountTypes;
876
- approvedContent: null | string;
877
- approvedType: null | string;
878
- avatar: CNameOssUrl;
879
- createdAt: number;
880
- ext: {};
881
- hideGender: boolean;
882
- id: number;
883
- maxCheckedFeedId: string;
884
- name: string;
885
- status: "NORMAL";
886
- studentNumber: `${number}`;
887
- updatedAt: number;
888
- };
889
- /**
890
- * 获取当前用户学习社区成员详情
891
- * @returns {Promise<Res>} 我的社区成员详情
892
- */
893
- declare function getStudyCommunityMemberDetail(): Promise<Res$Z>;
894
-
895
- type Res$Y = number;
896
- /**
897
- * 获取动态未读消息数
898
- * @param {MongoDBId} studentOid 学生id
899
- * @returns {Promise<number>} 未读消息数
900
- */
901
- declare function getSpreadFeedUnreadCount(studentOid: MongoDBId): Promise<Res$Y>;
902
-
903
- type SubjectAreaModuleComponent$1 = {
904
- data: {
905
- bgColor?: string;
906
- bgImage?: CNameOssUrl;
907
- col?: number;
908
- creationOids?: MongoDBId[];
909
- display?: string;
910
- hover?: boolean;
911
- origin: string;
912
- overflow?: string;
913
- row?: string;
914
- targetLink?: string;
915
- targetType?: string;
916
- };
917
- type: string;
918
- };
919
- type SubjectAreaModule$1 = {
920
- components: SubjectAreaModuleComponent$1[];
921
- filled: boolean;
922
- gutter: number;
923
- subtitle: string;
924
- subtitleColor: string;
925
- title: string;
926
- titleColor: string;
927
- type: string;
928
- };
929
- type SubjectAreaGroup$1 = {
930
- bgAtmosphere: null | string;
931
- bgColor: string;
932
- bgImage: CNameOssUrl;
933
- id: number;
934
- lottieJsonUrl: null | CNameOssUrl;
935
- modules: SubjectAreaModule$1[];
936
- moreLink: null | string;
937
- moreLinkText: null | string;
938
- subjectAreaId: number;
939
- subtitle: string;
940
- subtitleColor: string;
941
- title: string;
942
- titleColor: string;
943
- verticalPadding: number;
944
- };
945
- type SubjectAreaScene = "HOMEPAGE";
946
- type SubjectAreaItem$1 = {
947
- creationOids: MongoDBId[];
948
- enabled: boolean;
949
- iconLink: null | CNameOssUrl;
950
- id: number;
951
- location: null | string;
952
- platform: "WEB";
953
- priority: number;
954
- subjectAreaGroup: SubjectAreaGroup$1;
955
- subtitle: null | string;
956
- targetLink: null | string;
957
- title: string;
958
- visibleFor: string[];
959
- };
960
- type Res$X = PagesRes<SubjectAreaItem$1>;
961
- /**
962
- * 分页获取主页推荐列表
963
- * @param {SubjectAreaScene} scene 场景
964
- * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
965
- * @returns {Promise<Res>} 主页推荐分页数据
966
- */
967
- declare function getSubjectAreaPage<T extends string>(scene: SubjectAreaScene, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$X>;
968
-
969
- type SubjectAreaModuleComponent = {
970
- data: {
971
- bgColor?: string;
972
- bgImage?: CNameOssUrl;
973
- col?: number;
974
- creationOids?: MongoDBId[];
975
- display?: string;
976
- hover?: boolean;
977
- origin: string;
978
- overflow?: string;
979
- row?: string;
980
- targetLink?: string;
981
- targetType?: string;
982
- };
983
- type: string;
984
- };
985
- type SubjectAreaModule = {
986
- components: SubjectAreaModuleComponent[];
987
- filled: boolean;
988
- gutter: number;
989
- subtitle: string;
990
- subtitleColor: string;
991
- title: string;
992
- titleColor: string;
993
- type: string;
994
- };
995
- type SubjectAreaGroup = {
996
- bgAtmosphere: null | string;
997
- bgColor: string;
998
- bgImage: CNameOssUrl;
999
- id: number;
1000
- lottieJsonUrl: null | CNameOssUrl;
1001
- modules: SubjectAreaModule[];
1002
- moreLink: null | string;
1003
- moreLinkText: null | string;
1004
- subjectAreaId: number;
1005
- subtitle: string;
1006
- subtitleColor: string;
1007
- title: string;
1008
- titleColor: string;
1009
- verticalPadding: number;
1010
- };
1011
- type SubjectAreaChannel = "tags" | "mmo" | "adventure";
1012
- type SubjectAreaItem = {
1013
- creationOids: MongoDBId[];
1014
- enabled: boolean;
1015
- iconLink: null | CNameOssUrl;
1016
- id: number;
1017
- location: null | string;
1018
- platform: string;
1019
- priority: number;
1020
- subjectAreaGroup: SubjectAreaGroup;
1021
- subtitle: null | string;
1022
- targetLink: null | string;
1023
- title: string;
1024
- visibleFor: string[];
1025
- };
1026
- type Res$W = PagesRes<SubjectAreaItem>;
1027
- /**
1028
- * 按频道分页获取分区列表(用于上方nav bar的"热门分类" "联机" "联名挑战赛")
1029
- * @param {SubjectAreaChannel} channel 频道
1030
- * @param {Partial<PageArgs<"campaignResourceId" | T>>} pageArgs_ 分页参数
1031
- * @returns {Promise<Res>} 学科区分页数据
1032
- */
1033
- declare function getSubjectAreaPageByChannel<T extends string>(channel: SubjectAreaChannel, pageArgs_?: Partial<PageArgs<"campaignResourceId" | T>>): Promise<Res$W>;
1034
-
1035
- type TaskRewardType = "INTERNAL_CURRENCY";
1036
- type TaskRewardStatus = "AWARDED";
1037
- type TaskReward = {
1038
- rewardType: TaskRewardType;
1039
- rewardValue: string;
1040
- status: TaskRewardStatus;
1041
- };
1042
- type Res$V = TaskReward[];
1043
- /**
1044
- * 领取任务奖励
1045
- * @param {MongoDBId} taskOid 任务id
1046
- * @returns {Promise<Res>} 奖励列表
1047
- */
1048
- declare function acceptAward(taskOid: MongoDBId): Promise<Res$V>;
1049
-
1050
- /**
1051
- * PREPARED: 已完成,未领取
1052
- * PENDING: 未完成
1053
- * AWARDED: 已领取
1054
- */
1055
- type TaskStatus = "PENDING" | "PREPARED" | "AWARDED";
1056
- type TaskType = "CYCLE";
1057
- type TaskExt = {
1058
- pic: OriginOssUrl;
1059
- };
1060
- type TaskItem = {
1061
- description: string;
1062
- ext: TaskExt;
1063
- name: string;
1064
- oid: MongoDBId;
1065
- status: TaskStatus;
1066
- type: TaskType;
1067
- };
1068
- type Res$U = TaskItem[];
1069
- /**
1070
- * 获取我的任务列表
1071
- * @returns {Promise<Res>} 任务列表
1072
- */
1073
- declare function getMyTasks(): Promise<Res$U>;
1074
-
1075
- type UserCardApprovalTag = {
1076
- iconLink: CNameOssUrl;
1077
- id: number;
1078
- mediumImage: CNameOssUrl;
1079
- name: string;
1080
- };
1081
- type UserCardUser = {
1082
- approvalTags: UserCardApprovalTag[];
1083
- avatar: CNameOssUrl;
1084
- bio: string;
1085
- followingStatus: null | string;
1086
- identityAuthRank: string;
1087
- name: string;
1088
- oid: MongoDBId;
1089
- reputationScore: null | {
1090
- rank: string;
1091
- score: number;
1092
- studentOid: MongoDBId;
1093
- };
1094
- statistics: null | {
1095
- creationCount: number;
1096
- followerCount: number;
1097
- followingCount: number;
1098
- likeCount: number;
1099
- };
1100
- virtualValue: CNameOssUrl;
1101
- };
1102
- type Res$T = {
1103
- creation: CreationMinimal | null;
1104
- user: UserCardUser;
1105
- };
1106
- /**
1107
- * 获取用户卡片详情
1108
- * @param {MongoDBId} oid 用户id
1109
- * @returns {Promise<Res>} 用户卡片数据
1110
- */
1111
- declare function getUserCardDetail(oid: MongoDBId): Promise<Res$T>;
1112
-
1113
- type Res$S = {
1114
- userLabels: UserLabels[];
1115
- };
1116
- /**
1117
- * 获取用户标签列表
1118
- * @returns {Promise<Res>} 用户标签数据
1119
- */
1120
- declare function getUserLabelList(): Promise<Res$S>;
1121
-
1122
- type Res$R = {
1123
- internalCurrencyBalance: number;
1124
- topUpCurrencyBalance: number;
1125
- withdrawCurrencyBalance: number;
1126
- };
1127
- /**
1128
- * 获取个人金币信息
1129
- * @returns {Promise<Res>} 账户金币余额信息
1130
- */
1131
- declare function getPersonalCurrencyAccount(): Promise<Res$R>;
1132
-
1133
- interface Emoji {
1134
- category: `${number}`;
1135
- createdAt: number;
1136
- id: number;
1137
- imageUrl: CNameOssUrl;
1138
- /**
1139
- * 表情包名称
1140
- */
1141
- name: string;
1142
- /**
1143
- * 表情包作者
1144
- */
1145
- operatorName: string;
1146
- operatorOid: MongoDBId;
1147
- priority: number;
1148
- status: "ENABLED";
1149
- updatedAt: number;
1150
- }
1151
- type Res$Q = Emoji[];
1152
- /**
1153
- * 获取所有表情包
1154
- * @returns {Promise<Res>} 表情包列表
1155
- */
1156
- declare function getAllEmojis(): Promise<Res$Q>;
1157
-
1158
- interface EmojiCategory {
1159
- createdAt: number;
1160
- id: number;
1161
- imageUrl: CNameOssUrl;
1162
- name: string;
1163
- updatedAt: number;
1164
- }
1165
- type Res$P = EmojiCategory[];
1166
- /**
1167
- * 获取表情包分类列表
1168
- * @returns {Promise<Res>} 表情包分类列表
1169
- */
1170
- declare function getEmojiCategoryList(): Promise<Res$P>;
1171
-
1172
- type Res$O = PagesRes<Emoji>;
1173
- type EmojiStatus = "ENABLED" | "PUBLISHED";
1174
- /**
1175
- * 分页获取表情包
1176
- * @param {string} status 表情包状态
1177
- * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
1178
- * @returns {Promise<Res>} 分页表情包数据
1179
- */
1180
- declare function getEmojiPage<T extends string>(status?: EmojiStatus, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$O>;
1181
-
1182
- type Res$N = boolean;
1183
- /**
1184
- * 发送事件
1185
- * @param {string} actionId 事件ID
1186
- * @returns {Promise<Res>} 是否成功
1187
- */
1188
- declare function sendEvent(actionId: string): Promise<Res$N>;
1189
-
1190
- interface HealthCheckItem {
1191
- name: string;
1192
- status: string;
1193
- traceId: string;
1194
- }
1195
- type Res$M = HealthCheckItem[];
1196
- /**
1197
- * @deprecated 仅用于初始化axios
1198
- * health check接口
1199
- * @returns {Promise<Res>}
1200
- */
1201
- declare function getHealthCheck(): Promise<Res$M>;
1202
-
1203
- interface LeafletsItem {
1204
- advertisementId: number;
1205
- advertisementUrl: string;
1206
- createdAt: number;
1207
- id: number;
1208
- itemUrl: CNameOssUrl;
1209
- /**
1210
- * 广告标题
1211
- * @example name = "六月小商店上新"
1212
- */
1213
- name: string;
1214
- updatedAt: number;
1215
- }
1216
- type Res$L = LeafletsItem[];
1217
- /**
1218
- * 获取消息中心上方广告横幅项目列表
1219
- * @param {number} advertisementId 广告ID
1220
- * @returns {Promise<Res>} 广告项目列表
1221
- */
1222
- declare function getLeafletsItemList(advertisementId: number): Promise<Res$L>;
1223
-
1224
- interface LockedUserDetail<IsLocked extends boolean> {
1225
- accountOid: IsLocked extends true ? MongoDBId : null;
1226
- accountType: IsLocked extends true ? AccountTypes : null;
1227
- createdAt: IsLocked extends true ? number : null;
1228
- description: IsLocked extends true ? string : null;
1229
- id: IsLocked extends true ? number : null;
1230
- locked: IsLocked;
1231
- operatorOid: IsLocked extends true ? MongoDBId : null;
1232
- unlocksAt: IsLocked extends true ? number : null;
1233
- updatedAt: IsLocked extends true ? number : null;
1234
- }
1235
- type Res$K<IsLocked extends boolean> = LockedUserDetail<IsLocked>;
1236
- /**
1237
- * 获取被封禁用户详情
1238
- * @param {MongoDBId} accountOid 用户账户ID
1239
- * @returns {Promise<Res>} 被封禁用户详情
1240
- */
1241
- declare function getLockedUserDetail<IsLocked extends boolean = false>(accountOid: MongoDBId): Promise<Res$K<IsLocked>>;
1242
-
1243
- type Res$J = null;
1244
- /**
1245
- * 获取禁言用户详情
1246
- * @param {string} studentNumber 用户number(244373873)
1247
- * @returns {Promise<Res>} 禁言用户详情(null表示未禁言)
1248
- */
1249
- declare function getMutedUserDetail(studentNumber: string): Promise<Res$J>;
1250
-
1251
- type SubjectType = "POST" | "CREATION" | "EXTENSION" | "PROFILE" | "SOCIETY" | "ACTIVITY" | string;
1252
- type ContentCategory = "POST_LIKED" | "POST_FAVORITE" | "POST_COMMENT" | "CREATION_LIKED" | "CREATION_FAVORITE" | "CREATION_COMMENTED" | "CREATION_SHARE" | "EXTENSION_LIKED" | "EXTENSION_COMMENTED" | "EXTENSION_COMMENT_REPLIED" | "PROFILE_LEAVE_WORDS" | "SESSION_CREATED" | "COMMUNITY_ACTIVITY" | "FOLLOWED" | "POST_VISIBILITY_CHANGED" | string;
1253
- interface PostNotificationContentBase {
1254
- subject_type: "POST";
1255
- sender: string;
1256
- subject_oid: MongoDBId;
1257
- subject_outline: string;
1258
- avatar: null;
1259
- sender_id: MongoDBId;
1260
- slug: UUID;
1261
- }
1262
- interface PostLikedContent extends PostNotificationContentBase {
1263
- }
1264
- interface PostFavContent extends PostNotificationContentBase {
1265
- comments: string;
1266
- }
1267
- interface PostCommentContent {
1268
- ext: {
1269
- slug: UUID;
1270
- } | null;
1271
- comments: string;
1272
- subject_type: "POST";
1273
- sender: string;
1274
- subject_oid: MongoDBId;
1275
- subject_outline: string;
1276
- senderType: "STUDENT" | string;
1277
- avatar: CNameOssUrl;
1278
- message: string | null;
1279
- sender_id: MongoDBId;
1280
- }
1281
- interface CreationNotificationContentBase {
1282
- subject_type: "CREATION";
1283
- sender: string;
1284
- subject_oid: MongoDBId;
1285
- sender_id: MongoDBId;
1286
- }
1287
- interface CreationLikeNotificationContent extends CreationNotificationContentBase {
1288
- homework_title: string;
1289
- homework_id: MongoDBId;
1290
- student_id: `${number}`;
1291
- avatar: CNameOssUrl;
1292
- like_icon: CNameOssUrl;
1293
- }
1294
- interface CreationFavContent extends CreationNotificationContentBase {
1295
- comments: string;
1296
- subject_outline: string;
1297
- }
1298
- interface CreationCommentedContent {
1299
- ext: null;
1300
- comments: string;
1301
- subject_type: "CREATION";
1302
- sender: string;
1303
- subject_oid: MongoDBId;
1304
- subject_outline: string;
1305
- senderType: "STUDENT" | string;
1306
- avatar: CNameOssUrl;
1307
- message: string | null;
1308
- sender_id: MongoDBId;
1309
- }
1310
- interface CreationShareContent {
1311
- subject_type: "CREATION";
1312
- subject_outline: string;
1313
- subject_oid: MongoDBId;
1314
- sender_id: MongoDBId;
1315
- }
1316
- interface ExtensionLikedContent {
1317
- subject_type: "EXTENSION";
1318
- sender: string;
1319
- subject_oid: string;
1320
- subject_outline: string;
1321
- avatar: null;
1322
- sender_id: MongoDBId;
1323
- }
1324
- interface ExtensionCommentedContent {
1325
- ext: {
1326
- target: MongoDBId;
1327
- } | null;
1328
- comments: string;
1329
- subject_type: "EXTENSION";
1330
- sender: string;
1331
- subject_oid: string;
1332
- subject_outline: string;
1333
- senderType: "STUDENT" | string;
1334
- avatar: CNameOssUrl;
1335
- message: string | null;
1336
- sender_id: MongoDBId;
1337
- }
1338
- interface ExtensionCommentRepliedContent extends ExtensionCommentedContent {
1339
- }
1340
- interface ProfileLeaveWordsContent {
1341
- ext: null;
1342
- comments: string;
1343
- subject_type: "PROFILE";
1344
- sender: string;
1345
- subject_oid: MongoDBId;
1346
- subject_outline: string;
1347
- senderType: "STUDENT" | string;
1348
- avatar: CNameOssUrl;
1349
- message: string | null;
1350
- sender_id: MongoDBId;
1351
- }
1352
- interface SessionCreatedContent {
1353
- comments: string;
1354
- subject_type: "SOCIETY";
1355
- subject_oid: null;
1356
- }
1357
- interface CommunityActivityContent {
1358
- comments: string;
1359
- subject_type: "ACTIVITY";
1360
- subject_oid: MongoDBId;
1361
- subject_outline: string;
1362
- }
1363
- interface FollowedContent {
1364
- comments: string;
1365
- subject_type: "SOCIETY";
1366
- sender: string;
1367
- subject_oid: MongoDBId;
1368
- sender_id: MongoDBId;
1369
- }
1370
- interface PostVisibilityChangedContent {
1371
- comments: string;
1372
- subject_type: "SOCIETY";
1373
- subject_oid: null;
1374
- }
1375
- type NotificationContent = PostLikedContent | PostFavContent | PostCommentContent | CreationLikeNotificationContent | CreationFavContent | CreationCommentedContent | CreationShareContent | ExtensionLikedContent | ExtensionCommentedContent | ExtensionCommentRepliedContent | ProfileLeaveWordsContent | SessionCreatedContent | CommunityActivityContent | FollowedContent | PostVisibilityChangedContent | Record<string, unknown>;
1376
-
1377
- type notificationContent_CommunityActivityContent = CommunityActivityContent;
1378
- type notificationContent_ContentCategory = ContentCategory;
1379
- type notificationContent_CreationCommentedContent = CreationCommentedContent;
1380
- type notificationContent_CreationFavContent = CreationFavContent;
1381
- type notificationContent_CreationLikeNotificationContent = CreationLikeNotificationContent;
1382
- type notificationContent_CreationNotificationContentBase = CreationNotificationContentBase;
1383
- type notificationContent_CreationShareContent = CreationShareContent;
1384
- type notificationContent_ExtensionCommentRepliedContent = ExtensionCommentRepliedContent;
1385
- type notificationContent_ExtensionCommentedContent = ExtensionCommentedContent;
1386
- type notificationContent_ExtensionLikedContent = ExtensionLikedContent;
1387
- type notificationContent_FollowedContent = FollowedContent;
1388
- type notificationContent_NotificationContent = NotificationContent;
1389
- type notificationContent_PostCommentContent = PostCommentContent;
1390
- type notificationContent_PostFavContent = PostFavContent;
1391
- type notificationContent_PostLikedContent = PostLikedContent;
1392
- type notificationContent_PostNotificationContentBase = PostNotificationContentBase;
1393
- type notificationContent_PostVisibilityChangedContent = PostVisibilityChangedContent;
1394
- type notificationContent_ProfileLeaveWordsContent = ProfileLeaveWordsContent;
1395
- type notificationContent_SessionCreatedContent = SessionCreatedContent;
1396
- type notificationContent_SubjectType = SubjectType;
1397
- declare namespace notificationContent {
1398
- export type { notificationContent_CommunityActivityContent as CommunityActivityContent, notificationContent_ContentCategory as ContentCategory, notificationContent_CreationCommentedContent as CreationCommentedContent, notificationContent_CreationFavContent as CreationFavContent, notificationContent_CreationLikeNotificationContent as CreationLikeNotificationContent, notificationContent_CreationNotificationContentBase as CreationNotificationContentBase, notificationContent_CreationShareContent as CreationShareContent, notificationContent_ExtensionCommentRepliedContent as ExtensionCommentRepliedContent, notificationContent_ExtensionCommentedContent as ExtensionCommentedContent, notificationContent_ExtensionLikedContent as ExtensionLikedContent, notificationContent_FollowedContent as FollowedContent, notificationContent_NotificationContent as NotificationContent, notificationContent_PostCommentContent as PostCommentContent, notificationContent_PostFavContent as PostFavContent, notificationContent_PostLikedContent as PostLikedContent, notificationContent_PostNotificationContentBase as PostNotificationContentBase, notificationContent_PostVisibilityChangedContent as PostVisibilityChangedContent, notificationContent_ProfileLeaveWordsContent as ProfileLeaveWordsContent, notificationContent_SessionCreatedContent as SessionCreatedContent, notificationContent_SubjectType as SubjectType };
1399
- }
1400
-
1401
- declare enum NotificationGroup {
1402
- CreationInteraction = "CREATION_INTERACTION",
1403
- CommentToMe = "COMMENT_TO_ME",
1404
- FriendShare = "FRIEND_SHARE",
1405
- WebSystem = "WEB_SYSTEM"
1406
- }
1407
- interface NotificationSenderInfo {
1408
- approvedContent: string | null;
1409
- avatar: string;
1410
- name: string;
1411
- oid: MongoDBId;
1412
- }
1413
- interface NotificationExtensionInfo {
1414
- cover: string;
1415
- createdAt: number;
1416
- creationId: MongoDBId;
1417
- description: string;
1418
- eid: string;
1419
- icon: string;
1420
- id: number;
1421
- latestProjectCoverLink: string | null;
1422
- latestProjectLink: string | null;
1423
- name: string;
1424
- publisherId: MongoDBId;
1425
- status: string;
1426
- updatedAt: number;
1427
- }
1428
- interface Notification {
1429
- assetMarketInfo: null;
1430
- avatar: CNameOssUrl;
1431
- comment: string | null;
1432
- commentType: string | null;
1433
- content: NotificationContent;
1434
- contentCategory: ContentCategory;
1435
- createdAt: number;
1436
- creationInfo: CreationMinimal | null;
1437
- extensionInfo: NotificationExtensionInfo | null;
1438
- followInfo: null;
1439
- likeIcon: string | null;
1440
- message: null;
1441
- messageType: null;
1442
- senderInfo: NotificationSenderInfo;
1443
- senderName: string;
1444
- senderOid: MongoDBId;
1445
- senderType: string | null;
1446
- studentInfo: null;
1447
- subjectOid: MongoDBId;
1448
- subjectOutline: string;
1449
- subjectType: SubjectType;
1450
- title: string | null;
1451
- triggeredById: string;
1452
- url: string | null;
1453
- }
1454
- interface NotificationStats {
1455
- ACTIVITY_ASSISTANT: number;
1456
- COMMENT_TO_ME: number;
1457
- CREATION_INTERACTION: number;
1458
- CREATION_STATUS: number;
1459
- FOLLOW_ME: number;
1460
- FRIEND_SHARE: number;
1461
- JUDGEMENT: number;
1462
- WEB_SYSTEM: number;
1463
- }
1464
-
1465
- type notification_Notification = Notification;
1466
- type notification_NotificationExtensionInfo = NotificationExtensionInfo;
1467
- type notification_NotificationGroup = NotificationGroup;
1468
- declare const notification_NotificationGroup: typeof NotificationGroup;
1469
- type notification_NotificationSenderInfo = NotificationSenderInfo;
1470
- type notification_NotificationStats = NotificationStats;
1471
- declare namespace notification {
1472
- export { type notification_Notification as Notification, type notification_NotificationExtensionInfo as NotificationExtensionInfo, notification_NotificationGroup as NotificationGroup, type notification_NotificationSenderInfo as NotificationSenderInfo, type notification_NotificationStats as NotificationStats };
1473
- }
1474
-
1475
- type Res$I = PagesRes<Notification>;
1476
- /**
1477
- * 分页获取通知列表
1478
- * @param {NotificationGroup} notifyGroup 通知分组
1479
- * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
1480
- * @returns {Promise<Res>} 分页通知数据
1481
- */
1482
- declare function getNotificationPage<T extends string>(notifyGroup?: NotificationGroup, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$I>;
1483
-
1484
- type Res$H = NotificationStats;
1485
- /**
1486
- * 获取通知统计
1487
- * @param {boolean} countAll 是否统计全部
1488
- * @returns {Promise<Res>} 通知统计数据
1489
- */
1490
- declare function getNotificationStats(countAll?: boolean): Promise<Res$H>;
1491
-
1492
- type TypicalProjectItem = {
1493
- cover: string;
1494
- createdAt: null | number;
1495
- creationHints: null | string;
1496
- creationInfo: null | string;
1497
- defaultLinks: string[];
1498
- defaultStars: string[];
1499
- id: number;
1500
- name: string;
1501
- projectLink: string;
1502
- status: string;
1503
- templateType: string;
1504
- updatedAt: null | number;
1505
- };
1506
- type Res$G = PagesRes<TypicalProjectItem>;
1507
- /**
1508
- * 获取应用课工程文件项目分页列表 (https://www.ccw.site/workspace/application)
1509
- * @param {MongoDBId} studentOid 学生id
1510
- * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
1511
- * @returns {Promise<Res>} 应用课工程文件项目分页列表
1512
- */
1513
- declare function getTypicalProjectPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$G>;
1514
-
1515
- type Res$F = [];
1516
- /**
1517
- * @deprecated 该接口只会返回"[]"
1518
- * 获取学生未读应用课工程文件项目数量
1519
- * @param {MongoDBId} studentOid 学生id
1520
- * @returns {Promise<Res>} 未读应用课工程文件项目id列表
1521
- */
1522
- declare function getTypicalProjectUnreadCount(studentOid: MongoDBId): Promise<Res$F>;
1523
-
1524
- type SortField$2 = "updatedAt" | "createdAt";
1525
- type Res$E = PagesRes<CreationSimple>;
1526
- /**
1527
- * 获取自己的作品分页列表
1528
- * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
1529
- * @param {boolean} ignoreTypicalProject 是否忽略应用课编程文件项目
1530
- * @param {ProjectStatus[]} statuses 作品状态过滤
1531
- * @returns {Promise<Res>} 自己的作品分页列表
1532
- */
1533
- declare function getOwnCreationPage<T extends string>(pageArgs_?: Partial<PageArgs<SortField$2 | T>>, statuses?: CreationStatus[], ignoreTypicalProject?: boolean): Promise<Res$E>;
1534
-
1535
- type Res$D = string;
1536
- /**
1537
- * 获取协作观察者邀请链接
1538
- * @param {MongoDBId} creationOid 作品id
1539
- * @returns {Promise<Res>} 邀请链接参数(token)
1540
- */
1541
- declare function fetchObserverInviteToken(creationOid: MongoDBId): Promise<Res$D>;
1542
-
1543
- type TeamMemberAuthority = "ADMIN" | "MEMBER" | "OBSERVER";
1544
- type TeamMember = {
1545
- authority: TeamMemberAuthority;
1546
- avatar: CNameOssUrl;
1547
- creationOid: MongoDBId;
1548
- name: string;
1549
- /**
1550
- * 成员贡献信息
1551
- * @example profile = "开发,美工(偷懒)"
1552
- */
1553
- profile: string;
1554
- role: "ALL";
1555
- userOid: MongoDBId;
1556
- };
1557
-
1558
- type Res$C = string;
1559
- /**
1560
- * 获取协作参与者邀请链接
1561
- * @param {MongoDBId} creationOid 作品id
1562
- * @param {Exclude<TeamMemberAuthority, "OBSERVER">} authority 权限 (ADMIN 或 MEMBER)
1563
- * @returns {Promise<Res>} 邀请链接参数(token)
1564
- */
1565
- declare function fetchMemberInviteToken(creationOid: MongoDBId, authority?: Exclude<TeamMemberAuthority, "OBSERVER">): Promise<Res$C>;
1566
-
1567
- type Res$B = string;
1568
- /**
1569
- * 获取协作签名(协作token)
1570
- * @param {MongoDBId} creationOid 作品id
1571
- * @returns {Promise<Res>} 签名(token)
1572
- */
1573
- declare function produceTeamMemberTicket(creationOid: MongoDBId): Promise<Res$B>;
1574
-
1575
- type Res$A = TeamMember[];
1576
- /**
1577
- * 获取作品协作成员列表
1578
- * @param {MongoDBId} creationOid 作品id
1579
- * @param {TeamMemberAuthority[]} authorities 权限过滤
1580
- * @returns {Promise<Res>} 作品协作成员列表
1581
- */
1582
- declare function getTeamMemberList(creationOid: MongoDBId, authorities: TeamMemberAuthority[]): Promise<Res$A>;
1583
-
1584
- type TeamworkLogOperator = {
1585
- avatar: CNameOssUrl;
1586
- name: string;
1587
- oid: MongoDBId;
1588
- };
1589
- type TeamworkLogItem<T> = {
1590
- content: T;
1591
- createdAt: number;
1592
- creationId: MongoDBId;
1593
- id: string;
1594
- operateTarget: string;
1595
- operator: TeamworkLogOperator;
1596
- operatorId: MongoDBId;
1597
- };
1598
- type TeamworkLogContent = {
1599
- key: "closedProject" | "openedProject" | "addedSomeBlocks" | "deletedSomeBlocks" | "syncedVariables" | "syncedLists" | "usedProjectHistoryVersion" | "addedSprite" | `created${"Global" | "Private"}${"Variable" | "List"}`;
1600
- operator: {
1601
- avatar: CNameOssUrl;
1602
- clientId: string;
1603
- name: string;
1604
- oid: MongoDBId;
1605
- };
1606
- params: any;
1607
- };
1608
- type SortField$1 = "createdAt";
1609
- type OperateTargets = "VARIABLE" | "BLOCK" | "SPRITE" | "PROJECT" | "TEAMWORK";
1610
- type Res$z<T> = PagesRes<TeamworkLogItem<T>>;
1611
- /**
1612
- * 获取团队协作日志分页
1613
- * @param {MongoDBId} creationId 作品id
1614
- * @param {OperateTargets[]} operateTargets 操作目标过滤
1615
- * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
1616
- * @returns {Promise<Res>} 协作日志分页列表
1617
- */
1618
- declare function getTeamworkLogPage<T extends string>(creationId: MongoDBId, operateTargets: OperateTargets[], pageArgs_?: Partial<PageArgs<SortField$1 | T>>): Promise<Res$z<TeamworkLogContent>>;
1619
-
1620
- type Res$y = boolean;
1621
- /**
1622
- * 更新作品信息
1623
- * @param {MongoDBId} oid 作品id
1624
- * @param {LatestCNameOssUrl} latestProjectLink_ 最新项目链接
1625
- * @param {CreationScreenMode} screenMode 屏幕模式
1626
- * @param {CNameOssUrl} latestCoverLink 最新封面链接
1627
- * @returns {Promise<Res>} 更新是否成功
1628
- */
1629
- declare function updateCreation(oid: MongoDBId, latestProjectLink_: CNameOssUrl, screenMode: CreationScreenMode, latestCoverLink: CNameOssUrl): Promise<Res$y>;
1630
-
1631
- type Req = {
1632
- audioSize: number;
1633
- costumeSize: number;
1634
- coverLink: CNameOssUrl;
1635
- customVersion: string;
1636
- description: string;
1637
- extensions: string[];
1638
- featuredCoverLink: CNameOssUrl;
1639
- hasCloudVariables: false;
1640
- hashTags: string[];
1641
- isContribute: boolean;
1642
- isOpenSource: boolean;
1643
- keyboardLayout: KBDLayout;
1644
- oid: MongoDBId;
1645
- operatingInstruction: string;
1646
- projectLink: CNameOssUrl;
1647
- projectSize: number;
1648
- publishedFeedSwitch: boolean;
1649
- releaseDescription: string;
1650
- releaseTags: ReleaseTag[];
1651
- remixCreationOid: null | MongoDBId;
1652
- repostedSource: string;
1653
- requireLogin: boolean;
1654
- sourceOpenLevel: SourceOpenLevel;
1655
- tags: [];
1656
- title: string;
1657
- type: "ORIGINAL" | "REMIXED";
1658
- videoLink: null | string;
1659
- };
1660
- type Res$x = boolean;
1661
- /**
1662
- * 提交作品
1663
- * @param {Req} req 提交参数 看着写吧,我也不知道该怎么整了()
1664
- * @returns {Promise<Res>} 提交是否成功
1665
- */
1666
- declare function submitCreation(req: Req): Promise<Res$x>;
1667
-
1668
- type SplitRuleItem = {
1669
- authority: TeamMemberAuthority;
1670
- avatar: string;
1671
- creationOid: MongoDBId;
1672
- id: number;
1673
- name: string;
1674
- /**
1675
- * 排序顺序,从零开始,小的在上
1676
- */
1677
- priority: number;
1678
- profile: string;
1679
- /**
1680
- * @example rate=0.8
1681
- */
1682
- rate: number;
1683
- role: string;
1684
- userOid: MongoDBId;
1685
- };
1686
- type Res$w = SplitRuleItem[];
1687
- /**
1688
- * 获取作品协作者智能合约分成规则详情
1689
- * @param {MongoDBId} creationOid 作品id
1690
- * @returns {Promise<Res>} 分成规则列表
1691
- */
1692
- declare function getSplitRuleDetail(creationOid: MongoDBId): Promise<Res$w>;
1693
-
1694
- type Res$v = boolean;
1695
- /**
1696
- * 绑定手机号
1697
- * @param {string} phone 手机号码
1698
- * @param {string} code 短信验证码
1699
- * @param {string} countryCode 国家区号,默认 "86"
1700
- * @returns {Promise<boolean>} 绑定成功返回 true;验证码不正确等异常会抛出错误
1701
- */
1702
- declare function bindStudentPhone(phone: string, code: string, countryCode?: string): Promise<Res$v>;
1703
-
1704
- type Res$u = boolean;
1705
- /**
1706
- * 通过登录session修改用户密码(需配合短信验证码)
1707
- * @param {string} newPassword 新密码
1708
- * @param {string} code 短信验证码,通过 createSmsCaptchaBySession 获取
1709
- * @returns {Promise<boolean>} 修改成功返回 true;验证码不正确等异常会抛出错误
1710
- */
1711
- declare function changeStudentPassword(newPassword: string, code: string): Promise<Res$u>;
1712
-
1713
- type CaptchaType = "SMS";
1714
- type SmsSceneBySession = "change_password";
1715
- type SmsRuleCodeBySession = "ccw_sms";
1716
- type Res$t = {
1717
- batchId: string | null;
1718
- /**
1719
- * sendResult=1 表示成功
1720
- */
1721
- sendResult: 1 | 2;
1722
- };
1723
- /**
1724
- * 通过当前登录session发送短信验证码(无需输入手机号)用于重置密码
1725
- * @param {SmsSceneBySession} scene 使用场景,默认 change_password
1726
- * @param {string} countryCode 国家代码,默认 "86"
1727
- * @param {SmsRuleCodeBySession} ruleCode 短信规则编码,默认 "ccw_sms"
1728
- * @param {CaptchaType} type 验证码类型,默认 "SMS"
1729
- * @returns {Promise<Res>} 发送结果:batchId 为短信批次ID,sendResult=1 表示成功;发送频率超限时会抛出错误
1730
- */
1731
- declare function createSmsCaptchaBySession(scene?: SmsSceneBySession, countryCode?: string, ruleCode?: SmsRuleCodeBySession, type?: CaptchaType): Promise<Res$t>;
1732
-
1733
- type MemberSplitDetail = {
1734
- /**
1735
- * 这个值从之前获取的detail里获取
1736
- * 没有的话我也不知道咋整()
1737
- */
1738
- creationTeamMemberId?: number;
1739
- profile: string;
1740
- rate: number;
1741
- role: string;
1742
- userOid: MongoDBId;
1743
- };
1744
- type Res$s = boolean;
1745
- /**
1746
- * 创建作品智能合约分成规则
1747
- * @param {MongoDBId} creationOid 作品id
1748
- * @param {MemberSplitDetail[]} memberSplitDetails 成员分成详情
1749
- * @returns {Promise<Res>} 创建是否成功
1750
- */
1751
- declare function createSplitRule(creationOid: MongoDBId, memberSplitDetails: MemberSplitDetail[]): Promise<Res$s>;
1752
-
1753
- type KeypadConfig = {
1754
- maxR: number;
1755
- minR: number;
1756
- r: number;
1757
- slot: string;
1758
- value: string;
1759
- x: number;
1760
- y: number;
1761
- };
1762
- type CreationAttribute<KC> = {
1763
- createdAt: number;
1764
- creationOid: MongoDBId;
1765
- endorsement: null;
1766
- ext: {
1767
- KEYPAD_CONFIG: KC;
1768
- };
1769
- recommendationCreation: unknown[];
1770
- recommendationPost: unknown[];
1771
- recommendationProjectTemplate: unknown[];
1772
- specialThanks: unknown[];
1773
- updatedAt: number;
1774
- };
1775
- type Res$r<KC> = CreationAttribute<KC>;
1776
- /**
1777
- * 获取作品属性详情
1778
- * @param {MongoDBId} creationOid 作品id
1779
- * @returns {Promise<Res | null>} 作品属性
1780
- */
1781
- declare function getCreationAttributeDetail(creationOid: MongoDBId): Promise<Res$r<KeypadConfig[]> | null>;
1782
-
1783
- type CreationActivityStatsItem = {
1784
- activeAt: number;
1785
- activeAtDayOfWeek: number;
1786
- creationOid: MongoDBId;
1787
- duration: number;
1788
- id: number;
1789
- };
1790
- type Res$q = CreationActivityStatsItem[];
1791
- /**
1792
- * 获取作品创作活跃统计数据列表(绿格子)
1793
- * @param {MongoDBId} creationOid 作品id
1794
- * @returns {Promise<Res>} 活动统计数据
1795
- */
1796
- declare function getCreationActivityStatsList(creationOid: MongoDBId): Promise<Res$q>;
1797
-
1798
- type SortField = "submittedAt";
1799
- type Res$p = PagesRes<CreationRelease>;
1800
- /**
1801
- * 获取作品发布记录分页
1802
- * @param {MongoDBId} creationOid 作品id
1803
- * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
1804
- * @returns {Promise<Res>} 发布记录分页列表
1805
- */
1806
- declare function getCreationReleasePage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<SortField | T>>): Promise<Res$p>;
1807
-
1808
- type ProfilingCodes = Record<string, number>;
1809
- type ProfilingExt = Record<string, number>;
1810
- type ProfilingMath = {
1811
- arithmetic: number;
1812
- logic: number;
1813
- math: number;
1814
- };
1815
- type ProfilingMastery = {
1816
- abstractionPoints: number;
1817
- dataRepresentationPoints: number;
1818
- flowControlPoints: number;
1819
- logicPoints: number;
1820
- parallelizationPoints: number;
1821
- synchronizationPoints: number;
1822
- userInteractivityPoints: number;
1823
- };
1824
- type Profiling = {
1825
- audioCount: number;
1826
- audioSize: `${number}`;
1827
- blockChangeCount: number;
1828
- codes: ProfilingCodes;
1829
- costumeCount: number;
1830
- costumeSize: string;
1831
- count: number;
1832
- ext: ProfilingExt;
1833
- firstComparedChangedBlockCount: number;
1834
- firstComparedChangedSpriteCount: number;
1835
- functionCount: number;
1836
- hatBlockCount: number;
1837
- listCount: number;
1838
- mastery: ProfilingMastery;
1839
- math: ProfilingMath;
1840
- projectSize: `${number}`;
1841
- spriteChangeCount: number;
1842
- spriteCount: number;
1843
- validBlockCount: number;
1844
- varCount: number;
1845
- };
1846
- type CodeProfilingDetail = {
1847
- createdAt: number;
1848
- creationOid: MongoDBId;
1849
- creationReleaseOid: MongoDBId;
1850
- id: number;
1851
- profiling: Profiling;
1852
- updatedAt: number;
1853
- };
1854
- type Res$o = CodeProfilingDetail;
1855
- /**
1856
- * 获取作品工程统计详情
1857
- * @param {MongoDBId} creationOid 作品id
1858
- * @param {MongoDBId} creationReleaseOid 发布版本id
1859
- * @returns {Promise<Res>} 代码分析详情
1860
- */
1861
- declare function getCodeProfilingDetail(creationOid: MongoDBId, creationReleaseOid: MongoDBId): Promise<Res$o>;
1862
-
1863
- type Res$n = PagesRes<Record<string, never>>;
1864
- /**
1865
- * 获取历史团队成员分页
1866
- * 不知道怎么用
1867
- * @param {MongoDBId} creationOid 作品id
1868
- * @param {Partial<PageArgs<string | T>>} pageArgs_ 分页参数
1869
- * @returns {Promise<Res>} 历史团队成员分页列表
1870
- */
1871
- declare function getHistoricalTeamMemberPage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<string | T>>): Promise<Res$n>;
1872
-
1873
- type Res$m = string;
1874
- /**
1875
- * 解压缩短链接
1876
- * @param {string} shortUrlCode 短链接码
1877
- * @returns {Promise<Res>} 原始URL
1878
- */
1879
- declare function decompressShortUrl(shortUrlCode: string): Promise<Res$m>;
1880
-
1881
- type Res$l = HashTag[];
1882
- /**
1883
- * 获取推荐星球列表
1884
- * @returns {Promise<Res>} 推荐星球列表
1885
- */
1886
- declare function getRecommendHashTags(): Promise<Res$l>;
1887
-
1888
- type Res$k = {
1889
- data: string;
1890
- datetime: string;
1891
- };
1892
- /**
1893
- * ccw-main/status
1894
- * @returns {Promise<Res>} 信息
1895
- */
1896
- declare function getCCWMainStatus(): Promise<Res$k>;
1897
-
1898
- type Res$j = Record<string, never>;
1899
- /**
1900
- * @deprecated 云变量几百年没用过了
1901
- * 创建云变量
1902
- * @param {MongoDBId} projectId 项目id
1903
- * @param {Record<string, unknown>} variables 变量数据
1904
- * @returns {Promise<Res>} 空对象
1905
- */
1906
- declare function createCloudVariable(projectId: MongoDBId, variables: Record<string, unknown>): Promise<Res$j>;
1907
-
1908
- type Res$i = boolean;
1909
- /**
1910
- * 置顶评论
1911
- * @param {number} id 评论id
1912
- * @returns {Promise<Res>} 操作是否成功
1913
- */
1914
- declare function topComment(id: number): Promise<Res$i>;
1915
-
1916
- type Res$h = boolean;
1917
- /**
1918
- * 折叠评论
1919
- * @param {number} id 评论id
1920
- * @returns {Promise<Res>} 操作是否成功
1921
- */
1922
- declare function foldComment(id: number): Promise<Res$h>;
1923
-
1924
- type Res$g = boolean;
1925
- /**
1926
- * 取消置顶
1927
- * @param {number} id 评论id
1928
- * @returns {Promise<Res>} 操作是否成功
1929
- */
1930
- declare function resetCommentWeight(id: number): Promise<Res$g>;
1931
-
1932
- type Res$f = boolean;
1933
- /**
1934
- * 删除评论
1935
- * @param {number} id 评论id
1936
- * @returns {Promise<Res>} 操作是否成功
1937
- */
1938
- declare function deleteComment(id: number): Promise<Res$f>;
1939
-
1940
- type Res$e = {
1941
- commenterId: number;
1942
- content: string;
1943
- createdAt: number;
1944
- ext: null;
1945
- id: number;
1946
- parentId: null;
1947
- receiverId: null;
1948
- replyToId: null;
1949
- sectionType: SectionType;
1950
- status: "PUBLISHED";
1951
- topicId: number;
1952
- updatedAt: number;
1953
- weight: null;
1954
- };
1955
- /**
1956
- * 创建评论
1957
- * @param {string} content 评论内容
1958
- * @param {MinimalTopicInfo} topic 主题信息
1959
- * @param {string} sectionType 板块类型
1960
- * @returns {Promise<Res>} 创建的评论
1961
- */
1962
- declare function createComment(content: string, topic: MinimalTopicInfo, sectionType: SectionType): Promise<Res$e>;
1963
-
1964
- type Res$d = boolean;
1965
- /**
1966
- * 点赞评论
1967
- * @param {number} commentId 评论id
1968
- * @returns {Promise<Res>} 操作是否成功
1969
- */
1970
- declare function likeComment(commentId: number): Promise<Res$d>;
1971
-
1972
- type Res$c = PagesRes<StudentSimple & {
1973
- operatorFollowingStatus: "FOLLOWED" | "BOTH_FOLLOWED";
1974
- }>;
1975
- /**
1976
- * 获取学生关注列表分页
1977
- * @param {MongoDBId} studentOid 学生id
1978
- * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
1979
- * @returns {Promise<Res>} 关注列表分页
1980
- */
1981
- declare function getStudentFollowingPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$c>;
1982
-
1983
- type DonateObjectType = "CREATION";
1984
- type Res$b = null;
1985
- /**
1986
- * 向作品投币
1987
- * @param {number} bucks 投币数量
1988
- * @param {MongoDBId} objectId 作品id
1989
- * @param {DonateObjectType} objectType
1990
- * @returns {Promise<Res>} 无返回值
1991
- */
1992
- declare function donateTrade(bucks: number, objectId: MongoDBId, objectType?: DonateObjectType): Promise<Res$b>;
1993
-
1994
- type Res$a = PagesRes<UserProduct>;
1995
- type UserProduct = {
1996
- createdAt: number | null;
1997
- description: string;
1998
- exchangeOrderId: string | null;
1999
- expiredAt: number | null;
2000
- id: number;
2001
- isExpire: boolean;
2002
- name: string;
2003
- picUrl: CNameOssUrl;
2004
- productCategory: number;
2005
- productOid: MongoDBId;
2006
- productSource: null;
2007
- status: boolean;
2008
- updatedAt: number | null;
2009
- userOid: MongoDBId;
2010
- userType: AccountTypes;
2011
- validFrom: number;
2012
- virtualValue: CNameOssUrl;
2013
- };
2014
- declare enum ProductCategory {
2015
- AVATAR_FRAME = 5
2016
- }
2017
- /**
2018
- * 分页获取用户商品(如头像框)
2019
- * @param {ProductCategory} productCategory 商品分类,默认5为头像框
2020
- * @param {Partial<PageArgs<SortField>>} pageArgs_ 分页参数
2021
- * @returns {Promise<Res>} 分页用户商品数据
2022
- */
2023
- declare function getUserProductsPage<SortField extends string>(productCategory?: ProductCategory, pageArgs_?: Partial<PageArgs<SortField>>): Promise<Res$a>;
2024
-
2025
- type Res$9 = boolean;
2026
- /**
2027
- * 设置用户商品状态(如佩戴/卸下头像框)
2028
- * @param {number} id 用户商品ID
2029
- * @param {boolean} status 商品状态,true为佩戴,false为卸下
2030
- * @returns {Promise<Res>} 设置结果
2031
- */
2032
- declare function setUserProductStatus(id: number, status: boolean): Promise<Res$9>;
2033
-
2034
- type Res$8 = boolean;
2035
- /**
2036
- * 更换代表作
2037
- * @param {MongoDBId|""} creationOid 作品OID 若为""则是取消展示
2038
- * @returns {Promise<Res>} 更换结果
2039
- */
2040
- declare function updateGreatCreation(creationOid: MongoDBId | ""): Promise<Res$8>;
2041
-
2042
- type SmartContractBizType = "CREATION";
2043
- type SmartContractRule = {
2044
- createdAt: number;
2045
- id: number;
2046
- rule: {
2047
- awardeeAccountId?: "${curUserAccountId}";
2048
- awarderAccountId?: "${smartContractAccountId}";
2049
- bucks: "${bucks}";
2050
- code: "donate" | "award";
2051
- donatorAccountId?: "${curUserAccountId}";
2052
- funSignature: {
2053
- en: string;
2054
- zh_cn: string;
2055
- };
2056
- splitDetailList?: {
2057
- accountId: "${smartContractAccountId}" | "${creationAccountId}";
2058
- rate: number;
2059
- }[];
2060
- title: string;
2061
- };
2062
- smartContractId: number;
2063
- updatedAt: number;
2064
- };
2065
- type SmartCoinContract = {
2066
- accountId: MongoDBId;
2067
- bizId: MongoDBId;
2068
- bizType: SmartContractBizType;
2069
- createdAt: number;
2070
- id: number;
2071
- rules: SmartContractRule[];
2072
- status: "ENABLED";
2073
- title: "通用合约";
2074
- type: "GENERAL";
2075
- updatedAt: number;
2076
- };
2077
- type Res$7 = SmartCoinContract[];
2078
- /**
2079
- * 列出作品中的智能金币合约
2080
- * @param {MongoDBId} bizId 业务ID(如作品OID)
2081
- * @param {SmartContractBizType} bizType 业务类型,CREATION
2082
- * @returns {Promise<Res>} 智能合约列表
2083
- */
2084
- declare function getSmartContractList(bizId: MongoDBId, bizType?: SmartContractBizType): Promise<Res$7>;
2085
-
2086
- type Res$6 = {
2087
- success: boolean;
2088
- };
2089
- /**
2090
- * 执行智能合约(投币/领取奖励)
2091
- * @param {MongoDBId} bizId 业务 ID(如作品 OID)
2092
- * @param {SmartContractBizType} bizType 业务类型,CREATION
2093
- * @param {number} id 合约 ID
2094
- * @param {number} ruleId 规则 ID
2095
- * @param {number} bucks 金币数量
2096
- * @returns {Promise<Res>} 执行结果
2097
- */
2098
- declare function executeSmartContract(bizId: MongoDBId, id: number, ruleId: number, bucks: number, bizType?: SmartContractBizType): Promise<Res$6>;
2099
-
2100
- type Res$5 = {
2101
- balance: number;
2102
- };
2103
- /**
2104
- * 查询智能合约账户余额
2105
- * @param {number} id 合约 ID
2106
- * @returns {Promise<Res>} 合约账户余额
2107
- */
2108
- declare function getSmartContractAccount(id: number): Promise<Res$5>;
2109
-
2110
- type Res$4 = {
2111
- accountId: MongoDBId;
2112
- bizId: MongoDBId;
2113
- bizType: SmartContractBizType;
2114
- createdAt: number;
2115
- id: number;
2116
- rules: SmartContractRule[];
2117
- status: "ENABLED";
2118
- title: string;
2119
- type: string;
2120
- updatedAt: number;
2121
- };
2122
- /**
2123
- * 获取智能合约详情
2124
- * @param {number} id 合约 ID
2125
- * @returns {Promise<Res>} 合约详情
2126
- */
2127
- declare function getSmartContractDetail(id: number): Promise<Res$4>;
2128
-
2129
- type Res$3 = {
2130
- avatar: CNameOssUrl;
2131
- isFollowing: boolean;
2132
- name: string;
2133
- oid: MongoDBId;
2134
- };
2135
- /**
2136
- * [连接社区扩展] 查询是否关注了指定创作者
2137
- * @param {MongoDBId} playingCreationOid 当前播放的作品 OID
2138
- * @param {MongoDBId} userOid 目标用户 OID
2139
- * @returns {Promise<Res>} 关注状态及用户信息
2140
- */
2141
- declare function getConnectCommunityFollowingStatus(playingCreationOid: MongoDBId, userOid: MongoDBId): Promise<Res$3>;
2142
-
2143
- type Res$2 = {
2144
- interactionStatus: boolean;
2145
- oid: MongoDBId;
2146
- title: string;
2147
- };
2148
- /**
2149
- * [连接社区扩展] 查询用户对作品的点赞交互状态
2150
- * @param {MongoDBId} playingCreationOid 当前播放的作品 OID
2151
- * @param {MongoDBId} creationOid 目标作品 OID
2152
- * @returns {Promise<Res>} 点赞状态及作品信息
2153
- */
2154
- declare function getConnectCommunityCreationLikeStatus(playingCreationOid: MongoDBId, creationOid: MongoDBId): Promise<Res$2>;
2155
-
2156
- type Res$1 = "FOLLOWED";
2157
- /**
2158
- * 关注创作者
2159
- * @param {MongoDBId} followingOid 要关注的用户 OID
2160
- * @returns {Promise<Res>} "FOLLOWED" 表示关注成功
2161
- */
2162
- declare function followCreator(followingOid: MongoDBId): Promise<Res$1>;
2163
-
2164
- type Res = "UNFOLLOWED";
2165
- /**
2166
- * 取消关注创作者
2167
- * @param {MongoDBId} followingOid 要取消关注的用户 OID
2168
- * @returns {Promise<Res>} "UNFOLLOWED" 表示取消关注成功
2169
- */
2170
- declare function unfollowCreator(followingOid: MongoDBId): Promise<Res>;
2171
-
2172
- declare const communityWeb: {
2173
- acceptAward: typeof acceptAward;
2174
- bindStudentPhone: typeof bindStudentPhone;
2175
- changeStudentPassword: typeof changeStudentPassword;
2176
- createCreation: typeof createCreation;
2177
- donateTrade: typeof donateTrade;
2178
- encodeShortCode: typeof encodeShortCode;
2179
- executeSmartContract: typeof executeSmartContract;
2180
- fetchMemberInviteToken: typeof fetchMemberInviteToken;
2181
- fetchObserverInviteToken: typeof fetchObserverInviteToken;
2182
- createCloudVariable: typeof createCloudVariable;
2183
- createComment: typeof createComment;
2184
- createShortUrl: typeof createShortUrl;
2185
- createSmsCaptchaBySession: typeof createSmsCaptchaBySession;
2186
- createSplitRule: typeof createSplitRule;
2187
- decompressShortUrl: typeof decompressShortUrl;
2188
- deleteComment: typeof deleteComment;
2189
- foldComment: typeof foldComment;
2190
- followCreator: typeof followCreator;
2191
- unfollowCreator: typeof unfollowCreator;
2192
- getApprovalTags: typeof getApprovalTags;
2193
- getCampaignResources: typeof getCampaignResources;
2194
- getCcwMainStatus: typeof getCCWMainStatus;
2195
- getCheckInRecords: typeof getCheckInRecords;
2196
- getCodeProfilingDetail: typeof getCodeProfilingDetail;
2197
- getCommentReplies: typeof getCommentReplies;
2198
- getCommentsByTopic: typeof getCommentsByTopic;
2199
- getConfigDetail: typeof getConfigDetail;
2200
- getCreationActivityStatsList: typeof getCreationActivityStatsList;
2201
- getCreationAttributeDetail: typeof getCreationAttributeDetail;
2202
- getCreationDetail: typeof getCreationDetail;
2203
- getCreationFavoriteDetail: typeof getCreationFavoriteDetail;
2204
- getCreationIntroduction: typeof getCreationIntroduction;
2205
- getConnectCommunityCreationLikeStatus: typeof getConnectCommunityCreationLikeStatus;
2206
- getCreationRecommendPositionList: typeof getCreationRecommendPositionList;
2207
- getCreationReleasePage: typeof getCreationReleasePage;
2208
- getCreationScreenshotPage: typeof getCreationScreenshotPage;
2209
- getCreationStudentDetail: typeof getCreationStudentDetail;
2210
- getCreationTags: typeof getCreationTags;
2211
- getCreatorScore: typeof getCreatorScore;
2212
- getDonatedRecordRanking: typeof getDonatedRecordRanking;
2213
- getExcellentCreations: typeof getExcellentCreations;
2214
- getConnectCommunityFollowingStatus: typeof getConnectCommunityFollowingStatus;
2215
- getEmojiCategoryList: typeof getEmojiCategoryList;
2216
- getEmojiPage: typeof getEmojiPage;
2217
- getAllEmojis: typeof getAllEmojis;
2218
- getHashTagDetail: typeof getHashTagDetail;
2219
- getHashTagFavoriteDetail: typeof getHashTagFavoriteDetail;
2220
- getHistoricalTeamMemberPage: typeof getHistoricalTeamMemberPage;
2221
- getManagedHashTags: typeof getManagedHashTags;
2222
- getHealthCheck: typeof getHealthCheck;
2223
- getLeafletsItemList: typeof getLeafletsItemList;
2224
- getLikeDetail: typeof getLikeDetail;
2225
- getLoadingTips: typeof getLoadingTips;
2226
- getLockedUserDetail: typeof getLockedUserDetail;
2227
- getMutedUserDetail: typeof getMutedUserDetail;
2228
- getMyHashTagCreations: typeof getMyHashTagCreations;
2229
- getMyTasks: typeof getMyTasks;
2230
- getNotifyDeleteReasons: typeof getNotifyDeleteReasons;
2231
- getNotificationPage: typeof getNotificationPage;
2232
- getNotificationStats: typeof getNotificationStats;
2233
- getOwnCreationPage: typeof getOwnCreationPage;
2234
- getPersonalCurrencyAccount: typeof getPersonalCurrencyAccount;
2235
- getPlanetsOfCreation: typeof getPlanetsOfCreation;
2236
- getPostDetail: typeof getPostDetail;
2237
- getPotentialCreations: typeof getPotentialCreations;
2238
- getRecommendCreations: typeof getRecommendCreations;
2239
- getRecommendCreators: typeof getRecommendCreators;
2240
- getRecommendHashTags: typeof getRecommendHashTags;
2241
- getRemixedCreationPage: typeof getRemixedCreationPage;
2242
- getReputationScoreLogPage: typeof getReputationScoreLog;
2243
- getSearchHotWords: typeof getSearchHotWords;
2244
- getSmartContractAccount: typeof getSmartContractAccount;
2245
- getSmartContractDetail: typeof getSmartContractDetail;
2246
- getSmartContractList: typeof getSmartContractList;
2247
- getSplitRuleDetail: typeof getSplitRuleDetail;
2248
- getSpreadFeedUnreadCount: typeof getSpreadFeedUnreadCount;
2249
- getStudentBlockRecordDetail: typeof getStudentBlockRecordDetail;
2250
- getStudentBlockRecordList: typeof getStudentBlockRecordList;
2251
- getStudentBlockStatus: typeof getStudentBlockStatus;
2252
- getStudentFollowingPage: typeof getStudentFollowingPage;
2253
- getStudentLastActiveAt: typeof getStudentLastActiveAt;
2254
- getStudentProfile: typeof getStudentProfile;
2255
- getStudentSelfDetail: typeof getStudentSelfDetail;
2256
- getStudentSessions: typeof getStudentSessions;
2257
- getStudentsList: typeof getStudentsList;
2258
- getStudentStats: typeof getStudentStats;
2259
- getStudyCommunityMemberDetail: typeof getStudyCommunityMemberDetail;
2260
- getSubjectAreaPage: typeof getSubjectAreaPage;
2261
- getSubjectAreaPageByChannel: typeof getSubjectAreaPageByChannel;
2262
- getTeamMemberList: typeof getTeamMemberList;
2263
- getTeamworkLogPage: typeof getTeamworkLogPage;
2264
- getTime: typeof getTime;
2265
- getTypicalProjectPage: typeof getTypicalProjectPage;
2266
- getTypicalProjectUnreadCount: typeof getTypicalProjectUnreadCount;
2267
- getUserAssetStorageSize: typeof getUserAssetStorageSize;
2268
- getUserCardDetail: typeof getUserCardDetail;
2269
- getUserLabelList: typeof getUserLabelList;
2270
- getUserProductsPage: typeof getUserProductsPage;
2271
- queryMallProducts: typeof queryMallProducts;
2272
- getCreationsByStudent: typeof getCreationsByStudent;
2273
- insertCheckInRecord: typeof insertCheckInRecord;
2274
- likeComment: typeof likeComment;
2275
- produceTeamMemberTicket: typeof produceTeamMemberTicket;
2276
- resetCommentWeight: typeof resetCommentWeight;
2277
- searchCloudAssets: typeof searchCloudAssets;
2278
- searchCreationsByTag: typeof searchCreationsByTag;
2279
- sendEvent: typeof sendEvent;
2280
- setUserProductStatus: typeof setUserProductStatus;
2281
- submitCreation: typeof submitCreation;
2282
- topComment: typeof topComment;
2283
- updateCreation: typeof updateCreation;
2284
- updateGreatCreation: typeof updateGreatCreation;
2285
- updateStudent: typeof updateStudent;
2286
- viewCreationStats: typeof viewCreationStats;
2287
- };
2288
-
2289
- export { getLockedUserDetail as $, getConfigDetail as A, getCreationActivityStatsList as B, getCreationAttributeDetail as C, getCreationDetail as D, getCreationFavoriteDetail as E, getCreationIntroduction as F, getConnectCommunityCreationLikeStatus as G, getCreationRecommendPositionList as H, getCreationReleasePage as I, getCreationScreenshotPage as J, getCreationStudentDetail as K, getCreationTags as L, getCreatorScore as M, getDonatedRecordRanking as N, getExcellentCreations as O, getConnectCommunityFollowingStatus as P, getEmojiCategoryList as Q, getEmojiPage as R, getAllEmojis as S, getHashTagDetail as T, getHashTagFavoriteDetail as U, getHistoricalTeamMemberPage as V, getManagedHashTags as W, getHealthCheck as X, getLeafletsItemList as Y, getLikeDetail as Z, getLoadingTips as _, acceptAward as a, notification as a$, getMutedUserDetail as a0, getMyHashTagCreations as a1, getMyTasks as a2, getNotifyDeleteReasons as a3, getNotificationPage as a4, getNotificationStats as a5, getOwnCreationPage as a6, getPersonalCurrencyAccount as a7, getPlanetsOfCreation as a8, getPostDetail as a9, getTeamworkLogPage as aA, getTime as aB, getTypicalProjectPage as aC, getTypicalProjectUnreadCount as aD, getUserAssetStorageSize as aE, getUserCardDetail as aF, getUserLabelList as aG, getUserProductsPage as aH, queryMallProducts as aI, getCreationsByStudent as aJ, insertCheckInRecord as aK, likeComment as aL, produceTeamMemberTicket as aM, resetCommentWeight as aN, searchCloudAssets as aO, searchCreationsByTag as aP, sendEvent as aQ, setUserProductStatus as aR, submitCreation as aS, topComment as aT, updateCreation as aU, updateGreatCreation as aV, updateStudent as aW, viewCreationStats as aX, comment as aY, hashTag as aZ, mall as a_, getPotentialCreations as aa, getRecommendCreations as ab, getRecommendCreators as ac, getRecommendHashTags as ad, getRemixedCreationPage as ae, getReputationScoreLog as af, getSearchHotWords as ag, getSmartContractAccount as ah, getSmartContractDetail as ai, getSmartContractList as aj, getSplitRuleDetail as ak, getSpreadFeedUnreadCount as al, getStudentBlockRecordDetail as am, getStudentBlockRecordList as an, getStudentBlockStatus as ao, getStudentFollowingPage as ap, getStudentLastActiveAt as aq, getStudentProfile as ar, getStudentSelfDetail as as, getStudentSessions as at, getStudentsList as au, getStudentStats as av, getStudyCommunityMemberDetail as aw, getSubjectAreaPage as ax, getSubjectAreaPageByChannel as ay, getTeamMemberList as az, bindStudentPhone as b, notificationContent as b0, communityWeb as b1, changeStudentPassword as c, createCreation as d, donateTrade as e, encodeShortCode as f, executeSmartContract as g, fetchMemberInviteToken as h, fetchObserverInviteToken as i, createCloudVariable as j, createComment as k, createShortUrl as l, createSmsCaptchaBySession as m, createSplitRule as n, decompressShortUrl as o, deleteComment as p, foldComment as q, followCreator as r, getApprovalTags as s, getCampaignResources as t, unfollowCreator as u, getCCWMainStatus as v, getCheckInRecords as w, getCodeProfilingDetail as x, getCommentReplies as y, getCommentsByTopic as z };