@seayoo-web/gamer-api 4.0.3 → 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/dist/index.js +1754 -2787
- package/package.json +18 -18
- package/types/src/event.engage/index.d.ts +1 -1
- package/types/src/event.enums.d.ts +2 -0
- package/types/src/utils.d.ts +1 -1
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
|
-
"
|
|
5
|
-
"
|
|
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/
|
|
30
|
+
"@seayoo-web/scripts": "4.0.0",
|
|
31
|
+
"@seayoo-web/combo-webview": "2.8.1",
|
|
34
32
|
"@seayoo-web/request": "4.0.5",
|
|
35
|
-
"@seayoo-web/
|
|
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/
|
|
35
|
+
"@seayoo-web/tsconfig": "1.0.6"
|
|
39
36
|
},
|
|
40
37
|
"peerDependencies": {
|
|
41
|
-
"@seayoo-web/combo-webview": "^2.8.
|
|
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": "
|
|
50
|
-
"lint: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> & {
|
package/types/src/utils.d.ts
CHANGED