@seayoo-web/gamer-api 2.13.16 → 2.13.18
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
CHANGED
|
@@ -1284,6 +1284,9 @@ const v = {
|
|
|
1284
1284
|
ugcs: e.array(
|
|
1285
1285
|
e.object({
|
|
1286
1286
|
ugc_id: e.number(),
|
|
1287
|
+
event_id: e.number().optional(),
|
|
1288
|
+
feature_id: e.number().optional(),
|
|
1289
|
+
feature_name: e.string().optional(),
|
|
1287
1290
|
review_status: kt,
|
|
1288
1291
|
title: e.string(),
|
|
1289
1292
|
content: e.string().optional(),
|
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.13.
|
|
4
|
+
"version": "2.13.18",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
|
+
"@seayoo-web/request": "3.4.2",
|
|
33
34
|
"@seayoo-web/combo-webview": "2.8.0",
|
|
34
|
-
"@seayoo-web/scripts": "3.1.6",
|
|
35
35
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
36
|
-
"@seayoo-web/request": "3.4.2",
|
|
37
36
|
"@seayoo-web/utils": "4.1.3",
|
|
37
|
+
"@seayoo-web/scripts": "3.1.6",
|
|
38
38
|
"@seayoo-web/validator": "2.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
package/types/src/event.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EngagementFeatureType, InferEngagementError, InferEngagementParam } from "./event.define";
|
|
2
|
-
import type { GamerItemType, RewardSource } from "./event.enums";
|
|
2
|
+
import type { GamerItemType, RewardSource, UgcReviewStatus } from "./event.enums";
|
|
3
3
|
import type { AuthToken } from "./token";
|
|
4
4
|
import type { RequestInternalError, IRequestOptions } from "@seayoo-web/request";
|
|
5
5
|
export * from "./event.define";
|
|
@@ -344,12 +344,14 @@ export declare class EventApi {
|
|
|
344
344
|
* https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=biEwrNKhAF
|
|
345
345
|
*/
|
|
346
346
|
getUgcRecord(option: {
|
|
347
|
-
/** 按照多个活动 ID
|
|
348
|
-
event_ids?:
|
|
347
|
+
/** 按照多个活动 ID 批量查询投稿记录,以逗号分隔。若传入此参数,不再进行单活动/玩法的精确匹配*/
|
|
348
|
+
event_ids?: string;
|
|
349
349
|
/** 单个活动 ID */
|
|
350
350
|
event_id?: number;
|
|
351
351
|
/** 活动玩法 ID */
|
|
352
352
|
feature_id?: number;
|
|
353
|
+
/** 审核状态 不传即查询所有状态的记录 */
|
|
354
|
+
review_status?: UgcReviewStatus;
|
|
353
355
|
/** 查询返回最大参与记录数 默认20*/
|
|
354
356
|
max_results?: number;
|
|
355
357
|
/** 分页标识,不传默认首页查询 */
|
|
@@ -30,6 +30,12 @@ export declare const UgcEngagementDataValidator: import("@seayoo-web/validator")
|
|
|
30
30
|
export interface UgcRecord {
|
|
31
31
|
/** 投稿记录 ID */
|
|
32
32
|
ugc_id: number;
|
|
33
|
+
/** 活动 ID */
|
|
34
|
+
event_id?: number;
|
|
35
|
+
/** 玩法 ID */
|
|
36
|
+
feature_id?: number;
|
|
37
|
+
/** 玩法名称 */
|
|
38
|
+
feature_name?: string;
|
|
33
39
|
/** 状态 */
|
|
34
40
|
review_status: UgcReviewStatus;
|
|
35
41
|
/** 标题 */
|
package/types/src/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const console: Pick<Console, "
|
|
1
|
+
export declare const console: Pick<Console, "log" | "error" | "warn">;
|
|
2
2
|
/** 检测是否在 combo webview */
|
|
3
3
|
export declare function inComboWebview(): boolean;
|
|
4
4
|
export declare function isRootEndpoint(path: string): boolean;
|