@ccw-api/api 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1544
- package/dist/index.d.cts +281 -235
- package/dist/index.d.ts +281 -235
- package/dist/index.global.js +30 -0
- package/dist/index.js +1 -1502
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { setToken } from '@ccw-api/axios';
|
|
2
2
|
|
|
3
|
-
type Res$
|
|
3
|
+
type Res$1U = {
|
|
4
4
|
captchaExpired: boolean;
|
|
5
5
|
errorMsg: string | null;
|
|
6
6
|
success: boolean;
|
|
@@ -12,10 +12,10 @@ type Res$1R = {
|
|
|
12
12
|
* @param {number} y 拼图滑块目标位置的 y 坐标
|
|
13
13
|
* @returns {Promise<Res>} 校验结果
|
|
14
14
|
*/
|
|
15
|
-
declare function checkCaptcha(token: string, x: number, y?: number): Promise<Res$
|
|
15
|
+
declare function checkCaptcha(token: string, x: number, y?: number): Promise<Res$1U>;
|
|
16
16
|
|
|
17
|
-
type CaptchaType = "BLOCK_PUZZLE";
|
|
18
|
-
type Res$
|
|
17
|
+
type CaptchaType$1 = "BLOCK_PUZZLE";
|
|
18
|
+
type Res$1T = {
|
|
19
19
|
data: {
|
|
20
20
|
/**
|
|
21
21
|
* data url
|
|
@@ -33,9 +33,9 @@ type Res$1Q = {
|
|
|
33
33
|
* @param {CaptchaType} type 验证码类型,默认 BLOCK_PUZZLE(滑块拼图)
|
|
34
34
|
* @returns {Promise<Res>} 验证码信息:bgImg为背景图base64 data url,jigsawImg为拼图块base64 data url,token用于后续校验
|
|
35
35
|
*/
|
|
36
|
-
declare function createCaptcha(type?: CaptchaType): Promise<Res$
|
|
36
|
+
declare function createCaptcha(type?: CaptchaType$1): Promise<Res$1T>;
|
|
37
37
|
|
|
38
|
-
type Res$
|
|
38
|
+
type Res$1S = {};
|
|
39
39
|
/**
|
|
40
40
|
* 查询云变量详情 V2
|
|
41
41
|
* @param {string} accessKey 访问密钥(如作品 OID)
|
|
@@ -44,7 +44,7 @@ type Res$1P = {};
|
|
|
44
44
|
* @param {string[]} filterKeys 过滤的变量名列表
|
|
45
45
|
* @returns {Promise<Res>} 云变量详情
|
|
46
46
|
*/
|
|
47
|
-
declare function getCloudVariableDetailV2(accessKey: string, primaryKey: string, secondaryKey: string, filterKeys: string[]): Promise<Res$
|
|
47
|
+
declare function getCloudVariableDetailV2(accessKey: string, primaryKey: string, secondaryKey: string, filterKeys: string[]): Promise<Res$1S>;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* 十六进制秒级时间戳
|
|
@@ -816,23 +816,23 @@ declare namespace pages {
|
|
|
816
816
|
export type { pages_PageArgs as PageArgs, pages_PagesRes as PagesRes, pages_SortType as SortType };
|
|
817
817
|
}
|
|
818
818
|
|
|
819
|
-
type Res$
|
|
819
|
+
type Res$1R = PagesRes<Extension>;
|
|
820
820
|
/**
|
|
821
821
|
* 获取用户扩展列表分页
|
|
822
822
|
* @param {MongoDBId} userOid 用户id
|
|
823
823
|
* @param {Partial<PageArgs<"createdAt" | "updatedAt" | T>>} pageArgs_ 分页参数
|
|
824
824
|
* @returns {Promise<Res>} 扩展分页列表
|
|
825
825
|
*/
|
|
826
|
-
declare function getUserExtensions<T extends string>(userOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | "updatedAt" | T>>): Promise<Res$
|
|
826
|
+
declare function getUserExtensions<T extends string>(userOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | "updatedAt" | T>>): Promise<Res$1R>;
|
|
827
827
|
|
|
828
|
-
type Res$
|
|
828
|
+
type Res$1Q = boolean;
|
|
829
829
|
/**
|
|
830
830
|
* 向扩展投币
|
|
831
831
|
* @param {ExtensionDonateEid} eid 扩展id
|
|
832
832
|
* @param {number} bucks 捐赠金币数量
|
|
833
833
|
* @returns {Promise<Res>} 是否捐赠成功
|
|
834
834
|
*/
|
|
835
|
-
declare function donateExtension(eid: string, bucks: number): Promise<Res$
|
|
835
|
+
declare function donateExtension(eid: string, bucks: number): Promise<Res$1Q>;
|
|
836
836
|
|
|
837
837
|
type SubmitRes = boolean;
|
|
838
838
|
type LeaderboardUser = {
|
|
@@ -897,13 +897,13 @@ type BulletinDetail = {
|
|
|
897
897
|
title: string;
|
|
898
898
|
updatedAt: number;
|
|
899
899
|
};
|
|
900
|
-
type Res$
|
|
900
|
+
type Res$1P = BulletinDetail;
|
|
901
901
|
/**
|
|
902
902
|
* 获取公告详情
|
|
903
903
|
* @param {number} id 公告id
|
|
904
904
|
* @returns {Promise<Res>} 公告详情
|
|
905
905
|
*/
|
|
906
|
-
declare function getBulletinDetail(id: number): Promise<Res$
|
|
906
|
+
declare function getBulletinDetail(id: number): Promise<Res$1P>;
|
|
907
907
|
|
|
908
908
|
type BulletinItem = {
|
|
909
909
|
createdAt: number;
|
|
@@ -914,32 +914,32 @@ type BulletinItem = {
|
|
|
914
914
|
updatedAt: number;
|
|
915
915
|
};
|
|
916
916
|
type SortField$c = "publishedAt";
|
|
917
|
-
type Res$
|
|
917
|
+
type Res$1O = PagesRes<BulletinItem>;
|
|
918
918
|
/**
|
|
919
919
|
* 获取公告分页列表
|
|
920
920
|
* @param {'PUBLISHED' | S} status 公告状态过滤
|
|
921
921
|
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
922
922
|
* @returns {Promise<Res>} 公告分页列表
|
|
923
923
|
*/
|
|
924
|
-
declare function getBulletinsPage<T extends string, S extends string>(status?: "PUBLISHED" | S, pageArgs_?: Partial<PageArgs<SortField$c | T>>): Promise<Res$
|
|
924
|
+
declare function getBulletinsPage<T extends string, S extends string>(status?: "PUBLISHED" | S, pageArgs_?: Partial<PageArgs<SortField$c | T>>): Promise<Res$1O>;
|
|
925
925
|
|
|
926
|
-
type Res$
|
|
926
|
+
type Res$1N = number;
|
|
927
927
|
/**
|
|
928
928
|
* 获取服务端当前时间戳
|
|
929
929
|
* @returns {Promise<Res>} 当前时间戳(毫秒)
|
|
930
930
|
*/
|
|
931
|
-
declare function getCurrentTimestamp(): Promise<Res$
|
|
931
|
+
declare function getCurrentTimestamp(): Promise<Res$1N>;
|
|
932
932
|
|
|
933
|
-
type Res$
|
|
933
|
+
type Res$1M = boolean;
|
|
934
934
|
/**
|
|
935
935
|
* 查看作品统计(增加浏览量)
|
|
936
936
|
* @param {MongoDBId} oid 作品id
|
|
937
937
|
* @param {string} inviteCode 邀请码
|
|
938
938
|
* @returns {Promise<boolean>} 是否成功
|
|
939
939
|
*/
|
|
940
|
-
declare function viewCreationStats(oid: MongoDBId, inviteCode?: string): Promise<Res$
|
|
940
|
+
declare function viewCreationStats(oid: MongoDBId, inviteCode?: string): Promise<Res$1M>;
|
|
941
941
|
|
|
942
|
-
type Res$
|
|
942
|
+
type Res$1L = boolean;
|
|
943
943
|
/**
|
|
944
944
|
* 更新学生个人信息
|
|
945
945
|
* @param {string} gender 性别
|
|
@@ -953,17 +953,17 @@ type Res$1I = boolean;
|
|
|
953
953
|
* @param {string} learnedProgrammingLanguages 学过的编程语言
|
|
954
954
|
* @returns {Promise<boolean>} 是否更新成功
|
|
955
955
|
*/
|
|
956
|
-
declare function updateStudent(gender: string, hideGender: boolean, fullName: string, birthday: number, programmingCapability: string, school: string, qq: string, hobbies: string, learnedProgrammingLanguages: string): Promise<Res$
|
|
956
|
+
declare function updateStudent(gender: string, hideGender: boolean, fullName: string, birthday: number, programmingCapability: string, school: string, qq: string, hobbies: string, learnedProgrammingLanguages: string): Promise<Res$1L>;
|
|
957
957
|
|
|
958
|
-
type Res$
|
|
958
|
+
type Res$1K = boolean;
|
|
959
959
|
/**
|
|
960
960
|
* 更换代表作
|
|
961
961
|
* @param {MongoDBId|""} creationOid 作品OID 若为""则是取消展示
|
|
962
962
|
* @returns {Promise<Res>} 更换结果
|
|
963
963
|
*/
|
|
964
|
-
declare function updateGreatCreation(creationOid: MongoDBId | ""): Promise<Res$
|
|
964
|
+
declare function updateGreatCreation(creationOid: MongoDBId | ""): Promise<Res$1K>;
|
|
965
965
|
|
|
966
|
-
type Res$
|
|
966
|
+
type Res$1J = boolean;
|
|
967
967
|
/**
|
|
968
968
|
* 更新作品信息
|
|
969
969
|
* @param {MongoDBId} oid 作品id
|
|
@@ -972,15 +972,15 @@ type Res$1G = boolean;
|
|
|
972
972
|
* @param {CNameOssUrl} latestCoverLink 最新封面链接
|
|
973
973
|
* @returns {Promise<Res>} 更新是否成功
|
|
974
974
|
*/
|
|
975
|
-
declare function updateCreation(oid: MongoDBId, latestProjectLink_: CNameOssUrl, screenMode: CreationScreenMode, latestCoverLink: CNameOssUrl): Promise<Res$
|
|
975
|
+
declare function updateCreation(oid: MongoDBId, latestProjectLink_: CNameOssUrl, screenMode: CreationScreenMode, latestCoverLink: CNameOssUrl): Promise<Res$1J>;
|
|
976
976
|
|
|
977
|
-
type Res$
|
|
977
|
+
type Res$1I = boolean;
|
|
978
978
|
/**
|
|
979
979
|
* 置顶评论
|
|
980
980
|
* @param {number} id 评论id
|
|
981
981
|
* @returns {Promise<Res>} 操作是否成功
|
|
982
982
|
*/
|
|
983
|
-
declare function topComment(id: number): Promise<Res$
|
|
983
|
+
declare function topComment(id: number): Promise<Res$1I>;
|
|
984
984
|
|
|
985
985
|
type Req$1 = {
|
|
986
986
|
audioSize: number;
|
|
@@ -1011,37 +1011,37 @@ type Req$1 = {
|
|
|
1011
1011
|
type: "ORIGINAL" | "REMIXED";
|
|
1012
1012
|
videoLink: null | string;
|
|
1013
1013
|
};
|
|
1014
|
-
type Res$
|
|
1014
|
+
type Res$1H = boolean;
|
|
1015
1015
|
/**
|
|
1016
1016
|
* 提交作品
|
|
1017
1017
|
* @param {Req} req 提交参数 看着写吧,我也不知道该怎么整了()
|
|
1018
1018
|
* @returns {Promise<Res>} 提交是否成功
|
|
1019
1019
|
*/
|
|
1020
|
-
declare function submitCreation(req: Req$1): Promise<Res$
|
|
1020
|
+
declare function submitCreation(req: Req$1): Promise<Res$1H>;
|
|
1021
1021
|
|
|
1022
|
-
type Res$
|
|
1022
|
+
type Res$1G = boolean;
|
|
1023
1023
|
/**
|
|
1024
1024
|
* 设置用户商品状态(如佩戴/卸下头像框)
|
|
1025
1025
|
* @param {number} id 用户商品ID
|
|
1026
1026
|
* @param {boolean} status 商品状态,true为佩戴,false为卸下
|
|
1027
1027
|
* @returns {Promise<Res>} 设置结果
|
|
1028
1028
|
*/
|
|
1029
|
-
declare function setUserProductStatus(id: number, status: boolean): Promise<Res$
|
|
1029
|
+
declare function setUserProductStatus(id: number, status: boolean): Promise<Res$1G>;
|
|
1030
1030
|
|
|
1031
|
-
type Res$
|
|
1031
|
+
type Res$1F = boolean;
|
|
1032
1032
|
/**
|
|
1033
1033
|
* 发送事件
|
|
1034
1034
|
* @param {string} actionId 事件ID
|
|
1035
1035
|
* @returns {Promise<Res>} 是否成功
|
|
1036
1036
|
*/
|
|
1037
|
-
declare function sendEvent(actionId: string): Promise<Res$
|
|
1037
|
+
declare function sendEvent(actionId: string): Promise<Res$1F>;
|
|
1038
1038
|
|
|
1039
1039
|
type SortField$b = "createdAt" | "likeCount" | "viewCount";
|
|
1040
1040
|
type Req = {
|
|
1041
1041
|
oids?: string[];
|
|
1042
1042
|
tag?: string;
|
|
1043
1043
|
};
|
|
1044
|
-
type Res$
|
|
1044
|
+
type Res$1E = PagesRes<CreationSimple>;
|
|
1045
1045
|
/**
|
|
1046
1046
|
* 搜索作品
|
|
1047
1047
|
* @param {string} req.tag 标签 例如:游戏 动画故事 角色扮演 kukeChat
|
|
@@ -1049,10 +1049,10 @@ type Res$1B = PagesRes<CreationSimple>;
|
|
|
1049
1049
|
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
1050
1050
|
* @returns {Promise<Res>} 作品分页结果
|
|
1051
1051
|
*/
|
|
1052
|
-
declare function searchCreationsByTag<T extends string>(req: Req, pageArgs_?: Partial<PageArgs<SortField$b | T>>): Promise<Res$
|
|
1052
|
+
declare function searchCreationsByTag<T extends string>(req: Req, pageArgs_?: Partial<PageArgs<SortField$b | T>>): Promise<Res$1E>;
|
|
1053
1053
|
|
|
1054
1054
|
type SortField$a = "type" | "createdAt";
|
|
1055
|
-
type Res$
|
|
1055
|
+
type Res$1D = PagesRes<CloudAsset>;
|
|
1056
1056
|
interface CloudAsset {
|
|
1057
1057
|
categories: [];
|
|
1058
1058
|
/**
|
|
@@ -1087,48 +1087,48 @@ type CloudAssetType = "COSTUME" | "FOLDER" | "VIDEO" | "AUDIO";
|
|
|
1087
1087
|
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
1088
1088
|
* @returns {Promise<Res>} 目录内的素材分页结果
|
|
1089
1089
|
*/
|
|
1090
|
-
declare function searchCloudAssets<T extends string>(creatorOid: MongoDBId, path?: string, pageArgs_?: Partial<PageArgs<SortField$a | T>>): Promise<Res$
|
|
1090
|
+
declare function searchCloudAssets<T extends string>(creatorOid: MongoDBId, path?: string, pageArgs_?: Partial<PageArgs<SortField$a | T>>): Promise<Res$1D>;
|
|
1091
1091
|
|
|
1092
|
-
type Res$
|
|
1092
|
+
type Res$1C = boolean;
|
|
1093
1093
|
/**
|
|
1094
1094
|
* 取消置顶
|
|
1095
1095
|
* @param {number} id 评论id
|
|
1096
1096
|
* @returns {Promise<Res>} 操作是否成功
|
|
1097
1097
|
*/
|
|
1098
|
-
declare function resetCommentWeight(id: number): Promise<Res$
|
|
1098
|
+
declare function resetCommentWeight(id: number): Promise<Res$1C>;
|
|
1099
1099
|
|
|
1100
|
-
type Res$
|
|
1100
|
+
type Res$1B = string;
|
|
1101
1101
|
/**
|
|
1102
1102
|
* 获取协作签名(协作token)
|
|
1103
1103
|
* @param {MongoDBId} creationOid 作品id
|
|
1104
1104
|
* @returns {Promise<Res>} 签名(token)
|
|
1105
1105
|
*/
|
|
1106
|
-
declare function produceTeamMemberTicket(creationOid: MongoDBId): Promise<Res$
|
|
1106
|
+
declare function produceTeamMemberTicket(creationOid: MongoDBId): Promise<Res$1B>;
|
|
1107
1107
|
|
|
1108
|
-
type Res$
|
|
1108
|
+
type Res$1A = boolean;
|
|
1109
1109
|
/**
|
|
1110
1110
|
* 点赞评论
|
|
1111
1111
|
* @param {number} commentId 评论id
|
|
1112
1112
|
* @returns {Promise<Res>} 操作是否成功
|
|
1113
1113
|
*/
|
|
1114
|
-
declare function likeComment(commentId: number): Promise<Res$
|
|
1114
|
+
declare function likeComment(commentId: number): Promise<Res$1A>;
|
|
1115
1115
|
|
|
1116
|
-
type Res$
|
|
1116
|
+
type Res$1z = boolean;
|
|
1117
1117
|
/**
|
|
1118
1118
|
* 插入签到记录(相当于签到)
|
|
1119
1119
|
* @returns {Promise<boolean>} 是否成功
|
|
1120
1120
|
*/
|
|
1121
|
-
declare function insertCheckInRecord(): Promise<Res$
|
|
1121
|
+
declare function insertCheckInRecord(): Promise<Res$1z>;
|
|
1122
1122
|
|
|
1123
1123
|
type SortField$9 = "createdAt" | "likeCount" | "viewCount";
|
|
1124
|
-
type Res$
|
|
1124
|
+
type Res$1y = PagesRes<Creation>;
|
|
1125
1125
|
/**
|
|
1126
1126
|
* 获取学生的作品列表
|
|
1127
1127
|
* @param {MongoDBId[]} studentOids 学生id列表
|
|
1128
1128
|
* @param {Partial<PageArgs<SortField|T>>} pageArgs_ 分页参数
|
|
1129
1129
|
* @returns {Promise<Res>} 作品分页结果
|
|
1130
1130
|
*/
|
|
1131
|
-
declare function getCreationsByStudent<T extends string>(studentOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$9 | T>>): Promise<Res$
|
|
1131
|
+
declare function getCreationsByStudent<T extends string>(studentOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$9 | T>>): Promise<Res$1y>;
|
|
1132
1132
|
|
|
1133
1133
|
declare enum ProductCategory$1 {
|
|
1134
1134
|
Merchandise = 7,
|
|
@@ -1174,16 +1174,16 @@ declare namespace mall {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
|
|
1176
1176
|
type ProductSortField = "createdAt" | "updatedAt" | "pointPrice" | "priority" | "stockNum";
|
|
1177
|
-
type Res$
|
|
1177
|
+
type Res$1x = PagesRes<Product, ProductSortField>;
|
|
1178
1178
|
/**
|
|
1179
1179
|
* 分页查询CCW小商店商品列表
|
|
1180
1180
|
* @param {ProductCategory | undefined} productCategory 商品分类(可选):5=头像框,7=周边商品,10=表情 等
|
|
1181
1181
|
* @param {Partial<PageArgs<ProductSortField>>} pageArgs_ 分页参数(默认 page=1, perPage=30, sortType="DESC")
|
|
1182
1182
|
* @returns {Promise<Res>} 商品分页结果 PagesRes<Product>
|
|
1183
1183
|
*/
|
|
1184
|
-
declare function queryMallProducts<T extends string>(productCategory?: ProductCategory$1, pageArgs_?: Partial<PageArgs<ProductSortField | T>>): Promise<Res$
|
|
1184
|
+
declare function queryMallProducts<T extends string>(productCategory?: ProductCategory$1, pageArgs_?: Partial<PageArgs<ProductSortField | T>>): Promise<Res$1x>;
|
|
1185
1185
|
|
|
1186
|
-
type Res$
|
|
1186
|
+
type Res$1w = PagesRes<UserProduct>;
|
|
1187
1187
|
type UserProduct = {
|
|
1188
1188
|
createdAt: number | null;
|
|
1189
1189
|
description: string;
|
|
@@ -1212,16 +1212,16 @@ declare enum ProductCategory {
|
|
|
1212
1212
|
* @param {Partial<PageArgs<SortField>>} pageArgs_ 分页参数
|
|
1213
1213
|
* @returns {Promise<Res>} 分页用户商品数据
|
|
1214
1214
|
*/
|
|
1215
|
-
declare function getUserProductsPage<SortField extends string>(productCategory?: ProductCategory, pageArgs_?: Partial<PageArgs<SortField>>): Promise<Res$
|
|
1215
|
+
declare function getUserProductsPage<SortField extends string>(productCategory?: ProductCategory, pageArgs_?: Partial<PageArgs<SortField>>): Promise<Res$1w>;
|
|
1216
1216
|
|
|
1217
|
-
type Res$
|
|
1217
|
+
type Res$1v = {
|
|
1218
1218
|
userLabels: UserLabels[];
|
|
1219
1219
|
};
|
|
1220
1220
|
/**
|
|
1221
1221
|
* 获取用户标签列表
|
|
1222
1222
|
* @returns {Promise<Res>} 用户标签数据
|
|
1223
1223
|
*/
|
|
1224
|
-
declare function getUserLabelList(): Promise<Res$
|
|
1224
|
+
declare function getUserLabelList(): Promise<Res$1v>;
|
|
1225
1225
|
|
|
1226
1226
|
type UserCardApprovalTag = {
|
|
1227
1227
|
iconLink: CNameOssUrl;
|
|
@@ -1250,7 +1250,7 @@ type UserCardUser = {
|
|
|
1250
1250
|
};
|
|
1251
1251
|
virtualValue: CNameOssUrl;
|
|
1252
1252
|
};
|
|
1253
|
-
type Res$
|
|
1253
|
+
type Res$1u = {
|
|
1254
1254
|
creation: CreationMinimal | null;
|
|
1255
1255
|
user: UserCardUser;
|
|
1256
1256
|
};
|
|
@@ -1259,9 +1259,9 @@ type Res$1r = {
|
|
|
1259
1259
|
* @param {MongoDBId} oid 用户id
|
|
1260
1260
|
* @returns {Promise<Res>} 用户卡片数据
|
|
1261
1261
|
*/
|
|
1262
|
-
declare function getUserCardDetail(oid: MongoDBId): Promise<Res$
|
|
1262
|
+
declare function getUserCardDetail(oid: MongoDBId): Promise<Res$1u>;
|
|
1263
1263
|
|
|
1264
|
-
type Res$
|
|
1264
|
+
type Res$1t = {
|
|
1265
1265
|
/**
|
|
1266
1266
|
* @example 100MB: "104857600"
|
|
1267
1267
|
*/
|
|
@@ -1272,16 +1272,16 @@ type Res$1q = {
|
|
|
1272
1272
|
* 获取用户云存储空间信息
|
|
1273
1273
|
* @returns {Promise<Res>} 存储空间信息
|
|
1274
1274
|
*/
|
|
1275
|
-
declare function getUserAssetStorageSize(): Promise<Res$
|
|
1275
|
+
declare function getUserAssetStorageSize(): Promise<Res$1t>;
|
|
1276
1276
|
|
|
1277
|
-
type Res$
|
|
1277
|
+
type Res$1s = [];
|
|
1278
1278
|
/**
|
|
1279
1279
|
* @deprecated 该接口只会返回"[]"
|
|
1280
1280
|
* 获取学生未读应用课工程文件项目数量
|
|
1281
1281
|
* @param {MongoDBId} studentOid 学生id
|
|
1282
1282
|
* @returns {Promise<Res>} 未读应用课工程文件项目id列表
|
|
1283
1283
|
*/
|
|
1284
|
-
declare function getTypicalProjectUnreadCount(studentOid: MongoDBId): Promise<Res$
|
|
1284
|
+
declare function getTypicalProjectUnreadCount(studentOid: MongoDBId): Promise<Res$1s>;
|
|
1285
1285
|
|
|
1286
1286
|
type TypicalProjectItem = {
|
|
1287
1287
|
cover: string;
|
|
@@ -1297,14 +1297,14 @@ type TypicalProjectItem = {
|
|
|
1297
1297
|
templateType: string;
|
|
1298
1298
|
updatedAt: null | number;
|
|
1299
1299
|
};
|
|
1300
|
-
type Res$
|
|
1300
|
+
type Res$1r = PagesRes<TypicalProjectItem>;
|
|
1301
1301
|
/**
|
|
1302
1302
|
* 获取应用课工程文件项目分页列表 (https://www.ccw.site/workspace/application)
|
|
1303
1303
|
* @param {MongoDBId} studentOid 学生id
|
|
1304
1304
|
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1305
1305
|
* @returns {Promise<Res>} 应用课工程文件项目分页列表
|
|
1306
1306
|
*/
|
|
1307
|
-
declare function getTypicalProjectPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$
|
|
1307
|
+
declare function getTypicalProjectPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1r>;
|
|
1308
1308
|
|
|
1309
1309
|
/**
|
|
1310
1310
|
* @returns {Promise<number>} 当前时间戳,相当于Date.now()
|
|
@@ -1337,7 +1337,7 @@ type TeamworkLogContent = {
|
|
|
1337
1337
|
};
|
|
1338
1338
|
type SortField$8 = "createdAt";
|
|
1339
1339
|
type OperateTargets = "VARIABLE" | "BLOCK" | "SPRITE" | "PROJECT" | "TEAMWORK";
|
|
1340
|
-
type Res$
|
|
1340
|
+
type Res$1q<T> = PagesRes<TeamworkLogItem<T>>;
|
|
1341
1341
|
/**
|
|
1342
1342
|
* 获取团队协作日志分页
|
|
1343
1343
|
* @param {MongoDBId} creationId 作品id
|
|
@@ -1345,7 +1345,7 @@ type Res$1n<T> = PagesRes<TeamworkLogItem<T>>;
|
|
|
1345
1345
|
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
1346
1346
|
* @returns {Promise<Res>} 协作日志分页列表
|
|
1347
1347
|
*/
|
|
1348
|
-
declare function getTeamworkLogPage<T extends string>(creationId: MongoDBId, operateTargets: OperateTargets[], pageArgs_?: Partial<PageArgs<SortField$8 | T>>): Promise<Res$
|
|
1348
|
+
declare function getTeamworkLogPage<T extends string>(creationId: MongoDBId, operateTargets: OperateTargets[], pageArgs_?: Partial<PageArgs<SortField$8 | T>>): Promise<Res$1q<TeamworkLogContent>>;
|
|
1349
1349
|
|
|
1350
1350
|
type TeamMemberAuthority = "ADMIN" | "MEMBER" | "OBSERVER";
|
|
1351
1351
|
type TeamMember = {
|
|
@@ -1362,14 +1362,14 @@ type TeamMember = {
|
|
|
1362
1362
|
userOid: MongoDBId;
|
|
1363
1363
|
};
|
|
1364
1364
|
|
|
1365
|
-
type Res$
|
|
1365
|
+
type Res$1p = TeamMember[];
|
|
1366
1366
|
/**
|
|
1367
1367
|
* 获取作品协作成员列表
|
|
1368
1368
|
* @param {MongoDBId} creationOid 作品id
|
|
1369
1369
|
* @param {TeamMemberAuthority[]} authorities 权限过滤
|
|
1370
1370
|
* @returns {Promise<Res>} 作品协作成员列表
|
|
1371
1371
|
*/
|
|
1372
|
-
declare function getTeamMemberList(creationOid: MongoDBId, authorities: TeamMemberAuthority[]): Promise<Res$
|
|
1372
|
+
declare function getTeamMemberList(creationOid: MongoDBId, authorities: TeamMemberAuthority[]): Promise<Res$1p>;
|
|
1373
1373
|
|
|
1374
1374
|
type SubjectAreaModuleComponent$1 = {
|
|
1375
1375
|
data: {
|
|
@@ -1428,14 +1428,14 @@ type SubjectAreaItem$1 = {
|
|
|
1428
1428
|
title: string;
|
|
1429
1429
|
visibleFor: string[];
|
|
1430
1430
|
};
|
|
1431
|
-
type Res$
|
|
1431
|
+
type Res$1o = PagesRes<SubjectAreaItem$1>;
|
|
1432
1432
|
/**
|
|
1433
1433
|
* 按频道分页获取分区列表(用于上方nav bar的"热门分类" "联机" "联名挑战赛")
|
|
1434
1434
|
* @param {SubjectAreaChannel} channel 频道
|
|
1435
1435
|
* @param {Partial<PageArgs<"campaignResourceId" | T>>} pageArgs_ 分页参数
|
|
1436
1436
|
* @returns {Promise<Res>} 学科区分页数据
|
|
1437
1437
|
*/
|
|
1438
|
-
declare function getSubjectAreaPageByChannel<T extends string>(channel: SubjectAreaChannel, pageArgs_?: Partial<PageArgs<"campaignResourceId" | T>>): Promise<Res$
|
|
1438
|
+
declare function getSubjectAreaPageByChannel<T extends string>(channel: SubjectAreaChannel, pageArgs_?: Partial<PageArgs<"campaignResourceId" | T>>): Promise<Res$1o>;
|
|
1439
1439
|
|
|
1440
1440
|
type SubjectAreaModuleComponent = {
|
|
1441
1441
|
data: {
|
|
@@ -1494,16 +1494,16 @@ type SubjectAreaItem = {
|
|
|
1494
1494
|
title: string;
|
|
1495
1495
|
visibleFor: string[];
|
|
1496
1496
|
};
|
|
1497
|
-
type Res$
|
|
1497
|
+
type Res$1n = PagesRes<SubjectAreaItem>;
|
|
1498
1498
|
/**
|
|
1499
1499
|
* 分页获取主页推荐列表
|
|
1500
1500
|
* @param {SubjectAreaScene} scene 场景
|
|
1501
1501
|
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1502
1502
|
* @returns {Promise<Res>} 主页推荐分页数据
|
|
1503
1503
|
*/
|
|
1504
|
-
declare function getSubjectAreaPage<T extends string>(scene: SubjectAreaScene, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$
|
|
1504
|
+
declare function getSubjectAreaPage<T extends string>(scene: SubjectAreaScene, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1n>;
|
|
1505
1505
|
|
|
1506
|
-
type Res$
|
|
1506
|
+
type Res$1m = {
|
|
1507
1507
|
accountOid: MongoDBId;
|
|
1508
1508
|
accountType: AccountTypes;
|
|
1509
1509
|
approvedContent: null | string;
|
|
@@ -1523,23 +1523,23 @@ type Res$1j = {
|
|
|
1523
1523
|
* 获取当前用户学习社区成员详情
|
|
1524
1524
|
* @returns {Promise<Res>} 我的社区成员详情
|
|
1525
1525
|
*/
|
|
1526
|
-
declare function getStudyCommunityMemberDetail(): Promise<Res$
|
|
1526
|
+
declare function getStudyCommunityMemberDetail(): Promise<Res$1m>;
|
|
1527
1527
|
|
|
1528
|
-
type Res$
|
|
1528
|
+
type Res$1l = StudentFollowerStats;
|
|
1529
1529
|
/**
|
|
1530
1530
|
* 获取学生统计数据(关注数、粉丝数)
|
|
1531
1531
|
* @param {MongoDBId} studentOid 学生id
|
|
1532
1532
|
* @returns {Promise<Res>} 统计数据
|
|
1533
1533
|
*/
|
|
1534
|
-
declare function getStudentStats(studentOid: MongoDBId): Promise<Res$
|
|
1534
|
+
declare function getStudentStats(studentOid: MongoDBId): Promise<Res$1l>;
|
|
1535
1535
|
|
|
1536
|
-
type Res$
|
|
1536
|
+
type Res$1k = StudentListItem[];
|
|
1537
1537
|
/**
|
|
1538
1538
|
* 根据学生OID列表获取学生信息列表(这个会返回一堆null,不建议使用)
|
|
1539
1539
|
* @param {MongoDBId[]} studentOids 学生OID列表
|
|
1540
1540
|
* @returns {Promise<Res>} 学生信息列表
|
|
1541
1541
|
*/
|
|
1542
|
-
declare function getStudentsList(studentOids: MongoDBId[]): Promise<Res$
|
|
1542
|
+
declare function getStudentsList(studentOids: MongoDBId[]): Promise<Res$1k>;
|
|
1543
1543
|
|
|
1544
1544
|
interface SessionArea {
|
|
1545
1545
|
city: string;
|
|
@@ -1560,7 +1560,7 @@ interface StudentSession {
|
|
|
1560
1560
|
ip: string;
|
|
1561
1561
|
lastAccessTime: number;
|
|
1562
1562
|
}
|
|
1563
|
-
interface LoginSession<Extra = string> {
|
|
1563
|
+
interface LoginSession<Extra = string, Token = string> {
|
|
1564
1564
|
accountId: -1;
|
|
1565
1565
|
accountObjectId: MongoDBId;
|
|
1566
1566
|
accountType: AccountTypes;
|
|
@@ -1574,26 +1574,26 @@ interface LoginSession<Extra = string> {
|
|
|
1574
1574
|
orgId: "";
|
|
1575
1575
|
scene: null;
|
|
1576
1576
|
status: "ENABLED";
|
|
1577
|
-
token:
|
|
1577
|
+
token: Token;
|
|
1578
1578
|
urlEncodedFullName: null;
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
|
-
type session_LoginSession<Extra = string> = LoginSession<Extra>;
|
|
1581
|
+
type session_LoginSession<Extra = string, Token = string> = LoginSession<Extra, Token>;
|
|
1582
1582
|
type session_SessionArea = SessionArea;
|
|
1583
1583
|
type session_StudentSession = StudentSession;
|
|
1584
1584
|
declare namespace session {
|
|
1585
1585
|
export type { session_LoginSession as LoginSession, session_SessionArea as SessionArea, session_StudentSession as StudentSession };
|
|
1586
1586
|
}
|
|
1587
1587
|
|
|
1588
|
-
type Res$
|
|
1588
|
+
type Res$1j = PagesRes<StudentSession>;
|
|
1589
1589
|
/**
|
|
1590
1590
|
* 获取学生登录会话列表
|
|
1591
1591
|
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1592
1592
|
* @returns {Promise<Res>} 会话列表分页数据
|
|
1593
1593
|
*/
|
|
1594
|
-
declare function getStudentSessions<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$
|
|
1594
|
+
declare function getStudentSessions<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1j>;
|
|
1595
1595
|
|
|
1596
|
-
type Res$
|
|
1596
|
+
type Res$1i = StudentSelfDetail;
|
|
1597
1597
|
/**
|
|
1598
1598
|
* 获取当前登录学生的详细信息
|
|
1599
1599
|
* @param {boolean} needGrade 是否需要年级信息
|
|
@@ -1601,17 +1601,17 @@ type Res$1f = StudentSelfDetail;
|
|
|
1601
1601
|
* @param {StudentSelfDetailFields[]} fields 需要返回的字段列表
|
|
1602
1602
|
* @returns {Promise<Res>} 当前学生详情
|
|
1603
1603
|
*/
|
|
1604
|
-
declare function getStudentSelfDetail(needGrade: boolean, needExtraInfo: boolean, fields: StudentSelfDetailFields[]): Promise<Res$
|
|
1604
|
+
declare function getStudentSelfDetail(needGrade: boolean, needExtraInfo: boolean, fields: StudentSelfDetailFields[]): Promise<Res$1i>;
|
|
1605
1605
|
|
|
1606
|
-
type Res$
|
|
1606
|
+
type Res$1h = StudentProfile;
|
|
1607
1607
|
/**
|
|
1608
1608
|
* 获取学生个人主页资料
|
|
1609
1609
|
* @param {MongoDBId} studentOid 学生id
|
|
1610
1610
|
* @returns {Promise<Res>} 学生资料
|
|
1611
1611
|
*/
|
|
1612
|
-
declare function getStudentProfile(studentOid: MongoDBId): Promise<Res$
|
|
1612
|
+
declare function getStudentProfile(studentOid: MongoDBId): Promise<Res$1h>;
|
|
1613
1613
|
|
|
1614
|
-
type Res$
|
|
1614
|
+
type Res$1g = {
|
|
1615
1615
|
lastActiveAt: number;
|
|
1616
1616
|
};
|
|
1617
1617
|
/**
|
|
@@ -1619,9 +1619,9 @@ type Res$1d = {
|
|
|
1619
1619
|
* @param {MongoDBId} studentOid 学生id
|
|
1620
1620
|
* @returns {Promise<Res>} 最后活跃时间数据
|
|
1621
1621
|
*/
|
|
1622
|
-
declare function getStudentLastActiveAt(studentOid: MongoDBId): Promise<Res$
|
|
1622
|
+
declare function getStudentLastActiveAt(studentOid: MongoDBId): Promise<Res$1g>;
|
|
1623
1623
|
|
|
1624
|
-
type Res$
|
|
1624
|
+
type Res$1f = PagesRes<StudentSimple & {
|
|
1625
1625
|
operatorFollowingStatus: "FOLLOWED" | "BOTH_FOLLOWED";
|
|
1626
1626
|
}>;
|
|
1627
1627
|
/**
|
|
@@ -1630,19 +1630,19 @@ type Res$1c = PagesRes<StudentSimple & {
|
|
|
1630
1630
|
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1631
1631
|
* @returns {Promise<Res>} 关注列表分页
|
|
1632
1632
|
*/
|
|
1633
|
-
declare function getStudentFollowingPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$
|
|
1633
|
+
declare function getStudentFollowingPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1f>;
|
|
1634
1634
|
|
|
1635
1635
|
/**
|
|
1636
1636
|
* 用户是否在我的黑名单中
|
|
1637
1637
|
*/
|
|
1638
1638
|
type BlockStatus = "NOT_BLOCKED" | "BLOCKING";
|
|
1639
|
-
type Res$
|
|
1639
|
+
type Res$1e = BlockStatus;
|
|
1640
1640
|
/**
|
|
1641
1641
|
* 获取特定用户黑名单状态
|
|
1642
1642
|
* @param {MongoDBId} studentOid 学生id
|
|
1643
1643
|
* @returns {Promise<Res>} 封禁状态
|
|
1644
1644
|
*/
|
|
1645
|
-
declare function getStudentBlockStatus(studentOid: MongoDBId): Promise<Res$
|
|
1645
|
+
declare function getStudentBlockStatus(studentOid: MongoDBId): Promise<Res$1e>;
|
|
1646
1646
|
|
|
1647
1647
|
type BlockRecord = {
|
|
1648
1648
|
createdAt: number;
|
|
@@ -1651,13 +1651,13 @@ type BlockRecord = {
|
|
|
1651
1651
|
reason: string;
|
|
1652
1652
|
studentOid: MongoDBId;
|
|
1653
1653
|
};
|
|
1654
|
-
type Res$
|
|
1654
|
+
type Res$1d = PagesRes<BlockRecord>;
|
|
1655
1655
|
/**
|
|
1656
1656
|
* 获取学生封禁记录列表
|
|
1657
1657
|
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1658
1658
|
* @returns {Promise<Res>} 封禁记录分页数据
|
|
1659
1659
|
*/
|
|
1660
|
-
declare function getStudentBlockRecordList<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$
|
|
1660
|
+
declare function getStudentBlockRecordList<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1d>;
|
|
1661
1661
|
|
|
1662
1662
|
type BlockActionRecord = {
|
|
1663
1663
|
action: "BLOCK";
|
|
@@ -1677,21 +1677,21 @@ type BlockActionRecord = {
|
|
|
1677
1677
|
relatedEntityType: AccountTypes;
|
|
1678
1678
|
updatedAt: number;
|
|
1679
1679
|
};
|
|
1680
|
-
type Res$
|
|
1680
|
+
type Res$1c = BlockActionRecord | null;
|
|
1681
1681
|
/**
|
|
1682
1682
|
* 获取特定用户黑名单详细信息
|
|
1683
1683
|
* @param {MongoDBId} studentOid 学生id
|
|
1684
1684
|
* @returns {Promise<Res>} 封禁状态
|
|
1685
1685
|
*/
|
|
1686
|
-
declare function getStudentBlockRecordDetail(studentOid: MongoDBId): Promise<Res$
|
|
1686
|
+
declare function getStudentBlockRecordDetail(studentOid: MongoDBId): Promise<Res$1c>;
|
|
1687
1687
|
|
|
1688
|
-
type Res$
|
|
1688
|
+
type Res$1b = number;
|
|
1689
1689
|
/**
|
|
1690
1690
|
* 获取动态未读消息数
|
|
1691
1691
|
* @param {MongoDBId} studentOid 学生id
|
|
1692
1692
|
* @returns {Promise<number>} 未读消息数
|
|
1693
1693
|
*/
|
|
1694
|
-
declare function getSpreadFeedUnreadCount(studentOid: MongoDBId): Promise<Res$
|
|
1694
|
+
declare function getSpreadFeedUnreadCount(studentOid: MongoDBId): Promise<Res$1b>;
|
|
1695
1695
|
|
|
1696
1696
|
type SplitRuleItem = {
|
|
1697
1697
|
authority: TeamMemberAuthority;
|
|
@@ -1711,13 +1711,13 @@ type SplitRuleItem = {
|
|
|
1711
1711
|
role: string;
|
|
1712
1712
|
userOid: MongoDBId;
|
|
1713
1713
|
};
|
|
1714
|
-
type Res$
|
|
1714
|
+
type Res$1a = SplitRuleItem[];
|
|
1715
1715
|
/**
|
|
1716
1716
|
* 获取作品协作者智能合约分成规则详情
|
|
1717
1717
|
* @param {MongoDBId} creationOid 作品id
|
|
1718
1718
|
* @returns {Promise<Res>} 分成规则列表
|
|
1719
1719
|
*/
|
|
1720
|
-
declare function getSplitRuleDetail(creationOid: MongoDBId): Promise<Res$
|
|
1720
|
+
declare function getSplitRuleDetail(creationOid: MongoDBId): Promise<Res$1a>;
|
|
1721
1721
|
|
|
1722
1722
|
type SmartContractBizType = "CREATION";
|
|
1723
1723
|
type SmartContractRule = {
|
|
@@ -1754,16 +1754,16 @@ type SmartCoinContract = {
|
|
|
1754
1754
|
type: "GENERAL";
|
|
1755
1755
|
updatedAt: number;
|
|
1756
1756
|
};
|
|
1757
|
-
type Res$
|
|
1757
|
+
type Res$19 = SmartCoinContract[];
|
|
1758
1758
|
/**
|
|
1759
1759
|
* 列出作品中的智能金币合约
|
|
1760
1760
|
* @param {MongoDBId} bizId 业务ID(如作品OID)
|
|
1761
1761
|
* @param {SmartContractBizType} bizType 业务类型,CREATION
|
|
1762
1762
|
* @returns {Promise<Res>} 智能合约列表
|
|
1763
1763
|
*/
|
|
1764
|
-
declare function getSmartContractList(bizId: MongoDBId, bizType?: SmartContractBizType): Promise<Res$
|
|
1764
|
+
declare function getSmartContractList(bizId: MongoDBId, bizType?: SmartContractBizType): Promise<Res$19>;
|
|
1765
1765
|
|
|
1766
|
-
type Res$
|
|
1766
|
+
type Res$18 = {
|
|
1767
1767
|
accountId: MongoDBId;
|
|
1768
1768
|
bizId: MongoDBId;
|
|
1769
1769
|
bizType: SmartContractBizType;
|
|
@@ -1780,9 +1780,9 @@ type Res$15 = {
|
|
|
1780
1780
|
* @param {number} id 合约 ID
|
|
1781
1781
|
* @returns {Promise<Res>} 合约详情
|
|
1782
1782
|
*/
|
|
1783
|
-
declare function getSmartContractDetail(id: number): Promise<Res$
|
|
1783
|
+
declare function getSmartContractDetail(id: number): Promise<Res$18>;
|
|
1784
1784
|
|
|
1785
|
-
type Res$
|
|
1785
|
+
type Res$17 = {
|
|
1786
1786
|
balance: number;
|
|
1787
1787
|
};
|
|
1788
1788
|
/**
|
|
@@ -1790,33 +1790,33 @@ type Res$14 = {
|
|
|
1790
1790
|
* @param {number} id 合约 ID
|
|
1791
1791
|
* @returns {Promise<Res>} 合约账户余额
|
|
1792
1792
|
*/
|
|
1793
|
-
declare function getSmartContractAccount(id: number): Promise<Res$
|
|
1793
|
+
declare function getSmartContractAccount(id: number): Promise<Res$17>;
|
|
1794
1794
|
|
|
1795
|
-
type Res$
|
|
1795
|
+
type Res$16 = string[];
|
|
1796
1796
|
/**
|
|
1797
1797
|
* 获取搜索热词
|
|
1798
1798
|
* @param {number} length 热词数量
|
|
1799
1799
|
* @returns {Promise<Res>} 热词列表
|
|
1800
1800
|
*/
|
|
1801
|
-
declare function getSearchHotWords(length: number): Promise<Res$
|
|
1801
|
+
declare function getSearchHotWords(length: number): Promise<Res$16>;
|
|
1802
1802
|
|
|
1803
|
-
type Res$
|
|
1803
|
+
type Res$15 = PagesRes<ReputationScoreLog>;
|
|
1804
1804
|
/**
|
|
1805
1805
|
* 获取学生信誉分记录
|
|
1806
1806
|
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1807
1807
|
* @returns {Promise<Res>} 信誉分记录分页数据
|
|
1808
1808
|
*/
|
|
1809
|
-
declare function getReputationScoreLog<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$
|
|
1809
|
+
declare function getReputationScoreLog<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$15>;
|
|
1810
1810
|
|
|
1811
1811
|
type SortField$7 = "createdAt" | "likeCount" | "viewCount" | "updatedAt" | "commentCount";
|
|
1812
|
-
type Res$
|
|
1812
|
+
type Res$14 = PagesRes<CreationSimple>;
|
|
1813
1813
|
/**
|
|
1814
1814
|
* 根据原作品id获取改编作品分页列表
|
|
1815
1815
|
* @param {MongoDBId[]} originCreationOids 原作品id列表
|
|
1816
1816
|
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
1817
1817
|
* @returns {Promise<Res>} 改编作品分页结果
|
|
1818
1818
|
*/
|
|
1819
|
-
declare function getRemixedCreationPage<T extends string>(originCreationOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$7 | T>>): Promise<Res$
|
|
1819
|
+
declare function getRemixedCreationPage<T extends string>(originCreationOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$7 | T>>): Promise<Res$14>;
|
|
1820
1820
|
|
|
1821
1821
|
type HashTagCreationRank = "ORDINARY";
|
|
1822
1822
|
type HashTagCreationStatus$1 = CreationStatus;
|
|
@@ -1900,12 +1900,12 @@ declare namespace hashTag {
|
|
|
1900
1900
|
export type { hashTag_HashTag as HashTag, hashTag_HashTagCreationRank as HashTagCreationRank, hashTag_HashTagCreationRelation as HashTagCreationRelation, HashTagCreationStatus$1 as HashTagCreationStatus, hashTag_HashTagFavorite as HashTagFavorite, hashTag_HashTagFollowingStatus as HashTagFollowingStatus, hashTag_HashTagMemberSimple as HashTagMemberSimple, hashTag_HashTagStatus as HashTagStatus, hashTag_HashTagType as HashTagType };
|
|
1901
1901
|
}
|
|
1902
1902
|
|
|
1903
|
-
type Res$
|
|
1903
|
+
type Res$13 = HashTag[];
|
|
1904
1904
|
/**
|
|
1905
1905
|
* 获取推荐星球列表
|
|
1906
1906
|
* @returns {Promise<Res>} 推荐星球列表
|
|
1907
1907
|
*/
|
|
1908
|
-
declare function getRecommendHashTags(): Promise<Res$
|
|
1908
|
+
declare function getRecommendHashTags(): Promise<Res$13>;
|
|
1909
1909
|
|
|
1910
1910
|
type CreatorType = "EXCELLENT" | "POTENTIAL";
|
|
1911
1911
|
type RecommendCreator = {
|
|
@@ -1920,31 +1920,31 @@ type RecommendCreator = {
|
|
|
1920
1920
|
name: string;
|
|
1921
1921
|
studentOid: MongoDBId;
|
|
1922
1922
|
};
|
|
1923
|
-
type Res
|
|
1923
|
+
type Res$12 = RecommendCreator[];
|
|
1924
1924
|
/**
|
|
1925
1925
|
* 获取社区推荐创作者列表
|
|
1926
1926
|
* @param {number} excellentCount 精选创作者数量
|
|
1927
1927
|
* @param {number} potentialCount 潜力创作者数量
|
|
1928
1928
|
* @returns {Promise<Res>} 推荐创作者列表
|
|
1929
1929
|
*/
|
|
1930
|
-
declare function getRecommendCreators(excellentCount?: number, potentialCount?: number): Promise<Res
|
|
1930
|
+
declare function getRecommendCreators(excellentCount?: number, potentialCount?: number): Promise<Res$12>;
|
|
1931
1931
|
|
|
1932
1932
|
type SortField$6 = "createdAt" | "likeCount" | "viewCount";
|
|
1933
|
-
type Res$
|
|
1933
|
+
type Res$11 = PagesRes<CreationSimple>;
|
|
1934
1934
|
/**
|
|
1935
1935
|
* 获取推荐作品列表
|
|
1936
1936
|
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
1937
1937
|
* @returns {Promise<Res>} 作品分页结果
|
|
1938
1938
|
*/
|
|
1939
|
-
declare function getRecommendCreations<T extends string>(num: number, pageArgs_?: Partial<PageArgs<SortField$6 | T>>): Promise<Res$
|
|
1939
|
+
declare function getRecommendCreations<T extends string>(num: number, pageArgs_?: Partial<PageArgs<SortField$6 | T>>): Promise<Res$11>;
|
|
1940
1940
|
|
|
1941
|
-
type Res$
|
|
1941
|
+
type Res$10 = CreationSimple[];
|
|
1942
1942
|
/**
|
|
1943
1943
|
* 获取潜力作品列表
|
|
1944
1944
|
* @param {number} num 数量
|
|
1945
1945
|
* @returns {Promise<CreationSimple[]>} 作品列表
|
|
1946
1946
|
*/
|
|
1947
|
-
declare function getPotentialCreations(num: number): Promise<Res$
|
|
1947
|
+
declare function getPotentialCreations(num: number): Promise<Res$10>;
|
|
1948
1948
|
|
|
1949
1949
|
type PostTag = {
|
|
1950
1950
|
name: string;
|
|
@@ -1960,7 +1960,7 @@ type PostAuthor = {
|
|
|
1960
1960
|
name: string;
|
|
1961
1961
|
oid: MongoDBId;
|
|
1962
1962
|
};
|
|
1963
|
-
type Res
|
|
1963
|
+
type Res$$ = {
|
|
1964
1964
|
author: PostAuthor;
|
|
1965
1965
|
authorOid: MongoDBId;
|
|
1966
1966
|
collectCount: null | number;
|
|
@@ -1990,17 +1990,17 @@ type Res$Y = {
|
|
|
1990
1990
|
* @param {string} slug 帖子slug
|
|
1991
1991
|
* @returns {Promise<Res>} 帖子详情
|
|
1992
1992
|
*/
|
|
1993
|
-
declare function getPostDetail(slug: string): Promise<Res
|
|
1993
|
+
declare function getPostDetail(slug: string): Promise<Res$$>;
|
|
1994
1994
|
|
|
1995
|
-
type Res$
|
|
1995
|
+
type Res$_ = HashTagCreationRelation[];
|
|
1996
1996
|
/**
|
|
1997
1997
|
* 获取作品所在星球列表
|
|
1998
1998
|
* @param {MongoDBId} creationOid 作品ID
|
|
1999
1999
|
* @returns {Promise<Res>} 星球列表
|
|
2000
2000
|
*/
|
|
2001
|
-
declare function getPlanetsOfCreation(creationOid: MongoDBId): Promise<Res$
|
|
2001
|
+
declare function getPlanetsOfCreation(creationOid: MongoDBId): Promise<Res$_>;
|
|
2002
2002
|
|
|
2003
|
-
type Res$
|
|
2003
|
+
type Res$Z = {
|
|
2004
2004
|
internalCurrencyBalance: number;
|
|
2005
2005
|
topUpCurrencyBalance: number;
|
|
2006
2006
|
withdrawCurrencyBalance: number;
|
|
@@ -2009,10 +2009,10 @@ type Res$W = {
|
|
|
2009
2009
|
* 获取个人金币信息
|
|
2010
2010
|
* @returns {Promise<Res>} 账户金币余额信息
|
|
2011
2011
|
*/
|
|
2012
|
-
declare function getPersonalCurrencyAccount(): Promise<Res$
|
|
2012
|
+
declare function getPersonalCurrencyAccount(): Promise<Res$Z>;
|
|
2013
2013
|
|
|
2014
2014
|
type SortField$5 = "updatedAt" | "createdAt";
|
|
2015
|
-
type Res$
|
|
2015
|
+
type Res$Y = PagesRes<CreationSimple>;
|
|
2016
2016
|
/**
|
|
2017
2017
|
* 获取自己的作品分页列表
|
|
2018
2018
|
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
@@ -2020,7 +2020,7 @@ type Res$V = PagesRes<CreationSimple>;
|
|
|
2020
2020
|
* @param {ProjectStatus[]} statuses 作品状态过滤
|
|
2021
2021
|
* @returns {Promise<Res>} 自己的作品分页列表
|
|
2022
2022
|
*/
|
|
2023
|
-
declare function getOwnCreationPage<T extends string>(pageArgs_?: Partial<PageArgs<SortField$5 | T>>, statuses?: CreationStatus[], ignoreTypicalProject?: boolean): Promise<Res$
|
|
2023
|
+
declare function getOwnCreationPage<T extends string>(pageArgs_?: Partial<PageArgs<SortField$5 | T>>, statuses?: CreationStatus[], ignoreTypicalProject?: boolean): Promise<Res$Y>;
|
|
2024
2024
|
|
|
2025
2025
|
type SubjectType$1 = "POST" | "CREATION" | "EXTENSION" | "PROFILE" | "SOCIETY" | "ACTIVITY" | string;
|
|
2026
2026
|
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;
|
|
@@ -2245,22 +2245,22 @@ declare namespace notification {
|
|
|
2245
2245
|
export { type notification_Notification as Notification, type notification_NotificationExtensionInfo as NotificationExtensionInfo, notification_NotificationGroup as NotificationGroup, type notification_NotificationSenderInfo as NotificationSenderInfo, type notification_NotificationStats as NotificationStats };
|
|
2246
2246
|
}
|
|
2247
2247
|
|
|
2248
|
-
type Res$
|
|
2248
|
+
type Res$X = NotificationStats;
|
|
2249
2249
|
/**
|
|
2250
2250
|
* 获取通知统计
|
|
2251
2251
|
* @param {boolean} countAll 是否统计全部
|
|
2252
2252
|
* @returns {Promise<Res>} 通知统计数据
|
|
2253
2253
|
*/
|
|
2254
|
-
declare function getNotificationStats(countAll?: boolean): Promise<Res$
|
|
2254
|
+
declare function getNotificationStats(countAll?: boolean): Promise<Res$X>;
|
|
2255
2255
|
|
|
2256
|
-
type Res$
|
|
2256
|
+
type Res$W = PagesRes<Notification>;
|
|
2257
2257
|
/**
|
|
2258
2258
|
* 分页获取通知列表
|
|
2259
2259
|
* @param {NotificationGroup} notifyGroup 通知分组
|
|
2260
2260
|
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
2261
2261
|
* @returns {Promise<Res>} 分页通知数据
|
|
2262
2262
|
*/
|
|
2263
|
-
declare function getNotificationPage<T extends string>(notifyGroup?: NotificationGroup, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$
|
|
2263
|
+
declare function getNotificationPage<T extends string>(notifyGroup?: NotificationGroup, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$W>;
|
|
2264
2264
|
|
|
2265
2265
|
type NotifyMessage = {
|
|
2266
2266
|
/** @example message = '由于包含广告或垃圾信息,已被管理员删除!' */
|
|
@@ -2268,12 +2268,12 @@ type NotifyMessage = {
|
|
|
2268
2268
|
/** @example title = '广告或垃圾信息' */
|
|
2269
2269
|
title: string;
|
|
2270
2270
|
};
|
|
2271
|
-
type Res$
|
|
2271
|
+
type Res$V = NotifyMessage[];
|
|
2272
2272
|
/**
|
|
2273
2273
|
* 获取通知删除原因列表
|
|
2274
2274
|
* @returns {Promise<Res>} 消息删除原因列表
|
|
2275
2275
|
*/
|
|
2276
|
-
declare function getNotifyDeleteReasons(): Promise<Res$
|
|
2276
|
+
declare function getNotifyDeleteReasons(): Promise<Res$V>;
|
|
2277
2277
|
|
|
2278
2278
|
/**
|
|
2279
2279
|
* PREPARED: 已完成,未领取
|
|
@@ -2293,16 +2293,16 @@ type TaskItem = {
|
|
|
2293
2293
|
status: TaskStatus;
|
|
2294
2294
|
type: TaskType;
|
|
2295
2295
|
};
|
|
2296
|
-
type Res$
|
|
2296
|
+
type Res$U = TaskItem[];
|
|
2297
2297
|
/**
|
|
2298
2298
|
* 获取我的任务列表
|
|
2299
2299
|
* @returns {Promise<Res>} 任务列表
|
|
2300
2300
|
*/
|
|
2301
|
-
declare function getMyTasks(): Promise<Res$
|
|
2301
|
+
declare function getMyTasks(): Promise<Res$U>;
|
|
2302
2302
|
|
|
2303
2303
|
type SortField$4 = "createdAt" | "lastPassedAt" | "lastSubmittedAt" | "lastPublishedAt" | string;
|
|
2304
2304
|
type HashTagCreationStatus = "PUBLISHED" | "SUBMITTED" | string;
|
|
2305
|
-
type Res$
|
|
2305
|
+
type Res$T = PagesRes<Creation, SortField$4>;
|
|
2306
2306
|
/**
|
|
2307
2307
|
* 获取当前用户提交到星球的作品列表
|
|
2308
2308
|
* @param {string} [excludeHashTag] 排除的星球标识符(名称)
|
|
@@ -2310,15 +2310,15 @@ type Res$Q = PagesRes<Creation, SortField$4>;
|
|
|
2310
2310
|
* @param {Partial<PageArgs<SortField | T>>} [pageArgs_] 分页参数
|
|
2311
2311
|
* @returns {Promise<Res>} 星球作品分页结果
|
|
2312
2312
|
*/
|
|
2313
|
-
declare function getMyHashTagCreations<T extends string>(excludeHashTag?: string, statuses?: HashTagCreationStatus[], pageArgs_?: Partial<PageArgs<SortField$4 | T>>): Promise<Res$
|
|
2313
|
+
declare function getMyHashTagCreations<T extends string>(excludeHashTag?: string, statuses?: HashTagCreationStatus[], pageArgs_?: Partial<PageArgs<SortField$4 | T>>): Promise<Res$T>;
|
|
2314
2314
|
|
|
2315
|
-
type Res$
|
|
2315
|
+
type Res$S = null;
|
|
2316
2316
|
/**
|
|
2317
2317
|
* 获取禁言用户详情
|
|
2318
2318
|
* @param {string} studentNumber 用户number(244373873)
|
|
2319
2319
|
* @returns {Promise<Res>} 禁言用户详情(null表示未禁言)
|
|
2320
2320
|
*/
|
|
2321
|
-
declare function getMutedUserDetail(studentNumber: string): Promise<Res$
|
|
2321
|
+
declare function getMutedUserDetail(studentNumber: string): Promise<Res$S>;
|
|
2322
2322
|
|
|
2323
2323
|
interface LockedUserDetail<IsLocked extends boolean> {
|
|
2324
2324
|
accountOid: IsLocked extends true ? MongoDBId : null;
|
|
@@ -2331,28 +2331,28 @@ interface LockedUserDetail<IsLocked extends boolean> {
|
|
|
2331
2331
|
unlocksAt: IsLocked extends true ? number : null;
|
|
2332
2332
|
updatedAt: IsLocked extends true ? number : null;
|
|
2333
2333
|
}
|
|
2334
|
-
type Res$
|
|
2334
|
+
type Res$R<IsLocked extends boolean> = LockedUserDetail<IsLocked>;
|
|
2335
2335
|
/**
|
|
2336
2336
|
* 获取被封禁用户详情
|
|
2337
2337
|
* @param {MongoDBId} accountOid 用户账户ID
|
|
2338
2338
|
* @returns {Promise<Res>} 被封禁用户详情
|
|
2339
2339
|
*/
|
|
2340
|
-
declare function getLockedUserDetail<IsLocked extends boolean = false>(accountOid: MongoDBId): Promise<Res$
|
|
2340
|
+
declare function getLockedUserDetail<IsLocked extends boolean = false>(accountOid: MongoDBId): Promise<Res$R<IsLocked>>;
|
|
2341
2341
|
|
|
2342
|
-
type Res$
|
|
2342
|
+
type Res$Q = LoadingTip;
|
|
2343
2343
|
/**
|
|
2344
2344
|
* 获取加载提示语
|
|
2345
2345
|
* @returns {Promise<LoadingTip>} 加载提示语
|
|
2346
2346
|
*/
|
|
2347
|
-
declare function getLoadingTips(): Promise<Res$
|
|
2347
|
+
declare function getLoadingTips(): Promise<Res$Q>;
|
|
2348
2348
|
|
|
2349
|
-
type Res$
|
|
2349
|
+
type Res$P = UserLikeDetail;
|
|
2350
2350
|
/**
|
|
2351
2351
|
* 获取用户是否曾给作品点赞及点赞动作
|
|
2352
2352
|
* @param {MongoDBId} creationOid 作品id
|
|
2353
2353
|
* @returns {Promise<UserLikeDetail>} 点赞详情
|
|
2354
2354
|
*/
|
|
2355
|
-
declare function getLikeDetail(creationOid: MongoDBId): Promise<Res$
|
|
2355
|
+
declare function getLikeDetail(creationOid: MongoDBId): Promise<Res$P>;
|
|
2356
2356
|
|
|
2357
2357
|
interface LeafletsItem {
|
|
2358
2358
|
advertisementId: number;
|
|
@@ -2367,29 +2367,29 @@ interface LeafletsItem {
|
|
|
2367
2367
|
name: string;
|
|
2368
2368
|
updatedAt: number;
|
|
2369
2369
|
}
|
|
2370
|
-
type Res$
|
|
2370
|
+
type Res$O = LeafletsItem[];
|
|
2371
2371
|
/**
|
|
2372
2372
|
* 获取消息中心上方广告横幅项目列表
|
|
2373
2373
|
* @param {number} advertisementId 广告ID
|
|
2374
2374
|
* @returns {Promise<Res>} 广告项目列表
|
|
2375
2375
|
*/
|
|
2376
|
-
declare function getLeafletsItemList(advertisementId: number): Promise<Res$
|
|
2376
|
+
declare function getLeafletsItemList(advertisementId: number): Promise<Res$O>;
|
|
2377
2377
|
|
|
2378
2378
|
interface HealthCheckItem {
|
|
2379
2379
|
name: string;
|
|
2380
2380
|
status: string;
|
|
2381
2381
|
traceId: string;
|
|
2382
2382
|
}
|
|
2383
|
-
type Res$
|
|
2383
|
+
type Res$N = HealthCheckItem[];
|
|
2384
2384
|
/**
|
|
2385
2385
|
* @deprecated 仅用于初始化axios
|
|
2386
2386
|
* health check接口
|
|
2387
2387
|
* @returns {Promise<Res>}
|
|
2388
2388
|
*/
|
|
2389
|
-
declare function
|
|
2389
|
+
declare function getHealthCheck(): Promise<Res$N>;
|
|
2390
2390
|
|
|
2391
2391
|
type SortField$3 = "createdAt" | "priority" | string;
|
|
2392
|
-
type Res$
|
|
2392
|
+
type Res$M = PagesRes<HashTag, SortField$3>;
|
|
2393
2393
|
/**
|
|
2394
2394
|
* 获取用户管理的星球列表
|
|
2395
2395
|
* @param {MongoDBId} studentOid 学生oid
|
|
@@ -2397,9 +2397,9 @@ type Res$J = PagesRes<HashTag, SortField$3>;
|
|
|
2397
2397
|
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
2398
2398
|
* @returns {Promise<Res>} 管理的星球分页结果
|
|
2399
2399
|
*/
|
|
2400
|
-
declare function getManagedHashTags<T extends string>(studentOid: MongoDBId, excludeHashTagIds?: number[], pageArgs_?: Partial<PageArgs<SortField$3 | T>>): Promise<Res$
|
|
2400
|
+
declare function getManagedHashTags<T extends string>(studentOid: MongoDBId, excludeHashTagIds?: number[], pageArgs_?: Partial<PageArgs<SortField$3 | T>>): Promise<Res$M>;
|
|
2401
2401
|
|
|
2402
|
-
type Res$
|
|
2402
|
+
type Res$L = PagesRes<Record<string, never>>;
|
|
2403
2403
|
/**
|
|
2404
2404
|
* 获取历史团队成员分页
|
|
2405
2405
|
* 不知道怎么用
|
|
@@ -2407,23 +2407,23 @@ type Res$I = PagesRes<Record<string, never>>;
|
|
|
2407
2407
|
* @param {Partial<PageArgs<string | T>>} pageArgs_ 分页参数
|
|
2408
2408
|
* @returns {Promise<Res>} 历史团队成员分页列表
|
|
2409
2409
|
*/
|
|
2410
|
-
declare function getHistoricalTeamMemberPage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<string | T>>): Promise<Res$
|
|
2410
|
+
declare function getHistoricalTeamMemberPage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<string | T>>): Promise<Res$L>;
|
|
2411
2411
|
|
|
2412
|
-
type Res$
|
|
2412
|
+
type Res$K = HashTagFavorite;
|
|
2413
2413
|
/**
|
|
2414
2414
|
* 获取星球收藏详情
|
|
2415
2415
|
* @param {number} hashTagId 星球ID
|
|
2416
2416
|
* @returns {Promise<Res>} 星球收藏详情
|
|
2417
2417
|
*/
|
|
2418
|
-
declare function getHashTagFavoriteDetail(hashTagId: number): Promise<Res$
|
|
2418
|
+
declare function getHashTagFavoriteDetail(hashTagId: number): Promise<Res$K>;
|
|
2419
2419
|
|
|
2420
|
-
type Res$
|
|
2420
|
+
type Res$J = HashTag;
|
|
2421
2421
|
/**
|
|
2422
2422
|
* 获取星球详情
|
|
2423
2423
|
* @param {string} identifier 星球标识符(名称)
|
|
2424
2424
|
* @returns {Promise<Res>} 星球详情
|
|
2425
2425
|
*/
|
|
2426
|
-
declare function getHashTagDetail(identifier: string): Promise<Res$
|
|
2426
|
+
declare function getHashTagDetail(identifier: string): Promise<Res$J>;
|
|
2427
2427
|
|
|
2428
2428
|
interface Emoji {
|
|
2429
2429
|
category: `${number}`;
|
|
@@ -2443,14 +2443,14 @@ interface Emoji {
|
|
|
2443
2443
|
status: "ENABLED";
|
|
2444
2444
|
updatedAt: number;
|
|
2445
2445
|
}
|
|
2446
|
-
type Res$
|
|
2446
|
+
type Res$I = Emoji[];
|
|
2447
2447
|
/**
|
|
2448
2448
|
* 获取所有表情包
|
|
2449
2449
|
* @returns {Promise<Res>} 表情包列表
|
|
2450
2450
|
*/
|
|
2451
|
-
declare function getAllEmojis(): Promise<Res$
|
|
2451
|
+
declare function getAllEmojis(): Promise<Res$I>;
|
|
2452
2452
|
|
|
2453
|
-
type Res$
|
|
2453
|
+
type Res$H = PagesRes<Emoji>;
|
|
2454
2454
|
type EmojiStatus = "ENABLED" | "PUBLISHED";
|
|
2455
2455
|
/**
|
|
2456
2456
|
* 分页获取表情包
|
|
@@ -2458,7 +2458,7 @@ type EmojiStatus = "ENABLED" | "PUBLISHED";
|
|
|
2458
2458
|
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
2459
2459
|
* @returns {Promise<Res>} 分页表情包数据
|
|
2460
2460
|
*/
|
|
2461
|
-
declare function getEmojiPage<T extends string>(status?: EmojiStatus, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$
|
|
2461
|
+
declare function getEmojiPage<T extends string>(status?: EmojiStatus, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$H>;
|
|
2462
2462
|
|
|
2463
2463
|
interface EmojiCategory {
|
|
2464
2464
|
createdAt: number;
|
|
@@ -2467,14 +2467,14 @@ interface EmojiCategory {
|
|
|
2467
2467
|
name: string;
|
|
2468
2468
|
updatedAt: number;
|
|
2469
2469
|
}
|
|
2470
|
-
type Res$
|
|
2470
|
+
type Res$G = EmojiCategory[];
|
|
2471
2471
|
/**
|
|
2472
2472
|
* 获取表情包分类列表
|
|
2473
2473
|
* @returns {Promise<Res>} 表情包分类列表
|
|
2474
2474
|
*/
|
|
2475
|
-
declare function getEmojiCategoryList(): Promise<Res$
|
|
2475
|
+
declare function getEmojiCategoryList(): Promise<Res$G>;
|
|
2476
2476
|
|
|
2477
|
-
type Res$
|
|
2477
|
+
type Res$F = {
|
|
2478
2478
|
avatar: CNameOssUrl;
|
|
2479
2479
|
isFollowing: boolean;
|
|
2480
2480
|
name: string;
|
|
@@ -2486,17 +2486,17 @@ type Res$C = {
|
|
|
2486
2486
|
* @param {MongoDBId} userOid 目标用户 OID
|
|
2487
2487
|
* @returns {Promise<Res>} 关注状态及用户信息
|
|
2488
2488
|
*/
|
|
2489
|
-
declare function getConnectCommunityFollowingStatus(playingCreationOid: MongoDBId, userOid: MongoDBId): Promise<Res$
|
|
2489
|
+
declare function getConnectCommunityFollowingStatus(playingCreationOid: MongoDBId, userOid: MongoDBId): Promise<Res$F>;
|
|
2490
2490
|
|
|
2491
|
-
type Res$
|
|
2491
|
+
type Res$E = CreationSimple[];
|
|
2492
2492
|
/**
|
|
2493
2493
|
* 获取精选作品列表
|
|
2494
2494
|
* @param {number} num 数量
|
|
2495
2495
|
* @returns {Promise<CreationSimple[]>} 作品列表
|
|
2496
2496
|
*/
|
|
2497
|
-
declare function getExcellentCreations(num: number): Promise<Res$
|
|
2497
|
+
declare function getExcellentCreations(num: number): Promise<Res$E>;
|
|
2498
2498
|
|
|
2499
|
-
type Res$
|
|
2499
|
+
type Res$D = {
|
|
2500
2500
|
curUserDonatedRecord: null | DonatedRecord;
|
|
2501
2501
|
rankingList: PagesRes<DonatedRecord>;
|
|
2502
2502
|
totalBucks: null | number;
|
|
@@ -2507,59 +2507,59 @@ type Res$A = {
|
|
|
2507
2507
|
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
2508
2508
|
* @returns {Promise<Res>} 投币排行数据
|
|
2509
2509
|
*/
|
|
2510
|
-
declare function getDonatedRecordRanking<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$
|
|
2510
|
+
declare function getDonatedRecordRanking<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$D>;
|
|
2511
2511
|
|
|
2512
|
-
type Res$
|
|
2512
|
+
type Res$C = CreatorScore;
|
|
2513
2513
|
/**
|
|
2514
2514
|
* 获取当前学生创作分
|
|
2515
2515
|
* @returns {Promise<Res>} 创作分信息
|
|
2516
2516
|
*/
|
|
2517
|
-
declare function getCreatorScore(): Promise<Res$
|
|
2517
|
+
declare function getCreatorScore(): Promise<Res$C>;
|
|
2518
2518
|
|
|
2519
|
-
type Res$
|
|
2519
|
+
type Res$B = CreationTag[];
|
|
2520
2520
|
/**
|
|
2521
2521
|
* 获取作品标签列表 例如 https://www.ccw.site/pages/tags/anime
|
|
2522
2522
|
* @returns {Promise<CreationTag[]>} 标签列表
|
|
2523
2523
|
*/
|
|
2524
|
-
declare function getCreationTags(): Promise<Res$
|
|
2524
|
+
declare function getCreationTags(): Promise<Res$B>;
|
|
2525
2525
|
|
|
2526
|
-
type Res$
|
|
2526
|
+
type Res$A = Student;
|
|
2527
2527
|
/**
|
|
2528
2528
|
* 获取学生详情
|
|
2529
2529
|
* @param {MongoDBId} studentOid 学生id
|
|
2530
2530
|
* @returns {Promise<Student>} 学生详情
|
|
2531
2531
|
*/
|
|
2532
|
-
declare function getCreationStudentDetail(studentOid: MongoDBId): Promise<Res$
|
|
2532
|
+
declare function getCreationStudentDetail(studentOid: MongoDBId): Promise<Res$A>;
|
|
2533
2533
|
|
|
2534
|
-
type Res$
|
|
2534
|
+
type Res$z = PagesRes<CreationScreenshot>;
|
|
2535
2535
|
/**
|
|
2536
2536
|
* 获取作品截图分页
|
|
2537
2537
|
* @param {MongoDBId} subjectOid 作品id
|
|
2538
2538
|
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
2539
2539
|
* @returns {Promise<Res>} 分页截图列表
|
|
2540
2540
|
*/
|
|
2541
|
-
declare function getCreationScreenshotPage<T extends string>(subjectOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$
|
|
2541
|
+
declare function getCreationScreenshotPage<T extends string>(subjectOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$z>;
|
|
2542
2542
|
|
|
2543
2543
|
type SortField$2 = "submittedAt";
|
|
2544
|
-
type Res$
|
|
2544
|
+
type Res$y = PagesRes<CreationRelease>;
|
|
2545
2545
|
/**
|
|
2546
2546
|
* 获取作品发布记录分页
|
|
2547
2547
|
* @param {MongoDBId} creationOid 作品id
|
|
2548
2548
|
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
2549
2549
|
* @returns {Promise<Res>} 发布记录分页列表
|
|
2550
2550
|
*/
|
|
2551
|
-
declare function getCreationReleasePage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<SortField$2 | T>>): Promise<Res$
|
|
2551
|
+
declare function getCreationReleasePage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<SortField$2 | T>>): Promise<Res$y>;
|
|
2552
2552
|
|
|
2553
|
-
type Res$
|
|
2553
|
+
type Res$x = [];
|
|
2554
2554
|
/**
|
|
2555
2555
|
* 获取作品推荐位置列表
|
|
2556
2556
|
* @deprecated 此接口不可用,请使用 `getRecommendCreations` from `src/community-web/creation/recommend.ts`
|
|
2557
2557
|
* @param {MongoDBId} creationOid 作品id
|
|
2558
2558
|
* @returns {Promise<Res>} 推荐位置列表,因为不知道什么bug,固定为[]
|
|
2559
2559
|
*/
|
|
2560
|
-
declare function getCreationRecommendPositionList(creationOid: MongoDBId): Promise<Res$
|
|
2560
|
+
declare function getCreationRecommendPositionList(creationOid: MongoDBId): Promise<Res$x>;
|
|
2561
2561
|
|
|
2562
|
-
type Res$
|
|
2562
|
+
type Res$w = {
|
|
2563
2563
|
interactionStatus: boolean;
|
|
2564
2564
|
oid: MongoDBId;
|
|
2565
2565
|
title: string;
|
|
@@ -2570,32 +2570,33 @@ type Res$t = {
|
|
|
2570
2570
|
* @param {MongoDBId} creationOid 目标作品 OID
|
|
2571
2571
|
* @returns {Promise<Res>} 点赞状态及作品信息
|
|
2572
2572
|
*/
|
|
2573
|
-
declare function getConnectCommunityCreationLikeStatus(playingCreationOid: MongoDBId, creationOid: MongoDBId): Promise<Res$
|
|
2573
|
+
declare function getConnectCommunityCreationLikeStatus(playingCreationOid: MongoDBId, creationOid: MongoDBId): Promise<Res$w>;
|
|
2574
2574
|
|
|
2575
|
-
type Res$
|
|
2575
|
+
type Res$v = Creation;
|
|
2576
2576
|
/**
|
|
2577
2577
|
* 获取用户代表作
|
|
2578
2578
|
* @param {MongoDBId} studentOid 学生id
|
|
2579
2579
|
* @returns {Promise<Creation>} 作品详情
|
|
2580
2580
|
*/
|
|
2581
|
-
declare function getCreationIntroduction(studentOid: MongoDBId): Promise<Res$
|
|
2581
|
+
declare function getCreationIntroduction(studentOid: MongoDBId): Promise<Res$v>;
|
|
2582
2582
|
|
|
2583
|
-
type Res$
|
|
2583
|
+
type Res$u = null | FavoriteDetail;
|
|
2584
2584
|
/**
|
|
2585
2585
|
* 获取作品收藏详情(需要登录)
|
|
2586
2586
|
* @param {MongoDBId} creationOid 作品id
|
|
2587
2587
|
* @returns {Promise<Res>} 收藏详情(未收藏返回null)
|
|
2588
2588
|
*/
|
|
2589
|
-
declare function getCreationFavoriteDetail(creationOid: MongoDBId): Promise<Res$
|
|
2589
|
+
declare function getCreationFavoriteDetail(creationOid: MongoDBId): Promise<Res$u>;
|
|
2590
2590
|
|
|
2591
|
-
type Res$
|
|
2591
|
+
type Res$t = Creation;
|
|
2592
2592
|
/**
|
|
2593
2593
|
* 获取作品详情
|
|
2594
2594
|
* @param {MongoDBId} oid 作品id
|
|
2595
2595
|
* @param {string} accessKey
|
|
2596
|
+
* @param {''|'EDIT'} mode
|
|
2596
2597
|
* @returns {Promise<Creation>} 作品详情
|
|
2597
2598
|
*/
|
|
2598
|
-
declare function getCreationDetail(oid: MongoDBId, accessKey: string): Promise<Res$
|
|
2599
|
+
declare function getCreationDetail(oid: MongoDBId, accessKey: string, mode?: "" | "EDIT"): Promise<Res$t>;
|
|
2599
2600
|
|
|
2600
2601
|
type KeypadConfig = {
|
|
2601
2602
|
maxR: number;
|
|
@@ -2619,13 +2620,13 @@ type CreationAttribute<KC> = {
|
|
|
2619
2620
|
specialThanks: unknown[];
|
|
2620
2621
|
updatedAt: number;
|
|
2621
2622
|
};
|
|
2622
|
-
type Res$
|
|
2623
|
+
type Res$s<KC> = CreationAttribute<KC>;
|
|
2623
2624
|
/**
|
|
2624
2625
|
* 获取作品属性详情
|
|
2625
2626
|
* @param {MongoDBId} creationOid 作品id
|
|
2626
2627
|
* @returns {Promise<Res | null>} 作品属性
|
|
2627
2628
|
*/
|
|
2628
|
-
declare function getCreationAttributeDetail(creationOid: MongoDBId): Promise<Res$
|
|
2629
|
+
declare function getCreationAttributeDetail(creationOid: MongoDBId): Promise<Res$s<KeypadConfig[]> | null>;
|
|
2629
2630
|
|
|
2630
2631
|
type CreationActivityStatsItem = {
|
|
2631
2632
|
activeAt: number;
|
|
@@ -2634,21 +2635,21 @@ type CreationActivityStatsItem = {
|
|
|
2634
2635
|
duration: number;
|
|
2635
2636
|
id: number;
|
|
2636
2637
|
};
|
|
2637
|
-
type Res$
|
|
2638
|
+
type Res$r = CreationActivityStatsItem[];
|
|
2638
2639
|
/**
|
|
2639
2640
|
* 获取作品创作活跃统计数据列表(绿格子)
|
|
2640
2641
|
* @param {MongoDBId} creationOid 作品id
|
|
2641
2642
|
* @returns {Promise<Res>} 活动统计数据
|
|
2642
2643
|
*/
|
|
2643
|
-
declare function getCreationActivityStatsList(creationOid: MongoDBId): Promise<Res$
|
|
2644
|
+
declare function getCreationActivityStatsList(creationOid: MongoDBId): Promise<Res$r>;
|
|
2644
2645
|
|
|
2645
|
-
type Res$
|
|
2646
|
+
type Res$q = string | number | boolean | null | object;
|
|
2646
2647
|
/**
|
|
2647
2648
|
* 获取配置详情
|
|
2648
2649
|
* @param {string} key 配置键
|
|
2649
2650
|
* @returns {Promise<Res>} 配置值
|
|
2650
2651
|
*/
|
|
2651
|
-
declare function getConfigDetail(key: string): Promise<Res$
|
|
2652
|
+
declare function getConfigDetail(key: string): Promise<Res$q>;
|
|
2652
2653
|
|
|
2653
2654
|
interface Comment {
|
|
2654
2655
|
commenter: OtherUser;
|
|
@@ -2720,7 +2721,7 @@ declare namespace comment {
|
|
|
2720
2721
|
}
|
|
2721
2722
|
|
|
2722
2723
|
type SortField$1 = "createdAt" | "likes";
|
|
2723
|
-
type Res$
|
|
2724
|
+
type Res$p = PagesRes<Comment>;
|
|
2724
2725
|
/**
|
|
2725
2726
|
* 根据主题获取评论列表
|
|
2726
2727
|
* @param {string} subjectOid 主题oid
|
|
@@ -2729,10 +2730,10 @@ type Res$m = PagesRes<Comment>;
|
|
|
2729
2730
|
* @param {Partial<PageArgs<SortField| T>>} pageArgs_ 分页参数
|
|
2730
2731
|
* @returns {Promise<Res>} 评论分页结果
|
|
2731
2732
|
*/
|
|
2732
|
-
declare function getCommentsByTopic<T extends string>(subjectOid: string, subjectType: SubjectType, sectionType: SectionType, pageArgs_?: Partial<PageArgs<SortField$1 | T>>): Promise<Res$
|
|
2733
|
+
declare function getCommentsByTopic<T extends string>(subjectOid: string, subjectType: SubjectType, sectionType: SectionType, pageArgs_?: Partial<PageArgs<SortField$1 | T>>): Promise<Res$p>;
|
|
2733
2734
|
|
|
2734
2735
|
type SortField = "createdAt";
|
|
2735
|
-
type Res$
|
|
2736
|
+
type Res$o = PagesRes<Comment>;
|
|
2736
2737
|
/**
|
|
2737
2738
|
* 根据topicId获取评论的回复
|
|
2738
2739
|
* @param {number} topicId 话题id
|
|
@@ -2741,7 +2742,7 @@ type Res$l = PagesRes<Comment>;
|
|
|
2741
2742
|
* @param {Partial<PageArgs<SortField|T>>} pageArgs_ 分页参数
|
|
2742
2743
|
* @returns {Promise<Res>} 评论分页结果
|
|
2743
2744
|
*/
|
|
2744
|
-
declare function getCommentReplies<T extends string>(topicId: number, parentId: number, statuses?: ("PUBLISHED" | "FOLDED")[], pageArgs_?: Partial<PageArgs<SortField | T>>): Promise<Res$
|
|
2745
|
+
declare function getCommentReplies<T extends string>(topicId: number, parentId: number, statuses?: ("PUBLISHED" | "FOLDED")[], pageArgs_?: Partial<PageArgs<SortField | T>>): Promise<Res$o>;
|
|
2745
2746
|
|
|
2746
2747
|
type ProfilingCodes = Record<string, number>;
|
|
2747
2748
|
type ProfilingExt = Record<string, number>;
|
|
@@ -2789,16 +2790,16 @@ type CodeProfilingDetail = {
|
|
|
2789
2790
|
profiling: Profiling;
|
|
2790
2791
|
updatedAt: number;
|
|
2791
2792
|
};
|
|
2792
|
-
type Res$
|
|
2793
|
+
type Res$n = CodeProfilingDetail;
|
|
2793
2794
|
/**
|
|
2794
2795
|
* 获取作品工程统计详情
|
|
2795
2796
|
* @param {MongoDBId} creationOid 作品id
|
|
2796
2797
|
* @param {MongoDBId} creationReleaseOid 发布版本id
|
|
2797
2798
|
* @returns {Promise<Res>} 代码分析详情
|
|
2798
2799
|
*/
|
|
2799
|
-
declare function getCodeProfilingDetail(creationOid: MongoDBId, creationReleaseOid: MongoDBId): Promise<Res$
|
|
2800
|
+
declare function getCodeProfilingDetail(creationOid: MongoDBId, creationReleaseOid: MongoDBId): Promise<Res$n>;
|
|
2800
2801
|
|
|
2801
|
-
type Res$
|
|
2802
|
+
type Res$m = {
|
|
2802
2803
|
checkInRecordResps: DailyRecord[];
|
|
2803
2804
|
checkInTimes: number;
|
|
2804
2805
|
todayIndex: number;
|
|
@@ -2810,9 +2811,9 @@ interface DailyRecord {
|
|
|
2810
2811
|
/**
|
|
2811
2812
|
* 获取本月签到记录
|
|
2812
2813
|
*/
|
|
2813
|
-
declare function getCheckInRecords(): Promise<Res$
|
|
2814
|
+
declare function getCheckInRecords(): Promise<Res$m>;
|
|
2814
2815
|
|
|
2815
|
-
type Res$
|
|
2816
|
+
type Res$l = {
|
|
2816
2817
|
data: string;
|
|
2817
2818
|
datetime: string;
|
|
2818
2819
|
};
|
|
@@ -2820,10 +2821,10 @@ type Res$i = {
|
|
|
2820
2821
|
* ccw-main/status
|
|
2821
2822
|
* @returns {Promise<Res>} 信息
|
|
2822
2823
|
*/
|
|
2823
|
-
declare function getCCWMainStatus(): Promise<Res$
|
|
2824
|
+
declare function getCCWMainStatus(): Promise<Res$l>;
|
|
2824
2825
|
|
|
2825
2826
|
type CampaignKeywords = "tags" | "mmo";
|
|
2826
|
-
type Res$
|
|
2827
|
+
type Res$k<K extends string> = {
|
|
2827
2828
|
createdAt: number;
|
|
2828
2829
|
hiddenNavbar: false;
|
|
2829
2830
|
id: number;
|
|
@@ -2837,9 +2838,9 @@ type Res$h<K extends string> = {
|
|
|
2837
2838
|
* @param {K} keyword 活动关键词
|
|
2838
2839
|
* @returns {Promise<Res<K>>}
|
|
2839
2840
|
*/
|
|
2840
|
-
declare function getCampaignResources<K extends CampaignKeywords>(keyword: K): Promise<Res$
|
|
2841
|
+
declare function getCampaignResources<K extends CampaignKeywords>(keyword: K): Promise<Res$k<K>>;
|
|
2841
2842
|
|
|
2842
|
-
type Res$
|
|
2843
|
+
type Res$j<Tid extends number, Tn extends string> = ApprovalStatus<Tid, Tn>[];
|
|
2843
2844
|
type ApprovalStatus<Tid extends number, Tn extends string> = {
|
|
2844
2845
|
adorned: boolean;
|
|
2845
2846
|
approvalIconLink: CNameOssUrl;
|
|
@@ -2857,47 +2858,47 @@ type ApprovalStatus<Tid extends number, Tn extends string> = {
|
|
|
2857
2858
|
* @param {MongoDBId} studentOid 用户id
|
|
2858
2859
|
* @returns {Promise<Res<Tid, Tn>>} 勋章数据
|
|
2859
2860
|
*/
|
|
2860
|
-
declare function getApprovalTags<Tid extends number = number, Tn extends string = string>(studentOid: MongoDBId): Promise<Res$
|
|
2861
|
+
declare function getApprovalTags<Tid extends number = number, Tn extends string = string>(studentOid: MongoDBId): Promise<Res$j<Tid, Tn>>;
|
|
2861
2862
|
|
|
2862
|
-
type Res$
|
|
2863
|
+
type Res$i = "UNFOLLOWED";
|
|
2863
2864
|
/**
|
|
2864
2865
|
* 取消关注创作者
|
|
2865
2866
|
* @param {MongoDBId} followingOid 要取消关注的用户 OID
|
|
2866
2867
|
* @returns {Promise<Res>} "UNFOLLOWED" 表示取消关注成功
|
|
2867
2868
|
*/
|
|
2868
|
-
declare function unfollowCreator(followingOid: MongoDBId): Promise<Res$
|
|
2869
|
+
declare function unfollowCreator(followingOid: MongoDBId): Promise<Res$i>;
|
|
2869
2870
|
|
|
2870
|
-
type Res$
|
|
2871
|
+
type Res$h = "FOLLOWED";
|
|
2871
2872
|
/**
|
|
2872
2873
|
* 关注创作者
|
|
2873
2874
|
* @param {MongoDBId} followingOid 要关注的用户 OID
|
|
2874
2875
|
* @returns {Promise<Res>} "FOLLOWED" 表示关注成功
|
|
2875
2876
|
*/
|
|
2876
|
-
declare function followCreator(followingOid: MongoDBId): Promise<Res$
|
|
2877
|
+
declare function followCreator(followingOid: MongoDBId): Promise<Res$h>;
|
|
2877
2878
|
|
|
2878
|
-
type Res$
|
|
2879
|
+
type Res$g = boolean;
|
|
2879
2880
|
/**
|
|
2880
2881
|
* 折叠评论
|
|
2881
2882
|
* @param {number} id 评论id
|
|
2882
2883
|
* @returns {Promise<Res>} 操作是否成功
|
|
2883
2884
|
*/
|
|
2884
|
-
declare function foldComment(id: number): Promise<Res$
|
|
2885
|
+
declare function foldComment(id: number): Promise<Res$g>;
|
|
2885
2886
|
|
|
2886
|
-
type Res$
|
|
2887
|
+
type Res$f = boolean;
|
|
2887
2888
|
/**
|
|
2888
2889
|
* 删除评论
|
|
2889
2890
|
* @param {number} id 评论id
|
|
2890
2891
|
* @returns {Promise<Res>} 操作是否成功
|
|
2891
2892
|
*/
|
|
2892
|
-
declare function deleteComment(id: number): Promise<Res$
|
|
2893
|
+
declare function deleteComment(id: number): Promise<Res$f>;
|
|
2893
2894
|
|
|
2894
|
-
type Res$
|
|
2895
|
+
type Res$e = string;
|
|
2895
2896
|
/**
|
|
2896
2897
|
* 解压缩短链接
|
|
2897
2898
|
* @param {string} shortUrlCode 短链接码
|
|
2898
2899
|
* @returns {Promise<Res>} 原始URL
|
|
2899
2900
|
*/
|
|
2900
|
-
declare function decompressShortUrl(shortUrlCode: string): Promise<Res$
|
|
2901
|
+
declare function decompressShortUrl(shortUrlCode: string): Promise<Res$e>;
|
|
2901
2902
|
|
|
2902
2903
|
type MemberSplitDetail = {
|
|
2903
2904
|
/**
|
|
@@ -2910,24 +2911,44 @@ type MemberSplitDetail = {
|
|
|
2910
2911
|
role: string;
|
|
2911
2912
|
userOid: MongoDBId;
|
|
2912
2913
|
};
|
|
2913
|
-
type Res$
|
|
2914
|
+
type Res$d = boolean;
|
|
2914
2915
|
/**
|
|
2915
2916
|
* 创建作品智能合约分成规则
|
|
2916
2917
|
* @param {MongoDBId} creationOid 作品id
|
|
2917
2918
|
* @param {MemberSplitDetail[]} memberSplitDetails 成员分成详情
|
|
2918
2919
|
* @returns {Promise<Res>} 创建是否成功
|
|
2919
2920
|
*/
|
|
2920
|
-
declare function createSplitRule(creationOid: MongoDBId, memberSplitDetails: MemberSplitDetail[]): Promise<Res$
|
|
2921
|
+
declare function createSplitRule(creationOid: MongoDBId, memberSplitDetails: MemberSplitDetail[]): Promise<Res$d>;
|
|
2921
2922
|
|
|
2922
|
-
type
|
|
2923
|
+
type CaptchaType = "SMS";
|
|
2924
|
+
type SmsSceneBySession = "change_password";
|
|
2925
|
+
type SmsRuleCodeBySession = "ccw_sms";
|
|
2926
|
+
type Res$c = {
|
|
2927
|
+
batchId: string | null;
|
|
2928
|
+
/**
|
|
2929
|
+
* sendResult=1 表示成功
|
|
2930
|
+
*/
|
|
2931
|
+
sendResult: 1 | 2;
|
|
2932
|
+
};
|
|
2933
|
+
/**
|
|
2934
|
+
* 通过当前登录session发送短信验证码(无需输入手机号)用于重置密码
|
|
2935
|
+
* @param {SmsSceneBySession} scene 使用场景,默认 change_password
|
|
2936
|
+
* @param {string} countryCode 国家代码,默认 "86"
|
|
2937
|
+
* @param {SmsRuleCodeBySession} ruleCode 短信规则编码,默认 "ccw_sms"
|
|
2938
|
+
* @param {CaptchaType} type 验证码类型,默认 "SMS"
|
|
2939
|
+
* @returns {Promise<Res>} 发送结果:batchId 为短信批次ID,sendResult=1 表示成功;发送频率超限时会抛出错误
|
|
2940
|
+
*/
|
|
2941
|
+
declare function createSmsCaptchaBySession(scene?: SmsSceneBySession, countryCode?: string, ruleCode?: SmsRuleCodeBySession, type?: CaptchaType): Promise<Res$c>;
|
|
2942
|
+
|
|
2943
|
+
type Res$b = `https://ccw.site/s/${string}`;
|
|
2923
2944
|
/**
|
|
2924
2945
|
* 创建短链接(用于分享)
|
|
2925
2946
|
* @param originUrl 原链接
|
|
2926
2947
|
* @returns {Promise<Res>} 创建的短链接
|
|
2927
2948
|
*/
|
|
2928
|
-
declare function createShortUrl(originUrl: string): Promise<Res$
|
|
2949
|
+
declare function createShortUrl(originUrl: string): Promise<Res$b>;
|
|
2929
2950
|
|
|
2930
|
-
type Res$
|
|
2951
|
+
type Res$a = {
|
|
2931
2952
|
commenterId: number;
|
|
2932
2953
|
content: string;
|
|
2933
2954
|
createdAt: number;
|
|
@@ -2949,9 +2970,9 @@ type Res$8 = {
|
|
|
2949
2970
|
* @param {string} sectionType 板块类型
|
|
2950
2971
|
* @returns {Promise<Res>} 创建的评论
|
|
2951
2972
|
*/
|
|
2952
|
-
declare function createComment(content: string, topic: MinimalTopicInfo, sectionType: SectionType): Promise<Res$
|
|
2973
|
+
declare function createComment(content: string, topic: MinimalTopicInfo, sectionType: SectionType): Promise<Res$a>;
|
|
2953
2974
|
|
|
2954
|
-
type Res$
|
|
2975
|
+
type Res$9 = Record<string, never>;
|
|
2955
2976
|
/**
|
|
2956
2977
|
* @deprecated 云变量几百年没用过了
|
|
2957
2978
|
* 创建云变量
|
|
@@ -2959,9 +2980,9 @@ type Res$7 = Record<string, never>;
|
|
|
2959
2980
|
* @param {Record<string, unknown>} variables 变量数据
|
|
2960
2981
|
* @returns {Promise<Res>} 空对象
|
|
2961
2982
|
*/
|
|
2962
|
-
declare function createCloudVariable(projectId: MongoDBId, variables: Record<string, unknown>): Promise<Res$
|
|
2983
|
+
declare function createCloudVariable(projectId: MongoDBId, variables: Record<string, unknown>): Promise<Res$9>;
|
|
2963
2984
|
|
|
2964
|
-
type Res$
|
|
2985
|
+
type Res$8 = {
|
|
2965
2986
|
success: boolean;
|
|
2966
2987
|
};
|
|
2967
2988
|
/**
|
|
@@ -2973,9 +2994,9 @@ type Res$6 = {
|
|
|
2973
2994
|
* @param {number} bucks 金币数量
|
|
2974
2995
|
* @returns {Promise<Res>} 执行结果
|
|
2975
2996
|
*/
|
|
2976
|
-
declare function executeSmartContract(bizId: MongoDBId, id: number, ruleId: number, bucks: number, bizType?: SmartContractBizType): Promise<Res$
|
|
2997
|
+
declare function executeSmartContract(bizId: MongoDBId, id: number, ruleId: number, bucks: number, bizType?: SmartContractBizType): Promise<Res$8>;
|
|
2977
2998
|
|
|
2978
|
-
type Res$
|
|
2999
|
+
type Res$7 = {
|
|
2979
3000
|
/**
|
|
2980
3001
|
* 获取的inviteCode码
|
|
2981
3002
|
*/
|
|
@@ -3003,10 +3024,10 @@ type Res$5 = {
|
|
|
3003
3024
|
* @param {MongoDBId} creationOid 作品id
|
|
3004
3025
|
* @returns {Promise<Res>}
|
|
3005
3026
|
*/
|
|
3006
|
-
declare function encodeShortCode(inviterId: MongoDBId, inviterAvatar: CNameOssUrl, inviterName: string, creationOid: MongoDBId): Promise<Res$
|
|
3027
|
+
declare function encodeShortCode(inviterId: MongoDBId, inviterAvatar: CNameOssUrl, inviterName: string, creationOid: MongoDBId): Promise<Res$7>;
|
|
3007
3028
|
|
|
3008
3029
|
type DonateObjectType = "CREATION";
|
|
3009
|
-
type Res$
|
|
3030
|
+
type Res$6 = null;
|
|
3010
3031
|
/**
|
|
3011
3032
|
* 向作品投币
|
|
3012
3033
|
* @param {number} bucks 投币数量
|
|
@@ -3014,7 +3035,26 @@ type Res$4 = null;
|
|
|
3014
3035
|
* @param {DonateObjectType} objectType
|
|
3015
3036
|
* @returns {Promise<Res>} 无返回值
|
|
3016
3037
|
*/
|
|
3017
|
-
declare function donateTrade(bucks: number, objectId: MongoDBId, objectType?: DonateObjectType): Promise<Res$
|
|
3038
|
+
declare function donateTrade(bucks: number, objectId: MongoDBId, objectType?: DonateObjectType): Promise<Res$6>;
|
|
3039
|
+
|
|
3040
|
+
type Res$5 = boolean;
|
|
3041
|
+
/**
|
|
3042
|
+
* 通过登录session修改用户密码(需配合短信验证码)
|
|
3043
|
+
* @param {string} newPassword 新密码
|
|
3044
|
+
* @param {string} code 短信验证码,通过 createSmsCaptchaBySession 获取
|
|
3045
|
+
* @returns {Promise<boolean>} 修改成功返回 true;验证码不正确等异常会抛出错误
|
|
3046
|
+
*/
|
|
3047
|
+
declare function changeStudentPassword(newPassword: string, code: string): Promise<Res$5>;
|
|
3048
|
+
|
|
3049
|
+
type Res$4 = boolean;
|
|
3050
|
+
/**
|
|
3051
|
+
* 绑定手机号
|
|
3052
|
+
* @param {string} phone 手机号码
|
|
3053
|
+
* @param {string} code 短信验证码
|
|
3054
|
+
* @param {string} countryCode 国家区号,默认 "86"
|
|
3055
|
+
* @returns {Promise<boolean>} 绑定成功返回 true;验证码不正确等异常会抛出错误
|
|
3056
|
+
*/
|
|
3057
|
+
declare function bindStudentPhone(phone: string, code: string, countryCode?: string): Promise<Res$4>;
|
|
3018
3058
|
|
|
3019
3059
|
type TaskRewardType = "INTERNAL_CURRENCY";
|
|
3020
3060
|
type TaskRewardStatus = "AWARDED";
|
|
@@ -3097,7 +3137,7 @@ declare function logoutBySession(sessionId: number): Promise<boolean>;
|
|
|
3097
3137
|
*/
|
|
3098
3138
|
declare function logout(): Promise<null>;
|
|
3099
3139
|
|
|
3100
|
-
type Res<Extra> = LoginSession<Extra>;
|
|
3140
|
+
type Res<Extra> = LoginSession<Extra, null>;
|
|
3101
3141
|
type Extra = {
|
|
3102
3142
|
browser: string;
|
|
3103
3143
|
device: string;
|
|
@@ -3133,12 +3173,15 @@ declare const sso: {
|
|
|
3133
3173
|
|
|
3134
3174
|
declare const communityWeb: {
|
|
3135
3175
|
acceptAward: typeof acceptAward;
|
|
3176
|
+
bindStudentPhone: typeof bindStudentPhone;
|
|
3177
|
+
changeStudentPassword: typeof changeStudentPassword;
|
|
3136
3178
|
donateTrade: typeof donateTrade;
|
|
3137
3179
|
encodeShortCode: typeof encodeShortCode;
|
|
3138
3180
|
executeSmartContract: typeof executeSmartContract;
|
|
3139
3181
|
createCloudVariable: typeof createCloudVariable;
|
|
3140
3182
|
createComment: typeof createComment;
|
|
3141
3183
|
createShortUrl: typeof createShortUrl;
|
|
3184
|
+
createSmsCaptchaBySession: typeof createSmsCaptchaBySession;
|
|
3142
3185
|
createSplitRule: typeof createSplitRule;
|
|
3143
3186
|
decompressShortUrl: typeof decompressShortUrl;
|
|
3144
3187
|
deleteComment: typeof deleteComment;
|
|
@@ -3175,7 +3218,7 @@ declare const communityWeb: {
|
|
|
3175
3218
|
getHashTagFavoriteDetail: typeof getHashTagFavoriteDetail;
|
|
3176
3219
|
getHistoricalTeamMemberPage: typeof getHistoricalTeamMemberPage;
|
|
3177
3220
|
getManagedHashTags: typeof getManagedHashTags;
|
|
3178
|
-
getHealthCheck: typeof
|
|
3221
|
+
getHealthCheck: typeof getHealthCheck;
|
|
3179
3222
|
getLeafletsItemList: typeof getLeafletsItemList;
|
|
3180
3223
|
getLikeDetail: typeof getLikeDetail;
|
|
3181
3224
|
getLoadingTips: typeof getLoadingTips;
|
|
@@ -3276,12 +3319,15 @@ declare const _default: {
|
|
|
3276
3319
|
};
|
|
3277
3320
|
communityWeb: {
|
|
3278
3321
|
acceptAward: typeof acceptAward;
|
|
3322
|
+
bindStudentPhone: typeof bindStudentPhone;
|
|
3323
|
+
changeStudentPassword: typeof changeStudentPassword;
|
|
3279
3324
|
donateTrade: typeof donateTrade;
|
|
3280
3325
|
encodeShortCode: typeof encodeShortCode;
|
|
3281
3326
|
executeSmartContract: typeof executeSmartContract;
|
|
3282
3327
|
createCloudVariable: typeof createCloudVariable;
|
|
3283
3328
|
createComment: typeof createComment;
|
|
3284
3329
|
createShortUrl: typeof createShortUrl;
|
|
3330
|
+
createSmsCaptchaBySession: typeof createSmsCaptchaBySession;
|
|
3285
3331
|
createSplitRule: typeof createSplitRule;
|
|
3286
3332
|
decompressShortUrl: typeof decompressShortUrl;
|
|
3287
3333
|
deleteComment: typeof deleteComment;
|
|
@@ -3318,7 +3364,7 @@ declare const _default: {
|
|
|
3318
3364
|
getHashTagFavoriteDetail: typeof getHashTagFavoriteDetail;
|
|
3319
3365
|
getHistoricalTeamMemberPage: typeof getHistoricalTeamMemberPage;
|
|
3320
3366
|
getManagedHashTags: typeof getManagedHashTags;
|
|
3321
|
-
getHealthCheck: typeof
|
|
3367
|
+
getHealthCheck: typeof getHealthCheck;
|
|
3322
3368
|
getLeafletsItemList: typeof getLeafletsItemList;
|
|
3323
3369
|
getLikeDetail: typeof getLikeDetail;
|
|
3324
3370
|
getLoadingTips: typeof getLoadingTips;
|