@opexa/portal-components 0.0.12 → 0.0.14
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 +8 -56
- 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/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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getMemberVerification as u } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as a } from "@tanstack/react-query";
|
|
3
|
+
import r 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 { getMemberVerificationQueryKey as f, getSessionQueryKey as p } from "../../utils/queryKeys.mjs";
|
|
11
|
+
import { getSession as Q } from "../services/getSession.mjs";
|
|
12
|
+
import { useSessionQuery as d } from "./useSessionQuery.mjs";
|
|
13
|
+
const S = (o) => {
|
|
14
|
+
var t;
|
|
15
|
+
const i = c(), n = d();
|
|
16
|
+
return a({
|
|
17
|
+
enabled: ((t = n.data) == null ? void 0 : t.status) === "authenticated",
|
|
18
|
+
...o,
|
|
19
|
+
queryKey: f(),
|
|
20
|
+
queryFn: async ({ signal: s }) => {
|
|
21
|
+
const e = await i.fetchQuery({
|
|
22
|
+
queryKey: p(),
|
|
23
|
+
queryFn: () => Q()
|
|
24
|
+
});
|
|
25
|
+
return r(e.status === "authenticated"), r(e.status === "authenticated"), await u({
|
|
26
|
+
signal: s,
|
|
27
|
+
environment: y,
|
|
28
|
+
headers: {
|
|
29
|
+
"Platform-Code": m,
|
|
30
|
+
Authorization: `Bearer ${e.token}`
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
S as useMemberVerificationQuery
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=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"),S=e=>{var t;const n=c.getQueryClient(),i=Q.useSessionQuery();return o.useQuery({...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((t=i.data)==null?void 0:t.status)==="authenticated",queryKey:u.getPaymentSettingsQueryKey(),queryFn:async({signal:y})=>{const r=await n.fetchQuery({queryKey:u.getSessionQueryKey(),queryFn:()=>l.getSession()});return q(r.status==="authenticated"),await a.getPaymentSettings({signal:y,environment:s.ENVIRONMENT,headers:{"Platform-Code":s.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})}})};exports.usePaymentSettingsQuery=S;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getPaymentSettings as a } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
3
|
+
import m from "tiny-invariant";
|
|
4
|
+
import { PLATFORM_CODE as u, 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 { getPaymentSettingsQueryKey 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 v = (e) => {
|
|
14
|
+
var t;
|
|
15
|
+
const o = p(), s = l();
|
|
16
|
+
return i({
|
|
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: n }) => {
|
|
21
|
+
const r = await o.fetchQuery({
|
|
22
|
+
queryKey: d(),
|
|
23
|
+
queryFn: () => f()
|
|
24
|
+
});
|
|
25
|
+
return m(r.status === "authenticated"), await a({
|
|
26
|
+
signal: n,
|
|
27
|
+
environment: y,
|
|
28
|
+
headers: {
|
|
29
|
+
"Platform-Code": u,
|
|
30
|
+
Authorization: `Bearer ${r.token}`
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
v as usePaymentSettingsQuery
|
|
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"),t=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 o=require("../../utils/queryKeys.js"),i=e=>u.useQuery({...e,queryKey:o.getPlatformQueryKey(),queryFn:async()=>await r.getPlatform({headers:{"Platform-Code":t.PLATFORM_CODE}})});exports.usePlatformQuery=i;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getPlatform as o } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as t } from "@tanstack/react-query";
|
|
3
|
+
import { PLATFORM_CODE as e } 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 { getPlatformQueryKey as m } from "../../utils/queryKeys.mjs";
|
|
10
|
+
const l = (r) => t({
|
|
11
|
+
...r,
|
|
12
|
+
queryKey: m(),
|
|
13
|
+
queryFn: async () => await o({
|
|
14
|
+
headers: {
|
|
15
|
+
"Platform-Code": e
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
l as usePlatformQuery
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),n=require("@tanstack/react-query"),i=require("tiny-invariant"),r=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 s=require("../../utils/queryKeys.js"),y=(e,u)=>(i(e),n.useQuery({...u,queryKey:s.getPromoQueryKey(e),queryFn:async({signal:o})=>await t.getPromo(e,{signal:o,environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE}})}));exports.usePromoQuery=y;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getPromo as t } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as e } from "@tanstack/react-query";
|
|
3
|
+
import i from "tiny-invariant";
|
|
4
|
+
import { PLATFORM_CODE as p, ENVIRONMENT as n } from "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/capitalize.mjs";
|
|
6
|
+
import "../../utils/parseDecimal.mjs";
|
|
7
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
+
import "../../utils/getQueryClient.mjs";
|
|
9
|
+
import "../../utils/isMobile.mjs";
|
|
10
|
+
import { getPromoQueryKey as u } from "../../utils/queryKeys.mjs";
|
|
11
|
+
const g = (r, o) => (i(r), e({
|
|
12
|
+
...o,
|
|
13
|
+
queryKey: u(r),
|
|
14
|
+
queryFn: async ({ signal: m }) => await t(r, {
|
|
15
|
+
signal: m,
|
|
16
|
+
environment: n,
|
|
17
|
+
headers: {
|
|
18
|
+
"Platform-Code": p
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
}));
|
|
22
|
+
export {
|
|
23
|
+
g as usePromoQuery
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@opexa/portal-sdk-core"),t=require("@tanstack/react-query"),e=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 s=require("../../utils/queryKeys.js"),i=r=>t.useQuery({...r,queryKey:s.getPromosQueryKey(),queryFn:async({signal:u})=>await o.getPromos({signal:u,environment:e.ENVIRONMENT,headers:{"Platform-Code":e.PLATFORM_CODE}})});exports.usePromosQuery=i;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getPromos as e } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as m } from "@tanstack/react-query";
|
|
3
|
+
import { PLATFORM_CODE as t, ENVIRONMENT as i } 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 { getPromosQueryKey as p } from "../../utils/queryKeys.mjs";
|
|
10
|
+
const O = (r) => m({
|
|
11
|
+
...r,
|
|
12
|
+
queryKey: p(),
|
|
13
|
+
queryFn: async ({ signal: o }) => await e({
|
|
14
|
+
signal: o,
|
|
15
|
+
environment: i,
|
|
16
|
+
headers: {
|
|
17
|
+
"Platform-Code": t
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
O as usePromosQuery
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@opexa/portal-sdk-core"),n=require("@tanstack/react-query"),e=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 o=require("../../utils/queryKeys.js"),u=r=>n.useMutation({...r,mutationKey:o.getSendVerificationCodeMutationKey(),mutationFn:async t=>{await i.sendVerificationCode(t,{environment:e.ENVIRONMENT,headers:{"Platform-Code":e.PLATFORM_CODE}})}});exports.useSendVerificationCodeMutation=u;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { sendVerificationCode as i } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useMutation as r } from "@tanstack/react-query";
|
|
3
|
+
import { PLATFORM_CODE as e, ENVIRONMENT as n } 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 { getSendVerificationCodeMutationKey as m } from "../../utils/queryKeys.mjs";
|
|
10
|
+
const V = (o) => r({
|
|
11
|
+
...o,
|
|
12
|
+
mutationKey: m(),
|
|
13
|
+
mutationFn: async (t) => {
|
|
14
|
+
await i(t, {
|
|
15
|
+
environment: n,
|
|
16
|
+
headers: {
|
|
17
|
+
"Platform-Code": e
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
V as useSendVerificationCodeMutation
|
|
24
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Query, Session } from '
|
|
1
|
+
import { Query, Session } from '../../types';
|
|
2
2
|
export declare const useSessionQuery: Query<Session>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@tanstack/react-query");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const u=require("../../utils/queryKeys.js"),s=require("../services/getSession.js"),i=e=>r.useQuery({staleTime:0,gcTime:0,...e,queryKey:u.getSessionQueryKey(),queryFn:async()=>await s.getSession()});exports.useSessionQuery=i;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useQuery as e } from "@tanstack/react-query";
|
|
2
|
+
import "../../utils/capitalize.mjs";
|
|
3
|
+
import "../../utils/parseDecimal.mjs";
|
|
4
|
+
import "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
6
|
+
import "../../utils/getQueryClient.mjs";
|
|
7
|
+
import "../../utils/isMobile.mjs";
|
|
8
|
+
import { getSessionQueryKey as o } from "../../utils/queryKeys.mjs";
|
|
9
|
+
import { getSession as t } from "../services/getSession.mjs";
|
|
10
|
+
const f = (r) => e({
|
|
11
|
+
staleTime: 0,
|
|
12
|
+
gcTime: 0,
|
|
13
|
+
...r,
|
|
14
|
+
queryKey: o(),
|
|
15
|
+
queryFn: async () => await t()
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
f as useSessionQuery
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@tanstack/react-query");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");const o=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const t=require("../../utils/queryKeys.js"),s=require("../services/signIn.js"),a=r=>{const n=o.getQueryClient();return u.useMutation({...r,mutationKey:t.getSignInMutationKey(),mutationFn:async i=>{const e=await s.signIn(i);return e||await n.invalidateQueries({queryKey:t.getSessionQueryKey()}),e}})};exports.useSignInMutation=a;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useMutation as e } from "@tanstack/react-query";
|
|
2
|
+
import "../../utils/capitalize.mjs";
|
|
3
|
+
import "../../utils/parseDecimal.mjs";
|
|
4
|
+
import "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
6
|
+
import { getQueryClient as n } from "../../utils/getQueryClient.mjs";
|
|
7
|
+
import "../../utils/isMobile.mjs";
|
|
8
|
+
import { getSignInMutationKey as m, getSessionQueryKey as u } from "../../utils/queryKeys.mjs";
|
|
9
|
+
import { signIn as a } from "../services/signIn.mjs";
|
|
10
|
+
const M = (i) => {
|
|
11
|
+
const o = n();
|
|
12
|
+
return e({
|
|
13
|
+
...i,
|
|
14
|
+
mutationKey: m(),
|
|
15
|
+
mutationFn: async (r) => {
|
|
16
|
+
const t = await a(r);
|
|
17
|
+
return t || await o.invalidateQueries({
|
|
18
|
+
queryKey: u()
|
|
19
|
+
}), t;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
M as useSignInMutation
|
|
25
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Mutation } from '
|
|
1
|
+
import { Mutation } from '../../types';
|
|
2
2
|
export declare const useSignOutMutation: Mutation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@tanstack/react-query");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");const i=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const t=require("../../utils/queryKeys.js"),n=require("../services/signOut.js"),s=u=>{const e=i.getQueryClient();return r.useMutation({...u,mutationKey:t.getSignOutMutationKey(),mutationFn:async()=>{await n.signOut(),await e.invalidateQueries({queryKey:t.getSessionQueryKey()}),e.clear()}})};exports.useSignOutMutation=s;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useMutation as e } from "@tanstack/react-query";
|
|
2
|
+
import "../../utils/capitalize.mjs";
|
|
3
|
+
import "../../utils/parseDecimal.mjs";
|
|
4
|
+
import "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
6
|
+
import { getQueryClient as o } from "../../utils/getQueryClient.mjs";
|
|
7
|
+
import "../../utils/isMobile.mjs";
|
|
8
|
+
import { getSignOutMutationKey as r, getSessionQueryKey as n } from "../../utils/queryKeys.mjs";
|
|
9
|
+
import { signOut as u } from "../services/signOut.mjs";
|
|
10
|
+
const K = (i) => {
|
|
11
|
+
const t = o();
|
|
12
|
+
return e({
|
|
13
|
+
...i,
|
|
14
|
+
mutationKey: r(),
|
|
15
|
+
mutationFn: async () => {
|
|
16
|
+
await u(), await t.invalidateQueries({ queryKey: n() }), t.clear();
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
K as useSignOutMutation
|
|
22
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RegisterMemberAccountViaMobileInput } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { Mutation } from '
|
|
2
|
+
import { Mutation } from '../../types';
|
|
3
3
|
export interface SignUpMutationInput extends RegisterMemberAccountViaMobileInput {
|
|
4
4
|
}
|
|
5
5
|
export declare const useSignUpMutation: Mutation<void, SignUpMutationInput>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@opexa/portal-sdk-core"),u=require("@tanstack/react-query"),e=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 n=require("../../utils/queryKeys.js"),o=r=>u.useMutation({...r,mutationKey:n.getSignUpMutationKey(),mutationFn:async t=>await i.registerMemberAccountViaMobile(t,{headers:{environment:e.ENVIRONMENT,"Platform-Code":e.PLATFORM_CODE,...e.BYPASS_RECAPTCHA&&{"Test-Pass":""}}})});exports.useSignUpMutation=o;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { registerMemberAccountViaMobile as r } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useMutation as i } from "@tanstack/react-query";
|
|
3
|
+
import { BYPASS_RECAPTCHA as e, PLATFORM_CODE as m, ENVIRONMENT as n } 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 { getSignUpMutationKey as a } from "../../utils/queryKeys.mjs";
|
|
10
|
+
const C = (t) => i({
|
|
11
|
+
...t,
|
|
12
|
+
mutationKey: a(),
|
|
13
|
+
mutationFn: async (o) => await r(o, {
|
|
14
|
+
headers: {
|
|
15
|
+
environment: n,
|
|
16
|
+
"Platform-Code": m,
|
|
17
|
+
...e && {
|
|
18
|
+
"Test-Pass": ""
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
C as useSignUpMutation
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),i=require("@tanstack/react-query"),e=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 n=require("../../utils/queryKeys.js"),y=r=>i.useQuery({...r,queryKey:n.getSiteQueryKey(),queryFn:async({signal:u})=>await t.getSite(e.SITE_ID,{signal:u,environment:e.ENVIRONMENT,headers:{"Platform-ID":e.PLATFORM_ID}})});exports.useSiteQuery=y;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getSite as t } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as o } from "@tanstack/react-query";
|
|
3
|
+
import { SITE_ID as m, PLATFORM_ID as i, 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 { getSiteQueryKey as u } from "../../utils/queryKeys.mjs";
|
|
10
|
+
const N = (r) => o({
|
|
11
|
+
...r,
|
|
12
|
+
queryKey: u(),
|
|
13
|
+
queryFn: async ({ signal: e }) => await t(m, {
|
|
14
|
+
signal: e,
|
|
15
|
+
environment: p,
|
|
16
|
+
headers: {
|
|
17
|
+
"Platform-ID": i
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
N as useSiteQuery
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@opexa/portal-sdk-core"),t=require("@tanstack/react-query"),e=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 i=require("../../utils/queryKeys.js"),n=r=>t.useQuery({...r,queryKey:i.getTopWinsQueryKey(),queryFn:async()=>await u.getTopWins({headers:{"Platform-Code":e.PLATFORM_CODE},environment:e.ENVIRONMENT})});exports.useTopWinsQuery=n;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getTopWins as o } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as e } from "@tanstack/react-query";
|
|
3
|
+
import { ENVIRONMENT as t, PLATFORM_CODE as m } 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 { getTopWinsQueryKey as i } from "../../utils/queryKeys.mjs";
|
|
10
|
+
const N = (r) => e({
|
|
11
|
+
...r,
|
|
12
|
+
queryKey: i(),
|
|
13
|
+
queryFn: async () => await o({
|
|
14
|
+
headers: {
|
|
15
|
+
"Platform-Code": m
|
|
16
|
+
},
|
|
17
|
+
environment: t
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
N as useTopWinsQuery
|
|
22
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PaginatedQueryResult, Tournament, TournamentsInput } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { InfiniteQuery } from '
|
|
2
|
+
import { InfiniteQuery } from '../../types';
|
|
3
3
|
export declare const useTournamentsQuery: InfiniteQuery<PaginatedQueryResult<Tournament>, TournamentsInput>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@opexa/portal-sdk-core"),y=require("@tanstack/react-query"),o=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 q=require("../../utils/queryKeys.js"),s=(u,t)=>y.useInfiniteQuery({...t,queryKey:q.getTournamentsQueryKey(u),queryFn:({pageParam:e,signal:r})=>i.getTournaments({...u,after:e},{signal:r,environment:o.ENVIRONMENT,headers:{"Platform-Code":o.PLATFORM_CODE}}),initialPageParam:void 0,getNextPageParam(e){var r,n;if((r=e==null?void 0:e.pageInfo)!=null&&r.hasNextPage)return(n=e==null?void 0:e.pageInfo)==null?void 0:n.endCursor}});exports.useTournamentsQuery=s;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { getTournaments as t } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useInfiniteQuery as i } from "@tanstack/react-query";
|
|
3
|
+
import { PLATFORM_CODE 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 { getTournamentsQueryKey as f } from "../../utils/queryKeys.mjs";
|
|
10
|
+
const Q = (o, n) => i({
|
|
11
|
+
...n,
|
|
12
|
+
queryKey: f(o),
|
|
13
|
+
queryFn: ({ pageParam: r, signal: e }) => t(
|
|
14
|
+
{ ...o, after: r },
|
|
15
|
+
{
|
|
16
|
+
signal: e,
|
|
17
|
+
environment: p,
|
|
18
|
+
headers: {
|
|
19
|
+
"Platform-Code": u
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
initialPageParam: void 0,
|
|
24
|
+
getNextPageParam(r) {
|
|
25
|
+
var e, m;
|
|
26
|
+
if ((e = r == null ? void 0 : r.pageInfo) != null && e.hasNextPage)
|
|
27
|
+
return (m = r == null ? void 0 : r.pageInfo) == null ? void 0 : m.endCursor;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
Q as useTournamentsQuery
|
|
32
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PaginatedQueryResult, TransactionRecord, TransactionRecordsInput } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { InfiniteQuery } from '
|
|
2
|
+
import { InfiniteQuery } from '../../types';
|
|
3
3
|
export declare const useTransactionRecordsQuery: InfiniteQuery<PaginatedQueryResult<TransactionRecord>, TransactionRecordsInput>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("@opexa/portal-sdk-core"),d=require("@tanstack/react-query"),i=require("tiny-invariant"),o=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 a=require("../../utils/queryKeys.js"),S=require("../services/getSession.js"),h=require("./useSessionQuery.js"),C=(u,t)=>{var s;const y=Q.getQueryClient(),c=h.useSessionQuery();return d.useInfiniteQuery({...t,enabled:(t==null?void 0:t.enabled)===!1?!1:((s=c.data)==null?void 0:s.status)==="authenticated",queryKey:a.getTransactionRecordsQueryKey(u),queryFn:async({pageParam:e,signal:n})=>{const r=await y.fetchQuery({queryKey:a.getSessionQueryKey(),queryFn:()=>S.getSession()});return i(r.status==="authenticated"),i(r.status==="authenticated"),q.getTransactionRecords({...u,after:e},{signal:n,environment:o.ENVIRONMENT,headers:{"Platform-Code":o.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})},initialPageParam:void 0,getNextPageParam(e){var n,r;if((n=e==null?void 0:e.pageInfo)!=null&&n.hasNextPage)return(r=e==null?void 0:e.pageInfo)==null?void 0:r.endCursor}})};exports.useTransactionRecordsQuery=C;
|
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
import { getTransactionRecords as
|
|
1
|
+
import { getTransactionRecords as m } from "@opexa/portal-sdk-core";
|
|
2
2
|
import { useInfiniteQuery as y } from "@tanstack/react-query";
|
|
3
3
|
import s from "tiny-invariant";
|
|
4
|
-
import { PLATFORM_CODE as p, ENVIRONMENT as d } from "
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import {
|
|
12
|
-
import "../utils/isMobile.mjs";
|
|
13
|
-
import { getTransactionRecordsQueryKey as Q, getSessionQueryKey as h } from "../utils/queryKeys.mjs";
|
|
14
|
-
import "../utils/toaster.mjs";
|
|
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 { getTransactionRecordsQueryKey as c, getSessionQueryKey as Q } from "../../utils/queryKeys.mjs";
|
|
11
|
+
import { getSession as h } from "../services/getSession.mjs";
|
|
15
12
|
import { useSessionQuery as q } from "./useSessionQuery.mjs";
|
|
16
|
-
const
|
|
13
|
+
const A = (n, t) => {
|
|
17
14
|
var i;
|
|
18
|
-
const u =
|
|
15
|
+
const u = f(), a = q();
|
|
19
16
|
return y({
|
|
20
17
|
...t,
|
|
21
|
-
enabled: (t == null ? void 0 : t.enabled) === !1 ? !1 : ((i =
|
|
22
|
-
queryKey:
|
|
18
|
+
enabled: (t == null ? void 0 : t.enabled) === !1 ? !1 : ((i = a.data) == null ? void 0 : i.status) === "authenticated",
|
|
19
|
+
queryKey: c(n),
|
|
23
20
|
queryFn: async ({ pageParam: e, signal: o }) => {
|
|
24
21
|
const r = await u.fetchQuery({
|
|
25
|
-
queryKey:
|
|
26
|
-
queryFn: () =>
|
|
22
|
+
queryKey: Q(),
|
|
23
|
+
queryFn: () => h()
|
|
27
24
|
});
|
|
28
|
-
return s(r.status === "authenticated"), s(r.status === "authenticated"),
|
|
25
|
+
return s(r.status === "authenticated"), s(r.status === "authenticated"), m(
|
|
29
26
|
{ ...n, after: e },
|
|
30
27
|
{
|
|
31
28
|
signal: o,
|
|
@@ -46,5 +43,5 @@ const w = (n, t) => {
|
|
|
46
43
|
});
|
|
47
44
|
};
|
|
48
45
|
export {
|
|
49
|
-
|
|
46
|
+
A as useTransactionRecordsQuery
|
|
50
47
|
};
|
|
@@ -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"),l=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 s=require("../../utils/queryKeys.js"),c=require("../services/getSession.js"),Q=require("./useSessionQuery.js"),d=e=>{var r;const n=q.getQueryClient(),a=Q.useSessionQuery();return y.useQuery({...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((r=a.data)==null?void 0:r.status)==="authenticated",queryKey:s.getWalletQueryKey(),queryFn:async({signal:i})=>{const t=await n.fetchQuery({queryKey:s.getSessionQueryKey(),queryFn:()=>c.getSession()});return l(t.status==="authenticated"),await o.getWallet({signal:i,environment:u.ENVIRONMENT,headers:{"Platform-Code":u.PLATFORM_CODE,Authorization:`Bearer ${t.token}`}})}})};exports.useWalletQuery=d;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getWallet as i } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as u } from "@tanstack/react-query";
|
|
3
|
+
import m from "tiny-invariant";
|
|
4
|
+
import { PLATFORM_CODE as n, 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 l } from "../../utils/getQueryClient.mjs";
|
|
9
|
+
import "../../utils/isMobile.mjs";
|
|
10
|
+
import { getWalletQueryKey as p, getSessionQueryKey as Q } from "../../utils/queryKeys.mjs";
|
|
11
|
+
import { getSession as d } from "../services/getSession.mjs";
|
|
12
|
+
import { useSessionQuery as f } from "./useSessionQuery.mjs";
|
|
13
|
+
const v = (e) => {
|
|
14
|
+
var t;
|
|
15
|
+
const o = l(), s = f();
|
|
16
|
+
return u({
|
|
17
|
+
...e,
|
|
18
|
+
enabled: (e == null ? void 0 : e.enabled) === !1 ? !1 : ((t = s.data) == null ? void 0 : t.status) === "authenticated",
|
|
19
|
+
queryKey: p(),
|
|
20
|
+
queryFn: async ({ signal: a }) => {
|
|
21
|
+
const r = await o.fetchQuery({
|
|
22
|
+
queryKey: Q(),
|
|
23
|
+
queryFn: () => d()
|
|
24
|
+
});
|
|
25
|
+
return m(r.status === "authenticated"), await i({
|
|
26
|
+
signal: a,
|
|
27
|
+
environment: y,
|
|
28
|
+
headers: {
|
|
29
|
+
"Platform-Code": n,
|
|
30
|
+
Authorization: `Bearer ${r.token}`
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
v as useWalletQuery
|
|
38
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PaginatedQueryResult, WithdrawalRecord, WithdrawalRecordsInput } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { InfiniteQuery } from '
|
|
2
|
+
import { InfiniteQuery } from '../../types';
|
|
3
3
|
export declare const useWithdrawalRecordsQuery: InfiniteQuery<PaginatedQueryResult<WithdrawalRecord>, WithdrawalRecordsInput>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@opexa/portal-sdk-core"),q=require("@tanstack/react-query"),i=require("tiny-invariant"),o=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 a=require("../../utils/queryKeys.js"),h=require("../services/getSession.js"),l=require("./useSessionQuery.js"),S=(n,t)=>{var s;const y=Q.getQueryClient(),d=l.useSessionQuery();return q.useInfiniteQuery({...t,enabled:(t==null?void 0:t.enabled)===!1?!1:((s=d.data)==null?void 0:s.status)==="authenticated",queryKey:a.getWithdrawalRecordsQueryKey(n),queryFn:async({pageParam:e,signal:u})=>{const r=await y.fetchQuery({queryKey:a.getSessionQueryKey(),queryFn:()=>h.getSession()});return i(r.status==="authenticated"),i(r.status==="authenticated"),await c.getWithdrawalRecords({...n,after:e},{signal:u,environment:o.ENVIRONMENT,headers:{"Platform-Code":o.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.useWithdrawalRecordsQuery=S;
|