@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,27 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { QueryKey } from '@tanstack/react-query';
|
|
2
2
|
import type { GamesInput__Next } from '../services/cmsPortal';
|
|
3
3
|
import type { BetRecordsInput, DepositRecordsInput, JackpotPayoutsInput, JackpotsCountInput, JackpotsInput, TournamentsCountInput, TournamentsInput, TransactionRecordsInput, WithdrawalRecordsInput } from '../services/report';
|
|
4
4
|
import type { MessagesInput, UnreadMessagesCountInput } from '../services/trigger';
|
|
5
5
|
import type { AvailablePromosInput } from '../services/wallet';
|
|
6
6
|
export declare const getAccountQueryKey: () => QueryKey;
|
|
7
7
|
export declare const getProfileCompletionQueryKey: () => QueryKey;
|
|
8
|
-
export declare const getAuthenticateMutationKey: () => MutationKey;
|
|
9
8
|
export declare const getAvailablePromosQueryKey: (input?: AvailablePromosInput) => QueryKey;
|
|
10
9
|
export declare const getAvailableQuestsQueryKey: () => QueryKey;
|
|
11
10
|
export declare const getBetRecordsQueryKey: (input?: BetRecordsInput) => QueryKey;
|
|
12
11
|
export declare const getCashbacksQueryKey: () => QueryKey;
|
|
13
12
|
export declare const getCashbackBonusesQueryKey: () => QueryKey;
|
|
14
13
|
export declare const getCashbackBonusesCountQueryKey: () => QueryKey;
|
|
15
|
-
export declare const getCreateGameSessionMutationKey: () => MutationKey;
|
|
16
|
-
export declare const getCreateGCashDepositMutationKey: () => MutationKey;
|
|
17
|
-
export declare const getCreateMayaAppDepositMutationKey: () => MutationKey;
|
|
18
|
-
export declare const getCreateMayaDepositMutationKey: () => MutationKey;
|
|
19
|
-
export declare const getCreateOnlineBankDepositMutationKey: () => MutationKey;
|
|
20
|
-
export declare const getCreateQRPHDepositMutationKey: () => MutationKey;
|
|
21
14
|
export declare const getDepositQueryKey: (id: string) => QueryKey;
|
|
22
15
|
export declare const getDepositRecordsQueryKey: (input?: DepositRecordsInput) => QueryKey;
|
|
23
16
|
export declare const getDepositsCountQueryKey: () => QueryKey;
|
|
24
|
-
export declare const getEndGameSessionMutationKey: () => MutationKey;
|
|
25
17
|
export declare const getGamesQueryKey: (input?: GamesInput__Next) => QueryKey;
|
|
26
18
|
export declare const getFavoriteGamesQueryKey: () => QueryKey;
|
|
27
19
|
export declare const getInstapayBankListQueryKey: () => QueryKey;
|
|
@@ -35,11 +27,7 @@ export declare const getPlatformQueryKey: () => QueryKey;
|
|
|
35
27
|
export declare const getPromoQueryKey: (id: string) => QueryKey;
|
|
36
28
|
export declare const getCashbackQueryKey: (id: string) => QueryKey;
|
|
37
29
|
export declare const getPromosQueryKey: () => QueryKey;
|
|
38
|
-
export declare const getSendVerificationCodeMutationKey: () => MutationKey;
|
|
39
30
|
export declare const getSessionQueryKey: () => QueryKey;
|
|
40
|
-
export declare const getSignInMutationKey: () => MutationKey;
|
|
41
|
-
export declare const getSignOutMutationKey: () => MutationKey;
|
|
42
|
-
export declare const getSignUpMutationKey: () => MutationKey;
|
|
43
31
|
export declare const getTopWinsQueryKey: () => QueryKey;
|
|
44
32
|
export declare const getTournamentsQueryKey: (input?: TournamentsInput) => QueryKey;
|
|
45
33
|
export declare const getTournamentsCountQueryKey: (input?: TournamentsCountInput) => QueryKey;
|
|
@@ -47,20 +35,13 @@ export declare const getTransactionRecordsQueryKey: (input?: TransactionRecordsI
|
|
|
47
35
|
export declare const getMessagesQueryKey: (input?: MessagesInput) => QueryKey;
|
|
48
36
|
export declare const getWalletQueryKey: () => QueryKey;
|
|
49
37
|
export declare const getWithdrawalRecordsQueryKey: (input?: WithdrawalRecordsInput) => QueryKey;
|
|
50
|
-
export declare const getCreateGCashWithdrawalMutationKey: () => MutationKey;
|
|
51
|
-
export declare const getCreateMayaWithdrawalMutationKey: () => MutationKey;
|
|
52
|
-
export declare const getCreateMayaAppWithdrawalMutationKey: () => MutationKey;
|
|
53
|
-
export declare const getCreateInstapayWithdrawalMutationKey: () => MutationKey;
|
|
54
|
-
export declare const getMarkMessageAsReadMutationKey: () => MutationKey;
|
|
55
|
-
export declare const getCheckInDailyQuestMutationKey: () => MutationKey;
|
|
56
38
|
export declare const getUnreadMessagesCountQueryKey: (input?: UnreadMessagesCountInput) => QueryKey;
|
|
57
39
|
export declare const getBonusQueryKey: (id: string) => QueryKey;
|
|
58
40
|
export declare const getCashbackBonusQueryKey: (id: string) => QueryKey;
|
|
59
41
|
export declare const getBonusesQueryKey: () => QueryKey;
|
|
60
42
|
export declare const getBonusesCountQueryKey: () => QueryKey;
|
|
61
|
-
export declare const getMarkGameAsFavoriteMutationKey: () => MutationKey;
|
|
62
|
-
export declare const getUnmarkGameAsFavoriteMutationKey: () => MutationKey;
|
|
63
|
-
export declare const getUpdateAccountMutationKey: () => MutationKey;
|
|
64
|
-
export declare const getClaimCashbackBonusMutationKey: () => MutationKey;
|
|
65
|
-
export declare const getClaimSpotBonusMutationKey: () => MutationKey;
|
|
66
43
|
export declare const getAvailableQuestsCountQueryKey: () => QueryKey;
|
|
44
|
+
export declare const getOnboardingStatusQueryKey: () => QueryKey;
|
|
45
|
+
export declare const getRecommendedGamesQueryKey: () => QueryKey;
|
|
46
|
+
export declare const getFileQueryKey: (id: string) => QueryKey;
|
|
47
|
+
export declare const getSiteQueryKey: () => QueryKey;
|
package/dist/utils/queryKeys.js
CHANGED
|
@@ -1,147 +1,130 @@
|
|
|
1
|
-
|
|
1
|
+
import { SITE_ID } from '../constants/index.js';
|
|
2
|
+
const PARENT_KEY = 'queries';
|
|
3
|
+
export const getAccountQueryKey = () => [PARENT_KEY, 'account'];
|
|
2
4
|
export const getProfileCompletionQueryKey = () => [
|
|
3
|
-
|
|
5
|
+
PARENT_KEY,
|
|
6
|
+
'profileCompletion',
|
|
4
7
|
];
|
|
5
|
-
export const
|
|
6
|
-
'mutations/authenticate',
|
|
7
|
-
];
|
|
8
|
-
export const getAvailablePromosQueryKey = (input) => ['queries/availablePromos', input];
|
|
8
|
+
export const getAvailablePromosQueryKey = (input) => [PARENT_KEY, 'availablePromos', input];
|
|
9
9
|
export const getAvailableQuestsQueryKey = () => [
|
|
10
|
-
|
|
10
|
+
PARENT_KEY,
|
|
11
|
+
'availableQuests',
|
|
11
12
|
];
|
|
12
13
|
export const getBetRecordsQueryKey = (input) => [
|
|
13
|
-
|
|
14
|
+
PARENT_KEY,
|
|
15
|
+
'betRecords',
|
|
14
16
|
input,
|
|
15
17
|
];
|
|
16
|
-
export const getCashbacksQueryKey = () => ['
|
|
18
|
+
export const getCashbacksQueryKey = () => [PARENT_KEY, 'cashbacks'];
|
|
17
19
|
export const getCashbackBonusesQueryKey = () => [
|
|
18
|
-
|
|
20
|
+
PARENT_KEY,
|
|
21
|
+
'cashbackBonuses',
|
|
19
22
|
];
|
|
20
23
|
export const getCashbackBonusesCountQueryKey = () => [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export const getCreateGameSessionMutationKey = () => [
|
|
24
|
-
'mutations/createGameSession',
|
|
25
|
-
];
|
|
26
|
-
export const getCreateGCashDepositMutationKey = () => [
|
|
27
|
-
'mutations/createGCashDeposit',
|
|
28
|
-
];
|
|
29
|
-
export const getCreateMayaAppDepositMutationKey = () => [
|
|
30
|
-
'mutations/createMayaAppDeposit',
|
|
31
|
-
];
|
|
32
|
-
export const getCreateMayaDepositMutationKey = () => [
|
|
33
|
-
'mutations/createMayaDeposit',
|
|
34
|
-
];
|
|
35
|
-
export const getCreateOnlineBankDepositMutationKey = () => [
|
|
36
|
-
'mutations/createOnlineBankDeposit',
|
|
37
|
-
];
|
|
38
|
-
export const getCreateQRPHDepositMutationKey = () => [
|
|
39
|
-
'mutations/createQRPHDeposit',
|
|
24
|
+
PARENT_KEY,
|
|
25
|
+
'cashbackBonusesCount',
|
|
40
26
|
];
|
|
41
27
|
export const getDepositQueryKey = (id) => [
|
|
42
|
-
|
|
28
|
+
PARENT_KEY,
|
|
29
|
+
'deposit',
|
|
43
30
|
id,
|
|
44
31
|
];
|
|
45
|
-
export const getDepositRecordsQueryKey = (input) => ['
|
|
32
|
+
export const getDepositRecordsQueryKey = (input) => [PARENT_KEY, 'depositRecords', input];
|
|
46
33
|
export const getDepositsCountQueryKey = () => [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export const getEndGameSessionMutationKey = () => [
|
|
50
|
-
'mutations/endGameSession',
|
|
34
|
+
PARENT_KEY,
|
|
35
|
+
'depositsCount',
|
|
51
36
|
];
|
|
52
37
|
export const getGamesQueryKey = (input) => [
|
|
53
|
-
|
|
38
|
+
PARENT_KEY,
|
|
39
|
+
'games',
|
|
54
40
|
input,
|
|
55
41
|
];
|
|
56
42
|
export const getFavoriteGamesQueryKey = () => [
|
|
57
|
-
|
|
43
|
+
PARENT_KEY,
|
|
44
|
+
'favoriteGames',
|
|
58
45
|
];
|
|
59
46
|
export const getInstapayBankListQueryKey = () => [
|
|
60
|
-
|
|
47
|
+
PARENT_KEY,
|
|
48
|
+
'instapayBankList',
|
|
61
49
|
];
|
|
62
50
|
export const getIsMayaSessionValidQueryKey = () => [
|
|
63
|
-
|
|
51
|
+
PARENT_KEY,
|
|
52
|
+
'isMayaSessionValidQueryKey',
|
|
64
53
|
];
|
|
65
54
|
export const getJackpotsQueryKey = (input) => [
|
|
66
|
-
|
|
55
|
+
PARENT_KEY,
|
|
56
|
+
'jackpots',
|
|
67
57
|
input,
|
|
68
58
|
];
|
|
69
|
-
export const getJackpotsCountQueryKey = (input) => ['
|
|
70
|
-
export const getJackpotPayoutsQueryKey = (input) => ['
|
|
59
|
+
export const getJackpotsCountQueryKey = (input) => [PARENT_KEY, 'jackpotsCount', input];
|
|
60
|
+
export const getJackpotPayoutsQueryKey = (input) => [PARENT_KEY, 'jackpotPayouts', input];
|
|
71
61
|
export const getMemberVerificationQueryKey = () => [
|
|
72
|
-
|
|
62
|
+
PARENT_KEY,
|
|
63
|
+
'memberVerification',
|
|
73
64
|
];
|
|
74
65
|
export const getPaymentSettingsQueryKey = () => [
|
|
75
|
-
|
|
66
|
+
PARENT_KEY,
|
|
67
|
+
'paymentSettings',
|
|
76
68
|
];
|
|
77
|
-
export const getPlatformQueryKey = () => ['
|
|
78
|
-
export const getPromoQueryKey = (id) => [
|
|
79
|
-
|
|
80
|
-
'
|
|
69
|
+
export const getPlatformQueryKey = () => [PARENT_KEY, 'platform'];
|
|
70
|
+
export const getPromoQueryKey = (id) => [
|
|
71
|
+
PARENT_KEY,
|
|
72
|
+
'promo',
|
|
81
73
|
id,
|
|
82
74
|
];
|
|
83
|
-
export const
|
|
84
|
-
|
|
85
|
-
'
|
|
75
|
+
export const getCashbackQueryKey = (id) => [
|
|
76
|
+
PARENT_KEY,
|
|
77
|
+
'cashback',
|
|
78
|
+
id,
|
|
86
79
|
];
|
|
87
|
-
export const
|
|
88
|
-
export const
|
|
89
|
-
export const
|
|
90
|
-
export const getSignUpMutationKey = () => ['mutations/signUp'];
|
|
91
|
-
export const getTopWinsQueryKey = () => ['queries/topWins'];
|
|
80
|
+
export const getPromosQueryKey = () => [PARENT_KEY, 'promos'];
|
|
81
|
+
export const getSessionQueryKey = () => [PARENT_KEY, 'session'];
|
|
82
|
+
export const getTopWinsQueryKey = () => [PARENT_KEY, 'topWins'];
|
|
92
83
|
export const getTournamentsQueryKey = (input) => [
|
|
93
|
-
|
|
84
|
+
PARENT_KEY,
|
|
85
|
+
'tournaments',
|
|
94
86
|
input,
|
|
95
87
|
];
|
|
96
|
-
export const getTournamentsCountQueryKey = (input) => ['
|
|
97
|
-
export const getTransactionRecordsQueryKey = (input) => ['
|
|
88
|
+
export const getTournamentsCountQueryKey = (input) => [PARENT_KEY, 'tournamentsCount', input];
|
|
89
|
+
export const getTransactionRecordsQueryKey = (input) => [PARENT_KEY, 'transactionRecords', input];
|
|
98
90
|
export const getMessagesQueryKey = (input) => [
|
|
99
|
-
|
|
91
|
+
PARENT_KEY,
|
|
92
|
+
'messages',
|
|
100
93
|
input,
|
|
101
94
|
];
|
|
102
|
-
export const getWalletQueryKey = () => ['
|
|
103
|
-
export const getWithdrawalRecordsQueryKey = (input) => ['
|
|
104
|
-
export const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
];
|
|
110
|
-
export const getCreateMayaAppWithdrawalMutationKey = () => [
|
|
111
|
-
'mutations/createMayaAppWithdrawal',
|
|
112
|
-
];
|
|
113
|
-
export const getCreateInstapayWithdrawalMutationKey = () => [
|
|
114
|
-
'mutations/createInstapayWithdrawal',
|
|
115
|
-
];
|
|
116
|
-
export const getMarkMessageAsReadMutationKey = () => [
|
|
117
|
-
'mutations/markMessageAsRead',
|
|
118
|
-
];
|
|
119
|
-
export const getCheckInDailyQuestMutationKey = () => [
|
|
120
|
-
'mutations/checkInDailyQuest',
|
|
95
|
+
export const getWalletQueryKey = () => [PARENT_KEY, 'wallet'];
|
|
96
|
+
export const getWithdrawalRecordsQueryKey = (input) => [PARENT_KEY, 'withdrawalRecords', input];
|
|
97
|
+
export const getUnreadMessagesCountQueryKey = (input) => [PARENT_KEY, 'unreadMessagesCount', input];
|
|
98
|
+
export const getBonusQueryKey = (id) => [
|
|
99
|
+
PARENT_KEY,
|
|
100
|
+
'bonus',
|
|
101
|
+
id,
|
|
121
102
|
];
|
|
122
|
-
export const getUnreadMessagesCountQueryKey = (input) => ['queries/unreadMessagesCount', input];
|
|
123
|
-
export const getBonusQueryKey = (id) => ['queries/bonus', id];
|
|
124
103
|
export const getCashbackBonusQueryKey = (id) => [
|
|
125
|
-
|
|
104
|
+
PARENT_KEY,
|
|
105
|
+
'cashbackBonus',
|
|
126
106
|
id,
|
|
127
107
|
];
|
|
128
|
-
export const getBonusesQueryKey = () => ['
|
|
129
|
-
export const getBonusesCountQueryKey = () => [
|
|
130
|
-
|
|
131
|
-
'
|
|
132
|
-
];
|
|
133
|
-
export const getUnmarkGameAsFavoriteMutationKey = () => [
|
|
134
|
-
'mutations/unmarkGameAsFavorite',
|
|
108
|
+
export const getBonusesQueryKey = () => [PARENT_KEY, 'bonuses'];
|
|
109
|
+
export const getBonusesCountQueryKey = () => [
|
|
110
|
+
PARENT_KEY,
|
|
111
|
+
'bonusesCount',
|
|
135
112
|
];
|
|
136
|
-
export const
|
|
137
|
-
|
|
113
|
+
export const getAvailableQuestsCountQueryKey = () => [
|
|
114
|
+
PARENT_KEY,
|
|
115
|
+
'availableQuestsCount',
|
|
138
116
|
];
|
|
139
|
-
export const
|
|
140
|
-
|
|
117
|
+
export const getOnboardingStatusQueryKey = () => [
|
|
118
|
+
PARENT_KEY,
|
|
119
|
+
'onboardingStatus',
|
|
141
120
|
];
|
|
142
|
-
export const
|
|
143
|
-
|
|
121
|
+
export const getRecommendedGamesQueryKey = () => [
|
|
122
|
+
PARENT_KEY,
|
|
123
|
+
'recommendedGames',
|
|
144
124
|
];
|
|
145
|
-
export const
|
|
146
|
-
|
|
125
|
+
export const getFileQueryKey = (id) => [
|
|
126
|
+
PARENT_KEY,
|
|
127
|
+
'file',
|
|
128
|
+
id,
|
|
147
129
|
];
|
|
130
|
+
export const getSiteQueryKey = () => [PARENT_KEY, 'site', SITE_ID];
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { XIcon } from '../../../icons/XIcon.js';
|
|
4
|
-
import { Button } from '../../../ui/Button/index.js';
|
|
5
|
-
import { Dialog } from '../../../ui/Dialog/index.js';
|
|
6
|
-
import { Portal } from '../../../ui/Portal/index.js';
|
|
7
|
-
export function DailyCheckInQuestModal(props) {
|
|
8
|
-
return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: props.modalState.isOpen, onOpenChange: ({ open }) => props.modalState.setIsOpen(open), closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "min-h-auto mx-auto max-w-[343px] rounded-xl px-4 pb-0 pt-5", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "flex flex-col space-y-5", children: [_jsx("p", { className: "text-text-primary-900 text-lg font-semibold", children: "Daily Check-In Rules" }), _jsxs("ul", { className: "text-text-tertiary-600 group list-disc text-wrap pl-4 text-sm font-normal", children: [_jsx("li", { children: "Earn rewards just for checking in each day!" }), _jsx("li", { children: "Stay consistent to unlock special rewards on the 3rd, 5th, and 7th day." }), _jsx("li", { children: "Missing a day will reset your streak, starting again from Day 1." }), _jsx("li", { children: "Each check-in unlocks the next one on the following day." }), _jsx("li", { children: "Successfully check in for 7 consecutive days to complete the quest and reset the cycle." })] })] }), _jsx("div", { className: "pb-4 pt-6", children: _jsx(Button, { onClick: () => props.modalState.setIsOpen(false), children: "Ok" }) })] }) })] }) }));
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { XIcon } from '../../../icons/XIcon.js';
|
|
4
|
-
import { Button } from '../../../ui/Button/index.js';
|
|
5
|
-
import { Dialog } from '../../../ui/Dialog/index.js';
|
|
6
|
-
import { Portal } from '../../../ui/Portal/index.js';
|
|
7
|
-
export function WageringQuestModal(props) {
|
|
8
|
-
return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: props.modalState.isOpen, onOpenChange: ({ open }) => props.modalState.setIsOpen(open), closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "min-h-auto mx-auto max-w-[343px] rounded-xl px-4 pb-0 pt-5", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "flex flex-col space-y-5", children: [_jsx("p", { className: "text-text-primary-900 text-lg font-semibold", children: props.questName }), _jsxs("ul", { className: "text-text-tertiary-600 group list-disc text-wrap pl-4 text-sm font-normal", children: [_jsx("li", { children: "Earn extra rewards just by playing Slots, every bet counts, win or lose!" }), _jsx("li", { children: "Reach the wagering requirement in bets to complete the quest and claim your reward." })] })] }), _jsx("div", { className: "pb-4 pt-6", children: _jsx(Button, { onClick: () => props.modalState.setIsOpen(false), children: "Ok" }) })] }) })] }) }));
|
|
9
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|