@seayoo-web/gamer-api 2.16.0 → 2.16.2
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 +766 -796
- package/package.json +6 -6
- package/types/src/event.d.ts +1 -0
- package/types/src/event.engage/engage.team.d.ts +2 -0
- package/types/src/event.enums.d.ts +2 -0
- package/types/src/token.d.ts +1 -1
- package/types/src/utils.d.ts +0 -7
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.16.
|
|
4
|
+
"version": "2.16.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
|
-
"@seayoo-web/combo-webview": "2.8.0",
|
|
34
|
-
"@seayoo-web/request": "3.4.2",
|
|
35
|
-
"@seayoo-web/scripts": "3.1.7",
|
|
36
|
-
"@seayoo-web/utils": "4.1.3",
|
|
37
33
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
34
|
+
"@seayoo-web/combo-webview": "2.8.0",
|
|
35
|
+
"@seayoo-web/request": "3.4.3",
|
|
36
|
+
"@seayoo-web/scripts": "3.1.8",
|
|
37
|
+
"@seayoo-web/utils": "4.3.0",
|
|
38
38
|
"@seayoo-web/validator": "2.3.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@seayoo-web/combo-webview": "^2.8.0",
|
|
42
|
-
"@seayoo-web/utils": "^4.
|
|
42
|
+
"@seayoo-web/utils": "^4.3.0",
|
|
43
43
|
"@seayoo-web/validator": "^2.3.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
package/types/src/event.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ export declare class EventApi {
|
|
|
127
127
|
server_name?: string;
|
|
128
128
|
role_id?: string;
|
|
129
129
|
role_name?: string;
|
|
130
|
+
avatar_url?: string;
|
|
130
131
|
}, requestOptions?: IRequestOptions): Promise<import("./event.define").EngageResponse | {
|
|
131
132
|
message: string;
|
|
132
133
|
error: RequestInternalError | InferEngagementError<T>;
|
|
@@ -18,6 +18,8 @@ export interface TeamMember {
|
|
|
18
18
|
role_name: string;
|
|
19
19
|
/** 服务器名 */
|
|
20
20
|
server_name: string;
|
|
21
|
+
/** 头像 URL */
|
|
22
|
+
avatar_url?: string;
|
|
21
23
|
}
|
|
22
24
|
export declare const TeamMemberValidator: import("@seayoo-web/validator").ObjectValidator<TeamMember, false, false>;
|
|
23
25
|
export interface TeamEngagementData {
|
|
@@ -196,6 +196,8 @@ export declare const QuestObjective: {
|
|
|
196
196
|
readonly OrderAmountInApp: "order_in_app_total_amount";
|
|
197
197
|
/** 支付中心充值金额 */
|
|
198
198
|
readonly OrderAmountInPayCenter: "order_seayoo_web_total_amount";
|
|
199
|
+
/** 组队进度 */
|
|
200
|
+
readonly TeamSize: "team_size";
|
|
199
201
|
};
|
|
200
202
|
export type QuestObjective = ValueOf<typeof QuestObjective>;
|
|
201
203
|
export declare const QuestObjectiveValidator: import("@seayoo-web/validator").StringValidator<QuestObjective, false, false> & {
|
package/types/src/token.d.ts
CHANGED
package/types/src/utils.d.ts
CHANGED
|
@@ -3,10 +3,3 @@ export declare const console: Pick<Console, "log" | "error" | "warn">;
|
|
|
3
3
|
export declare function inComboWebview(): boolean;
|
|
4
4
|
export declare function isRootEndpoint(path: string): boolean;
|
|
5
5
|
export declare function getWeixinLoginCode(): Promise<string>;
|
|
6
|
-
export type StorageHelper = {
|
|
7
|
-
set(key: string, value: string): void;
|
|
8
|
-
get(key: string): string;
|
|
9
|
-
remove(key: string): void;
|
|
10
|
-
};
|
|
11
|
-
export declare const localStorageHelper: StorageHelper;
|
|
12
|
-
export declare const weixinStorageHelper: StorageHelper;
|