@seayoo-web/gamer-api 4.0.2 → 4.0.4

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 CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "@seayoo-web/gamer-api",
3
+ "version": "4.0.4",
3
4
  "description": "agent for gamer api",
4
- "version": "4.0.2",
5
- "type": "module",
5
+ "license": "MIT",
6
+ "author": "web@seayoo.com",
6
7
  "source": "index.ts",
7
- "main": "./dist/index.js",
8
- "module": "./dist/index.js",
9
- "types": "./types/index.d.ts",
10
- "sideEffects": false,
11
8
  "files": [
12
9
  "dist",
13
10
  "types",
14
11
  "README.md"
15
12
  ],
13
+ "type": "module",
14
+ "sideEffects": false,
15
+ "main": "./dist/index.js",
16
+ "module": "./dist/index.js",
17
+ "types": "./types/index.d.ts",
16
18
  "exports": {
17
19
  ".": {
18
20
  "types": "./types/index.d.ts",
@@ -23,31 +25,29 @@
23
25
  "publishConfig": {
24
26
  "access": "public"
25
27
  },
26
- "engines": {
27
- "node": ">=22"
28
- },
29
- "author": "web@seayoo.com",
30
- "license": "MIT",
31
28
  "devDependencies": {
32
29
  "@types/node": "^22.13.1",
30
+ "@seayoo-web/scripts": "4.0.0",
31
+ "@seayoo-web/combo-webview": "2.8.1",
33
32
  "@seayoo-web/request": "4.0.5",
34
- "@seayoo-web/scripts": "3.1.11",
35
- "@seayoo-web/combo-webview": "2.8.0",
36
- "@seayoo-web/tsconfig": "1.0.6",
33
+ "@seayoo-web/validator": "2.3.0",
37
34
  "@seayoo-web/utils": "4.4.1",
38
- "@seayoo-web/validator": "2.3.0"
35
+ "@seayoo-web/tsconfig": "1.0.6"
39
36
  },
40
37
  "peerDependencies": {
38
+ "@seayoo-web/combo-webview": "^2.8.1",
41
39
  "@seayoo-web/utils": "^4.4.1",
42
- "@seayoo-web/combo-webview": "^2.8.0",
43
40
  "@seayoo-web/validator": "^2.3.0"
44
41
  },
42
+ "engines": {
43
+ "node": ">=22"
44
+ },
45
45
  "scripts": {
46
46
  "prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
47
47
  "build": "vite build && tsc --emitDeclarationOnly",
48
48
  "type-check": "tsc --noEmit",
49
- "lint": "eslint ./src/**/*.ts",
50
- "lint:fix": "eslint \"./src/**/*.{ts,js}\" --fix",
49
+ "lint": "oxlint -c ../../oxlint.config.mjs",
50
+ "lint:fix": "oxlint -c ../../oxlint.config.mjs --fix",
51
51
  "prepublish": "pnpm lint:fix && pnpm build"
52
52
  }
53
53
  }
@@ -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,7 +1,7 @@
1
+ import type { FeatureType } from "../event.enums";
1
2
  import type { UserEngagementData, CommentEngagementParam, PreregisterEngagementParam, LotteryEngagementParam, LotteryDrawEngagementParam, ShareEngagementParam, SubscribeEngagementParam, TeamEngagementParam, VoteEngagementParam, Vote2EngagementParam, UgcEngagementParam, UgcLikeEngagementParam, Vote2EngagementError, LotteryEngagementError, ClaimActivationKeyEngagementError, LotteryDrawEngagementError, TeamEngagementError, GiftCodeEngagementError, RedeemEngagementParam, RedeemEngagementError } from "./engage";
2
3
  import type { ZeroChatGPTEngagementParam } from "./engage.zeroChatGPT";
3
4
  import type { Reward } from "./reward";
4
- import type { FeatureType } from "../event.enums";
5
5
  export * from "./engage";
6
6
  export * from "./reward";
7
7
  export type UserEngagement = {
@@ -198,6 +198,8 @@ export declare const QuestObjective: {
198
198
  readonly OrderAmountInPayCenter: "order_seayoo_web_total_amount";
199
199
  /** 组队进度 */
200
200
  readonly TeamSize: "team_size";
201
+ /** 玩家分组 */
202
+ readonly UserGroup: "user_group";
201
203
  };
202
204
  export type QuestObjective = ValueOf<typeof QuestObjective>;
203
205
  export declare const QuestObjectiveValidator: import("@seayoo-web/validator").StringValidator<QuestObjective, false, false> & {