@seayoo-web/gamer-api 2.13.19 → 2.13.21
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/package.json +5 -5
- package/types/src/club.d.ts +2 -0
- package/types/src/event.d.ts +2 -1
- package/types/src/utils.d.ts +1 -1
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.21",
|
|
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/request": "3.4.2",
|
|
34
35
|
"@seayoo-web/scripts": "3.1.6",
|
|
35
|
-
"@seayoo-web/utils": "4.1.3",
|
|
36
36
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
37
|
-
"@seayoo-web/
|
|
37
|
+
"@seayoo-web/utils": "4.1.3",
|
|
38
38
|
"@seayoo-web/validator": "2.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@seayoo-web/
|
|
41
|
+
"@seayoo-web/combo-webview": "^2.8.0",
|
|
42
42
|
"@seayoo-web/validator": "^2.0.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/club.d.ts
CHANGED
|
@@ -165,6 +165,8 @@ export declare class ClubApi {
|
|
|
165
165
|
getProducts(option?: {
|
|
166
166
|
/** 游戏账号 ID,游戏外必传 */
|
|
167
167
|
player_id?: string;
|
|
168
|
+
/** 商品分类 ID */
|
|
169
|
+
catalog_id?: number;
|
|
168
170
|
}, requestOptions?: IRequestOptions): Promise<import("./club.define").ClubProduct[]>;
|
|
169
171
|
/**
|
|
170
172
|
* 兑换商城商品
|
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, UgcReviewStatus } from "./event.enums";
|
|
2
|
+
import type { GamerItemType, RewardSource, RewardStatus, 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";
|
|
@@ -209,6 +209,7 @@ export declare class EventApi {
|
|
|
209
209
|
/** 单次查询的数量,默认 20 */
|
|
210
210
|
max_results?: number;
|
|
211
211
|
next_token?: string;
|
|
212
|
+
reward_status?: RewardStatus;
|
|
212
213
|
}, requestOptions?: IRequestOptions): Promise<{
|
|
213
214
|
user_rewards: import("./event.engage").UserReward[];
|
|
214
215
|
next_token: string;
|
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, "error" | "log" | "warn">;
|
|
2
2
|
/** 检测是否在 combo webview */
|
|
3
3
|
export declare function inComboWebview(): boolean;
|
|
4
4
|
export declare function isRootEndpoint(path: string): boolean;
|