@seayoo-web/gamer-api 4.3.4 → 4.3.6
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
CHANGED
|
@@ -588,7 +588,7 @@ var m = "gamer_token", se = class {
|
|
|
588
588
|
ChangeVisibility: "change_visibility",
|
|
589
589
|
Query: "query"
|
|
590
590
|
}, at = f.string().enum(it).lock(), ot = {
|
|
591
|
-
|
|
591
|
+
ReferralCode: "referral_code",
|
|
592
592
|
Join: "join",
|
|
593
593
|
Query: "query"
|
|
594
594
|
}, st = f.string().enum(ot).lock(), ct = {
|
|
@@ -896,7 +896,8 @@ var m = "gamer_token", se = class {
|
|
|
896
896
|
})) }), Mn = f.object({
|
|
897
897
|
avatar_url: f.string().optional(),
|
|
898
898
|
role_name: f.string(),
|
|
899
|
-
server_name: f.string()
|
|
899
|
+
server_name: f.string(),
|
|
900
|
+
user_id: f.string()
|
|
900
901
|
}), Nn = f.object({
|
|
901
902
|
referral_code: f.string().optional(),
|
|
902
903
|
invitee_count: f.number().optional(),
|
|
@@ -908,7 +909,7 @@ var m = "gamer_token", se = class {
|
|
|
908
909
|
}), Fn = f.object({
|
|
909
910
|
invitee_count: f.number().optional(),
|
|
910
911
|
generated_rewards: f.array(L).optional(),
|
|
911
|
-
|
|
912
|
+
tier_statuses: f.array(Pn).optional()
|
|
912
913
|
}), In = f.object({ platform: f.string().optional() }), Ln = f.object({ weixin_openid: f.string() }), Rn = f.object({ serial_number: f.number() }), R = f.object({
|
|
913
914
|
team_code: f.string(),
|
|
914
915
|
leader_name: f.string(),
|
|
@@ -1894,4 +1895,4 @@ var ia = "wx_login_cache", aa = class {
|
|
|
1894
1895
|
}
|
|
1895
1896
|
};
|
|
1896
1897
|
//#endregion
|
|
1897
|
-
export { K as AntispamValidator, se as AuthToken, Xn as CandidateVoteValidator, I as CashbackEngagementDataValidator, yn as ClaimActivationKeyEngagementDataValidator, $e as ClaimRewardStatus, k as ClaimRewardStatusValidator, or as ClaimedItemValidator, _ as ClubAddressValidator, He as ClubApi, v as ClubBenefitSummaryValidator, Te as ClubBenefitValidator, fe as ClubCreditChangeScene, pe as ClubCreditChangeSceneValidator, ue as ClubCreditChangeType, de as ClubCreditChangeTypeValidator, we as ClubCreditLogValidator, _e as ClubGlobalConfigValidator, me as ClubItemType, h as ClubItemTypeValidator, ve as ClubPlayerValidator, y as ClubProductValidator, he as ClubRedemptionStatus, ge as ClubRedemptionStatusValidator, Ce as ClubUserCreditValidator, Se as ClubUserProfileValidator, $n as CommentEngagementValidator, J as CommentValidator, ta as CommunityApi, Zn as ConversationValidator, Ge as EngageAccountType, Ke as EngageAccountTypeValidator, ar as EngageResponseValidator, tr as EngageRewardValidator, Ue as EventApi, pr as EventConfigValidator, xt as EventFeatureConfigOfCashbackValidator, Ct as EventFeatureConfigOfCheckInValidator, Tt as EventFeatureConfigOfClaimActivationKeyValidator, Dt as EventFeatureConfigOfClaimRewardsValidator, kt as EventFeatureConfigOfCommentValidator, jt as EventFeatureConfigOfFollowValidator, Pt as EventFeatureConfigOfGiftCodeValidator, It as EventFeatureConfigOfInviteValidator, Rt as EventFeatureConfigOfInvitedRegisterValidator, Wt as EventFeatureConfigOfLotteryDrawValidator, Ht as EventFeatureConfigOfLotteryValidator, Kt as EventFeatureConfigOfPreregisterValidator, Jt as EventFeatureConfigOfQuestValidator, Zt as EventFeatureConfigOfRedeemValidator, en as EventFeatureConfigOfReferralValidator, nn as EventFeatureConfigOfRegisterValidator, an as EventFeatureConfigOfShareValidator, sn as EventFeatureConfigOfSubscribeValidator, ln as EventFeatureConfigOfSurveyValidator, dn as EventFeatureConfigOfTeamValidator, hn as EventFeatureConfigOfUgcLikeValidator, pn as EventFeatureConfigOfUgcValidator, lr as EventFeatureConfigOfVote2Validator, vn as EventFeatureConfigOfVoteValidator, fr as EventFeatureConfigValidator, qe as EventPeriodType, Je as EventPeriodTypeValidator, N as EventRewardItemConfigValidator, Oe as ExtraGameRewardValidator, De as ExtraPhysicalShipmentValidator, Xt as FeatureRedeemItemConfigValidator, $t as FeatureReferralTierItemValidator, yt as FeatureRewardValidator, T as FeatureType, Ye as FeatureTypeValidator, Ci as ForumMode, wi as ForumModeValidator, U as ForumValidator, Si as GGDPublicApi, bi as GGDRoomStatus, xi as GGDRoomStatusValidator, S as GamerItemType, C as GamerItemTypeValidator, ce as Gender, le as GenderValidator, Fn as GenerateReferralRewardsResponseValidator, bn as GiftCodeEngagementDataValidator, xn as InviteEngagementDataValidator, ct as LotteryDrawAction, lt as LotteryDrawActionValidator, Tn as LotteryDrawEngagementDataValidator, Sn as LotteryEngagementDataValidator, j as LotteryTicketStatus, rt as LotteryTicketStatusValidator, Y as NotificationBaseValidator, Ei as NotificationCategory, Di as NotificationCategoryValidator, Fi as NotificationCommentReplyValidator, Ii as NotificationCommentValidator, Z as NotificationPayloadCommentValidator, X as NotificationPayloadPostValidator, Q as NotificationPayloadReplyValidator, ji as NotificationPayloadSystemValidator, Pi as NotificationPostCommentValidator, Ni as NotificationPostValidator, Li as NotificationReplyRepliedValidator, Ri as NotificationReplyValidator, Mi as NotificationSystemValidator, H as NotificationType, Oi as NotificationTypeValidator, zi as NotificationValidator, xe as PlayerRoleCardValidator, g as PlayerRoleValidator, Ti as PostStatus, V as PostStatusValidator, G as PostValidator, En as PreregisterEngagementDataValidator, Ai as PresignedUrlResponseValidator, On as QuestEngagementDataValidator, Xe as QuestObjective, E as QuestObjectiveValidator, ut as QuestProgressAlgorithm, dt as QuestProgressAlgorithmValidator, kn as QuestProgressValidator, An as RedeemEngagementDataValidator, Ee as RedeemParamsValidator, jn as RedeemStocksResponseValidator, ke as RedemptionValidator, ot as ReferralAction, st as ReferralActionValidator, Nn as ReferralEngagementDataValidator, Mn as ReferralInviteValidator,
|
|
1898
|
+
export { K as AntispamValidator, se as AuthToken, Xn as CandidateVoteValidator, I as CashbackEngagementDataValidator, yn as ClaimActivationKeyEngagementDataValidator, $e as ClaimRewardStatus, k as ClaimRewardStatusValidator, or as ClaimedItemValidator, _ as ClubAddressValidator, He as ClubApi, v as ClubBenefitSummaryValidator, Te as ClubBenefitValidator, fe as ClubCreditChangeScene, pe as ClubCreditChangeSceneValidator, ue as ClubCreditChangeType, de as ClubCreditChangeTypeValidator, we as ClubCreditLogValidator, _e as ClubGlobalConfigValidator, me as ClubItemType, h as ClubItemTypeValidator, ve as ClubPlayerValidator, y as ClubProductValidator, he as ClubRedemptionStatus, ge as ClubRedemptionStatusValidator, Ce as ClubUserCreditValidator, Se as ClubUserProfileValidator, $n as CommentEngagementValidator, J as CommentValidator, ta as CommunityApi, Zn as ConversationValidator, Ge as EngageAccountType, Ke as EngageAccountTypeValidator, ar as EngageResponseValidator, tr as EngageRewardValidator, Ue as EventApi, pr as EventConfigValidator, xt as EventFeatureConfigOfCashbackValidator, Ct as EventFeatureConfigOfCheckInValidator, Tt as EventFeatureConfigOfClaimActivationKeyValidator, Dt as EventFeatureConfigOfClaimRewardsValidator, kt as EventFeatureConfigOfCommentValidator, jt as EventFeatureConfigOfFollowValidator, Pt as EventFeatureConfigOfGiftCodeValidator, It as EventFeatureConfigOfInviteValidator, Rt as EventFeatureConfigOfInvitedRegisterValidator, Wt as EventFeatureConfigOfLotteryDrawValidator, Ht as EventFeatureConfigOfLotteryValidator, Kt as EventFeatureConfigOfPreregisterValidator, Jt as EventFeatureConfigOfQuestValidator, Zt as EventFeatureConfigOfRedeemValidator, en as EventFeatureConfigOfReferralValidator, nn as EventFeatureConfigOfRegisterValidator, an as EventFeatureConfigOfShareValidator, sn as EventFeatureConfigOfSubscribeValidator, ln as EventFeatureConfigOfSurveyValidator, dn as EventFeatureConfigOfTeamValidator, hn as EventFeatureConfigOfUgcLikeValidator, pn as EventFeatureConfigOfUgcValidator, lr as EventFeatureConfigOfVote2Validator, vn as EventFeatureConfigOfVoteValidator, fr as EventFeatureConfigValidator, qe as EventPeriodType, Je as EventPeriodTypeValidator, N as EventRewardItemConfigValidator, Oe as ExtraGameRewardValidator, De as ExtraPhysicalShipmentValidator, Xt as FeatureRedeemItemConfigValidator, $t as FeatureReferralTierItemValidator, yt as FeatureRewardValidator, T as FeatureType, Ye as FeatureTypeValidator, Ci as ForumMode, wi as ForumModeValidator, U as ForumValidator, Si as GGDPublicApi, bi as GGDRoomStatus, xi as GGDRoomStatusValidator, S as GamerItemType, C as GamerItemTypeValidator, ce as Gender, le as GenderValidator, Fn as GenerateReferralRewardsResponseValidator, bn as GiftCodeEngagementDataValidator, xn as InviteEngagementDataValidator, ct as LotteryDrawAction, lt as LotteryDrawActionValidator, Tn as LotteryDrawEngagementDataValidator, Sn as LotteryEngagementDataValidator, j as LotteryTicketStatus, rt as LotteryTicketStatusValidator, Y as NotificationBaseValidator, Ei as NotificationCategory, Di as NotificationCategoryValidator, Fi as NotificationCommentReplyValidator, Ii as NotificationCommentValidator, Z as NotificationPayloadCommentValidator, X as NotificationPayloadPostValidator, Q as NotificationPayloadReplyValidator, ji as NotificationPayloadSystemValidator, Pi as NotificationPostCommentValidator, Ni as NotificationPostValidator, Li as NotificationReplyRepliedValidator, Ri as NotificationReplyValidator, Mi as NotificationSystemValidator, H as NotificationType, Oi as NotificationTypeValidator, zi as NotificationValidator, xe as PlayerRoleCardValidator, g as PlayerRoleValidator, Ti as PostStatus, V as PostStatusValidator, G as PostValidator, En as PreregisterEngagementDataValidator, Ai as PresignedUrlResponseValidator, On as QuestEngagementDataValidator, Xe as QuestObjective, E as QuestObjectiveValidator, ut as QuestProgressAlgorithm, dt as QuestProgressAlgorithmValidator, kn as QuestProgressValidator, An as RedeemEngagementDataValidator, Ee as RedeemParamsValidator, jn as RedeemStocksResponseValidator, ke as RedemptionValidator, ot as ReferralAction, st as ReferralActionValidator, Nn as ReferralEngagementDataValidator, Mn as ReferralInviteValidator, vt as RegularRewardValidator, ki as ReplyToValidator, q as ReplyValidator, We as RewardItemType, w as RewardItemTypeValidator, et as RewardSource, A as RewardSourceValidator, D as RewardStatus, O as RewardStatusValidator, er as RewardValidator, be as RoleBaseInfoValidator, ye as ServerBaseInfoValidator, In as ShareEngagementDataValidator, Rn as SurveyEngagementDataValidator, it as TeamAction, at as TeamActionValidator, Bn as TeamEngagementDataValidator, R as TeamEngagementValidator, zn as TeamMemberValidator, tt as TeamVisibility, nt as TeamVisibilityValidator, Pn as TierStatusValidator, W as TopicValidator, Wn as UgcCountResponseValidator, Vn as UgcEngagementDataValidator, Kn as UgcLeaderboardResponseValidator, Hn as UgcRecordBaseResponseValidator, Un as UgcRecordResponseValidator, ht as UgcReviewStatus, gt as UgcReviewStatusValidator, mt as UgcSocialMedia, M as UgcSocialMediaValidator, Gn as UgcUploadImageValidator, z as UserEngagementDataValidator, nr as UserEngagementValidator, ir as UserFeatureStatusValidator, L as UserRewardValidator, rr as VerifyMobileResultValidator, Yn as Vote2ClaimRewardsResponseValidator, Jn as Vote2EngagementDataValidator, ft as Vote2RewardType, pt as Vote2RewardTypeValidator, qn as VoteEngagementDataValidator, Ze as VoteOptionSource, Qe as VoteOptionSourceValidator, aa as WeixinApi, Ln as WeixinSubscribeEngagementDataValidator, ra as WeixinWebLoginErrorCode, Qn as ZeroChatGPTDataValidator, Zr as claimRewards, ci as claimRewardsV2, li as claimWeixinHongbao, Xr as engage, yi as generateReferralRewards, ti as generateUnlimitQrcode, ai as getCashbackQuery, Hr as getConfig, Gr as getEngagements, Wr as getEngagementsCount, Ur as getEngagementsUserCount, ei as getParamsByQrcodeScene, ni as getQuestProgress, vi as getRedeemItemStocks, _i as getUgcLeaderboard, si as getUgcMyCount, hi as getUgcRecommendation, oi as getUgcRecord, gi as getUgcs, $r as getUnlimitQrcodeScene, Jr as getUserEngagementCount, Yr as getUserEngagements, qr as getUserFeatureStatus, pi as getUserItemCount, di as getUserRewards, fi as getUserRewardsCount, ii as getVote2Leaderboard, na as isWeixinSignResponse, Qr as submitUserRewardAddress, mi as ugcUploadImage, ui as verifyActivationKey, Vr as verifyMobileAllowed, Kr as visit, ri as vote2Rewards };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/gamer-api",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.6",
|
|
4
4
|
"description": "agent for gamer api",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "web@seayoo.com",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^22.13.1",
|
|
30
30
|
"@seayoo-web/combo-webview": "2.9.7",
|
|
31
|
-
"@seayoo-web/
|
|
32
|
-
"@seayoo-web/scripts": "4.3.6",
|
|
31
|
+
"@seayoo-web/tsconfig": "1.0.6",
|
|
33
32
|
"@seayoo-web/utils": "4.4.1",
|
|
34
33
|
"@seayoo-web/validator": "2.3.0",
|
|
35
|
-
"@seayoo-web/
|
|
34
|
+
"@seayoo-web/request": "4.1.0",
|
|
35
|
+
"@seayoo-web/scripts": "4.3.6"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@seayoo-web/combo-webview": "^2.9.7",
|
|
39
|
-
"@seayoo-web/
|
|
40
|
-
"@seayoo-web/
|
|
39
|
+
"@seayoo-web/validator": "^2.3.0",
|
|
40
|
+
"@seayoo-web/utils": "^4.4.1"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=22"
|
|
@@ -4,6 +4,7 @@ export interface ReferralInvite {
|
|
|
4
4
|
avatar_url?: string;
|
|
5
5
|
role_name: string;
|
|
6
6
|
server_name: string;
|
|
7
|
+
user_id: string;
|
|
7
8
|
}
|
|
8
9
|
export declare const ReferralInviteValidator: import("@seayoo-web/validator").ObjectValidator<ReferralInvite, false, false>;
|
|
9
10
|
export interface ReferralEngagementData {
|
|
@@ -17,7 +18,7 @@ export interface ReferralEngagementData {
|
|
|
17
18
|
export declare const ReferralEngagementDataValidator: import("@seayoo-web/validator").ObjectValidator<ReferralEngagementData, false, false>;
|
|
18
19
|
export type ReferralEngagementParam = {
|
|
19
20
|
/** 操作类型 */
|
|
20
|
-
action: typeof ReferralAction.
|
|
21
|
+
action: typeof ReferralAction.ReferralCode;
|
|
21
22
|
} | {
|
|
22
23
|
/** 操作类型 */
|
|
23
24
|
action: typeof ReferralAction.Join;
|
|
@@ -34,9 +35,9 @@ export interface GenerateReferralRewardsResponse {
|
|
|
34
35
|
/** 本次获得的奖励 */
|
|
35
36
|
generated_rewards?: UserReward[];
|
|
36
37
|
/** 阶梯邀请奖励状态 */
|
|
37
|
-
|
|
38
|
+
tier_statuses?: TierStatus[];
|
|
38
39
|
}
|
|
39
|
-
export interface
|
|
40
|
+
export interface TierStatus {
|
|
40
41
|
/** 邀请邀请人数 */
|
|
41
42
|
required_invitees: number;
|
|
42
43
|
/** 是否已解锁(达到邀请人数要求) */
|
|
@@ -44,5 +45,5 @@ export interface ReferralTierStatus {
|
|
|
44
45
|
/** 是否已获得 */
|
|
45
46
|
generated: boolean;
|
|
46
47
|
}
|
|
47
|
-
export declare const
|
|
48
|
+
export declare const TierStatusValidator: import("@seayoo-web/validator").ObjectValidator<TierStatus, false, false>;
|
|
48
49
|
export declare const GenerateReferralRewardsResponseValidator: import("@seayoo-web/validator").ObjectValidator<GenerateReferralRewardsResponse, false, false>;
|
|
@@ -374,8 +374,8 @@ export declare const TeamActionValidator: import("@seayoo-web/validator").String
|
|
|
374
374
|
};
|
|
375
375
|
/** 裂变玩法操作类型 */
|
|
376
376
|
export declare const ReferralAction: {
|
|
377
|
-
/**
|
|
378
|
-
readonly
|
|
377
|
+
/** 生成邀请码 */
|
|
378
|
+
readonly ReferralCode: "referral_code";
|
|
379
379
|
/** 被邀请人参与 */
|
|
380
380
|
readonly Join: "join";
|
|
381
381
|
/** 查询邀请码、已邀人数、被邀请人列表 */
|