@seayoo-web/gamer-api 2.5.1 → 2.5.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 +277 -269
- package/package.json +5 -5
- package/types/src/event.config/feature.d.ts +3 -2
- package/types/src/event.config/feature.lottery.d.ts +1 -1
- package/types/src/event.config/feature.zeroChatgpt.d.ts +7 -0
- package/types/src/event.config/reward.d.ts +1 -1
- package/types/src/event.enums.d.ts +2 -0
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.5.
|
|
4
|
+
"version": "2.5.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
33
|
"@seayoo-web/combo-webview": "^2.5.4",
|
|
34
|
-
"@seayoo-web/request": "^3.2.0",
|
|
35
34
|
"@seayoo-web/scripts": "^2.6.0",
|
|
36
|
-
"@seayoo-web/
|
|
37
|
-
"@seayoo-web/
|
|
35
|
+
"@seayoo-web/tsconfig": "^1.0.4",
|
|
36
|
+
"@seayoo-web/request": "^3.2.0",
|
|
37
|
+
"@seayoo-web/utils": "^3.6.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@seayoo-web/combo-webview": "^2.5.4",
|
|
41
|
-
"@seayoo-web/utils": "^3.6.
|
|
41
|
+
"@seayoo-web/utils": "^3.6.1"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"prebuild": "pnpm -F request build && pnpm -F combo-webview build",
|
|
@@ -17,6 +17,7 @@ import { type EventFeatureConfigOfSubscribe } from "./feature.subscribe";
|
|
|
17
17
|
import { type EventFeatureConfigOfSurvey } from "./feature.survey";
|
|
18
18
|
import { type EventFeatureConfigOfTeam } from "./feature.team";
|
|
19
19
|
import { type EventFeatureConfigOfVote } from "./feature.vote";
|
|
20
|
+
import { type EventFeatureConfigOfZeroChatgpt } from "./feature.zeroChatgpt";
|
|
20
21
|
export * from "./feature.cashback";
|
|
21
22
|
export * from "./feature.checkIn";
|
|
22
23
|
export * from "./feature.claimRewards";
|
|
@@ -36,5 +37,5 @@ export * from "./feature.survey";
|
|
|
36
37
|
export * from "./feature.team";
|
|
37
38
|
export * from "./feature.vote";
|
|
38
39
|
export * from "./feature.claimActivationKey";
|
|
39
|
-
export type EventFeatureConfig = EventFeatureConfigOfCashback | EventFeatureConfigOfCheckIn | EventFeatureConfigOfClaimRewards | EventFeatureConfigOfComment | EventFeatureConfigOfFollow | EventFeatureConfigOfGiftCode | EventFeatureConfigOfInvite | EventFeatureConfigOfInvitedRegister | EventFeatureConfigOfLottery | EventFeatureConfigOfLotteryDraw | EventFeatureConfigOfPreregister | EventFeatureConfigOfQuest | EventFeatureConfigOfRegister | EventFeatureConfigOfShare | EventFeatureConfigOfSubscribe | EventFeatureConfigOfSurvey | EventFeatureConfigOfTeam | EventFeatureConfigOfVote | EventFeatureConfigOfClaimActivationKey;
|
|
40
|
-
export declare const EventFeatureConfigValidator: import("@seayoo-web/utils").UnionValidator<[import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCashback, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCheckIn, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimRewards, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfComment, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfFollow, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfGiftCode, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvite, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvitedRegister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLottery, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLotteryDraw, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfPreregister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfQuest, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfRegister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfShare, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSubscribe, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSurvey, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfTeam, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfVote, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimActivationKey, false, false>], false, false>;
|
|
40
|
+
export type EventFeatureConfig = EventFeatureConfigOfCashback | EventFeatureConfigOfCheckIn | EventFeatureConfigOfClaimRewards | EventFeatureConfigOfComment | EventFeatureConfigOfFollow | EventFeatureConfigOfGiftCode | EventFeatureConfigOfInvite | EventFeatureConfigOfInvitedRegister | EventFeatureConfigOfLottery | EventFeatureConfigOfLotteryDraw | EventFeatureConfigOfPreregister | EventFeatureConfigOfQuest | EventFeatureConfigOfRegister | EventFeatureConfigOfShare | EventFeatureConfigOfSubscribe | EventFeatureConfigOfSurvey | EventFeatureConfigOfTeam | EventFeatureConfigOfVote | EventFeatureConfigOfClaimActivationKey | EventFeatureConfigOfZeroChatgpt;
|
|
41
|
+
export declare const EventFeatureConfigValidator: import("@seayoo-web/utils").UnionValidator<[import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCashback, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCheckIn, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimRewards, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfComment, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfFollow, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfGiftCode, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvite, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvitedRegister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLottery, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLotteryDraw, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfPreregister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfQuest, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfRegister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfShare, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSubscribe, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSurvey, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfTeam, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfVote, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimActivationKey, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfZeroChatgpt, false, false>], false, false>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type InferType } from "@seayoo-web/utils";
|
|
2
2
|
import { type EventFeatureBaseConfig } from "./feature.base";
|
|
3
|
-
declare const rewardItemTypeValidator: import("@seayoo-web/utils").StringValidator<"
|
|
3
|
+
declare const rewardItemTypeValidator: import("@seayoo-web/utils").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "credit" | "external_gift_code" | "void_item", false, false>;
|
|
4
4
|
declare const featureType: "lottery";
|
|
5
5
|
export interface FeatureLotteryItemConfig {
|
|
6
6
|
/** 抽奖奖励道具 id */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type EventFeatureBaseConfig } from "./feature.base";
|
|
2
|
+
declare const featureType: "zero_chatgpt";
|
|
3
|
+
export type EventFeatureConfigOfZeroChatgpt = EventFeatureBaseConfig & {
|
|
4
|
+
feature_type: typeof featureType;
|
|
5
|
+
};
|
|
6
|
+
export declare const EventFeatureConfigOfZeroChatgptValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfZeroChatgpt, false, false>;
|
|
7
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InferType } from "@seayoo-web/utils";
|
|
2
|
-
declare const rewardItemTypeValidator: import("@seayoo-web/utils").StringValidator<"
|
|
2
|
+
declare const rewardItemTypeValidator: import("@seayoo-web/utils").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "credit" | "external_gift_code" | "void_item", false, false>;
|
|
3
3
|
export interface EventRewardItemConfig {
|
|
4
4
|
/** 玩法奖励道具 id */
|
|
5
5
|
reward_item_id: number;
|
|
@@ -142,6 +142,8 @@ export declare const FeatureType: {
|
|
|
142
142
|
readonly CheckIn: "check_in";
|
|
143
143
|
/** 领取激活码 */
|
|
144
144
|
readonly ClaimActivationKey: "claim_activation_key";
|
|
145
|
+
/** 不朽箴言特有的 AI 聊天 */
|
|
146
|
+
readonly ZeroChatgpt: "zero_chatgpt";
|
|
145
147
|
};
|
|
146
148
|
export type FeatureType = ValueOf<typeof FeatureType>;
|
|
147
149
|
export declare const FeatureTypeValidator: import("@seayoo-web/utils").StringValidator<FeatureType, false, false> & {
|