@opexa/portal-components 0.0.106 → 0.0.108
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/useAuthenticateMutation.js +2 -1
- package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.d.ts +1 -1
- package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +20 -2
- package/dist/client/hooks/useClaimCashbackBonusMutation.js +2 -1
- package/dist/client/hooks/useClaimSpotBonusMutation.js +2 -1
- package/dist/client/hooks/useCompleteOnboardingMutation.d.ts +3 -0
- package/dist/client/hooks/useCompleteOnboardingMutation.js +25 -0
- package/dist/client/hooks/useCreateGCashDepositMutation.js +2 -1
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +1 -1
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +2 -1
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +1 -1
- package/dist/client/hooks/useCreateMayaDepositMutation.js +2 -1
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +1 -1
- package/dist/client/hooks/useCreateMemberVerificationMutation.d.ts +4 -0
- package/dist/client/hooks/useCreateMemberVerificationMutation.js +45 -0
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +2 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +2 -1
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
- package/dist/client/hooks/useFileQuery.d.ts +2 -0
- package/dist/client/hooks/useFileQuery.js +30 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +24 -5
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +16 -7
- package/dist/client/hooks/useOnboardingStatusQuery.d.ts +2 -0
- package/dist/client/hooks/useOnboardingStatusQuery.js +28 -0
- package/dist/client/hooks/useRecommendedGamesQuery.d.ts +2 -0
- package/dist/client/hooks/useRecommendedGamesQuery.js +27 -0
- package/dist/client/hooks/useSendVerificationCodeMutation.js +1 -1
- package/dist/client/hooks/useSignInMutation.js +2 -1
- package/dist/client/hooks/useSignOutMutation.js +2 -1
- package/dist/client/hooks/useSignUpMutation.js +1 -1
- package/dist/client/hooks/useSiteQuery.d.ts +2 -0
- package/dist/client/hooks/useSiteQuery.js +16 -0
- package/dist/client/hooks/useSkipOnboardingMutation.d.ts +2 -0
- package/dist/client/hooks/useSkipOnboardingMutation.js +25 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +5 -5
- package/dist/client/hooks/useUpdateAccountMutation.js +2 -1
- package/dist/client/hooks/useUpdateMemberVerificationMutation.d.ts +6 -0
- package/dist/client/hooks/useUpdateMemberVerificationMutation.js +38 -0
- package/dist/client/hooks/useUploadImageFileMutation.d.ts +4 -0
- package/dist/client/hooks/useUploadImageFileMutation.js +24 -0
- package/dist/client/utils/createContext.js +1 -1
- package/dist/client/utils/createRecipeContext.js +1 -1
- package/dist/components/BetRecords/BetRecords.client.js +1 -1
- package/dist/components/Bonuses/Bonuses.client.js +1 -1
- package/dist/components/Disclaimer/DisclaimerV1.js +1 -1
- package/dist/components/Games/Game.js +1 -1
- package/dist/components/Games/GamesCarousel.client.js +1 -1
- package/dist/components/Games/GamesList.client.js +1 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsList.d.ts +1 -0
- package/dist/components/Jackpots/JackpotsList/JackpotsList.js +1 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.d.ts +2 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +3 -3
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.d.ts +2 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +2 -2
- package/dist/components/KYC/BasicInformation.js +85 -4
- package/dist/components/KYC/CaptureIdDocument.d.ts +1 -0
- package/dist/components/KYC/CaptureIdDocument.js +11 -0
- package/dist/components/KYC/CaptureSelfie.d.ts +1 -0
- package/dist/components/KYC/CaptureSelfie.js +11 -0
- package/dist/components/KYC/IdentityVerification.js +20 -4
- package/dist/components/KYC/Indicator.js +1 -1
- package/dist/components/KYC/KYC.lazy.js +7 -1
- package/dist/components/KYC/PersonalInformation.js +92 -5
- package/dist/components/KYC/useKYC.d.ts +15 -0
- package/dist/components/KYC/useKYC.js +18 -1
- package/dist/components/Messages/Messages.lazy.js +1 -1
- package/dist/components/News/News.d.ts +10 -0
- package/dist/components/News/News.js +10 -0
- package/dist/components/News/index.d.ts +1 -0
- package/dist/components/News/index.js +1 -0
- package/dist/components/NewsFeed/NewsFeed.d.ts +18 -0
- package/dist/components/NewsFeed/NewsFeed.js +11 -0
- package/dist/components/NewsFeed/index.d.ts +1 -0
- package/dist/components/NewsFeed/index.js +1 -0
- package/dist/components/Promos/PromosCarousel.js +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -4
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +28 -25
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestRules.d.ts +6 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestRules.js +15 -0
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +1 -4
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +27 -3
- package/dist/components/Quests/OnboardingQuest/OnboardingQuestRules.d.ts +6 -0
- package/dist/components/Quests/OnboardingQuest/OnboardingQuestRules.js +15 -0
- package/dist/components/Quests/Quests.client.js +22 -7
- package/dist/components/Quests/QuestsContext.d.ts +2 -0
- package/dist/components/Quests/QuestsContext.js +2 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -4
- package/dist/components/Quests/WageringQuest/WageringQuest.js +12 -9
- package/dist/components/Quests/WageringQuest/WageringQuestRules.d.ts +7 -0
- package/dist/components/Quests/WageringQuest/WageringQuestRules.js +17 -0
- package/dist/components/Search/Search.lazy.d.ts +8 -0
- package/dist/components/Search/Search.lazy.js +8 -3
- package/dist/components/SignIn/MobileNumberSignIn.js +7 -4
- package/dist/components/SignIn/NameAndPasswordSignIn.js +10 -5
- package/dist/components/SignUp/SignUpForm.js +13 -7
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/constants/{endpoints.js → Endpoint.js} +1 -1
- package/dist/constants/index.d.ts +7 -7
- package/dist/constants/index.js +7 -7
- package/dist/server/utils/prefetchAccountQuery.js +5 -2
- package/dist/server/utils/prefetchAvailablePromosQuery.js +5 -2
- package/dist/server/utils/prefetchAvailableQuestsCountQuery.js +5 -2
- package/dist/server/utils/prefetchAvailableQuestsQuery.js +5 -2
- package/dist/server/utils/prefetchBetRecordsQuery.js +5 -2
- package/dist/server/utils/prefetchBonusQuery.js +5 -2
- package/dist/server/utils/prefetchBonusesCountQuery.js +5 -2
- package/dist/server/utils/prefetchBonusesQuery.js +5 -2
- package/dist/server/utils/prefetchCashbackBonusQuery.js +5 -2
- package/dist/server/utils/prefetchCashbackBonusesCountQuery.js +5 -2
- package/dist/server/utils/prefetchCashbackBonusesQuery.js +5 -2
- package/dist/server/utils/prefetchCashbackQuery.js +5 -2
- package/dist/server/utils/prefetchCashbacksQuery.js +5 -2
- package/dist/server/utils/prefetchDepositQuery.js +5 -2
- package/dist/server/utils/prefetchDepositRecordsQuery.js +5 -2
- package/dist/server/utils/prefetchDepositsCountQuery.js +5 -2
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +5 -2
- package/dist/server/utils/prefetchFileQuery.d.ts +1 -0
- package/dist/server/utils/prefetchFileQuery.js +23 -0
- package/dist/server/utils/prefetchGamesQuery.js +5 -2
- package/dist/server/utils/prefetchInstapayBankListQuery.js +5 -2
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +5 -2
- package/dist/server/utils/prefetchJackpotsCountQuery.js +5 -2
- package/dist/server/utils/prefetchJackpotsQuery.js +5 -2
- package/dist/server/utils/prefetchMemberVerificationQuery.js +5 -2
- package/dist/server/utils/prefetchOnboardingStatusQuery.d.ts +1 -0
- package/dist/server/utils/prefetchOnboardingStatusQuery.js +24 -0
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +5 -2
- package/dist/server/utils/prefetchPlatformQuery.js +5 -2
- package/dist/server/utils/prefetchProfileCompletionQuery.js +5 -2
- package/dist/server/utils/prefetchPromoQuery.js +5 -2
- package/dist/server/utils/prefetchPromosQuery.js +5 -2
- package/dist/server/utils/prefetchRecommendedGamesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchRecommendedGamesQuery.js +23 -0
- package/dist/server/utils/prefetchSessionQuery.js +6 -3
- package/dist/server/utils/prefetchSiteQuery.d.ts +1 -0
- package/dist/server/utils/prefetchSiteQuery.js +17 -0
- package/dist/server/utils/prefetchTopWinsQuery.js +5 -2
- package/dist/server/utils/prefetchTournamentsCountQuery.js +5 -2
- package/dist/server/utils/prefetchTournamentsQuery.js +5 -2
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +5 -2
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +5 -2
- package/dist/server/utils/prefetchWalletQuery.js +5 -2
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +5 -2
- package/dist/services/account.d.ts +1 -0
- package/dist/services/account.js +11 -1
- package/dist/services/queries.d.ts +2 -1
- package/dist/services/queries.js +19 -1
- package/dist/styles/theme.css +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Checkbox/checkbox.recipe.js +2 -2
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Menu/Menu.d.ts +144 -144
- package/dist/ui/Menu/menu.recipe.d.ts +8 -8
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/dist/utils/callIfFn.d.ts +8 -0
- package/dist/utils/callIfFn.js +8 -0
- package/dist/utils/createPoll.d.ts +1 -0
- package/dist/utils/createPoll.js +1 -0
- package/dist/utils/createSplitProps.d.ts +9 -0
- package/dist/utils/createSplitProps.js +9 -0
- package/dist/utils/log.d.ts +3 -0
- package/dist/utils/log.js +18 -0
- package/dist/utils/mutationKeys.d.ts +29 -0
- package/dist/utils/mutationKeys.js +104 -0
- package/dist/utils/queryKeys.d.ts +5 -24
- package/dist/utils/queryKeys.js +80 -97
- package/package.json +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
- /package/dist/components/{Empty.d.ts → shared/Empty.d.ts} +0 -0
- /package/dist/components/{Empty.js → shared/Empty.js} +0 -0
- /package/dist/components/{InfiniteScroll.d.ts → shared/InfiniteScroll.d.ts} +0 -0
- /package/dist/components/{InfiniteScroll.js → shared/InfiniteScroll.js} +0 -0
- /package/dist/constants/{endpoints.d.ts → Endpoint.d.ts} +0 -0
- /package/dist/constants/{envVars.d.ts → EnvVar.d.ts} +0 -0
- /package/dist/constants/{envVars.js → EnvVar.js} +0 -0
- /package/dist/constants/{gameProviders.d.ts → GameProvider.d.ts} +0 -0
- /package/dist/constants/{gameProviders.js → GameProvider.js} +0 -0
- /package/dist/constants/{gameTypes.d.ts → GameType.d.ts} +0 -0
- /package/dist/constants/{gameTypes.js → GameType.js} +0 -0
- /package/dist/constants/{headerKeys.d.ts → HeaderKey.d.ts} +0 -0
- /package/dist/constants/{headerKeys.js → HeaderKey.js} +0 -0
- /package/dist/constants/{secretQuestions.d.ts → SecretQuestion.d.ts} +0 -0
- /package/dist/constants/{secretQuestions.js → SecretQuestion.js} +0 -0
- /package/dist/constants/{storageKeys.d.ts → StorageKey.d.ts} +0 -0
- /package/dist/constants/{storageKeys.js → StorageKey.js} +0 -0
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getDeposit } from '../../services/wallet.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getDepositQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchDepositQuery = async (id) => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
10
12
|
queryKey: getDepositQueryKey(id),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
const deposit = await getDeposit(id, {
|
|
@@ -17,5 +19,6 @@ export const prefetchDepositQuery = async (id) => {
|
|
|
17
19
|
});
|
|
18
20
|
return deposit ?? null;
|
|
19
21
|
},
|
|
20
|
-
})
|
|
22
|
+
})
|
|
23
|
+
.catch(() => log.text("'prefetchDepositQuery' failed", 'error'));
|
|
21
24
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getDepositRecords, } from '../../services/report.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getDepositRecordsQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchDepositRecordsQuery = async (input) => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchInfiniteQuery({
|
|
10
12
|
queryKey: getDepositRecordsQueryKey(input),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
return await getDepositRecords(input, {
|
|
@@ -17,5 +19,6 @@ export const prefetchDepositRecordsQuery = async (input) => {
|
|
|
17
19
|
});
|
|
18
20
|
},
|
|
19
21
|
initialPageParam: undefined,
|
|
20
|
-
})
|
|
22
|
+
})
|
|
23
|
+
.catch(() => log.text("'prefetchDepositRecordsQuery' failed", 'error'));
|
|
21
24
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getDepositsCount } from '../../services/report.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getDepositsCountQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchDepositsCountQuery = async () => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
10
12
|
queryKey: getDepositsCountQueryKey(),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
const depositsCount = await getDepositsCount({
|
|
@@ -17,5 +19,6 @@ export const prefetchDepositsCountQuery = async () => {
|
|
|
17
19
|
});
|
|
18
20
|
return depositsCount ?? 0;
|
|
19
21
|
},
|
|
20
|
-
})
|
|
22
|
+
})
|
|
23
|
+
.catch(() => log.text("'prefetchDepositsCountQuery' failed", 'error'));
|
|
21
24
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getFavoriteGames } from '../../services/wallet.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getFavoriteGamesQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchFavoriteGamesQuery = async () => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
10
12
|
queryKey: getFavoriteGamesQueryKey(),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
const favoriteGames = await getFavoriteGames({
|
|
@@ -17,5 +19,6 @@ export const prefetchFavoriteGamesQuery = async () => {
|
|
|
17
19
|
});
|
|
18
20
|
return favoriteGames ?? [];
|
|
19
21
|
},
|
|
20
|
-
})
|
|
22
|
+
})
|
|
23
|
+
.catch(() => log.text("'prefetchFavoriteGamesQuery' failed", 'error'));
|
|
21
24
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const prefetchFileQuery: (id: string) => Promise<void>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getFile } from '../../services/file.js';
|
|
2
|
+
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
4
|
+
import { getFileQueryKey } from '../../utils/queryKeys.js';
|
|
5
|
+
import { getSession } from '../services/getSession.js';
|
|
6
|
+
export const prefetchFileQuery = async (id) => {
|
|
7
|
+
const session = await getSession();
|
|
8
|
+
await getQueryClient()
|
|
9
|
+
.prefetchQuery({
|
|
10
|
+
queryKey: getFileQueryKey(id),
|
|
11
|
+
queryFn: async ({ signal }) => {
|
|
12
|
+
return await getFile(id, {
|
|
13
|
+
signal,
|
|
14
|
+
...(session.status === 'authenticated' && {
|
|
15
|
+
headers: {
|
|
16
|
+
Authorization: `Bearer ${session.token}`,
|
|
17
|
+
},
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
.catch(() => log.text("'prefetchFileQuery' failed", 'error'));
|
|
23
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { getGames__next, } from '../../services/cmsPortal.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getGamesQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
export const prefetchGamesQuery = async (input) => {
|
|
5
|
-
await getQueryClient()
|
|
6
|
+
await getQueryClient()
|
|
7
|
+
.prefetchInfiniteQuery({
|
|
6
8
|
queryKey: getGamesQueryKey(input),
|
|
7
9
|
queryFn: async ({ pageParam, signal }) => {
|
|
8
10
|
return await getGames__next({
|
|
@@ -11,5 +13,6 @@ export const prefetchGamesQuery = async (input) => {
|
|
|
11
13
|
}, { signal });
|
|
12
14
|
},
|
|
13
15
|
initialPageParam: undefined,
|
|
14
|
-
})
|
|
16
|
+
})
|
|
17
|
+
.catch(() => log.text("'prefetchGamesQuery' failed", 'error'));
|
|
15
18
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getInstapayBankList } from '../../services/wallet.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getInstapayBankListQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchInstapayBankListQuery = async () => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
10
12
|
queryKey: getInstapayBankListQueryKey(),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
const instapayBankList = await getInstapayBankList({
|
|
@@ -17,5 +19,6 @@ export const prefetchInstapayBankListQuery = async () => {
|
|
|
17
19
|
});
|
|
18
20
|
return instapayBankList ?? [];
|
|
19
21
|
},
|
|
20
|
-
})
|
|
22
|
+
})
|
|
23
|
+
.catch(() => log.text("'prefetchInstapayBankListQuery' failed", 'error'));
|
|
21
24
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { validateMayaSession } from '../../services/wallet.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getIsMayaSessionValidQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchIsMayaSessionValidQuery = async () => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
10
12
|
queryKey: getIsMayaSessionValidQueryKey(),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
try {
|
|
@@ -22,5 +24,6 @@ export const prefetchIsMayaSessionValidQuery = async () => {
|
|
|
22
24
|
return false;
|
|
23
25
|
}
|
|
24
26
|
},
|
|
25
|
-
})
|
|
27
|
+
})
|
|
28
|
+
.catch(() => log.text("'prefetchIsMayaSessionValidQuery' failed", 'error'));
|
|
26
29
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { getJackpotsCount, } from '../../services/report.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getJackpotsCountQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
export const prefetchJackpotsCountQuery = async (input) => {
|
|
5
|
-
await getQueryClient()
|
|
6
|
+
await getQueryClient()
|
|
7
|
+
.prefetchQuery({
|
|
6
8
|
queryKey: getJackpotsCountQueryKey(input),
|
|
7
9
|
queryFn: async ({ signal }) => {
|
|
8
10
|
return await getJackpotsCount(input, { signal });
|
|
9
11
|
},
|
|
10
|
-
})
|
|
12
|
+
})
|
|
13
|
+
.catch(() => log.text("'prefetchJackpotsCountQuery' failed", 'error'));
|
|
11
14
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { getJackpots } from '../../services/report.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getJackpotsQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
export const prefetchJackpotsQuery = async (input) => {
|
|
5
|
-
await getQueryClient()
|
|
6
|
+
await getQueryClient()
|
|
7
|
+
.prefetchInfiniteQuery({
|
|
6
8
|
queryKey: getJackpotsQueryKey(input),
|
|
7
9
|
queryFn: async ({ signal }) => {
|
|
8
10
|
return await getJackpots(input, { signal });
|
|
9
11
|
},
|
|
10
12
|
initialPageParam: undefined,
|
|
11
|
-
})
|
|
13
|
+
})
|
|
14
|
+
.catch(() => log.text("'prefetchJackpotsQuery' failed", 'error'));
|
|
12
15
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getMemberVerification } from '../../services/account.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getMemberVerificationQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchMemberVerificationQuery = async () => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
10
12
|
queryKey: getMemberVerificationQueryKey(),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
return await getMemberVerification({
|
|
@@ -16,5 +18,6 @@ export const prefetchMemberVerificationQuery = async () => {
|
|
|
16
18
|
},
|
|
17
19
|
});
|
|
18
20
|
},
|
|
19
|
-
})
|
|
21
|
+
})
|
|
22
|
+
.catch(() => log.text("'prefetchMemberVerificationQuery' failed", 'error'));
|
|
20
23
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const prefetchOnboardingStatusQuery: () => Promise<void>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getOnboardingStatus } from '../../services/portal.js';
|
|
2
|
+
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
4
|
+
import { getOnboardingStatusQueryKey } from '../../utils/queryKeys.js';
|
|
5
|
+
import { getSession } from '../services/getSession.js';
|
|
6
|
+
export const prefetchOnboardingStatusQuery = async () => {
|
|
7
|
+
const session = await getSession();
|
|
8
|
+
if (session.status === 'unauthenticated')
|
|
9
|
+
return;
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
12
|
+
queryKey: getOnboardingStatusQueryKey(),
|
|
13
|
+
queryFn: async ({ signal }) => {
|
|
14
|
+
const status = await getOnboardingStatus({
|
|
15
|
+
signal,
|
|
16
|
+
headers: {
|
|
17
|
+
Authorization: `Bearer ${session.token}`,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
return status ?? null;
|
|
21
|
+
},
|
|
22
|
+
})
|
|
23
|
+
.catch(() => log.text("'prefetchOnboardingStatusQuery' failed", 'error'));
|
|
24
|
+
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getPaymentSettings } from '../../services/account.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getPaymentSettingsQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchPaymentSettingsQuery = async () => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
10
12
|
queryKey: getPaymentSettingsQueryKey(),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
return await getPaymentSettings({
|
|
@@ -16,5 +18,6 @@ export const prefetchPaymentSettingsQuery = async () => {
|
|
|
16
18
|
},
|
|
17
19
|
});
|
|
18
20
|
},
|
|
19
|
-
})
|
|
21
|
+
})
|
|
22
|
+
.catch(() => log.text("'prefetchPaymentSettingsQuery' failed", 'error'));
|
|
20
23
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { getPlatform } from '../../services/portal.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getPlatformQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
export async function prefetchPlatformQuery() {
|
|
5
|
-
await getQueryClient()
|
|
6
|
+
await getQueryClient()
|
|
7
|
+
.prefetchQuery({
|
|
6
8
|
queryKey: getPlatformQueryKey(),
|
|
7
9
|
queryFn: async ({ signal }) => {
|
|
8
10
|
return await getPlatform({ signal });
|
|
9
11
|
},
|
|
10
|
-
})
|
|
12
|
+
})
|
|
13
|
+
.catch(() => log.text("'prefetchPlatformQuery' failed", 'error'));
|
|
11
14
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getProfileCompletion } from '../../services/account.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getProfileCompletionQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchProfileCompletionQuery = async () => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
10
12
|
queryKey: getProfileCompletionQueryKey(),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
return await getProfileCompletion({
|
|
@@ -16,5 +18,6 @@ export const prefetchProfileCompletionQuery = async () => {
|
|
|
16
18
|
},
|
|
17
19
|
});
|
|
18
20
|
},
|
|
19
|
-
})
|
|
21
|
+
})
|
|
22
|
+
.catch(() => log.text("'prefetchProfileCompletionQuery' failed", 'error'));
|
|
20
23
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { getPromo } from '../../services/wallet.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getPromoQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
export const prefetchPromoQuery = async (id) => {
|
|
5
|
-
await getQueryClient()
|
|
6
|
+
await getQueryClient()
|
|
7
|
+
.prefetchQuery({
|
|
6
8
|
queryKey: getPromoQueryKey(id),
|
|
7
9
|
queryFn: async ({ signal }) => {
|
|
8
10
|
const promo = await getPromo(id, { signal });
|
|
9
11
|
return promo ?? null;
|
|
10
12
|
},
|
|
11
|
-
})
|
|
13
|
+
})
|
|
14
|
+
.catch(() => log.text("'prefetchPromoQuery' failed", 'error'));
|
|
12
15
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { getPromos } from '../../services/wallet.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getPromosQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
export const prefetchPromosQuery = async () => {
|
|
5
|
-
await getQueryClient()
|
|
6
|
+
await getQueryClient()
|
|
7
|
+
.prefetchQuery({
|
|
6
8
|
queryKey: getPromosQueryKey(),
|
|
7
9
|
queryFn: async ({ signal }) => {
|
|
8
10
|
return await getPromos({ signal });
|
|
9
11
|
},
|
|
10
|
-
})
|
|
12
|
+
})
|
|
13
|
+
.catch(() => log.text("'prefetchPromosQuery' failed", 'error'));
|
|
11
14
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const prefetchRecommendedGamesQuery: () => Promise<void>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getRecommendedGames } from '../../services/portal.js';
|
|
2
|
+
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
4
|
+
import { getRecommendedGamesQueryKey } from '../../utils/queryKeys.js';
|
|
5
|
+
import { getSession } from '../services/getSession.js';
|
|
6
|
+
export const prefetchRecommendedGamesQuery = async () => {
|
|
7
|
+
const session = await getSession();
|
|
8
|
+
if (session.status === 'unauthenticated')
|
|
9
|
+
return;
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
12
|
+
queryKey: getRecommendedGamesQueryKey(),
|
|
13
|
+
queryFn: async ({ signal }) => {
|
|
14
|
+
return await getRecommendedGames({
|
|
15
|
+
signal,
|
|
16
|
+
headers: {
|
|
17
|
+
Authorization: `Bearer ${session.token}`,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
.catch(() => log.text("'prefetchRecommendedGamesQuery' failed", 'error'));
|
|
23
|
+
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
2
|
+
import { log } from '../../utils/log.js';
|
|
2
3
|
import { getSessionQueryKey } from '../../utils/queryKeys.js';
|
|
3
4
|
import { getSession } from '../services/getSession.js';
|
|
4
|
-
export function prefetchSessionQuery() {
|
|
5
|
-
|
|
5
|
+
export async function prefetchSessionQuery() {
|
|
6
|
+
await getQueryClient()
|
|
7
|
+
.prefetchQuery({
|
|
6
8
|
queryKey: getSessionQueryKey(),
|
|
7
9
|
queryFn: async () => {
|
|
8
10
|
return await getSession();
|
|
9
11
|
},
|
|
10
|
-
})
|
|
12
|
+
})
|
|
13
|
+
.catch(() => log.text("'prefetchSessionQuery' failed", 'error'));
|
|
11
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const prefetchSiteQuery: () => Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SITE_ID } from '../../constants/index.js';
|
|
2
|
+
import { getSite } from '../../services/cmsPortal.js';
|
|
3
|
+
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
4
|
+
import { log } from '../../utils/log.js';
|
|
5
|
+
import { getSiteQueryKey } from '../../utils/queryKeys.js';
|
|
6
|
+
export const prefetchSiteQuery = async () => {
|
|
7
|
+
await getQueryClient()
|
|
8
|
+
.prefetchQuery({
|
|
9
|
+
queryKey: getSiteQueryKey(),
|
|
10
|
+
queryFn: async ({ signal }) => {
|
|
11
|
+
return await getSite(SITE_ID, {
|
|
12
|
+
signal,
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
})
|
|
16
|
+
.catch(() => log.text("'prefetchSiteQuery' failed", 'error'));
|
|
17
|
+
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { getTopWins } from '../../services/portal.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getTopWinsQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
export const prefetchTopWinsQuery = async () => {
|
|
5
|
-
await getQueryClient()
|
|
6
|
+
await getQueryClient()
|
|
7
|
+
.prefetchQuery({
|
|
6
8
|
queryKey: getTopWinsQueryKey(),
|
|
7
9
|
queryFn: async ({ signal }) => {
|
|
8
10
|
return await getTopWins({ signal });
|
|
9
11
|
},
|
|
10
|
-
})
|
|
12
|
+
})
|
|
13
|
+
.catch(() => log.text("'prefetchTopWinsQuery' failed", 'error'));
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { getTournamentsCount, } from '../../services/report.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getTournamentsCountQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
export const prefetchTournamentsCountQuery = async (input) => {
|
|
5
|
-
await getQueryClient()
|
|
6
|
+
await getQueryClient()
|
|
7
|
+
.prefetchQuery({
|
|
6
8
|
queryKey: getTournamentsCountQueryKey(input),
|
|
7
9
|
queryFn: async ({ signal }) => {
|
|
8
10
|
return await getTournamentsCount(input, { signal });
|
|
9
11
|
},
|
|
10
|
-
})
|
|
12
|
+
})
|
|
13
|
+
.catch(() => log.text("'prefetchTournamentsCountQuery' failed", 'error'));
|
|
11
14
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { getTournaments } from '../../services/report.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getTournamentsQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
export const prefetchTournamentsQuery = async (input) => {
|
|
5
|
-
await getQueryClient()
|
|
6
|
+
await getQueryClient()
|
|
7
|
+
.prefetchInfiniteQuery({
|
|
6
8
|
queryKey: getTournamentsQueryKey(input),
|
|
7
9
|
queryFn: async ({ signal }) => {
|
|
8
10
|
return await getTournaments(input, { signal });
|
|
9
11
|
},
|
|
10
12
|
initialPageParam: undefined,
|
|
11
|
-
})
|
|
13
|
+
})
|
|
14
|
+
.catch(() => log.text("'prefetchTournamentsQuery' failed", 'error'));
|
|
12
15
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getTransactionRecords, } from '../../services/report.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getTransactionRecordsQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchTransactionRecordsQuery = async (input) => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchInfiniteQuery({
|
|
10
12
|
queryKey: getTransactionRecordsQueryKey(input),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
return await getTransactionRecords(input, {
|
|
@@ -17,5 +19,6 @@ export const prefetchTransactionRecordsQuery = async (input) => {
|
|
|
17
19
|
});
|
|
18
20
|
},
|
|
19
21
|
initialPageParam: undefined,
|
|
20
|
-
})
|
|
22
|
+
})
|
|
23
|
+
.catch(() => log.text("'prefetchTransactionRecordsQuery' failed", 'error'));
|
|
21
24
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getUnreadMessagesCount, } from '../../services/trigger.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getAccountQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchUnreadMessagesCountQuery = async (input) => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
10
12
|
queryKey: getAccountQueryKey(),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
return await getUnreadMessagesCount(input, {
|
|
@@ -16,5 +18,6 @@ export const prefetchUnreadMessagesCountQuery = async (input) => {
|
|
|
16
18
|
},
|
|
17
19
|
});
|
|
18
20
|
},
|
|
19
|
-
})
|
|
21
|
+
})
|
|
22
|
+
.catch(() => log.text("'prefetchUnreadMessagesCountQuery' failed", 'error'));
|
|
20
23
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getWallet } from '../../services/wallet.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getWalletQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchWalletQuery = async () => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchQuery({
|
|
10
12
|
queryKey: getWalletQueryKey(),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
const wallet = await getWallet({
|
|
@@ -17,5 +19,6 @@ export const prefetchWalletQuery = async () => {
|
|
|
17
19
|
});
|
|
18
20
|
return wallet ?? null;
|
|
19
21
|
},
|
|
20
|
-
})
|
|
22
|
+
})
|
|
23
|
+
.catch(() => log.text("'prefetchWalletQuery' failed", 'error'));
|
|
21
24
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getWithdrawalRecords, } from '../../services/report.js';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
+
import { log } from '../../utils/log.js';
|
|
3
4
|
import { getWithdrawalRecordsQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { getSession } from '../services/getSession.js';
|
|
5
6
|
export const prefetchWithdrawalRecordsQuery = async (input) => {
|
|
6
7
|
const session = await getSession();
|
|
7
8
|
if (session.status === 'unauthenticated')
|
|
8
9
|
return;
|
|
9
|
-
await getQueryClient()
|
|
10
|
+
await getQueryClient()
|
|
11
|
+
.prefetchInfiniteQuery({
|
|
10
12
|
queryKey: getWithdrawalRecordsQueryKey(input),
|
|
11
13
|
queryFn: async ({ signal }) => {
|
|
12
14
|
return await getWithdrawalRecords(input, {
|
|
@@ -17,5 +19,6 @@ export const prefetchWithdrawalRecordsQuery = async (input) => {
|
|
|
17
19
|
});
|
|
18
20
|
},
|
|
19
21
|
initialPageParam: undefined,
|
|
20
|
-
})
|
|
22
|
+
})
|
|
23
|
+
.catch(() => log.text("'prefetchWithdrawalRecordsQuery' failed", 'error'));
|
|
21
24
|
};
|
|
@@ -278,6 +278,7 @@ export interface UpdateMemberVerificationMutationVariables {
|
|
|
278
278
|
}
|
|
279
279
|
export type UpdateMemberVerificationDataInput = Simplify<UpdateMemberVerificationMutationVariables['input']['data']>;
|
|
280
280
|
export declare const updateMemberVerification: (id: string, data: UpdateMemberVerificationDataInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
281
|
+
export declare const updateMemberVerification__next: (id: string, data: UpdateMemberVerificationDataInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
281
282
|
export interface MemberVerificationQuery {
|
|
282
283
|
memberAccount: {
|
|
283
284
|
verification?: MemberVerification | null;
|