@opexa/portal-components 0.0.467 → 0.0.469

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 (193) hide show
  1. package/dist/components/DigitainLauncher/Loading.js +1 -1
  2. package/dist/components/DigitainLauncher/utils.js +26 -20
  3. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +10 -0
  4. package/dist/components/Disclaimer/ResponsibleGaming.js +13 -0
  5. package/dist/components/Disclaimer/TermsOfUse.d.ts +11 -0
  6. package/dist/components/Disclaimer/TermsOfUse.js +13 -0
  7. package/dist/components/FeatureFlag/FeatureFlag.d.ts +1 -0
  8. package/dist/components/FeatureFlag/FeatureFlag.js +29 -0
  9. package/dist/components/FeatureFlag/index.d.ts +1 -0
  10. package/dist/components/FeatureFlag/index.js +1 -0
  11. package/dist/components/Jackpots/Jackpots.module.css +184 -184
  12. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  13. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  14. package/dist/components/KYC/AutoOpen.d.ts +1 -0
  15. package/dist/components/KYC/AutoOpen.js +40 -0
  16. package/dist/components/KYC/BasicInformation.js +1 -1
  17. package/dist/components/KYC/CaptureIdDocument.d.ts +1 -0
  18. package/dist/components/KYC/CaptureIdDocument.js +219 -0
  19. package/dist/components/KYC/CaptureSelfie.d.ts +1 -0
  20. package/dist/components/KYC/CaptureSelfie.js +285 -0
  21. package/dist/components/KYC/DisplayImage.d.ts +5 -0
  22. package/dist/components/KYC/DisplayImage.js +8 -0
  23. package/dist/components/KYC/FileUpload.d.ts +10 -0
  24. package/dist/components/KYC/FileUpload.js +72 -0
  25. package/dist/components/KYC/IdentityVerification.js +1 -1
  26. package/dist/components/KYC/KYC.lazy.js +1 -1
  27. package/dist/components/KYC/NoCameraError.d.ts +7 -0
  28. package/dist/components/KYC/NoCameraError.js +6 -0
  29. package/dist/components/KYC/PersonOverlayDesktop.d.ts +7 -0
  30. package/dist/components/KYC/PersonOverlayDesktop.js +9 -0
  31. package/dist/components/KYC/PersonalInformation.js +1 -1
  32. package/dist/components/KYC/backup/Header.d.ts +1 -0
  33. package/dist/components/KYC/backup/Header.js +8 -0
  34. package/dist/components/KYC/backup/Indicator.d.ts +1 -0
  35. package/dist/components/KYC/backup/Indicator.js +9 -0
  36. package/dist/components/KYC/backup/KYC.d.ts +1 -0
  37. package/dist/components/KYC/backup/KYC.js +14 -0
  38. package/dist/components/KYC/backup/KYC.lazy.d.ts +1 -0
  39. package/dist/components/KYC/backup/KYC.lazy.js +26 -0
  40. package/dist/components/KYC/backup/KYCContext.d.ts +6 -0
  41. package/dist/components/KYC/backup/KYCContext.js +2 -0
  42. package/dist/components/KYC/backup/Step1.d.ts +1 -0
  43. package/dist/components/KYC/backup/Step1.js +13 -0
  44. package/dist/components/KYC/backup/Step2.d.ts +1 -0
  45. package/dist/components/KYC/backup/Step2.js +13 -0
  46. package/dist/components/KYC/backup/Step3.d.ts +1 -0
  47. package/dist/components/KYC/backup/Step3.js +13 -0
  48. package/dist/components/KYC/backup/Step4.d.ts +1 -0
  49. package/dist/components/KYC/backup/Step4.js +7 -0
  50. package/dist/components/KYC/backup/useKYC.d.ts +10 -0
  51. package/dist/components/KYC/backup/useKYC.js +8 -0
  52. package/dist/components/KYC/loadModels.d.ts +1 -0
  53. package/dist/components/KYC/loadModels.js +9 -0
  54. package/dist/components/KYC/utils.d.ts +9 -0
  55. package/dist/components/KYC/utils.js +79 -0
  56. package/dist/components/Messages/Message.d.ts +1 -0
  57. package/dist/components/Messages/Message.js +35 -0
  58. package/dist/components/Messages/MessageContext.d.ts +6 -0
  59. package/dist/components/Messages/MessageContext.js +2 -0
  60. package/dist/components/Messages/MessagePopup.d.ts +1 -0
  61. package/dist/components/Messages/MessagePopup.js +20 -0
  62. package/dist/components/Messages/MessageTrigger.d.ts +8 -0
  63. package/dist/components/Messages/MessageTrigger.js +19 -0
  64. package/dist/components/PortalProvider/CXDTokenObserver.js +11 -11
  65. package/dist/components/Quests/CountdownTimer.d.ts +15 -0
  66. package/dist/components/Quests/CountdownTimer.js +33 -0
  67. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +4 -0
  68. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +78 -0
  69. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
  70. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +9 -0
  71. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +4 -0
  72. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +4 -0
  73. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +4 -0
  74. package/dist/components/Quests/WageringQuest/WageringQuest.js +20 -0
  75. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +9 -0
  76. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +9 -0
  77. package/dist/components/SignUp/SignUp.lazy.d.ts +12 -0
  78. package/dist/components/SignUp/SignUp.lazy.js +18 -0
  79. package/dist/components/SignUp/SignUpContext.d.ts +6 -0
  80. package/dist/components/SignUp/SignUpContext.js +2 -0
  81. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +17 -0
  82. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +18 -0
  83. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +6 -0
  84. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +2 -0
  85. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +1 -0
  86. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +310 -0
  87. package/dist/components/SignUp/SignUpForm.d.ts +1 -0
  88. package/dist/components/SignUp/SignUpForm.js +284 -0
  89. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +1 -0
  90. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +198 -0
  91. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +1 -0
  92. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +251 -0
  93. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +10 -0
  94. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +42 -0
  95. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +7 -0
  96. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +9 -0
  97. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +1 -0
  98. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +464 -0
  99. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +11 -0
  100. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +20 -0
  101. package/dist/components/SignUp/SignUpKYC/utils.d.ts +9 -0
  102. package/dist/components/SignUp/SignUpKYC/utils.js +79 -0
  103. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +1 -0
  104. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +198 -0
  105. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +1 -0
  106. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +251 -0
  107. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +10 -0
  108. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +41 -0
  109. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +1 -0
  110. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +429 -0
  111. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +13 -0
  112. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +26 -0
  113. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +7 -0
  114. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +2 -0
  115. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +11 -0
  116. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +20 -0
  117. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  118. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  119. package/dist/components/shared/IdDocumentField.client.d.ts +25 -0
  120. package/dist/components/shared/IdDocumentField.client.js +204 -0
  121. package/dist/components/shared/IdDocumentField.d.ts +2 -0
  122. package/dist/components/shared/IdDocumentField.js +11 -0
  123. package/dist/components/shared/SelfieField.client.d.ts +20 -0
  124. package/dist/components/shared/SelfieField.client.js +327 -0
  125. package/dist/components/shared/SelfieField.d.ts +2 -0
  126. package/dist/components/shared/SelfieField.js +11 -0
  127. package/dist/constants/BranchCode.d.ts +4 -0
  128. package/dist/constants/BranchCode.js +42 -0
  129. package/dist/handlers/postTransformIdFrontImage.d.ts +3 -0
  130. package/dist/handlers/postTransformIdFrontImage.js +67 -0
  131. package/dist/handlers/postTransformSelfieImage.d.ts +3 -0
  132. package/dist/handlers/postTransformSelfieImage.js +71 -0
  133. package/dist/handlers.d.ts +43 -0
  134. package/dist/handlers.js +297 -0
  135. package/dist/icons/BellRingIcon.d.ts +2 -0
  136. package/dist/icons/BellRingIcon.js +4 -0
  137. package/dist/services/queries.js +2754 -2754
  138. package/dist/services/wallet.d.ts +53 -53
  139. package/dist/services/wallet.js +59 -59
  140. package/dist/styles/theme.css +731 -731
  141. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  142. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  143. package/dist/ui/Badge/Badge.d.ts +12 -12
  144. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  145. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  146. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  147. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  148. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  149. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  150. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  151. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  152. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  153. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  154. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  155. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  156. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  157. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  158. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  159. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  160. package/dist/ui/Field/Field.d.ts +21 -21
  161. package/dist/ui/Field/field.recipe.d.ts +3 -3
  162. package/dist/ui/Menu/Menu.d.ts +198 -198
  163. package/dist/ui/Menu/menu.recipe.d.ts +11 -11
  164. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  165. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  166. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  167. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  168. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  169. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  170. package/dist/ui/Popover/Popover.d.ts +55 -55
  171. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  172. package/dist/ui/Progress/Progress.d.ts +27 -27
  173. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  174. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  175. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  176. package/dist/ui/Select/Select.d.ts +45 -45
  177. package/dist/ui/Select/select.recipe.d.ts +3 -3
  178. package/dist/ui/Table/Table.d.ts +21 -21
  179. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  180. package/dist/ui/Table/table.recipe.d.ts +3 -3
  181. package/dist/utils/dataUrlToBlob.d.ts +1 -0
  182. package/dist/utils/dataUrlToBlob.js +11 -0
  183. package/dist/utils/gamesAvailable3pmTo3am.d.ts +1 -0
  184. package/dist/utils/gamesAvailable3pmTo3am.js +1 -0
  185. package/dist/utils/getGameName.d.ts +1 -0
  186. package/dist/utils/getGameName.js +6 -0
  187. package/dist/utils/isBetween3amAnd3pm.d.ts +1 -0
  188. package/dist/utils/isBetween3amAnd3pm.js +5 -0
  189. package/dist/utils/resizeImageSize.d.ts +2 -0
  190. package/dist/utils/resizeImageSize.js +11 -0
  191. package/package.json +162 -162
  192. package/dist/components/Banner/Banner.client.d.ts +0 -12
  193. package/dist/components/Banner/Banner.client.js +0 -49
@@ -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 {
@@ -1,15 +1,15 @@
1
- import { cache } from "react";
2
- import { WALLET_GRAPHQL_ENDPOINT } from "../constants/index.js";
3
- import { parseDecimal } from "../utils/parseDecimal.js";
4
- import { graphqlRequest } from "./graphqlRequest.js";
5
- import { AVAILABLE_PROMOS, BONUS, BONUS_BALANCES, BONUS_IDS, BONUSES, CASHBACK, CASHBACK_BONUS, CASHBACK_BONUS_IDS, CASHBACK_BONUSES, CASHBACKS, CLAIM_CASHBACK_BONUS, CLAIM_SPOT_BONUS, CREATE_AIO_INSTAPAY_WITHDRAWAL, CREATE_AIO_INSTAPAY_WITHDRAWAL_NEXT, CREATE_AIO_ONLINE_BANK_DEPOSIT, CREATE_AIO_QRPH_DEPOSIT, CREATE_BANK_WITHDRAWAL, CREATE_GAME_SESSION, CREATE_GCASH_DEPOSIT, CREATE_GCASH_DIRECT_WEBPAY_DEPOSIT, CREATE_GCASH_WITHDRAWAL, CREATE_GCASH_STANDARD_CASH_IN_WITHDRAWAL, CREATE_LIBANGAN_DEPOSIT, CREATE_MANUAL_BANK_DEPOSIT, CREATE_MANUAL_BANK_WITHDRAWAL, CREATE_MANUAL_UPI_DEPOSIT, CREATE_MANUAL_UPI_WITHDRAWAL, CREATE_MAYA_APP_DEPOSIT, CREATE_MAYA_APP_WITHDRAWAL, CREATE_MAYA_DEPOSIT, CREATE_MAYA_WITHDRAWAL, CREATE_PISO_PAY_DEPOSIT, CREATE_PISO_PAY_WITHDRAWAL, CREATE_VENTAJA_WITHDRAWAL, DEPOSIT, END_GAME_SESSION, FAVORITE_GAMES, GAME_SESSION, INSTAPAY_BANK_LIST, MARK_GAME_AS_FAVORITE, MAYA_SESSION, POINTS_WALLET, PROMO, PROMOS, REDEEM_POINTS_TO_CASH, REMAINING_DAILY_WITHDRAWALS_COUNT, TOUCH_GCASH_DEPOSIT, TOUCH_QRPH_DEPOSIT, UNMARK_GAME_AS_FAVORITE, VALIDATE_MAYA_SESSION, WALLET, } from "./queries.js";
6
- import { sha256 } from "./sha256.js";
1
+ import { cache } from 'react';
2
+ import { WALLET_GRAPHQL_ENDPOINT } from '../constants/index.js';
3
+ import { parseDecimal } from '../utils/parseDecimal.js';
4
+ import { graphqlRequest } from './graphqlRequest.js';
5
+ import { AVAILABLE_PROMOS, BONUS, BONUS_BALANCES, BONUS_IDS, BONUSES, CASHBACK, CASHBACK_BONUS, CASHBACK_BONUS_IDS, CASHBACK_BONUSES, CASHBACKS, CLAIM_CASHBACK_BONUS, CLAIM_SPOT_BONUS, CREATE_AIO_INSTAPAY_WITHDRAWAL, CREATE_AIO_INSTAPAY_WITHDRAWAL_NEXT, CREATE_AIO_ONLINE_BANK_DEPOSIT, CREATE_AIO_QRPH_DEPOSIT, CREATE_BANK_WITHDRAWAL, CREATE_GAME_SESSION, CREATE_GCASH_DEPOSIT, CREATE_GCASH_DIRECT_WEBPAY_DEPOSIT, CREATE_GCASH_STANDARD_CASH_IN_WITHDRAWAL, CREATE_GCASH_WITHDRAWAL, CREATE_LIBANGAN_DEPOSIT, CREATE_MANUAL_BANK_DEPOSIT, CREATE_MANUAL_BANK_WITHDRAWAL, CREATE_MANUAL_UPI_DEPOSIT, CREATE_MANUAL_UPI_WITHDRAWAL, CREATE_MAYA_APP_DEPOSIT, CREATE_MAYA_APP_WITHDRAWAL, CREATE_MAYA_DEPOSIT, CREATE_MAYA_WITHDRAWAL, CREATE_PISO_PAY_DEPOSIT, CREATE_PISO_PAY_WITHDRAWAL, CREATE_VENTAJA_WITHDRAWAL, DEPOSIT, END_GAME_SESSION, FAVORITE_GAMES, GAME_SESSION, INSTAPAY_BANK_LIST, MARK_GAME_AS_FAVORITE, MAYA_SESSION, POINTS_WALLET, PROMO, PROMOS, REDEEM_POINTS_TO_CASH, REMAINING_DAILY_WITHDRAWALS_COUNT, TOUCH_GCASH_DEPOSIT, TOUCH_QRPH_DEPOSIT, UNMARK_GAME_AS_FAVORITE, VALIDATE_MAYA_SESSION, WALLET } from './queries.js';
6
+ import { sha256 } from './sha256.js';
7
7
  export const getPromos = cache(async (options) => {
8
8
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, PROMOS, undefined, {
9
- cache: "force-cache",
9
+ cache: 'force-cache',
10
10
  ...options,
11
11
  next: {
12
- tags: ["promos"],
12
+ tags: ['promos'],
13
13
  revalidate: 60,
14
14
  ...options?.next,
15
15
  },
@@ -18,10 +18,10 @@ export const getPromos = cache(async (options) => {
18
18
  });
19
19
  export const getCashbacks = cache(async (options) => {
20
20
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CASHBACKS, undefined, {
21
- cache: "force-cache",
21
+ cache: 'force-cache',
22
22
  ...options,
23
23
  next: {
24
- tags: ["cashbacks"],
24
+ tags: ['cashbacks'],
25
25
  revalidate: 60,
26
26
  ...options?.next,
27
27
  },
@@ -30,10 +30,10 @@ export const getCashbacks = cache(async (options) => {
30
30
  });
31
31
  export const getPromo = cache(async (id, options) => {
32
32
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, PROMO, { id }, {
33
- cache: "force-cache",
33
+ cache: 'force-cache',
34
34
  ...options,
35
35
  next: {
36
- tags: ["promo", id],
36
+ tags: ['promo', id],
37
37
  revalidate: 60,
38
38
  ...options?.next,
39
39
  },
@@ -42,10 +42,10 @@ export const getPromo = cache(async (id, options) => {
42
42
  });
43
43
  export const getCashback = cache(async (id, options) => {
44
44
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CASHBACK, { id }, {
45
- cache: "force-cache",
45
+ cache: 'force-cache',
46
46
  ...options,
47
47
  next: {
48
- tags: ["cashback", id],
48
+ tags: ['cashback', id],
49
49
  revalidate: 60,
50
50
  ...options?.next,
51
51
  },
@@ -88,12 +88,12 @@ export const getWallet = cache(async (options) => {
88
88
  graphqlRequest(WALLET_GRAPHQL_ENDPOINT, BONUS_BALANCES, undefined, options),
89
89
  ]);
90
90
  return {
91
- balance: res0.status === "fulfilled" ? res0.value.wallet?.balance ?? "0" : "0",
92
- bonus: res1.status === "fulfilled"
93
- ? res1.value.bonuses
91
+ balance: res0.status === 'fulfilled' ? (res0.value.wallet?.balance ?? '0') : '0',
92
+ bonus: res1.status === 'fulfilled'
93
+ ? (res1.value.bonuses
94
94
  ?.reduce((total, n) => total + parseDecimal(n.balance, 0), 0)
95
- .toString() ?? "0"
96
- : "0",
95
+ .toString() ?? '0')
96
+ : '0',
97
97
  };
98
98
  });
99
99
  export const getDeposit = cache(async (id, options) => {
@@ -240,10 +240,10 @@ export const createPisoPayWithdrawal = async (input, options) => {
240
240
  input: others,
241
241
  transactionPassword: await sha256(transactionPassword),
242
242
  }, options);
243
- if (res.createPisopayWithdrawal) {
243
+ if (res.createPisoPayRemittanceWithdrawal) {
244
244
  const error = new Error();
245
- error.name = res.createPisopayWithdrawal.name;
246
- error.message = ERROR_CODES_MESSAGE_MAP[res.createPisopayWithdrawal.name];
245
+ error.name = res.createPisoPayRemittanceWithdrawal.name;
246
+ error.message = ERROR_CODES_MESSAGE_MAP[res.createPisoPayRemittanceWithdrawal.name];
247
247
  Error.captureStackTrace?.(error, createGCashWithdrawal);
248
248
  throw error;
249
249
  }
@@ -359,11 +359,11 @@ export const createManualBankWithdrawal = async (input, options) => {
359
359
  };
360
360
  export const getInstapayBankList = cache(async (options) => {
361
361
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, INSTAPAY_BANK_LIST, undefined, {
362
- cache: "force-cache",
362
+ cache: 'force-cache',
363
363
  ...options,
364
364
  next: {
365
365
  revalidate: 60 * 60 * 4,
366
- tags: ["instapayBankList"],
366
+ tags: ['instapayBankList'],
367
367
  },
368
368
  });
369
369
  return res.instapayBankList;
@@ -408,8 +408,8 @@ export const endGameSession = async (id, options) => {
408
408
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, END_GAME_SESSION, { input: { id } }, options);
409
409
  if (!res.endGameSession) {
410
410
  const error = new Error();
411
- error.name = "UnknownError";
412
- error.message = "Something went wrong";
411
+ error.name = 'UnknownError';
412
+ error.message = 'Something went wrong';
413
413
  Error.captureStackTrace?.(error, endGameSession);
414
414
  throw error;
415
415
  }
@@ -418,8 +418,8 @@ export const validateMayaSession = async (options) => {
418
418
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, VALIDATE_MAYA_SESSION, undefined, options);
419
419
  if (!res.validateMayaSession) {
420
420
  const error = new Error();
421
- error.name = "UnknownError";
422
- error.message = "Something went wrong";
421
+ error.name = 'UnknownError';
422
+ error.message = 'Something went wrong';
423
423
  Error.captureStackTrace?.(error, validateMayaSession);
424
424
  throw error;
425
425
  }
@@ -446,8 +446,8 @@ export const touchGCashDeposit = async (id, options) => {
446
446
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, TOUCH_GCASH_DEPOSIT, { input: { id } }, options);
447
447
  if (!res.touchGCashDeposit) {
448
448
  const error = new Error();
449
- error.name = "UnknownError";
450
- error.message = "Something went wrong";
449
+ error.name = 'UnknownError';
450
+ error.message = 'Something went wrong';
451
451
  Error.captureStackTrace?.(error, touchGCashDeposit);
452
452
  throw error;
453
453
  }
@@ -456,8 +456,8 @@ export const touchQRPHDeposit = async (id, options) => {
456
456
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, TOUCH_QRPH_DEPOSIT, { input: { id } }, options);
457
457
  if (!res.touchQRPHDeposit) {
458
458
  const error = new Error();
459
- error.name = "UnknownError";
460
- error.message = "Something went wrong";
459
+ error.name = 'UnknownError';
460
+ error.message = 'Something went wrong';
461
461
  Error.captureStackTrace?.(error, touchQRPHDeposit);
462
462
  throw error;
463
463
  }
@@ -466,8 +466,8 @@ export const markGameAsFavorite = async (id, options) => {
466
466
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, MARK_GAME_AS_FAVORITE, { input: { id } }, options);
467
467
  if (!res.markGameAsFavorite) {
468
468
  const error = new Error();
469
- error.name = "UnknownError";
470
- error.message = "Something went wrong";
469
+ error.name = 'UnknownError';
470
+ error.message = 'Something went wrong';
471
471
  Error.captureStackTrace?.(error, markGameAsFavorite);
472
472
  throw error;
473
473
  }
@@ -476,8 +476,8 @@ export const unmarkGameAsFavorite = async (id, options) => {
476
476
  const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, UNMARK_GAME_AS_FAVORITE, { input: { id } }, options);
477
477
  if (!res.unmarkGameAsFavorite) {
478
478
  const error = new Error();
479
- error.name = "UnknownError";
480
- error.message = "Something went wrong";
479
+ error.name = 'UnknownError';
480
+ error.message = 'Something went wrong';
481
481
  Error.captureStackTrace?.(error, unmarkGameAsFavorite);
482
482
  throw error;
483
483
  }
@@ -487,27 +487,27 @@ export const getFavoriteGames = cache(async (options) => {
487
487
  return res.favoriteGames;
488
488
  });
489
489
  const ERROR_CODES_MESSAGE_MAP = {
490
- PointsNotDivisibleBy100Error: "Please input points that are multiples of 100.",
491
- MaximumBonusesCountLimitExceededError: "Maximum bonuses reached",
492
- InvalidPromoCodeError: "Invalid Promo Code",
493
- SpotBonusAlreadyClaimedError: "This promo code has already been redeemed and cannot be used again",
494
- AccountNotVerifiedError: "Account is not verified",
495
- CashbackBonusDoesNotExistError: "Cashback bonus does not exists",
496
- DepositPromoMaximumAmountExceededError: "Deposit amount exceeds maximum amount for selected promo",
497
- DepositPromoMinimumAmountNotMetError: "Deposit amount does not meet minimum amount for selected promo",
498
- GameDoesNotExistError: "Game does not exist",
499
- InsufficientPointsError: "Insufficient points",
500
- InvalidTransactionPasswordError: "Invalid transaction password",
501
- InvalidWithdrawalAmountError: "Invalid withdrawal amount",
502
- MaximumDepositAmountExceededError: "Maximum deposit amount exceeded",
503
- MinimumDepositAmountNotMetError: "Minimum deposit amount not met",
504
- MinimumFirstDepositAmountNotMetError: "Minimum first deposit amount not met",
505
- MobileNumberNotVerifiedError: "Mobile number is not verified",
506
- NotEnoughBalanceError: "Insufficient balance",
507
- PromoNotEnabledError: "Promo is not enabled",
508
- WalletDoesNotExistError: "Wallet does not exist",
509
- WithdrawalDailyLimitExceededError: "Daily withdrawal limit exceeded",
510
- ReCAPTCHAVerificationFailedError: "Invalid reCAPTCHA",
511
- UPIReferenceNotAvailableError: "UPI reference is no longer available",
512
- GCashDirectApiRequestError: "GCash direct API request error",
490
+ PointsNotDivisibleBy100Error: 'Please input points that are multiples of 100.',
491
+ MaximumBonusesCountLimitExceededError: 'Maximum bonuses reached',
492
+ InvalidPromoCodeError: 'Invalid Promo Code',
493
+ SpotBonusAlreadyClaimedError: 'This promo code has already been redeemed and cannot be used again',
494
+ AccountNotVerifiedError: 'Account is not verified',
495
+ CashbackBonusDoesNotExistError: 'Cashback bonus does not exists',
496
+ DepositPromoMaximumAmountExceededError: 'Deposit amount exceeds maximum amount for selected promo',
497
+ DepositPromoMinimumAmountNotMetError: 'Deposit amount does not meet minimum amount for selected promo',
498
+ GameDoesNotExistError: 'Game does not exist',
499
+ InsufficientPointsError: 'Insufficient points',
500
+ InvalidTransactionPasswordError: 'Invalid transaction password',
501
+ InvalidWithdrawalAmountError: 'Invalid withdrawal amount',
502
+ MaximumDepositAmountExceededError: 'Maximum deposit amount exceeded',
503
+ MinimumDepositAmountNotMetError: 'Minimum deposit amount not met',
504
+ MinimumFirstDepositAmountNotMetError: 'Minimum first deposit amount not met',
505
+ MobileNumberNotVerifiedError: 'Mobile number is not verified',
506
+ NotEnoughBalanceError: 'Insufficient balance',
507
+ PromoNotEnabledError: 'Promo is not enabled',
508
+ WalletDoesNotExistError: 'Wallet does not exist',
509
+ WithdrawalDailyLimitExceededError: 'Daily withdrawal limit exceeded',
510
+ ReCAPTCHAVerificationFailedError: 'Invalid reCAPTCHA',
511
+ UPIReferenceNotAvailableError: 'UPI reference is no longer available',
512
+ GCashDirectApiRequestError: 'GCash direct API request error',
513
513
  };