@seayoo-web/gamer-api 2.15.5 → 2.15.7
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.js +256 -233
- package/package.json +6 -6
- package/types/src/event.d.ts +1 -1
- package/types/src/event.engage/engage.ugc.d.ts +16 -7
- package/types/src/event.enums.d.ts +2 -0
- package/types/src/event.guards.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/gamer-api",
|
|
3
3
|
"description": "agent for gamer api",
|
|
4
|
-
"version": "2.15.
|
|
4
|
+
"version": "2.15.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
33
|
"@seayoo-web/combo-webview": "2.8.0",
|
|
34
|
-
"@seayoo-web/scripts": "3.1.6",
|
|
35
34
|
"@seayoo-web/request": "3.4.2",
|
|
35
|
+
"@seayoo-web/scripts": "3.1.7",
|
|
36
36
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
37
|
-
"@seayoo-web/
|
|
38
|
-
"@seayoo-web/
|
|
37
|
+
"@seayoo-web/validator": "2.3.0",
|
|
38
|
+
"@seayoo-web/utils": "4.1.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@seayoo-web/
|
|
41
|
+
"@seayoo-web/combo-webview": "^2.8.0",
|
|
42
42
|
"@seayoo-web/validator": "^2.3.0",
|
|
43
|
-
"@seayoo-web/
|
|
43
|
+
"@seayoo-web/utils": "^4.1.3"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
|
package/types/src/event.d.ts
CHANGED
|
@@ -427,7 +427,7 @@ export declare class EventApi {
|
|
|
427
427
|
/** 单页返回的最大数量,默认 20 */
|
|
428
428
|
max_results?: number;
|
|
429
429
|
next_token?: string;
|
|
430
|
-
}, requestOptions?: IRequestOptions): Promise<import("./event.engage").
|
|
430
|
+
}, requestOptions?: IRequestOptions): Promise<import("./event.engage").UgcRecordBaseResponse | {
|
|
431
431
|
message: string;
|
|
432
432
|
error: RequestInternalError | "event_not_found" | "feature_not_found";
|
|
433
433
|
}>;
|
|
@@ -27,19 +27,13 @@ export interface UgcEngagementData {
|
|
|
27
27
|
social_media_url?: string;
|
|
28
28
|
}
|
|
29
29
|
export declare const UgcEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<UgcEngagementData, false, false>;
|
|
30
|
-
export interface
|
|
30
|
+
export interface UgcRecordBase {
|
|
31
31
|
/** 投稿记录 ID */
|
|
32
32
|
ugc_id: number;
|
|
33
33
|
/** 活动 ID */
|
|
34
34
|
event_id?: number;
|
|
35
35
|
/** 玩法 ID */
|
|
36
36
|
feature_id?: number;
|
|
37
|
-
/** 玩法名称 */
|
|
38
|
-
feature_name?: string;
|
|
39
|
-
/** 状态 */
|
|
40
|
-
review_status: UgcReviewStatus;
|
|
41
|
-
/** 审核备注 */
|
|
42
|
-
reviewer_comment?: string;
|
|
43
37
|
/** 标题 */
|
|
44
38
|
title: string;
|
|
45
39
|
/** 描述 */
|
|
@@ -63,6 +57,21 @@ export interface UgcRecord {
|
|
|
63
57
|
/** 投稿记录创建时间,Unix timestamp in seconds */
|
|
64
58
|
created_at: number;
|
|
65
59
|
}
|
|
60
|
+
export interface UgcRecordBaseResponse {
|
|
61
|
+
/** 稿件列表 */
|
|
62
|
+
ugcs?: Array<UgcRecordBase>;
|
|
63
|
+
/** 分页标识,返回空表示后续没有数据了 */
|
|
64
|
+
next_token?: string;
|
|
65
|
+
}
|
|
66
|
+
export declare const UgcRecordBaseResponseValidator: import("@seayoo-web/validator").ObjectValidator<UgcRecordBaseResponse, false, false>;
|
|
67
|
+
export type UgcRecord = UgcRecordBase & {
|
|
68
|
+
/** 玩法名称 */
|
|
69
|
+
feature_name?: string;
|
|
70
|
+
/** 状态 */
|
|
71
|
+
review_status: UgcReviewStatus;
|
|
72
|
+
/** 审核备注 */
|
|
73
|
+
reviewer_comment?: string;
|
|
74
|
+
};
|
|
66
75
|
export interface UgcRecordResponse {
|
|
67
76
|
/** 稿件列表 */
|
|
68
77
|
ugcs?: Array<UgcRecord>;
|
|
@@ -258,6 +258,8 @@ export declare const RewardStatusValidator: import("@seayoo-web/validator").Stri
|
|
|
258
258
|
* 已获得奖励的奖励状态,不含有未领取状态
|
|
259
259
|
*/
|
|
260
260
|
export declare const RewardStatusSuffix: {
|
|
261
|
+
/** 未获得奖励 */
|
|
262
|
+
readonly Ineligible: "ineligible";
|
|
261
263
|
/** 奖励未领取 */
|
|
262
264
|
readonly Unclaimed: "unclaimed";
|
|
263
265
|
/** 奖励已领取 */
|
|
@@ -52,6 +52,7 @@ export declare const isVote2LeaderboardResponse: (data: unknown) => data is {
|
|
|
52
52
|
};
|
|
53
53
|
export declare const isCashbackQueryResponse: (data: unknown) => data is import("./event.engage").CashbackEngagementData;
|
|
54
54
|
export declare const isUgcResponse: (data: unknown) => data is import("./event.engage").UgcRecordResponse;
|
|
55
|
+
export declare const isUgBaseResponse: (data: unknown) => data is import("./event.engage").UgcRecordBaseResponse;
|
|
55
56
|
export declare const isUgcCountResponse: (data: unknown) => data is {
|
|
56
57
|
total_count: number;
|
|
57
58
|
};
|