@opexa/portal-components 0.0.468 → 0.0.470

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.
Files changed (88) hide show
  1. package/dist/components/Banner/Banner.client.d.ts +12 -0
  2. package/dist/components/Banner/Banner.client.js +49 -0
  3. package/dist/components/DigitainLauncher/Loading.d.ts +1 -0
  4. package/dist/components/DigitainLauncher/Loading.js +5 -0
  5. package/dist/components/KYC/BasicInformation.d.ts +1 -0
  6. package/dist/components/KYC/BasicInformation.js +101 -0
  7. package/dist/components/KYC/IdentityVerification.d.ts +1 -0
  8. package/dist/components/KYC/IdentityVerification.js +120 -0
  9. package/dist/components/KYC/Indicator.d.ts +1 -0
  10. package/dist/components/KYC/Indicator.js +8 -0
  11. package/dist/components/KYC/KYC.lazy.d.ts +6 -0
  12. package/dist/components/KYC/KYC.lazy.js +45 -0
  13. package/dist/components/KYC/KYCContext.d.ts +6 -0
  14. package/dist/components/KYC/KYCContext.js +2 -0
  15. package/dist/components/KYC/PersonalInformation.d.ts +1 -0
  16. package/dist/components/KYC/PersonalInformation.js +122 -0
  17. package/dist/components/KYC/useKYC.d.ts +25 -0
  18. package/dist/components/KYC/useKYC.js +38 -0
  19. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +1 -0
  20. package/dist/components/PortalProvider/CXDTokenObserver.js +30 -0
  21. package/dist/components/Quests/JourneyQuest.d.ts +5 -1
  22. package/dist/components/Quests/JourneyQuest.js +7 -6
  23. package/dist/components/Quests/OnboardingQuest.d.ts +5 -1
  24. package/dist/components/Quests/OnboardingQuest.js +2 -2
  25. package/dist/components/Quests/Quests.client.d.ts +2 -0
  26. package/dist/components/Quests/Quests.client.js +5 -1
  27. package/dist/components/SignIn/utils.d.ts +8 -0
  28. package/dist/components/SignIn/utils.js +26 -0
  29. package/dist/constants/Branches.d.ts +2 -0
  30. package/dist/constants/Branches.js +42 -0
  31. package/dist/images/responsible-gaming-yellow.png +0 -0
  32. package/dist/services/wallet.d.ts +53 -53
  33. package/dist/services/wallet.js +59 -59
  34. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
  35. package/dist/third-parties/FacebookPixel/FacebookPixel.js +4 -0
  36. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  37. package/dist/third-parties/FacebookPixel/api.js +1 -0
  38. package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
  39. package/dist/third-parties/FacebookPixel/index.js +1 -0
  40. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
  41. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +4 -0
  42. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  43. package/dist/third-parties/GoogleRecaptcha/api.js +1 -0
  44. package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
  45. package/dist/third-parties/GoogleRecaptcha/index.js +1 -0
  46. package/dist/third-parties/index.d.ts +2 -0
  47. package/dist/third-parties/index.js +2 -0
  48. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  49. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  50. package/dist/ui/Badge/Badge.d.ts +12 -12
  51. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  52. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  53. package/dist/ui/Carousel/Carousel.d.ts +99 -99
  54. package/dist/ui/Carousel/carousel.recipe.d.ts +11 -11
  55. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  56. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  57. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  58. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  59. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  60. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  61. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  62. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  63. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  64. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  65. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  66. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  67. package/dist/ui/Field/Field.d.ts +21 -21
  68. package/dist/ui/Field/field.recipe.d.ts +3 -3
  69. package/dist/ui/Menu/Menu.d.ts +252 -252
  70. package/dist/ui/Menu/menu.recipe.d.ts +14 -14
  71. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  72. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  73. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  74. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  75. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  76. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  77. package/dist/ui/Popover/Popover.d.ts +55 -55
  78. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  79. package/dist/ui/Progress/Progress.d.ts +27 -27
  80. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  81. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  82. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  83. package/dist/ui/Select/Select.d.ts +45 -45
  84. package/dist/ui/Select/select.recipe.d.ts +3 -3
  85. package/dist/ui/Table/Table.d.ts +21 -21
  86. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  87. package/dist/ui/Table/table.recipe.d.ts +3 -3
  88. package/package.json +1 -1
@@ -27,7 +27,7 @@ const GoogleSignInButton = dynamic(() => import('../SignIn/GoogleSignInTrigger.j
27
27
  ssr: false,
28
28
  loading: () => null,
29
29
  });
30
- export function JourneyQuest() {
30
+ export function JourneyQuest(props) {
31
31
  const disclosure = useDisclosure();
32
32
  const quest = useQuestContext();
33
33
  const featureFlag = useFeatureFlag();
@@ -77,7 +77,7 @@ export function JourneyQuest() {
77
77
  const localeInfo = useLocaleInfo();
78
78
  return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex h-full w-full flex-col space-y-6 rounded-2xl border border-border-primary bg-bg-tertiary px-4 pt-5 pb-6", children: [_jsxs("div", { className: "flex flex-col space-y-2", children: [_jsxs("div", { className: "flex max-h-7.5 items-center justify-between", children: [_jsx(RemainingTime, { endOfDay: true }), quest.status === 'COMPLETED' && (_jsx(Badge.Root, { colorScheme: "success", size: "lg", round: false, children: _jsxs(Badge.Label, { children: ["Final Bonus:", ' ', formatNumber(quest.bonus, {
79
79
  currency: localeInfo.currency.code,
80
- })] }) }))] }), _jsx("p", { className: "font-semibold text-xl", children: quest?.name || 'Journey Quest' }), _jsxs("div", { className: "flex w-full items-center space-x-2", children: [_jsx(Progress.Root, { max: 100, className: "h-2 rounded-full bg-bg-primary", value: progressValue, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, { className: "bg-utility-brand-600" }) }) }), _jsxs("p", { className: "text-text-quarterary-brand text-xs", children: [currentMilestone, "/", totalMilestones] })] }), _jsx("div", { className: "flex w-full flex-col space-y-3", children: milestones.map((milestone) => (_jsx(QuestMilestone, { label: milestone.label, bonus: milestone.bonus, isCompleted: milestone.isCompleted }, milestone.key))) })] }), _jsx("div", { className: "flex h-full items-end", children: _jsx(Button, { size: "sm", onClick: handleViewDetails, "aria-label": "View Details", disabled: false, className: "disabled:bg-bg-primary disabled:text-text-disabled", children: "View Details" }) })] }), _jsx(Rules, { open: disclosure.open, onOpenChange: disclosure.setOpen, quest: quest, milestones: milestones })] }));
80
+ })] }) }))] }), _jsx("p", { className: "font-semibold text-xl", children: quest?.name || 'Journey Quest' }), _jsxs("div", { className: "flex w-full items-center space-x-2", children: [_jsx(Progress.Root, { max: 100, className: "h-2 rounded-full bg-bg-primary", value: progressValue, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, { className: "bg-utility-brand-600" }) }) }), _jsxs("p", { className: "text-text-quarterary-brand text-xs", children: [currentMilestone, "/", totalMilestones] })] }), _jsx("div", { className: "flex w-full flex-col space-y-3", children: milestones.map((milestone) => (_jsx(QuestMilestone, { label: milestone.label, bonus: milestone.bonus, isCompleted: milestone.isCompleted, checkboxControlStyle: props.checkboxControlStyle }, milestone.key))) })] }), _jsx("div", { className: "flex h-full items-end", children: _jsx(Button, { size: "sm", onClick: handleViewDetails, "aria-label": "View Details", disabled: false, className: "disabled:bg-bg-primary disabled:text-text-disabled", children: "View Details" }) })] }), _jsx(Rules, { open: disclosure.open, onOpenChange: disclosure.setOpen, quest: quest, milestones: milestones })] }));
81
81
  }
82
82
  function Rules(props) {
83
83
  const [open, setOpen] = useControllableState({
@@ -100,8 +100,9 @@ function Rules(props) {
100
100
  return false;
101
101
  return milestones.every((milestone) => milestone.isCompleted);
102
102
  }, [milestones]);
103
- return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: open, onOpenChange: (details) => setOpen(details.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: "mx-auto mt-40 min-h-auto min-w-[21.438rem] max-w-[400px] overflow-y-auto rounded-xl px-4 py-5", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "group flex flex-col space-y-5 text-sm text-text-quarterary-brand", children: [_jsx("h2", { className: "font-semibold text-lg text-text-primary-900", children: quest?.name || 'Quest' }), _jsx("p", { children: quest?.description ||
104
- 'Ready for a challenge? Complete them all and get amazing rewards!' }), milestones.map((milestone) => (_jsxs("div", { className: "flex flex-col space-y-2.5 rounded-xl bg-bg-tertiary p-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("p", { className: "font-medium text-base text-white", children: milestone.label }), milestone.isCompleted && (_jsx("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs", children: "Complete" }))] }), milestone.description ? (_jsx(Prose, { dangerouslySetInnerHTML: {
103
+ return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: open, onOpenChange: (details) => setOpen(details.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: "mx-auto mt-40 min-h-auto min-w-[21.438rem] max-w-[400px] rounded-xl px-4 py-5", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "group flex flex-col space-y-5 text-sm text-text-quarterary-brand", children: [_jsx("h2", { className: "font-semibold text-lg text-text-primary-900", children: quest?.name || 'Quest' }), _jsxs("div", { className: "relative", children: [_jsx("div", { className: "scrollbar:h-2 max-h-[30vh] scrollbar:w-2 overflow-y-auto scrollbar-thumb:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent", children: quest?.description ? (_jsx(Prose, { dangerouslySetInnerHTML: {
104
+ __html: quest.description,
105
+ } })) : (_jsx("p", { children: "Ready for a challenge? Complete them all and get amazing rewards!" })) }), _jsx("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 h-8 bg-gradient-to-t from-bg-primary to-transparent" })] }), milestones.map((milestone) => (_jsxs("div", { className: "flex flex-col space-y-2.5 rounded-xl bg-bg-tertiary p-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("p", { className: "font-medium text-base text-white", children: milestone.label }), milestone.isCompleted && (_jsx("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs", children: "Complete" }))] }), milestone.description ? (_jsx(Prose, { dangerouslySetInnerHTML: {
105
106
  __html: milestone.description,
106
107
  } })) : milestone.bonus ? (_jsxs("p", { className: "ml-1", children: [milestone.key === 'REGISTRATION' &&
107
108
  `Register and win Php ${milestone.bonus} Bonus`, milestone.key === 'ACCOUNT_VERIFICATION' &&
@@ -126,9 +127,9 @@ function Rules(props) {
126
127
  milestone.key === 'LINK_FACEBOOK_ACCOUNT' && (_jsx(FacebookSignInTrigger, { text: "Link Facebook Account", className: "flex h-10 w-full items-center justify-center gap-md rounded-md bg-button-primary-bg px-3 font-semibold text-button-primary-fg text-sm shadow-xs disabled:opacity-60 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:shadow-none" })), !milestone.isCompleted &&
127
128
  milestone.key === 'LINK_GOOGLE_ACCOUNT' && (_jsx(GoogleSignInButton, { text: "Link Google Account", className: "flex h-10 w-full items-center justify-center gap-md rounded-md bg-button-primary-bg px-3 font-semibold text-button-primary-fg text-sm shadow-xs disabled:opacity-60 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:shadow-none" }))] }, milestone.key))), quest?.bonus && (_jsx("div", { className: "flex h-full items-end", children: allMilestonesCompleted ? (_jsx(Button, { size: "sm", onClick: () => setOpen(false), "aria-label": "Close", className: "w-full", children: "Close" })) : (_jsx("div", { className: "w-full rounded-md border border-bg-primary-hover bg-button-secondary-bg px-3.5 py-2.5 text-center text-white", children: _jsxs("p", { children: ["Complete target to", ' ', _jsxs("span", { className: "text-brand-400", children: ["\u20B1", quest?.bonus] }), ' ', "bonus!"] }) })) }))] })] }) })] }) }));
128
129
  }
129
- function QuestMilestone({ label, bonus, isCompleted = false, }) {
130
+ function QuestMilestone({ label, bonus, isCompleted = false, checkboxControlStyle, }) {
130
131
  const localeInfo = useLocaleInfo();
131
- return (_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs(Checkbox.Root, { checked: isCompleted, children: [_jsx(Checkbox.Control, { className: "bg-transparent", children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { className: "font-medium text-sm leading-tight", children: label }), _jsx(Checkbox.HiddenInput, {})] }), bonus && (_jsx("div", { className: "rounded-[6px] border border-border-secondary bg-bg-secondary-alt px-1.5 py-0.5", children: _jsxs("p", { className: "font-medium text-xs leading-tight", children: ["+", formatNumber(bonus, {
132
+ return (_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs(Checkbox.Root, { checked: isCompleted, children: [_jsx(Checkbox.Control, { className: "bg-transparent", style: checkboxControlStyle, children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { className: "font-medium text-sm leading-tight", children: label }), _jsx(Checkbox.HiddenInput, {})] }), bonus && (_jsx("div", { className: "rounded-[6px] border border-border-secondary bg-bg-secondary-alt px-1.5 py-0.5", children: _jsxs("p", { className: "font-medium text-xs leading-tight", children: ["+", formatNumber(bonus, {
132
133
  currency: localeInfo.currency.code,
133
134
  }), ' ', "Bonus"] }) }))] }));
134
135
  }
@@ -1 +1,5 @@
1
- export declare function OnboardingQuest(): import("react/jsx-runtime").JSX.Element;
1
+ import type { CSSProperties } from 'react';
2
+ export interface OnboardingQuestProps {
3
+ checkboxControlStyle?: CSSProperties;
4
+ }
5
+ export declare function OnboardingQuest(props: OnboardingQuestProps): import("react/jsx-runtime").JSX.Element;
@@ -17,7 +17,7 @@ import { Dialog } from '../../ui/Dialog/index.js';
17
17
  import { Portal } from '../../ui/Portal/index.js';
18
18
  import { useQuestContext } from './QuestsContext.js';
19
19
  import { RemainingTime } from './RemainingTime.js';
20
- export function OnboardingQuest() {
20
+ export function OnboardingQuest(props) {
21
21
  const quest = useQuestContext();
22
22
  const disclosure = useDisclosure();
23
23
  const globalStore = useGlobalStore(useShallow((ctx) => ({
@@ -26,7 +26,7 @@ export function OnboardingQuest() {
26
26
  })));
27
27
  const memberVerificationQuery = useMemberVerificationQuery();
28
28
  const remainingTime = useRemainingTime(quest.endDateTime);
29
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex h-full w-full flex-col space-y-6 rounded-2xl border border-border-primary bg-bg-tertiary px-4 pt-5 pb-6", children: [_jsxs("div", { className: "flex flex-col space-y-2", children: [_jsxs("div", { className: "flex max-h-7.5 items-start justify-between", children: [_jsx(RemainingTime, {}), _jsx("button", { type: "button", className: "flex size-9 cursor-pointer items-center justify-center rounded-md border border-border-secondary bg-bg-primary", onClick: () => disclosure.setOpen(true), "aria-label": "View Rules", children: _jsx(InfoCircleIcon, { className: "size-5 text-text-disabled" }) })] }), _jsx("h2", { className: "font-semibold text-xl", children: quest.name }), _jsx("div", { className: "text-wrap font-normal text-sm text-text-secondary-700", dangerouslySetInnerHTML: { __html: quest.description } })] }), _jsxs("div", { className: "w-full grow space-y-2", children: [_jsxs(Checkbox.Root, { checked: quest.accountVerificationCompleted, onCheckedChange: noop, children: [_jsx(Checkbox.Control, { className: "bg-transparent", children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { className: "font-medium text-sm leading-tight", children: "Complete personal verification" }), _jsx(Checkbox.HiddenInput, {})] }), _jsxs(Checkbox.Root, { checked: quest.firstDepositCompleted, onCheckedChange: noop, children: [_jsx(Checkbox.Control, { className: "bg-transparent", children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { className: "font-medium text-sm leading-tight", children: "Make your first deposit" }), _jsx(Checkbox.HiddenInput, {})] })] }), _jsxs("div", { className: "flex gap-lg", children: [_jsxs(Button, { size: "sm", onClick: () => {
29
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex h-full w-full flex-col space-y-6 rounded-2xl border border-border-primary bg-bg-tertiary px-4 pt-5 pb-6", children: [_jsxs("div", { className: "flex flex-col space-y-2", children: [_jsxs("div", { className: "flex max-h-7.5 items-start justify-between", children: [_jsx(RemainingTime, {}), _jsx("button", { type: "button", className: "flex size-9 cursor-pointer items-center justify-center rounded-md border border-border-secondary bg-bg-primary", onClick: () => disclosure.setOpen(true), "aria-label": "View Rules", children: _jsx(InfoCircleIcon, { className: "size-5 text-text-disabled" }) })] }), _jsx("h2", { className: "font-semibold text-xl", children: quest.name }), _jsx("div", { className: "text-wrap font-normal text-sm text-text-secondary-700", dangerouslySetInnerHTML: { __html: quest.description } })] }), _jsxs("div", { className: "w-full grow space-y-2", children: [_jsxs(Checkbox.Root, { checked: quest.accountVerificationCompleted, onCheckedChange: noop, children: [_jsx(Checkbox.Control, { className: "bg-transparent", style: props.checkboxControlStyle, children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { className: "font-medium text-sm leading-tight", children: "Complete personal verification" }), _jsx(Checkbox.HiddenInput, {})] }), _jsxs(Checkbox.Root, { checked: quest.firstDepositCompleted, onCheckedChange: noop, children: [_jsx(Checkbox.Control, { className: "bg-transparent", style: props.checkboxControlStyle, children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { className: "font-medium text-sm leading-tight", children: "Make your first deposit" }), _jsx(Checkbox.HiddenInput, {})] })] }), _jsxs("div", { className: "flex gap-lg", children: [_jsxs(Button, { size: "sm", onClick: () => {
30
30
  globalStore.kyc.setOpen(true);
31
31
  }, disabled: quest.accountVerificationCompleted ||
32
32
  quest.status === 'COMPLETED' ||
@@ -14,5 +14,7 @@ export interface QuestsProps {
14
14
  uncompletedIcon?: 'x' | 'minus';
15
15
  customComplete?: ReactNode;
16
16
  showTurnoverDecimals?: boolean;
17
+ /** Optional styling hook for checkbox control inside specific quests */
18
+ checkboxControlStyle?: CSSProperties;
17
19
  }
18
20
  export declare function Quests__client(props: QuestsProps): import("react/jsx-runtime").JSX.Element;
@@ -68,6 +68,10 @@ export function Quests__client(props) {
68
68
  ? classNames?.dailyCheckInQuest
69
69
  : '', uncompletedIcon: props.uncompletedIcon, customComplete: quest.type === 'WAGERING'
70
70
  ? props.customComplete
71
- : undefined, showTurnoverDecimals: props.showTurnoverDecimals }) }) }, quest.id));
71
+ : undefined, showTurnoverDecimals: props.showTurnoverDecimals, ...(quest.type === 'JOURNEY' || quest.type === 'ONBOARDING'
72
+ ? {
73
+ checkboxControlStyle: props.checkboxControlStyle,
74
+ }
75
+ : {}) }) }) }, quest.id));
72
76
  })) : (_jsx(NoQuests, { heading: `${tab.toLowerCase()} Quests`, description: `You have no ${tab.toLowerCase()} quests yet.` })) })] }));
73
77
  }
@@ -0,0 +1,8 @@
1
+ type Options = {
2
+ accountName?: string;
3
+ siteName?: string;
4
+ signInOptions?: 'MOBILE_NUMBER' | 'NAME_AND_PASSWORD';
5
+ };
6
+ export type ErrorCode = 'MEMBER_ACCOUNT_BLACKLISTED' | 'MEMBER_ACCOUNT_SUSPENDED' | 'INVALID_RECAPTCHA_RESPONSE' | 'MEMBER_NOT_FOUND' | 'RATE_LIMIT_REACH' | 'NOT_READY_TO_SEND_VERIFICATION_ERROR' | 'Forbidden';
7
+ export declare function getFriendlyErrorMessage(code: ErrorCode, options?: Options): string;
8
+ export {};
@@ -0,0 +1,26 @@
1
+ export function getFriendlyErrorMessage(code, options) {
2
+ const accountName = options?.accountName ?? '';
3
+ const siteName = options?.siteName ?? '';
4
+ const signInOptions = options?.signInOptions ?? 'NAME_AND_PASSWORD';
5
+ switch (code) {
6
+ case 'MEMBER_ACCOUNT_BLACKLISTED':
7
+ return `Your account ${accountName} has been blacklisted due to a serious violation of our policies. For more information or to appeal, please contact the ${siteName} Chat Support team.`;
8
+ case 'MEMBER_ACCOUNT_SUSPENDED':
9
+ return `Your account ${accountName} has been temporarily suspended. Please reach out to the ${siteName} Chat Support team to learn more and get help with resolving the issue.`;
10
+ case 'INVALID_RECAPTCHA_RESPONSE':
11
+ return 'Invalid reCAPTCHA response';
12
+ case 'MEMBER_NOT_FOUND':
13
+ return 'Account not found. Please check your username and try again.';
14
+ case 'RATE_LIMIT_REACH':
15
+ return 'Rate limit exceeded';
16
+ case 'NOT_READY_TO_SEND_VERIFICATION_ERROR':
17
+ return 'Your account is not ready to send verification requests. Please try again later.';
18
+ case 'Forbidden':
19
+ if (signInOptions === 'MOBILE_NUMBER') {
20
+ return 'Invalid verification code. Please check the code and try again.';
21
+ }
22
+ return 'Invalid username or password, please try again.';
23
+ default:
24
+ return 'Something went wrong. Please try again later.';
25
+ }
26
+ }
@@ -0,0 +1,2 @@
1
+ import type { Branch } from '../types';
2
+ export declare const BRANCHES: Branch[];
@@ -0,0 +1,42 @@
1
+ export const BRANCHES = [
2
+ {
3
+ code: 'BRCAL',
4
+ name: 'Bingo Republic 2nd floor Primark Center Deparo St., Caloocan City',
5
+ },
6
+ {
7
+ code: 'BRNAG',
8
+ name: 'Bingo Republic 3rd floor Robinsons Mall, Naga City, Camarines Sur',
9
+ },
10
+ {
11
+ code: 'BRANT',
12
+ name: 'Bingo Republic 2nd floor Robinsons Mall, San Vicente,Antique',
13
+ },
14
+ {
15
+ code: 'BRCLA',
16
+ name: 'Clark',
17
+ },
18
+ {
19
+ code: 'BRLAG',
20
+ name: 'Laguna',
21
+ },
22
+ {
23
+ code: 'BREAS',
24
+ name: 'Eastwood City, Quezon City',
25
+ },
26
+ {
27
+ code: 'BRMAR',
28
+ name: 'Bingo ng Bayan 4th floor Marikina Public Market, Marikina City',
29
+ },
30
+ {
31
+ code: 'BRILO',
32
+ name: 'Iloilo',
33
+ },
34
+ {
35
+ code: 'BRFIM',
36
+ name: 'Fisher Mall,Quezon City',
37
+ },
38
+ {
39
+ code: 'BRCAC',
40
+ name: 'Villa Caceres Hotel, Naga City,Camsur',
41
+ },
42
+ ];
@@ -1,6 +1,6 @@
1
- import type { Simplify, SimplifyDeep } from "type-fest";
2
- import type { Bonus, Cashback, CashbackBonus, DateFilterField, Deposit, EnumFilterField, FavoriteGame, GameSession, InstapayBank, MayaSession, ObjectIdFilterField, PointsWallet, Promo, PromoType, Wallet } from "../types";
3
- import { type GraphQLRequestOptions } from "./graphqlRequest";
1
+ import type { Simplify, SimplifyDeep } from 'type-fest';
2
+ import type { Bonus, Cashback, CashbackBonus, DateFilterField, Deposit, EnumFilterField, FavoriteGame, GameSession, InstapayBank, MayaSession, ObjectIdFilterField, PointsWallet, Promo, PromoType, Wallet } from '../types';
3
+ import { type GraphQLRequestOptions } from './graphqlRequest';
4
4
  export interface PromosQuery {
5
5
  promos: Promo[];
6
6
  }
@@ -23,7 +23,7 @@ export interface CashbackQueryVariables {
23
23
  id: string;
24
24
  }
25
25
  export declare const getCashback: (id: string, options?: GraphQLRequestOptions) => Promise<Cashback | null>;
26
- export type AvailablePromosInput = SimplifyDeep<AvailablePromosQueryVariables["filter"]>;
26
+ export type AvailablePromosInput = SimplifyDeep<AvailablePromosQueryVariables['filter']>;
27
27
  export interface AvailablePromosQuery {
28
28
  availablePromos: Promo[];
29
29
  }
@@ -44,7 +44,7 @@ export interface CashbackBonusIdsQuery {
44
44
  }
45
45
  export declare const getCashbackBonusesCount: (options?: GraphQLRequestOptions) => Promise<number>;
46
46
  export type ClaimCashbackBonusError = {
47
- name: "CashbackBonusDoesNotExistError";
47
+ name: 'CashbackBonusDoesNotExistError';
48
48
  message: string;
49
49
  };
50
50
  export interface ClaimCashbackBonusMutation {
@@ -92,34 +92,34 @@ export interface DepositQueryVariables {
92
92
  }
93
93
  export declare const getDeposit: (id: string, options?: GraphQLRequestOptions) => Promise<Deposit | null>;
94
94
  export type CreateDepositError = {
95
- name: "DepositPromoMaximumAmountExceededError";
95
+ name: 'DepositPromoMaximumAmountExceededError';
96
96
  message: string;
97
97
  } | {
98
- name: "DepositPromoMinimumAmountNotMetError";
98
+ name: 'DepositPromoMinimumAmountNotMetError';
99
99
  message: string;
100
100
  } | {
101
- name: "MaximumDepositAmountExceededError";
101
+ name: 'MaximumDepositAmountExceededError';
102
102
  message: string;
103
103
  } | {
104
- name: "MinimumDepositAmountNotMetError";
104
+ name: 'MinimumDepositAmountNotMetError';
105
105
  message: string;
106
106
  } | {
107
- name: "MinimumFirstDepositAmountNotMetError";
107
+ name: 'MinimumFirstDepositAmountNotMetError';
108
108
  message: string;
109
109
  } | {
110
- name: "PromoNotEnabledError";
110
+ name: 'PromoNotEnabledError';
111
111
  message: string;
112
112
  } | {
113
- name: "WalletDoesNotExistError";
113
+ name: 'WalletDoesNotExistError';
114
114
  message: string;
115
115
  } | {
116
- name: "ReCAPTCHAVerificationFailedError";
116
+ name: 'ReCAPTCHAVerificationFailedError';
117
117
  message: string;
118
118
  } | {
119
- name: "UPIReferenceNotAvailableError";
119
+ name: 'UPIReferenceNotAvailableError';
120
120
  message: string;
121
121
  } | {
122
- name: "GCashDirectApiRequestError";
122
+ name: 'GCashDirectApiRequestError';
123
123
  message: string;
124
124
  };
125
125
  export interface CreateGCashDepositMutation {
@@ -132,7 +132,7 @@ export interface CreateGCashDepositMutationVariables {
132
132
  promo?: string;
133
133
  };
134
134
  }
135
- export type CreateGCashDepositInput = Simplify<CreateGCashDepositMutationVariables["input"]>;
135
+ export type CreateGCashDepositInput = Simplify<CreateGCashDepositMutationVariables['input']>;
136
136
  export declare const createGCashDeposit: (input: CreateGCashDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
137
137
  export interface CreateLibanganDepositMutationVariables {
138
138
  input: {
@@ -142,7 +142,7 @@ export interface CreateLibanganDepositMutationVariables {
142
142
  redirectUrl?: string;
143
143
  };
144
144
  }
145
- export type CreateLibanganDepositInput = Simplify<CreateLibanganDepositMutationVariables["input"]>;
145
+ export type CreateLibanganDepositInput = Simplify<CreateLibanganDepositMutationVariables['input']>;
146
146
  export interface CreateLibanganDepositMutation {
147
147
  createLibanganPayInDeposit?: null | CreateDepositError;
148
148
  }
@@ -155,7 +155,7 @@ export interface CreateLibanganDepositMutationVariables {
155
155
  };
156
156
  }
157
157
  export declare const createLibanganDeposit: (input: CreateLibanganDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
158
- export type CreatePisoPayDepositInput = Simplify<CreatePisoPayDepositMutationVariables["input"]>;
158
+ export type CreatePisoPayDepositInput = Simplify<CreatePisoPayDepositMutationVariables['input']>;
159
159
  export interface CreatePisoPayDepositMutation {
160
160
  createPisoPayDeposit?: null | CreateDepositError;
161
161
  }
@@ -178,7 +178,7 @@ export interface CreateGCashDirectWebpayDepositMutationVariables {
178
178
  promo?: string;
179
179
  };
180
180
  }
181
- export type CreateGCashDirectWebpayDepositInput = Simplify<CreateGCashDirectWebpayDepositMutationVariables["input"]>;
181
+ export type CreateGCashDirectWebpayDepositInput = Simplify<CreateGCashDirectWebpayDepositMutationVariables['input']>;
182
182
  export declare const createGCashDirectWebpayDeposit: (input: CreateGCashDirectWebpayDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
183
183
  export interface CreateMayaDepositMutation {
184
184
  createMayaDeposit?: null | CreateDepositError;
@@ -190,7 +190,7 @@ export interface CreateMayaDepositMutationVariables {
190
190
  promo?: string;
191
191
  };
192
192
  }
193
- export type CreateMayaDepositInput = Simplify<CreateMayaDepositMutationVariables["input"]>;
193
+ export type CreateMayaDepositInput = Simplify<CreateMayaDepositMutationVariables['input']>;
194
194
  export declare const createMayaDeposit: (input: CreateMayaDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
195
195
  export interface CreateAIOQRPHDepositMutation {
196
196
  createAIOQRPHDeposit?: null | CreateDepositError;
@@ -202,7 +202,7 @@ export interface CreateAIOQRPHDepositMutationVariables {
202
202
  promo?: string;
203
203
  };
204
204
  }
205
- export type CreateAIOQRPHDepositInput = Simplify<CreateMayaAppDepositMutationVariables["input"]>;
205
+ export type CreateAIOQRPHDepositInput = Simplify<CreateMayaAppDepositMutationVariables['input']>;
206
206
  export declare const createAIOQRPHDeposit: (input: CreateAIOQRPHDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
207
207
  export interface CreateAIOOnlineBankDepositMutation {
208
208
  createAIOOnlineBankDeposit?: null | CreateDepositError;
@@ -214,7 +214,7 @@ export interface CreateAIOOnlineBankDepositMutationVariables {
214
214
  promo?: string;
215
215
  };
216
216
  }
217
- export type CreateAIOOnlineBankDepositInput = Simplify<CreateAIOOnlineBankDepositMutationVariables["input"]>;
217
+ export type CreateAIOOnlineBankDepositInput = Simplify<CreateAIOOnlineBankDepositMutationVariables['input']>;
218
218
  export declare const createAIOOnlineBankDeposit: (input: CreateAIOOnlineBankDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
219
219
  export interface CreateManualBankDepositMutation {
220
220
  createManualBankDeposit?: null | CreateDepositError;
@@ -227,7 +227,7 @@ export interface CreateManualBankDeposiMutationVariables {
227
227
  promo?: string;
228
228
  };
229
229
  }
230
- export type CreateManualBankDepositInput = Simplify<CreateManualBankDeposiMutationVariables["input"]>;
230
+ export type CreateManualBankDepositInput = Simplify<CreateManualBankDeposiMutationVariables['input']>;
231
231
  export declare const createManualBankDeposit: (input: CreateManualBankDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
232
232
  export interface CreateManualUPIDepositMutation {
233
233
  createManualUPIDeposit?: null | CreateDepositError;
@@ -241,7 +241,7 @@ export interface CreateManualUPIDepositMutationVariables {
241
241
  promo?: string;
242
242
  };
243
243
  }
244
- export type CreateManualUPIDepositInput = Simplify<CreateManualUPIDepositMutationVariables["input"]>;
244
+ export type CreateManualUPIDepositInput = Simplify<CreateManualUPIDepositMutationVariables['input']>;
245
245
  export declare const createManualUPIDeposit: (input: CreateManualUPIDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
246
246
  export interface CreateMayaAppDepositMutation {
247
247
  createMayaAppDeposit?: null | CreateDepositError;
@@ -253,31 +253,31 @@ export interface CreateMayaAppDepositMutationVariables {
253
253
  promo?: string;
254
254
  };
255
255
  }
256
- export type CreateMayaAppDepositInput = Simplify<CreateMayaAppDepositMutationVariables["input"]>;
256
+ export type CreateMayaAppDepositInput = Simplify<CreateMayaAppDepositMutationVariables['input']>;
257
257
  export declare const createMayaAppDeposit: (input: CreateMayaAppDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
258
258
  export type CreateWithdrawalError = {
259
- name: "AccountNotVerifiedError";
259
+ name: 'AccountNotVerifiedError';
260
260
  message: string;
261
261
  } | {
262
- name: "InvalidTransactionPasswordError";
262
+ name: 'InvalidTransactionPasswordError';
263
263
  message: string;
264
264
  } | {
265
- name: "InvalidWithdrawalAmountError";
265
+ name: 'InvalidWithdrawalAmountError';
266
266
  message: string;
267
267
  } | {
268
- name: "MobileNumberNotVerifiedError";
268
+ name: 'MobileNumberNotVerifiedError';
269
269
  message: string;
270
270
  } | {
271
- name: "NotEnoughBalanceError";
271
+ name: 'NotEnoughBalanceError';
272
272
  message: string;
273
273
  } | {
274
- name: "WithdrawalDailyLimitExceededError";
274
+ name: 'WithdrawalDailyLimitExceededError';
275
275
  message: string;
276
276
  } | {
277
- name: "ReCAPTCHAVerificationFailedError";
277
+ name: 'ReCAPTCHAVerificationFailedError';
278
278
  message: string;
279
279
  } | {
280
- name: "WalletDoesNotExistError";
280
+ name: 'WalletDoesNotExistError';
281
281
  message: string;
282
282
  };
283
283
  export interface CreateGCashWithdrawalMutation {
@@ -302,12 +302,12 @@ export interface CreateGCashStandardCashInWithdrawalMutationVariables {
302
302
  recipientMobileNumber: string;
303
303
  };
304
304
  }
305
- export type CreateGCashWithdrawalInput = Simplify<CreateGCashWithdrawalMutationVariables["input"]>;
306
- export type CreateGCashStandardCashInWithdrawalInput = Simplify<CreateGCashStandardCashInWithdrawalMutationVariables["input"]>;
305
+ export type CreateGCashWithdrawalInput = Simplify<CreateGCashWithdrawalMutationVariables['input']>;
306
+ export type CreateGCashStandardCashInWithdrawalInput = Simplify<CreateGCashStandardCashInWithdrawalMutationVariables['input']>;
307
307
  export declare const createGCashWithdrawal: (input: CreateGCashWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
308
308
  export declare const createGCashStandardCashInWithdrawal: (input: CreateGCashStandardCashInWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
309
309
  export interface CreatePisoPayWithdrawalMutation {
310
- createPisopayWithdrawal?: null | CreateWithdrawalError;
310
+ createPisoPayRemittanceWithdrawal?: null | CreateWithdrawalError;
311
311
  }
312
312
  export interface CreatePisoPayWithdrawalMutationVariables {
313
313
  input: {
@@ -318,7 +318,7 @@ export interface CreatePisoPayWithdrawalMutationVariables {
318
318
  };
319
319
  transactionPassword: string;
320
320
  }
321
- export type CreatePisoPayWithdrawalInput = Simplify<CreatePisoPayWithdrawalMutationVariables["input"] & {
321
+ export type CreatePisoPayWithdrawalInput = Simplify<CreatePisoPayWithdrawalMutationVariables['input'] & {
322
322
  transactionPassword: string;
323
323
  }>;
324
324
  export declare const createPisoPayWithdrawal: (input: CreatePisoPayWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
@@ -333,7 +333,7 @@ export interface CreateMayaWithdrawalMutationVariables {
333
333
  recipientMobileNumber: string;
334
334
  };
335
335
  }
336
- export type CreateMayaWithdrawalInput = Simplify<CreateMayaWithdrawalMutationVariables["input"]>;
336
+ export type CreateMayaWithdrawalInput = Simplify<CreateMayaWithdrawalMutationVariables['input']>;
337
337
  export declare const createMayaWithdrawal: (input: CreateMayaWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
338
338
  export interface CreateMayaAppWithdrawalMutation {
339
339
  createMayaAppWithdrawal?: null | CreateWithdrawalError;
@@ -345,7 +345,7 @@ export interface CreateMayaAppWithdrawalMutationVariables {
345
345
  transactionPassword: string;
346
346
  };
347
347
  }
348
- export type CreateMayaAppWithdrawalInput = Simplify<CreateMayaAppWithdrawalMutationVariables["input"]>;
348
+ export type CreateMayaAppWithdrawalInput = Simplify<CreateMayaAppWithdrawalMutationVariables['input']>;
349
349
  export declare const createMayaAppWithdrawal: (input: CreateMayaAppWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
350
350
  export interface CreateBankWithdrawalMutation {
351
351
  createBankWithdrawal?: null | CreateWithdrawalError;
@@ -357,7 +357,7 @@ export interface CreateBankWithdrawalMutationVariables {
357
357
  transactionPassword: string;
358
358
  };
359
359
  }
360
- export type CreateBankWithdrawalInput = Simplify<CreateBankWithdrawalMutationVariables["input"]>;
360
+ export type CreateBankWithdrawalInput = Simplify<CreateBankWithdrawalMutationVariables['input']>;
361
361
  export declare const createBankWithdrawal: (input: CreateBankWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
362
362
  export interface CreateAIOInstapayWithdrawalMutationVariables {
363
363
  input: {
@@ -385,8 +385,8 @@ export interface CreateAIOInstapayWithdrawalMutation {
385
385
  export interface CreateAIOInstapayWithdrawalNextMutation {
386
386
  createAIOInstapayWithdrawal_next?: null | CreateWithdrawalError;
387
387
  }
388
- export type CreateAIOInstapayWithdrawalInput = Simplify<CreateAIOInstapayWithdrawalMutationVariables["input"]>;
389
- export type CreateAIOInstapayWithdrawalNextInput = Simplify<CreateAIOInstapayWithdrawalNextMutationVariables["input"]>;
388
+ export type CreateAIOInstapayWithdrawalInput = Simplify<CreateAIOInstapayWithdrawalMutationVariables['input']>;
389
+ export type CreateAIOInstapayWithdrawalNextInput = Simplify<CreateAIOInstapayWithdrawalNextMutationVariables['input']>;
390
390
  export declare const createAIOInstapayWithdrawal: (input: CreateAIOInstapayWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
391
391
  export declare const createAIOInstapayWithdrawalNext: (input: CreateAIOInstapayWithdrawalNextInput, options?: GraphQLRequestOptions) => Promise<void>;
392
392
  export interface CreateVentajaDisbursementWithdrawalVariables {
@@ -401,8 +401,8 @@ export interface CreateVentajaDisbursementWithdrawalVariables {
401
401
  export interface CreateVentajaDisbursementWithdrawalMutation {
402
402
  createVentajaDisbursementWithdrawal?: null | CreateWithdrawalError;
403
403
  }
404
- export type CreateVentajaDisbursementWithdrawalInput = Simplify<CreateVentajaDisbursementWithdrawalVariables["input"]>;
405
- export type CreateVentajaDisbursmentTransactionPasswordInput = Simplify<CreateVentajaDisbursementWithdrawalVariables["transactionPassword"]>;
404
+ export type CreateVentajaDisbursementWithdrawalInput = Simplify<CreateVentajaDisbursementWithdrawalVariables['input']>;
405
+ export type CreateVentajaDisbursmentTransactionPasswordInput = Simplify<CreateVentajaDisbursementWithdrawalVariables['transactionPassword']>;
406
406
  export declare const createVentajaDisbursementWithdrawal: (input: CreateVentajaDisbursementWithdrawalInput, transactionPassword: CreateVentajaDisbursmentTransactionPasswordInput, options?: GraphQLRequestOptions) => Promise<void>;
407
407
  export interface CreateManualUpiWithdrawalMutation {
408
408
  createManualUpiWithdrawal?: null | CreateWithdrawalError;
@@ -414,7 +414,7 @@ export interface CreateManualUpiWithdrawalMutationVariables {
414
414
  upiId: string;
415
415
  };
416
416
  }
417
- export type CreateManualUpiWithdrawalInput = Simplify<CreateManualUpiWithdrawalMutationVariables["input"]>;
417
+ export type CreateManualUpiWithdrawalInput = Simplify<CreateManualUpiWithdrawalMutationVariables['input']>;
418
418
  export declare const createManualUpiWithdrawal: (input: CreateManualUpiWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
419
419
  export interface CreateManualBankWithdrawalMutation {
420
420
  createManualBankWithdrawal?: null | CreateWithdrawalError;
@@ -429,7 +429,7 @@ export interface CreateManualBankWithdrawalMutationVariables {
429
429
  promo?: string;
430
430
  };
431
431
  }
432
- export type CreateManualBankWithdrawalInput = Simplify<CreateManualBankWithdrawalMutationVariables["input"]>;
432
+ export type CreateManualBankWithdrawalInput = Simplify<CreateManualBankWithdrawalMutationVariables['input']>;
433
433
  export declare const createManualBankWithdrawal: (input: CreateManualBankWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
434
434
  export interface InstapayBankListQuery {
435
435
  instapayBankList: InstapayBank[];
@@ -449,10 +449,10 @@ export interface RedeemPointsToCashMutationVariables {
449
449
  };
450
450
  }
451
451
  export type RedeemPointsToCashError = {
452
- name: "InsufficientPointsError";
452
+ name: 'InsufficientPointsError';
453
453
  message: string;
454
454
  } | {
455
- name: "PointsNotDivisibleBy100Error";
455
+ name: 'PointsNotDivisibleBy100Error';
456
456
  message: string;
457
457
  };
458
458
  export interface RedeemPointsToCashMutation {
@@ -474,7 +474,7 @@ export interface GameSessionQueryVariables {
474
474
  }
475
475
  export declare const getGameSession: (id: string, options?: GraphQLRequestOptions) => Promise<GameSession | null>;
476
476
  export type CreateGameSessionError = {
477
- name: "GameDoesNotExistError";
477
+ name: 'GameDoesNotExistError';
478
478
  message: string;
479
479
  };
480
480
  export interface CreateGameSessionMutation {
@@ -486,7 +486,7 @@ export interface CreateGameSessionMutationVariables {
486
486
  game: string;
487
487
  };
488
488
  }
489
- export type CreateGameSessionInput = Simplify<CreateGameSessionMutationVariables["input"]>;
489
+ export type CreateGameSessionInput = Simplify<CreateGameSessionMutationVariables['input']>;
490
490
  export declare const createGameSession: (input: CreateGameSessionInput, options?: GraphQLRequestOptions) => Promise<void>;
491
491
  export interface EndGameSessionMutation {
492
492
  endGameSession: boolean;
@@ -520,13 +520,13 @@ export interface BonusIdsQuery {
520
520
  }
521
521
  export declare const getBonusesCount: (options?: GraphQLRequestOptions) => Promise<number>;
522
522
  export type ClaimSpotBonusError = {
523
- name: "InvalidPromoCodeError";
523
+ name: 'InvalidPromoCodeError';
524
524
  message: string;
525
525
  } | {
526
- name: "MaximumBonusesCountLimitExceededError";
526
+ name: 'MaximumBonusesCountLimitExceededError';
527
527
  message: string;
528
528
  } | {
529
- name: "SpotBonusAlreadyClaimedError";
529
+ name: 'SpotBonusAlreadyClaimedError';
530
530
  message: string;
531
531
  };
532
532
  export interface ClaimSpotBonusMutationVariables {