@opexa/portal-components 0.0.98 → 0.0.100
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/client/hooks/useAccountQuery.js +3 -3
- package/dist/client/hooks/useAuthenticateMutation.d.ts +1 -1
- package/dist/client/hooks/useAuthenticateMutation.js +3 -2
- package/dist/client/hooks/useAvailablePromosQuery.d.ts +1 -1
- package/dist/client/hooks/useAvailablePromosQuery.js +3 -3
- package/dist/client/hooks/useAvailableQuestsCountQuery.js +3 -3
- package/dist/client/hooks/useAvailableQuestsQuery.js +3 -3
- package/dist/client/hooks/useBetRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useBetRecordsQuery.js +3 -3
- package/dist/client/hooks/useBonusQuery.js +3 -3
- package/dist/client/hooks/useBonusesCountQuery.js +3 -3
- package/dist/client/hooks/useBonusesQuery.js +3 -3
- package/dist/client/hooks/useCashbackBonusQuery.js +3 -3
- package/dist/client/hooks/useCashbackBonusesCountQuery.js +3 -3
- package/dist/client/hooks/useCashbackBonusesQuery.js +3 -3
- package/dist/client/hooks/useCashbackQuery.js +2 -2
- package/dist/client/hooks/useCashbacksQuery.js +2 -2
- package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +3 -3
- package/dist/client/hooks/useClaimCashbackBonusMutation.js +4 -3
- package/dist/client/hooks/useClaimSpotBonusMutation.js +4 -3
- package/dist/client/hooks/useCreateGCashDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGCashDepositMutation.js +5 -3
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateGameSessionMutation.js +5 -3
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaAppDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +5 -3
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaDepositMutation.js +5 -3
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +5 -3
- package/dist/client/hooks/useCreateQRPHDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +5 -3
- package/dist/client/hooks/useDepositQuery.js +3 -3
- package/dist/client/hooks/useDepositRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositRecordsQuery.js +3 -3
- package/dist/client/hooks/useDepositsCountQuery.js +3 -3
- package/dist/client/hooks/useEndGameSessionMutation.js +4 -3
- package/dist/client/hooks/useFavoriteGamesQuery.js +3 -3
- package/dist/client/hooks/useGamesQuery.d.ts +1 -1
- package/dist/client/hooks/useGamesQuery.js +2 -2
- package/dist/client/hooks/useGlobalStore.d.ts +3 -0
- package/dist/client/hooks/useGlobalStore.js +41 -1
- package/dist/client/hooks/useInstapayBankListQuery.js +3 -3
- package/dist/client/hooks/useIsMayaSessionValidQuery.js +5 -5
- package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotPayoutsQuery.js +2 -2
- package/dist/client/hooks/useJackpotsCountQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotsCountQuery.js +2 -2
- package/dist/client/hooks/useJackpotsQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotsQuery.js +2 -2
- package/dist/client/hooks/useLocaleInfo.d.ts +1 -1
- package/dist/client/hooks/useLocaleInfo.js +1 -1
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +4 -3
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +4 -3
- package/dist/client/hooks/useMemberVerificationQuery.js +3 -3
- package/dist/client/hooks/useMessagesQuery.d.ts +1 -1
- package/dist/client/hooks/useMessagesQuery.js +3 -3
- package/dist/client/hooks/usePaymentSettingsQuery.js +3 -3
- package/dist/client/hooks/usePlatformQuery.js +2 -2
- package/dist/client/hooks/useProfileCompletionQuery.js +3 -3
- package/dist/client/hooks/usePromoQuery.js +2 -2
- package/dist/client/hooks/usePromosQuery.js +2 -2
- package/dist/client/hooks/useSendVerificationCodeMutation.d.ts +1 -1
- package/dist/client/hooks/useSendVerificationCodeMutation.js +2 -2
- package/dist/client/hooks/useSessionQuery.js +4 -4
- package/dist/client/hooks/useSignInMutation.d.ts +1 -1
- package/dist/client/hooks/useSignInMutation.js +3 -2
- package/dist/client/hooks/useSignOutMutation.js +3 -2
- package/dist/client/hooks/useSignUpMutation.d.ts +1 -1
- package/dist/client/hooks/useSignUpMutation.js +2 -2
- package/dist/client/hooks/useTopWinsQuery.js +2 -2
- package/dist/client/hooks/useTournamentsCountQuery.d.ts +1 -1
- package/dist/client/hooks/useTournamentsCountQuery.js +2 -2
- package/dist/client/hooks/useTournamentsQuery.d.ts +1 -1
- package/dist/client/hooks/useTournamentsQuery.js +2 -2
- package/dist/client/hooks/useTransactionRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useTransactionRecordsQuery.js +3 -3
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +4 -3
- package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +1 -1
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +3 -3
- package/dist/client/hooks/useUpdateAccountMutation.d.ts +1 -1
- package/dist/client/hooks/useUpdateAccountMutation.js +4 -3
- package/dist/client/hooks/useWalletQuery.js +3 -3
- package/dist/client/hooks/useWithdrawalRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useWithdrawalRecordsQuery.js +3 -3
- package/dist/client/services/authenticate.d.ts +1 -1
- package/dist/client/services/signIn.d.ts +1 -1
- package/dist/client/utils/createRecipeContext.js +1 -1
- package/dist/client/utils/toaster.d.ts +1 -1
- package/dist/client/utils/toaster.js +1 -1
- package/dist/components/Account/Account.d.ts +3 -23
- package/dist/components/Account/Account.js +10 -115
- package/dist/components/Account/Account.lazy.d.ts +23 -0
- package/dist/components/Account/Account.lazy.js +138 -0
- package/dist/components/Account/AccountTrigger.js +2 -2
- package/dist/components/AccountInfo/AccountInfo.js +10 -4
- package/dist/components/AccountSecurity/AccountSecurity.js +13 -4
- package/dist/components/AccountVerification/AccountVerification.js +12 -3
- package/dist/components/Banner/Banner.d.ts +2 -2
- package/dist/components/Banner/Banner.js +2 -2
- package/dist/components/BetRecords/BetRecords.client.d.ts +7 -0
- package/dist/components/BetRecords/BetRecords.client.js +189 -0
- package/dist/components/BetRecords/BetRecords.d.ts +3 -7
- package/dist/components/BetRecords/BetRecords.js +8 -174
- package/dist/components/Bonus/Bonus.client.d.ts +9 -1
- package/dist/components/Bonus/Bonus.client.js +13 -4
- package/dist/components/Bonus/Bonus.d.ts +2 -9
- package/dist/components/Bonus/Bonus.js +22 -6
- package/dist/components/Bonuses/Bonuses.client.d.ts +9 -1
- package/dist/components/Bonuses/Bonuses.client.js +14 -4
- package/dist/components/Bonuses/Bonuses.d.ts +2 -9
- package/dist/components/Bonuses/Bonuses.js +3 -2
- package/dist/components/Bonuses/BonusesTrigger.js +7 -6
- package/dist/components/Cashback/Cashback.client.d.ts +6 -1
- package/dist/components/Cashback/Cashback.client.js +7 -3
- package/dist/components/Cashback/Cashback.d.ts +2 -6
- package/dist/components/Cashback/Cashback.js +11 -6
- package/dist/components/DepositWithdrawal/AmountChoices.js +5 -3
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +5 -3
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +6 -3
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +15 -4
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +15 -4
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +15 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositAlert.js +5 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.js +5 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +10 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +2 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +5 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +4 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +10 -4
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +2 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +10 -27
- package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +1 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +36 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.js +5 -2
- package/dist/components/DepositWithdrawal/PaymentMethods.js +4 -3
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +17 -4
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +18 -4
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +15 -4
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +17 -4
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +11 -4
- package/dist/components/Disclaimer/DisclaimerV1.js +2 -1
- package/dist/components/Disclaimer/DisclaimerV2.js +2 -1
- package/dist/components/Disclaimer/ResponsibleGaming.js +2 -1
- package/dist/components/Disclaimer/TermsOfUse.js +3 -2
- package/dist/components/Empty.d.ts +1 -2
- package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +5 -1
- package/dist/components/FavoriteGames/FavoriteGames.client.js +8 -4
- package/dist/components/FavoriteGames/FavoriteGames.d.ts +2 -5
- package/dist/components/FavoriteGames/FavoriteGames.js +2 -2
- package/dist/components/GameLaunch/GameLaunch.d.ts +1 -1
- package/dist/components/GameLaunch/GameLaunch.js +10 -71
- package/dist/components/GameLaunch/GameLaunch.lazy.d.ts +1 -0
- package/dist/components/GameLaunch/GameLaunch.lazy.js +90 -0
- package/dist/components/GameLaunch/GameLaunchTrigger.js +4 -2
- package/dist/components/GameProviders/GameProvidersCarousel.js +5 -3
- package/dist/components/GameProviders/GameProvidersList.js +4 -3
- package/dist/components/Games/Game.js +14 -5
- package/dist/components/Games/GamesCarousel.client.d.ts +24 -1
- package/dist/components/Games/GamesCarousel.client.js +7 -3
- package/dist/components/Games/GamesCarousel.d.ts +2 -23
- package/dist/components/Games/GamesCarousel.js +2 -2
- package/dist/components/Games/GamesContext.js +1 -1
- package/dist/components/Games/GamesList.client.d.ts +19 -1
- package/dist/components/Games/GamesList.client.js +6 -3
- package/dist/components/Games/GamesList.d.ts +2 -18
- package/dist/components/Games/GamesList.js +1 -1
- package/dist/components/GamesSearch/GamesSearch.d.ts +1 -1
- package/dist/components/GamesSearch/GamesSearch.js +10 -4
- package/dist/components/Jackpots/Jackpots.js +1 -1
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.js +6 -4
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselContext.js +1 -1
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +9 -3
- package/dist/components/Jackpots/JackpotsList/JackpotsList.js +2 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsListContext.js +1 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +8 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemGameProviders.js +3 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +12 -3
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemRules.js +2 -2
- package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.d.ts +1 -1
- package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.js +3 -2
- package/dist/components/KYC/Header.js +4 -2
- package/dist/components/KYC/Indicator.js +2 -2
- package/dist/components/KYC/KYC.d.ts +1 -1
- package/dist/components/KYC/KYC.js +10 -22
- package/dist/components/KYC/KYC.lazy.d.ts +1 -0
- package/dist/components/KYC/KYC.lazy.js +26 -0
- package/dist/components/KYC/KYCContext.js +1 -1
- package/dist/components/KYC/KYCTrigger.js +1 -1
- package/dist/components/KYC/Step1.js +3 -2
- package/dist/components/KYC/Step2.js +3 -2
- package/dist/components/KYC/Step3.js +4 -2
- package/dist/components/KYC/Step4.js +3 -2
- package/dist/components/Messages/Message.js +3 -1
- package/dist/components/Messages/MessageContext.js +1 -1
- package/dist/components/Messages/MessagePopup.js +3 -3
- package/dist/components/Messages/MessageTrigger.js +2 -1
- package/dist/components/Messages/Messages.d.ts +3 -13
- package/dist/components/Messages/Messages.js +10 -35
- package/dist/components/Messages/Messages.lazy.d.ts +13 -0
- package/dist/components/Messages/Messages.lazy.js +48 -0
- package/dist/components/Messages/MessagesTrigger.js +7 -4
- package/dist/components/Messages/utils.d.ts +1 -1
- package/dist/components/Messages/utils.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.js +8 -5
- package/dist/components/PortalProvider/Providers.js +1 -1
- package/dist/components/PortalProvider/Snackbar.js +4 -3
- package/dist/components/Promo/Promo.client.d.ts +6 -1
- package/dist/components/Promo/Promo.client.js +7 -3
- package/dist/components/Promo/Promo.d.ts +2 -6
- package/dist/components/Promo/Promo.js +11 -6
- package/dist/components/Promos/Cashback.js +3 -2
- package/dist/components/Promos/Promo.js +3 -2
- package/dist/components/Promos/Promos.js +3 -2
- package/dist/components/Promos/PromosCarousel.js +7 -3
- package/dist/components/Promos/PromosGrid.js +2 -1
- package/dist/components/Protected/Protected.d.ts +1 -2
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +10 -5
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +3 -2
- package/dist/components/Quests/Quests.client.d.ts +5 -1
- package/dist/components/Quests/Quests.client.js +2 -2
- package/dist/components/Quests/Quests.d.ts +2 -5
- package/dist/components/Quests/Quests.js +1 -1
- package/dist/components/Quests/WageringQuest/WageringQuest.js +3 -2
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +3 -2
- package/dist/components/Search/Search.d.ts +3 -21
- package/dist/components/Search/Search.js +10 -64
- package/dist/components/Search/Search.lazy.d.ts +20 -0
- package/dist/components/Search/Search.lazy.js +78 -0
- package/dist/components/Search/SearchTrigger.js +1 -1
- package/dist/components/SignIn/MobileNumberSignIn.js +16 -5
- package/dist/components/SignIn/NameAndPasswordSignIn.js +16 -7
- package/dist/components/SignIn/SignIn.d.ts +3 -7
- package/dist/components/SignIn/SignIn.js +10 -14
- package/dist/components/SignIn/SignIn.lazy.d.ts +7 -0
- package/dist/components/SignIn/SignIn.lazy.js +18 -0
- package/dist/components/SignIn/SignInContext.js +1 -1
- package/dist/components/SignIn/SignInMethod.js +1 -1
- package/dist/components/SignIn/SignInTrigger.js +1 -1
- package/dist/components/SignUp/SignUp.d.ts +3 -7
- package/dist/components/SignUp/SignUp.js +10 -12
- package/dist/components/SignUp/SignUp.lazy.d.ts +7 -0
- package/dist/components/SignUp/SignUp.lazy.js +16 -0
- package/dist/components/SignUp/SignUpForm.js +15 -5
- package/dist/components/SignUp/SignUpTrigger.js +1 -1
- package/dist/components/TopWins/TopWins.client.d.ts +5 -1
- package/dist/components/TopWins/TopWins.client.js +8 -3
- package/dist/components/TopWins/TopWins.d.ts +2 -5
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/Tournaments/Tournaments.js +1 -1
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.js +6 -4
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselContext.js +1 -1
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.js +8 -3
- package/dist/components/Tournaments/TournamentsList/TournamentsList.js +2 -2
- package/dist/components/Tournaments/TournamentsList/TournamentsListContext.js +1 -1
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemDesktop.js +7 -2
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemGameProviders.js +3 -2
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemMobile.js +10 -3
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemRules.js +3 -2
- package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.d.ts +1 -1
- package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.js +12 -4
- package/dist/components/TransactionRecords/TableFilters.js +9 -4
- package/dist/components/TransactionRecords/TransactionRecords.d.ts +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.js +7 -2
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +11 -4
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +12 -4
- package/dist/constants/endpoints.js +2 -2
- package/dist/handlers.js +1 -1
- package/dist/middleware.js +1 -1
- package/dist/server/services/authenticate.d.ts +1 -1
- package/dist/server/services/authenticate.js +1 -1
- package/dist/server/services/signIn.d.ts +1 -1
- package/dist/server/services/signIn.js +1 -1
- package/dist/server/services/signOut.js +1 -1
- package/dist/server/utils/prefetchAccountQuery.js +3 -2
- package/dist/server/utils/prefetchAvailablePromosQuery.d.ts +1 -1
- package/dist/server/utils/prefetchAvailablePromosQuery.js +3 -2
- package/dist/server/utils/prefetchAvailableQuestsCountQuery.js +3 -2
- package/dist/server/utils/prefetchAvailableQuestsQuery.js +3 -2
- package/dist/server/utils/prefetchBetRecordsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchBetRecordsQuery.js +3 -2
- package/dist/server/utils/prefetchBonusQuery.js +3 -2
- package/dist/server/utils/prefetchBonusesCountQuery.js +3 -2
- package/dist/server/utils/prefetchBonusesQuery.js +3 -2
- package/dist/server/utils/prefetchCashbackBonusQuery.js +3 -2
- package/dist/server/utils/prefetchCashbackBonusesCountQuery.js +4 -3
- package/dist/server/utils/prefetchCashbackBonusesQuery.js +4 -3
- package/dist/server/utils/prefetchCashbackQuery.js +3 -2
- package/dist/server/utils/prefetchCashbacksQuery.js +3 -2
- package/dist/server/utils/prefetchDepositQuery.js +3 -2
- package/dist/server/utils/prefetchDepositRecordsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchDepositRecordsQuery.js +3 -2
- package/dist/server/utils/prefetchDepositsCountQuery.js +3 -2
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +4 -3
- package/dist/server/utils/prefetchGamesQuery.d.ts +1 -1
- package/dist/server/utils/prefetchGamesQuery.js +3 -2
- package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -2
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +3 -2
- package/dist/server/utils/prefetchJackpotsCountQuery.d.ts +1 -1
- package/dist/server/utils/prefetchJackpotsCountQuery.js +3 -2
- package/dist/server/utils/prefetchJackpotsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchJackpotsQuery.js +3 -2
- package/dist/server/utils/prefetchMemberVerificationQuery.js +3 -2
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +3 -2
- package/dist/server/utils/prefetchPlatformQuery.js +3 -2
- package/dist/server/utils/prefetchProfileCompletionQuery.js +3 -2
- package/dist/server/utils/prefetchPromoQuery.js +3 -2
- package/dist/server/utils/prefetchPromosQuery.js +3 -2
- package/dist/server/utils/prefetchSessionQuery.js +2 -1
- package/dist/server/utils/prefetchTopWinsQuery.js +3 -2
- package/dist/server/utils/prefetchTournamentsCountQuery.d.ts +1 -1
- package/dist/server/utils/prefetchTournamentsCountQuery.js +3 -2
- package/dist/server/utils/prefetchTournamentsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchTournamentsQuery.js +3 -2
- package/dist/server/utils/prefetchTransactionRecordsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +3 -2
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +1 -1
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +3 -2
- package/dist/server/utils/prefetchWalletQuery.js +3 -2
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +3 -2
- package/dist/services/account.d.ts +341 -0
- package/dist/services/account.js +233 -0
- package/dist/services/auth.d.ts +80 -0
- package/dist/services/auth.js +152 -0
- package/dist/services/cmsPortal.d.ts +43 -0
- package/dist/services/cmsPortal.js +148 -0
- package/dist/services/file.d.ts +33 -0
- package/dist/services/file.js +18 -0
- package/dist/services/game.d.ts +44 -0
- package/dist/services/game.js +33 -0
- package/dist/services/graphqlRequest.js +0 -16
- package/dist/services/httpRequest.js +0 -10
- package/dist/services/portal.d.ts +37 -0
- package/dist/services/portal.js +44 -0
- package/dist/services/report.d.ts +223 -0
- package/dist/services/report.js +72 -0
- package/dist/services/trigger.d.ts +94 -0
- package/dist/services/trigger.js +88 -0
- package/dist/services/wallet.d.ts +475 -0
- package/dist/services/wallet.js +365 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
- package/dist/ui/AlertDialog/AlertDialog.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/Avatar/Avatar.js +1 -1
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Button/Button.js +2 -1
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/Checkbox.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/Clipboard.js +1 -1
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Collapsible/Collapsible.d.ts +32 -32
- package/dist/ui/Collapsible/Collapsible.js +1 -1
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +8 -8
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -1
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/Combobox.js +1 -1
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/Combobox/combobox.recipe.js +1 -1
- package/dist/ui/DatePicker/DatePicker.d.ts +336 -336
- package/dist/ui/DatePicker/DatePicker.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +14 -14
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/Dialog/Dialog.d.ts +154 -154
- package/dist/ui/Dialog/Dialog.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.d.ts +14 -14
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/Drawer.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Field/Field.d.ts +21 -21
- package/dist/ui/Field/Field.js +1 -1
- package/dist/ui/Field/field.recipe.d.ts +3 -3
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/IconButton/IconButton.js +2 -1
- package/dist/ui/NumberInput/NumberInput.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
- package/dist/ui/PasswordInput/PasswordInput.js +1 -1
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -1
- package/dist/ui/PinInput/PinInput.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/Popover/Popover.d.ts +121 -121
- package/dist/ui/Popover/Popover.js +1 -1
- package/dist/ui/Popover/popover.recipe.d.ts +11 -11
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Presence.d.ts +1 -1
- package/dist/ui/Presence.js +1 -1
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/Progress.js +1 -1
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/Progress/progress.recipe.js +1 -1
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/SegmentGroup.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/Select.js +1 -1
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/Table.js +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/Tabs.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/utils/getQueryClient.js +2 -2
- package/dist/utils/onMobileDevice.d.ts +5 -0
- package/dist/utils/onMobileDevice.js +9 -0
- package/dist/utils/queryKeys.d.ts +4 -1
- package/package.json +29 -30
- package/dist/client/hooks/index.d.ts +0 -70
- package/dist/client/hooks/index.js +0 -70
- package/dist/client/services/index.d.ts +0 -4
- package/dist/client/services/index.js +0 -4
- package/dist/client/utils/index.d.ts +0 -3
- package/dist/client/utils/index.js +0 -3
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +0 -2
- package/dist/components/JackpotCounter/JackpotCounter.client.js +0 -66
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +0 -17
- package/dist/components/JackpotCounter/JackpotCounter.js +0 -21
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +0 -18
- package/dist/components/JackpotCounter/JackpotCounterItem.js +0 -109
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css +0 -184
- package/dist/components/JackpotCounter/index.d.ts +0 -1
- package/dist/components/JackpotCounter/index.js +0 -1
- package/dist/components/Jackpots/JackpotDesktop.d.ts +0 -1
- package/dist/components/Jackpots/JackpotDesktop.js +0 -45
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +0 -5
- package/dist/components/Jackpots/JackpotGameProviders.js +0 -41
- package/dist/components/Jackpots/JackpotMobile.d.ts +0 -1
- package/dist/components/Jackpots/JackpotMobile.js +0 -46
- package/dist/components/Jackpots/JackpotRules.d.ts +0 -5
- package/dist/components/Jackpots/JackpotRules.js +0 -11
- package/dist/components/Jackpots/Jackpots.client.d.ts +0 -2
- package/dist/components/Jackpots/Jackpots.client.js +0 -29
- package/dist/components/Jackpots/JackpotsContext.d.ts +0 -4
- package/dist/components/Jackpots/JackpotsContext.js +0 -3
- package/dist/components/Jackpots/useJackpotData.d.ts +0 -14
- package/dist/components/Jackpots/useJackpotData.js +0 -92
- package/dist/components/PortalProvider/WebVitals.d.ts +0 -1
- package/dist/components/PortalProvider/WebVitals.js +0 -8
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +0 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.js +0 -50
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +0 -8
- package/dist/components/TournamentCounter/TournamentCounter.js +0 -21
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +0 -8
- package/dist/components/TournamentCounter/TournamentCounterItem.js +0 -106
- package/dist/components/TournamentCounter/index.d.ts +0 -1
- package/dist/components/TournamentCounter/index.js +0 -1
- package/dist/components/Tournaments/TournamentDesktop.d.ts +0 -1
- package/dist/components/Tournaments/TournamentDesktop.js +0 -57
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +0 -5
- package/dist/components/Tournaments/TournamentGameProviders.js +0 -38
- package/dist/components/Tournaments/TournamentMobile.d.ts +0 -1
- package/dist/components/Tournaments/TournamentMobile.js +0 -55
- package/dist/components/Tournaments/TournamentRules.d.ts +0 -5
- package/dist/components/Tournaments/TournamentRules.js +0 -11
- package/dist/components/Tournaments/Tournaments.client.d.ts +0 -2
- package/dist/components/Tournaments/Tournaments.client.js +0 -20
- package/dist/components/Tournaments/TournamentsContext.d.ts +0 -4
- package/dist/components/Tournaments/TournamentsContext.js +0 -3
- package/dist/components/Tournaments/useTournamentData.d.ts +0 -10
- package/dist/components/Tournaments/useTournamentData.js +0 -71
- package/dist/components/index.d.ts +0 -31
- package/dist/components/index.js +0 -31
- package/dist/icons/index.d.ts +0 -66
- package/dist/icons/index.js +0 -66
- package/dist/server/services/index.d.ts +0 -4
- package/dist/server/services/index.js +0 -4
- package/dist/server/utils/index.d.ts +0 -34
- package/dist/server/utils/index.js +0 -34
- package/dist/services/ObjectId.d.ts +0 -10
- package/dist/services/ObjectId.js +0 -72
- package/dist/services/index.d.ts +0 -13
- package/dist/services/index.js +0 -13
- package/dist/ui/index.d.ts +0 -26
- package/dist/ui/index.js +0 -26
- package/dist/utils/index.d.ts +0 -18
- package/dist/utils/index.js +0 -18
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { cache } from 'react';
|
|
2
|
+
import { WALLET_GRAPHQL_ENDPOINT } from '../constants/index.js';
|
|
3
|
+
import { graphqlRequest } from './graphqlRequest.js';
|
|
4
|
+
import { AVAILABLE_PROMOS, BONUS, BONUSES, BONUSES_IDS, CASHBACK, CASHBACK_BONUS, CASHBACK_BONUSES, CASHBACK_BONUSES_IDS, CASHBACKS, CLAIM_CASHBACK_BONUS, CLAIM_SPOT_BONUS, CREATE_AIO_INSTAPAY_WITHDRAWAL, CREATE_AIO_ONLINE_BANK_DEPOSIT, CREATE_AIO_QRPH_DEPOSIT, CREATE_BANK_WITHDRAWAL, CREATE_GAME_SESSION, CREATE_GCASH_DEPOSIT, CREATE_GCASH_DIRECT_WEBPAY_DEPOSIT, CREATE_GCASH_WITHDRAWAL, CREATE_MANUAL_BANK_DEPOSIT, CREATE_MANUAL_BANK_WITHDRAWAL, CREATE_MANUAL_UPI_DEPOSIT, CREATE_MANUAL_UPI_WITHDRAWAL, CREATE_MAYA_APP_DEPOSIT, CREATE_MAYA_APP_WITHDRAWAL, CREATE_MAYA_DEPOSIT, CREATE_MAYA_WITHDRAWAL, CURRENT_BONUS, DEPOSIT, END_GAME_SESSION, FAVORITE_GAMES, GAME_SESSION, INSTAPAY_BANK_LIST, MARK_GAME_AS_FAVORITE, MAYA_SESSION, POINTS_WALLET, PROMO, PROMOS, REDEEM_POINTS_TO_CASH, REMAINING_DAILY_WITHDRAWALS_COUNT, TOUCH_GCASH_DEPOSIT, TOUCH_QRPH_DEPOSIT, UNMARK_GAME_AS_FAVORITE, VALIDATE_MAYA_SESSION, WALLET, } from './queries.js';
|
|
5
|
+
import { sha256 } from './sha256.js';
|
|
6
|
+
export const getPromos = cache(async (options) => {
|
|
7
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, PROMOS, undefined, options);
|
|
8
|
+
return res.promos;
|
|
9
|
+
});
|
|
10
|
+
export const getCashbacks = cache(async (options) => {
|
|
11
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CASHBACKS, undefined, options);
|
|
12
|
+
return res.cashbacks;
|
|
13
|
+
});
|
|
14
|
+
export const getPromo = cache(async (id, options) => {
|
|
15
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, PROMO, { id }, options);
|
|
16
|
+
return res.node ?? null;
|
|
17
|
+
});
|
|
18
|
+
export const getCashback = cache(async (id, options) => {
|
|
19
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CASHBACK, { id }, options);
|
|
20
|
+
return res.node ?? null;
|
|
21
|
+
});
|
|
22
|
+
export const getAvailablePromos = cache(async (input, options) => {
|
|
23
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, AVAILABLE_PROMOS, { filter: { ...input } }, options);
|
|
24
|
+
return res.availablePromos;
|
|
25
|
+
});
|
|
26
|
+
export const getCashbackBonuses = cache(async (options) => {
|
|
27
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CASHBACK_BONUSES, undefined, options);
|
|
28
|
+
return res.cashbackBonuses ?? [];
|
|
29
|
+
});
|
|
30
|
+
export const getCashbackBonusesCount = cache(async (options) => {
|
|
31
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CASHBACK_BONUSES_IDS, undefined, options);
|
|
32
|
+
return res.cashbackBonuses?.length ?? 0;
|
|
33
|
+
});
|
|
34
|
+
export const claimCashbackBonus = async (id, options) => {
|
|
35
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CLAIM_CASHBACK_BONUS, { input: { id } }, options);
|
|
36
|
+
if (res.claimCashbackBonus) {
|
|
37
|
+
const error = new Error();
|
|
38
|
+
error.name = res.claimCashbackBonus.name;
|
|
39
|
+
error.message = res.claimCashbackBonus.message;
|
|
40
|
+
Error.captureStackTrace?.(error, claimCashbackBonus);
|
|
41
|
+
throw error;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
export const getBonus = cache(async (id, options) => {
|
|
45
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, BONUS, { id }, options);
|
|
46
|
+
return res.node ?? null;
|
|
47
|
+
});
|
|
48
|
+
export const getCurrentBonus = cache(async (options) => {
|
|
49
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CURRENT_BONUS, undefined, options);
|
|
50
|
+
return res.currentBonus ?? null;
|
|
51
|
+
});
|
|
52
|
+
export const getCashbackBonus = cache(async (id, options) => {
|
|
53
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CASHBACK_BONUS, { id }, options);
|
|
54
|
+
return res.node ?? null;
|
|
55
|
+
});
|
|
56
|
+
export const getWallet = cache(async (options) => {
|
|
57
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, WALLET, undefined, options);
|
|
58
|
+
if (!res.wallet)
|
|
59
|
+
return null;
|
|
60
|
+
return {
|
|
61
|
+
balance: res.wallet.balance,
|
|
62
|
+
bonus: res.wallet.bonus?.balance ?? null,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
export const getDeposit = cache(async (id, options) => {
|
|
66
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, DEPOSIT, { id }, options);
|
|
67
|
+
return res.node ?? null;
|
|
68
|
+
});
|
|
69
|
+
export const createGCashDeposit = async (input, options) => {
|
|
70
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_GCASH_DEPOSIT, { input }, options);
|
|
71
|
+
if (res.createGCashDeposit) {
|
|
72
|
+
const error = new Error();
|
|
73
|
+
error.name = res.createGCashDeposit.name;
|
|
74
|
+
error.message = res.createGCashDeposit.message;
|
|
75
|
+
Error.captureStackTrace?.(error, createGCashDeposit);
|
|
76
|
+
throw error;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
export const createGCashDirectWebpayDeposit = async (input, options) => {
|
|
80
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_GCASH_DIRECT_WEBPAY_DEPOSIT, { input }, options);
|
|
81
|
+
if (res.createGCashDirectWebpayDeposit) {
|
|
82
|
+
const error = new Error();
|
|
83
|
+
error.name = res.createGCashDirectWebpayDeposit.name;
|
|
84
|
+
error.message = res.createGCashDirectWebpayDeposit.message;
|
|
85
|
+
Error.captureStackTrace?.(error, createGCashDirectWebpayDeposit);
|
|
86
|
+
throw error;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
export const createMayaDeposit = async (input, options) => {
|
|
90
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_MAYA_DEPOSIT, { input }, options);
|
|
91
|
+
if (res.createMayaDeposit) {
|
|
92
|
+
const error = new Error();
|
|
93
|
+
error.name = res.createMayaDeposit.name;
|
|
94
|
+
error.message = res.createMayaDeposit.message;
|
|
95
|
+
Error.captureStackTrace?.(error, createMayaDeposit);
|
|
96
|
+
throw error;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
export const createAIOQRPHDeposit = async (input, options) => {
|
|
100
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_AIO_QRPH_DEPOSIT, { input }, options);
|
|
101
|
+
if (res.createAIOQRPHDeposit) {
|
|
102
|
+
const error = new Error();
|
|
103
|
+
error.name = res.createAIOQRPHDeposit.name;
|
|
104
|
+
error.message = res.createAIOQRPHDeposit.message;
|
|
105
|
+
Error.captureStackTrace?.(error, createAIOQRPHDeposit);
|
|
106
|
+
throw error;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
export const createAIOOnlineBankDeposit = async (input, options) => {
|
|
110
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_AIO_ONLINE_BANK_DEPOSIT, { input }, options);
|
|
111
|
+
if (res.createAIOOnlineBankDeposit) {
|
|
112
|
+
const error = new Error();
|
|
113
|
+
error.name = res.createAIOOnlineBankDeposit.name;
|
|
114
|
+
error.message = res.createAIOOnlineBankDeposit.message;
|
|
115
|
+
Error.captureStackTrace?.(error, createAIOOnlineBankDeposit);
|
|
116
|
+
throw error;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
export const createManualBankDeposit = async (input, options) => {
|
|
120
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_MANUAL_BANK_DEPOSIT, { input }, options);
|
|
121
|
+
if (res.createManualBankDeposit) {
|
|
122
|
+
const error = new Error();
|
|
123
|
+
error.name = res.createManualBankDeposit.name;
|
|
124
|
+
error.message = res.createManualBankDeposit.message;
|
|
125
|
+
Error.captureStackTrace?.(error, createManualBankDeposit);
|
|
126
|
+
throw error;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
export const createManualUPIDeposit = async (input, options) => {
|
|
130
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_MANUAL_UPI_DEPOSIT, { input }, options);
|
|
131
|
+
if (res.createManualUPIDeposit) {
|
|
132
|
+
const error = new Error();
|
|
133
|
+
error.name = res.createManualUPIDeposit.name;
|
|
134
|
+
error.message = res.createManualUPIDeposit.message;
|
|
135
|
+
Error.captureStackTrace?.(error, createManualUPIDeposit);
|
|
136
|
+
throw error;
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
export const createMayaAppDeposit = async (input, options) => {
|
|
140
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_MAYA_APP_DEPOSIT, { input }, options);
|
|
141
|
+
if (res.createMayaAppDeposit) {
|
|
142
|
+
const error = new Error();
|
|
143
|
+
error.name = res.createMayaAppDeposit.name;
|
|
144
|
+
error.message = res.createMayaAppDeposit.message;
|
|
145
|
+
Error.captureStackTrace?.(error, createMayaAppDeposit);
|
|
146
|
+
throw error;
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
export const createGCashWithdrawal = async (input, options) => {
|
|
150
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_GCASH_WITHDRAWAL, {
|
|
151
|
+
input: {
|
|
152
|
+
...input,
|
|
153
|
+
transactionPassword: await sha256(input.transactionPassword),
|
|
154
|
+
},
|
|
155
|
+
}, options);
|
|
156
|
+
if (res.createGCashWithdrawal) {
|
|
157
|
+
const error = new Error();
|
|
158
|
+
error.name = res.createGCashWithdrawal.name;
|
|
159
|
+
error.message = res.createGCashWithdrawal.message;
|
|
160
|
+
Error.captureStackTrace?.(error, createGCashWithdrawal);
|
|
161
|
+
throw error;
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
export const createMayaWithdrawal = async (input, options) => {
|
|
165
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_MAYA_WITHDRAWAL, {
|
|
166
|
+
input: {
|
|
167
|
+
...input,
|
|
168
|
+
transactionPassword: await sha256(input.transactionPassword),
|
|
169
|
+
},
|
|
170
|
+
}, options);
|
|
171
|
+
if (res.createMayaWithdrawal) {
|
|
172
|
+
const error = new Error();
|
|
173
|
+
error.name = res.createMayaWithdrawal.name;
|
|
174
|
+
error.message = res.createMayaWithdrawal.message;
|
|
175
|
+
Error.captureStackTrace?.(error, createMayaWithdrawal);
|
|
176
|
+
throw error;
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
export const createMayaAppWithdrawal = async (input, options) => {
|
|
180
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_MAYA_APP_WITHDRAWAL, {
|
|
181
|
+
input: {
|
|
182
|
+
...input,
|
|
183
|
+
transactionPassword: await sha256(input.transactionPassword),
|
|
184
|
+
},
|
|
185
|
+
}, options);
|
|
186
|
+
if (res.createMayaAppWithdrawal) {
|
|
187
|
+
const error = new Error();
|
|
188
|
+
error.name = res.createMayaAppWithdrawal.name;
|
|
189
|
+
error.message = res.createMayaAppWithdrawal.message;
|
|
190
|
+
Error.captureStackTrace?.(error, createMayaAppWithdrawal);
|
|
191
|
+
throw error;
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
export const createBankWithdrawal = async (input, options) => {
|
|
195
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_BANK_WITHDRAWAL, {
|
|
196
|
+
input: {
|
|
197
|
+
...input,
|
|
198
|
+
transactionPassword: await sha256(input.transactionPassword),
|
|
199
|
+
},
|
|
200
|
+
}, options);
|
|
201
|
+
if (res.createBankWithdrawal) {
|
|
202
|
+
const error = new Error();
|
|
203
|
+
error.name = res.createBankWithdrawal.name;
|
|
204
|
+
error.message = res.createBankWithdrawal.message;
|
|
205
|
+
Error.captureStackTrace?.(error, createBankWithdrawal);
|
|
206
|
+
throw error;
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
export const createAIOInstapayWithdrawal = async (input, options) => {
|
|
210
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_AIO_INSTAPAY_WITHDRAWAL, {
|
|
211
|
+
input: {
|
|
212
|
+
...input,
|
|
213
|
+
transactionPassword: await sha256(input.transactionPassword),
|
|
214
|
+
},
|
|
215
|
+
}, options);
|
|
216
|
+
if (res.createAIOInstapayWithdrawal) {
|
|
217
|
+
const error = new Error();
|
|
218
|
+
error.name = res.createAIOInstapayWithdrawal.name;
|
|
219
|
+
error.message = res.createAIOInstapayWithdrawal.message;
|
|
220
|
+
Error.captureStackTrace?.(error, createAIOInstapayWithdrawal);
|
|
221
|
+
throw error;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
export const createManualUpiWithdrawal = async (input, options) => {
|
|
225
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_MANUAL_UPI_WITHDRAWAL, { input }, options);
|
|
226
|
+
if (res.createManualUpiWithdrawal) {
|
|
227
|
+
const error = new Error();
|
|
228
|
+
error.name = res.createManualUpiWithdrawal.name;
|
|
229
|
+
error.message = res.createManualUpiWithdrawal.message;
|
|
230
|
+
Error.captureStackTrace?.(error, createManualUpiWithdrawal);
|
|
231
|
+
throw error;
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
export const createManualBankWithdrawal = async (input, options) => {
|
|
235
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_MANUAL_BANK_WITHDRAWAL, { input }, options);
|
|
236
|
+
if (res.createManualBankWithdrawal) {
|
|
237
|
+
const error = new Error();
|
|
238
|
+
error.name = res.createManualBankWithdrawal.name;
|
|
239
|
+
error.message = res.createManualBankWithdrawal.message;
|
|
240
|
+
Error.captureStackTrace?.(error, createManualBankWithdrawal);
|
|
241
|
+
throw error;
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
export const getInstapayBankList = cache(async (options) => {
|
|
245
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, INSTAPAY_BANK_LIST, undefined, options);
|
|
246
|
+
return res.instapayBankList;
|
|
247
|
+
});
|
|
248
|
+
export const getRemainingDailyWithdrawalsCount = cache(async (options) => {
|
|
249
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, REMAINING_DAILY_WITHDRAWALS_COUNT, undefined, options);
|
|
250
|
+
return res.remainingDailyWithdrawalsCount;
|
|
251
|
+
});
|
|
252
|
+
export const getPointsWallet = cache(async (options) => {
|
|
253
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, POINTS_WALLET, undefined, options);
|
|
254
|
+
return res.pointsWallet ?? null;
|
|
255
|
+
});
|
|
256
|
+
export const redeemPointsToCash = async (amount, options) => {
|
|
257
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, REDEEM_POINTS_TO_CASH, { input: { amount } }, options);
|
|
258
|
+
if (res.redeemPointsToCash) {
|
|
259
|
+
const error = new Error();
|
|
260
|
+
error.name = res.redeemPointsToCash.name;
|
|
261
|
+
error.message = res.redeemPointsToCash.message;
|
|
262
|
+
Error.captureStackTrace?.(error, redeemPointsToCash);
|
|
263
|
+
throw error;
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
export const getMayaSession = cache(async (id, options) => {
|
|
267
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, MAYA_SESSION, { id }, options);
|
|
268
|
+
return res.mayaSession ?? null;
|
|
269
|
+
});
|
|
270
|
+
export const getGameSession = cache(async (id, options) => {
|
|
271
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, GAME_SESSION, { id }, options);
|
|
272
|
+
return res.node ?? null;
|
|
273
|
+
});
|
|
274
|
+
export const createGameSession = async (input, options) => {
|
|
275
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_GAME_SESSION, { input }, options);
|
|
276
|
+
if (res.createGameSession) {
|
|
277
|
+
const error = new Error();
|
|
278
|
+
error.name = res.createGameSession.name;
|
|
279
|
+
error.message = res.createGameSession.message;
|
|
280
|
+
Error.captureStackTrace?.(error, createGameSession);
|
|
281
|
+
throw error;
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
export const endGameSession = async (id, options) => {
|
|
285
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, END_GAME_SESSION, { input: { id } }, options);
|
|
286
|
+
if (!res.endGameSession) {
|
|
287
|
+
const error = new Error();
|
|
288
|
+
error.name = 'UnknownError';
|
|
289
|
+
error.message = 'Something went wrong';
|
|
290
|
+
Error.captureStackTrace?.(error, endGameSession);
|
|
291
|
+
throw error;
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
export const validateMayaSession = async (options) => {
|
|
295
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, VALIDATE_MAYA_SESSION, undefined, options);
|
|
296
|
+
if (!res.validateMayaSession) {
|
|
297
|
+
const error = new Error();
|
|
298
|
+
error.name = 'UnknownError';
|
|
299
|
+
error.message = 'Something went wrong';
|
|
300
|
+
Error.captureStackTrace?.(error, validateMayaSession);
|
|
301
|
+
throw error;
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
export const getBonuses = cache(async (options) => {
|
|
305
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, BONUSES, undefined, options);
|
|
306
|
+
return res.bonuses ?? [];
|
|
307
|
+
});
|
|
308
|
+
export const getBonusesCount = cache(async (options) => {
|
|
309
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, BONUSES_IDS, undefined, options);
|
|
310
|
+
return res.bonuses?.length ?? 0;
|
|
311
|
+
});
|
|
312
|
+
export const claimSpotBonus = async (code, options) => {
|
|
313
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CLAIM_SPOT_BONUS, { code }, options);
|
|
314
|
+
if (res.claimSpotBonus) {
|
|
315
|
+
const error = new Error();
|
|
316
|
+
error.name = res.claimSpotBonus.name;
|
|
317
|
+
error.message = res.claimSpotBonus.message;
|
|
318
|
+
Error.captureStackTrace?.(error, claimSpotBonus);
|
|
319
|
+
throw error;
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
export const touchGCashDeposit = async (id, options) => {
|
|
323
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, TOUCH_GCASH_DEPOSIT, { input: { id } }, options);
|
|
324
|
+
if (!res.touchGCashDeposit) {
|
|
325
|
+
const error = new Error();
|
|
326
|
+
error.name = 'UnknownError';
|
|
327
|
+
error.message = 'Something went wrong';
|
|
328
|
+
Error.captureStackTrace?.(error, touchGCashDeposit);
|
|
329
|
+
throw error;
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
export const touchQRPHDeposit = async (id, options) => {
|
|
333
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, TOUCH_QRPH_DEPOSIT, { input: { id } }, options);
|
|
334
|
+
if (!res.touchQRPHDeposit) {
|
|
335
|
+
const error = new Error();
|
|
336
|
+
error.name = 'UnknownError';
|
|
337
|
+
error.message = 'Something went wrong';
|
|
338
|
+
Error.captureStackTrace?.(error, touchQRPHDeposit);
|
|
339
|
+
throw error;
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
export const markGameAsFavorite = async (id, options) => {
|
|
343
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, MARK_GAME_AS_FAVORITE, { input: { id } }, options);
|
|
344
|
+
if (!res.markGameAsFavorite) {
|
|
345
|
+
const error = new Error();
|
|
346
|
+
error.name = 'UnknownError';
|
|
347
|
+
error.message = 'Something went wrong';
|
|
348
|
+
Error.captureStackTrace?.(error, markGameAsFavorite);
|
|
349
|
+
throw error;
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
export const unmarkGameAsFavorite = async (id, options) => {
|
|
353
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, UNMARK_GAME_AS_FAVORITE, { input: { id } }, options);
|
|
354
|
+
if (!res.unmarkGameAsFavorite) {
|
|
355
|
+
const error = new Error();
|
|
356
|
+
error.name = 'UnknownError';
|
|
357
|
+
error.message = 'Something went wrong';
|
|
358
|
+
Error.captureStackTrace?.(error, unmarkGameAsFavorite);
|
|
359
|
+
throw error;
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
export const getFavoriteGames = cache(async (options) => {
|
|
363
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, FAVORITE_GAMES, undefined, options);
|
|
364
|
+
return res.favoriteGames;
|
|
365
|
+
});
|