@opexa/portal-components 0.0.12 → 0.0.13
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/{hooks → client/hooks}/useAccountQuery.d.ts +1 -1
- package/dist/client/hooks/useAccountQuery.js +1 -0
- package/dist/client/hooks/useAccountQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useAuthenticateMutation.d.ts +1 -1
- package/dist/client/hooks/useAuthenticateMutation.js +1 -0
- package/dist/client/hooks/useAuthenticateMutation.mjs +24 -0
- package/dist/{hooks → client/hooks}/useAvailablePromosQuery.d.ts +1 -1
- package/dist/client/hooks/useAvailablePromosQuery.js +1 -0
- package/dist/client/hooks/useAvailablePromosQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useBetRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useBetRecordsQuery.js +1 -0
- package/dist/client/hooks/useBetRecordsQuery.mjs +47 -0
- package/dist/{hooks → client/hooks}/useCashbacksQuery.d.ts +1 -1
- package/dist/client/hooks/useCashbacksQuery.js +1 -0
- package/dist/client/hooks/useCashbacksQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useCreateGCashDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGCashDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateGCashDepositMutation.mjs +15 -18
- package/dist/{hooks → client/hooks}/useCreateGameSessionMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateGameSessionMutation.mjs +20 -23
- package/dist/{hooks → client/hooks}/useCreateMayaAppDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +1 -0
- package/dist/client/hooks/useCreateMayaAppDepositMutation.mjs +66 -0
- package/dist/{hooks → client/hooks}/useCreateMayaDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateMayaDepositMutation.mjs +24 -27
- package/dist/{hooks → client/hooks}/useCreateOnlineBankDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateOnlineBankDepositMutation.mjs +14 -17
- package/dist/{hooks → client/hooks}/useCreateQRPHDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateQRPHDepositMutation.mjs +14 -17
- package/dist/{hooks → client/hooks}/useDepositQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositQuery.js +1 -0
- package/dist/client/hooks/useDepositQuery.mjs +39 -0
- package/dist/{hooks → client/hooks}/useDepositRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositRecordsQuery.js +1 -0
- package/dist/client/hooks/useDepositRecordsQuery.mjs +47 -0
- package/dist/{hooks → client/hooks}/useDepositsCountQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositsCountQuery.js +1 -0
- package/dist/client/hooks/useDepositsCountQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useEndGameSessionMutation.d.ts +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useEndGameSessionMutation.mjs +12 -15
- package/dist/{hooks → client/hooks}/useGamesQuery.d.ts +1 -1
- package/dist/client/hooks/useGamesQuery.js +1 -0
- package/dist/client/hooks/useGamesQuery.mjs +39 -0
- package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.d.ts +1 -1
- package/dist/{hooks → client/hooks}/useInstapayBankListQuery.d.ts +1 -1
- package/dist/client/hooks/useInstapayBankListQuery.js +1 -0
- package/dist/client/hooks/useInstapayBankListQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useIsMayaSessionValidQuery.d.ts +1 -1
- package/dist/client/hooks/useIsMayaSessionValidQuery.js +1 -0
- package/dist/client/hooks/useIsMayaSessionValidQuery.mjs +48 -0
- package/dist/{hooks → client/hooks}/useJackpotsQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotsQuery.js +1 -0
- package/dist/client/hooks/useJackpotsQuery.mjs +31 -0
- package/dist/client/hooks/useLocaleInfo.d.ts +1 -0
- package/dist/client/hooks/useLocaleInfo.js +1 -0
- package/dist/client/hooks/useLocaleInfo.mjs +15 -0
- package/dist/{hooks → client/hooks}/useMemberVerificationQuery.d.ts +1 -1
- package/dist/client/hooks/useMemberVerificationQuery.js +1 -0
- package/dist/client/hooks/useMemberVerificationQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/usePaymentSettingsQuery.d.ts +1 -1
- package/dist/client/hooks/usePaymentSettingsQuery.js +1 -0
- package/dist/client/hooks/usePaymentSettingsQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/usePlatformQuery.d.ts +1 -1
- package/dist/client/hooks/usePlatformQuery.js +1 -0
- package/dist/client/hooks/usePlatformQuery.mjs +21 -0
- package/dist/{hooks → client/hooks}/usePromoQuery.d.ts +1 -1
- package/dist/client/hooks/usePromoQuery.js +1 -0
- package/dist/client/hooks/usePromoQuery.mjs +24 -0
- package/dist/{hooks → client/hooks}/usePromosQuery.d.ts +1 -1
- package/dist/client/hooks/usePromosQuery.js +1 -0
- package/dist/client/hooks/usePromosQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useSendVerificationCodeMutation.d.ts +1 -1
- package/dist/client/hooks/useSendVerificationCodeMutation.js +1 -0
- package/dist/client/hooks/useSendVerificationCodeMutation.mjs +24 -0
- package/dist/{hooks → client/hooks}/useSessionQuery.d.ts +1 -1
- package/dist/client/hooks/useSessionQuery.js +1 -0
- package/dist/client/hooks/useSessionQuery.mjs +19 -0
- package/dist/{hooks → client/hooks}/useSignInMutation.d.ts +1 -1
- package/dist/client/hooks/useSignInMutation.js +1 -0
- package/dist/client/hooks/useSignInMutation.mjs +25 -0
- package/dist/{hooks → client/hooks}/useSignOutMutation.d.ts +1 -1
- package/dist/client/hooks/useSignOutMutation.js +1 -0
- package/dist/client/hooks/useSignOutMutation.mjs +22 -0
- package/dist/{hooks → client/hooks}/useSignUpMutation.d.ts +1 -1
- package/dist/client/hooks/useSignUpMutation.js +1 -0
- package/dist/client/hooks/useSignUpMutation.mjs +25 -0
- package/dist/{hooks → client/hooks}/useSiteQuery.d.ts +1 -1
- package/dist/client/hooks/useSiteQuery.js +1 -0
- package/dist/client/hooks/useSiteQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useTopWinsQuery.d.ts +1 -1
- package/dist/client/hooks/useTopWinsQuery.js +1 -0
- package/dist/client/hooks/useTopWinsQuery.mjs +22 -0
- package/dist/{hooks → client/hooks}/useTournamentsQuery.d.ts +1 -1
- package/dist/client/hooks/useTournamentsQuery.js +1 -0
- package/dist/client/hooks/useTournamentsQuery.mjs +32 -0
- package/dist/{hooks → client/hooks}/useTransactionRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useTransactionRecordsQuery.js +1 -0
- package/dist/{hooks → client/hooks}/useTransactionRecordsQuery.mjs +17 -20
- package/dist/{hooks → client/hooks}/useWalletQuery.d.ts +1 -1
- package/dist/client/hooks/useWalletQuery.js +1 -0
- package/dist/client/hooks/useWalletQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useWithdrawalRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useWithdrawalRecordsQuery.js +1 -0
- package/dist/client/hooks/useWithdrawalRecordsQuery.mjs +47 -0
- package/dist/client/services/authenticate.js +1 -0
- package/dist/{services → client/services}/authenticate.mjs +1 -1
- package/dist/{services → client/services}/getSession.d.ts +1 -1
- package/dist/client/services/signIn.js +1 -0
- package/dist/{services → client/services}/signIn.mjs +1 -1
- package/dist/client/utils/createRecipeContext.js +1 -0
- package/dist/client/utils/createRecipeContext.mjs +55 -0
- package/dist/client/utils/index.d.ts +2 -0
- package/dist/client-hooks.d.ts +2 -0
- package/dist/client-hooks.js +1 -0
- package/dist/client-hooks.mjs +88 -0
- package/dist/client-services.d.ts +2 -0
- package/dist/client-services.js +1 -0
- package/dist/client-services.mjs +10 -0
- package/dist/client-utils.d.ts +2 -0
- package/dist/client-utils.js +1 -0
- package/dist/client-utils.mjs +6 -0
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +16 -17
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +16 -17
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +6 -7
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +10 -11
- package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/AvailablePromos.mjs +7 -8
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +30 -54
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +12 -12
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +9 -9
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +12 -12
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +9 -10
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -9
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +8 -9
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -9
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +7 -8
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +10 -11
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +2 -3
- package/dist/components/Disclaimer/useDisclaimer.js +1 -1
- package/dist/components/Disclaimer/useDisclaimer.mjs +2 -2
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +15 -16
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +8 -8
- package/dist/components/Games/Games.client.d.ts +2 -0
- package/dist/components/Games/Games.client.js +1 -0
- package/dist/components/Games/Games.client.mjs +150 -0
- package/dist/components/Games/Games.d.ts +1 -1
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +11 -141
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +5 -6
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +14 -15
- package/dist/components/PortalProvider/PortalProvider.d.ts +1 -1
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +18 -58
- package/dist/components/PortalProvider/Providers.d.ts +2 -0
- package/dist/components/PortalProvider/Providers.js +1 -0
- package/dist/components/PortalProvider/Providers.mjs +65 -0
- package/dist/components/Promo/PromoContent.js +1 -1
- package/dist/components/Promo/PromoContent.mjs +6 -7
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +16 -17
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +10 -11
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +2 -4
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +6 -8
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +5 -6
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +8 -8
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +25 -26
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +9 -9
- package/dist/components/TopWins/TopWins.client.d.ts +2 -0
- package/dist/components/TopWins/TopWins.client.js +1 -0
- package/dist/components/TopWins/TopWins.client.mjs +64 -0
- package/dist/components/TopWins/TopWins.d.ts +1 -1
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +12 -61
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +5 -6
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +5 -6
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +6 -7
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +5 -6
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +4 -6
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +6 -7
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +6 -7
- package/dist/components/index.d.ts +0 -1
- package/dist/components.js +1 -1
- package/dist/components.mjs +34 -39
- package/dist/dist/constants/index.js +1 -0
- package/dist/dist/constants/index.mjs +27 -0
- package/dist/dist/server/utils/prefetchTopWinsQuery.js +1 -0
- package/dist/dist/server/utils/prefetchTopWinsQuery.mjs +22 -0
- package/dist/dist/utils/getLocaleInfo.js +1 -0
- package/dist/dist/utils/getLocaleInfo.mjs +397 -0
- package/dist/dist/utils/getQueryClient.js +1 -0
- package/dist/dist/utils/getQueryClient.mjs +23 -0
- package/dist/dist/utils/isMobile.js +1 -0
- package/dist/dist/utils/isMobile.mjs +7 -0
- package/dist/dist/utils/parseDecimal.js +1 -0
- package/dist/dist/utils/parseDecimal.mjs +8 -0
- package/dist/dist/utils/queryKeys.js +1 -0
- package/dist/dist/utils/queryKeys.mjs +4 -0
- package/dist/server/utils/prefetchAccountQuery.js +1 -1
- package/dist/server/utils/prefetchAccountQuery.mjs +9 -12
- package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -1
- package/dist/server/utils/prefetchAvailablePromosQuery.mjs +10 -13
- package/dist/server/utils/prefetchBetRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchBetRecordsQuery.mjs +8 -11
- package/dist/server/utils/prefetchCashbacksQuery.js +1 -1
- package/dist/server/utils/prefetchCashbacksQuery.mjs +10 -13
- package/dist/server/utils/prefetchDepositQuery.js +1 -1
- package/dist/server/utils/prefetchDepositQuery.mjs +13 -16
- package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchDepositRecordsQuery.mjs +13 -16
- package/dist/server/utils/prefetchGamesQuery.js +1 -1
- package/dist/server/utils/prefetchGamesQuery.mjs +9 -12
- package/dist/server/utils/prefetchInstapayBankListQuery.js +1 -1
- package/dist/server/utils/prefetchInstapayBankListQuery.mjs +8 -11
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -1
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.mjs +12 -15
- package/dist/server/utils/prefetchJackpotsQuery.js +1 -1
- package/dist/server/utils/prefetchJackpotsQuery.mjs +9 -12
- package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -1
- package/dist/server/utils/prefetchMemberVerificationQuery.mjs +8 -11
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -1
- package/dist/server/utils/prefetchPaymentSettingsQuery.mjs +2 -5
- package/dist/server/utils/prefetchPlatformQuery.js +1 -1
- package/dist/server/utils/prefetchPlatformQuery.mjs +2 -5
- package/dist/server/utils/prefetchPromoQuery.js +1 -1
- package/dist/server/utils/prefetchPromoQuery.mjs +7 -10
- package/dist/server/utils/prefetchPromosQuery.js +1 -1
- package/dist/server/utils/prefetchPromosQuery.mjs +7 -10
- package/dist/server/utils/prefetchSessionQuery.js +1 -1
- package/dist/server/utils/prefetchSessionQuery.mjs +2 -5
- package/dist/server/utils/prefetchSiteQuery.js +1 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +6 -9
- package/dist/server/utils/prefetchTopWinsQuery.js +1 -1
- package/dist/server/utils/prefetchTopWinsQuery.mjs +6 -9
- package/dist/server/utils/prefetchTournamentsQuery.js +1 -1
- package/dist/server/utils/prefetchTournamentsQuery.mjs +2 -5
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchTransactionRecordsQuery.mjs +6 -9
- package/dist/server/utils/prefetchWalletQuery.js +1 -1
- package/dist/server/utils/prefetchWalletQuery.mjs +11 -14
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.mjs +2 -5
- package/dist/ui/AlertDialog/AlertDialog.js +1 -1
- package/dist/ui/AlertDialog/AlertDialog.mjs +15 -21
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +2 -5
- package/dist/ui/Avatar/Avatar.js +1 -1
- package/dist/ui/Avatar/Avatar.mjs +8 -14
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Avatar/avatar.recipe.mjs +5 -8
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +10 -16
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +2 -5
- package/dist/ui/Button/Button.js +1 -1
- package/dist/ui/Button/Button.mjs +2 -4
- package/dist/ui/Checkbox/Checkbox.js +1 -1
- package/dist/ui/Checkbox/Checkbox.mjs +12 -18
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +5 -8
- package/dist/ui/Clipboard/Clipboard.js +1 -1
- package/dist/ui/Clipboard/Clipboard.mjs +11 -17
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Clipboard/clipboard.recipe.mjs +2 -5
- package/dist/ui/DatePicker/DatePicker.js +1 -1
- package/dist/ui/DatePicker/DatePicker.mjs +31 -37
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +2 -5
- package/dist/ui/Dialog/Dialog.js +1 -1
- package/dist/ui/Dialog/Dialog.mjs +15 -21
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +2 -5
- package/dist/ui/Drawer/Drawer.js +1 -1
- package/dist/ui/Drawer/Drawer.mjs +15 -21
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +5 -8
- package/dist/ui/Field/Field.js +1 -1
- package/dist/ui/Field/Field.mjs +11 -17
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +2 -5
- package/dist/ui/IconButton/IconButton.js +1 -1
- package/dist/ui/IconButton/IconButton.mjs +2 -4
- package/dist/ui/NumberInput/NumberInput.js +1 -1
- package/dist/ui/NumberInput/NumberInput.mjs +17 -23
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +2 -5
- package/dist/ui/PinInput/PinInput.js +1 -1
- package/dist/ui/PinInput/PinInput.mjs +10 -16
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +2 -5
- package/dist/ui/Popover/Popover.js +1 -1
- package/dist/ui/Popover/Popover.mjs +15 -21
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +5 -8
- package/dist/ui/Presence.js +1 -1
- package/dist/ui/Presence.mjs +7 -6
- package/dist/ui/SegmentGroup/SegmentGroup.js +1 -1
- package/dist/ui/SegmentGroup/SegmentGroup.mjs +12 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +4 -7
- package/dist/ui/Select/Select.js +1 -1
- package/dist/ui/Select/Select.mjs +23 -29
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +5 -8
- package/dist/ui/Table/Table.js +1 -1
- package/dist/ui/Table/Table.mjs +10 -16
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +2 -5
- package/dist/ui/Tabs/Tabs.js +1 -1
- package/dist/ui/Tabs/Tabs.mjs +10 -16
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +4 -7
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +54 -58
- package/package.json +143 -128
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +0 -6
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.js +0 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.mjs +0 -13
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.d.ts +0 -6
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.js +0 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.mjs +0 -64
- package/dist/components/FeatureFlagProvider/index.d.ts +0 -2
- package/dist/components/FeatureFlagProvider/useFeatureFlag.d.ts +0 -8
- package/dist/components/FeatureFlagProvider/useFeatureFlag.js +0 -1
- package/dist/components/FeatureFlagProvider/useFeatureFlag.mjs +0 -22
- package/dist/hooks/useAccountQuery.js +0 -1
- package/dist/hooks/useAccountQuery.mjs +0 -41
- package/dist/hooks/useAuthenticateMutation.js +0 -1
- package/dist/hooks/useAuthenticateMutation.mjs +0 -27
- package/dist/hooks/useAvailablePromosQuery.js +0 -1
- package/dist/hooks/useAvailablePromosQuery.mjs +0 -41
- package/dist/hooks/useBetRecordsQuery.js +0 -1
- package/dist/hooks/useBetRecordsQuery.mjs +0 -50
- package/dist/hooks/useCashbacksQuery.js +0 -1
- package/dist/hooks/useCashbacksQuery.mjs +0 -26
- package/dist/hooks/useCreateGCashDepositMutation.js +0 -1
- package/dist/hooks/useCreateGameSessionMutation.js +0 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.js +0 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.mjs +0 -69
- package/dist/hooks/useCreateMayaDepositMutation.js +0 -1
- package/dist/hooks/useCreateOnlineBankDepositMutation.js +0 -1
- package/dist/hooks/useCreateQRPHDepositMutation.js +0 -1
- package/dist/hooks/useDepositQuery.js +0 -1
- package/dist/hooks/useDepositQuery.mjs +0 -42
- package/dist/hooks/useDepositRecordsQuery.js +0 -1
- package/dist/hooks/useDepositRecordsQuery.mjs +0 -50
- package/dist/hooks/useDepositsCountQuery.js +0 -1
- package/dist/hooks/useDepositsCountQuery.mjs +0 -41
- package/dist/hooks/useEndGameSessionMutation.js +0 -1
- package/dist/hooks/useGamesQuery.js +0 -1
- package/dist/hooks/useGamesQuery.mjs +0 -42
- package/dist/hooks/useInstapayBankListQuery.js +0 -1
- package/dist/hooks/useInstapayBankListQuery.mjs +0 -41
- package/dist/hooks/useIsMayaSessionValidQuery.js +0 -1
- package/dist/hooks/useIsMayaSessionValidQuery.mjs +0 -51
- package/dist/hooks/useJackpotsQuery.js +0 -1
- package/dist/hooks/useJackpotsQuery.mjs +0 -34
- package/dist/hooks/useLocaleInfo.d.ts +0 -1
- package/dist/hooks/useLocaleInfo.js +0 -1
- package/dist/hooks/useLocaleInfo.mjs +0 -18
- package/dist/hooks/useMemberVerificationQuery.js +0 -1
- package/dist/hooks/useMemberVerificationQuery.mjs +0 -41
- package/dist/hooks/usePaymentSettingsQuery.js +0 -1
- package/dist/hooks/usePaymentSettingsQuery.mjs +0 -41
- package/dist/hooks/usePlatformQuery.js +0 -1
- package/dist/hooks/usePlatformQuery.mjs +0 -24
- package/dist/hooks/usePromoQuery.js +0 -1
- package/dist/hooks/usePromoQuery.mjs +0 -27
- package/dist/hooks/usePromosQuery.js +0 -1
- package/dist/hooks/usePromosQuery.mjs +0 -26
- package/dist/hooks/useSendVerificationCodeMutation.js +0 -1
- package/dist/hooks/useSendVerificationCodeMutation.mjs +0 -27
- package/dist/hooks/useSessionQuery.js +0 -1
- package/dist/hooks/useSessionQuery.mjs +0 -22
- package/dist/hooks/useSignInMutation.js +0 -1
- package/dist/hooks/useSignInMutation.mjs +0 -28
- package/dist/hooks/useSignOutMutation.js +0 -1
- package/dist/hooks/useSignOutMutation.mjs +0 -25
- package/dist/hooks/useSignUpMutation.js +0 -1
- package/dist/hooks/useSignUpMutation.mjs +0 -28
- package/dist/hooks/useSiteQuery.js +0 -1
- package/dist/hooks/useSiteQuery.mjs +0 -26
- package/dist/hooks/useTopWinsQuery.js +0 -1
- package/dist/hooks/useTopWinsQuery.mjs +0 -25
- package/dist/hooks/useTournamentsQuery.js +0 -1
- package/dist/hooks/useTournamentsQuery.mjs +0 -35
- package/dist/hooks/useTransactionRecordsQuery.js +0 -1
- package/dist/hooks/useWalletQuery.js +0 -1
- package/dist/hooks/useWalletQuery.mjs +0 -41
- package/dist/hooks/useWithdrawalRecordsQuery.js +0 -1
- package/dist/hooks/useWithdrawalRecordsQuery.mjs +0 -50
- package/dist/hooks.d.ts +0 -2
- package/dist/hooks.js +0 -1
- package/dist/hooks.mjs +0 -88
- package/dist/services/authenticate.js +0 -1
- package/dist/services/signIn.js +0 -1
- package/dist/services.d.ts +0 -2
- package/dist/services.js +0 -1
- package/dist/services.mjs +0 -10
- package/dist/utils/createRecipeContext.js +0 -1
- package/dist/utils/createRecipeContext.mjs +0 -49
- /package/dist/{hooks → client/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.js +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.js +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.js +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.js +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.js +0 -0
- /package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.js +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.js +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.mjs +0 -0
- /package/dist/{services → client/services}/authenticate.d.ts +0 -0
- /package/dist/{services → client/services}/getSession.js +0 -0
- /package/dist/{services → client/services}/getSession.mjs +0 -0
- /package/dist/{services → client/services}/index.d.ts +0 -0
- /package/dist/{services → client/services}/signIn.d.ts +0 -0
- /package/dist/{services → client/services}/signOut.d.ts +0 -0
- /package/dist/{services → client/services}/signOut.js +0 -0
- /package/dist/{services → client/services}/signOut.mjs +0 -0
- /package/dist/{utils → client/utils}/createRecipeContext.d.ts +0 -0
- /package/dist/{utils → client/utils}/toaster.d.ts +0 -0
- /package/dist/{utils → client/utils}/toaster.js +0 -0
- /package/dist/{utils → client/utils}/toaster.mjs +0 -0
|
@@ -2,19 +2,16 @@ import { createAIOOnlineBankDeposit as l, getDeposit as y } from "@opexa/portal-
|
|
|
2
2
|
import { ObjectId as f, ObjectType as d } from "@opexa/portal-sdk-core/object-id";
|
|
3
3
|
import { useMutation as O } from "@tanstack/react-query";
|
|
4
4
|
import a from "tiny-invariant";
|
|
5
|
-
import { PLATFORM_CODE as
|
|
5
|
+
import { PLATFORM_CODE as s, ENVIRONMENT as m } from "../../constants/index.mjs";
|
|
6
|
+
import "../../utils/capitalize.mjs";
|
|
7
|
+
import { createPoll as h } from "../../utils/createPoll.mjs";
|
|
8
|
+
import "../../utils/parseDecimal.mjs";
|
|
9
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
10
|
+
import { getQueryClient as g } from "../../utils/getQueryClient.mjs";
|
|
11
|
+
import "../../utils/isMobile.mjs";
|
|
12
|
+
import { getCreateOnlineBankDepositMutationKey as k, getSessionQueryKey as u } from "../../utils/queryKeys.mjs";
|
|
6
13
|
import { getSession as p } from "../services/getSession.mjs";
|
|
7
|
-
|
|
8
|
-
import { createPoll as h } from "../utils/createPoll.mjs";
|
|
9
|
-
import "react/jsx-runtime";
|
|
10
|
-
import "react";
|
|
11
|
-
import "../utils/parseDecimal.mjs";
|
|
12
|
-
import "../utils/getLocaleInfo.mjs";
|
|
13
|
-
import { getQueryClient as g } from "../utils/getQueryClient.mjs";
|
|
14
|
-
import "../utils/isMobile.mjs";
|
|
15
|
-
import { getCreateOnlineBankDepositMutationKey as k, getSessionQueryKey as u } from "../utils/queryKeys.mjs";
|
|
16
|
-
import "../utils/toaster.mjs";
|
|
17
|
-
const j = (c) => {
|
|
14
|
+
const N = (c) => {
|
|
18
15
|
const o = g();
|
|
19
16
|
return O({
|
|
20
17
|
...c,
|
|
@@ -27,9 +24,9 @@ const j = (c) => {
|
|
|
27
24
|
a(i.status === "authenticated"), await l(
|
|
28
25
|
{ ...r, id: n },
|
|
29
26
|
{
|
|
30
|
-
environment:
|
|
27
|
+
environment: m,
|
|
31
28
|
headers: {
|
|
32
|
-
"Platform-Code":
|
|
29
|
+
"Platform-Code": s,
|
|
33
30
|
Authorization: `Bearer ${i.token}`
|
|
34
31
|
}
|
|
35
32
|
}
|
|
@@ -41,9 +38,9 @@ const j = (c) => {
|
|
|
41
38
|
queryFn: () => p()
|
|
42
39
|
});
|
|
43
40
|
return a(t.status === "authenticated"), await y(n, {
|
|
44
|
-
environment:
|
|
41
|
+
environment: m,
|
|
45
42
|
headers: {
|
|
46
|
-
"Platform-Code":
|
|
43
|
+
"Platform-Code": s,
|
|
47
44
|
Authorization: `Bearer ${t.token}`
|
|
48
45
|
}
|
|
49
46
|
});
|
|
@@ -65,5 +62,5 @@ const j = (c) => {
|
|
|
65
62
|
});
|
|
66
63
|
};
|
|
67
64
|
export {
|
|
68
|
-
|
|
65
|
+
N as useCreateOnlineBankDepositMutation
|
|
69
66
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CreateAIOQRPHDeposit, Deposit } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { SetOptional } from 'type-fest';
|
|
3
|
-
import { Mutation } from '
|
|
3
|
+
import { Mutation } from '../../types';
|
|
4
4
|
export declare const useCreateQRPHDepositMutation: Mutation<Deposit, SetOptional<CreateAIOQRPHDeposit, 'id'>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@opexa/portal-sdk-core"),c=require("@opexa/portal-sdk-core/object-id"),d=require("@tanstack/react-query"),y=require("tiny-invariant"),r=require("../../constants/index.js");require("../../utils/capitalize.js");const g=require("../../utils/createPoll.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const p=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const o=require("../../utils/queryKeys.js"),q=require("../services/getSession.js"),m=l=>{const n=p.getQueryClient();return d.useMutation({...l,mutationKey:o.getCreateQRPHDepositMutationKey(),mutationFn:async i=>{const s=i.id??c.ObjectId.generate(c.ObjectType.Deposit).toString(),a=await n.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>q.getSession()});y(a.status==="authenticated"),await u.createAIOQRPHDeposit({...i,id:s},{environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE,Authorization:`Bearer ${a.token}`}});const t=await g.createPoll(async()=>{const e=await n.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>q.getSession()});return y(e.status==="authenticated"),await u.getDeposit(s,{environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE,Authorization:`Bearer ${e.token}`}})},{until(e){return!!(e!=null&&e.qrCode)},interval:1e3,maxAttempt:5})();if(!(t!=null&&t.qrCode)){const e=new Error;throw e.name="QRPHDepositError",e.message="Failed to process QR PH deposit",e}return t}})};exports.useCreateQRPHDepositMutation=m;
|
|
@@ -2,19 +2,16 @@ import { createAIOQRPHDeposit as y, getDeposit as f } from "@opexa/portal-sdk-co
|
|
|
2
2
|
import { ObjectId as d, ObjectType as l } from "@opexa/portal-sdk-core/object-id";
|
|
3
3
|
import { useMutation as h } from "@tanstack/react-query";
|
|
4
4
|
import a from "tiny-invariant";
|
|
5
|
-
import { PLATFORM_CODE as
|
|
5
|
+
import { PLATFORM_CODE as s, ENVIRONMENT as m } from "../../constants/index.mjs";
|
|
6
|
+
import "../../utils/capitalize.mjs";
|
|
7
|
+
import { createPoll as C } from "../../utils/createPoll.mjs";
|
|
8
|
+
import "../../utils/parseDecimal.mjs";
|
|
9
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
10
|
+
import { getQueryClient as P } from "../../utils/getQueryClient.mjs";
|
|
11
|
+
import "../../utils/isMobile.mjs";
|
|
12
|
+
import { getCreateQRPHDepositMutationKey as Q, getSessionQueryKey as u } from "../../utils/queryKeys.mjs";
|
|
6
13
|
import { getSession as p } from "../services/getSession.mjs";
|
|
7
|
-
|
|
8
|
-
import { createPoll as C } from "../utils/createPoll.mjs";
|
|
9
|
-
import "react/jsx-runtime";
|
|
10
|
-
import "react";
|
|
11
|
-
import "../utils/parseDecimal.mjs";
|
|
12
|
-
import "../utils/getLocaleInfo.mjs";
|
|
13
|
-
import { getQueryClient as P } from "../utils/getQueryClient.mjs";
|
|
14
|
-
import "../utils/isMobile.mjs";
|
|
15
|
-
import { getCreateQRPHDepositMutationKey as Q, getSessionQueryKey as u } from "../utils/queryKeys.mjs";
|
|
16
|
-
import "../utils/toaster.mjs";
|
|
17
|
-
const j = (c) => {
|
|
14
|
+
const S = (c) => {
|
|
18
15
|
const o = P();
|
|
19
16
|
return h({
|
|
20
17
|
...c,
|
|
@@ -27,9 +24,9 @@ const j = (c) => {
|
|
|
27
24
|
a(n.status === "authenticated"), await y(
|
|
28
25
|
{ ...r, id: i },
|
|
29
26
|
{
|
|
30
|
-
environment:
|
|
27
|
+
environment: m,
|
|
31
28
|
headers: {
|
|
32
|
-
"Platform-Code":
|
|
29
|
+
"Platform-Code": s,
|
|
33
30
|
Authorization: `Bearer ${n.token}`
|
|
34
31
|
}
|
|
35
32
|
}
|
|
@@ -41,9 +38,9 @@ const j = (c) => {
|
|
|
41
38
|
queryFn: () => p()
|
|
42
39
|
});
|
|
43
40
|
return a(t.status === "authenticated"), await f(i, {
|
|
44
|
-
environment:
|
|
41
|
+
environment: m,
|
|
45
42
|
headers: {
|
|
46
|
-
"Platform-Code":
|
|
43
|
+
"Platform-Code": s,
|
|
47
44
|
Authorization: `Bearer ${t.token}`
|
|
48
45
|
}
|
|
49
46
|
});
|
|
@@ -65,5 +62,5 @@ const j = (c) => {
|
|
|
65
62
|
});
|
|
66
63
|
};
|
|
67
64
|
export {
|
|
68
|
-
|
|
65
|
+
S as useCreateQRPHDepositMutation
|
|
69
66
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("@opexa/portal-sdk-core"),c=require("@tanstack/react-query"),u=require("tiny-invariant"),n=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const l=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const i=require("../../utils/queryKeys.js"),Q=require("../services/getSession.js"),d=require("./useSessionQuery.js"),S=(r,e)=>{var t;u(r);const o=l.getQueryClient(),y=d.useSessionQuery();return c.useQuery({...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((t=y.data)==null?void 0:t.status)==="authenticated",queryKey:i.getDepositQueryKey(r),queryFn:async({signal:a})=>{const s=await o.fetchQuery({queryKey:i.getSessionQueryKey(),queryFn:()=>Q.getSession()});return u(s.status==="authenticated"),await q.getDeposit(r,{signal:a,environment:n.ENVIRONMENT,headers:{"Platform-Code":n.PLATFORM_CODE,Authorization:`Bearer ${s.token}`}})}})};exports.useDepositQuery=S;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { getDeposit as n } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as m } from "@tanstack/react-query";
|
|
3
|
+
import s from "tiny-invariant";
|
|
4
|
+
import { PLATFORM_CODE as y, ENVIRONMENT as p } from "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/capitalize.mjs";
|
|
6
|
+
import "../../utils/parseDecimal.mjs";
|
|
7
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
+
import { getQueryClient as Q } from "../../utils/getQueryClient.mjs";
|
|
9
|
+
import "../../utils/isMobile.mjs";
|
|
10
|
+
import { getDepositQueryKey as f, getSessionQueryKey as l } from "../../utils/queryKeys.mjs";
|
|
11
|
+
import { getSession as q } from "../services/getSession.mjs";
|
|
12
|
+
import { useSessionQuery as d } from "./useSessionQuery.mjs";
|
|
13
|
+
const A = (t, e) => {
|
|
14
|
+
var r;
|
|
15
|
+
s(t);
|
|
16
|
+
const u = Q(), i = d();
|
|
17
|
+
return m({
|
|
18
|
+
...e,
|
|
19
|
+
enabled: (e == null ? void 0 : e.enabled) === !1 ? !1 : ((r = i.data) == null ? void 0 : r.status) === "authenticated",
|
|
20
|
+
queryKey: f(t),
|
|
21
|
+
queryFn: async ({ signal: a }) => {
|
|
22
|
+
const o = await u.fetchQuery({
|
|
23
|
+
queryKey: l(),
|
|
24
|
+
queryFn: () => q()
|
|
25
|
+
});
|
|
26
|
+
return s(o.status === "authenticated"), await n(t, {
|
|
27
|
+
signal: a,
|
|
28
|
+
environment: p,
|
|
29
|
+
headers: {
|
|
30
|
+
"Platform-Code": y,
|
|
31
|
+
Authorization: `Bearer ${o.token}`
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
A as useDepositQuery
|
|
39
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DepositRecord, DepositRecordsInput, PaginatedQueryResult } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { InfiniteQuery } from '
|
|
2
|
+
import { InfiniteQuery } from '../../types';
|
|
3
3
|
export declare const useDepositRecordsQuery: InfiniteQuery<PaginatedQueryResult<DepositRecord>, DepositRecordsInput>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("@opexa/portal-sdk-core"),c=require("@tanstack/react-query"),d=require("tiny-invariant"),i=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const Q=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const o=require("../../utils/queryKeys.js"),S=require("../services/getSession.js"),p=require("./useSessionQuery.js"),C=(s,t)=>{var n;const y=Q.getQueryClient(),a=p.useSessionQuery();return c.useInfiniteQuery({...t,enabled:(t==null?void 0:t.enabled)===!1?!1:((n=a.data)==null?void 0:n.status)==="authenticated",queryKey:o.getDepositRecordsQueryKey(s),queryFn:async({pageParam:e,signal:u})=>{const r=await y.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>S.getSession()});return d(r.status==="authenticated"),await q.getDepositRecords({...s,after:e},{signal:u,environment:i.ENVIRONMENT,headers:{"Platform-Code":i.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})},initialPageParam:void 0,getNextPageParam(e){var u,r;if((u=e==null?void 0:e.pageInfo)!=null&&u.hasNextPage)return(r=e==null?void 0:e.pageInfo)==null?void 0:r.endCursor}})};exports.useDepositRecordsQuery=C;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getDepositRecords as m } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useInfiniteQuery as y } from "@tanstack/react-query";
|
|
3
|
+
import a from "tiny-invariant";
|
|
4
|
+
import { PLATFORM_CODE as p, ENVIRONMENT as d } from "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/capitalize.mjs";
|
|
6
|
+
import "../../utils/parseDecimal.mjs";
|
|
7
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
+
import { getQueryClient as f } from "../../utils/getQueryClient.mjs";
|
|
9
|
+
import "../../utils/isMobile.mjs";
|
|
10
|
+
import { getDepositRecordsQueryKey as Q, getSessionQueryKey as c } from "../../utils/queryKeys.mjs";
|
|
11
|
+
import { getSession as q } from "../services/getSession.mjs";
|
|
12
|
+
import { useSessionQuery as h } from "./useSessionQuery.mjs";
|
|
13
|
+
const w = (i, t) => {
|
|
14
|
+
var n;
|
|
15
|
+
const s = f(), u = h();
|
|
16
|
+
return y({
|
|
17
|
+
...t,
|
|
18
|
+
enabled: (t == null ? void 0 : t.enabled) === !1 ? !1 : ((n = u.data) == null ? void 0 : n.status) === "authenticated",
|
|
19
|
+
queryKey: Q(i),
|
|
20
|
+
queryFn: async ({ pageParam: e, signal: o }) => {
|
|
21
|
+
const r = await s.fetchQuery({
|
|
22
|
+
queryKey: c(),
|
|
23
|
+
queryFn: () => q()
|
|
24
|
+
});
|
|
25
|
+
return a(r.status === "authenticated"), await m(
|
|
26
|
+
{ ...i, after: e },
|
|
27
|
+
{
|
|
28
|
+
signal: o,
|
|
29
|
+
environment: d,
|
|
30
|
+
headers: {
|
|
31
|
+
"Platform-Code": p,
|
|
32
|
+
Authorization: `Bearer ${r.token}`
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
},
|
|
37
|
+
initialPageParam: void 0,
|
|
38
|
+
getNextPageParam(e) {
|
|
39
|
+
var o, r;
|
|
40
|
+
if ((o = e == null ? void 0 : e.pageInfo) != null && o.hasNextPage)
|
|
41
|
+
return (r = e == null ? void 0 : e.pageInfo) == null ? void 0 : r.endCursor;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
w as useDepositRecordsQuery
|
|
47
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Query } from '
|
|
1
|
+
import { Query } from '../../types';
|
|
2
2
|
export declare const useDepositsCountQuery: Query<number>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@opexa/portal-sdk-core"),a=require("@tanstack/react-query"),q=require("tiny-invariant"),s=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const c=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const u=require("../../utils/queryKeys.js"),l=require("../services/getSession.js"),Q=require("./useSessionQuery.js"),d=e=>{var r;const n=c.getQueryClient(),o=Q.useSessionQuery();return a.useQuery({...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((r=o.data)==null?void 0:r.status)==="authenticated",queryKey:u.getDepositsCountQueryKey(),queryFn:async({signal:i})=>{const t=await n.fetchQuery({queryKey:u.getSessionQueryKey(),queryFn:()=>l.getSession()});return q(t.status==="authenticated"),await y.getDepositsCount({signal:i,environment:s.ENVIRONMENT,headers:{"Platform-Code":s.PLATFORM_CODE,Authorization:`Bearer ${t.token}`}})}})};exports.useDepositsCountQuery=d;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getDepositsCount as i } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as n } from "@tanstack/react-query";
|
|
3
|
+
import a from "tiny-invariant";
|
|
4
|
+
import { PLATFORM_CODE as m, ENVIRONMENT as y } from "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/capitalize.mjs";
|
|
6
|
+
import "../../utils/parseDecimal.mjs";
|
|
7
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
+
import { getQueryClient as p } from "../../utils/getQueryClient.mjs";
|
|
9
|
+
import "../../utils/isMobile.mjs";
|
|
10
|
+
import { getDepositsCountQueryKey as Q, getSessionQueryKey as d } from "../../utils/queryKeys.mjs";
|
|
11
|
+
import { getSession as f } from "../services/getSession.mjs";
|
|
12
|
+
import { useSessionQuery as l } from "./useSessionQuery.mjs";
|
|
13
|
+
const w = (e) => {
|
|
14
|
+
var t;
|
|
15
|
+
const o = p(), s = l();
|
|
16
|
+
return n({
|
|
17
|
+
...e,
|
|
18
|
+
enabled: (e == null ? void 0 : e.enabled) === !1 ? !1 : ((t = s.data) == null ? void 0 : t.status) === "authenticated",
|
|
19
|
+
queryKey: Q(),
|
|
20
|
+
queryFn: async ({ signal: u }) => {
|
|
21
|
+
const r = await o.fetchQuery({
|
|
22
|
+
queryKey: d(),
|
|
23
|
+
queryFn: () => f()
|
|
24
|
+
});
|
|
25
|
+
return a(r.status === "authenticated"), await i({
|
|
26
|
+
signal: u,
|
|
27
|
+
environment: y,
|
|
28
|
+
headers: {
|
|
29
|
+
"Platform-Code": m,
|
|
30
|
+
Authorization: `Bearer ${r.token}`
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
w as useDepositsCountQuery
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@opexa/portal-sdk-core"),u=require("@tanstack/react-query"),i=require("tiny-invariant"),e=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const c=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const s=require("../../utils/queryKeys.js"),d=require("../services/getSession.js"),y=o=>{const a=c.getQueryClient();return u.useMutation({...o,mutationKey:s.getEndGameSessionMutationKey(),mutationFn:async n=>{const t=await a.fetchQuery({queryKey:s.getSessionQueryKey(),queryFn:()=>d.getSession()});i(t.status==="authenticated"),i(t.status==="authenticated"),e.LEGACY_GAME_PROVIDERS.includes(n.game.provider)?await r.endGameSession__legacy(n.session.id,{environment:e.ENVIRONMENT,headers:{"Platform-Code":e.PLATFORM_CODE,Authorization:`Bearer ${t.token}`}}):await r.endGameSession(n.session.id,{environment:e.ENVIRONMENT,headers:{"Platform-Code":e.PLATFORM_CODE,Authorization:`Bearer ${t.token}`}})}})};exports.useEndGameSessionMutation=y;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
import { endGameSession__legacy as a, endGameSession as m } from "@opexa/portal-sdk-core";
|
|
2
2
|
import { useMutation as u } from "@tanstack/react-query";
|
|
3
3
|
import o from "tiny-invariant";
|
|
4
|
-
import { LEGACY_GAME_PROVIDERS as d, PLATFORM_CODE as i, ENVIRONMENT as r } from "
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
import { getEndGameSessionMutationKey as f, getSessionQueryKey as c } from "../utils/queryKeys.mjs";
|
|
14
|
-
import "../utils/toaster.mjs";
|
|
15
|
-
const R = (n) => {
|
|
4
|
+
import { LEGACY_GAME_PROVIDERS as d, PLATFORM_CODE as i, ENVIRONMENT as r } from "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/capitalize.mjs";
|
|
6
|
+
import "../../utils/parseDecimal.mjs";
|
|
7
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
+
import { getQueryClient as y } from "../../utils/getQueryClient.mjs";
|
|
9
|
+
import "../../utils/isMobile.mjs";
|
|
10
|
+
import { getEndGameSessionMutationKey as f, getSessionQueryKey as p } from "../../utils/queryKeys.mjs";
|
|
11
|
+
import { getSession as c } from "../services/getSession.mjs";
|
|
12
|
+
const K = (n) => {
|
|
16
13
|
const s = y();
|
|
17
14
|
return u({
|
|
18
15
|
...n,
|
|
19
16
|
mutationKey: f(),
|
|
20
17
|
mutationFn: async (t) => {
|
|
21
18
|
const e = await s.fetchQuery({
|
|
22
|
-
queryKey:
|
|
23
|
-
queryFn: () =>
|
|
19
|
+
queryKey: p(),
|
|
20
|
+
queryFn: () => c()
|
|
24
21
|
});
|
|
25
22
|
o(e.status === "authenticated"), o(e.status === "authenticated"), d.includes(t.game.provider) ? await a(t.session.id, {
|
|
26
23
|
environment: r,
|
|
@@ -39,5 +36,5 @@ const R = (n) => {
|
|
|
39
36
|
});
|
|
40
37
|
};
|
|
41
38
|
export {
|
|
42
|
-
|
|
39
|
+
K as useEndGameSessionMutation
|
|
43
40
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@opexa/portal-sdk-core"),c=require("@tanstack/react-query"),u=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const f=require("../../utils/queryKeys.js"),s=(n,t)=>c.useInfiniteQuery({refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,...t,queryKey:f.getGamesQueryKey(n),queryFn:({pageParam:e,signal:r})=>o.getGames({...n,after:e},{signal:r,environment:u.ENVIRONMENT,headers:{"Site-ID":u.SITE_ID,"Platform-ID":u.PLATFORM_ID}}),initialPageParam:void 0,getNextPageParam(e){var r,i;if((r=e==null?void 0:e.pageInfo)!=null&&r.hasNextPage)return(i=e==null?void 0:e.pageInfo)==null?void 0:i.endCursor}});exports.useGamesQuery=s;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { getGames as t } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useInfiniteQuery as i } from "@tanstack/react-query";
|
|
3
|
+
import { PLATFORM_ID as f, SITE_ID as u, ENVIRONMENT as p } from "../../constants/index.mjs";
|
|
4
|
+
import "../../utils/capitalize.mjs";
|
|
5
|
+
import "../../utils/parseDecimal.mjs";
|
|
6
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
7
|
+
import "../../utils/getQueryClient.mjs";
|
|
8
|
+
import "../../utils/isMobile.mjs";
|
|
9
|
+
import { getGamesQueryKey as I } from "../../utils/queryKeys.mjs";
|
|
10
|
+
const E = (o, n) => i({
|
|
11
|
+
refetchOnMount: !1,
|
|
12
|
+
refetchOnReconnect: !1,
|
|
13
|
+
refetchOnWindowFocus: !1,
|
|
14
|
+
...n,
|
|
15
|
+
queryKey: I(o),
|
|
16
|
+
queryFn: ({ pageParam: e, signal: r }) => t(
|
|
17
|
+
{
|
|
18
|
+
...o,
|
|
19
|
+
after: e
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
signal: r,
|
|
23
|
+
environment: p,
|
|
24
|
+
headers: {
|
|
25
|
+
"Site-ID": u,
|
|
26
|
+
"Platform-ID": f
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
initialPageParam: void 0,
|
|
31
|
+
getNextPageParam(e) {
|
|
32
|
+
var r, m;
|
|
33
|
+
if ((r = e == null ? void 0 : e.pageInfo) != null && r.hasNextPage)
|
|
34
|
+
return (m = e == null ? void 0 : e.pageInfo) == null ? void 0 : m.endCursor;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
E as useGamesQuery
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@opexa/portal-sdk-core"),o=require("@tanstack/react-query"),q=require("tiny-invariant"),s=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const c=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const u=require("../../utils/queryKeys.js"),l=require("../services/getSession.js"),Q=require("./useSessionQuery.js"),d=e=>{var r;const n=c.getQueryClient(),a=Q.useSessionQuery();return o.useQuery({...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((r=a.data)==null?void 0:r.status)==="authenticated",queryKey:u.getInstapayBankListQueryKey(),queryFn:async({signal:i})=>{const t=await n.fetchQuery({queryKey:u.getSessionQueryKey(),queryFn:()=>l.getSession()});return q(t.status==="authenticated"),await y.getInstapayBankList({signal:i,environment:s.ENVIRONMENT,headers:{"Platform-Code":s.PLATFORM_CODE,Authorization:`Bearer ${t.token}`}})}})};exports.useInstapayBankListQuery=d;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getInstapayBankList as n } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
3
|
+
import u from "tiny-invariant";
|
|
4
|
+
import { PLATFORM_CODE as y, ENVIRONMENT as m } from "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/capitalize.mjs";
|
|
6
|
+
import "../../utils/parseDecimal.mjs";
|
|
7
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
+
import { getQueryClient as p } from "../../utils/getQueryClient.mjs";
|
|
9
|
+
import "../../utils/isMobile.mjs";
|
|
10
|
+
import { getInstapayBankListQueryKey as Q, getSessionQueryKey as d } from "../../utils/queryKeys.mjs";
|
|
11
|
+
import { getSession as f } from "../services/getSession.mjs";
|
|
12
|
+
import { useSessionQuery as l } from "./useSessionQuery.mjs";
|
|
13
|
+
const S = (e) => {
|
|
14
|
+
var t;
|
|
15
|
+
const s = p(), a = l();
|
|
16
|
+
return i({
|
|
17
|
+
...e,
|
|
18
|
+
enabled: (e == null ? void 0 : e.enabled) === !1 ? !1 : ((t = a.data) == null ? void 0 : t.status) === "authenticated",
|
|
19
|
+
queryKey: Q(),
|
|
20
|
+
queryFn: async ({ signal: o }) => {
|
|
21
|
+
const r = await s.fetchQuery({
|
|
22
|
+
queryKey: d(),
|
|
23
|
+
queryFn: () => f()
|
|
24
|
+
});
|
|
25
|
+
return u(r.status === "authenticated"), await n({
|
|
26
|
+
signal: o,
|
|
27
|
+
environment: m,
|
|
28
|
+
headers: {
|
|
29
|
+
"Platform-Code": y,
|
|
30
|
+
Authorization: `Bearer ${r.token}`
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
S as useInstapayBankListQuery
|
|
38
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Query } from '
|
|
1
|
+
import { Query } from '../../types';
|
|
2
2
|
export declare const useIsMayaSessionValidQuery: Query<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@opexa/portal-sdk-core"),y=require("@tanstack/react-query"),c=require("tiny-invariant"),s=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const q=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const u=require("../../utils/queryKeys.js"),l=require("../services/getSession.js"),d=require("./useSessionQuery.js"),Q=e=>{var r;const n=q.getQueryClient(),a=d.useSessionQuery();return y.useQuery({gcTime:0,staleTime:0,refetchOnMount:!0,refetchOnReconnect:!0,refetchOnWindowFocus:!0,...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((r=a.data)==null?void 0:r.status)==="authenticated",queryKey:u.getIsMayaSessionValidQueryKey(),queryFn:async({signal:i})=>{const t=await n.fetchQuery({queryKey:u.getSessionQueryKey(),queryFn:()=>l.getSession()});c(t.status==="authenticated");try{return await o.validateMayaSession({signal:i,environment:s.ENVIRONMENT,headers:{"Platform-Code":s.PLATFORM_CODE,Authorization:`Bearer ${t.token}`}}),!0}catch{return!1}}})};exports.useIsMayaSessionValidQuery=Q;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { validateMayaSession as n } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
3
|
+
import u from "tiny-invariant";
|
|
4
|
+
import { PLATFORM_CODE as m, ENVIRONMENT as y } from "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/capitalize.mjs";
|
|
6
|
+
import "../../utils/parseDecimal.mjs";
|
|
7
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
+
import { getQueryClient as c } from "../../utils/getQueryClient.mjs";
|
|
9
|
+
import "../../utils/isMobile.mjs";
|
|
10
|
+
import { getIsMayaSessionValidQueryKey as p, getSessionQueryKey as l } from "../../utils/queryKeys.mjs";
|
|
11
|
+
import { getSession as d } from "../services/getSession.mjs";
|
|
12
|
+
import { useSessionQuery as f } from "./useSessionQuery.mjs";
|
|
13
|
+
const I = (e) => {
|
|
14
|
+
var t;
|
|
15
|
+
const o = c(), s = f();
|
|
16
|
+
return i({
|
|
17
|
+
gcTime: 0,
|
|
18
|
+
staleTime: 0,
|
|
19
|
+
refetchOnMount: !0,
|
|
20
|
+
refetchOnReconnect: !0,
|
|
21
|
+
refetchOnWindowFocus: !0,
|
|
22
|
+
...e,
|
|
23
|
+
enabled: (e == null ? void 0 : e.enabled) === !1 ? !1 : ((t = s.data) == null ? void 0 : t.status) === "authenticated",
|
|
24
|
+
queryKey: p(),
|
|
25
|
+
queryFn: async ({ signal: a }) => {
|
|
26
|
+
const r = await o.fetchQuery({
|
|
27
|
+
queryKey: l(),
|
|
28
|
+
queryFn: () => d()
|
|
29
|
+
});
|
|
30
|
+
u(r.status === "authenticated");
|
|
31
|
+
try {
|
|
32
|
+
return await n({
|
|
33
|
+
signal: a,
|
|
34
|
+
environment: y,
|
|
35
|
+
headers: {
|
|
36
|
+
"Platform-Code": m,
|
|
37
|
+
Authorization: `Bearer ${r.token}`
|
|
38
|
+
}
|
|
39
|
+
}), !0;
|
|
40
|
+
} catch {
|
|
41
|
+
return !1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
I as useIsMayaSessionValidQuery
|
|
48
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Jackpot, JackpotsInput, PaginatedQueryResult } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { InfiniteQuery } from '
|
|
2
|
+
import { InfiniteQuery } from '../../types';
|
|
3
3
|
export declare const useJackpotsQuery: InfiniteQuery<PaginatedQueryResult<Jackpot>, JackpotsInput>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@opexa/portal-sdk-core"),i=require("@tanstack/react-query"),u=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const y=require("../../utils/queryKeys.js"),q=(r,t)=>i.useInfiniteQuery({...t,queryKey:y.getJackpotsQueryKey(r),queryFn:({pageParam:e,signal:o})=>n.getJackpots({...r,after:e},{signal:o,environment:u.ENVIRONMENT,headers:{"Platform-Code":u.PLATFORM_CODE}}),initialPageParam:void 0,getNextPageParam(e){if(e!=null&&e.pageInfo.hasNextPage)return e.pageInfo.endCursor}});exports.useJackpotsQuery=q;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { getJackpots as m } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useInfiniteQuery as i } from "@tanstack/react-query";
|
|
3
|
+
import { PLATFORM_CODE as n, ENVIRONMENT as p } from "../../constants/index.mjs";
|
|
4
|
+
import "../../utils/capitalize.mjs";
|
|
5
|
+
import "../../utils/parseDecimal.mjs";
|
|
6
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
7
|
+
import "../../utils/getQueryClient.mjs";
|
|
8
|
+
import "../../utils/isMobile.mjs";
|
|
9
|
+
import { getJackpotsQueryKey as u } from "../../utils/queryKeys.mjs";
|
|
10
|
+
const k = (e, o) => i({
|
|
11
|
+
...o,
|
|
12
|
+
queryKey: u(e),
|
|
13
|
+
queryFn: ({ pageParam: r, signal: t }) => m(
|
|
14
|
+
{ ...e, after: r },
|
|
15
|
+
{
|
|
16
|
+
signal: t,
|
|
17
|
+
environment: p,
|
|
18
|
+
headers: {
|
|
19
|
+
"Platform-Code": n
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
initialPageParam: void 0,
|
|
24
|
+
getNextPageParam(r) {
|
|
25
|
+
if (r != null && r.pageInfo.hasNextPage)
|
|
26
|
+
return r.pageInfo.endCursor;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
k as useJackpotsQuery
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useLocaleInfo: () => import('../../utils').LocaleInfo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");const o=require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const u=require("./usePlatformQuery.js"),t=()=>{var e;const r=u.usePlatformQuery();return o.getLocaleInfo(((e=r.data)==null?void 0:e.timezone)??"Asia/Manila")};exports.useLocaleInfo=t;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../../utils/capitalize.mjs";
|
|
2
|
+
import "../../utils/parseDecimal.mjs";
|
|
3
|
+
import "../../constants/index.mjs";
|
|
4
|
+
import { getLocaleInfo as t } from "../../utils/getLocaleInfo.mjs";
|
|
5
|
+
import "../../utils/getQueryClient.mjs";
|
|
6
|
+
import "../../utils/isMobile.mjs";
|
|
7
|
+
import { usePlatformQuery as e } from "./usePlatformQuery.mjs";
|
|
8
|
+
const u = () => {
|
|
9
|
+
var o;
|
|
10
|
+
const r = e();
|
|
11
|
+
return t(((o = r.data) == null ? void 0 : o.timezone) ?? "Asia/Manila");
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
u as useLocaleInfo
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@opexa/portal-sdk-core"),c=require("@tanstack/react-query"),t=require("tiny-invariant"),u=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const q=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const i=require("../../utils/queryKeys.js"),Q=require("../services/getSession.js"),d=require("./useSessionQuery.js"),g=n=>{var r;const s=q.getQueryClient(),o=d.useSessionQuery();return c.useQuery({enabled:((r=o.data)==null?void 0:r.status)==="authenticated",...n,queryKey:i.getMemberVerificationQueryKey(),queryFn:async({signal:a})=>{const e=await s.fetchQuery({queryKey:i.getSessionQueryKey(),queryFn:()=>Q.getSession()});return t(e.status==="authenticated"),t(e.status==="authenticated"),await y.getMemberVerification({signal:a,environment:u.ENVIRONMENT,headers:{"Platform-Code":u.PLATFORM_CODE,Authorization:`Bearer ${e.token}`}})}})};exports.useMemberVerificationQuery=g;
|