@opexa/portal-sdk 0.56.2 → 0.56.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.cjs +119 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -1
- package/dist/index.d.ts +59 -1
- package/dist/index.js +119 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -470,6 +470,20 @@ interface TournamentsQueryVariables {
|
|
|
470
470
|
}
|
|
471
471
|
type TournamentsIdsQueryVariables = Pick<TournamentsQueryVariables, 'first' | 'after' | 'filter'>;
|
|
472
472
|
type MemberVerificationRequestStatus$1 = 'PENDING' | 'PENDING_MANUAL_APPROVAL' | 'APPROVED' | 'REJECTED';
|
|
473
|
+
type FreeBetDropStatus$1 = 'ACTIVE' | 'EXPIRED' | 'COMPLETED' | 'INACTIVE' | 'CANCELLED';
|
|
474
|
+
interface FreeBetDropsQueryVariables {
|
|
475
|
+
first?: number;
|
|
476
|
+
after?: string;
|
|
477
|
+
filter?: {
|
|
478
|
+
id?: ObjectIdFilterField;
|
|
479
|
+
name?: StringFilterField;
|
|
480
|
+
memberGroup?: ObjectIdFilterField;
|
|
481
|
+
status?: EnumFilterField<FreeBetDropStatus$1>;
|
|
482
|
+
games?: ObjectIdFilterField;
|
|
483
|
+
promo?: ObjectIdFilterField;
|
|
484
|
+
gameProvider?: EnumFilterField<GameProvider$1>;
|
|
485
|
+
};
|
|
486
|
+
}
|
|
473
487
|
|
|
474
488
|
type Environment = 'production' | 'development' | 'staging';
|
|
475
489
|
type WithCursor<T> = T & {
|
|
@@ -640,6 +654,8 @@ interface Account {
|
|
|
640
654
|
domain?: string | null;
|
|
641
655
|
branchCode?: string;
|
|
642
656
|
agent?: Agent | null;
|
|
657
|
+
level: number;
|
|
658
|
+
dateTimeLastActive?: Date;
|
|
643
659
|
}
|
|
644
660
|
type AccountReturn = OperationResult<never, Account>;
|
|
645
661
|
type VerificationDetailsStatus = UnionAlias<MemberVerificationStatus>;
|
|
@@ -727,6 +743,7 @@ interface MobileNumberCreateAccountInput__next {
|
|
|
727
743
|
type: 'MOBILE_NUMBER[NEXT]';
|
|
728
744
|
id?: string;
|
|
729
745
|
mobileNumber: string;
|
|
746
|
+
mobileNumberVerificationCode: string;
|
|
730
747
|
emailAddress?: string;
|
|
731
748
|
branchCode?: string;
|
|
732
749
|
reCAPTCHAResponse?: string;
|
|
@@ -1054,6 +1071,46 @@ interface LatestBetRecord {
|
|
|
1054
1071
|
dateTimeCreated: Date;
|
|
1055
1072
|
}
|
|
1056
1073
|
type LatestBetRecordsReturn = OperationResult<never, LatestBetRecord[]>;
|
|
1074
|
+
interface FreeBetDropsInput extends FreeBetDropsQueryVariables {
|
|
1075
|
+
}
|
|
1076
|
+
type FreeBetDropStatus = UnionAlias<FreeBetDropStatus$1>;
|
|
1077
|
+
interface FreeBetDrops {
|
|
1078
|
+
id: string;
|
|
1079
|
+
name: string;
|
|
1080
|
+
description: string;
|
|
1081
|
+
member: {
|
|
1082
|
+
id: string;
|
|
1083
|
+
name: string;
|
|
1084
|
+
};
|
|
1085
|
+
promo: {
|
|
1086
|
+
type: string;
|
|
1087
|
+
name: string;
|
|
1088
|
+
};
|
|
1089
|
+
gameProvider: GameProvider;
|
|
1090
|
+
games?: {
|
|
1091
|
+
id: string;
|
|
1092
|
+
name: string;
|
|
1093
|
+
provider: GameProvider;
|
|
1094
|
+
}[];
|
|
1095
|
+
remainingBets: number;
|
|
1096
|
+
bets: number;
|
|
1097
|
+
betValue: string;
|
|
1098
|
+
bonusMaximumAmount: string;
|
|
1099
|
+
bonusAmountPercentage: string;
|
|
1100
|
+
bonusTurnoverRequirementMultiplier: string;
|
|
1101
|
+
status: FreeBetDropStatus;
|
|
1102
|
+
activationDateTime: Date;
|
|
1103
|
+
expirationDateTime: Date;
|
|
1104
|
+
dateTimeCreated: Date;
|
|
1105
|
+
dateTimeCompleted?: Date;
|
|
1106
|
+
dateTimeLastUpdated: Date;
|
|
1107
|
+
payout: string;
|
|
1108
|
+
bonus: {
|
|
1109
|
+
id: string;
|
|
1110
|
+
amount: string;
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
1113
|
+
type FreeBetDropsReturn = OperationResult<never, PaginatedQueryResult<'freeBetDrops', FreeBetDrops>>;
|
|
1057
1114
|
type TransactionType = UnionAlias<TransactionType$1>;
|
|
1058
1115
|
interface TransactionRecord {
|
|
1059
1116
|
id: string;
|
|
@@ -2110,6 +2167,7 @@ declare class Sdk {
|
|
|
2110
2167
|
redeemVoucher(input: RedeemVoucherInput): Promise<RedeemVoucherReturn>;
|
|
2111
2168
|
betRecords(input?: BetRecordsInput): Promise<BetRecordsReturn>;
|
|
2112
2169
|
latestBetRecords(): Promise<LatestBetRecordsReturn>;
|
|
2170
|
+
freeBetDrops(input?: FreeBetDropsInput): Promise<FreeBetDropsReturn>;
|
|
2113
2171
|
transactionRecords(input?: TransactionRecordsInput): Promise<TransactionRecordsReturn>;
|
|
2114
2172
|
promos(): Promise<PromosReturn>;
|
|
2115
2173
|
availablePromos(input?: PromoFilterInput): Promise<AvailablePromosReturn>;
|
|
@@ -2181,4 +2239,4 @@ declare class Sdk {
|
|
|
2181
2239
|
private formatYmd;
|
|
2182
2240
|
}
|
|
2183
2241
|
|
|
2184
|
-
export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type AchievementPointsHistoryRecord, type AchievementPointsHistoryRecordInput, type AchievementPointsHistoryRecordReturn, type AchievementSettings, type AchievementSettingsResponse, type AchievementSettingsReturn, type AchievementType, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, type Agent, type AiOGCashDeposit, type AiOGrabPayDeposit, type AiOPalawanPayDeposit, type AiOPayMayaDeposit, type Announcement, type AnnouncementStatus, type AnnouncementType, type AnnouncementsInput, type AnnouncementsReturn, type AuthenticateError, type AuthenticateInput, type AuthenticateReturn, type Authenticator, type AvailablePromosReturn, type AvailableQuestsReturn, type Bank, type BankDeposit, type BankWithdrawalRecord, type BetRecord, type BetRecordStatus, type BetRecordsInput, type BetRecordsReturn, type Bonus, type BonusReturn, type BonusesReturn, type CabinetSignInInput, type CabinetSignInReturn, type CabinetSiteMachine, type CabinetSiteMachineReturn, type CabinetSiteMachineStatus, type CabinetWithdrawalRecord, type CabinetWithdrawalReturn, type Cashback, type CashbackBonus, type CashbackBonusReturn, type CashbackStatus, type CashbacksReturn, type CheckInDailyQuestReturn, type ClaimCashbackBonusError, type ClaimCashbackBonusReturn, type ClaimRewardError, type ClaimRewardReturn, type ClaimSpotBonusReturn, type CompleteOnboardingInput, type CompleteOnboardingReturn, type CompoundField, type CreateAIOInstapayWithdrawalInput, type CreateAIOInstapayWithdrawalInput_Next, type CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateAiOGCashDepositInput, type CreateAiOGrabPayDepositInput, type CreateAiOPalawanPayDepositInput, type CreateAiOPayMayaDepositInput, type CreateBankWithdrawalInput, type CreateCabinetWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, type CreateGCashStandardCashInWithdrawalInput, type CreateGCashWebpayDepositInput, type CreateGCashWithdrawalInput, type CreateGameSessionByIdInput, type CreateGameSessionByReferenceInput, type CreateGameSessionError, type CreateGameSessionInput, type CreateGameSessionReturn, type CreateManualBankDepositInput, type CreateManualBankWithdrawalInput, type CreateManualUPIDepositInput, type CreateManualUPIWithdrawalInput, type CreateMayaAppDepositInput, type CreateMayaAppWithdrawalInput, type CreateMayaDepositInput, type CreateMayaWebpayDepositInput, type CreateMayaWithdrawalInput, type CreateSingleUseTokenError, type CreateSingleUseTokenInput, type CreateSingleUseTokenReturn, type CreateTestDepositInput, type CreateWithdrawalError, type CreateWithdrawalInput, type CreateWithdrawalReturn, type Currency, type DeleteAccountReturn, type Deposit, type DepositRecord, type DepositRecordsInput, type DepositRecordsReturn, type DepositReturn, type DepositStatus, type DepositType, type DepositsCountReturn, type DownlinesByNameInput, type DownlinesByNameReturn, type EndGameSessionReturn, type Environment, type FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionLaunchOptions, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, type GcashWebpayDeposit, type GeneralMemberLevelSettings, type GeneralMemberLevelSettingsReturn, type GoogleClientIdReturn, type HttpError, type ImageField, type InstapayBank, type InstapayBankListReturn, type InstapayBankType, type InstapayWithdrawalRecord, type Jackpot, type JackpotPayout, type JackpotPayoutsInput, type JackpotPayoutsReturn, type JackpotStatus, type JackpotsInput, type JackpotsReturn, type JourneyQuestMilestone, type JourneyQuestMilestoneType, type KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, type LoginChannel, type ManualBankDeposit, type ManualBankWithdrawalRecord, type ManualDeposit, type ManualUPIDeposit, type ManualUPIWithdrawalRecord, type ManualWithdrawalRecord, type MarkAllMessagesAsReadReturn, type MarkGameAsFavoriteInput, type MarkGameAsFavoriteReturn, type MarkMessageAsReadReturn, type MayaAppDeposit, type MayaDeposit, type MayaSignInInput, type MayaSignInReturn, type MayaWithdrawalRecord, type MemberAchievement, type MemberAchievementReturn, type MemberLevelSetting, type MemberLevelSettings, type MemberLevelSettingsReturn, type MemberStatus, type MemberVerificationRequest, type MemberVerificationRequestAutomaticApprovalEnabledReturn, type MemberVerificationRequestReturn, type MemberVerificationRequestStatus, type Message, type MessageAction, type MessageIcon, type MessageType, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberCreateAccountInput__next, type MobileNumberInrCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, type NameCreateAccountInput, ObjectType, type OnboardingPlayerExperience, type OnboardingStatus, type OnboardingStatusReturn, type OnlineBankDeposit, type OperationError, type OperationResult, type PaymentSettings, type PaymentSettingsReturn, type Platform, type PlatformReturn, type PlatformReturn__Next, type Platform__Next, type PointsClubSettings, type PointsClubSettingsReturn, type PointsWallet, type PointsWalletReturn, type PointsWalletTransaction, type PointsWalletTransactionType, type PointsWalletTransactionsInput, type PointsWalletTransactionsReturn, type ProfileCompletion, type ProfileCompletionReturn, type Promo, type PromoByCodeReturn, type PromoFilterInput, type PromoStatus, type PromoType, type PromosReturn, type QRPHDeposit, type Quest, type QuestProgram, type QuestProgramStatus, type QuestStatus, type QuestType, type RecommendedGamesInput, type RecommendedGamesReturn, type RedeemPointsError, type RedeemPointsInput, type RedeemPointsReturn, type RedeemVoucherInput, type RedeemVoucherReturn, type Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterAgentAccountError, type RegisterAgentAccountInput, type RegisterAgentAccountReturn, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RemainingDailyWithdrawalsCountReturn, type RequireFirstDepositReturn, type ResetPasswordError, type ResetPasswordInput, type ResetPasswordReturn, type RichTextField, Sdk, type SdkConfig, type SecretQuestion, type SecurityQuestionAuthenticateInput, type SecurityQuestionAuthenticator, type SelectField, type SendEmailVerificationCodeInput, type SendSmsVerificationCodeInput, type SendVerificationCodeError, type SendVerificationCodeError__Next, type SendVerificationCodeInput__Next, type SendVerificationCodeReturn, type SendVerificationCodeReturn__Next, type Session, type SessionError, type SessionReturn, type SignInError, type SignInInput, type SignInReturn, type SingleUseTokenSignInInput, type SingleUseTokenSignInReturn, type Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitMemberVerificationError, type SubmitMemberVerificationRequestBasicDetailsInput, type SubmitMemberVerificationRequestBasicDetailsReturn, type SubmitMemberVerificationRequestImageDetailsInput, type SubmitMemberVerificationRequestImageDetailsReturn, type SubmitMemberVerificationRequestPersonalDetailsInput, type SubmitMemberVerificationRequestPersonalDetailsReturn, type SubmitMemberVerificationReturn, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsInputNext, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, type Tournament, type TournamentFrequency, type TournamentLeaderboard, type TournamentMode, type TournamentPayout, type TournamentStatus, type TournamentType, type TournamentsIdsInput, type TournamentsIdsReturn, type TournamentsInput, type TournamentsReturn, type TransactionRecord, type TransactionRecordsInput, type TransactionRecordsReturn, type TransactionType, type TurnoverRequirementType, type UnmarkGameAsFavoriteInput, type UnmarkGameAsFavoriteReturn, type UnreadMessagesCountInput, type UnreadMessagesCountReturn, type UnregisterFCMDeviceInput, type UnregisterFCMDeviceReturn, type UpdateAccountError, type UpdateAccountInput, type UpdateAccountReturn, type UpdateReferralCodeError, type UpdateReferralCodeInput, type UpdateReferralCodeReturn, type UpdateVerificationDetailsInput, type UpdateVerificationDetailsReturn, type UpdateVerificationError, type UplinesByNameInput, type UplinesByNameReturn, type UploadImageFileError, type UploadImageFileInput, type UploadImageFileReturn, type ValidateMayaSessionReturn, type VerificationDetails, type VerificationDetailsReturn, type VerificationDetailsStatus, type VerifyMobileNumberError, type VerifyMobileNumberReturn, type VoucherType, type WageringQuestStage, type WageringQuestStageSettings, type Wallet, type WalletGame, type WalletGameInput, type WalletGamesReturn, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType, type _JackpotsInput, type _JackpotsReturn };
|
|
2242
|
+
export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type AchievementPointsHistoryRecord, type AchievementPointsHistoryRecordInput, type AchievementPointsHistoryRecordReturn, type AchievementSettings, type AchievementSettingsResponse, type AchievementSettingsReturn, type AchievementType, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, type Agent, type AiOGCashDeposit, type AiOGrabPayDeposit, type AiOPalawanPayDeposit, type AiOPayMayaDeposit, type Announcement, type AnnouncementStatus, type AnnouncementType, type AnnouncementsInput, type AnnouncementsReturn, type AuthenticateError, type AuthenticateInput, type AuthenticateReturn, type Authenticator, type AvailablePromosReturn, type AvailableQuestsReturn, type Bank, type BankDeposit, type BankWithdrawalRecord, type BetRecord, type BetRecordStatus, type BetRecordsInput, type BetRecordsReturn, type Bonus, type BonusReturn, type BonusesReturn, type CabinetSignInInput, type CabinetSignInReturn, type CabinetSiteMachine, type CabinetSiteMachineReturn, type CabinetSiteMachineStatus, type CabinetWithdrawalRecord, type CabinetWithdrawalReturn, type Cashback, type CashbackBonus, type CashbackBonusReturn, type CashbackStatus, type CashbacksReturn, type CheckInDailyQuestReturn, type ClaimCashbackBonusError, type ClaimCashbackBonusReturn, type ClaimRewardError, type ClaimRewardReturn, type ClaimSpotBonusReturn, type CompleteOnboardingInput, type CompleteOnboardingReturn, type CompoundField, type CreateAIOInstapayWithdrawalInput, type CreateAIOInstapayWithdrawalInput_Next, type CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateAiOGCashDepositInput, type CreateAiOGrabPayDepositInput, type CreateAiOPalawanPayDepositInput, type CreateAiOPayMayaDepositInput, type CreateBankWithdrawalInput, type CreateCabinetWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, type CreateGCashStandardCashInWithdrawalInput, type CreateGCashWebpayDepositInput, type CreateGCashWithdrawalInput, type CreateGameSessionByIdInput, type CreateGameSessionByReferenceInput, type CreateGameSessionError, type CreateGameSessionInput, type CreateGameSessionReturn, type CreateManualBankDepositInput, type CreateManualBankWithdrawalInput, type CreateManualUPIDepositInput, type CreateManualUPIWithdrawalInput, type CreateMayaAppDepositInput, type CreateMayaAppWithdrawalInput, type CreateMayaDepositInput, type CreateMayaWebpayDepositInput, type CreateMayaWithdrawalInput, type CreateSingleUseTokenError, type CreateSingleUseTokenInput, type CreateSingleUseTokenReturn, type CreateTestDepositInput, type CreateWithdrawalError, type CreateWithdrawalInput, type CreateWithdrawalReturn, type Currency, type DeleteAccountReturn, type Deposit, type DepositRecord, type DepositRecordsInput, type DepositRecordsReturn, type DepositReturn, type DepositStatus, type DepositType, type DepositsCountReturn, type DownlinesByNameInput, type DownlinesByNameReturn, type EndGameSessionReturn, type Environment, type FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type FreeBetDropStatus, type FreeBetDrops, type FreeBetDropsInput, type FreeBetDropsReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionLaunchOptions, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, type GcashWebpayDeposit, type GeneralMemberLevelSettings, type GeneralMemberLevelSettingsReturn, type GoogleClientIdReturn, type HttpError, type ImageField, type InstapayBank, type InstapayBankListReturn, type InstapayBankType, type InstapayWithdrawalRecord, type Jackpot, type JackpotPayout, type JackpotPayoutsInput, type JackpotPayoutsReturn, type JackpotStatus, type JackpotsInput, type JackpotsReturn, type JourneyQuestMilestone, type JourneyQuestMilestoneType, type KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, type LoginChannel, type ManualBankDeposit, type ManualBankWithdrawalRecord, type ManualDeposit, type ManualUPIDeposit, type ManualUPIWithdrawalRecord, type ManualWithdrawalRecord, type MarkAllMessagesAsReadReturn, type MarkGameAsFavoriteInput, type MarkGameAsFavoriteReturn, type MarkMessageAsReadReturn, type MayaAppDeposit, type MayaDeposit, type MayaSignInInput, type MayaSignInReturn, type MayaWithdrawalRecord, type MemberAchievement, type MemberAchievementReturn, type MemberLevelSetting, type MemberLevelSettings, type MemberLevelSettingsReturn, type MemberStatus, type MemberVerificationRequest, type MemberVerificationRequestAutomaticApprovalEnabledReturn, type MemberVerificationRequestReturn, type MemberVerificationRequestStatus, type Message, type MessageAction, type MessageIcon, type MessageType, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberCreateAccountInput__next, type MobileNumberInrCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, type NameCreateAccountInput, ObjectType, type OnboardingPlayerExperience, type OnboardingStatus, type OnboardingStatusReturn, type OnlineBankDeposit, type OperationError, type OperationResult, type PaymentSettings, type PaymentSettingsReturn, type Platform, type PlatformReturn, type PlatformReturn__Next, type Platform__Next, type PointsClubSettings, type PointsClubSettingsReturn, type PointsWallet, type PointsWalletReturn, type PointsWalletTransaction, type PointsWalletTransactionType, type PointsWalletTransactionsInput, type PointsWalletTransactionsReturn, type ProfileCompletion, type ProfileCompletionReturn, type Promo, type PromoByCodeReturn, type PromoFilterInput, type PromoStatus, type PromoType, type PromosReturn, type QRPHDeposit, type Quest, type QuestProgram, type QuestProgramStatus, type QuestStatus, type QuestType, type RecommendedGamesInput, type RecommendedGamesReturn, type RedeemPointsError, type RedeemPointsInput, type RedeemPointsReturn, type RedeemVoucherInput, type RedeemVoucherReturn, type Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterAgentAccountError, type RegisterAgentAccountInput, type RegisterAgentAccountReturn, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RemainingDailyWithdrawalsCountReturn, type RequireFirstDepositReturn, type ResetPasswordError, type ResetPasswordInput, type ResetPasswordReturn, type RichTextField, Sdk, type SdkConfig, type SecretQuestion, type SecurityQuestionAuthenticateInput, type SecurityQuestionAuthenticator, type SelectField, type SendEmailVerificationCodeInput, type SendSmsVerificationCodeInput, type SendVerificationCodeError, type SendVerificationCodeError__Next, type SendVerificationCodeInput__Next, type SendVerificationCodeReturn, type SendVerificationCodeReturn__Next, type Session, type SessionError, type SessionReturn, type SignInError, type SignInInput, type SignInReturn, type SingleUseTokenSignInInput, type SingleUseTokenSignInReturn, type Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitMemberVerificationError, type SubmitMemberVerificationRequestBasicDetailsInput, type SubmitMemberVerificationRequestBasicDetailsReturn, type SubmitMemberVerificationRequestImageDetailsInput, type SubmitMemberVerificationRequestImageDetailsReturn, type SubmitMemberVerificationRequestPersonalDetailsInput, type SubmitMemberVerificationRequestPersonalDetailsReturn, type SubmitMemberVerificationReturn, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsInputNext, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, type Tournament, type TournamentFrequency, type TournamentLeaderboard, type TournamentMode, type TournamentPayout, type TournamentStatus, type TournamentType, type TournamentsIdsInput, type TournamentsIdsReturn, type TournamentsInput, type TournamentsReturn, type TransactionRecord, type TransactionRecordsInput, type TransactionRecordsReturn, type TransactionType, type TurnoverRequirementType, type UnmarkGameAsFavoriteInput, type UnmarkGameAsFavoriteReturn, type UnreadMessagesCountInput, type UnreadMessagesCountReturn, type UnregisterFCMDeviceInput, type UnregisterFCMDeviceReturn, type UpdateAccountError, type UpdateAccountInput, type UpdateAccountReturn, type UpdateReferralCodeError, type UpdateReferralCodeInput, type UpdateReferralCodeReturn, type UpdateVerificationDetailsInput, type UpdateVerificationDetailsReturn, type UpdateVerificationError, type UplinesByNameInput, type UplinesByNameReturn, type UploadImageFileError, type UploadImageFileInput, type UploadImageFileReturn, type ValidateMayaSessionReturn, type VerificationDetails, type VerificationDetailsReturn, type VerificationDetailsStatus, type VerifyMobileNumberError, type VerifyMobileNumberReturn, type VoucherType, type WageringQuestStage, type WageringQuestStageSettings, type Wallet, type WalletGame, type WalletGameInput, type WalletGamesReturn, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType, type _JackpotsInput, type _JackpotsReturn };
|
package/dist/index.d.ts
CHANGED
|
@@ -470,6 +470,20 @@ interface TournamentsQueryVariables {
|
|
|
470
470
|
}
|
|
471
471
|
type TournamentsIdsQueryVariables = Pick<TournamentsQueryVariables, 'first' | 'after' | 'filter'>;
|
|
472
472
|
type MemberVerificationRequestStatus$1 = 'PENDING' | 'PENDING_MANUAL_APPROVAL' | 'APPROVED' | 'REJECTED';
|
|
473
|
+
type FreeBetDropStatus$1 = 'ACTIVE' | 'EXPIRED' | 'COMPLETED' | 'INACTIVE' | 'CANCELLED';
|
|
474
|
+
interface FreeBetDropsQueryVariables {
|
|
475
|
+
first?: number;
|
|
476
|
+
after?: string;
|
|
477
|
+
filter?: {
|
|
478
|
+
id?: ObjectIdFilterField;
|
|
479
|
+
name?: StringFilterField;
|
|
480
|
+
memberGroup?: ObjectIdFilterField;
|
|
481
|
+
status?: EnumFilterField<FreeBetDropStatus$1>;
|
|
482
|
+
games?: ObjectIdFilterField;
|
|
483
|
+
promo?: ObjectIdFilterField;
|
|
484
|
+
gameProvider?: EnumFilterField<GameProvider$1>;
|
|
485
|
+
};
|
|
486
|
+
}
|
|
473
487
|
|
|
474
488
|
type Environment = 'production' | 'development' | 'staging';
|
|
475
489
|
type WithCursor<T> = T & {
|
|
@@ -640,6 +654,8 @@ interface Account {
|
|
|
640
654
|
domain?: string | null;
|
|
641
655
|
branchCode?: string;
|
|
642
656
|
agent?: Agent | null;
|
|
657
|
+
level: number;
|
|
658
|
+
dateTimeLastActive?: Date;
|
|
643
659
|
}
|
|
644
660
|
type AccountReturn = OperationResult<never, Account>;
|
|
645
661
|
type VerificationDetailsStatus = UnionAlias<MemberVerificationStatus>;
|
|
@@ -727,6 +743,7 @@ interface MobileNumberCreateAccountInput__next {
|
|
|
727
743
|
type: 'MOBILE_NUMBER[NEXT]';
|
|
728
744
|
id?: string;
|
|
729
745
|
mobileNumber: string;
|
|
746
|
+
mobileNumberVerificationCode: string;
|
|
730
747
|
emailAddress?: string;
|
|
731
748
|
branchCode?: string;
|
|
732
749
|
reCAPTCHAResponse?: string;
|
|
@@ -1054,6 +1071,46 @@ interface LatestBetRecord {
|
|
|
1054
1071
|
dateTimeCreated: Date;
|
|
1055
1072
|
}
|
|
1056
1073
|
type LatestBetRecordsReturn = OperationResult<never, LatestBetRecord[]>;
|
|
1074
|
+
interface FreeBetDropsInput extends FreeBetDropsQueryVariables {
|
|
1075
|
+
}
|
|
1076
|
+
type FreeBetDropStatus = UnionAlias<FreeBetDropStatus$1>;
|
|
1077
|
+
interface FreeBetDrops {
|
|
1078
|
+
id: string;
|
|
1079
|
+
name: string;
|
|
1080
|
+
description: string;
|
|
1081
|
+
member: {
|
|
1082
|
+
id: string;
|
|
1083
|
+
name: string;
|
|
1084
|
+
};
|
|
1085
|
+
promo: {
|
|
1086
|
+
type: string;
|
|
1087
|
+
name: string;
|
|
1088
|
+
};
|
|
1089
|
+
gameProvider: GameProvider;
|
|
1090
|
+
games?: {
|
|
1091
|
+
id: string;
|
|
1092
|
+
name: string;
|
|
1093
|
+
provider: GameProvider;
|
|
1094
|
+
}[];
|
|
1095
|
+
remainingBets: number;
|
|
1096
|
+
bets: number;
|
|
1097
|
+
betValue: string;
|
|
1098
|
+
bonusMaximumAmount: string;
|
|
1099
|
+
bonusAmountPercentage: string;
|
|
1100
|
+
bonusTurnoverRequirementMultiplier: string;
|
|
1101
|
+
status: FreeBetDropStatus;
|
|
1102
|
+
activationDateTime: Date;
|
|
1103
|
+
expirationDateTime: Date;
|
|
1104
|
+
dateTimeCreated: Date;
|
|
1105
|
+
dateTimeCompleted?: Date;
|
|
1106
|
+
dateTimeLastUpdated: Date;
|
|
1107
|
+
payout: string;
|
|
1108
|
+
bonus: {
|
|
1109
|
+
id: string;
|
|
1110
|
+
amount: string;
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
1113
|
+
type FreeBetDropsReturn = OperationResult<never, PaginatedQueryResult<'freeBetDrops', FreeBetDrops>>;
|
|
1057
1114
|
type TransactionType = UnionAlias<TransactionType$1>;
|
|
1058
1115
|
interface TransactionRecord {
|
|
1059
1116
|
id: string;
|
|
@@ -2110,6 +2167,7 @@ declare class Sdk {
|
|
|
2110
2167
|
redeemVoucher(input: RedeemVoucherInput): Promise<RedeemVoucherReturn>;
|
|
2111
2168
|
betRecords(input?: BetRecordsInput): Promise<BetRecordsReturn>;
|
|
2112
2169
|
latestBetRecords(): Promise<LatestBetRecordsReturn>;
|
|
2170
|
+
freeBetDrops(input?: FreeBetDropsInput): Promise<FreeBetDropsReturn>;
|
|
2113
2171
|
transactionRecords(input?: TransactionRecordsInput): Promise<TransactionRecordsReturn>;
|
|
2114
2172
|
promos(): Promise<PromosReturn>;
|
|
2115
2173
|
availablePromos(input?: PromoFilterInput): Promise<AvailablePromosReturn>;
|
|
@@ -2181,4 +2239,4 @@ declare class Sdk {
|
|
|
2181
2239
|
private formatYmd;
|
|
2182
2240
|
}
|
|
2183
2241
|
|
|
2184
|
-
export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type AchievementPointsHistoryRecord, type AchievementPointsHistoryRecordInput, type AchievementPointsHistoryRecordReturn, type AchievementSettings, type AchievementSettingsResponse, type AchievementSettingsReturn, type AchievementType, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, type Agent, type AiOGCashDeposit, type AiOGrabPayDeposit, type AiOPalawanPayDeposit, type AiOPayMayaDeposit, type Announcement, type AnnouncementStatus, type AnnouncementType, type AnnouncementsInput, type AnnouncementsReturn, type AuthenticateError, type AuthenticateInput, type AuthenticateReturn, type Authenticator, type AvailablePromosReturn, type AvailableQuestsReturn, type Bank, type BankDeposit, type BankWithdrawalRecord, type BetRecord, type BetRecordStatus, type BetRecordsInput, type BetRecordsReturn, type Bonus, type BonusReturn, type BonusesReturn, type CabinetSignInInput, type CabinetSignInReturn, type CabinetSiteMachine, type CabinetSiteMachineReturn, type CabinetSiteMachineStatus, type CabinetWithdrawalRecord, type CabinetWithdrawalReturn, type Cashback, type CashbackBonus, type CashbackBonusReturn, type CashbackStatus, type CashbacksReturn, type CheckInDailyQuestReturn, type ClaimCashbackBonusError, type ClaimCashbackBonusReturn, type ClaimRewardError, type ClaimRewardReturn, type ClaimSpotBonusReturn, type CompleteOnboardingInput, type CompleteOnboardingReturn, type CompoundField, type CreateAIOInstapayWithdrawalInput, type CreateAIOInstapayWithdrawalInput_Next, type CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateAiOGCashDepositInput, type CreateAiOGrabPayDepositInput, type CreateAiOPalawanPayDepositInput, type CreateAiOPayMayaDepositInput, type CreateBankWithdrawalInput, type CreateCabinetWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, type CreateGCashStandardCashInWithdrawalInput, type CreateGCashWebpayDepositInput, type CreateGCashWithdrawalInput, type CreateGameSessionByIdInput, type CreateGameSessionByReferenceInput, type CreateGameSessionError, type CreateGameSessionInput, type CreateGameSessionReturn, type CreateManualBankDepositInput, type CreateManualBankWithdrawalInput, type CreateManualUPIDepositInput, type CreateManualUPIWithdrawalInput, type CreateMayaAppDepositInput, type CreateMayaAppWithdrawalInput, type CreateMayaDepositInput, type CreateMayaWebpayDepositInput, type CreateMayaWithdrawalInput, type CreateSingleUseTokenError, type CreateSingleUseTokenInput, type CreateSingleUseTokenReturn, type CreateTestDepositInput, type CreateWithdrawalError, type CreateWithdrawalInput, type CreateWithdrawalReturn, type Currency, type DeleteAccountReturn, type Deposit, type DepositRecord, type DepositRecordsInput, type DepositRecordsReturn, type DepositReturn, type DepositStatus, type DepositType, type DepositsCountReturn, type DownlinesByNameInput, type DownlinesByNameReturn, type EndGameSessionReturn, type Environment, type FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionLaunchOptions, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, type GcashWebpayDeposit, type GeneralMemberLevelSettings, type GeneralMemberLevelSettingsReturn, type GoogleClientIdReturn, type HttpError, type ImageField, type InstapayBank, type InstapayBankListReturn, type InstapayBankType, type InstapayWithdrawalRecord, type Jackpot, type JackpotPayout, type JackpotPayoutsInput, type JackpotPayoutsReturn, type JackpotStatus, type JackpotsInput, type JackpotsReturn, type JourneyQuestMilestone, type JourneyQuestMilestoneType, type KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, type LoginChannel, type ManualBankDeposit, type ManualBankWithdrawalRecord, type ManualDeposit, type ManualUPIDeposit, type ManualUPIWithdrawalRecord, type ManualWithdrawalRecord, type MarkAllMessagesAsReadReturn, type MarkGameAsFavoriteInput, type MarkGameAsFavoriteReturn, type MarkMessageAsReadReturn, type MayaAppDeposit, type MayaDeposit, type MayaSignInInput, type MayaSignInReturn, type MayaWithdrawalRecord, type MemberAchievement, type MemberAchievementReturn, type MemberLevelSetting, type MemberLevelSettings, type MemberLevelSettingsReturn, type MemberStatus, type MemberVerificationRequest, type MemberVerificationRequestAutomaticApprovalEnabledReturn, type MemberVerificationRequestReturn, type MemberVerificationRequestStatus, type Message, type MessageAction, type MessageIcon, type MessageType, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberCreateAccountInput__next, type MobileNumberInrCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, type NameCreateAccountInput, ObjectType, type OnboardingPlayerExperience, type OnboardingStatus, type OnboardingStatusReturn, type OnlineBankDeposit, type OperationError, type OperationResult, type PaymentSettings, type PaymentSettingsReturn, type Platform, type PlatformReturn, type PlatformReturn__Next, type Platform__Next, type PointsClubSettings, type PointsClubSettingsReturn, type PointsWallet, type PointsWalletReturn, type PointsWalletTransaction, type PointsWalletTransactionType, type PointsWalletTransactionsInput, type PointsWalletTransactionsReturn, type ProfileCompletion, type ProfileCompletionReturn, type Promo, type PromoByCodeReturn, type PromoFilterInput, type PromoStatus, type PromoType, type PromosReturn, type QRPHDeposit, type Quest, type QuestProgram, type QuestProgramStatus, type QuestStatus, type QuestType, type RecommendedGamesInput, type RecommendedGamesReturn, type RedeemPointsError, type RedeemPointsInput, type RedeemPointsReturn, type RedeemVoucherInput, type RedeemVoucherReturn, type Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterAgentAccountError, type RegisterAgentAccountInput, type RegisterAgentAccountReturn, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RemainingDailyWithdrawalsCountReturn, type RequireFirstDepositReturn, type ResetPasswordError, type ResetPasswordInput, type ResetPasswordReturn, type RichTextField, Sdk, type SdkConfig, type SecretQuestion, type SecurityQuestionAuthenticateInput, type SecurityQuestionAuthenticator, type SelectField, type SendEmailVerificationCodeInput, type SendSmsVerificationCodeInput, type SendVerificationCodeError, type SendVerificationCodeError__Next, type SendVerificationCodeInput__Next, type SendVerificationCodeReturn, type SendVerificationCodeReturn__Next, type Session, type SessionError, type SessionReturn, type SignInError, type SignInInput, type SignInReturn, type SingleUseTokenSignInInput, type SingleUseTokenSignInReturn, type Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitMemberVerificationError, type SubmitMemberVerificationRequestBasicDetailsInput, type SubmitMemberVerificationRequestBasicDetailsReturn, type SubmitMemberVerificationRequestImageDetailsInput, type SubmitMemberVerificationRequestImageDetailsReturn, type SubmitMemberVerificationRequestPersonalDetailsInput, type SubmitMemberVerificationRequestPersonalDetailsReturn, type SubmitMemberVerificationReturn, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsInputNext, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, type Tournament, type TournamentFrequency, type TournamentLeaderboard, type TournamentMode, type TournamentPayout, type TournamentStatus, type TournamentType, type TournamentsIdsInput, type TournamentsIdsReturn, type TournamentsInput, type TournamentsReturn, type TransactionRecord, type TransactionRecordsInput, type TransactionRecordsReturn, type TransactionType, type TurnoverRequirementType, type UnmarkGameAsFavoriteInput, type UnmarkGameAsFavoriteReturn, type UnreadMessagesCountInput, type UnreadMessagesCountReturn, type UnregisterFCMDeviceInput, type UnregisterFCMDeviceReturn, type UpdateAccountError, type UpdateAccountInput, type UpdateAccountReturn, type UpdateReferralCodeError, type UpdateReferralCodeInput, type UpdateReferralCodeReturn, type UpdateVerificationDetailsInput, type UpdateVerificationDetailsReturn, type UpdateVerificationError, type UplinesByNameInput, type UplinesByNameReturn, type UploadImageFileError, type UploadImageFileInput, type UploadImageFileReturn, type ValidateMayaSessionReturn, type VerificationDetails, type VerificationDetailsReturn, type VerificationDetailsStatus, type VerifyMobileNumberError, type VerifyMobileNumberReturn, type VoucherType, type WageringQuestStage, type WageringQuestStageSettings, type Wallet, type WalletGame, type WalletGameInput, type WalletGamesReturn, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType, type _JackpotsInput, type _JackpotsReturn };
|
|
2242
|
+
export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type AchievementPointsHistoryRecord, type AchievementPointsHistoryRecordInput, type AchievementPointsHistoryRecordReturn, type AchievementSettings, type AchievementSettingsResponse, type AchievementSettingsReturn, type AchievementType, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, type Agent, type AiOGCashDeposit, type AiOGrabPayDeposit, type AiOPalawanPayDeposit, type AiOPayMayaDeposit, type Announcement, type AnnouncementStatus, type AnnouncementType, type AnnouncementsInput, type AnnouncementsReturn, type AuthenticateError, type AuthenticateInput, type AuthenticateReturn, type Authenticator, type AvailablePromosReturn, type AvailableQuestsReturn, type Bank, type BankDeposit, type BankWithdrawalRecord, type BetRecord, type BetRecordStatus, type BetRecordsInput, type BetRecordsReturn, type Bonus, type BonusReturn, type BonusesReturn, type CabinetSignInInput, type CabinetSignInReturn, type CabinetSiteMachine, type CabinetSiteMachineReturn, type CabinetSiteMachineStatus, type CabinetWithdrawalRecord, type CabinetWithdrawalReturn, type Cashback, type CashbackBonus, type CashbackBonusReturn, type CashbackStatus, type CashbacksReturn, type CheckInDailyQuestReturn, type ClaimCashbackBonusError, type ClaimCashbackBonusReturn, type ClaimRewardError, type ClaimRewardReturn, type ClaimSpotBonusReturn, type CompleteOnboardingInput, type CompleteOnboardingReturn, type CompoundField, type CreateAIOInstapayWithdrawalInput, type CreateAIOInstapayWithdrawalInput_Next, type CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateAiOGCashDepositInput, type CreateAiOGrabPayDepositInput, type CreateAiOPalawanPayDepositInput, type CreateAiOPayMayaDepositInput, type CreateBankWithdrawalInput, type CreateCabinetWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, type CreateGCashStandardCashInWithdrawalInput, type CreateGCashWebpayDepositInput, type CreateGCashWithdrawalInput, type CreateGameSessionByIdInput, type CreateGameSessionByReferenceInput, type CreateGameSessionError, type CreateGameSessionInput, type CreateGameSessionReturn, type CreateManualBankDepositInput, type CreateManualBankWithdrawalInput, type CreateManualUPIDepositInput, type CreateManualUPIWithdrawalInput, type CreateMayaAppDepositInput, type CreateMayaAppWithdrawalInput, type CreateMayaDepositInput, type CreateMayaWebpayDepositInput, type CreateMayaWithdrawalInput, type CreateSingleUseTokenError, type CreateSingleUseTokenInput, type CreateSingleUseTokenReturn, type CreateTestDepositInput, type CreateWithdrawalError, type CreateWithdrawalInput, type CreateWithdrawalReturn, type Currency, type DeleteAccountReturn, type Deposit, type DepositRecord, type DepositRecordsInput, type DepositRecordsReturn, type DepositReturn, type DepositStatus, type DepositType, type DepositsCountReturn, type DownlinesByNameInput, type DownlinesByNameReturn, type EndGameSessionReturn, type Environment, type FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type FreeBetDropStatus, type FreeBetDrops, type FreeBetDropsInput, type FreeBetDropsReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionLaunchOptions, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, type GcashWebpayDeposit, type GeneralMemberLevelSettings, type GeneralMemberLevelSettingsReturn, type GoogleClientIdReturn, type HttpError, type ImageField, type InstapayBank, type InstapayBankListReturn, type InstapayBankType, type InstapayWithdrawalRecord, type Jackpot, type JackpotPayout, type JackpotPayoutsInput, type JackpotPayoutsReturn, type JackpotStatus, type JackpotsInput, type JackpotsReturn, type JourneyQuestMilestone, type JourneyQuestMilestoneType, type KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, type LoginChannel, type ManualBankDeposit, type ManualBankWithdrawalRecord, type ManualDeposit, type ManualUPIDeposit, type ManualUPIWithdrawalRecord, type ManualWithdrawalRecord, type MarkAllMessagesAsReadReturn, type MarkGameAsFavoriteInput, type MarkGameAsFavoriteReturn, type MarkMessageAsReadReturn, type MayaAppDeposit, type MayaDeposit, type MayaSignInInput, type MayaSignInReturn, type MayaWithdrawalRecord, type MemberAchievement, type MemberAchievementReturn, type MemberLevelSetting, type MemberLevelSettings, type MemberLevelSettingsReturn, type MemberStatus, type MemberVerificationRequest, type MemberVerificationRequestAutomaticApprovalEnabledReturn, type MemberVerificationRequestReturn, type MemberVerificationRequestStatus, type Message, type MessageAction, type MessageIcon, type MessageType, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberCreateAccountInput__next, type MobileNumberInrCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, type NameCreateAccountInput, ObjectType, type OnboardingPlayerExperience, type OnboardingStatus, type OnboardingStatusReturn, type OnlineBankDeposit, type OperationError, type OperationResult, type PaymentSettings, type PaymentSettingsReturn, type Platform, type PlatformReturn, type PlatformReturn__Next, type Platform__Next, type PointsClubSettings, type PointsClubSettingsReturn, type PointsWallet, type PointsWalletReturn, type PointsWalletTransaction, type PointsWalletTransactionType, type PointsWalletTransactionsInput, type PointsWalletTransactionsReturn, type ProfileCompletion, type ProfileCompletionReturn, type Promo, type PromoByCodeReturn, type PromoFilterInput, type PromoStatus, type PromoType, type PromosReturn, type QRPHDeposit, type Quest, type QuestProgram, type QuestProgramStatus, type QuestStatus, type QuestType, type RecommendedGamesInput, type RecommendedGamesReturn, type RedeemPointsError, type RedeemPointsInput, type RedeemPointsReturn, type RedeemVoucherInput, type RedeemVoucherReturn, type Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterAgentAccountError, type RegisterAgentAccountInput, type RegisterAgentAccountReturn, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RemainingDailyWithdrawalsCountReturn, type RequireFirstDepositReturn, type ResetPasswordError, type ResetPasswordInput, type ResetPasswordReturn, type RichTextField, Sdk, type SdkConfig, type SecretQuestion, type SecurityQuestionAuthenticateInput, type SecurityQuestionAuthenticator, type SelectField, type SendEmailVerificationCodeInput, type SendSmsVerificationCodeInput, type SendVerificationCodeError, type SendVerificationCodeError__Next, type SendVerificationCodeInput__Next, type SendVerificationCodeReturn, type SendVerificationCodeReturn__Next, type Session, type SessionError, type SessionReturn, type SignInError, type SignInInput, type SignInReturn, type SingleUseTokenSignInInput, type SingleUseTokenSignInReturn, type Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitMemberVerificationError, type SubmitMemberVerificationRequestBasicDetailsInput, type SubmitMemberVerificationRequestBasicDetailsReturn, type SubmitMemberVerificationRequestImageDetailsInput, type SubmitMemberVerificationRequestImageDetailsReturn, type SubmitMemberVerificationRequestPersonalDetailsInput, type SubmitMemberVerificationRequestPersonalDetailsReturn, type SubmitMemberVerificationReturn, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsInputNext, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, type Tournament, type TournamentFrequency, type TournamentLeaderboard, type TournamentMode, type TournamentPayout, type TournamentStatus, type TournamentType, type TournamentsIdsInput, type TournamentsIdsReturn, type TournamentsInput, type TournamentsReturn, type TransactionRecord, type TransactionRecordsInput, type TransactionRecordsReturn, type TransactionType, type TurnoverRequirementType, type UnmarkGameAsFavoriteInput, type UnmarkGameAsFavoriteReturn, type UnreadMessagesCountInput, type UnreadMessagesCountReturn, type UnregisterFCMDeviceInput, type UnregisterFCMDeviceReturn, type UpdateAccountError, type UpdateAccountInput, type UpdateAccountReturn, type UpdateReferralCodeError, type UpdateReferralCodeInput, type UpdateReferralCodeReturn, type UpdateVerificationDetailsInput, type UpdateVerificationDetailsReturn, type UpdateVerificationError, type UplinesByNameInput, type UplinesByNameReturn, type UploadImageFileError, type UploadImageFileInput, type UploadImageFileReturn, type ValidateMayaSessionReturn, type VerificationDetails, type VerificationDetailsReturn, type VerificationDetailsStatus, type VerifyMobileNumberError, type VerifyMobileNumberReturn, type VoucherType, type WageringQuestStage, type WageringQuestStageSettings, type Wallet, type WalletGame, type WalletGameInput, type WalletGamesReturn, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType, type _JackpotsInput, type _JackpotsReturn };
|
package/dist/index.js
CHANGED
|
@@ -1570,9 +1570,10 @@ var CLAIM_CASHBACK_BONUS_MUTATION = gql`
|
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
1572
|
`;
|
|
1573
|
-
gql`
|
|
1573
|
+
var MEMBER_QUERY = gql`
|
|
1574
1574
|
query Member {
|
|
1575
1575
|
member {
|
|
1576
|
+
level
|
|
1576
1577
|
dateTimeLastActive
|
|
1577
1578
|
}
|
|
1578
1579
|
}
|
|
@@ -3224,6 +3225,53 @@ var MEMBER_VERIFICATION_REQUEST_AUTOMATIC_APPROVAL_ENABLED_QUERY = gql`
|
|
|
3224
3225
|
memberVerificationRequestAutomaticApprovalEnabled
|
|
3225
3226
|
}
|
|
3226
3227
|
`;
|
|
3228
|
+
var FREE_BET_DROPS_QUERY = gql`
|
|
3229
|
+
query FreeBetDrops($first: Int, $after: Cursor, $filter: FreeBetDropFilterInput, $sort: FreeBetDropSortInput) {
|
|
3230
|
+
freeBetDrops(first: $first, after: $after, filter: $filter, sort: $sort) {
|
|
3231
|
+
edges {
|
|
3232
|
+
cursor
|
|
3233
|
+
node {
|
|
3234
|
+
... on FreeBetDrop {
|
|
3235
|
+
id
|
|
3236
|
+
name
|
|
3237
|
+
description
|
|
3238
|
+
member {
|
|
3239
|
+
id
|
|
3240
|
+
name
|
|
3241
|
+
}
|
|
3242
|
+
promo {
|
|
3243
|
+
type
|
|
3244
|
+
name
|
|
3245
|
+
}
|
|
3246
|
+
gameProvider
|
|
3247
|
+
games {
|
|
3248
|
+
id
|
|
3249
|
+
name
|
|
3250
|
+
provider
|
|
3251
|
+
}
|
|
3252
|
+
payout
|
|
3253
|
+
bets
|
|
3254
|
+
betValue
|
|
3255
|
+
bonusMaximumAmount
|
|
3256
|
+
bonusAmountPercentage
|
|
3257
|
+
bonusTurnoverRequirementMultiplier
|
|
3258
|
+
status
|
|
3259
|
+
activationDateTime
|
|
3260
|
+
expirationDateTime
|
|
3261
|
+
dateTimeCreated
|
|
3262
|
+
dateTimeCompleted
|
|
3263
|
+
dateTimeLastUpdated
|
|
3264
|
+
}
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
}
|
|
3268
|
+
pageInfo {
|
|
3269
|
+
hasNextPage
|
|
3270
|
+
endCursor
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
`;
|
|
3227
3275
|
|
|
3228
3276
|
// src/services/utils.ts
|
|
3229
3277
|
function createOperationError(code) {
|
|
@@ -4631,6 +4679,14 @@ var ReportService = class {
|
|
|
4631
4679
|
);
|
|
4632
4680
|
return res.ok ? { ok: res.ok, data: res.data } : res;
|
|
4633
4681
|
}
|
|
4682
|
+
async freeBetDrops(input) {
|
|
4683
|
+
const res = await this.client.request(FREE_BET_DROPS_QUERY, input);
|
|
4684
|
+
return res.ok ? { ok: res.ok, data: res.data.freeBetDrops } : res;
|
|
4685
|
+
}
|
|
4686
|
+
async member() {
|
|
4687
|
+
const res = await this.client.request(MEMBER_QUERY);
|
|
4688
|
+
return res.ok ? { ok: res.ok, data: res.data.member } : res;
|
|
4689
|
+
}
|
|
4634
4690
|
};
|
|
4635
4691
|
|
|
4636
4692
|
// src/services/trigger.service.ts
|
|
@@ -6977,7 +7033,8 @@ var Transformer = class {
|
|
|
6977
7033
|
achievementSettings: this.achievementSettings.bind(this),
|
|
6978
7034
|
achievementPointsHistoryRecord: this.achievementPointsHistoryRecord.bind(this),
|
|
6979
7035
|
memberAchievements: this.memberAchievements.bind(this),
|
|
6980
|
-
memberVerificationRequest: this.memberVerificationRequest.bind(this)
|
|
7036
|
+
memberVerificationRequest: this.memberVerificationRequest.bind(this),
|
|
7037
|
+
freeBetDrops: this.freeBetDrops.bind(this)
|
|
6981
7038
|
};
|
|
6982
7039
|
}
|
|
6983
7040
|
site(data) {
|
|
@@ -7799,7 +7856,9 @@ var Transformer = class {
|
|
|
7799
7856
|
googleId: data.googleId,
|
|
7800
7857
|
domain: data.domain ?? null,
|
|
7801
7858
|
branchCode: data.branchCode ?? void 0,
|
|
7802
|
-
agent: data.agent ?? null
|
|
7859
|
+
agent: data.agent ?? null,
|
|
7860
|
+
level: data.level ?? 0,
|
|
7861
|
+
dateTimeLastActive: data.dateTimeLastActive ? new Date(data.dateTimeLastActive) : void 0
|
|
7803
7862
|
};
|
|
7804
7863
|
return compact(o);
|
|
7805
7864
|
}
|
|
@@ -7928,6 +7987,32 @@ var Transformer = class {
|
|
|
7928
7987
|
};
|
|
7929
7988
|
return compact(o);
|
|
7930
7989
|
}
|
|
7990
|
+
freeBetDrops(data) {
|
|
7991
|
+
const o = {
|
|
7992
|
+
id: data.id,
|
|
7993
|
+
bets: parseDecimal(data.bets, 0),
|
|
7994
|
+
payout: data.payout,
|
|
7995
|
+
activationDateTime: new Date(data.activationDateTime),
|
|
7996
|
+
expirationDateTime: new Date(data.expirationDateTime),
|
|
7997
|
+
betValue: data.betValue,
|
|
7998
|
+
bonus: data.bonus,
|
|
7999
|
+
remainingBets: parseDecimal(data.remainingBets, 0),
|
|
8000
|
+
member: data.member,
|
|
8001
|
+
name: data.name,
|
|
8002
|
+
promo: data.promo,
|
|
8003
|
+
bonusMaximumAmount: data.bonusMaximumAmount,
|
|
8004
|
+
bonusAmountPercentage: data.bonusAmountPercentage,
|
|
8005
|
+
bonusTurnoverRequirementMultiplier: data.bonusTurnoverRequirementMultiplier,
|
|
8006
|
+
description: data.description,
|
|
8007
|
+
gameProvider: data.gameProvider,
|
|
8008
|
+
games: data.games,
|
|
8009
|
+
status: data.status,
|
|
8010
|
+
dateTimeCompleted: data.dateTimeCompleted ? new Date(data.dateTimeCompleted) : void 0,
|
|
8011
|
+
dateTimeCreated: new Date(data.dateTimeCreated),
|
|
8012
|
+
dateTimeLastUpdated: new Date(data.dateTimeLastUpdated)
|
|
8013
|
+
};
|
|
8014
|
+
return compact(o);
|
|
8015
|
+
}
|
|
7931
8016
|
latestBetRecord(data) {
|
|
7932
8017
|
const o = {
|
|
7933
8018
|
id: data.id,
|
|
@@ -8471,7 +8556,10 @@ var Sdk = class {
|
|
|
8471
8556
|
async init() {
|
|
8472
8557
|
const res = await this.accountService.memberAccount();
|
|
8473
8558
|
if (res.ok) {
|
|
8474
|
-
const accountData = this.transformer.transform.account(
|
|
8559
|
+
const accountData = this.transformer.transform.account({
|
|
8560
|
+
...res.data,
|
|
8561
|
+
level: 0
|
|
8562
|
+
});
|
|
8475
8563
|
this.memberDomain = accountData?.domain ?? null;
|
|
8476
8564
|
}
|
|
8477
8565
|
}
|
|
@@ -9006,11 +9094,18 @@ var Sdk = class {
|
|
|
9006
9094
|
*=============================================
|
|
9007
9095
|
*/
|
|
9008
9096
|
async account() {
|
|
9009
|
-
const
|
|
9010
|
-
|
|
9097
|
+
const [a, b] = await Promise.all([
|
|
9098
|
+
this.accountService.memberAccount(),
|
|
9099
|
+
this.reportService.member()
|
|
9100
|
+
]);
|
|
9101
|
+
if (!a.ok) return a;
|
|
9102
|
+
if (!b.ok) return b;
|
|
9011
9103
|
return {
|
|
9012
9104
|
ok: true,
|
|
9013
|
-
data: this.transformer.transform.account(
|
|
9105
|
+
data: this.transformer.transform.account({
|
|
9106
|
+
...a.data,
|
|
9107
|
+
...b.data
|
|
9108
|
+
})
|
|
9014
9109
|
};
|
|
9015
9110
|
}
|
|
9016
9111
|
/**
|
|
@@ -9108,6 +9203,7 @@ var Sdk = class {
|
|
|
9108
9203
|
input: {
|
|
9109
9204
|
id,
|
|
9110
9205
|
mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
|
|
9206
|
+
mobileNumberVerificationCode: input.mobileNumberVerificationCode,
|
|
9111
9207
|
emailAddress: input.emailAddress,
|
|
9112
9208
|
branchCode: input.branchCode
|
|
9113
9209
|
},
|
|
@@ -9897,6 +9993,22 @@ var Sdk = class {
|
|
|
9897
9993
|
})
|
|
9898
9994
|
};
|
|
9899
9995
|
}
|
|
9996
|
+
async freeBetDrops(input) {
|
|
9997
|
+
const res = await this.reportService.freeBetDrops(input);
|
|
9998
|
+
if (!res.ok) return res;
|
|
9999
|
+
return {
|
|
10000
|
+
ok: true,
|
|
10001
|
+
data: {
|
|
10002
|
+
freeBetDrops: res.data.edges.map(({ cursor, node }) => ({
|
|
10003
|
+
...this.transformer.transform.freeBetDrops(node),
|
|
10004
|
+
cursor
|
|
10005
|
+
})),
|
|
10006
|
+
totalCount: res.data.totalCount,
|
|
10007
|
+
endCursor: res.data.pageInfo.endCursor ?? void 0,
|
|
10008
|
+
hasNextPage: res.data.pageInfo.hasNextPage
|
|
10009
|
+
}
|
|
10010
|
+
};
|
|
10011
|
+
}
|
|
9900
10012
|
/*
|
|
9901
10013
|
*=============================================
|
|
9902
10014
|
* TRANSACTION
|