@seayoo-web/gamer-api 2.10.11 → 2.10.13

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.
Files changed (39) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +5 -5
  3. package/types/src/club.d.ts +1 -1
  4. package/types/src/event.config/feature.base.d.ts +2 -2
  5. package/types/src/event.config/feature.cashback.d.ts +1 -1
  6. package/types/src/event.config/feature.checkIn.d.ts +1 -1
  7. package/types/src/event.config/feature.claimActivationKey.d.ts +1 -1
  8. package/types/src/event.config/feature.claimRewards.d.ts +1 -1
  9. package/types/src/event.config/feature.comment.d.ts +1 -1
  10. package/types/src/event.config/feature.d.ts +21 -21
  11. package/types/src/event.config/feature.follow.d.ts +1 -1
  12. package/types/src/event.config/feature.giftcode.d.ts +1 -1
  13. package/types/src/event.config/feature.invite.d.ts +1 -1
  14. package/types/src/event.config/feature.invitedRegister.d.ts +1 -1
  15. package/types/src/event.config/feature.lottery.d.ts +3 -3
  16. package/types/src/event.config/feature.lotteryDraw.d.ts +1 -1
  17. package/types/src/event.config/feature.preregister.d.ts +1 -1
  18. package/types/src/event.config/feature.quest.d.ts +2 -2
  19. package/types/src/event.config/feature.register.d.ts +1 -1
  20. package/types/src/event.config/feature.share.d.ts +1 -1
  21. package/types/src/event.config/feature.subscribe.d.ts +1 -1
  22. package/types/src/event.config/feature.survey.d.ts +1 -1
  23. package/types/src/event.config/feature.team.d.ts +1 -1
  24. package/types/src/event.config/feature.vote.d.ts +3 -3
  25. package/types/src/event.config/feature.vote2.d.ts +2 -2
  26. package/types/src/event.config/feature.zeroChatgpt.d.ts +1 -1
  27. package/types/src/event.config/index.d.ts +1 -1
  28. package/types/src/event.config/reward.d.ts +2 -2
  29. package/types/src/event.define.d.ts +2 -2
  30. package/types/src/event.engage/engage.d.ts +15 -15
  31. package/types/src/event.engage/engage.lotteryDraw.d.ts +4 -3
  32. package/types/src/event.engage/engage.lotteryDraw.reward.d.ts +1 -1
  33. package/types/src/event.engage/engage.quest.d.ts +1 -1
  34. package/types/src/event.engage/engage.team.d.ts +1 -1
  35. package/types/src/event.engage/engage.vote2.d.ts +4 -2
  36. package/types/src/event.engage/index.d.ts +3 -3
  37. package/types/src/event.engage/reward.d.ts +3 -2
  38. package/types/src/token.d.ts +1 -1
  39. package/types/src/weixin.d.ts +1 -1
package/dist/index.js CHANGED
@@ -1204,7 +1204,8 @@ const v = {
1204
1204
  candidate_id: e.string(),
1205
1205
  is_winner: e.bool(),
1206
1206
  total_votes: e.number(),
1207
- my_votes: e.number()
1207
+ my_votes: e.number(),
1208
+ last_voted_ts: e.number()
1208
1209
  }), $n = e.object({
1209
1210
  role: e.string(),
1210
1211
  content: e.string()
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.10.11",
4
+ "version": "2.10.13",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -32,15 +32,15 @@
32
32
  "@types/node": "^22.13.1",
33
33
  "@seayoo-web/combo-webview": "2.7.0",
34
34
  "@seayoo-web/request": "3.4.0",
35
- "@seayoo-web/tsconfig": "1.0.5",
36
- "@seayoo-web/scripts": "3.1.3",
35
+ "@seayoo-web/scripts": "3.1.5",
37
36
  "@seayoo-web/utils": "4.1.3",
37
+ "@seayoo-web/tsconfig": "1.0.5",
38
38
  "@seayoo-web/validator": "1.1.1"
39
39
  },
40
40
  "peerDependencies": {
41
- "@seayoo-web/utils": "^4.1.3",
41
+ "@seayoo-web/combo-webview": "^2.7.0",
42
42
  "@seayoo-web/validator": "^1.1.1",
43
- "@seayoo-web/combo-webview": "^2.7.0"
43
+ "@seayoo-web/utils": "^4.1.3"
44
44
  },
45
45
  "scripts": {
46
46
  "prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
@@ -1,8 +1,8 @@
1
- import { type SomePartial } from "@seayoo-web/utils";
2
1
  import type { ClubAddress, ClubUserProfile, RedeemParams } from "./club.define";
3
2
  import type { ClubCreditChangeType, ClubItemType } from "./club.enums";
4
3
  import type { AuthToken } from "./token";
5
4
  import type { RequestInternalError, IRequestOptions } from "@seayoo-web/request";
5
+ import type { SomePartial } from "@seayoo-web/utils";
6
6
  export * from "./club.enums";
7
7
  export * from "./club.define";
8
8
  export declare class ClubApi {
@@ -1,5 +1,5 @@
1
- import { type EngageAccountType, type EventPeriodType } from "../event.enums";
2
- import { type FeatureReward } from "./reward";
1
+ import type { EngageAccountType, EventPeriodType } from "../event.enums";
2
+ import type { FeatureReward } from "./reward";
3
3
  export interface EventFeatureBaseConfig {
4
4
  /** 玩法名称 */
5
5
  feature_name: string;
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "cashback";
3
3
  export interface FeatureCashbackConfig {
4
4
  /** 计算充值总额的开始时间 */
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "check_in";
3
3
  export type EventFeatureConfigOfCheckIn = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "claim_activation_key";
3
3
  export type EventFeatureConfigOfClaimActivationKey = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "claim_rewards";
3
3
  export type EventFeatureConfigOfClaimRewards = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "comment";
3
3
  export interface FeatureCommentConfig {
4
4
  /** 活动配置的弹幕信息,用于快捷选择 */
@@ -1,24 +1,24 @@
1
- import { type EventFeatureConfigOfCashback } from "./feature.cashback";
2
- import { type EventFeatureConfigOfCheckIn } from "./feature.checkIn";
3
- import { type EventFeatureConfigOfClaimActivationKey } from "./feature.claimActivationKey";
4
- import { type EventFeatureConfigOfClaimRewards } from "./feature.claimRewards";
5
- import { type EventFeatureConfigOfComment } from "./feature.comment";
6
- import { type EventFeatureConfigOfFollow } from "./feature.follow";
7
- import { type EventFeatureConfigOfGiftCode } from "./feature.giftcode";
8
- import { type EventFeatureConfigOfInvite } from "./feature.invite";
9
- import { type EventFeatureConfigOfInvitedRegister } from "./feature.invitedRegister";
10
- import { type EventFeatureConfigOfLottery } from "./feature.lottery";
11
- import { type EventFeatureConfigOfLotteryDraw } from "./feature.lotteryDraw";
12
- import { type EventFeatureConfigOfPreregister } from "./feature.preregister";
13
- import { type EventFeatureConfigOfQuest } from "./feature.quest";
14
- import { type EventFeatureConfigOfRegister } from "./feature.register";
15
- import { type EventFeatureConfigOfShare } from "./feature.share";
16
- import { type EventFeatureConfigOfSubscribe } from "./feature.subscribe";
17
- import { type EventFeatureConfigOfSurvey } from "./feature.survey";
18
- import { type EventFeatureConfigOfTeam } from "./feature.team";
19
- import { type EventFeatureConfigOfVote } from "./feature.vote";
20
- import { type EventFeatureConfigOfVote2 } from "./feature.vote2";
21
- import { type EventFeatureConfigOfZeroChatgpt } from "./feature.zeroChatgpt";
1
+ import type { EventFeatureConfigOfCashback } from "./feature.cashback";
2
+ import type { EventFeatureConfigOfCheckIn } from "./feature.checkIn";
3
+ import type { EventFeatureConfigOfClaimActivationKey } from "./feature.claimActivationKey";
4
+ import type { EventFeatureConfigOfClaimRewards } from "./feature.claimRewards";
5
+ import type { EventFeatureConfigOfComment } from "./feature.comment";
6
+ import type { EventFeatureConfigOfFollow } from "./feature.follow";
7
+ import type { EventFeatureConfigOfGiftCode } from "./feature.giftcode";
8
+ import type { EventFeatureConfigOfInvite } from "./feature.invite";
9
+ import type { EventFeatureConfigOfInvitedRegister } from "./feature.invitedRegister";
10
+ import type { EventFeatureConfigOfLottery } from "./feature.lottery";
11
+ import type { EventFeatureConfigOfLotteryDraw } from "./feature.lotteryDraw";
12
+ import type { EventFeatureConfigOfPreregister } from "./feature.preregister";
13
+ import type { EventFeatureConfigOfQuest } from "./feature.quest";
14
+ import type { EventFeatureConfigOfRegister } from "./feature.register";
15
+ import type { EventFeatureConfigOfShare } from "./feature.share";
16
+ import type { EventFeatureConfigOfSubscribe } from "./feature.subscribe";
17
+ import type { EventFeatureConfigOfSurvey } from "./feature.survey";
18
+ import type { EventFeatureConfigOfTeam } from "./feature.team";
19
+ import type { EventFeatureConfigOfVote } from "./feature.vote";
20
+ import type { EventFeatureConfigOfVote2 } from "./feature.vote2";
21
+ import type { EventFeatureConfigOfZeroChatgpt } from "./feature.zeroChatgpt";
22
22
  export * from "./feature.cashback";
23
23
  export * from "./feature.checkIn";
24
24
  export * from "./feature.claimRewards";
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "follow";
3
3
  export interface FeatureFollowConfig {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "gift_code";
3
3
  export interface EventGiftItemConfig {
4
4
  /** 用于前端展示的游戏道具名称 */
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "invite";
3
3
  export interface FeatureInviteConfig {
4
4
  /** 邀请玩法配置分享链接 */
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "invited_register";
3
3
  export type EventFeatureConfigOfInvitedRegister = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
@@ -1,6 +1,6 @@
1
- import { type InferType } from "@seayoo-web/validator";
2
- import { type EventFeatureBaseConfig } from "./feature.base";
3
- declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "credit" | "external_gift_code" | "void_item", false, false>;
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
+ import type { InferType } from "@seayoo-web/validator";
3
+ declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"credit" | "event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "external_gift_code" | "void_item", false, false>;
4
4
  declare const featureType: "lottery";
5
5
  export interface FeatureLotteryItemConfig {
6
6
  /** 抽奖奖励道具 id */
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "lottery_draw";
3
3
  export interface FeatureLotteryDrawConfig {
4
4
  /** 可开奖起始时间 */
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "preregister";
3
3
  export type EventFeatureConfigOfPreregister = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
@@ -1,5 +1,5 @@
1
- import { type QuestObjective, type QuestProgressAlgorithm } from "../event.enums";
2
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { QuestObjective, QuestProgressAlgorithm } from "../event.enums";
2
+ import type { EventFeatureBaseConfig } from "./feature.base";
3
3
  declare const featureType: "quest";
4
4
  export interface FeatureQuestConfig {
5
5
  /** 任务目标 */
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "register";
3
3
  export type EventFeatureConfigOfRegister = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "share";
3
3
  export interface FeatureShareConfig {
4
4
  /** 分享玩法配置分享平台 */
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "weixin_subscribe";
3
3
  export interface FeatureSubscribeConfig {
4
4
  /** 一组微信订阅消息模版 ID */
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "survey";
3
3
  export interface FeatureSurveyConfig {
4
4
  /** 问卷 ID */
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "team";
3
3
  export interface FeatureTeamConfig {
4
4
  /** 队伍最大成员数 */
@@ -1,6 +1,6 @@
1
- import { type VoteOptionSource } from "../event.enums";
2
- import { type EventFeatureBaseConfig } from "./feature.base";
3
- import { type EventRewardItemConfig } from "./reward";
1
+ import type { VoteOptionSource } from "../event.enums";
2
+ import type { EventFeatureBaseConfig } from "./feature.base";
3
+ import type { EventRewardItemConfig } from "./reward";
4
4
  declare const featureType: "vote";
5
5
  export interface FeatureVoteOption {
6
6
  /** 选项标识 */
@@ -1,5 +1,5 @@
1
- import { type EventRewardItemConfig } from "../event";
2
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventRewardItemConfig } from "../event";
2
+ import type { EventFeatureBaseConfig } from "./feature.base";
3
3
  declare const featureType: "vote2";
4
4
  export interface FeatureVoteCandidate {
5
5
  /** 选项标识 */
@@ -1,4 +1,4 @@
1
- import { type EventFeatureBaseConfig } from "./feature.base";
1
+ import type { EventFeatureBaseConfig } from "./feature.base";
2
2
  declare const featureType: "zero_chatgpt";
3
3
  export type EventFeatureConfigOfZeroChatgpt = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
@@ -1,4 +1,4 @@
1
- import { type EventFeatureConfig } from "./feature";
1
+ import type { EventFeatureConfig } from "./feature";
2
2
  export * from "./feature";
3
3
  export * from "./reward";
4
4
  export interface EventConfig {
@@ -1,5 +1,5 @@
1
- import { type InferType } from "@seayoo-web/validator";
2
- declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "gift_code" | "activation_key" | "lottery_ticket" | "credit" | "external_gift_code" | "void_item", false, false>;
1
+ import type { InferType } from "@seayoo-web/validator";
2
+ declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"credit" | "event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "gift_code" | "activation_key" | "lottery_ticket" | "external_gift_code" | "void_item", false, false>;
3
3
  export interface EventRewardItemConfig {
4
4
  /** 玩法奖励道具 id */
5
5
  reward_item_id: number;
@@ -1,5 +1,5 @@
1
- import { type UserEngagementData, type EngageReward } from "./event.engage";
2
- import { type ClaimRewardStatus } from "./event.enums";
1
+ import type { UserEngagementData, EngageReward } from "./event.engage";
2
+ import type { ClaimRewardStatus } from "./event.enums";
3
3
  export * from "./event.config";
4
4
  export * from "./event.engage";
5
5
  export interface VerifyMobileResult {
@@ -1,18 +1,18 @@
1
- import { type CashbackEngagementData } from "./engage.cashback";
2
- import { type ClaimActivationKeyEngagementData } from "./engage.claimActivationKey";
3
- import { type GiftCodeEngagementData } from "./engage.giftcode";
4
- import { type InviteEngagementData } from "./engage.invite";
5
- import { type LotteryEngagementData } from "./engage.lottery";
6
- import { type LotteryDrawEngagementData } from "./engage.lotteryDraw";
7
- import { type PreregisterEngagementData } from "./engage.preregister";
8
- import { type QuestEngagementData } from "./engage.quest";
9
- import { type ShareEngagementData } from "./engage.share";
10
- import { type WeixinSubscribeEngagementData } from "./engage.subscribe";
11
- import { type SurveyEngagementData } from "./engage.survey";
12
- import { type TeamEngagementData } from "./engage.team";
13
- import { type VoteEngagementData } from "./engage.vote";
14
- import { type Vote2EngagementData } from "./engage.vote2";
15
- import { type ZeroChatGPTData } from "./engage.zeroChatGPT";
1
+ import type { CashbackEngagementData } from "./engage.cashback";
2
+ import type { ClaimActivationKeyEngagementData } from "./engage.claimActivationKey";
3
+ import type { GiftCodeEngagementData } from "./engage.giftcode";
4
+ import type { InviteEngagementData } from "./engage.invite";
5
+ import type { LotteryEngagementData } from "./engage.lottery";
6
+ import type { LotteryDrawEngagementData } from "./engage.lotteryDraw";
7
+ import type { PreregisterEngagementData } from "./engage.preregister";
8
+ import type { QuestEngagementData } from "./engage.quest";
9
+ import type { ShareEngagementData } from "./engage.share";
10
+ import type { WeixinSubscribeEngagementData } from "./engage.subscribe";
11
+ import type { SurveyEngagementData } from "./engage.survey";
12
+ import type { TeamEngagementData } from "./engage.team";
13
+ import type { VoteEngagementData } from "./engage.vote";
14
+ import type { Vote2EngagementData } from "./engage.vote2";
15
+ import type { ZeroChatGPTData } from "./engage.zeroChatGPT";
16
16
  export * from "./engage.cashback";
17
17
  export * from "./engage.comment";
18
18
  export * from "./engage.giftcode";
@@ -1,6 +1,7 @@
1
- import { type InferType } from "@seayoo-web/validator";
2
- import { LotteryTicketStatus, type LotteryDrawAction } from "../event.enums";
3
- import { type UserReward } from "./engage.lotteryDraw.reward";
1
+ import { LotteryTicketStatus } from "../event.enums";
2
+ import type { LotteryDrawAction } from "../event.enums";
3
+ import type { UserReward } from "./engage.lotteryDraw.reward";
4
+ import type { InferType } from "@seayoo-web/validator";
4
5
  export * from "./engage.lotteryDraw.reward";
5
6
  declare const noRewardStatus: import("@seayoo-web/validator").StringValidator<"unknown" | "pending", false, false>;
6
7
  export type LotteryDrawTicket = {
@@ -1,4 +1,4 @@
1
- import { type ClaimRewardStatus, type FeatureType, type GamerItemType, type RewardSource } from "../event.enums";
1
+ import type { ClaimRewardStatus, FeatureType, GamerItemType, RewardSource } from "../event.enums";
2
2
  export interface UserReward {
3
3
  /** 用户奖励记录 id */
4
4
  reward_id: number;
@@ -1,4 +1,4 @@
1
- import { type QuestObjective } from "../event.enums";
1
+ import type { QuestObjective } from "../event.enums";
2
2
  export type QuestTeamMember = {
3
3
  /** 角色名称 */
4
4
  role_name: string;
@@ -1,4 +1,4 @@
1
- import { type TeamAction, type TeamVisibility } from "../event.enums";
1
+ import type { TeamAction, TeamVisibility } from "../event.enums";
2
2
  /** 组队玩法的参与记录 */
3
3
  export interface TeamEngagement {
4
4
  /** 组队码 */
@@ -1,5 +1,5 @@
1
- import { type Vote2RewardType } from "../event.enums";
2
- import { type UserReward } from "./engage.lotteryDraw.reward";
1
+ import type { Vote2RewardType } from "../event.enums";
2
+ import type { UserReward } from "./engage.lotteryDraw.reward";
3
3
  export interface Vote2EngagementData {
4
4
  /** 用户投票选项 */
5
5
  candidate_id: string;
@@ -34,6 +34,8 @@ export interface CandidateVote {
34
34
  total_votes: number;
35
35
  /** 用户向候选者投入的总票数 */
36
36
  my_votes: number;
37
+ /**候选者最后一次被投票的时间,单位:秒 */
38
+ last_voted_ts: number;
37
39
  }
38
40
  export declare const CandidateVoteValidator: import("@seayoo-web/validator").ObjectValidator<CandidateVote, false, false>;
39
41
  export type Vote2EngagementError = "vote_not_started" | "vote_already_ended" | "vote_candidate_not_found" | "consume_item_not_enough";
@@ -1,5 +1,5 @@
1
- import { type UserEngagementData, type CommentEngagementParam, type PreregisterEngagementParam, type LotteryEngagementParam, type LotteryDrawEngagementParam, type ShareEngagementParam, type SubscribeEngagementParam, type TeamEngagementParam, type VoteEngagementParam, type Vote2EngagementParam, type Vote2EngagementError, type LotteryEngagementError, type ClaimActivationKeyEngagementError, type LotteryDrawEngagementError, type TeamEngagementError, type GiftCodeEngagementError } from "./engage";
2
- import { type Reward } from "./reward";
1
+ import type { UserEngagementData, CommentEngagementParam, PreregisterEngagementParam, LotteryEngagementParam, LotteryDrawEngagementParam, ShareEngagementParam, SubscribeEngagementParam, TeamEngagementParam, VoteEngagementParam, Vote2EngagementParam, Vote2EngagementError, LotteryEngagementError, ClaimActivationKeyEngagementError, LotteryDrawEngagementError, TeamEngagementError, GiftCodeEngagementError } from "./engage";
2
+ import type { Reward } from "./reward";
3
3
  import type { FeatureType } from "../event.enums";
4
4
  import type { ZeroChatGPTEngagementParam } from "./engage.zeroChatGPT";
5
5
  export * from "./engage";
@@ -32,7 +32,7 @@ export declare const UserEngagementValidator: import("@seayoo-web/validator").Ob
32
32
  /**
33
33
  * 部分玩法参与时需要提供的参数
34
34
  */
35
- export type EngagementParam = PreregisterEngagementParam | LotteryEngagementParam | CommentEngagementParam | ShareEngagementParam | VoteEngagementParam | Vote2EngagementParam | SubscribeEngagementParam | TeamEngagementParam | LotteryDrawEngagementParam | ZeroChatGPTEngagementParam;
35
+ export type EngagementParam = null | PreregisterEngagementParam | LotteryEngagementParam | CommentEngagementParam | ShareEngagementParam | VoteEngagementParam | Vote2EngagementParam | SubscribeEngagementParam | TeamEngagementParam | LotteryDrawEngagementParam | ZeroChatGPTEngagementParam;
36
36
  export type EngagementFeatureType = FeatureType | unknown;
37
37
  /**
38
38
  * 根据玩法类型推导需要提交的参数数据类型
@@ -1,5 +1,6 @@
1
- import { RewardItemType, type RewardSource, type RewardStatusSuffix } from "../event.enums";
2
- import { type UserEngagementData } from "./engage";
1
+ import { RewardItemType } from "../event.enums";
2
+ import type { RewardSource, RewardStatusSuffix } from "../event.enums";
3
+ import type { UserEngagementData } from "./engage";
3
4
  export interface Reward {
4
5
  /** 用户奖励记录 id */
5
6
  reward_id: number;
@@ -1,4 +1,4 @@
1
- import { type StorageHelper } from "./utils";
1
+ import type { StorageHelper } from "./utils";
2
2
  import type { NetRequestFactory } from "@seayoo-web/request";
3
3
  export * from "./token.define";
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { type WeixinWebLoginErrorCode } from "./weixin.define";
2
1
  import type { AuthToken } from "./token";
2
+ import type { WeixinWebLoginErrorCode } from "./weixin.define";
3
3
  import type { IRequestOptions, RequestInternalError } from "@seayoo-web/request";
4
4
  export * from "./weixin.define";
5
5
  export declare class WeixinApi {