@opexa/portal-components 0.0.28 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/hooks/index.js +54 -54
- package/dist/client/hooks/useAccountQuery.js +4 -4
- package/dist/client/hooks/useAuthenticateMutation.js +2 -2
- package/dist/client/hooks/useAvailablePromosQuery.js +4 -4
- package/dist/client/hooks/useBetRecordsQuery.js +4 -4
- package/dist/client/hooks/useBonusesQuery.js +4 -4
- package/dist/client/hooks/useCashbacksQuery.js +2 -2
- package/dist/client/hooks/useCreateGCashDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateGameSessionMutation.js +3 -3
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +3 -3
- package/dist/client/hooks/useDepositQuery.js +4 -4
- package/dist/client/hooks/useDepositRecordsQuery.js +4 -4
- package/dist/client/hooks/useDepositsCountQuery.js +4 -4
- package/dist/client/hooks/useDisclosure.js +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.js +3 -3
- package/dist/client/hooks/useFavoriteGamesQuery.js +4 -4
- package/dist/client/hooks/useGamesQuery.js +2 -2
- package/dist/client/hooks/useInstapayBankListQuery.js +4 -4
- package/dist/client/hooks/useIsMayaSessionValidQuery.js +4 -4
- package/dist/client/hooks/useJackpotPayoutsQuery.js +2 -2
- package/dist/client/hooks/useJackpotsQuery.js +2 -2
- package/dist/client/hooks/useLocaleInfo.js +2 -2
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +3 -3
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +3 -3
- package/dist/client/hooks/useMemberVerificationQuery.js +4 -4
- package/dist/client/hooks/useMessagesQuery.js +4 -4
- package/dist/client/hooks/useMobileNumberParser.js +1 -1
- package/dist/client/hooks/usePaymentSettingsQuery.js +4 -4
- package/dist/client/hooks/usePlatformQuery.js +2 -2
- package/dist/client/hooks/useProfileCompletionQuery.js +4 -4
- package/dist/client/hooks/usePromoQuery.js +2 -2
- package/dist/client/hooks/usePromosQuery.js +2 -2
- package/dist/client/hooks/useSendVerificationCodeMutation.js +2 -2
- package/dist/client/hooks/useSessionQuery.js +2 -2
- package/dist/client/hooks/useSignInMutation.js +2 -2
- package/dist/client/hooks/useSignOutMutation.js +2 -2
- package/dist/client/hooks/useSignUpMutation.js +2 -2
- package/dist/client/hooks/useTopWinsQuery.js +2 -2
- package/dist/client/hooks/useTournamentsQuery.js +2 -2
- package/dist/client/hooks/useTransactionRecordsQuery.js +4 -4
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +3 -3
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +4 -4
- package/dist/client/hooks/useWalletQuery.js +4 -4
- package/dist/client/hooks/useWithdrawalRecordsQuery.js +4 -4
- package/dist/client/services/authenticate.js +1 -1
- package/dist/client/services/index.js +4 -4
- package/dist/client/services/signIn.js +1 -1
- package/dist/client/utils/createRecipeContext.jsx +1 -1
- package/dist/client/utils/index.js +1 -1
- package/dist/components/Account/Account.jsx +5 -5
- package/dist/components/AccountInfo/AccountInfo.jsx +3 -3
- package/dist/components/AccountSecurity/AccountSecurity.jsx +3 -3
- package/dist/components/Banner/Banner.jsx +1 -1
- package/dist/components/BetRecords/BetRecords.jsx +4 -4
- package/dist/components/Bonus/Bonus.client.jsx +2 -2
- package/dist/components/Bonuses/Bonuses.jsx +2 -2
- package/dist/components/DepositWithdrawal/AmountChoices.jsx +3 -3
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.jsx +3 -3
- package/dist/components/DepositWithdrawal/Deposit/Deposit.jsx +3 -3
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.jsx +5 -5
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.jsx +5 -5
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.jsx +5 -5
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx +4 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.jsx +4 -4
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.jsx +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.jsx +2 -2
- package/dist/components/DepositWithdrawal/DepositWithdrawal.jsx +4 -4
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.jsx +1 -1
- package/dist/components/DepositWithdrawal/MayaSessionExpired.jsx +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.jsx +4 -4
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.jsx +3 -3
- package/dist/components/Disclaimer/Disclaimer.jsx +1 -1
- package/dist/components/Disclaimer/useDisclaimer.jsx +2 -2
- package/dist/components/FavoriteGames/FavoriteGames.client.jsx +5 -5
- package/dist/components/FavoriteGames/FavoriteGames.jsx +1 -1
- package/dist/components/GameLaunch/GameLaunch.jsx +3 -3
- package/dist/components/GameLaunch/GameLaunchTrigger.jsx +2 -2
- package/dist/components/GameProviders/GameProviders.jsx +2 -2
- package/dist/components/Games/Games.client.jsx +4 -4
- package/dist/components/Games/Games.jsx +1 -1
- package/dist/components/GamesSearch/GamesSearch.jsx +4 -4
- package/dist/components/GamesSearch/GamesSearchTrigger.jsx +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.client.jsx +3 -3
- package/dist/components/JackpotCounter/JackpotCounter.jsx +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.jsx +4 -4
- package/dist/components/Jackpots/JackpotGameProviders.jsx +2 -2
- package/dist/components/Jackpots/JackpotItemDesktop.jsx +2 -2
- package/dist/components/Jackpots/JackpotItemMobile.jsx +3 -3
- package/dist/components/Jackpots/JackpotRules.jsx +2 -2
- package/dist/components/Jackpots/Jackpots.jsx +1 -1
- package/dist/components/Jackpots/useJackpotItemData.jsx +3 -3
- package/dist/components/KYC/KYC.jsx +2 -2
- package/dist/components/KYC/KYCTrigger.jsx +1 -1
- package/dist/components/KYC/Step1.jsx +1 -1
- package/dist/components/KYC/Step2.jsx +2 -2
- package/dist/components/KYC/Step3.jsx +2 -2
- package/dist/components/KYC/StepIndicator.jsx +1 -1
- package/dist/components/KYC/UploadDocument.jsx +2 -2
- package/dist/components/KYC/UploadSelfie.jsx +2 -2
- package/dist/components/KYC/useKYC.js +1 -1
- package/dist/components/Messages/MessageItem.jsx +2 -2
- package/dist/components/Messages/MessagePopup.jsx +4 -4
- package/dist/components/Messages/Messages.jsx +3 -3
- package/dist/components/Messages/MessagesTrigger.jsx +1 -1
- package/dist/components/Messages/utils.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.client.jsx +4 -4
- package/dist/components/PortalProvider/PortalProvider.jsx +2 -2
- package/dist/components/Promo/PromoContent.jsx +2 -2
- package/dist/components/Promos/PromoCarousel.jsx +3 -3
- package/dist/components/Promos/PromoGrid.jsx +2 -2
- package/dist/components/Promos/PromoItem.jsx +1 -1
- package/dist/components/Protected/Protected.jsx +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.jsx +2 -2
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.jsx +2 -2
- package/dist/components/Quests/WageringQuest/WageringQuest.jsx +2 -2
- package/dist/components/Quests/WageringQuest/WageringQuestModal.jsx +2 -2
- package/dist/components/SignIn/SignIn.jsx +3 -3
- package/dist/components/SignIn/SignInForm.jsx +4 -4
- package/dist/components/SignIn/SignInTrigger.jsx +1 -1
- package/dist/components/SignUp/SignUp.jsx +3 -3
- package/dist/components/SignUp/SignUpForm.jsx +4 -4
- package/dist/components/SignUp/SignUpTrigger.jsx +1 -1
- package/dist/components/TopWins/TopWins.client.jsx +2 -2
- package/dist/components/TopWins/TopWins.jsx +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.client.jsx +3 -3
- package/dist/components/TournamentCounter/TournamentCounter.jsx +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.jsx +3 -3
- package/dist/components/Tournaments/TournamentGameProviders.jsx +2 -2
- package/dist/components/Tournaments/TournamentItem.jsx +3 -3
- package/dist/components/Tournaments/TournamentItemMobile.jsx +4 -4
- package/dist/components/Tournaments/TournamentRules.jsx +2 -2
- package/dist/components/Tournaments/Tournaments.jsx +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.jsx +4 -4
- package/dist/components/TransactionRecords/TableFilters.jsx +4 -4
- package/dist/components/TransactionRecords/TransactionRecords.jsx +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.jsx +4 -4
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.jsx +4 -4
- package/dist/components/index.js +32 -32
- package/dist/handlers.js +1 -1
- package/dist/middleware.js +1 -1
- package/dist/server/services/authenticate.js +1 -1
- package/dist/server/services/getSession.js +1 -1
- package/dist/server/services/index.js +4 -4
- package/dist/server/services/signIn.js +1 -1
- package/dist/server/services/signOut.js +1 -1
- package/dist/server/utils/index.js +24 -24
- package/dist/server/utils/prefetchAccountQuery.js +3 -3
- package/dist/server/utils/prefetchAvailablePromosQuery.js +3 -3
- package/dist/server/utils/prefetchBetRecordsQuery.js +3 -3
- package/dist/server/utils/prefetchBonusesQuery.js +3 -3
- package/dist/server/utils/prefetchCashbacksQuery.js +2 -2
- package/dist/server/utils/prefetchDepositQuery.js +3 -3
- package/dist/server/utils/prefetchDepositRecordsQuery.js +3 -3
- package/dist/server/utils/prefetchDepositsCountQuery.js +3 -3
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +3 -3
- package/dist/server/utils/prefetchGamesQuery.js +2 -2
- package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -3
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +3 -3
- package/dist/server/utils/prefetchJackpotsQuery.js +2 -2
- package/dist/server/utils/prefetchMemberVerificationQuery.js +3 -3
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +3 -3
- package/dist/server/utils/prefetchPlatformQuery.js +2 -2
- package/dist/server/utils/prefetchProfileCompletionQuery.js +3 -3
- package/dist/server/utils/prefetchPromoQuery.js +2 -2
- package/dist/server/utils/prefetchPromosQuery.js +2 -2
- package/dist/server/utils/prefetchSessionQuery.js +2 -2
- package/dist/server/utils/prefetchTopWinsQuery.js +2 -2
- package/dist/server/utils/prefetchTournamentsQuery.js +2 -2
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +3 -3
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +3 -3
- package/dist/server/utils/prefetchWalletQuery.js +3 -3
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +3 -3
- package/dist/third-parties/index.js +2 -2
- package/dist/ui/AlertDialog/AlertDialog.jsx +2 -2
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/Avatar/Avatar.jsx +2 -2
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Badge/Badge.jsx +3 -3
- package/dist/ui/Badge/badge.recipe.js +2 -2
- package/dist/ui/Button/Button.jsx +2 -2
- package/dist/ui/Checkbox/Checkbox.jsx +2 -2
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Clipboard/Clipboard.jsx +2 -2
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Collapsible/Collapsible.jsx +2 -2
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -1
- package/dist/ui/Combobox/Combobox.jsx +2 -2
- package/dist/ui/Combobox/combobox.recipe.js +1 -1
- package/dist/ui/DatePicker/DatePicker.jsx +2 -2
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/Dialog/Dialog.jsx +2 -2
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Drawer/Drawer.jsx +2 -2
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Field/Field.jsx +2 -2
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/IconButton/IconButton.jsx +2 -2
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/NumberInput/NumberInput.jsx +2 -2
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/PasswordInput/PasswordInput.jsx +2 -2
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -1
- package/dist/ui/PinInput/PinInput.jsx +2 -2
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/Popover/Popover.jsx +2 -2
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Progress/Progress.jsx +2 -2
- package/dist/ui/Progress/progress.recipe.js +1 -1
- package/dist/ui/SegmentGroup/SegmentGroup.jsx +2 -2
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/Select/Select.jsx +2 -2
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Table/Table.jsx +2 -2
- package/dist/ui/Table/table.recipe.js +2 -2
- package/dist/ui/Tabs/Tabs.jsx +2 -2
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/index.js +24 -24
- package/dist/utils/formatNumber.js +1 -1
- package/dist/utils/getGameImageUrl.js +1 -1
- package/dist/utils/index.js +11 -11
- package/package.json +2 -7
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
export * from './useAccountQuery';
|
|
2
|
-
export * from './useAuthenticateMutation';
|
|
3
|
-
export * from './useAvailablePromosQuery';
|
|
4
|
-
export * from './useBetRecordsQuery';
|
|
5
|
-
export * from './useBonusesQuery';
|
|
6
|
-
export * from './useCashbacksQuery';
|
|
7
|
-
export * from './useControllableState';
|
|
8
|
-
export * from './useCooldown';
|
|
9
|
-
export * from './useCreateGameSessionMutation';
|
|
10
|
-
export * from './useCreateGCashDepositMutation';
|
|
11
|
-
export * from './useCreateGCashWithdrawalMutation';
|
|
12
|
-
export * from './useCreateInstapayWithdrawalMutation';
|
|
13
|
-
export * from './useCreateMayaAppDepositMutation';
|
|
14
|
-
export * from './useCreateMayaAppWithdrawalMutation';
|
|
15
|
-
export * from './useCreateMayaDepositMutation';
|
|
16
|
-
export * from './useCreateMayaWithdrawalMutation';
|
|
17
|
-
export * from './useCreateOnlineBankDepositMutation';
|
|
18
|
-
export * from './useCreateQRPHDepositMutation';
|
|
19
|
-
export * from './useDepositQuery';
|
|
20
|
-
export * from './useDepositRecordsQuery';
|
|
21
|
-
export * from './useDepositsCountQuery';
|
|
22
|
-
export * from './useDisclosure';
|
|
23
|
-
export * from './useEndGameSessionMutation';
|
|
24
|
-
export * from './useFavoriteGamesQuery';
|
|
25
|
-
export * from './useGamesQuery';
|
|
26
|
-
export * from './useGlobalStore';
|
|
27
|
-
export * from './useInfiniteQueryHelper';
|
|
28
|
-
export * from './useInstapayBankListQuery';
|
|
29
|
-
export * from './useIsMayaSessionValidQuery';
|
|
30
|
-
export * from './useJackpotsQuery';
|
|
31
|
-
export * from './useLocaleInfo';
|
|
32
|
-
export * from './useMarkGameAsFavoriteMutation';
|
|
33
|
-
export * from './useMarkMessageAsReadMutation';
|
|
34
|
-
export * from './useMemberVerificationQuery';
|
|
35
|
-
export * from './useMessagesQuery';
|
|
36
|
-
export * from './useMobileNumberParser';
|
|
37
|
-
export * from './useOnMMA';
|
|
38
|
-
export * from './usePaymentSettingsQuery';
|
|
39
|
-
export * from './usePlatformQuery';
|
|
40
|
-
export * from './useProfileCompletionQuery';
|
|
41
|
-
export * from './usePromoQuery';
|
|
42
|
-
export * from './usePromosQuery';
|
|
43
|
-
export * from './useSendVerificationCodeMutation';
|
|
44
|
-
export * from './useSessionQuery';
|
|
45
|
-
export * from './useSignInMutation';
|
|
46
|
-
export * from './useSignOutMutation';
|
|
47
|
-
export * from './useSignUpMutation';
|
|
48
|
-
export * from './useTopWinsQuery';
|
|
49
|
-
export * from './useTournamentsQuery';
|
|
50
|
-
export * from './useTransactionRecordsQuery';
|
|
51
|
-
export * from './useUnmarkGameAsFavoriteMutation';
|
|
52
|
-
export * from './useUnreadMessagesCountQuery';
|
|
53
|
-
export * from './useWalletQuery';
|
|
54
|
-
export * from './useWithdrawalRecordsQuery';
|
|
1
|
+
export * from './useAccountQuery.js';
|
|
2
|
+
export * from './useAuthenticateMutation.js';
|
|
3
|
+
export * from './useAvailablePromosQuery.js';
|
|
4
|
+
export * from './useBetRecordsQuery.js';
|
|
5
|
+
export * from './useBonusesQuery.js';
|
|
6
|
+
export * from './useCashbacksQuery.js';
|
|
7
|
+
export * from './useControllableState.js';
|
|
8
|
+
export * from './useCooldown.js';
|
|
9
|
+
export * from './useCreateGameSessionMutation.js';
|
|
10
|
+
export * from './useCreateGCashDepositMutation.js';
|
|
11
|
+
export * from './useCreateGCashWithdrawalMutation.js';
|
|
12
|
+
export * from './useCreateInstapayWithdrawalMutation.js';
|
|
13
|
+
export * from './useCreateMayaAppDepositMutation.js';
|
|
14
|
+
export * from './useCreateMayaAppWithdrawalMutation.js';
|
|
15
|
+
export * from './useCreateMayaDepositMutation.js';
|
|
16
|
+
export * from './useCreateMayaWithdrawalMutation.js';
|
|
17
|
+
export * from './useCreateOnlineBankDepositMutation.js';
|
|
18
|
+
export * from './useCreateQRPHDepositMutation.js';
|
|
19
|
+
export * from './useDepositQuery.js';
|
|
20
|
+
export * from './useDepositRecordsQuery.js';
|
|
21
|
+
export * from './useDepositsCountQuery.js';
|
|
22
|
+
export * from './useDisclosure.js';
|
|
23
|
+
export * from './useEndGameSessionMutation.js';
|
|
24
|
+
export * from './useFavoriteGamesQuery.js';
|
|
25
|
+
export * from './useGamesQuery.js';
|
|
26
|
+
export * from './useGlobalStore.js';
|
|
27
|
+
export * from './useInfiniteQueryHelper.js';
|
|
28
|
+
export * from './useInstapayBankListQuery.js';
|
|
29
|
+
export * from './useIsMayaSessionValidQuery.js';
|
|
30
|
+
export * from './useJackpotsQuery.js';
|
|
31
|
+
export * from './useLocaleInfo.js';
|
|
32
|
+
export * from './useMarkGameAsFavoriteMutation.js';
|
|
33
|
+
export * from './useMarkMessageAsReadMutation.js';
|
|
34
|
+
export * from './useMemberVerificationQuery.js';
|
|
35
|
+
export * from './useMessagesQuery.js';
|
|
36
|
+
export * from './useMobileNumberParser.js';
|
|
37
|
+
export * from './useOnMMA.js';
|
|
38
|
+
export * from './usePaymentSettingsQuery.js';
|
|
39
|
+
export * from './usePlatformQuery.js';
|
|
40
|
+
export * from './useProfileCompletionQuery.js';
|
|
41
|
+
export * from './usePromoQuery.js';
|
|
42
|
+
export * from './usePromosQuery.js';
|
|
43
|
+
export * from './useSendVerificationCodeMutation.js';
|
|
44
|
+
export * from './useSessionQuery.js';
|
|
45
|
+
export * from './useSignInMutation.js';
|
|
46
|
+
export * from './useSignOutMutation.js';
|
|
47
|
+
export * from './useSignUpMutation.js';
|
|
48
|
+
export * from './useTopWinsQuery.js';
|
|
49
|
+
export * from './useTournamentsQuery.js';
|
|
50
|
+
export * from './useTransactionRecordsQuery.js';
|
|
51
|
+
export * from './useUnmarkGameAsFavoriteMutation.js';
|
|
52
|
+
export * from './useUnreadMessagesCountQuery.js';
|
|
53
|
+
export * from './useWalletQuery.js';
|
|
54
|
+
export * from './useWithdrawalRecordsQuery.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getMemberAccount } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getAccountQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getAccountQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useAccountQuery = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query';
|
|
2
|
-
import { getAuthenticateMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
3
|
-
import { authenticate } from '../services';
|
|
2
|
+
import { getAuthenticateMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
3
|
+
import { authenticate } from '../services/index.js';
|
|
4
4
|
export const useAuthenticateMutation = (config) => {
|
|
5
5
|
const queryClient = getQueryClient();
|
|
6
6
|
return useMutation({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getAvailablePromos, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getAvailablePromosQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getAvailablePromosQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useAvailablePromosQuery = (input, config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getBetRecords, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useInfiniteQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getBetRecordsQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getBetRecordsQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useBetRecordsQuery = (input, config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getBonuses } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getBonusesQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getBonusesQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useBonusesQuery = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCashbacks } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
4
|
-
import { getCashbacksQueryKey } from '../../utils';
|
|
3
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
4
|
+
import { getCashbacksQueryKey } from '../../utils/index.js';
|
|
5
5
|
export const useCashbacksQuery = (config) => {
|
|
6
6
|
return useQuery({
|
|
7
7
|
...config,
|
|
@@ -2,9 +2,9 @@ import { createGCashDeposit, getDeposit, } from '@opexa/portal-sdk-core';
|
|
|
2
2
|
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
3
3
|
import { useMutation } from '@tanstack/react-query';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { createPoll, getCreateGCashDepositMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
7
|
-
import { getSession } from '../services';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { createPoll, getCreateGCashDepositMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
|
+
import { getSession } from '../services/index.js';
|
|
8
8
|
export const useCreateGCashDepositMutation = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const mutation = useMutation({
|
|
@@ -2,9 +2,9 @@ import { createGCashWithdrawal, } from '@opexa/portal-sdk-core';
|
|
|
2
2
|
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
3
3
|
import { useMutation } from '@tanstack/react-query';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { getCreateGCashWithdrawalMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
7
|
-
import { getSession } from '../services';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { getCreateGCashWithdrawalMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
|
+
import { getSession } from '../services/index.js';
|
|
8
8
|
export const useCreateGCashWithdrawalMutation = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const mutation = useMutation({
|
|
@@ -2,9 +2,9 @@ import { createGameSession, createGameSession__legacy, getGameSession, getGameSe
|
|
|
2
2
|
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
3
3
|
import { useMutation } from '@tanstack/react-query';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { ENVIRONMENT, LEGACY_GAME_PROVIDERS, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { createPoll, getCreateGameSessionMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
7
|
-
import { getSession } from '../services';
|
|
5
|
+
import { ENVIRONMENT, LEGACY_GAME_PROVIDERS, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { createPoll, getCreateGameSessionMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
|
+
import { getSession } from '../services/index.js';
|
|
8
8
|
export const useCreateGameSessionMutation = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
return useMutation({
|
|
@@ -2,9 +2,9 @@ import { createAIOInstapayWithdrawal, } from '@opexa/portal-sdk-core';
|
|
|
2
2
|
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
3
3
|
import { useMutation } from '@tanstack/react-query';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { getCreateInstapayWithdrawalMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
7
|
-
import { getSession } from '../services';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { getCreateInstapayWithdrawalMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
|
+
import { getSession } from '../services/index.js';
|
|
8
8
|
export const useCreateInstapayWithdrawalMutation = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const mutation = useMutation({
|
|
@@ -2,9 +2,9 @@ import { createMayaAppDeposit, getDeposit, } from '@opexa/portal-sdk-core';
|
|
|
2
2
|
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
3
3
|
import { useMutation } from '@tanstack/react-query';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { createPoll, getCreateMayaAppDepositMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
7
|
-
import { getSession } from '../services';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { createPoll, getCreateMayaAppDepositMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
|
+
import { getSession } from '../services/index.js';
|
|
8
8
|
export const useCreateMayaAppDepositMutation = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const mutation = useMutation({
|
|
@@ -2,9 +2,9 @@ import { createMayaAppWithdrawal, } from '@opexa/portal-sdk-core';
|
|
|
2
2
|
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
3
3
|
import { useMutation } from '@tanstack/react-query';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { getCreateMayaAppWithdrawalMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
7
|
-
import { getSession } from '../services';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { getCreateMayaAppWithdrawalMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
|
+
import { getSession } from '../services/index.js';
|
|
8
8
|
export const useCreateMayaAppWithdrawalMutation = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const mutation = useMutation({
|
|
@@ -2,9 +2,9 @@ import { createMayaDeposit, getDeposit, } from '@opexa/portal-sdk-core';
|
|
|
2
2
|
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
3
3
|
import { useMutation } from '@tanstack/react-query';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { createPoll, getCreateMayaDepositMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
7
|
-
import { getSession } from '../services';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { createPoll, getCreateMayaDepositMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
|
+
import { getSession } from '../services/index.js';
|
|
8
8
|
export const useCreateMayaDepositMutation = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const mutation = useMutation({
|
|
@@ -2,9 +2,9 @@ import { createMayaWithdrawal, } from '@opexa/portal-sdk-core';
|
|
|
2
2
|
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
3
3
|
import { useMutation } from '@tanstack/react-query';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { getCreateMayaWithdrawalMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
7
|
-
import { getSession } from '../services';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { getCreateMayaWithdrawalMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
|
+
import { getSession } from '../services/index.js';
|
|
8
8
|
export const useCreateMayaWithdrawalMutation = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const mutation = useMutation({
|
|
@@ -2,9 +2,9 @@ import { createAIOOnlineBankDeposit, getDeposit, } from '@opexa/portal-sdk-core'
|
|
|
2
2
|
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
3
3
|
import { useMutation } from '@tanstack/react-query';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { createPoll, getCreateOnlineBankDepositMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
7
|
-
import { getSession } from '../services';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { createPoll, getCreateOnlineBankDepositMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
|
+
import { getSession } from '../services/index.js';
|
|
8
8
|
export const useCreateOnlineBankDepositMutation = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const mutation = useMutation({
|
|
@@ -2,9 +2,9 @@ import { createAIOQRPHDeposit, getDeposit, } from '@opexa/portal-sdk-core';
|
|
|
2
2
|
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
3
3
|
import { useMutation } from '@tanstack/react-query';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { createPoll, getCreateQRPHDepositMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
7
|
-
import { getSession } from '../services';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { createPoll, getCreateQRPHDepositMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
|
+
import { getSession } from '../services/index.js';
|
|
8
8
|
export const useCreateQRPHDepositMutation = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const mutation = useMutation({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getDeposit } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getDepositQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getDepositQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useDepositQuery = (id, config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getDepositRecords, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useInfiniteQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getDepositRecordsQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getDepositRecordsQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useDepositRecordsQuery = (input, config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getDepositsCount } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getDepositsCountQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getDepositsCountQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useDepositsCountQuery = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { endGameSession, endGameSession__legacy, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useMutation } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, LEGACY_GAME_PROVIDERS, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getEndGameSessionMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
4
|
+
import { ENVIRONMENT, LEGACY_GAME_PROVIDERS, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getEndGameSessionMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
7
|
export const useEndGameSessionMutation = (config) => {
|
|
8
8
|
const queryClient = getQueryClient();
|
|
9
9
|
return useMutation({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getFavoriteGames } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getFavoriteGamesQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getFavoriteGamesQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useFavoriteGamesQuery = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getGames, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useInfiniteQuery } from '@tanstack/react-query';
|
|
3
|
-
import { ENVIRONMENT, PLATFORM_ID, SITE_ID } from '../../constants';
|
|
4
|
-
import { getGamesQueryKey } from '../../utils';
|
|
3
|
+
import { ENVIRONMENT, PLATFORM_ID, SITE_ID } from '../../constants/index.js';
|
|
4
|
+
import { getGamesQueryKey } from '../../utils/index.js';
|
|
5
5
|
export const useGamesQuery = (input, config) => {
|
|
6
6
|
return useInfiniteQuery({
|
|
7
7
|
refetchOnMount: false,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getInstapayBankList } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getInstapayBankListQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getInstapayBankListQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useInstapayBankListQuery = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { validateMayaSession } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getIsMayaSessionValidQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getIsMayaSessionValidQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useIsMayaSessionValidQuery = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getJackpotPayouts } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useInfiniteQuery } from '@tanstack/react-query';
|
|
3
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
4
|
-
import { getJackpotPayoutsQueryKey } from '../../utils';
|
|
3
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
4
|
+
import { getJackpotPayoutsQueryKey } from '../../utils/index.js';
|
|
5
5
|
export const useJackpotPayoutsQuery = (input, config) => {
|
|
6
6
|
const query = useInfiniteQuery({
|
|
7
7
|
...config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getJackpots, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useInfiniteQuery } from '@tanstack/react-query';
|
|
3
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
4
|
-
import { getJackpotsQueryKey } from '../../utils';
|
|
3
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
4
|
+
import { getJackpotsQueryKey } from '../../utils/index.js';
|
|
5
5
|
export const useJackpotsQuery = (input, config) => {
|
|
6
6
|
const query = useInfiniteQuery({
|
|
7
7
|
...config,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getLocaleInfo } from '../../utils';
|
|
2
|
-
import { usePlatformQuery } from './usePlatformQuery';
|
|
1
|
+
import { getLocaleInfo } from '../../utils/index.js';
|
|
2
|
+
import { usePlatformQuery } from './usePlatformQuery.js';
|
|
3
3
|
export const useLocaleInfo = () => {
|
|
4
4
|
const query = usePlatformQuery();
|
|
5
5
|
return getLocaleInfo(query.data?.timezone ?? 'Asia/Manila');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { markGameAsFavorite } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useMutation } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { getSession } from '../../client/services';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { getFavoriteGamesQueryKey, getGamesQueryKey, getMarkGameAsFavoriteMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
4
|
+
import { getSession } from '../../client/services/index.js';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { getFavoriteGamesQueryKey, getGamesQueryKey, getMarkGameAsFavoriteMutationKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
7
7
|
export const useMarkGameAsFavoriteMutation = (config) => {
|
|
8
8
|
const queryClient = getQueryClient();
|
|
9
9
|
const mutation = useMutation({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { markMessageAsRead } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useMutation } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { getSession } from '../../client/services';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { getMarkMessageAsReadMutationKey, getMessagesQueryKey, getQueryClient, getSessionQueryKey, getUnreadMessagesCountQueryKey, } from '../../utils';
|
|
4
|
+
import { getSession } from '../../client/services/index.js';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { getMarkMessageAsReadMutationKey, getMessagesQueryKey, getQueryClient, getSessionQueryKey, getUnreadMessagesCountQueryKey, } from '../../utils/index.js';
|
|
7
7
|
export const useMarkMessageAsReadMutation = (config) => {
|
|
8
8
|
const queryClient = getQueryClient();
|
|
9
9
|
const mutation = useMutation({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getMemberVerification, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getMemberVerificationQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getMemberVerificationQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useMemberVerificationQuery = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getMessages, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useInfiniteQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getMessagesQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getMessagesQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useMessagesQuery = (input, config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getPaymentSettings, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getPaymentSettingsQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getPaymentSettingsQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const usePaymentSettingsQuery = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPlatform } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import { PLATFORM_CODE } from '../../constants';
|
|
4
|
-
import { getPlatformQueryKey } from '../../utils';
|
|
3
|
+
import { PLATFORM_CODE } from '../../constants/index.js';
|
|
4
|
+
import { getPlatformQueryKey } from '../../utils/index.js';
|
|
5
5
|
export const usePlatformQuery = (config) => {
|
|
6
6
|
return useQuery({
|
|
7
7
|
...config,
|