@opexa/portal-components 0.0.948 → 0.0.950
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/components/DepositWithdrawal/Deposit/Deposit.js +17 -10
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +1 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +2 -1
- package/dist/schemas/forgotPasswordSchema.d.ts +4 -4
- package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Carousel/Carousel.d.ts +72 -72
- package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +33 -33
- package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +198 -198
- package/dist/ui/Menu/menu.recipe.d.ts +11 -11
- package/dist/ui/Popover/Popover.d.ts +88 -88
- package/dist/ui/Popover/popover.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/package.json +1 -1
- package/dist/assets/providers/alize.png +0 -0
- package/dist/assets/providers/bigtime-gaming.png +0 -0
- package/dist/assets/providers/bng.png +0 -0
- package/dist/assets/providers/boongo.png +0 -0
- package/dist/assets/providers/btg.png +0 -0
- package/dist/assets/providers/cq9.png +0 -0
- package/dist/assets/providers/darwin.png +0 -0
- package/dist/assets/providers/digitain.png +0 -0
- package/dist/assets/providers/evolution.png +0 -0
- package/dist/assets/providers/fantasma-games.png +0 -0
- package/dist/assets/providers/fc.png +0 -0
- package/dist/assets/providers/fp.png +0 -0
- package/dist/assets/providers/habanero.png +0 -0
- package/dist/assets/providers/hacksaw.png +0 -0
- package/dist/assets/providers/jdb.png +0 -0
- package/dist/assets/providers/jili.png +0 -0
- package/dist/assets/providers/leap.png +0 -0
- package/dist/assets/providers/live-22-metaverse.png +0 -0
- package/dist/assets/providers/netent.png +0 -0
- package/dist/assets/providers/no-limit.png +0 -0
- package/dist/assets/providers/pg.png +0 -0
- package/dist/assets/providers/pgsoft.png +0 -0
- package/dist/assets/providers/pragmatic-play.png +0 -0
- package/dist/assets/providers/realtime-gaming.png +0 -0
- package/dist/assets/providers/redtiger.png +0 -0
- package/dist/assets/providers/rtg.png +0 -0
- package/dist/assets/providers/sagaming.png +0 -0
- package/dist/client/hooks/useAiOGCashDepositMutation.d.ts +0 -4
- package/dist/client/hooks/useAiOGCashDepositMutation.js +0 -90
- package/dist/client/hooks/useAiOGrabPayDepositMutation.d.ts +0 -4
- package/dist/client/hooks/useAiOGrabPayDepositMutation.js +0 -80
- package/dist/client/hooks/useAiOPalawanPayDepositMutation.d.ts +0 -4
- package/dist/client/hooks/useAiOPalawanPayDepositMutation.js +0 -80
- package/dist/client/hooks/useAiOPayMayaDepositMutation.d.ts +0 -4
- package/dist/client/hooks/useAiOPayMayaDepositMutation.js +0 -80
- package/dist/client/hooks/useVerifyMobileNumber.d.ts +0 -3
- package/dist/client/hooks/useVerifyMobileNumber.js +0 -20
- package/dist/components/Banner/Banner.client.d.ts +0 -12
- package/dist/components/Banner/Banner.client.js +0 -49
- package/dist/components/DepositWithdrawal/AiOPaymentMethods.d.ts +0 -11
- package/dist/components/DepositWithdrawal/AiOPaymentMethods.js +0 -55
- package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.js +0 -260
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +0 -99
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +0 -17
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +0 -116
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHQRCode.d.ts +0 -3
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHQRCode.js +0 -69
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDeposit.js +0 -10
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositAlert.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositAlert.js +0 -99
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositContext.d.ts +0 -25
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositContext.js +0 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositDetails.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositDetails.js +0 -17
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositForm.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositForm.js +0 -116
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHQRCode.d.ts +0 -3
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHQRCode.js +0 -69
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/useQRPHDeposit.d.ts +0 -13
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/useQRPHDeposit.js +0 -85
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGCashDeposit/AiOGCashDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGCashDeposit/AiOGCashDeposit.js +0 -173
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGrabPayDeposit/AiOGrabPayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGrabPayDeposit/AiOGrabPayDeposit.js +0 -171
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPalawanPayDeposit/AiOPalawanPayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPalawanPayDeposit/AiOPalawanPayDeposit.js +0 -171
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPayMayaDeposit/AiOPayMayaDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPayMayaDeposit/AiOPayMayaDeposit.js +0 -171
- package/dist/components/DepositWithdrawal/Deposit__legacy/AvailablePromos.d.ts +0 -8
- package/dist/components/DepositWithdrawal/Deposit__legacy/AvailablePromos.js +0 -33
- package/dist/components/DepositWithdrawal/Deposit__legacy/Deposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/Deposit.js +0 -120
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashDeposit/GCashDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashDeposit/GCashDeposit.js +0 -163
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashWebpayDeposit/GCashWebpayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashWebpayDeposit/GCashWebpayDeposit.js +0 -165
- package/dist/components/DepositWithdrawal/Deposit__legacy/LibanganDeposit/LibanganDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/LibanganDeposit/LibanganDeposit.js +0 -186
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaAppDeposit/MayaAppDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaAppDeposit/MayaAppDeposit.js +0 -157
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaDeposit/MayaDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaDeposit/MayaDeposit.js +0 -163
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaWebpayDeposit/MayaWebpayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaWebpayDeposit/MayaWebpayDeposit.js +0 -166
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDeposit.js +0 -10
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositAlert.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositAlert.js +0 -99
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.d.ts +0 -25
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.js +0 -2
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositDetails.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositDetails.js +0 -19
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositForm.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositForm.js +0 -115
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.d.ts +0 -13
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.js +0 -81
- package/dist/components/DepositWithdrawal/Deposit__legacy/PisoPayDeposit/PisoPayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/PisoPayDeposit/PisoPayDeposit.js +0 -180
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDeposit.js +0 -10
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositAlert.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositAlert.js +0 -99
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.d.ts +0 -25
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.js +0 -2
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositDetails.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositDetails.js +0 -17
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositForm.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositForm.js +0 -116
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHQRCode.d.ts +0 -3
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHQRCode.js +0 -69
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.d.ts +0 -13
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.js +0 -85
- package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
- package/dist/components/DigitainLauncher/Loading.js +0 -5
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
- package/dist/components/KYC/BasicInformation.d.ts +0 -1
- package/dist/components/KYC/BasicInformation.js +0 -101
- package/dist/components/KYC/IdentityVerification.d.ts +0 -1
- package/dist/components/KYC/IdentityVerification.js +0 -120
- package/dist/components/KYC/Indicator.d.ts +0 -1
- package/dist/components/KYC/Indicator.js +0 -8
- package/dist/components/KYC/KYC.lazy.d.ts +0 -6
- package/dist/components/KYC/KYC.lazy.js +0 -45
- package/dist/components/KYC/KYCContext.d.ts +0 -6
- package/dist/components/KYC/KYCContext.js +0 -2
- package/dist/components/KYC/KYCDefault/BasicInformation.d.ts +0 -1
- package/dist/components/KYC/KYCDefault/BasicInformation.js +0 -101
- package/dist/components/KYC/KYCVerificationStatus.d.ts +0 -1
- package/dist/components/KYC/KYCVerificationStatus.js +0 -10
- package/dist/components/KYC/KYCVerificationStatus.lazy.d.ts +0 -1
- package/dist/components/KYC/KYCVerificationStatus.lazy.js +0 -36
- package/dist/components/KYC/PersonalInformation.d.ts +0 -1
- package/dist/components/KYC/PersonalInformation.js +0 -122
- package/dist/components/KYC/useKYC.d.ts +0 -25
- package/dist/components/KYC/useKYC.js +0 -38
- package/dist/components/KYCNotRequired/KYCNotRequired.d.ts +0 -0
- package/dist/components/KYCNotRequired/KYCNotRequired.js +0 -1
- package/dist/components/PortalProvider/AndroidOnlyComponents.d.ts +0 -1
- package/dist/components/PortalProvider/AndroidOnlyComponents.js +0 -12
- package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
- package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
- package/dist/components/Quests/MultiWageringQuest.d.ts +0 -1
- package/dist/components/Quests/MultiWageringQuest.js +0 -111
- package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
- package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
- package/dist/components/SessionWatcher/index.d.ts +0 -1
- package/dist/components/SessionWatcher/index.js +0 -1
- package/dist/components/SignIn/utils.d.ts +0 -8
- package/dist/components/SignIn/utils.js +0 -26
- package/dist/components/SingleSignOn/SingleSignOn.d.ts +0 -4
- package/dist/components/SingleSignOn/SingleSignOn.js +0 -177
- package/dist/components/SingleSignOn/index.d.ts +0 -1
- package/dist/components/SingleSignOn/index.js +0 -1
- package/dist/constants/Branches.d.ts +0 -2
- package/dist/constants/Branches.js +0 -42
- package/dist/images/game-providers/ALPHACHINKO.png +0 -0
- package/dist/images/responsible-gaming-yellow.png +0 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
- package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
- package/dist/third-parties/FacebookPixel/api.js +0 -1
- package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
- package/dist/third-parties/FacebookPixel/index.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
- package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
- package/dist/third-parties/index.d.ts +0 -2
- package/dist/third-parties/index.js +0 -2
- package/dist/utils/getLocaleInfo.d.ts +0 -79
- package/dist/utils/getLocaleInfo.js +0 -175
package/dist/ui/Table/Table.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
12
12
|
body: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
}, Record<"body" | "
|
|
15
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, {
|
|
16
16
|
size: {
|
|
17
17
|
md: {
|
|
18
18
|
root: string;
|
|
@@ -26,7 +26,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
26
26
|
body: string;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
}, Record<"body" | "
|
|
29
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
30
30
|
size: {
|
|
31
31
|
md: {
|
|
32
32
|
root: string;
|
|
@@ -40,7 +40,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
40
40
|
body: string;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
}, Record<"body" | "
|
|
43
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
44
44
|
export declare const Header: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
45
45
|
size: {
|
|
46
46
|
md: {
|
|
@@ -55,7 +55,7 @@ export declare const Header: import("react").ComponentType<import("@ark-ui/react
|
|
|
55
55
|
body: string;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
}, Record<"body" | "
|
|
58
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, {
|
|
59
59
|
size: {
|
|
60
60
|
md: {
|
|
61
61
|
root: string;
|
|
@@ -69,7 +69,7 @@ export declare const Header: import("react").ComponentType<import("@ark-ui/react
|
|
|
69
69
|
body: string;
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
|
-
}, Record<"body" | "
|
|
72
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
73
73
|
size: {
|
|
74
74
|
md: {
|
|
75
75
|
root: string;
|
|
@@ -83,7 +83,7 @@ export declare const Header: import("react").ComponentType<import("@ark-ui/react
|
|
|
83
83
|
body: string;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
|
-
}, Record<"body" | "
|
|
86
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
87
87
|
export declare const Body: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
88
88
|
size: {
|
|
89
89
|
md: {
|
|
@@ -98,7 +98,7 @@ export declare const Body: import("react").ComponentType<import("@ark-ui/react")
|
|
|
98
98
|
body: string;
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
-
}, Record<"body" | "
|
|
101
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, {
|
|
102
102
|
size: {
|
|
103
103
|
md: {
|
|
104
104
|
root: string;
|
|
@@ -112,7 +112,7 @@ export declare const Body: import("react").ComponentType<import("@ark-ui/react")
|
|
|
112
112
|
body: string;
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
-
}, Record<"body" | "
|
|
115
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
116
116
|
size: {
|
|
117
117
|
md: {
|
|
118
118
|
root: string;
|
|
@@ -126,7 +126,7 @@ export declare const Body: import("react").ComponentType<import("@ark-ui/react")
|
|
|
126
126
|
body: string;
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
|
-
}, Record<"body" | "
|
|
129
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
130
130
|
export declare const Footer: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
131
131
|
size: {
|
|
132
132
|
md: {
|
|
@@ -141,7 +141,7 @@ export declare const Footer: import("react").ComponentType<import("@ark-ui/react
|
|
|
141
141
|
body: string;
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
|
-
}, Record<"body" | "
|
|
144
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, {
|
|
145
145
|
size: {
|
|
146
146
|
md: {
|
|
147
147
|
root: string;
|
|
@@ -155,7 +155,7 @@ export declare const Footer: import("react").ComponentType<import("@ark-ui/react
|
|
|
155
155
|
body: string;
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
}, Record<"body" | "
|
|
158
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
159
159
|
size: {
|
|
160
160
|
md: {
|
|
161
161
|
root: string;
|
|
@@ -169,7 +169,7 @@ export declare const Footer: import("react").ComponentType<import("@ark-ui/react
|
|
|
169
169
|
body: string;
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
-
}, Record<"body" | "
|
|
172
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
173
173
|
export declare const Row: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
174
174
|
size: {
|
|
175
175
|
md: {
|
|
@@ -184,7 +184,7 @@ export declare const Row: import("react").ComponentType<import("@ark-ui/react").
|
|
|
184
184
|
body: string;
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
|
-
}, Record<"body" | "
|
|
187
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, {
|
|
188
188
|
size: {
|
|
189
189
|
md: {
|
|
190
190
|
root: string;
|
|
@@ -198,7 +198,7 @@ export declare const Row: import("react").ComponentType<import("@ark-ui/react").
|
|
|
198
198
|
body: string;
|
|
199
199
|
};
|
|
200
200
|
};
|
|
201
|
-
}, Record<"body" | "
|
|
201
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
202
202
|
size: {
|
|
203
203
|
md: {
|
|
204
204
|
root: string;
|
|
@@ -212,7 +212,7 @@ export declare const Row: import("react").ComponentType<import("@ark-ui/react").
|
|
|
212
212
|
body: string;
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
|
-
}, Record<"body" | "
|
|
215
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
216
216
|
export declare const Heading: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
217
217
|
size: {
|
|
218
218
|
md: {
|
|
@@ -227,7 +227,7 @@ export declare const Heading: import("react").ComponentType<import("@ark-ui/reac
|
|
|
227
227
|
body: string;
|
|
228
228
|
};
|
|
229
229
|
};
|
|
230
|
-
}, Record<"body" | "
|
|
230
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, {
|
|
231
231
|
size: {
|
|
232
232
|
md: {
|
|
233
233
|
root: string;
|
|
@@ -241,7 +241,7 @@ export declare const Heading: import("react").ComponentType<import("@ark-ui/reac
|
|
|
241
241
|
body: string;
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
|
-
}, Record<"body" | "
|
|
244
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
245
245
|
size: {
|
|
246
246
|
md: {
|
|
247
247
|
root: string;
|
|
@@ -255,7 +255,7 @@ export declare const Heading: import("react").ComponentType<import("@ark-ui/reac
|
|
|
255
255
|
body: string;
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
|
-
}, Record<"body" | "
|
|
258
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
259
259
|
export declare const Cell: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
260
260
|
size: {
|
|
261
261
|
md: {
|
|
@@ -270,7 +270,7 @@ export declare const Cell: import("react").ComponentType<import("@ark-ui/react")
|
|
|
270
270
|
body: string;
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
|
-
}, Record<"body" | "
|
|
273
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, {
|
|
274
274
|
size: {
|
|
275
275
|
md: {
|
|
276
276
|
root: string;
|
|
@@ -284,7 +284,7 @@ export declare const Cell: import("react").ComponentType<import("@ark-ui/react")
|
|
|
284
284
|
body: string;
|
|
285
285
|
};
|
|
286
286
|
};
|
|
287
|
-
}, Record<"body" | "
|
|
287
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
288
288
|
size: {
|
|
289
289
|
md: {
|
|
290
290
|
root: string;
|
|
@@ -298,4 +298,4 @@ export declare const Cell: import("react").ComponentType<import("@ark-ui/react")
|
|
|
298
298
|
body: string;
|
|
299
299
|
};
|
|
300
300
|
};
|
|
301
|
-
}, Record<"body" | "
|
|
301
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const tableAnatomy: import("@ark-ui/react/anatomy").AnatomyInstance<"body" | "
|
|
1
|
+
export declare const tableAnatomy: import("@ark-ui/react/anatomy").AnatomyInstance<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row">;
|
|
@@ -12,7 +12,7 @@ export declare const tableRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
12
12
|
body: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
}, Record<"body" | "
|
|
15
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, {
|
|
16
16
|
size: {
|
|
17
17
|
md: {
|
|
18
18
|
root: string;
|
|
@@ -26,7 +26,7 @@ export declare const tableRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
26
26
|
body: string;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
}, Record<"body" | "
|
|
29
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
30
30
|
size: {
|
|
31
31
|
md: {
|
|
32
32
|
root: string;
|
|
@@ -40,4 +40,4 @@ export declare const tableRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
40
40
|
body: string;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
}, Record<"body" | "
|
|
43
|
+
}, Record<"body" | "footer" | "header" | "root" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>;
|
package/dist/ui/Tabs/Tabs.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
11
11
|
trigger: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
}, Record<"content" | "
|
|
14
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, {
|
|
15
15
|
size: {
|
|
16
16
|
md: {};
|
|
17
17
|
};
|
|
@@ -23,7 +23,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
23
23
|
trigger: string;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
}, Record<"content" | "
|
|
26
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
27
27
|
size: {
|
|
28
28
|
md: {};
|
|
29
29
|
};
|
|
@@ -35,7 +35,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
35
35
|
trigger: string;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
}, Record<"content" | "
|
|
38
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
39
39
|
export declare const Content: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.ContentProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
40
40
|
size: {
|
|
41
41
|
md: {};
|
|
@@ -48,7 +48,7 @@ export declare const Content: import("react").ComponentType<import("@ark-ui/reac
|
|
|
48
48
|
trigger: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
}, Record<"content" | "
|
|
51
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, {
|
|
52
52
|
size: {
|
|
53
53
|
md: {};
|
|
54
54
|
};
|
|
@@ -60,7 +60,7 @@ export declare const Content: import("react").ComponentType<import("@ark-ui/reac
|
|
|
60
60
|
trigger: string;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
-
}, Record<"content" | "
|
|
63
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
64
64
|
size: {
|
|
65
65
|
md: {};
|
|
66
66
|
};
|
|
@@ -72,7 +72,7 @@ export declare const Content: import("react").ComponentType<import("@ark-ui/reac
|
|
|
72
72
|
trigger: string;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
-
}, Record<"content" | "
|
|
75
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
76
76
|
export declare const Indicator: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
77
77
|
size: {
|
|
78
78
|
md: {};
|
|
@@ -85,7 +85,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
|
|
|
85
85
|
trigger: string;
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
}, Record<"content" | "
|
|
88
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, {
|
|
89
89
|
size: {
|
|
90
90
|
md: {};
|
|
91
91
|
};
|
|
@@ -97,7 +97,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
|
|
|
97
97
|
trigger: string;
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
|
-
}, Record<"content" | "
|
|
100
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
101
101
|
size: {
|
|
102
102
|
md: {};
|
|
103
103
|
};
|
|
@@ -109,7 +109,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
|
|
|
109
109
|
trigger: string;
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
|
-
}, Record<"content" | "
|
|
112
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
113
113
|
export declare const List: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.ListProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
114
114
|
size: {
|
|
115
115
|
md: {};
|
|
@@ -122,7 +122,7 @@ export declare const List: import("react").ComponentType<import("@ark-ui/react")
|
|
|
122
122
|
trigger: string;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
-
}, Record<"content" | "
|
|
125
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, {
|
|
126
126
|
size: {
|
|
127
127
|
md: {};
|
|
128
128
|
};
|
|
@@ -134,7 +134,7 @@ export declare const List: import("react").ComponentType<import("@ark-ui/react")
|
|
|
134
134
|
trigger: string;
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
|
-
}, Record<"content" | "
|
|
137
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
138
138
|
size: {
|
|
139
139
|
md: {};
|
|
140
140
|
};
|
|
@@ -146,7 +146,7 @@ export declare const List: import("react").ComponentType<import("@ark-ui/react")
|
|
|
146
146
|
trigger: string;
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
-
}, Record<"content" | "
|
|
149
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
150
150
|
export declare const Trigger: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
151
151
|
size: {
|
|
152
152
|
md: {};
|
|
@@ -159,7 +159,7 @@ export declare const Trigger: import("react").ComponentType<import("@ark-ui/reac
|
|
|
159
159
|
trigger: string;
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
|
-
}, Record<"content" | "
|
|
162
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, {
|
|
163
163
|
size: {
|
|
164
164
|
md: {};
|
|
165
165
|
};
|
|
@@ -171,7 +171,7 @@ export declare const Trigger: import("react").ComponentType<import("@ark-ui/reac
|
|
|
171
171
|
trigger: string;
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
}, Record<"content" | "
|
|
174
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
175
175
|
size: {
|
|
176
176
|
md: {};
|
|
177
177
|
};
|
|
@@ -183,5 +183,5 @@ export declare const Trigger: import("react").ComponentType<import("@ark-ui/reac
|
|
|
183
183
|
trigger: string;
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
|
-
}, Record<"content" | "
|
|
186
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
187
187
|
export declare const Context: (props: Tabs.ContextProps) => import("react").ReactNode;
|
|
@@ -10,7 +10,7 @@ export declare const tabsRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
10
10
|
trigger: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
}, Record<"content" | "
|
|
13
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, {
|
|
14
14
|
size: {
|
|
15
15
|
md: {};
|
|
16
16
|
};
|
|
@@ -22,7 +22,7 @@ export declare const tabsRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
22
22
|
trigger: string;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
}, Record<"content" | "
|
|
25
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
26
26
|
size: {
|
|
27
27
|
md: {};
|
|
28
28
|
};
|
|
@@ -34,4 +34,4 @@ export declare const tabsRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
34
34
|
trigger: string;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
}, Record<"content" | "
|
|
37
|
+
}, Record<"content" | "root" | "trigger" | "list" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { SetOptional } from 'type-fest';
|
|
2
|
-
import { type CreateAiOGCashDepositInput } from '../../services/wallet';
|
|
3
|
-
import type { Deposit, Mutation } from '../../types';
|
|
4
|
-
export declare const useCreateAiOGCashDepositMutation: Mutation<Deposit, SetOptional<CreateAiOGCashDepositInput, 'id'>>;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { ObjectId } from '@opexa/object-id';
|
|
2
|
-
import { useMutation } from '@tanstack/react-query';
|
|
3
|
-
import { clamp } from 'lodash-es';
|
|
4
|
-
import invariant from 'tiny-invariant';
|
|
5
|
-
import { explainError } from '../../components/DepositWithdrawal/utils.js';
|
|
6
|
-
import { OPEXAPAY_ENDPOINT } from '../../constants/index.js';
|
|
7
|
-
import { ObjectType } from '../../services/ObjectType.js';
|
|
8
|
-
import { createAiOGCashDeposit, getDeposit, } from '../../services/wallet.js';
|
|
9
|
-
import { capitalize } from '../../utils/capitalize.js';
|
|
10
|
-
import { createPoll } from '../../utils/createPoll.js';
|
|
11
|
-
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
12
|
-
import { getCreateAiOGCashDepositMutationKey } from '../../utils/mutationKeys.js';
|
|
13
|
-
import { parseDecimal } from '../../utils/parseDecimal.js';
|
|
14
|
-
import { getAvailableQuestsQueryKey, getDepositsCountQueryKey, } from '../../utils/queryKeys.js';
|
|
15
|
-
import { getSession } from '../services/getSession.js';
|
|
16
|
-
export const useCreateAiOGCashDepositMutation = (config) => {
|
|
17
|
-
const queryClient = getQueryClient();
|
|
18
|
-
const mutation = useMutation({
|
|
19
|
-
...config,
|
|
20
|
-
mutationKey: getCreateAiOGCashDepositMutationKey(),
|
|
21
|
-
mutationFn: async (input) => {
|
|
22
|
-
const id = input.id ?? ObjectId.generate(ObjectType.Deposit).toString();
|
|
23
|
-
const session = await getSession();
|
|
24
|
-
invariant(session.status === 'authenticated');
|
|
25
|
-
const successRedirectUrl = new URL('/transactions', input.redirectUrl);
|
|
26
|
-
successRedirectUrl.searchParams.set('tab', 'deposits');
|
|
27
|
-
successRedirectUrl.searchParams.set('id', id);
|
|
28
|
-
await createAiOGCashDeposit({
|
|
29
|
-
...input,
|
|
30
|
-
id,
|
|
31
|
-
redirectUrl: `${OPEXAPAY_ENDPOINT}/aio/success?redirectUrl=${encodeURIComponent(successRedirectUrl.toString())}`,
|
|
32
|
-
}, {
|
|
33
|
-
headers: {
|
|
34
|
-
Authorization: `Bearer ${session.token}`,
|
|
35
|
-
...(session.domain && {
|
|
36
|
-
Domain: session.domain,
|
|
37
|
-
}),
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
const poll = createPoll(async () => {
|
|
41
|
-
const session = await getSession();
|
|
42
|
-
invariant(session.status === 'authenticated');
|
|
43
|
-
return await getDeposit(id, {
|
|
44
|
-
headers: {
|
|
45
|
-
Authorization: `Bearer ${session.token}`,
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
}, {
|
|
49
|
-
until(res) {
|
|
50
|
-
return (!!res?.checkoutUrl || !!res?.error || res?.status === 'FAILED');
|
|
51
|
-
},
|
|
52
|
-
interval: 1000,
|
|
53
|
-
maxAttempt: 20,
|
|
54
|
-
});
|
|
55
|
-
const res = await poll();
|
|
56
|
-
if (res?.error) {
|
|
57
|
-
const error = new Error();
|
|
58
|
-
error.name = capitalize(res.error, {
|
|
59
|
-
delimiter: capitalize.delimiters.UNDERSCORE,
|
|
60
|
-
});
|
|
61
|
-
error.message = explainError(res.error);
|
|
62
|
-
throw error;
|
|
63
|
-
}
|
|
64
|
-
if (!res?.checkoutUrl) {
|
|
65
|
-
const error = new Error();
|
|
66
|
-
error.name = 'AiOGCashDepositError';
|
|
67
|
-
error.message = 'Failed to process GCash deposit';
|
|
68
|
-
throw error;
|
|
69
|
-
}
|
|
70
|
-
const depositsCount = queryClient.getQueryData(getDepositsCountQueryKey()) ?? 0;
|
|
71
|
-
if (depositsCount <= 0) {
|
|
72
|
-
queryClient.setQueryData(getAvailableQuestsQueryKey(), (prev) => {
|
|
73
|
-
return prev?.map((quest) => {
|
|
74
|
-
const progressPercentage = clamp(parseDecimal(quest.progressPercentage, 0) + 50, 100);
|
|
75
|
-
if (quest.type === 'ONBOARDING') {
|
|
76
|
-
return {
|
|
77
|
-
...quest,
|
|
78
|
-
status: progressPercentage >= 100 ? 'COMPLETED' : quest.status,
|
|
79
|
-
progressPercentage: progressPercentage.toFixed(2),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
return quest;
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
return res;
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
return mutation;
|
|
90
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { SetOptional } from 'type-fest';
|
|
2
|
-
import { type CreateAiOGrabPayDepositInput } from '../../services/wallet';
|
|
3
|
-
import type { Deposit, Mutation } from '../../types';
|
|
4
|
-
export declare const useCreateAiOGrabPayDepositMutation: Mutation<Deposit, SetOptional<CreateAiOGrabPayDepositInput, 'id'>>;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { ObjectId } from '@opexa/object-id';
|
|
2
|
-
import { useMutation } from '@tanstack/react-query';
|
|
3
|
-
import { clamp } from 'lodash-es';
|
|
4
|
-
import invariant from 'tiny-invariant';
|
|
5
|
-
import { OPEXAPAY_ENDPOINT } from '../../constants/index.js';
|
|
6
|
-
import { ObjectType } from '../../services/ObjectType.js';
|
|
7
|
-
import { createAiOGrabPayDeposit, getDeposit, } from '../../services/wallet.js';
|
|
8
|
-
import { createPoll } from '../../utils/createPoll.js';
|
|
9
|
-
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
10
|
-
import { getCreateAiOGrabPayDepositMutationKey } from '../../utils/mutationKeys.js';
|
|
11
|
-
import { parseDecimal } from '../../utils/parseDecimal.js';
|
|
12
|
-
import { getAvailableQuestsQueryKey, getDepositsCountQueryKey, } from '../../utils/queryKeys.js';
|
|
13
|
-
import { getSession } from '../services/getSession.js';
|
|
14
|
-
export const useCreateAiOGrabPayDepositMutation = (config) => {
|
|
15
|
-
const queryClient = getQueryClient();
|
|
16
|
-
const mutation = useMutation({
|
|
17
|
-
...config,
|
|
18
|
-
mutationKey: getCreateAiOGrabPayDepositMutationKey(),
|
|
19
|
-
mutationFn: async (input) => {
|
|
20
|
-
const id = input.id ?? ObjectId.generate(ObjectType.Deposit).toString();
|
|
21
|
-
const session = await getSession();
|
|
22
|
-
invariant(session.status === 'authenticated');
|
|
23
|
-
const successRedirectUrl = new URL('/transactions', input.redirectUrl);
|
|
24
|
-
successRedirectUrl.searchParams.set('tab', 'deposits');
|
|
25
|
-
successRedirectUrl.searchParams.set('id', id);
|
|
26
|
-
await createAiOGrabPayDeposit({
|
|
27
|
-
...input,
|
|
28
|
-
id,
|
|
29
|
-
redirectUrl: `${OPEXAPAY_ENDPOINT}/aio/success?redirectUrl=${encodeURIComponent(successRedirectUrl.toString())}`,
|
|
30
|
-
}, {
|
|
31
|
-
headers: {
|
|
32
|
-
Authorization: `Bearer ${session.token}`,
|
|
33
|
-
...(session.domain && {
|
|
34
|
-
Domain: session.domain,
|
|
35
|
-
}),
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
const poll = createPoll(async () => {
|
|
39
|
-
const session = await getSession();
|
|
40
|
-
invariant(session.status === 'authenticated');
|
|
41
|
-
return await getDeposit(id, {
|
|
42
|
-
headers: {
|
|
43
|
-
Authorization: `Bearer ${session.token}`,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
}, {
|
|
47
|
-
until(res) {
|
|
48
|
-
return (!!res?.checkoutUrl || !!res?.error || res?.status === 'FAILED');
|
|
49
|
-
},
|
|
50
|
-
interval: 1000,
|
|
51
|
-
maxAttempt: 20,
|
|
52
|
-
});
|
|
53
|
-
const res = await poll();
|
|
54
|
-
if (!res?.checkoutUrl) {
|
|
55
|
-
const error = new Error();
|
|
56
|
-
error.name = 'AiOGrabPayDepositError';
|
|
57
|
-
error.message = 'Failed to process Grab Pay deposit';
|
|
58
|
-
throw error;
|
|
59
|
-
}
|
|
60
|
-
const depositsCount = queryClient.getQueryData(getDepositsCountQueryKey()) ?? 0;
|
|
61
|
-
if (depositsCount <= 0) {
|
|
62
|
-
queryClient.setQueryData(getAvailableQuestsQueryKey(), (prev) => {
|
|
63
|
-
return prev?.map((quest) => {
|
|
64
|
-
const progressPercentage = clamp(parseDecimal(quest.progressPercentage, 0) + 50, 100);
|
|
65
|
-
if (quest.type === 'ONBOARDING') {
|
|
66
|
-
return {
|
|
67
|
-
...quest,
|
|
68
|
-
status: progressPercentage >= 100 ? 'COMPLETED' : quest.status,
|
|
69
|
-
progressPercentage: progressPercentage.toFixed(2),
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
return quest;
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
return res;
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
return mutation;
|
|
80
|
-
};
|