@seayoo-web/gamer-api 4.0.3 → 4.0.5

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.5",
3
4
  "description": "agent for gamer api",
4
- "version": "4.0.3",
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",
33
- "@seayoo-web/combo-webview": "2.8.0",
30
+ "@seayoo-web/scripts": "4.0.0",
31
+ "@seayoo-web/combo-webview": "2.8.1",
32
+ "@seayoo-web/utils": "4.4.1",
34
33
  "@seayoo-web/request": "4.0.5",
35
- "@seayoo-web/scripts": "3.1.11",
36
34
  "@seayoo-web/tsconfig": "1.0.6",
37
- "@seayoo-web/utils": "4.4.1",
38
35
  "@seayoo-web/validator": "2.3.0"
39
36
  },
40
37
  "peerDependencies": {
41
- "@seayoo-web/combo-webview": "^2.8.0",
38
+ "@seayoo-web/combo-webview": "^2.8.1",
42
39
  "@seayoo-web/utils": "^4.4.1",
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
  }
@@ -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> & {
@@ -442,6 +444,8 @@ export declare const UgcSocialMedia: {
442
444
  readonly Huya: "huya";
443
445
  /** 斗鱼 */
444
446
  readonly Douyu: "douyu";
447
+ /** 快手 */
448
+ readonly Kuaishou: "kuaishou";
445
449
  };
446
450
  export type UgcSocialMedia = ValueOf<typeof UgcSocialMedia>;
447
451
  export declare const UgcSocialMediaValidator: import("@seayoo-web/validator").StringValidator<UgcSocialMedia, false, false> & {
@@ -1,3 +1,3 @@
1
- export declare const console: Pick<Console, "log" | "error" | "warn">;
1
+ export declare const console: Pick<Console, "error" | "log" | "warn">;
2
2
  export declare function isRootEndpoint(path: string): boolean;
3
3
  export declare function getWeixinLoginCode(): Promise<string>;