@seayoo-web/gamer-api 2.5.9 → 2.7.0

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 (53) hide show
  1. package/dist/index.js +402 -398
  2. package/package.json +10 -8
  3. package/types/src/club.d.ts +4 -1
  4. package/types/src/club.define.d.ts +18 -18
  5. package/types/src/club.enums.d.ts +6 -6
  6. package/types/src/community.define.d.ts +22 -22
  7. package/types/src/community.enums.d.ts +5 -5
  8. package/types/src/event.config/feature.base.d.ts +1 -1
  9. package/types/src/event.config/feature.cashback.d.ts +1 -1
  10. package/types/src/event.config/feature.checkIn.d.ts +1 -1
  11. package/types/src/event.config/feature.claimActivationKey.d.ts +1 -1
  12. package/types/src/event.config/feature.claimRewards.d.ts +1 -1
  13. package/types/src/event.config/feature.comment.d.ts +1 -1
  14. package/types/src/event.config/feature.d.ts +1 -1
  15. package/types/src/event.config/feature.follow.d.ts +1 -1
  16. package/types/src/event.config/feature.giftcode.d.ts +1 -1
  17. package/types/src/event.config/feature.invite.d.ts +1 -1
  18. package/types/src/event.config/feature.invitedRegister.d.ts +1 -1
  19. package/types/src/event.config/feature.lottery.d.ts +3 -3
  20. package/types/src/event.config/feature.lotteryDraw.d.ts +1 -1
  21. package/types/src/event.config/feature.preregister.d.ts +1 -1
  22. package/types/src/event.config/feature.quest.d.ts +1 -1
  23. package/types/src/event.config/feature.register.d.ts +1 -1
  24. package/types/src/event.config/feature.share.d.ts +1 -1
  25. package/types/src/event.config/feature.subscribe.d.ts +1 -1
  26. package/types/src/event.config/feature.survey.d.ts +1 -1
  27. package/types/src/event.config/feature.team.d.ts +1 -1
  28. package/types/src/event.config/feature.vote.d.ts +1 -1
  29. package/types/src/event.config/feature.zeroChatgpt.d.ts +1 -1
  30. package/types/src/event.config/index.d.ts +1 -1
  31. package/types/src/event.config/reward.d.ts +6 -6
  32. package/types/src/event.d.ts +3 -3
  33. package/types/src/event.define.d.ts +4 -4
  34. package/types/src/event.engage/engage.cashback.d.ts +1 -1
  35. package/types/src/event.engage/engage.claimActivationKey.d.ts +1 -1
  36. package/types/src/event.engage/engage.comment.d.ts +1 -1
  37. package/types/src/event.engage/engage.d.ts +5 -5
  38. package/types/src/event.engage/engage.giftcode.d.ts +1 -1
  39. package/types/src/event.engage/engage.invite.d.ts +1 -1
  40. package/types/src/event.engage/engage.lottery.d.ts +1 -1
  41. package/types/src/event.engage/engage.lotteryDraw.d.ts +3 -3
  42. package/types/src/event.engage/engage.lotteryDraw.reward.d.ts +1 -1
  43. package/types/src/event.engage/engage.preregister.d.ts +1 -1
  44. package/types/src/event.engage/engage.quest.d.ts +1 -1
  45. package/types/src/event.engage/engage.share.d.ts +1 -1
  46. package/types/src/event.engage/engage.subscribe.d.ts +1 -1
  47. package/types/src/event.engage/engage.survey.d.ts +1 -1
  48. package/types/src/event.engage/engage.team.d.ts +3 -3
  49. package/types/src/event.engage/engage.vote.d.ts +1 -1
  50. package/types/src/event.engage/engage.zeroChatGPT.d.ts +2 -2
  51. package/types/src/event.engage/index.d.ts +1 -1
  52. package/types/src/event.engage/reward.d.ts +2 -2
  53. package/types/src/event.enums.d.ts +16 -16
@@ -10,5 +10,5 @@ export type EventFeatureConfigOfSurvey = EventFeatureBaseConfig & {
10
10
  feature_type: typeof featureType;
11
11
  config: FeatureSurveyConfig;
12
12
  };
13
- export declare const EventFeatureConfigOfSurveyValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSurvey, false, false>;
13
+ export declare const EventFeatureConfigOfSurveyValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfSurvey, false, false>;
14
14
  export {};
@@ -10,5 +10,5 @@ export type EventFeatureConfigOfTeam = EventFeatureBaseConfig & {
10
10
  feature_type: typeof featureType;
11
11
  config: FeatureTeamConfig;
12
12
  };
13
- export declare const EventFeatureConfigOfTeamValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfTeam, false, false>;
13
+ export declare const EventFeatureConfigOfTeamValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfTeam, false, false>;
14
14
  export {};
@@ -40,5 +40,5 @@ export type EventFeatureConfigOfVote = EventFeatureBaseConfig & {
40
40
  feature_type: typeof featureType;
41
41
  config: FeatureVoteConfig;
42
42
  };
43
- export declare const EventFeatureConfigOfVoteValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfVote, false, false>;
43
+ export declare const EventFeatureConfigOfVoteValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfVote, false, false>;
44
44
  export {};
@@ -3,5 +3,5 @@ declare const featureType: "zero_chatgpt";
3
3
  export type EventFeatureConfigOfZeroChatgpt = EventFeatureBaseConfig & {
4
4
  feature_type: typeof featureType;
5
5
  };
6
- export declare const EventFeatureConfigOfZeroChatgptValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfZeroChatgpt, false, false>;
6
+ export declare const EventFeatureConfigOfZeroChatgptValidator: import("@seayoo-web/validator").ObjectValidator<EventFeatureConfigOfZeroChatgpt, false, false>;
7
7
  export {};
@@ -15,7 +15,7 @@ export interface EventConfig {
15
15
  /** 活动下玩法列表 */
16
16
  features: EventFeatureConfig[];
17
17
  }
18
- export declare const EventConfigValidator: import("@seayoo-web/utils").ObjectValidator<EventConfig, false, false> & {
18
+ export declare const EventConfigValidator: import("@seayoo-web/validator").ObjectValidator<EventConfig, false, false> & {
19
19
  plain: never;
20
20
  optional: never;
21
21
  maybeNull: never;
@@ -1,5 +1,5 @@
1
- import { type InferType } from "@seayoo-web/utils";
2
- declare const rewardItemTypeValidator: import("@seayoo-web/utils").StringValidator<"credit" | "activation_key" | "event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "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" | "activation_key" | "event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "external_gift_code" | "void_item", false, false>;
3
3
  export interface EventRewardItemConfig {
4
4
  /** 玩法奖励道具 id */
5
5
  reward_item_id: number;
@@ -16,7 +16,7 @@ export interface EventRewardItemConfig {
16
16
  /** 奖励道具评级,用于前端展示 */
17
17
  reward_item_rating: number;
18
18
  }
19
- export declare const EventRewardItemConfigValidator: import("@seayoo-web/utils").ObjectValidator<EventRewardItemConfig, false, false> & {
19
+ export declare const EventRewardItemConfigValidator: import("@seayoo-web/validator").ObjectValidator<EventRewardItemConfig, false, false> & {
20
20
  plain: never;
21
21
  optional: never;
22
22
  maybeNull: never;
@@ -26,7 +26,7 @@ export interface RegularReward {
26
26
  engage_count: number;
27
27
  rewards: EventRewardItemConfig[];
28
28
  }
29
- export declare const RegularRewardValidator: import("@seayoo-web/utils").ObjectValidator<RegularReward, false, false> & {
29
+ export declare const RegularRewardValidator: import("@seayoo-web/validator").ObjectValidator<RegularReward, false, false> & {
30
30
  plain: never;
31
31
  optional: never;
32
32
  maybeNull: never;
@@ -39,10 +39,10 @@ export type FeatureReward = {
39
39
  feature_reward_type: "regular";
40
40
  reward_details: RegularReward[];
41
41
  };
42
- export declare const FeatureRewardValidator: import("@seayoo-web/utils").UnionValidator<[import("@seayoo-web/utils").ObjectValidator<{
42
+ export declare const FeatureRewardValidator: import("@seayoo-web/validator").UnionValidator<[import("@seayoo-web/validator").ObjectValidator<{
43
43
  feature_reward_type: "every";
44
44
  reward_details: EventRewardItemConfig[];
45
- }, false, false>, import("@seayoo-web/utils").ObjectValidator<{
45
+ }, false, false>, import("@seayoo-web/validator").ObjectValidator<{
46
46
  feature_reward_type: "regular";
47
47
  reward_details: RegularReward[];
48
48
  }, false, false>], false, false> & {
@@ -131,7 +131,7 @@ export declare class EventApi {
131
131
  role_name?: string;
132
132
  }, requestOptions?: IRequestOptions): Promise<import("./event.define").EngageResponse | {
133
133
  message: string;
134
- error: RequestInternalError | "event_not_found" | "feature_not_found" | "invalid_weixin_appid" | "invalid_weixin_openid" | "event_not_started" | "event_already_ended" | "engage_feature_reached_limit" | "comment_too_frequently" | "lottery_reward_is_empty" | "invalid_merchant_parameter" | "budget_not_enough" | "combo_id_not_found" | "query_user_order_total_amount_err" | "unique_gift_code_is_empty" | "player_created_at_out_of_range" | "user_had_joined_a_team" | "team_is_full" | "disband_team_not_allowed" | "change_team_visibility_not_allowed" | "team_not_found" | "join_team_conflict" | "team_has_been_disbanded" | "exceeded_assembled_team_limit" | "invalid_engage_lottery_draw_ticket" | "lottery_ticket_not_found" | "draw_lottery_ticket_not_start" | "draw_lottery_ticket_is_ended" | "activation_group_not_found" | "activation_group_expired" | "no_claim_activation_key_eligibility" | "no_activation_key_available" | "activation_key_all_claimed";
134
+ error: RequestInternalError | "event_not_found" | "visit_record_not_found" | "feature_not_found" | "invalid_weixin_appid" | "invalid_weixin_openid" | "event_not_started" | "event_already_ended" | "engage_feature_reached_limit" | "comment_too_frequently" | "lottery_reward_is_empty" | "invalid_merchant_parameter" | "budget_not_enough" | "combo_id_not_found" | "query_user_order_total_amount_err" | "unique_gift_code_is_empty" | "player_created_at_out_of_range" | "user_had_joined_a_team" | "team_is_full" | "disband_team_not_allowed" | "change_team_visibility_not_allowed" | "team_not_found" | "join_team_conflict" | "team_has_been_disbanded" | "exceeded_assembled_team_limit" | "invalid_engage_lottery_draw_ticket" | "lottery_ticket_not_found" | "draw_lottery_ticket_not_start" | "draw_lottery_ticket_is_ended" | "activation_group_not_found" | "activation_group_expired" | "no_claim_activation_key_eligibility" | "no_activation_key_available" | "activation_key_all_claimed";
135
135
  }>;
136
136
  /**
137
137
  * 用户领取除红包和实物奖励以外的所有奖励
@@ -229,8 +229,8 @@ export declare class EventApi {
229
229
  submitUserRewardAddress(option: {
230
230
  /** 用户奖励记录 id */
231
231
  reward_id: number;
232
- /** 用户收货地址 id */
233
- address_id: number;
232
+ /** @deprecated 即将废弃,请勿再使用 */
233
+ address_id?: number;
234
234
  /** 收件人称呼 */
235
235
  recipient: string;
236
236
  /** 收件人手机号 */
@@ -8,7 +8,7 @@ export interface VerifyMobileResult {
8
8
  /** 手机号是否已注册世游通行证 */
9
9
  registered: boolean;
10
10
  }
11
- export declare const VerifyMobileResultValidator: import("@seayoo-web/utils").ObjectValidator<VerifyMobileResult, false, false>;
11
+ export declare const VerifyMobileResultValidator: import("@seayoo-web/validator").ObjectValidator<VerifyMobileResult, false, false>;
12
12
  export interface UserFeatureStatus {
13
13
  /** 玩法 ID */
14
14
  feature_id: number;
@@ -21,7 +21,7 @@ export interface UserFeatureStatus {
21
21
  /** 是否有已获得但尚未领取的玩法参与奖励 */
22
22
  has_unclaimed_rewards: boolean;
23
23
  }
24
- export declare const UserFeatureStatusValidator: import("@seayoo-web/utils").ObjectValidator<UserFeatureStatus, false, false>;
24
+ export declare const UserFeatureStatusValidator: import("@seayoo-web/validator").ObjectValidator<UserFeatureStatus, false, false>;
25
25
  export interface EngageResponse {
26
26
  /** 当前参与记录 ID */
27
27
  engagement_id: number;
@@ -38,11 +38,11 @@ export interface EngageResponse {
38
38
  /** 参与玩法后是否需要微信扫码 */
39
39
  scan?: boolean;
40
40
  }
41
- export declare const EngageResponseValidator: import("@seayoo-web/utils").ObjectValidator<EngageResponse, false, false>;
41
+ export declare const EngageResponseValidator: import("@seayoo-web/validator").ObjectValidator<EngageResponse, false, false>;
42
42
  export interface ClaimedItem {
43
43
  /** 用户奖励记录 id */
44
44
  reward_id: number;
45
45
  /** 领取后的奖励状态 */
46
46
  reward_status: ClaimRewardStatus;
47
47
  }
48
- export declare const ClaimedItemValidator: import("@seayoo-web/utils").ObjectValidator<ClaimedItem, false, false>;
48
+ export declare const ClaimedItemValidator: import("@seayoo-web/validator").ObjectValidator<ClaimedItem, false, false>;
@@ -6,4 +6,4 @@ export interface CashbackEngagementData {
6
6
  /** 充值返还的总金额所对应的游戏道具数量 */
7
7
  game_item_count: `${number}` | number;
8
8
  }
9
- export declare const CashbackEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<CashbackEngagementData, false, false>;
9
+ export declare const CashbackEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<CashbackEngagementData, false, false>;
@@ -2,4 +2,4 @@ export interface ClaimActivationKeyEngagementData {
2
2
  /** 激活码 */
3
3
  activation_key: string;
4
4
  }
5
- export declare const ClaimActivationKeyEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<ClaimActivationKeyEngagementData, false, false>;
5
+ export declare const ClaimActivationKeyEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<ClaimActivationKeyEngagementData, false, false>;
@@ -13,7 +13,7 @@ export interface CommentEngagement {
13
13
  /** 用户发布弹幕的时间 */
14
14
  created_at: number;
15
15
  }
16
- export declare const CommentEngagementValidator: import("@seayoo-web/utils").ObjectValidator<CommentEngagement, false, false>;
16
+ export declare const CommentEngagementValidator: import("@seayoo-web/validator").ObjectValidator<CommentEngagement, false, false>;
17
17
  export interface CommentEngagementParam {
18
18
  /** 用户发送弹幕内容 */
19
19
  comment: string;
@@ -28,11 +28,11 @@ export * from "./engage.vote";
28
28
  export * from "./engage.claimActivationKey";
29
29
  export type EmptyObject = Record<string | number | symbol, never>;
30
30
  export type UserEngagementData = PreregisterEngagementData | LotteryEngagementData | SurveyEngagementData | InviteEngagementData | ShareEngagementData | VoteEngagementData | WeixinSubscribeEngagementData | CashbackEngagementData | GiftCodeEngagementData | TeamEngagementData | QuestEngagementData | LotteryDrawEngagementData | ClaimActivationKeyEngagementData | ZeroChatGPTData | EmptyObject;
31
- export declare const UserEngagementDataValidator: import("@seayoo-web/utils").UnionValidator<[import("@seayoo-web/utils").ObjectValidator<{
31
+ export declare const UserEngagementDataValidator: import("@seayoo-web/validator").UnionValidator<[import("@seayoo-web/validator").ObjectValidator<{
32
32
  platforms: string[];
33
- }, false, false>, import("@seayoo-web/utils").ObjectValidator<LotteryEngagementData, false, false>, import("@seayoo-web/utils").ObjectValidator<{
33
+ }, false, false>, import("@seayoo-web/validator").ObjectValidator<LotteryEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<{
34
34
  serial_number: number;
35
- }, false, false>, import("@seayoo-web/utils").ObjectValidator<InviteEngagementData, false, false>, import("@seayoo-web/utils").ObjectValidator<ShareEngagementData, false, false>, import("@seayoo-web/utils").ObjectValidator<VoteEngagementData, false, false>, import("@seayoo-web/utils").ObjectValidator<WeixinSubscribeEngagementData, false, false>, import("@seayoo-web/utils").ObjectValidator<CashbackEngagementData, false, false>, import("@seayoo-web/utils").ObjectValidator<GiftCodeEngagementData, false, false>, import("@seayoo-web/utils").ObjectValidator<TeamEngagementData, false, false>, import("@seayoo-web/utils").ObjectValidator<QuestEngagementData, false, false>, import("@seayoo-web/utils").ObjectValidator<{
35
+ }, false, false>, import("@seayoo-web/validator").ObjectValidator<InviteEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<ShareEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<VoteEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<WeixinSubscribeEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<CashbackEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<GiftCodeEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<TeamEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<QuestEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<{
36
36
  tickets: ({
37
37
  ticket: /*elided*/ any;
38
38
  status: /*elided*/ any;
@@ -41,12 +41,12 @@ export declare const UserEngagementDataValidator: import("@seayoo-web/utils").Un
41
41
  status: /*elided*/ any;
42
42
  reward: /*elided*/ any;
43
43
  })[];
44
- }, false, false>, import("@seayoo-web/utils").ObjectValidator<ClaimActivationKeyEngagementData, false, false>, import("@seayoo-web/utils").ObjectValidator<{
44
+ }, false, false>, import("@seayoo-web/validator").ObjectValidator<ClaimActivationKeyEngagementData, false, false>, import("@seayoo-web/validator").ObjectValidator<{
45
45
  conversations: {
46
46
  role: /*elided*/ any;
47
47
  content: /*elided*/ any;
48
48
  }[];
49
- }, false, false>, import("@seayoo-web/utils").CustomValidator<EmptyObject, false, false>], false, false> & {
49
+ }, false, false>, import("@seayoo-web/validator").CustomValidator<EmptyObject, false, false>], false, false> & {
50
50
  optional: never;
51
51
  maybeNull: never;
52
52
  key: never;
@@ -2,4 +2,4 @@ export interface GiftCodeEngagementData {
2
2
  /** 礼包码 */
3
3
  gift_code: string;
4
4
  }
5
- export declare const GiftCodeEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<GiftCodeEngagementData, false, false>;
5
+ export declare const GiftCodeEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<GiftCodeEngagementData, false, false>;
@@ -6,4 +6,4 @@ export interface InviteEngagementData {
6
6
  /** 被邀请人头像地址 */
7
7
  avatar_url?: string;
8
8
  }
9
- export declare const InviteEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<InviteEngagementData, false, false>;
9
+ export declare const InviteEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<InviteEngagementData, false, false>;
@@ -2,7 +2,7 @@ export interface LotteryEngagementData {
2
2
  /** 用户抽奖次数 */
3
3
  lottery_count: number;
4
4
  }
5
- export declare const LotteryEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<LotteryEngagementData, false, false>;
5
+ export declare const LotteryEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<LotteryEngagementData, false, false>;
6
6
  export interface LotteryEngagementParam {
7
7
  /** 用户抽奖次数 */
8
8
  lottery_count: number;
@@ -1,8 +1,8 @@
1
- import { type InferType } from "@seayoo-web/utils";
1
+ import { type InferType } from "@seayoo-web/validator";
2
2
  import { LotteryTicketStatus, type LotteryDrawAction } from "../event.enums";
3
3
  import { type UserReward } from "./engage.lotteryDraw.reward";
4
4
  export * from "./engage.lotteryDraw.reward";
5
- declare const noRewardStatus: import("@seayoo-web/utils").StringValidator<"unknown" | "pending", false, false>;
5
+ declare const noRewardStatus: import("@seayoo-web/validator").StringValidator<"unknown" | "pending", false, false>;
6
6
  export type LotteryDrawTicket = {
7
7
  /** 抽奖券 */
8
8
  ticket: string;
@@ -19,7 +19,7 @@ export type LotteryDrawTicket = {
19
19
  export interface LotteryDrawEngagementData {
20
20
  tickets: LotteryDrawTicket[];
21
21
  }
22
- export declare const LotteryDrawEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<{
22
+ export declare const LotteryDrawEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<{
23
23
  tickets: ({
24
24
  ticket: /*elided*/ any;
25
25
  status: /*elided*/ any;
@@ -39,4 +39,4 @@ export interface UserReward {
39
39
  */
40
40
  extra_data?: Record<string, unknown>;
41
41
  }
42
- export declare const UserRewardValidator: import("@seayoo-web/utils").ObjectValidator<UserReward, false, false>;
42
+ export declare const UserRewardValidator: import("@seayoo-web/validator").ObjectValidator<UserReward, false, false>;
@@ -2,7 +2,7 @@ export interface PreregisterEngagementData {
2
2
  /** 用户预约平台 */
3
3
  platforms: string[];
4
4
  }
5
- export declare const PreregisterEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<{
5
+ export declare const PreregisterEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<{
6
6
  platforms: string[];
7
7
  }, false, false>;
8
8
  export interface PreregisterEngagementParam {
@@ -25,4 +25,4 @@ export interface QuestEngagementData {
25
25
  }[];
26
26
  };
27
27
  }
28
- export declare const QuestEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<QuestEngagementData, false, false>;
28
+ export declare const QuestEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<QuestEngagementData, false, false>;
@@ -2,7 +2,7 @@ export interface ShareEngagementData {
2
2
  /** 用户分享到对应的平台 */
3
3
  platform: string;
4
4
  }
5
- export declare const ShareEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<ShareEngagementData, false, false>;
5
+ export declare const ShareEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<ShareEngagementData, false, false>;
6
6
  export interface ShareEngagementParam {
7
7
  /** 用户分享到对应的平台 */
8
8
  platform: string;
@@ -1,7 +1,7 @@
1
1
  export interface WeixinSubscribeEngagementData {
2
2
  weixin_openid: string;
3
3
  }
4
- export declare const WeixinSubscribeEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<WeixinSubscribeEngagementData, false, false>;
4
+ export declare const WeixinSubscribeEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<WeixinSubscribeEngagementData, false, false>;
5
5
  export interface SubscribeEngagementParam {
6
6
  /**
7
7
  * 小程序调用 wx.requestSubscribeMessage 并收到 success 回调后,得到的订阅结果。
@@ -2,6 +2,6 @@ export interface SurveyEngagementData {
2
2
  /** 用户填写问卷流水号 */
3
3
  serial_number: number;
4
4
  }
5
- export declare const SurveyEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<{
5
+ export declare const SurveyEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<{
6
6
  serial_number: number;
7
7
  }, false, false>;
@@ -8,7 +8,7 @@ export interface TeamEngagement {
8
8
  /** 队员数量 */
9
9
  total_members: number;
10
10
  }
11
- export declare const TeamEngagementValidator: import("@seayoo-web/utils").ObjectValidator<TeamEngagement, false, false>;
11
+ export declare const TeamEngagementValidator: import("@seayoo-web/validator").ObjectValidator<TeamEngagement, false, false>;
12
12
  export interface TeamMember {
13
13
  /** 是否为队长 */
14
14
  is_leader: boolean;
@@ -19,7 +19,7 @@ export interface TeamMember {
19
19
  /** 服务器名 */
20
20
  server_name: string;
21
21
  }
22
- export declare const TeamMemberValidator: import("@seayoo-web/utils").ObjectValidator<TeamMember, false, false>;
22
+ export declare const TeamMemberValidator: import("@seayoo-web/validator").ObjectValidator<TeamMember, false, false>;
23
23
  export interface TeamEngagementData {
24
24
  /** 组队码 */
25
25
  team_code: string;
@@ -28,7 +28,7 @@ export interface TeamEngagementData {
28
28
  /** 队员信息 */
29
29
  members: TeamMember[];
30
30
  }
31
- export declare const TeamEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<TeamEngagementData, false, false>;
31
+ export declare const TeamEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<TeamEngagementData, false, false>;
32
32
  export type TeamEngagementParam = {
33
33
  /** 操作类型 */
34
34
  action: typeof TeamAction.ChangeVisibility;
@@ -2,7 +2,7 @@ export interface VoteEngagementData {
2
2
  /** 用户投票选项 */
3
3
  option_sn: string;
4
4
  }
5
- export declare const VoteEngagementDataValidator: import("@seayoo-web/utils").ObjectValidator<VoteEngagementData, false, false>;
5
+ export declare const VoteEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<VoteEngagementData, false, false>;
6
6
  export interface VoteEngagementParam {
7
7
  /** 选项的 sn */
8
8
  option_sn: string;
@@ -9,11 +9,11 @@ export type Conversation = {
9
9
  export type ZeroChatGPTData = {
10
10
  conversations: Conversation[];
11
11
  };
12
- export declare const ConversationValidator: import("@seayoo-web/utils").ObjectValidator<{
12
+ export declare const ConversationValidator: import("@seayoo-web/validator").ObjectValidator<{
13
13
  role: string;
14
14
  content: string;
15
15
  }, false, false>;
16
- export declare const ZeroChatGPTDataValidator: import("@seayoo-web/utils").ObjectValidator<{
16
+ export declare const ZeroChatGPTDataValidator: import("@seayoo-web/validator").ObjectValidator<{
17
17
  conversations: {
18
18
  role: /*elided*/ any;
19
19
  content: /*elided*/ any;
@@ -23,7 +23,7 @@ export type UserEngagement = {
23
23
  /** 参与奖励列表 */
24
24
  rewards?: Reward[];
25
25
  };
26
- export declare const UserEngagementValidator: import("@seayoo-web/utils").ObjectValidator<UserEngagement, false, false> & {
26
+ export declare const UserEngagementValidator: import("@seayoo-web/validator").ObjectValidator<UserEngagement, false, false> & {
27
27
  plain: never;
28
28
  optional: never;
29
29
  maybeNull: never;
@@ -26,7 +26,7 @@ export interface Reward {
26
26
  /** 提供额外扩展信息 */
27
27
  extra_data?: UserEngagementData | Record<string, unknown>;
28
28
  }
29
- export declare const RewardValidator: import("@seayoo-web/utils").ObjectValidator<Reward, false, false>;
29
+ export declare const RewardValidator: import("@seayoo-web/validator").ObjectValidator<Reward, false, false>;
30
30
  export interface EngageReward {
31
31
  /** 用户奖励记录 id(微信红包类型奖励需要前端请求一次领奖 api) */
32
32
  reward_id: number;
@@ -49,4 +49,4 @@ export interface EngageReward {
49
49
  /** 提供额外扩展信息,例如:礼包码的值等 */
50
50
  extra_data?: Record<string, unknown>;
51
51
  }
52
- export declare const EngageRewardValidator: import("@seayoo-web/utils").ObjectValidator<EngageReward, false, false>;
52
+ export declare const EngageRewardValidator: import("@seayoo-web/validator").ObjectValidator<EngageReward, false, false>;
@@ -1,4 +1,4 @@
1
- import { type ValueOf } from "@seayoo-web/utils";
1
+ import type { ValueOf } from "@seayoo-web/utils";
2
2
  /** 道具类型 */
3
3
  export declare const GamerItemType: {
4
4
  /** 活动道具 */
@@ -23,7 +23,7 @@ export declare const GamerItemType: {
23
23
  readonly VoidItem: "void_item";
24
24
  };
25
25
  export type GamerItemType = ValueOf<typeof GamerItemType>;
26
- export declare const GamerItemTypeValidator: import("@seayoo-web/utils").StringValidator<GamerItemType, false, false> & {
26
+ export declare const GamerItemTypeValidator: import("@seayoo-web/validator").StringValidator<GamerItemType, false, false> & {
27
27
  pattern: never;
28
28
  url: never;
29
29
  dataUri: never;
@@ -56,7 +56,7 @@ export declare const RewardItemType: {
56
56
  readonly VoidItem: "void_item";
57
57
  };
58
58
  export type RewardItemType = GamerItemType;
59
- export declare const RewardItemTypeValidator: import("@seayoo-web/utils").StringValidator<GamerItemType, false, false> & {
59
+ export declare const RewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<GamerItemType, false, false> & {
60
60
  pattern: never;
61
61
  url: never;
62
62
  dataUri: never;
@@ -74,7 +74,7 @@ export declare const EngageAccountType: {
74
74
  readonly RoleId: "role_id";
75
75
  };
76
76
  export type EngageAccountType = ValueOf<typeof EngageAccountType>;
77
- export declare const EngageAccountTypeValidator: import("@seayoo-web/utils").StringValidator<EngageAccountType, false, false> & {
77
+ export declare const EngageAccountTypeValidator: import("@seayoo-web/validator").StringValidator<EngageAccountType, false, false> & {
78
78
  pattern: never;
79
79
  url: never;
80
80
  dataUri: never;
@@ -92,7 +92,7 @@ export declare const EventPeriodType: {
92
92
  readonly Monthly: "monthly";
93
93
  };
94
94
  export type EventPeriodType = ValueOf<typeof EventPeriodType>;
95
- export declare const EventPeriodTypeValidator: import("@seayoo-web/utils").StringValidator<EventPeriodType, false, false> & {
95
+ export declare const EventPeriodTypeValidator: import("@seayoo-web/validator").StringValidator<EventPeriodType, false, false> & {
96
96
  pattern: never;
97
97
  url: never;
98
98
  dataUri: never;
@@ -146,7 +146,7 @@ export declare const FeatureType: {
146
146
  readonly ZeroChatgpt: "zero_chatgpt";
147
147
  };
148
148
  export type FeatureType = ValueOf<typeof FeatureType>;
149
- export declare const FeatureTypeValidator: import("@seayoo-web/utils").StringValidator<FeatureType, false, false> & {
149
+ export declare const FeatureTypeValidator: import("@seayoo-web/validator").StringValidator<FeatureType, false, false> & {
150
150
  pattern: never;
151
151
  url: never;
152
152
  dataUri: never;
@@ -174,7 +174,7 @@ export declare const QuestObjective: {
174
174
  readonly MatchDays: "player_match_days";
175
175
  };
176
176
  export type QuestObjective = ValueOf<typeof QuestObjective>;
177
- export declare const QuestObjectiveValidator: import("@seayoo-web/utils").StringValidator<QuestObjective, false, false> & {
177
+ export declare const QuestObjectiveValidator: import("@seayoo-web/validator").StringValidator<QuestObjective, false, false> & {
178
178
  pattern: never;
179
179
  url: never;
180
180
  dataUri: never;
@@ -194,7 +194,7 @@ export declare const VoteOptionSource: {
194
194
  readonly Shortlisted: "shortlisted";
195
195
  };
196
196
  export type VoteOptionSource = ValueOf<typeof VoteOptionSource>;
197
- export declare const VoteOptionSourceValidator: import("@seayoo-web/utils").StringValidator<VoteOptionSource, false, false> & {
197
+ export declare const VoteOptionSourceValidator: import("@seayoo-web/validator").StringValidator<VoteOptionSource, false, false> & {
198
198
  pattern: never;
199
199
  url: never;
200
200
  dataUri: never;
@@ -220,7 +220,7 @@ export declare const RewardStatus: {
220
220
  readonly Delivered: "delivered";
221
221
  };
222
222
  export type RewardStatus = ValueOf<typeof RewardStatus>;
223
- export declare const RewardStatusValidator: import("@seayoo-web/utils").StringValidator<RewardStatus, false, false> & {
223
+ export declare const RewardStatusValidator: import("@seayoo-web/validator").StringValidator<RewardStatus, false, false> & {
224
224
  pattern: never;
225
225
  url: never;
226
226
  dataUri: never;
@@ -250,7 +250,7 @@ export declare const RewardStatusSuffix: {
250
250
  readonly Delivered: "delivered";
251
251
  };
252
252
  export type RewardStatusSuffix = ValueOf<typeof RewardStatusSuffix>;
253
- export declare const RewardStatusSuffixValidator: import("@seayoo-web/utils").StringValidator<RewardStatusSuffix, false, false> & {
253
+ export declare const RewardStatusSuffixValidator: import("@seayoo-web/validator").StringValidator<RewardStatusSuffix, false, false> & {
254
254
  pattern: never;
255
255
  url: never;
256
256
  dataUri: never;
@@ -281,7 +281,7 @@ export declare const ClaimRewardStatus: {
281
281
  /** 奖励已发货 */
282
282
  readonly Delivered: "delivered";
283
283
  };
284
- export declare const ClaimRewardStatusValidator: import("@seayoo-web/utils").StringValidator<ClaimRewardStatus, false, false> & {
284
+ export declare const ClaimRewardStatusValidator: import("@seayoo-web/validator").StringValidator<ClaimRewardStatus, false, false> & {
285
285
  pattern: never;
286
286
  url: never;
287
287
  dataUri: never;
@@ -300,7 +300,7 @@ export declare const RewardSource: {
300
300
  readonly Engage: "engage";
301
301
  };
302
302
  export type RewardSource = ValueOf<typeof RewardSource>;
303
- export declare const RewardSourceValidator: import("@seayoo-web/utils").StringValidator<RewardSource, false, false> & {
303
+ export declare const RewardSourceValidator: import("@seayoo-web/validator").StringValidator<RewardSource, false, false> & {
304
304
  pattern: never;
305
305
  url: never;
306
306
  dataUri: never;
@@ -318,7 +318,7 @@ export declare const TeamVisibility: {
318
318
  readonly Public: "public";
319
319
  };
320
320
  export type TeamVisibility = ValueOf<typeof TeamVisibility>;
321
- export declare const TeamVisibilityValidator: import("@seayoo-web/utils").StringValidator<TeamVisibility, false, false> & {
321
+ export declare const TeamVisibilityValidator: import("@seayoo-web/validator").StringValidator<TeamVisibility, false, false> & {
322
322
  pattern: never;
323
323
  url: never;
324
324
  dataUri: never;
@@ -342,7 +342,7 @@ export declare const LotteryTicketStatus: {
342
342
  readonly Fail: "fail";
343
343
  };
344
344
  export type LotteryTicketStatus = ValueOf<typeof LotteryTicketStatus>;
345
- export declare const LotteryTicketStatusValidator: import("@seayoo-web/utils").StringValidator<LotteryTicketStatus, false, false> & {
345
+ export declare const LotteryTicketStatusValidator: import("@seayoo-web/validator").StringValidator<LotteryTicketStatus, false, false> & {
346
346
  pattern: never;
347
347
  url: never;
348
348
  dataUri: never;
@@ -366,7 +366,7 @@ export declare const TeamAction: {
366
366
  readonly Query: "query";
367
367
  };
368
368
  export type TeamAction = ValueOf<typeof TeamAction>;
369
- export declare const TeamActionValidator: import("@seayoo-web/utils").StringValidator<TeamAction, false, false> & {
369
+ export declare const TeamActionValidator: import("@seayoo-web/validator").StringValidator<TeamAction, false, false> & {
370
370
  pattern: never;
371
371
  url: never;
372
372
  dataUri: never;
@@ -386,7 +386,7 @@ export declare const LotteryDrawAction: {
386
386
  readonly Claim: "claim";
387
387
  };
388
388
  export type LotteryDrawAction = ValueOf<typeof LotteryDrawAction>;
389
- export declare const LotteryDrawActionValidator: import("@seayoo-web/utils").StringValidator<LotteryDrawAction, false, false> & {
389
+ export declare const LotteryDrawActionValidator: import("@seayoo-web/validator").StringValidator<LotteryDrawAction, false, false> & {
390
390
  pattern: never;
391
391
  url: never;
392
392
  dataUri: never;