@opexa/portal-sdk 0.50.0 → 0.50.2

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
@@ -155,7 +155,7 @@ interface BetRecordsQueryVariables {
155
155
  startDateTime?: DateFilterField;
156
156
  endDateTime?: DateFilterField;
157
157
  }
158
- type DepositType$1 = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'AIO_GCASH' | 'AIO_PAY_MAYA' | 'AIO_GRAB_PAY' | 'AIO_PALAWAN_PAY' | 'GCASH_WEBPAY';
158
+ type DepositType$1 = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'AIO_GCASH' | 'AIO_PAY_MAYA' | 'AIO_GRAB_PAY' | 'AIO_PALAWAN_PAY' | 'GCASH_WEBPAY' | 'MAYA_WEBPAY';
159
159
  type DepositStatus$1 = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
160
160
  type KnownDepositError$1 = 'INSUFFICIENT_BALANCE' | 'DEPOSIT_CREATION_REQUEST_FAILED' | 'DEPOSIT_EXECUTION_REQUEST_FAILED' | 'REQUEST_SESSION_EXPIRED' | 'REQUEST_TIMEOUT' | 'SYSTEM_CANCELLATION' | 'UNEXPECTED_ERROR' | 'FAILED_TO_PROCESS_PAYMENT' | 'MINIMUM_DEPOSIT_AMOUNT_NOT_MET' | 'UNTOUCHED';
161
161
  interface DepositRecordsQueryVariables {
@@ -1104,7 +1104,11 @@ interface CreateManualBankDepositInput extends CreateDepositBaseInput {
1104
1104
  type: 'MANUAL_BANK';
1105
1105
  referenceId: string;
1106
1106
  }
1107
- type CreateDepositInput = CreateMayaDepositInput | CreateGCashDepositInput | CreateMayaAppDepositInput | CreateAIOQRPHDepositInput | CreateAIOOnlineBankDepositInput | CreateManualBankDepositInput | CreateManualUPIDepositInput | CreateAIOOnlineBankDepositInput | CreateAiOGCashDepositInput | CreateAiOPayMayaDepositInput | CreateAiOGrabPayDepositInput | CreateAiOPalawanPayDepositInput | CreateGCashWebpayDepositInput;
1107
+ interface CreateMayaWebpayDepositInput extends CreateDepositBaseInput {
1108
+ type: 'MAYA_WEBPAY';
1109
+ redirectUrl: string;
1110
+ }
1111
+ type CreateDepositInput = CreateMayaDepositInput | CreateGCashDepositInput | CreateMayaAppDepositInput | CreateAIOQRPHDepositInput | CreateAIOOnlineBankDepositInput | CreateManualBankDepositInput | CreateManualUPIDepositInput | CreateAIOOnlineBankDepositInput | CreateAiOGCashDepositInput | CreateAiOPayMayaDepositInput | CreateAiOGrabPayDepositInput | CreateAiOPalawanPayDepositInput | CreateGCashWebpayDepositInput | CreateMayaWebpayDepositInput;
1108
1112
  type CreateDepositError = UnionAlias<CreateDepositError$1>;
1109
1113
  type CreateDepositReturn = OperationResult<CreateDepositError, {
1110
1114
  id: string;
@@ -1291,6 +1295,7 @@ interface PaymentSettings {
1291
1295
  aioPalawanPay: GatewaySettings;
1292
1296
  maya: GatewaySettings;
1293
1297
  mayaApp: GatewaySettings;
1298
+ mayaWebpay: GatewaySettings;
1294
1299
  qrph: GatewaySettings;
1295
1300
  onlineBank: GatewaySettings;
1296
1301
  manualBank: GatewaySettings;
@@ -1730,6 +1735,8 @@ interface UnregisterFCMDeviceInput {
1730
1735
  }
1731
1736
  type UnregisterFCMDeviceReturn = OperationResult;
1732
1737
  type GoogleClientIdReturn = OperationResult<never, string | null>;
1738
+ type RequireFirstDeposit = boolean;
1739
+ type RequireFirstDepositReturn = OperationResult<never, RequireFirstDeposit>;
1733
1740
  type TournamentStatus = 'ACTIVE' | 'INACTIVE' | 'DELETED';
1734
1741
  type TournamentType = 'MULTIPLIER';
1735
1742
  type TournamentFrequency = 'DAILY' | 'WEEKLY' | 'MONTHLY';
@@ -1947,7 +1954,8 @@ declare class Sdk {
1947
1954
  registerFCMDevice(input: RegisterFCMDeviceInput): Promise<RegisterFCMDeviceReturn>;
1948
1955
  unregisterFCMDevice(input: UnregisterFCMDeviceInput): Promise<UnregisterFCMDeviceReturn>;
1949
1956
  googleClientId(): Promise<GoogleClientIdReturn>;
1957
+ requireFirstDeposit(): Promise<RequireFirstDepositReturn>;
1950
1958
  private formatYmd;
1951
1959
  }
1952
1960
 
1953
- 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 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 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 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 CreateMayaWithdrawalInput, type CreateSingleUseTokenError, type CreateSingleUseTokenReturn, 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 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 Message, type MessageAction, type MessageIcon, type MessageType, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, 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 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 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 SingleUseTokenSignInInput, type SingleUseTokenSignInReturn, type Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitMemberVerificationError, 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 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 WageringQuestStage, type WageringQuestStageSettings, type Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
1961
+ 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 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 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 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 CreateSingleUseTokenReturn, 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 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 Message, type MessageAction, type MessageIcon, type MessageType, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, 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 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 RemainingDailyWithdrawalsCountReturn, type RequireFirstDeposit, 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 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 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 WageringQuestStage, type WageringQuestStageSettings, type Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
package/dist/index.d.ts CHANGED
@@ -155,7 +155,7 @@ interface BetRecordsQueryVariables {
155
155
  startDateTime?: DateFilterField;
156
156
  endDateTime?: DateFilterField;
157
157
  }
158
- type DepositType$1 = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'AIO_GCASH' | 'AIO_PAY_MAYA' | 'AIO_GRAB_PAY' | 'AIO_PALAWAN_PAY' | 'GCASH_WEBPAY';
158
+ type DepositType$1 = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'AIO_GCASH' | 'AIO_PAY_MAYA' | 'AIO_GRAB_PAY' | 'AIO_PALAWAN_PAY' | 'GCASH_WEBPAY' | 'MAYA_WEBPAY';
159
159
  type DepositStatus$1 = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
160
160
  type KnownDepositError$1 = 'INSUFFICIENT_BALANCE' | 'DEPOSIT_CREATION_REQUEST_FAILED' | 'DEPOSIT_EXECUTION_REQUEST_FAILED' | 'REQUEST_SESSION_EXPIRED' | 'REQUEST_TIMEOUT' | 'SYSTEM_CANCELLATION' | 'UNEXPECTED_ERROR' | 'FAILED_TO_PROCESS_PAYMENT' | 'MINIMUM_DEPOSIT_AMOUNT_NOT_MET' | 'UNTOUCHED';
161
161
  interface DepositRecordsQueryVariables {
@@ -1104,7 +1104,11 @@ interface CreateManualBankDepositInput extends CreateDepositBaseInput {
1104
1104
  type: 'MANUAL_BANK';
1105
1105
  referenceId: string;
1106
1106
  }
1107
- type CreateDepositInput = CreateMayaDepositInput | CreateGCashDepositInput | CreateMayaAppDepositInput | CreateAIOQRPHDepositInput | CreateAIOOnlineBankDepositInput | CreateManualBankDepositInput | CreateManualUPIDepositInput | CreateAIOOnlineBankDepositInput | CreateAiOGCashDepositInput | CreateAiOPayMayaDepositInput | CreateAiOGrabPayDepositInput | CreateAiOPalawanPayDepositInput | CreateGCashWebpayDepositInput;
1107
+ interface CreateMayaWebpayDepositInput extends CreateDepositBaseInput {
1108
+ type: 'MAYA_WEBPAY';
1109
+ redirectUrl: string;
1110
+ }
1111
+ type CreateDepositInput = CreateMayaDepositInput | CreateGCashDepositInput | CreateMayaAppDepositInput | CreateAIOQRPHDepositInput | CreateAIOOnlineBankDepositInput | CreateManualBankDepositInput | CreateManualUPIDepositInput | CreateAIOOnlineBankDepositInput | CreateAiOGCashDepositInput | CreateAiOPayMayaDepositInput | CreateAiOGrabPayDepositInput | CreateAiOPalawanPayDepositInput | CreateGCashWebpayDepositInput | CreateMayaWebpayDepositInput;
1108
1112
  type CreateDepositError = UnionAlias<CreateDepositError$1>;
1109
1113
  type CreateDepositReturn = OperationResult<CreateDepositError, {
1110
1114
  id: string;
@@ -1291,6 +1295,7 @@ interface PaymentSettings {
1291
1295
  aioPalawanPay: GatewaySettings;
1292
1296
  maya: GatewaySettings;
1293
1297
  mayaApp: GatewaySettings;
1298
+ mayaWebpay: GatewaySettings;
1294
1299
  qrph: GatewaySettings;
1295
1300
  onlineBank: GatewaySettings;
1296
1301
  manualBank: GatewaySettings;
@@ -1730,6 +1735,8 @@ interface UnregisterFCMDeviceInput {
1730
1735
  }
1731
1736
  type UnregisterFCMDeviceReturn = OperationResult;
1732
1737
  type GoogleClientIdReturn = OperationResult<never, string | null>;
1738
+ type RequireFirstDeposit = boolean;
1739
+ type RequireFirstDepositReturn = OperationResult<never, RequireFirstDeposit>;
1733
1740
  type TournamentStatus = 'ACTIVE' | 'INACTIVE' | 'DELETED';
1734
1741
  type TournamentType = 'MULTIPLIER';
1735
1742
  type TournamentFrequency = 'DAILY' | 'WEEKLY' | 'MONTHLY';
@@ -1947,7 +1954,8 @@ declare class Sdk {
1947
1954
  registerFCMDevice(input: RegisterFCMDeviceInput): Promise<RegisterFCMDeviceReturn>;
1948
1955
  unregisterFCMDevice(input: UnregisterFCMDeviceInput): Promise<UnregisterFCMDeviceReturn>;
1949
1956
  googleClientId(): Promise<GoogleClientIdReturn>;
1957
+ requireFirstDeposit(): Promise<RequireFirstDepositReturn>;
1950
1958
  private formatYmd;
1951
1959
  }
1952
1960
 
1953
- 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 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 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 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 CreateMayaWithdrawalInput, type CreateSingleUseTokenError, type CreateSingleUseTokenReturn, 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 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 Message, type MessageAction, type MessageIcon, type MessageType, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, 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 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 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 SingleUseTokenSignInInput, type SingleUseTokenSignInReturn, type Site, type SiteReturn, type SkipOnboardingReturn, type SocialsSignInInput, type SocialsSignInReturn, type SpotBonusPromo, type SubmitMemberVerificationError, 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 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 WageringQuestStage, type WageringQuestStageSettings, type Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
1961
+ 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 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 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 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 CreateSingleUseTokenReturn, 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 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 Message, type MessageAction, type MessageIcon, type MessageType, type MessagesInput, type MessagesReturn, type MobileNumberCreateAccountInput, 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 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 RemainingDailyWithdrawalsCountReturn, type RequireFirstDeposit, 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 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 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 WageringQuestStage, type WageringQuestStageSettings, type Wallet, type WalletReturn, type WatchSessionInput, type WithdrawalError, type WithdrawalRecord, type WithdrawalRecordsInput, type WithdrawalRecordsReturn, type WithdrawalStatus, type WithdrawalType };
package/dist/index.js CHANGED
@@ -250,6 +250,11 @@ var ANNOUNCEMENTS_QUERY = gql`
250
250
  }
251
251
  }
252
252
  `;
253
+ var REQUIRE_FIRST_DEPOSIT_QUERY = gql`
254
+ query RequireFirstDeposit {
255
+ requireFirstDeposit
256
+ }
257
+ `;
253
258
  var WITHDRAWAL_RECORDS_QUERY = gql`
254
259
  query WithdrawalRecords(
255
260
  $first: Int
@@ -752,6 +757,33 @@ var CREATE_GCASH_WEBPAY_DEPOSIT_MUTATION = gql`
752
757
  }
753
758
  }
754
759
  `;
760
+ var CREATE_MAYA_WEBPAY_DEPOSIT_MUTATION = gql`
761
+ mutation CreateMayaWebpayDeposit($input: CreateMayaWebpayDepositInput!) {
762
+ createMayaWebpayDeposit(input: $input) {
763
+ ... on DepositPromoMaximumAmountExceededError {
764
+ __typename
765
+ }
766
+ ... on DepositPromoMinimumAmountNotMetError {
767
+ __typename
768
+ }
769
+ ... on MaximumDepositAmountExceededError {
770
+ __typename
771
+ }
772
+ ... on MinimumDepositAmountNotMetError {
773
+ __typename
774
+ }
775
+ ... on MinimumFirstDepositAmountNotMetError {
776
+ __typename
777
+ }
778
+ ... on PromoNotEnabledError {
779
+ __typename
780
+ }
781
+ ... on WalletDoesNotExistError {
782
+ __typename
783
+ }
784
+ }
785
+ }
786
+ `;
755
787
  var CREATE_MAYA_DEPOSIT_MUTATION = gql`
756
788
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
757
789
  createMayaDeposit(input: $input) {
@@ -1121,6 +1153,13 @@ var DEPOSIT_QUERY = gql`
1121
1153
  checkoutUrl
1122
1154
  error
1123
1155
  }
1156
+ ... on MayaWebpayDeposit {
1157
+ id
1158
+ type
1159
+ status
1160
+ checkoutUrl
1161
+ error
1162
+ }
1124
1163
  }
1125
1164
  }
1126
1165
  `;
@@ -2123,6 +2162,9 @@ var PAYMENT_SETTINGS_QUERY = gql`
2123
2162
  mayaAppDepositGatewaySettings: depositGatewaySettings(gateway: MAYA_APP) {
2124
2163
  ...DepositGatewaySettingsCoreData
2125
2164
  }
2165
+ mayaWebpayDepositGatewaySettings: depositGatewaySettings(gateway: MAYA_WEBPAY) {
2166
+ ...DepositGatewaySettingsCoreData
2167
+ }
2126
2168
  onlineBankDepositGatewaySettings: depositGatewaySettings(
2127
2169
  gateway: ONLINE_BANK
2128
2170
  ) {
@@ -3222,6 +3264,16 @@ var AccountService = class {
3222
3264
  data: res.data.googleClientId
3223
3265
  };
3224
3266
  }
3267
+ async requireFirstDeposit() {
3268
+ const res = await this.client.request(
3269
+ REQUIRE_FIRST_DEPOSIT_QUERY
3270
+ );
3271
+ if (!res.ok) return res;
3272
+ return {
3273
+ ok: true,
3274
+ data: res.data.requireFirstDeposit
3275
+ };
3276
+ }
3225
3277
  };
3226
3278
 
3227
3279
  // src/utils/status-code-to-operation-error.ts
@@ -4257,6 +4309,28 @@ var WalletService = class {
4257
4309
  ok: true
4258
4310
  };
4259
4311
  }
4312
+ async createMayaWebpayDeposit(variables) {
4313
+ const { reCAPTCHAResponse, ...others } = variables;
4314
+ const res = await this.client.request(CREATE_MAYA_WEBPAY_DEPOSIT_MUTATION, others, {
4315
+ headers: {
4316
+ ...reCAPTCHAResponse && {
4317
+ "google-recaptcha-response": reCAPTCHAResponse
4318
+ }
4319
+ }
4320
+ });
4321
+ if (!res.ok) return res;
4322
+ if (res.data.createMayaWebpayDeposit) {
4323
+ return {
4324
+ ok: false,
4325
+ error: createOperationError(
4326
+ res.data.createMayaWebpayDeposit.__typename
4327
+ )
4328
+ };
4329
+ }
4330
+ return {
4331
+ ok: true
4332
+ };
4333
+ }
4260
4334
  async createMayaDeposit(variables) {
4261
4335
  const { reCAPTCHAResponse, ...others } = variables;
4262
4336
  const res = await this.client.request(CREATE_MAYA_DEPOSIT_MUTATION, others, {
@@ -4330,7 +4404,9 @@ var WalletService = class {
4330
4404
  if (res.data.createAiOPayMayaDeposit) {
4331
4405
  return {
4332
4406
  ok: false,
4333
- error: createOperationError(res.data.createAiOPayMayaDeposit.__typename)
4407
+ error: createOperationError(
4408
+ res.data.createAiOPayMayaDeposit.__typename
4409
+ )
4334
4410
  };
4335
4411
  }
4336
4412
  return {
@@ -4350,7 +4426,9 @@ var WalletService = class {
4350
4426
  if (res.data.createAiOGrabPayDeposit) {
4351
4427
  return {
4352
4428
  ok: false,
4353
- error: createOperationError(res.data.createAiOGrabPayDeposit.__typename)
4429
+ error: createOperationError(
4430
+ res.data.createAiOGrabPayDeposit.__typename
4431
+ )
4354
4432
  };
4355
4433
  }
4356
4434
  return {
@@ -4370,7 +4448,9 @@ var WalletService = class {
4370
4448
  if (res.data.createAiOPalawanPayDeposit) {
4371
4449
  return {
4372
4450
  ok: false,
4373
- error: createOperationError(res.data.createAiOPalawanPayDeposit.__typename)
4451
+ error: createOperationError(
4452
+ res.data.createAiOPalawanPayDeposit.__typename
4453
+ )
4374
4454
  };
4375
4455
  }
4376
4456
  return {
@@ -4514,7 +4594,9 @@ var WalletService = class {
4514
4594
  if (res.data.createGCashStandardCashInWithdrawal) {
4515
4595
  return {
4516
4596
  ok: false,
4517
- error: createOperationError(res.data.createGCashStandardCashInWithdrawal.__typename)
4597
+ error: createOperationError(
4598
+ res.data.createGCashStandardCashInWithdrawal.__typename
4599
+ )
4518
4600
  };
4519
4601
  }
4520
4602
  return {
@@ -6338,6 +6420,18 @@ var Transformer = class {
6338
6420
  data.mayaAppDepositGatewaySettings?.maximumAmount
6339
6421
  )
6340
6422
  },
6423
+ mayaWebpay: {
6424
+ androidEnabled: data.mayaWebpayDepositGatewaySettings?.androidEnabled ?? false,
6425
+ iosEnabled: data.mayaWebpayDepositGatewaySettings?.iosEnabled ?? false,
6426
+ webEnabled: data.mayaWebpayDepositGatewaySettings?.webEnabled ?? false,
6427
+ mobileWebEnabled: data.mayaWebpayDepositGatewaySettings?.mobileWebEnabled ?? false,
6428
+ minimumAmount: parseDecimal(
6429
+ data.mayaWebpayDepositGatewaySettings?.minimumAmount
6430
+ ),
6431
+ maximumAmount: parseDecimal(
6432
+ data.mayaWebpayDepositGatewaySettings?.maximumAmount
6433
+ )
6434
+ },
6341
6435
  onlineBank: {
6342
6436
  androidEnabled: data.onlineBankDepositGatewaySettings?.androidEnabled ?? false,
6343
6437
  iosEnabled: data.onlineBankDepositGatewaySettings?.iosEnabled ?? false,
@@ -6813,6 +6907,18 @@ var Transformer = class {
6813
6907
  data.mayaAppDepositGatewaySettings?.maximumAmount
6814
6908
  )
6815
6909
  },
6910
+ mayaWebpay: {
6911
+ androidEnabled: data.mayaWebpayDepositGatewaySettings?.androidEnabled ?? false,
6912
+ iosEnabled: data.mayaWebpayDepositGatewaySettings?.iosEnabled ?? false,
6913
+ webEnabled: data.mayaWebpayDepositGatewaySettings?.webEnabled ?? false,
6914
+ mobileWebEnabled: data.mayaWebpayDepositGatewaySettings?.mobileWebEnabled ?? false,
6915
+ minimumAmount: parseDecimal(
6916
+ data.mayaWebpayDepositGatewaySettings?.minimumAmount
6917
+ ),
6918
+ maximumAmount: parseDecimal(
6919
+ data.mayaWebpayDepositGatewaySettings?.maximumAmount
6920
+ )
6921
+ },
6816
6922
  onlineBank: {
6817
6923
  androidEnabled: data.onlineBankDepositGatewaySettings?.androidEnabled ?? false,
6818
6924
  iosEnabled: data.onlineBankDepositGatewaySettings?.iosEnabled ?? false,
@@ -8683,6 +8789,18 @@ var Sdk = class {
8683
8789
  });
8684
8790
  if (!res.ok) return res;
8685
8791
  }
8792
+ if (input.type === "MAYA_WEBPAY") {
8793
+ const res = await this.walletService.createMayaWebpayDeposit({
8794
+ input: {
8795
+ id,
8796
+ amount: input.amount.toString(),
8797
+ promo: input.promo,
8798
+ redirectUrl: input.redirectUrl
8799
+ },
8800
+ reCAPTCHAResponse: input.reCAPTCHAResponse
8801
+ });
8802
+ if (!res.ok) return res;
8803
+ }
8686
8804
  return { ok: true, data: { id } };
8687
8805
  }
8688
8806
  async deposit(id) {
@@ -9492,6 +9610,14 @@ var Sdk = class {
9492
9610
  data: res.data ?? null
9493
9611
  };
9494
9612
  }
9613
+ async requireFirstDeposit() {
9614
+ const res = await this.accountService.requireFirstDeposit();
9615
+ if (!res.ok) return res;
9616
+ return {
9617
+ ok: true,
9618
+ data: res.data ?? false
9619
+ };
9620
+ }
9495
9621
  /*
9496
9622
  *=============================================
9497
9623
  * UTILS