@opexa/portal-sdk 0.5.0 → 0.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.
package/dist/index.d.cts CHANGED
@@ -158,7 +158,7 @@ interface DepositRecordsQueryVariables {
158
158
  dateTimeLastUpdated?: DateFilterField;
159
159
  };
160
160
  }
161
- type CreateDepositError$1 = 'DepositPromoMaximumAmountExceededError' | 'DepositPromoMinimumAmountNotMetError' | 'MaximumDepositAmountExceededError' | 'MinimumDepositAmountNotMetError' | 'MinimumFirstDepositAmountNotMetError' | 'PromoNotEnabledError' | 'WalletDoesNotExistError' | 'ReCAPTCHAVerificationFailedError';
161
+ type CreateDepositError$1 = 'DepositPromoMaximumAmountExceededError' | 'DepositPromoMinimumAmountNotMetError' | 'MaximumDepositAmountExceededError' | 'MinimumDepositAmountNotMetError' | 'MinimumFirstDepositAmountNotMetError' | 'PromoNotEnabledError' | 'WalletDoesNotExistError' | 'ReCAPTCHAVerificationFailedError' | 'UPIReferenceNotAvailableError';
162
162
  type Bank$1 = 'AUBKPHMM' | 'MBTCPHMM' | 'BNORPHMM' | 'MKRUPHM1';
163
163
  type WithdrawalType$1 = 'MANUAL' | 'BANK' | 'GCASH' | 'MAYA_APP' | 'INSTAPAY' | 'MANUAL_UPI' | 'MANUAL_BANK';
164
164
  type WithdrawalStatus$1 = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
@@ -229,6 +229,7 @@ type SendVerificationCodeError__Next$1 = 'NotReadyToSendVerficationCodeError' |
229
229
  type VerifyMobileNumberError$1 = 'InvalidSMSVerificationCodeError' | 'MobileNumberAlreadyVerifiedError';
230
230
  type CreateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyError' | 'MemberVerificationAlreadyExistsError';
231
231
  type UpdateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyError' | 'MemberVerificationAlreadyApprovedError' | 'MemberVerificationDoesNotExistError';
232
+ type RegisterMemberAccountByMobileNumberError$1 = 'MobileNumberNotAvailableError' | 'InvalidSMSVerificationCodeError' | 'InvalidPlatformError';
232
233
  type CreateSessionError = 'AccountNotFoundError' | 'AccountBlacklistedError' | 'InvalidReCAPTCHAResponseError' | 'AccountSuspendedError';
233
234
  type RefreshSessionError$1 = 'InvalidTokenError' | 'AccountBlacklistedError' | 'AccountSuspendedError' | 'SessionExpiredError';
234
235
  interface SecurityQuestionAuthenticateInput$1 {
@@ -435,12 +436,17 @@ interface MayaSignInInput {
435
436
  type: 'MAYA';
436
437
  sessionId: string;
437
438
  }
439
+ interface BiometricsSignInInput {
440
+ type: 'BIOMETRICS';
441
+ token: string;
442
+ }
438
443
  type MayaSignInReturn = OperationResult<SignInError>;
439
444
  type MobileNumberSignInReturn = OperationResult<SignInError>;
440
445
  /** @deprecated use `SocialsSignInReturn` */
441
446
  type TokenSignInReturn = OperationResult<SignInError>;
442
447
  type SocialsSignInReturn = OperationResult<SignInError>;
443
448
  type CabinetSignInReturn = OperationResult<SignInError>;
449
+ type BiometricsSignInReturn = OperationResult<SignInError>;
444
450
  type NameAndPasswordSignInReturn = OperationResult<SignInError, {
445
451
  '2FAEnabled': true;
446
452
  authenticator: Authenticator;
@@ -448,9 +454,9 @@ type NameAndPasswordSignInReturn = OperationResult<SignInError, {
448
454
  '2FAEnabled': false;
449
455
  authenticator?: never;
450
456
  }>;
451
- type SignInInput = NameAndPasswordSignInInput | MobileNumberSignInInput | MayaSignInInput | TokenSignInInput | SocialsSignInInput | CabinetSignInInput;
457
+ type SignInInput = NameAndPasswordSignInInput | MobileNumberSignInInput | MayaSignInInput | TokenSignInInput | SocialsSignInInput | CabinetSignInInput | BiometricsSignInInput;
452
458
  type SignInError = UnionAlias<CreateSessionError>;
453
- type SignInReturn = NameAndPasswordSignInReturn | MobileNumberSignInReturn | MayaSignInReturn | TokenSignInReturn | SocialsSignInReturn | CabinetSignInReturn;
459
+ type SignInReturn = NameAndPasswordSignInReturn | MobileNumberSignInReturn | MayaSignInReturn | TokenSignInReturn | SocialsSignInReturn | CabinetSignInReturn | BiometricsSignInReturn;
454
460
  type RefreshSessionError = UnionAlias<RefreshSessionError$1>;
455
461
  interface SecurityQuestionAuthenticateInput extends SecurityQuestionAuthenticateInput$1 {
456
462
  }
@@ -651,6 +657,15 @@ type SendVerificationCodeError__Next = UnionAlias<SendVerificationCodeError__Nex
651
657
  type SendVerificationCodeReturn__Next = OperationResult<SendVerificationCodeError__Next>;
652
658
  type VerifyMobileNumberError = UnionAlias<VerifyMobileNumberError$1>;
653
659
  type VerifyMobileNumberReturn = OperationResult<VerifyMobileNumberError>;
660
+ interface RegisterMemberAccountByMobileNumberInput {
661
+ id: string;
662
+ mobileNumber: string;
663
+ password: string;
664
+ realName: string;
665
+ mobileNumberVerificationCode: string;
666
+ }
667
+ type RegisterMemberAccountByMobileNumberError = UnionAlias<RegisterMemberAccountByMobileNumberError$1>;
668
+ type RegisterMemberAccountByMobileNumberReturn = OperationResult<RegisterMemberAccountByMobileNumberError>;
654
669
  type Currency = UnionAlias<Currency$1>;
655
670
  interface Wallet {
656
671
  id: string;
@@ -1480,6 +1495,7 @@ declare class Sdk {
1480
1495
  signIn(input: TokenSignInInput): Promise<TokenSignInReturn>;
1481
1496
  signIn(input: SocialsSignInInput): Promise<SocialsSignInReturn>;
1482
1497
  signIn(input: CabinetSignInInput): Promise<CabinetSignInReturn>;
1498
+ signIn(input: BiometricsSignInInput): Promise<BiometricsSignInReturn>;
1483
1499
  authenticate(input: AuthenticateInput): Promise<AuthenticateReturn>;
1484
1500
  signOut(): Promise<void>;
1485
1501
  watchSession(input: WatchSessionInput): () => void;
@@ -1511,6 +1527,7 @@ declare class Sdk {
1511
1527
  sendVerificationCode(mobileNumber: string): Promise<SendVerificationCodeReturn>;
1512
1528
  sendVerificationCode__next(input: SendVerificationCodeInput__Next): Promise<SendVerificationCodeReturn__Next>;
1513
1529
  wallet(): Promise<WalletReturn>;
1530
+ registerMemberAccountByMobileNumber(input: RegisterMemberAccountByMobileNumberInput): Promise<RegisterMemberAccountByMobileNumberReturn>;
1514
1531
  announcements(input?: AnnouncementsInput): Promise<AnnouncementsReturn>;
1515
1532
  createWithdrawal(input: CreateWithdrawalInput): Promise<CreateWithdrawalReturn>;
1516
1533
  withdrawalRecords(input?: WithdrawalRecordsInput): Promise<WithdrawalRecordsReturn>;
@@ -1529,11 +1546,13 @@ declare class Sdk {
1529
1546
  cashbacks(): Promise<CashbacksReturn>;
1530
1547
  /** @deprecated */
1531
1548
  bonus(): Promise<BonusReturn>;
1549
+ bonuses(): Promise<BonusesReturn>;
1532
1550
  cashbackBonuses(): Promise<CashbackBonusReturn>;
1533
1551
  claimCashbackBonus(id: string): Promise<ClaimCashbackBonusReturn>;
1534
1552
  claimSpotBonus(code: string): Promise<ClaimSpotBonusReturn>;
1535
1553
  promoByCode(code: string): Promise<PromoByCodeReturn>;
1536
1554
  game(id: string): Promise<GameReturn>;
1555
+ /** @deprecated */
1537
1556
  games(input?: GamesInput): Promise<GamesReturn>;
1538
1557
  games__next(input?: GamesInput__Next): Promise<GamesReturn>;
1539
1558
  recommendedGames(input?: RecommendedGamesInput): Promise<RecommendedGamesReturn>;
@@ -1561,7 +1580,6 @@ declare class Sdk {
1561
1580
  markMessageAsRead(id: string): Promise<MarkMessageAsReadReturn>;
1562
1581
  markAllMessageAsRead(): Promise<MarkAllMessagesAsReadReturn>;
1563
1582
  claimReward(id: string): Promise<ClaimRewardReturn>;
1564
- bonuses(): Promise<BonusesReturn>;
1565
1583
  onboardingStatus(): Promise<OnboardingStatusReturn>;
1566
1584
  completeOnboarding(input: CompleteOnboardingInput): Promise<CompleteOnboardingReturn>;
1567
1585
  skipOnboarding(): Promise<SkipOnboardingReturn>;
@@ -1575,4 +1593,4 @@ declare class Sdk {
1575
1593
  private formatYmd;
1576
1594
  }
1577
1595
 
1578
- export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, 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 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 CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateBankWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, 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 CreateMayaWithdrawalInput, 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 FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, 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 KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, 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 MemberStatus, type Message, type MessageAction, type MessageIcon, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, 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 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 Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RegisterMemberAccountByNameInput, type RemainingDailyWithdrawalsCountReturn, 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 Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, 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 Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
1596
+ export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, 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 BiometricsSignInInput, type BiometricsSignInReturn, type Bonus, type BonusReturn, type BonusesReturn, type CabinetSignInInput, type CabinetSignInReturn, 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 CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateBankWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, 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 CreateMayaWithdrawalInput, 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 FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, 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 KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, 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 MemberStatus, type Message, type MessageAction, type MessageIcon, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, 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 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 Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RegisterMemberAccountByMobileNumberError, type RegisterMemberAccountByMobileNumberInput, type RegisterMemberAccountByMobileNumberReturn, type RegisterMemberAccountByNameInput, type RemainingDailyWithdrawalsCountReturn, 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 Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, 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 Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
package/dist/index.d.ts CHANGED
@@ -158,7 +158,7 @@ interface DepositRecordsQueryVariables {
158
158
  dateTimeLastUpdated?: DateFilterField;
159
159
  };
160
160
  }
161
- type CreateDepositError$1 = 'DepositPromoMaximumAmountExceededError' | 'DepositPromoMinimumAmountNotMetError' | 'MaximumDepositAmountExceededError' | 'MinimumDepositAmountNotMetError' | 'MinimumFirstDepositAmountNotMetError' | 'PromoNotEnabledError' | 'WalletDoesNotExistError' | 'ReCAPTCHAVerificationFailedError';
161
+ type CreateDepositError$1 = 'DepositPromoMaximumAmountExceededError' | 'DepositPromoMinimumAmountNotMetError' | 'MaximumDepositAmountExceededError' | 'MinimumDepositAmountNotMetError' | 'MinimumFirstDepositAmountNotMetError' | 'PromoNotEnabledError' | 'WalletDoesNotExistError' | 'ReCAPTCHAVerificationFailedError' | 'UPIReferenceNotAvailableError';
162
162
  type Bank$1 = 'AUBKPHMM' | 'MBTCPHMM' | 'BNORPHMM' | 'MKRUPHM1';
163
163
  type WithdrawalType$1 = 'MANUAL' | 'BANK' | 'GCASH' | 'MAYA_APP' | 'INSTAPAY' | 'MANUAL_UPI' | 'MANUAL_BANK';
164
164
  type WithdrawalStatus$1 = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
@@ -229,6 +229,7 @@ type SendVerificationCodeError__Next$1 = 'NotReadyToSendVerficationCodeError' |
229
229
  type VerifyMobileNumberError$1 = 'InvalidSMSVerificationCodeError' | 'MobileNumberAlreadyVerifiedError';
230
230
  type CreateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyError' | 'MemberVerificationAlreadyExistsError';
231
231
  type UpdateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyError' | 'MemberVerificationAlreadyApprovedError' | 'MemberVerificationDoesNotExistError';
232
+ type RegisterMemberAccountByMobileNumberError$1 = 'MobileNumberNotAvailableError' | 'InvalidSMSVerificationCodeError' | 'InvalidPlatformError';
232
233
  type CreateSessionError = 'AccountNotFoundError' | 'AccountBlacklistedError' | 'InvalidReCAPTCHAResponseError' | 'AccountSuspendedError';
233
234
  type RefreshSessionError$1 = 'InvalidTokenError' | 'AccountBlacklistedError' | 'AccountSuspendedError' | 'SessionExpiredError';
234
235
  interface SecurityQuestionAuthenticateInput$1 {
@@ -435,12 +436,17 @@ interface MayaSignInInput {
435
436
  type: 'MAYA';
436
437
  sessionId: string;
437
438
  }
439
+ interface BiometricsSignInInput {
440
+ type: 'BIOMETRICS';
441
+ token: string;
442
+ }
438
443
  type MayaSignInReturn = OperationResult<SignInError>;
439
444
  type MobileNumberSignInReturn = OperationResult<SignInError>;
440
445
  /** @deprecated use `SocialsSignInReturn` */
441
446
  type TokenSignInReturn = OperationResult<SignInError>;
442
447
  type SocialsSignInReturn = OperationResult<SignInError>;
443
448
  type CabinetSignInReturn = OperationResult<SignInError>;
449
+ type BiometricsSignInReturn = OperationResult<SignInError>;
444
450
  type NameAndPasswordSignInReturn = OperationResult<SignInError, {
445
451
  '2FAEnabled': true;
446
452
  authenticator: Authenticator;
@@ -448,9 +454,9 @@ type NameAndPasswordSignInReturn = OperationResult<SignInError, {
448
454
  '2FAEnabled': false;
449
455
  authenticator?: never;
450
456
  }>;
451
- type SignInInput = NameAndPasswordSignInInput | MobileNumberSignInInput | MayaSignInInput | TokenSignInInput | SocialsSignInInput | CabinetSignInInput;
457
+ type SignInInput = NameAndPasswordSignInInput | MobileNumberSignInInput | MayaSignInInput | TokenSignInInput | SocialsSignInInput | CabinetSignInInput | BiometricsSignInInput;
452
458
  type SignInError = UnionAlias<CreateSessionError>;
453
- type SignInReturn = NameAndPasswordSignInReturn | MobileNumberSignInReturn | MayaSignInReturn | TokenSignInReturn | SocialsSignInReturn | CabinetSignInReturn;
459
+ type SignInReturn = NameAndPasswordSignInReturn | MobileNumberSignInReturn | MayaSignInReturn | TokenSignInReturn | SocialsSignInReturn | CabinetSignInReturn | BiometricsSignInReturn;
454
460
  type RefreshSessionError = UnionAlias<RefreshSessionError$1>;
455
461
  interface SecurityQuestionAuthenticateInput extends SecurityQuestionAuthenticateInput$1 {
456
462
  }
@@ -651,6 +657,15 @@ type SendVerificationCodeError__Next = UnionAlias<SendVerificationCodeError__Nex
651
657
  type SendVerificationCodeReturn__Next = OperationResult<SendVerificationCodeError__Next>;
652
658
  type VerifyMobileNumberError = UnionAlias<VerifyMobileNumberError$1>;
653
659
  type VerifyMobileNumberReturn = OperationResult<VerifyMobileNumberError>;
660
+ interface RegisterMemberAccountByMobileNumberInput {
661
+ id: string;
662
+ mobileNumber: string;
663
+ password: string;
664
+ realName: string;
665
+ mobileNumberVerificationCode: string;
666
+ }
667
+ type RegisterMemberAccountByMobileNumberError = UnionAlias<RegisterMemberAccountByMobileNumberError$1>;
668
+ type RegisterMemberAccountByMobileNumberReturn = OperationResult<RegisterMemberAccountByMobileNumberError>;
654
669
  type Currency = UnionAlias<Currency$1>;
655
670
  interface Wallet {
656
671
  id: string;
@@ -1480,6 +1495,7 @@ declare class Sdk {
1480
1495
  signIn(input: TokenSignInInput): Promise<TokenSignInReturn>;
1481
1496
  signIn(input: SocialsSignInInput): Promise<SocialsSignInReturn>;
1482
1497
  signIn(input: CabinetSignInInput): Promise<CabinetSignInReturn>;
1498
+ signIn(input: BiometricsSignInInput): Promise<BiometricsSignInReturn>;
1483
1499
  authenticate(input: AuthenticateInput): Promise<AuthenticateReturn>;
1484
1500
  signOut(): Promise<void>;
1485
1501
  watchSession(input: WatchSessionInput): () => void;
@@ -1511,6 +1527,7 @@ declare class Sdk {
1511
1527
  sendVerificationCode(mobileNumber: string): Promise<SendVerificationCodeReturn>;
1512
1528
  sendVerificationCode__next(input: SendVerificationCodeInput__Next): Promise<SendVerificationCodeReturn__Next>;
1513
1529
  wallet(): Promise<WalletReturn>;
1530
+ registerMemberAccountByMobileNumber(input: RegisterMemberAccountByMobileNumberInput): Promise<RegisterMemberAccountByMobileNumberReturn>;
1514
1531
  announcements(input?: AnnouncementsInput): Promise<AnnouncementsReturn>;
1515
1532
  createWithdrawal(input: CreateWithdrawalInput): Promise<CreateWithdrawalReturn>;
1516
1533
  withdrawalRecords(input?: WithdrawalRecordsInput): Promise<WithdrawalRecordsReturn>;
@@ -1529,11 +1546,13 @@ declare class Sdk {
1529
1546
  cashbacks(): Promise<CashbacksReturn>;
1530
1547
  /** @deprecated */
1531
1548
  bonus(): Promise<BonusReturn>;
1549
+ bonuses(): Promise<BonusesReturn>;
1532
1550
  cashbackBonuses(): Promise<CashbackBonusReturn>;
1533
1551
  claimCashbackBonus(id: string): Promise<ClaimCashbackBonusReturn>;
1534
1552
  claimSpotBonus(code: string): Promise<ClaimSpotBonusReturn>;
1535
1553
  promoByCode(code: string): Promise<PromoByCodeReturn>;
1536
1554
  game(id: string): Promise<GameReturn>;
1555
+ /** @deprecated */
1537
1556
  games(input?: GamesInput): Promise<GamesReturn>;
1538
1557
  games__next(input?: GamesInput__Next): Promise<GamesReturn>;
1539
1558
  recommendedGames(input?: RecommendedGamesInput): Promise<RecommendedGamesReturn>;
@@ -1561,7 +1580,6 @@ declare class Sdk {
1561
1580
  markMessageAsRead(id: string): Promise<MarkMessageAsReadReturn>;
1562
1581
  markAllMessageAsRead(): Promise<MarkAllMessagesAsReadReturn>;
1563
1582
  claimReward(id: string): Promise<ClaimRewardReturn>;
1564
- bonuses(): Promise<BonusesReturn>;
1565
1583
  onboardingStatus(): Promise<OnboardingStatusReturn>;
1566
1584
  completeOnboarding(input: CompleteOnboardingInput): Promise<CompleteOnboardingReturn>;
1567
1585
  skipOnboarding(): Promise<SkipOnboardingReturn>;
@@ -1575,4 +1593,4 @@ declare class Sdk {
1575
1593
  private formatYmd;
1576
1594
  }
1577
1595
 
1578
- export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, 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 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 CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateBankWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, 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 CreateMayaWithdrawalInput, 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 FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, 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 KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, 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 MemberStatus, type Message, type MessageAction, type MessageIcon, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, 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 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 Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RegisterMemberAccountByNameInput, type RemainingDailyWithdrawalsCountReturn, 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 Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, 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 Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
1596
+ export { type Account, type AccountReturn, type AccountStatus, type AccountVerificationStatus, type ActivityRecord, type ActivityRecordType, type ActivityRecordsInput, type ActivityRecordsReturn, 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 BiometricsSignInInput, type BiometricsSignInReturn, type Bonus, type BonusReturn, type BonusesReturn, type CabinetSignInInput, type CabinetSignInReturn, 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 CreateAIOOnlineBankDepositInput, type CreateAIOQRPHDepositInput, type CreateAccountError, type CreateAccountInput, type CreateAccountInput__Next, type CreateAccountReturn, type CreateBankWithdrawalInput, type CreateDepositError, type CreateDepositInput, type CreateDepositReturn, type CreateGCashDepositInput, 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 CreateMayaWithdrawalInput, 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 FCMDeviceType, type FavoriteGamesReturn, type Field, type FieldType, type File, type FileReturn, type GCashDeposit, type GCashWithdrawalRecord, type Game, type GameProvider, type GameReturn, type GameSession, type GameSessionReturn, type GameSessionStatus, type GameTag, type GameType, type GamesInput, type GamesInput__Next, type GamesReturn, type GatewaySettings, 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 KnownDepositError, type LatestBetRecord, type LatestBetRecordsReturn, type Locale, 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 MemberStatus, type Message, type MessageAction, type MessageIcon, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, type MobileNumberSignInInput, type MobileNumberSignInReturn, type MultiSelectField, type NameAndPasswordCreateAccountInput, type NameAndPasswordSignInInput, type NameAndPasswordSignInReturn, 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 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 Referral, type ReferralCodeReturn, type ReferralCommission, type ReferralCommissionReturn, type ReferralsInput, type ReferralsReturn, type RefreshSessionError, type RegisterFCMDeviceInput, type RegisterFCMDeviceReturn, type RegisterMayaAccountError, type RegisterMayaAccountInput, type RegisterMayaAccountReturn, type RegisterMemberAccountByMobileNumberError, type RegisterMemberAccountByMobileNumberInput, type RegisterMemberAccountByMobileNumberReturn, type RegisterMemberAccountByNameInput, type RemainingDailyWithdrawalsCountReturn, 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 Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitVerificationDetailsInput, type SubmitVerificationDetailsReturn, type SubmitVerificationError, type TextField, type ToggleField, type TokenSignInInput, type TokenSignInReturn, type TopWin, type TopWinsReturn, type TouchDepositInput, type TouchDepositReturn, 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 Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
package/dist/index.js CHANGED
@@ -357,6 +357,9 @@ var CREATE_GCASH_WITHDRAWAL_MUTATION = gql`
357
357
  ... on WalletDoesNotExistError {
358
358
  __typename
359
359
  }
360
+ ... on TransactionPasswordNotSetError {
361
+ __typename
362
+ }
360
363
  }
361
364
  }
362
365
  `;
@@ -405,6 +408,9 @@ var CREATE_MAYA_APP_WITHDRAWAL_MUTATION = gql`
405
408
  ... on WalletDoesNotExistError {
406
409
  __typename
407
410
  }
411
+ ... on TransactionPasswordNotSetError {
412
+ __typename
413
+ }
408
414
  }
409
415
  }
410
416
  `;
@@ -438,6 +444,9 @@ var CREATE_AIO_INSTAPAY_WITHDRAWAL_MUTATION = gql`
438
444
  ... on WalletDoesNotExistError {
439
445
  __typename
440
446
  }
447
+ ... on TransactionPasswordNotSetError {
448
+ __typename
449
+ }
441
450
  }
442
451
  }
443
452
  `;
@@ -726,6 +735,9 @@ var CREATE_MANUAL_UPI_DEPOSIT_MUTATION = gql`
726
735
  ... on WalletDoesNotExistError {
727
736
  __typename
728
737
  }
738
+ ... on UPIReferenceNotAvailableError {
739
+ __typename
740
+ }
729
741
  }
730
742
  }
731
743
  `;
@@ -1387,6 +1399,27 @@ var SEND_VERIFICATION_CODE_MUTATION = gql`
1387
1399
  }
1388
1400
  }
1389
1401
  `;
1402
+ var REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION = gql`
1403
+ mutation RegisterMemberAccountByMobileNumber(
1404
+ $input: RegisterMemberAccountByMobileNumberInput!
1405
+ $mobileNumberVerificationCode: String!
1406
+ ) {
1407
+ registerMemberAccountByMobileNumber(
1408
+ input: $input
1409
+ mobileNumberVerificationCode: $mobileNumberVerificationCode
1410
+ ) {
1411
+ ... on MobileNumberNotAvailableError {
1412
+ __typename
1413
+ }
1414
+ ... on InvalidSMSVerificationCodeError {
1415
+ __typename
1416
+ }
1417
+ ... on InvalidPlatformError {
1418
+ __typename
1419
+ }
1420
+ }
1421
+ }
1422
+ `;
1390
1423
  var PLATFORM_QUERY = gql`
1391
1424
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
1392
1425
  minimumAmount
@@ -1993,7 +2026,7 @@ var UNMARK_GAME_AS_FAVORITE = gql`
1993
2026
  }
1994
2027
  `;
1995
2028
  var FAVORITE_GAMES_QUERY = gql`
1996
- query favoriteGames {
2029
+ query FavoriteGames {
1997
2030
  favoriteGames {
1998
2031
  id
1999
2032
  }
@@ -2057,7 +2090,9 @@ function createOperationError(code) {
2057
2090
  RateLimitExceededError: "Maximum number of requests reached",
2058
2091
  RewardAlreadyClaimedError: "Reward is already claimed",
2059
2092
  ReCAPTCHAVerificationFailedError: "Invalid reCAPTCHA",
2060
- AccountSuspendedError: "Account is suspended"
2093
+ AccountSuspendedError: "Account is suspended",
2094
+ TransactionPasswordNotSetError: "Transaction password is not set",
2095
+ UPIReferenceNotAvailableError: "UPI reference is no longer available"
2061
2096
  };
2062
2097
  return {
2063
2098
  name: code,
@@ -2325,6 +2360,19 @@ var AccountService = class {
2325
2360
  const res = await this.client.request(POINTS_CLUB_SETTINGS_QUERY);
2326
2361
  return res.ok ? { ok: true, data: res.data.pointsClubSettings } : res;
2327
2362
  }
2363
+ async registerMemberAccountByMobileNumber(variables) {
2364
+ const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION, variables);
2365
+ if (!res.ok) return res;
2366
+ if (res.data.registerMemberAccountByMobileNumber) {
2367
+ return {
2368
+ ok: false,
2369
+ error: createOperationError(res.data.registerMemberAccountByMobileNumber.__typename)
2370
+ };
2371
+ }
2372
+ return {
2373
+ ok: true
2374
+ };
2375
+ }
2328
2376
  };
2329
2377
 
2330
2378
  // src/utils/status-code-to-operation-error.ts
@@ -2380,6 +2428,9 @@ var AuthService = class {
2380
2428
  if (input.type === "CABINET") {
2381
2429
  headers.set("Authorization", `OPEXA-CABINET-TOKEN ${input.token}`);
2382
2430
  }
2431
+ if (input.type === "BIOMETRICS") {
2432
+ headers.set("Authorization", `Biometrics ${input.token}`);
2433
+ }
2383
2434
  if (input.reCAPTCHAResponse) {
2384
2435
  headers.set("google-recaptcha-response", input.reCAPTCHAResponse);
2385
2436
  }
@@ -5364,6 +5415,9 @@ var Sdk = class {
5364
5415
  });
5365
5416
  }
5366
5417
  async signIn(input) {
5418
+ if (input.type === "TOKEN") {
5419
+ console.warn("'TOKEN (signIn)' is deprecated. Please use 'SOCIALS' instead.");
5420
+ }
5367
5421
  switch (input.type) {
5368
5422
  case "NAME_AND_PASSWORD": {
5369
5423
  const res = await this.sessionManager.create({
@@ -5411,6 +5465,13 @@ var Sdk = class {
5411
5465
  });
5412
5466
  return res.ok ? { ok: true } : res;
5413
5467
  }
5468
+ case "BIOMETRICS": {
5469
+ const res = await this.sessionManager.create({
5470
+ type: "BIOMETRICS",
5471
+ token: input.token
5472
+ });
5473
+ return res.ok ? { ok: true } : res;
5474
+ }
5414
5475
  default: {
5415
5476
  const res = await this.sessionManager.create(input);
5416
5477
  return res.ok ? { ok: true } : res;
@@ -5493,6 +5554,7 @@ var Sdk = class {
5493
5554
  /**/
5494
5555
  /** @deprecated */
5495
5556
  async platform() {
5557
+ console.warn("'platform' is deprecated. Please use 'platform__next' instead.");
5496
5558
  const res = await this.accountService.platform();
5497
5559
  if (!res.ok) return res;
5498
5560
  return {
@@ -5533,6 +5595,7 @@ var Sdk = class {
5533
5595
  * @deprecated use `createAccount__next`
5534
5596
  */
5535
5597
  async createAccount(input) {
5598
+ console.warn("'createAccount' is deprecated. Please use 'createAccount__next' instead.");
5536
5599
  const id = input.id ?? ObjectId.generate(ObjectType.Account).toString();
5537
5600
  const res = await this.accountService.registerMemberAccount({
5538
5601
  input: {
@@ -5686,6 +5749,9 @@ var Sdk = class {
5686
5749
  * @deprecated use `sendVerificationCode__next`
5687
5750
  */
5688
5751
  async sendVerificationCode(mobileNumber) {
5752
+ console.warn(
5753
+ "'sendVerificationCode' is deprecated. Please use 'sendVerificationCode__next' instead."
5754
+ );
5689
5755
  return await this.accountService.sendVerificationCode({
5690
5756
  input: {
5691
5757
  channel: "SMS",
@@ -5713,6 +5779,17 @@ var Sdk = class {
5713
5779
  data: res.data ? this.transformer.transform.wallet(res.data) : null
5714
5780
  };
5715
5781
  }
5782
+ async registerMemberAccountByMobileNumber(input) {
5783
+ return await this.accountService.registerMemberAccountByMobileNumber({
5784
+ input: {
5785
+ id: input.id,
5786
+ mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
5787
+ password: await sha256(input.password),
5788
+ realName: input.realName
5789
+ },
5790
+ mobileNumberVerificationCode: input.mobileNumberVerificationCode
5791
+ });
5792
+ }
5716
5793
  /**/
5717
5794
  /*+----------------------------------------+*/
5718
5795
  /*+ ANNOUNCEMENT +*/
@@ -6139,6 +6216,7 @@ var Sdk = class {
6139
6216
  }
6140
6217
  /** @deprecated */
6141
6218
  async bonus() {
6219
+ console.warn("'bonus' is deprecated. Please use 'bonuses' instead.");
6142
6220
  const res = await this.walletService.bonus();
6143
6221
  if (!res.ok) return res;
6144
6222
  return {
@@ -6146,6 +6224,14 @@ var Sdk = class {
6146
6224
  data: res.data ? this.transformer.transform.bonus(res.data) : null
6147
6225
  };
6148
6226
  }
6227
+ async bonuses() {
6228
+ const res = await this.walletService.bonuses();
6229
+ if (!res.ok) return res;
6230
+ return {
6231
+ ok: true,
6232
+ data: res.data.map(this.transformer.transform.bonus)
6233
+ };
6234
+ }
6149
6235
  async cashbackBonuses() {
6150
6236
  const res = await this.walletService.cashbackBonuses();
6151
6237
  if (!res.ok) return res;
@@ -6181,7 +6267,9 @@ var Sdk = class {
6181
6267
  data: res.data ? this.transformer.transform.game(res.data) : null
6182
6268
  };
6183
6269
  }
6270
+ /** @deprecated */
6184
6271
  async games(input) {
6272
+ console.warn("'games' is deprecated. Please use 'games__next' instead.");
6185
6273
  const res = await this.cmsPortalService.games(input);
6186
6274
  if (!res.ok) return res;
6187
6275
  return {
@@ -6527,14 +6615,6 @@ var Sdk = class {
6527
6615
  async claimReward(id) {
6528
6616
  return await this.triggerService.claimReward({ id });
6529
6617
  }
6530
- async bonuses() {
6531
- const res = await this.walletService.bonuses();
6532
- if (!res.ok) return res;
6533
- return {
6534
- ok: true,
6535
- data: res.data.map(this.transformer.transform.bonus)
6536
- };
6537
- }
6538
6618
  /**/
6539
6619
  /*+----------------------------------------+*/
6540
6620
  /*+ ONBOARDING +*/