@seayoo-web/gamer-api 4.0.1 → 4.0.3

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
@@ -1199,7 +1199,8 @@ const v = {
1199
1199
  role_name: e.string(),
1200
1200
  is_leader: e.bool(),
1201
1201
  is_myself: e.bool().optional(),
1202
- progress: e.number().optional()
1202
+ progress: e.number().optional(),
1203
+ avatar_url: e.string().optional()
1203
1204
  }).lock(), qn = e.object({
1204
1205
  objective: ee,
1205
1206
  progress: e.number(),
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": "4.0.1",
4
+ "version": "4.0.3",
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": "4.0.4",
34
- "@seayoo-web/utils": "4.4.1",
35
33
  "@seayoo-web/combo-webview": "2.8.0",
34
+ "@seayoo-web/request": "4.0.5",
36
35
  "@seayoo-web/scripts": "3.1.11",
37
36
  "@seayoo-web/tsconfig": "1.0.6",
37
+ "@seayoo-web/utils": "4.4.1",
38
38
  "@seayoo-web/validator": "2.3.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -1,11 +1,11 @@
1
1
  import type { ApiMethodNames } from "./event.methods";
2
2
  import type { AuthToken } from "./token";
3
- import type { NetRequestHandler } from "@seayoo-web/request";
3
+ import type { NetRequestFactory } from "@seayoo-web/request";
4
4
  export type ApiMethod = (this: EventApi, ...args: any[]) => any;
5
5
  export type { ApiMethodNames } from "./event.methods";
6
6
  export declare class EventApi {
7
7
  token: AuthToken;
8
- req: NetRequestHandler;
8
+ req: ReturnType<NetRequestFactory>;
9
9
  private _event;
10
10
  get event(): number;
11
11
  constructor(authToken: AuthToken, eventId: number | string);
@@ -8,6 +8,8 @@ export type QuestTeamMember = {
8
8
  is_myself?: boolean;
9
9
  /** 当前用户任务进度值 */
10
10
  progress?: number;
11
+ /** 角色头像 URL,可能为空 */
12
+ avatar_url?: string;
11
13
  };
12
14
  export interface QuestEngagementData {
13
15
  /** 任务目标 */
@@ -1,3 +1,3 @@
1
- export declare const console: Pick<Console, "error" | "log" | "warn">;
1
+ export declare const console: Pick<Console, "log" | "error" | "warn">;
2
2
  export declare function isRootEndpoint(path: string): boolean;
3
3
  export declare function getWeixinLoginCode(): Promise<string>;