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