@ccw-api/api 0.5.0 → 0.6.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/README.md +591 -439
- package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.js +34 -0
- package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.test.js +8 -0
- package/dist/esm/community-web/extensions/creation-like/detail.js +14 -0
- package/dist/esm/community-web/extensions/creation-like/detail.test.js +4 -0
- package/dist/esm/community-web/extensions/following/status.js +14 -0
- package/dist/esm/community-web/extensions/following/status.test.js +4 -0
- package/dist/esm/community-web/index.js +14 -0
- package/dist/esm/community-web/post/post.test.js +0 -1
- package/dist/esm/community-web/smart_contract/account.js +13 -0
- package/dist/esm/community-web/smart_contract/account.test.js +4 -0
- package/dist/esm/community-web/smart_contract/detail.js +13 -0
- package/dist/esm/community-web/smart_contract/detail.test.js +4 -0
- package/dist/esm/community-web/smart_contract/execute.js +17 -0
- package/dist/esm/community-web/smart_contract/execute.test.js +4 -0
- package/dist/esm/community-web/study-community/following/follow.js +13 -0
- package/dist/esm/community-web/study-community/following/follow.test.js +4 -0
- package/dist/esm/community-web-cloud-database/cloud_variable/detail/v2.js +16 -0
- package/dist/esm/community-web-cloud-database/cloud_variable/detail/v2.test.js +4 -0
- package/dist/esm/community-web-cloud-database/index.js +2 -0
- package/dist/node/community-web/ccw-mall/ccw/product/fe/query.js +38 -0
- package/dist/node/community-web/ccw-mall/ccw/product/fe/query.test.js +10 -0
- package/dist/node/community-web/extensions/creation-like/detail.js +18 -0
- package/dist/node/community-web/extensions/creation-like/detail.test.js +6 -0
- package/dist/node/community-web/extensions/following/status.js +18 -0
- package/dist/node/community-web/extensions/following/status.test.js +6 -0
- package/dist/node/community-web/index.js +14 -0
- package/dist/node/community-web/post/post.test.js +0 -1
- package/dist/node/community-web/smart_contract/account.js +17 -0
- package/dist/node/community-web/smart_contract/account.test.js +6 -0
- package/dist/node/community-web/smart_contract/detail.js +17 -0
- package/dist/node/community-web/smart_contract/detail.test.js +6 -0
- package/dist/node/community-web/smart_contract/execute.js +21 -0
- package/dist/node/community-web/smart_contract/execute.test.js +6 -0
- package/dist/node/community-web/study-community/following/follow.js +17 -0
- package/dist/node/community-web/study-community/following/follow.test.js +6 -0
- package/dist/node/community-web-cloud-database/cloud_variable/detail/v2.js +20 -0
- package/dist/node/community-web-cloud-database/cloud_variable/detail/v2.test.js +6 -0
- package/dist/node/community-web-cloud-database/index.js +2 -0
- package/dist/types/community-web/ccw-mall/ccw/product/fe/query.d.ts +54 -0
- package/dist/types/community-web/extensions/creation-like/detail.d.ts +18 -0
- package/dist/types/community-web/extensions/following/status.d.ts +19 -0
- package/dist/types/community-web/index.d.ts +14 -0
- package/dist/types/community-web/post/detail.d.ts +1 -1
- package/dist/types/community-web/smart_contract/account.d.ts +13 -0
- package/dist/types/community-web/smart_contract/detail.d.ts +24 -0
- package/dist/types/community-web/smart_contract/execute.d.ts +25 -0
- package/dist/types/community-web/study-community/following/follow.d.ts +12 -0
- package/dist/types/community-web-cloud-database/cloud_variable/detail/v2.d.ts +17 -0
- package/dist/types/community-web-cloud-database/index.d.ts +2 -0
- package/dist/types/index.d.ts +8 -0
- package/package.json +2 -2
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CNameOssUrl, MongoDBId } from "src/types/api";
|
|
2
|
+
import { PagesRes, PageArgs, SortType } from "src/types/pages";
|
|
3
|
+
export declare const url = "https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";
|
|
4
|
+
export declare enum ProductCategory {
|
|
5
|
+
Merchandise = 7,
|
|
6
|
+
AvatarFrame = 5,
|
|
7
|
+
EMOJI = 10
|
|
8
|
+
}
|
|
9
|
+
export type ProductSource = "CCW_OFFICIAL";
|
|
10
|
+
export type ProductType = 1 | 2 | 3;
|
|
11
|
+
export type ProductSortField = "createdAt" | "updatedAt" | "pointPrice" | "priority" | "stockNum";
|
|
12
|
+
export type Product = {
|
|
13
|
+
createdAt: number;
|
|
14
|
+
description: string;
|
|
15
|
+
elements: unknown[];
|
|
16
|
+
functionDescribe: string;
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
note: string;
|
|
20
|
+
offlineAt: null | number;
|
|
21
|
+
oid: MongoDBId;
|
|
22
|
+
onlineAt: number;
|
|
23
|
+
originPointPrice: number;
|
|
24
|
+
originPrice: number;
|
|
25
|
+
periodValidityDay: null | number;
|
|
26
|
+
periodValidityTime: null | number;
|
|
27
|
+
picUrl: null | CNameOssUrl | string;
|
|
28
|
+
pointPrice: number;
|
|
29
|
+
price: number;
|
|
30
|
+
priority: number;
|
|
31
|
+
productCategory: ProductCategory;
|
|
32
|
+
purchaseLimitationNum: number;
|
|
33
|
+
source: ProductSource;
|
|
34
|
+
status: number;
|
|
35
|
+
stockNum: number;
|
|
36
|
+
type: ProductType;
|
|
37
|
+
updatedAt: number;
|
|
38
|
+
virtualValue: null | CNameOssUrl | string;
|
|
39
|
+
};
|
|
40
|
+
export type Req = {
|
|
41
|
+
page: number;
|
|
42
|
+
perPage: number;
|
|
43
|
+
productCategory?: ProductCategory;
|
|
44
|
+
sortType: SortType;
|
|
45
|
+
source?: ProductSource;
|
|
46
|
+
};
|
|
47
|
+
export type Res = PagesRes<Product, ProductSortField>;
|
|
48
|
+
/**
|
|
49
|
+
* 分页查询CCW小商店商品列表
|
|
50
|
+
* @param {ProductCategory | undefined} productCategory 商品分类(可选):5=头像框,7=周边商品,10=表情 等
|
|
51
|
+
* @param {Partial<PageArgs<ProductSortField>>} pageArgs_ 分页参数(默认 page=1, perPage=30, sortType="DESC")
|
|
52
|
+
* @returns {Promise<Res>} 商品分页结果 PagesRes<Product>
|
|
53
|
+
*/
|
|
54
|
+
export declare function queryMallProducts<T extends string>(productCategory?: ProductCategory, pageArgs_?: Partial<PageArgs<ProductSortField | T>>): Promise<Res>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MongoDBId } from "src/types/api";
|
|
2
|
+
export declare const url = "https://community-web.ccw.site/extensions/creation-like/detail";
|
|
3
|
+
export type Req = {
|
|
4
|
+
playingCreationOid: MongoDBId;
|
|
5
|
+
creationOid: MongoDBId;
|
|
6
|
+
};
|
|
7
|
+
export type Res = {
|
|
8
|
+
interactionStatus: boolean;
|
|
9
|
+
oid: MongoDBId;
|
|
10
|
+
title: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* [连接社区扩展] 查询用户对作品的点赞交互状态
|
|
14
|
+
* @param {MongoDBId} playingCreationOid 当前播放的作品 OID
|
|
15
|
+
* @param {MongoDBId} creationOid 目标作品 OID
|
|
16
|
+
* @returns {Promise<Res>} 点赞状态及作品信息
|
|
17
|
+
*/
|
|
18
|
+
export declare function getConnectCommunityCreationLikeStatus(playingCreationOid: MongoDBId, creationOid: MongoDBId): Promise<Res>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MongoDBId, CNameOssUrl } from "src/types/api";
|
|
2
|
+
export declare const url = "https://community-web.ccw.site/extensions/following/status";
|
|
3
|
+
export type Req = {
|
|
4
|
+
playingCreationOid: MongoDBId;
|
|
5
|
+
userOid: MongoDBId;
|
|
6
|
+
};
|
|
7
|
+
export type Res = {
|
|
8
|
+
avatar: CNameOssUrl;
|
|
9
|
+
isFollowing: boolean;
|
|
10
|
+
name: string;
|
|
11
|
+
oid: MongoDBId;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* [连接社区扩展] 查询是否关注了指定创作者
|
|
15
|
+
* @param {MongoDBId} playingCreationOid 当前播放的作品 OID
|
|
16
|
+
* @param {MongoDBId} userOid 目标用户 OID
|
|
17
|
+
* @returns {Promise<Res>} 关注状态及用户信息
|
|
18
|
+
*/
|
|
19
|
+
export declare function getConnectCommunityFollowingStatus(playingCreationOid: MongoDBId, userOid: MongoDBId): Promise<Res>;
|
|
@@ -9,6 +9,7 @@ import { searchCloudAssets } from "./cloud_asset/search";
|
|
|
9
9
|
import { getCommentReplies } from "./comment/page";
|
|
10
10
|
import { getCommentsByTopic } from "./comment/page_by_topic";
|
|
11
11
|
import { getConfigDetail } from "./config/detail";
|
|
12
|
+
import { queryMallProducts } from "./ccw-mall/ccw/product/fe/query";
|
|
12
13
|
import { getCreationDetail } from "./creation/detail";
|
|
13
14
|
import { getExcellentCreations } from "./creation/excellent/list";
|
|
14
15
|
import { getCreationIntroduction } from "./creation/introduction/detail";
|
|
@@ -96,11 +97,18 @@ import { donateTrade } from "./study-trade/trade/donate";
|
|
|
96
97
|
import { getUserProductsPage } from "./user_package/user_product";
|
|
97
98
|
import { setUserProductStatus } from "./user_package/status";
|
|
98
99
|
import { updateGreatCreation } from "./great_creation/update";
|
|
100
|
+
import { executeSmartContract } from "./smart_contract/execute";
|
|
101
|
+
import { getSmartContractAccount } from "./smart_contract/account";
|
|
102
|
+
import { getSmartContractDetail } from "./smart_contract/detail";
|
|
99
103
|
import { getSmartContractList } from "./smart_contract/list";
|
|
104
|
+
import { getConnectCommunityFollowingStatus } from "./extensions/following/status";
|
|
105
|
+
import { getConnectCommunityCreationLikeStatus } from "./extensions/creation-like/detail";
|
|
106
|
+
import { followCreator } from "./study-community/following/follow";
|
|
100
107
|
export declare const communityWeb: {
|
|
101
108
|
acceptAward: typeof acceptAward;
|
|
102
109
|
donateTrade: typeof donateTrade;
|
|
103
110
|
encodeShortCode: typeof encodeShortCode;
|
|
111
|
+
executeSmartContract: typeof executeSmartContract;
|
|
104
112
|
createCloudVariable: typeof createCloudVariable;
|
|
105
113
|
createComment: typeof createComment;
|
|
106
114
|
createShortUrl: typeof createShortUrl;
|
|
@@ -108,6 +116,7 @@ export declare const communityWeb: {
|
|
|
108
116
|
decompressShortUrl: typeof decompressShortUrl;
|
|
109
117
|
deleteComment: typeof deleteComment;
|
|
110
118
|
foldComment: typeof foldComment;
|
|
119
|
+
followCreator: typeof followCreator;
|
|
111
120
|
getApprovalTags: typeof getApprovalTags;
|
|
112
121
|
getCampaignResources: typeof getCampaignResources;
|
|
113
122
|
getCcwMainStatus: typeof getCCWMainStatus;
|
|
@@ -121,6 +130,7 @@ export declare const communityWeb: {
|
|
|
121
130
|
getCreationDetail: typeof getCreationDetail;
|
|
122
131
|
getCreationFavoriteDetail: typeof getCreationFavoriteDetail;
|
|
123
132
|
getCreationIntroduction: typeof getCreationIntroduction;
|
|
133
|
+
getConnectCommunityCreationLikeStatus: typeof getConnectCommunityCreationLikeStatus;
|
|
124
134
|
getCreationRecommendPositionList: typeof getCreationRecommendPositionList;
|
|
125
135
|
getCreationReleasePage: typeof getCreationReleasePage;
|
|
126
136
|
getCreationScreenshotPage: typeof getCreationScreenshotPage;
|
|
@@ -129,6 +139,7 @@ export declare const communityWeb: {
|
|
|
129
139
|
getCreatorScore: typeof getCreatorScore;
|
|
130
140
|
getDonatedRecordRanking: typeof getDonatedRecordRanking;
|
|
131
141
|
getExcellentCreations: typeof getExcellentCreations;
|
|
142
|
+
getConnectCommunityFollowingStatus: typeof getConnectCommunityFollowingStatus;
|
|
132
143
|
getEmojiCategoryList: typeof getEmojiCategoryList;
|
|
133
144
|
getEmojiPage: typeof getEmojiPage;
|
|
134
145
|
getAllEmojis: typeof getAllEmojis;
|
|
@@ -157,6 +168,8 @@ export declare const communityWeb: {
|
|
|
157
168
|
getRemixedCreationPage: typeof getRemixedCreationPage;
|
|
158
169
|
getReputationScoreLogPage: typeof getReputationScoreLog;
|
|
159
170
|
getSearchHotWords: typeof getSearchHotWords;
|
|
171
|
+
getSmartContractAccount: typeof getSmartContractAccount;
|
|
172
|
+
getSmartContractDetail: typeof getSmartContractDetail;
|
|
160
173
|
getSmartContractList: typeof getSmartContractList;
|
|
161
174
|
getSplitRuleDetail: typeof getSplitRuleDetail;
|
|
162
175
|
getSpreadFeedUnreadCount: typeof getSpreadFeedUnreadCount;
|
|
@@ -182,6 +195,7 @@ export declare const communityWeb: {
|
|
|
182
195
|
getUserCardDetail: typeof getUserCardDetail;
|
|
183
196
|
getUserLabelList: typeof getUserLabelList;
|
|
184
197
|
getUserProductsPage: typeof getUserProductsPage;
|
|
198
|
+
queryMallProducts: typeof queryMallProducts;
|
|
185
199
|
getCreationsByStudent: typeof getCreationsByStudent;
|
|
186
200
|
insertCheckInRecord: typeof insertCheckInRecord;
|
|
187
201
|
likeComment: typeof likeComment;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const url = "https://community-web.ccw.site/smart_contract/account";
|
|
2
|
+
export type Req = {
|
|
3
|
+
id: number;
|
|
4
|
+
};
|
|
5
|
+
export type Res = {
|
|
6
|
+
balance: number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 查询智能合约账户余额
|
|
10
|
+
* @param {number} id 合约 ID
|
|
11
|
+
* @returns {Promise<Res>} 合约账户余额
|
|
12
|
+
*/
|
|
13
|
+
export declare function getSmartContractAccount(id: number): Promise<Res>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MongoDBId } from "src/types/api";
|
|
2
|
+
import { SmartContractBizType, SmartContractRule } from "./list";
|
|
3
|
+
export declare const url = "https://community-web.ccw.site/smart_contract/detail";
|
|
4
|
+
export type Req = {
|
|
5
|
+
id: number;
|
|
6
|
+
};
|
|
7
|
+
export type Res = {
|
|
8
|
+
accountId: MongoDBId;
|
|
9
|
+
bizId: MongoDBId;
|
|
10
|
+
bizType: SmartContractBizType;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
id: number;
|
|
13
|
+
rules: SmartContractRule[];
|
|
14
|
+
status: "ENABLED";
|
|
15
|
+
title: string;
|
|
16
|
+
type: string;
|
|
17
|
+
updatedAt: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 获取智能合约详情
|
|
21
|
+
* @param {number} id 合约 ID
|
|
22
|
+
* @returns {Promise<Res>} 合约详情
|
|
23
|
+
*/
|
|
24
|
+
export declare function getSmartContractDetail(id: number): Promise<Res>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MongoDBId } from "src/types/api";
|
|
2
|
+
import { SmartContractBizType } from "./list";
|
|
3
|
+
export declare const url = "https://community-web.ccw.site/smart_contract/execute";
|
|
4
|
+
export type Req = {
|
|
5
|
+
bizId: MongoDBId;
|
|
6
|
+
bizType: SmartContractBizType;
|
|
7
|
+
id: number;
|
|
8
|
+
ruleId: number;
|
|
9
|
+
params: {
|
|
10
|
+
bucks: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type Res = {
|
|
14
|
+
success: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 执行智能合约(投币/领取奖励)
|
|
18
|
+
* @param {MongoDBId} bizId 业务 ID(如作品 OID)
|
|
19
|
+
* @param {SmartContractBizType} bizType 业务类型,CREATION
|
|
20
|
+
* @param {number} id 合约 ID
|
|
21
|
+
* @param {number} ruleId 规则 ID
|
|
22
|
+
* @param {number} bucks 金币数量
|
|
23
|
+
* @returns {Promise<Res>} 执行结果
|
|
24
|
+
*/
|
|
25
|
+
export declare function executeSmartContract(bizId: MongoDBId, id: number, ruleId: number, bucks: number, bizType?: SmartContractBizType): Promise<Res>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MongoDBId } from "src/types/api";
|
|
2
|
+
export declare const url = "https://community-web.ccw.site/study-community/following/follow";
|
|
3
|
+
export type Req = {
|
|
4
|
+
followingOid: MongoDBId;
|
|
5
|
+
};
|
|
6
|
+
export type Res = "FOLLOWED";
|
|
7
|
+
/**
|
|
8
|
+
* 关注创作者
|
|
9
|
+
* @param {MongoDBId} followingOid 要关注的用户 OID
|
|
10
|
+
* @returns {Promise<Res>} "FOLLOWED" 表示关注成功
|
|
11
|
+
*/
|
|
12
|
+
export declare function followCreator(followingOid: MongoDBId): Promise<Res>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const url = "https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";
|
|
2
|
+
export type Req = {
|
|
3
|
+
accessKey: string;
|
|
4
|
+
primaryKey: string;
|
|
5
|
+
secondaryKey: string;
|
|
6
|
+
filterKeys: string[];
|
|
7
|
+
};
|
|
8
|
+
export type Res = {};
|
|
9
|
+
/**
|
|
10
|
+
* 查询云变量详情 V2
|
|
11
|
+
* @param {string} accessKey 访问密钥(如作品 OID)
|
|
12
|
+
* @param {string} primaryKey 主键(如 `${projectId}-u`)
|
|
13
|
+
* @param {string} secondaryKey 次级键
|
|
14
|
+
* @param {string[]} filterKeys 过滤的变量名列表
|
|
15
|
+
* @returns {Promise<Res>} 云变量详情
|
|
16
|
+
*/
|
|
17
|
+
export declare function getCloudVariableDetailV2(accessKey: string, primaryKey: string, secondaryKey: string, filterKeys: string[]): Promise<Res>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { saveProjectCloudVariable, saveUserCloudVariable } from "./cloud_variable/save";
|
|
2
|
+
import { getCloudVariableDetailV2 } from "./cloud_variable/detail/v2";
|
|
2
3
|
export declare const communityWebCloudDatabase: {
|
|
3
4
|
saveProjectCloudVariable: typeof saveProjectCloudVariable;
|
|
4
5
|
saveUserCloudVariable: typeof saveUserCloudVariable;
|
|
6
|
+
getCloudVariableDetailV2: typeof getCloudVariableDetailV2;
|
|
5
7
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare const _default: {
|
|
|
18
18
|
acceptAward: typeof import("./community-web/task/award").acceptAward;
|
|
19
19
|
donateTrade: typeof import("./community-web/study-trade/trade/donate").donateTrade;
|
|
20
20
|
encodeShortCode: typeof import("./community-web/api/v1/short_code/encode").encodeShortCode;
|
|
21
|
+
executeSmartContract: typeof import("./community-web/smart_contract/execute").executeSmartContract;
|
|
21
22
|
createCloudVariable: typeof import("./community-web/study-community/cloud_variable/create").createCloudVariable;
|
|
22
23
|
createComment: typeof import("./community-web/comment/create").createComment;
|
|
23
24
|
createShortUrl: typeof import("./community-web/short_url/create").createShortUrl;
|
|
@@ -25,6 +26,7 @@ declare const _default: {
|
|
|
25
26
|
decompressShortUrl: typeof import("./community-web/short_url/decompress").decompressShortUrl;
|
|
26
27
|
deleteComment: typeof import("./community-web/study-community/comment/delete").deleteComment;
|
|
27
28
|
foldComment: typeof import("./community-web/study-community/comment/fold").foldComment;
|
|
29
|
+
followCreator: typeof import("./community-web/study-community/following/follow").followCreator;
|
|
28
30
|
getApprovalTags: typeof import("./community-web/approval/list").getApprovalTags;
|
|
29
31
|
getCampaignResources: typeof import("./community-web/campaign_resource/detail").getCampaignResources;
|
|
30
32
|
getCcwMainStatus: typeof import("./community-web/ccw-main/status").getCCWMainStatus;
|
|
@@ -38,6 +40,7 @@ declare const _default: {
|
|
|
38
40
|
getCreationDetail: typeof import("./community-web/creation/detail").getCreationDetail;
|
|
39
41
|
getCreationFavoriteDetail: typeof import("./community-web/creation_favorite/detail").getCreationFavoriteDetail;
|
|
40
42
|
getCreationIntroduction: typeof import("./community-web/creation/introduction/detail").getCreationIntroduction;
|
|
43
|
+
getConnectCommunityCreationLikeStatus: typeof import("./community-web/extensions/creation-like/detail").getConnectCommunityCreationLikeStatus;
|
|
41
44
|
getCreationRecommendPositionList: typeof import("./community-web/creation_recommend_position/list").getCreationRecommendPositionList;
|
|
42
45
|
getCreationReleasePage: typeof import("./community-web/creation_release/page").getCreationReleasePage;
|
|
43
46
|
getCreationScreenshotPage: typeof import("./community-web/creation_screenshot/page").getCreationScreenshotPage;
|
|
@@ -46,6 +49,7 @@ declare const _default: {
|
|
|
46
49
|
getCreatorScore: typeof import("./community-web/students/creator_score").getCreatorScore;
|
|
47
50
|
getDonatedRecordRanking: typeof import("./community-web/creation_donated_record/ranking_list").getDonatedRecordRanking;
|
|
48
51
|
getExcellentCreations: typeof import("./community-web/creation/excellent/list").getExcellentCreations;
|
|
52
|
+
getConnectCommunityFollowingStatus: typeof import("./community-web/extensions/following/status").getConnectCommunityFollowingStatus;
|
|
49
53
|
getEmojiCategoryList: typeof import("./community-web/emoji/category/list").getEmojiCategoryList;
|
|
50
54
|
getEmojiPage: typeof import("./community-web/emoji/page").getEmojiPage;
|
|
51
55
|
getAllEmojis: typeof import("./community-web/emoji/all").getAllEmojis;
|
|
@@ -74,6 +78,8 @@ declare const _default: {
|
|
|
74
78
|
getRemixedCreationPage: typeof import("./community-web/creation/page").getRemixedCreationPage;
|
|
75
79
|
getReputationScoreLogPage: typeof import("./community-web/students/reputation_score_log/page").getReputationScoreLog;
|
|
76
80
|
getSearchHotWords: typeof import("./community-web/search/hot_words").getSearchHotWords;
|
|
81
|
+
getSmartContractAccount: typeof import("./community-web/smart_contract/account").getSmartContractAccount;
|
|
82
|
+
getSmartContractDetail: typeof import("./community-web/smart_contract/detail").getSmartContractDetail;
|
|
77
83
|
getSmartContractList: typeof import("./community-web/smart_contract/list").getSmartContractList;
|
|
78
84
|
getSplitRuleDetail: typeof import("./community-web/creation/smart_contract/split_rule/detail").getSplitRuleDetail;
|
|
79
85
|
getSpreadFeedUnreadCount: typeof import("./community-web/study-community/spread_feed/unread/count").getSpreadFeedUnreadCount;
|
|
@@ -99,6 +105,7 @@ declare const _default: {
|
|
|
99
105
|
getUserCardDetail: typeof import("./community-web/user-card/detail").getUserCardDetail;
|
|
100
106
|
getUserLabelList: typeof import("./community-web/user_label/list").getUserLabelList;
|
|
101
107
|
getUserProductsPage: typeof import("./community-web/user_package/user_product").getUserProductsPage;
|
|
108
|
+
queryMallProducts: typeof import("./community-web/ccw-mall/ccw/product/fe/query").queryMallProducts;
|
|
102
109
|
getCreationsByStudent: typeof import("./community-web/creation/page_by_student").getCreationsByStudent;
|
|
103
110
|
insertCheckInRecord: typeof import("./community-web/check_in_record/insert").insertCheckInRecord;
|
|
104
111
|
likeComment: typeof import("./community-web/comment/like_record/create").likeComment;
|
|
@@ -129,6 +136,7 @@ declare const _default: {
|
|
|
129
136
|
communityWebCloudDatabase: {
|
|
130
137
|
saveProjectCloudVariable: typeof import("./community-web-cloud-database/cloud_variable/save").saveProjectCloudVariable;
|
|
131
138
|
saveUserCloudVariable: typeof import("./community-web-cloud-database/cloud_variable/save").saveUserCloudVariable;
|
|
139
|
+
getCloudVariableDetailV2: typeof import("./community-web-cloud-database/cloud_variable/detail/v2").getCloudVariableDetailV2;
|
|
132
140
|
};
|
|
133
141
|
opParentApi: {
|
|
134
142
|
createCaptcha: typeof import("./op-parent-api/captcha/create").createCaptcha;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccw-api/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "ccw api collections",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Meng Fuzi",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"build": "tsc --project tsconfig.node.json && tsc --project tsconfig.esm.json && tsc --project tsconfig.types.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ccw-api/axios": "^
|
|
32
|
+
"@ccw-api/axios": "^3.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/jest": "^30.0.0",
|