@opexa/portal-components 0.0.82 → 0.0.84

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 (308) hide show
  1. package/dist/client/hooks/useAccountQuery.d.ts +1 -2
  2. package/dist/client/hooks/useAccountQuery.js +1 -4
  3. package/dist/client/hooks/useAuthenticateMutation.d.ts +1 -1
  4. package/dist/client/hooks/useAvailablePromosQuery.d.ts +2 -2
  5. package/dist/client/hooks/useAvailablePromosQuery.js +1 -4
  6. package/dist/client/hooks/useAvailableQuestsQuery.d.ts +1 -2
  7. package/dist/client/hooks/useAvailableQuestsQuery.js +1 -4
  8. package/dist/client/hooks/useBetRecordsQuery.d.ts +2 -2
  9. package/dist/client/hooks/useBetRecordsQuery.js +1 -4
  10. package/dist/client/hooks/useBonusQuery.d.ts +1 -2
  11. package/dist/client/hooks/useBonusQuery.js +3 -8
  12. package/dist/client/hooks/useBonusesQuery.d.ts +1 -2
  13. package/dist/client/hooks/useBonusesQuery.js +1 -4
  14. package/dist/client/hooks/useCashbackBonusQuery.d.ts +1 -2
  15. package/dist/client/hooks/useCashbackBonusQuery.js +1 -4
  16. package/dist/client/hooks/useCashbackBonusesQuery.d.ts +1 -2
  17. package/dist/client/hooks/useCashbackBonusesQuery.js +1 -4
  18. package/dist/client/hooks/useCashbackQuery.d.ts +1 -2
  19. package/dist/client/hooks/useCashbackQuery.js +3 -12
  20. package/dist/client/hooks/useCashbacksQuery.d.ts +1 -2
  21. package/dist/client/hooks/useCashbacksQuery.js +1 -6
  22. package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +3 -6
  23. package/dist/client/hooks/useClaimCashbackBonusMutation.js +1 -4
  24. package/dist/client/hooks/useClaimSpotBonusMutation.js +1 -4
  25. package/dist/client/hooks/useCreateGCashDepositMutation.d.ts +2 -2
  26. package/dist/client/hooks/useCreateGCashDepositMutation.js +2 -7
  27. package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +1 -1
  28. package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +2 -5
  29. package/dist/client/hooks/useCreateGameSessionMutation.d.ts +1 -2
  30. package/dist/client/hooks/useCreateGameSessionMutation.js +3 -11
  31. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +1 -1
  32. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +2 -5
  33. package/dist/client/hooks/useCreateMayaAppDepositMutation.d.ts +2 -2
  34. package/dist/client/hooks/useCreateMayaAppDepositMutation.js +2 -7
  35. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +1 -1
  36. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +2 -5
  37. package/dist/client/hooks/useCreateMayaDepositMutation.d.ts +2 -2
  38. package/dist/client/hooks/useCreateMayaDepositMutation.js +2 -7
  39. package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +1 -1
  40. package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +2 -5
  41. package/dist/client/hooks/useCreateOnlineBankDepositMutation.d.ts +2 -2
  42. package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +2 -7
  43. package/dist/client/hooks/useCreateQRPHDepositMutation.d.ts +3 -3
  44. package/dist/client/hooks/useCreateQRPHDepositMutation.js +2 -7
  45. package/dist/client/hooks/useDepositQuery.d.ts +1 -2
  46. package/dist/client/hooks/useDepositQuery.js +3 -5
  47. package/dist/client/hooks/useDepositRecordsQuery.d.ts +2 -2
  48. package/dist/client/hooks/useDepositRecordsQuery.js +1 -4
  49. package/dist/client/hooks/useDepositsCountQuery.js +3 -5
  50. package/dist/client/hooks/useEndGameSessionMutation.d.ts +1 -2
  51. package/dist/client/hooks/useEndGameSessionMutation.js +2 -6
  52. package/dist/client/hooks/useFavoriteGamesQuery.d.ts +1 -2
  53. package/dist/client/hooks/useFavoriteGamesQuery.js +3 -5
  54. package/dist/client/hooks/useGamesQuery.d.ts +2 -2
  55. package/dist/client/hooks/useGamesQuery.js +1 -7
  56. package/dist/client/hooks/useGlobalStore.d.ts +1 -1
  57. package/dist/client/hooks/useInfiniteQueryHelper.d.ts +1 -2
  58. package/dist/client/hooks/useInstapayBankListQuery.d.ts +1 -2
  59. package/dist/client/hooks/useInstapayBankListQuery.js +3 -5
  60. package/dist/client/hooks/useIsMayaSessionValidQuery.js +1 -4
  61. package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +2 -2
  62. package/dist/client/hooks/useJackpotPayoutsQuery.js +2 -9
  63. package/dist/client/hooks/useJackpotsQuery.d.ts +2 -2
  64. package/dist/client/hooks/useJackpotsQuery.js +2 -9
  65. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +1 -4
  66. package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -4
  67. package/dist/client/hooks/useMemberVerificationQuery.d.ts +1 -2
  68. package/dist/client/hooks/useMemberVerificationQuery.js +1 -4
  69. package/dist/client/hooks/useMessagesQuery.d.ts +2 -2
  70. package/dist/client/hooks/useMessagesQuery.js +1 -4
  71. package/dist/client/hooks/usePaymentSettingsQuery.d.ts +1 -2
  72. package/dist/client/hooks/usePaymentSettingsQuery.js +1 -4
  73. package/dist/client/hooks/usePlatformQuery.d.ts +1 -2
  74. package/dist/client/hooks/usePlatformQuery.js +3 -8
  75. package/dist/client/hooks/useProfileCompletionQuery.d.ts +1 -2
  76. package/dist/client/hooks/useProfileCompletionQuery.js +1 -4
  77. package/dist/client/hooks/usePromoQuery.d.ts +1 -2
  78. package/dist/client/hooks/usePromoQuery.js +3 -12
  79. package/dist/client/hooks/usePromosQuery.d.ts +1 -2
  80. package/dist/client/hooks/usePromosQuery.js +2 -9
  81. package/dist/client/hooks/useSendVerificationCodeMutation.d.ts +1 -1
  82. package/dist/client/hooks/useSendVerificationCodeMutation.js +2 -8
  83. package/dist/client/hooks/useSessionQuery.js +2 -2
  84. package/dist/client/hooks/useSignInMutation.d.ts +1 -2
  85. package/dist/client/hooks/useSignUpMutation.d.ts +1 -1
  86. package/dist/client/hooks/useSignUpMutation.js +2 -11
  87. package/dist/client/hooks/useTopWinsQuery.d.ts +1 -2
  88. package/dist/client/hooks/useTopWinsQuery.js +3 -9
  89. package/dist/client/hooks/useTournamentsQuery.d.ts +2 -2
  90. package/dist/client/hooks/useTournamentsQuery.js +2 -9
  91. package/dist/client/hooks/useTransactionRecordsQuery.d.ts +2 -2
  92. package/dist/client/hooks/useTransactionRecordsQuery.js +1 -4
  93. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -4
  94. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +1 -1
  95. package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -4
  96. package/dist/client/hooks/useUpdateAccountMutation.d.ts +1 -1
  97. package/dist/client/hooks/useUpdateAccountMutation.js +1 -4
  98. package/dist/client/hooks/useWalletQuery.d.ts +1 -2
  99. package/dist/client/hooks/useWalletQuery.js +3 -10
  100. package/dist/client/hooks/useWithdrawalRecordsQuery.d.ts +2 -2
  101. package/dist/client/hooks/useWithdrawalRecordsQuery.js +1 -4
  102. package/dist/client/services/authenticate.d.ts +3 -2
  103. package/dist/client/services/authenticate.js +5 -12
  104. package/dist/client/services/getSession.d.ts +2 -1
  105. package/dist/client/services/getSession.js +4 -11
  106. package/dist/client/services/signIn.d.ts +4 -2
  107. package/dist/client/services/signIn.js +6 -13
  108. package/dist/client/services/signOut.d.ts +2 -1
  109. package/dist/client/services/signOut.js +15 -13
  110. package/dist/components/AccountSecurity/AccountSecurity.js +2 -25
  111. package/dist/components/BetRecords/BetRecords.d.ts +1 -1
  112. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  113. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  114. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  115. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  116. package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +1 -1
  117. package/dist/components/GameProviders/GameProvidersCarousel.d.ts +1 -2
  118. package/dist/components/GameProviders/GameProvidersList.d.ts +1 -2
  119. package/dist/components/Games/GamesCarousel.d.ts +1 -1
  120. package/dist/components/Games/GamesContext.d.ts +1 -1
  121. package/dist/components/Games/GamesList.d.ts +1 -1
  122. package/dist/components/GamesSearch/GamesSearch.d.ts +1 -1
  123. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +1 -1
  124. package/dist/components/JackpotCounter/JackpotCounterItem.module.css +184 -184
  125. package/dist/components/Jackpots/Jackpots.d.ts +1 -1
  126. package/dist/components/Jackpots/JackpotsContext.d.ts +1 -1
  127. package/dist/components/Jackpots/useJackpotData.d.ts +2 -2
  128. package/dist/components/Jackpots/useJackpotData.js +0 -1
  129. package/dist/components/Messages/Message.d.ts +4 -0
  130. package/dist/components/Messages/{MessageItem.js → Message.js} +2 -2
  131. package/dist/components/Messages/MessageTrigger.d.ts +1 -1
  132. package/dist/components/Messages/Messages.js +2 -2
  133. package/dist/components/Messages/utils.d.ts +1 -1
  134. package/dist/components/Promos/Cashback.d.ts +1 -1
  135. package/dist/components/Promos/Promo.d.ts +1 -1
  136. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -1
  137. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +1 -1
  138. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -1
  139. package/dist/components/Search/Search.d.ts +1 -2
  140. package/dist/components/SignUp/SignUpForm.js +1 -1
  141. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +1 -1
  142. package/dist/components/Tournaments/Tournaments.d.ts +1 -1
  143. package/dist/components/Tournaments/TournamentsContext.d.ts +1 -1
  144. package/dist/components/Tournaments/useTournamentData.js +0 -1
  145. package/dist/components/TransactionRecords/DepositRecordsTable.js +0 -1
  146. package/dist/components/TransactionRecords/TableFilters.d.ts +1 -2
  147. package/dist/constants/endpoints.d.ts +10 -0
  148. package/dist/constants/endpoints.js +41 -0
  149. package/dist/constants/gameProviders.d.ts +1 -2
  150. package/dist/constants/gameTypes.d.ts +1 -2
  151. package/dist/constants/headerKeys.d.ts +1 -0
  152. package/dist/constants/headerKeys.js +1 -0
  153. package/dist/constants/index.d.ts +1 -0
  154. package/dist/constants/index.js +1 -0
  155. package/dist/constants/secretQuestions.d.ts +1 -1
  156. package/dist/handlers.js +2 -12
  157. package/dist/middleware.d.ts +1 -1
  158. package/dist/middleware.js +2 -3
  159. package/dist/server/services/authenticate.d.ts +1 -1
  160. package/dist/server/services/authenticate.js +3 -8
  161. package/dist/server/services/signIn.d.ts +2 -1
  162. package/dist/server/services/signIn.js +3 -8
  163. package/dist/server/services/signOut.js +2 -3
  164. package/dist/server/utils/prefetchAccountQuery.js +1 -4
  165. package/dist/server/utils/prefetchAvailablePromosQuery.d.ts +1 -1
  166. package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -4
  167. package/dist/server/utils/prefetchAvailableQuestsQuery.js +1 -4
  168. package/dist/server/utils/prefetchBetRecordsQuery.d.ts +1 -1
  169. package/dist/server/utils/prefetchBetRecordsQuery.js +1 -4
  170. package/dist/server/utils/prefetchBonusQuery.js +3 -8
  171. package/dist/server/utils/prefetchBonusesQuery.js +1 -4
  172. package/dist/server/utils/prefetchCashbackBonusQuery.js +1 -4
  173. package/dist/server/utils/prefetchCashbackBonusesQuery.js +1 -4
  174. package/dist/server/utils/prefetchCashbackQuery.js +3 -12
  175. package/dist/server/utils/prefetchCashbacksQuery.js +1 -6
  176. package/dist/server/utils/prefetchDepositQuery.js +3 -5
  177. package/dist/server/utils/prefetchDepositRecordsQuery.d.ts +1 -1
  178. package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -4
  179. package/dist/server/utils/prefetchDepositsCountQuery.js +3 -5
  180. package/dist/server/utils/prefetchFavoriteGamesQuery.js +3 -5
  181. package/dist/server/utils/prefetchGamesQuery.d.ts +1 -1
  182. package/dist/server/utils/prefetchGamesQuery.js +2 -10
  183. package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -5
  184. package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -4
  185. package/dist/server/utils/prefetchJackpotsQuery.d.ts +1 -1
  186. package/dist/server/utils/prefetchJackpotsQuery.js +2 -9
  187. package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -4
  188. package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -4
  189. package/dist/server/utils/prefetchPlatformQuery.js +2 -9
  190. package/dist/server/utils/prefetchProfileCompletionQuery.js +1 -4
  191. package/dist/server/utils/prefetchPromoQuery.js +3 -12
  192. package/dist/server/utils/prefetchPromosQuery.js +2 -9
  193. package/dist/server/utils/prefetchTopWinsQuery.js +2 -9
  194. package/dist/server/utils/prefetchTournamentsQuery.d.ts +1 -1
  195. package/dist/server/utils/prefetchTournamentsQuery.js +2 -9
  196. package/dist/server/utils/prefetchTransactionRecordsQuery.d.ts +1 -1
  197. package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -4
  198. package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +1 -1
  199. package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +1 -4
  200. package/dist/server/utils/prefetchWalletQuery.js +3 -5
  201. package/dist/server/utils/prefetchWithdrawalRecordsQuery.d.ts +1 -1
  202. package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -4
  203. package/dist/services/ObjectId.d.ts +24 -0
  204. package/dist/services/ObjectId.js +86 -0
  205. package/dist/services/account.service.d.ts +341 -0
  206. package/dist/services/account.service.js +233 -0
  207. package/dist/services/auth.service.d.ts +80 -0
  208. package/dist/services/auth.service.js +152 -0
  209. package/dist/services/cmsPortal.service.d.ts +43 -0
  210. package/dist/services/cmsPortal.service.js +148 -0
  211. package/dist/services/file.service.d.ts +33 -0
  212. package/dist/services/file.service.js +18 -0
  213. package/dist/services/game.service.d.ts +44 -0
  214. package/dist/services/game.service.js +33 -0
  215. package/dist/services/graphqlRequest.d.ts +4 -0
  216. package/dist/services/graphqlRequest.js +255 -0
  217. package/dist/services/httpRequest.d.ts +23 -0
  218. package/dist/services/httpRequest.js +93 -0
  219. package/dist/services/index.d.ts +12 -0
  220. package/dist/services/index.js +12 -0
  221. package/dist/services/portal.service.d.ts +37 -0
  222. package/dist/services/portal.service.js +44 -0
  223. package/dist/services/queries.d.ts +115 -0
  224. package/dist/services/queries.js +2319 -0
  225. package/dist/services/report.service.d.ts +203 -0
  226. package/dist/services/report.service.js +64 -0
  227. package/dist/services/sha256.d.ts +4 -0
  228. package/dist/services/sha256.js +16 -0
  229. package/dist/services/trigger.service.d.ts +88 -0
  230. package/dist/services/trigger.service.js +84 -0
  231. package/dist/services/wallet.service.d.ts +463 -0
  232. package/dist/services/wallet.service.js +357 -0
  233. package/dist/styles/theme.css +697 -697
  234. package/dist/types/index.d.ts +752 -6
  235. package/dist/ui/AlertDialog/AlertDialog.d.ts +55 -55
  236. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +5 -5
  237. package/dist/ui/Badge/Badge.d.ts +12 -12
  238. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  239. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  240. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  241. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  242. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  243. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  244. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  245. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  246. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  247. package/dist/ui/DatePicker/DatePicker.d.ts +120 -120
  248. package/dist/ui/DatePicker/datePicker.recipe.d.ts +5 -5
  249. package/dist/ui/Dialog/Dialog.d.ts +55 -55
  250. package/dist/ui/Dialog/dialog.recipe.d.ts +5 -5
  251. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  252. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  253. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  254. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  255. package/dist/ui/Popover/Popover.d.ts +55 -55
  256. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  257. package/dist/ui/Progress/Progress.d.ts +27 -27
  258. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  259. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  260. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  261. package/dist/ui/Select/Select.d.ts +45 -45
  262. package/dist/ui/Select/select.recipe.d.ts +3 -3
  263. package/dist/ui/Table/Table.d.ts +21 -21
  264. package/dist/ui/Table/table.recipe.d.ts +3 -3
  265. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  266. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  267. package/dist/utils/getGameImageUrl.d.ts +1 -1
  268. package/dist/utils/getGameImageUrl.js +3 -5
  269. package/dist/utils/getGameProviderData.d.ts +1 -2
  270. package/dist/utils/getGameTypeData.d.ts +1 -2
  271. package/dist/utils/graphqlRequest.d.ts +4 -0
  272. package/dist/utils/graphqlRequest.js +255 -0
  273. package/dist/utils/httpRequest.d.ts +6 -0
  274. package/dist/utils/httpRequest.js +87 -0
  275. package/dist/utils/queryKeys.d.ts +1 -1
  276. package/dist/utils/sha256.d.ts +4 -0
  277. package/dist/utils/sha256.js +16 -0
  278. package/package.json +166 -160
  279. package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +0 -2
  280. package/dist/components/CashbackBonus/CashbackBonus.client.js +0 -9
  281. package/dist/components/CashbackBonus/CashbackBonus.d.ts +0 -10
  282. package/dist/components/CashbackBonus/CashbackBonus.js +0 -5
  283. package/dist/components/CashbackBonus/index.d.ts +0 -1
  284. package/dist/components/CashbackBonus/index.js +0 -1
  285. package/dist/components/Games/GameContext.d.ts +0 -2
  286. package/dist/components/Games/GameContext.js +0 -2
  287. package/dist/components/Jackpots/JackpotItemDesktop.d.ts +0 -9
  288. package/dist/components/Jackpots/JackpotItemDesktop.js +0 -43
  289. package/dist/components/Jackpots/JackpotItemMobile.d.ts +0 -9
  290. package/dist/components/Jackpots/JackpotItemMobile.js +0 -44
  291. package/dist/components/Jackpots/useJackpotItemData.d.ts +0 -20
  292. package/dist/components/Jackpots/useJackpotItemData.js +0 -87
  293. package/dist/components/Messages/MessageItem.d.ts +0 -4
  294. package/dist/components/Promo/PromoContent.d.ts +0 -2
  295. package/dist/components/Promo/PromoContent.js +0 -9
  296. package/dist/components/Promos/PromoCarousel.d.ts +0 -2
  297. package/dist/components/Promos/PromoCarousel.js +0 -41
  298. package/dist/components/Promos/PromoGrid.d.ts +0 -2
  299. package/dist/components/Promos/PromoGrid.js +0 -12
  300. package/dist/components/Promos/PromoItem.d.ts +0 -7
  301. package/dist/components/Promos/PromoItem.js +0 -10
  302. package/dist/components/Tournaments/TournamentItemDesktop.d.ts +0 -7
  303. package/dist/components/Tournaments/TournamentItemDesktop.js +0 -56
  304. package/dist/components/Tournaments/TournamentItemMobile.d.ts +0 -7
  305. package/dist/components/Tournaments/TournamentItemMobile.js +0 -54
  306. package/dist/components/Tournaments/useTournamentItemData.d.ts +0 -16
  307. package/dist/components/Tournaments/useTournamentItemData.js +0 -64
  308. package/dist/images/hacksaw-gaming.png +0 -0
@@ -1,4 +1,3 @@
1
- import type { GameProvider, GameType } from '@opexa/portal-sdk-core';
2
1
  import type { DefaultError, DefinedInitialDataOptions, InfiniteData, QueryKey, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryResult } from '@tanstack/react-query';
3
2
  import type { ImageProps } from 'next/image';
4
3
  /**
@@ -54,15 +53,762 @@ export type ApiResponse<T = never> = [T] extends [never] ? {
54
53
  ok: false;
55
54
  message: string;
56
55
  };
56
+ export interface DateRange {
57
+ start: Date;
58
+ end: Date;
59
+ }
60
+ export type SignInType = 'NAME_AND_PASSWORD' | 'MOBILE_NUMBER';
57
61
  /**
58
62
  * ------------------------------------------------------------
59
- * Utils
63
+ * GraphQL
60
64
  * ------------------------------------------------------------
61
65
  */
62
- export interface DateRange {
63
- start: Date;
64
- end: Date;
66
+ export interface Edge<T> {
67
+ cursor: string;
68
+ node: T;
69
+ }
70
+ export interface PageInfo {
71
+ hasNextPage: boolean;
72
+ endCursor?: string | null;
73
+ }
74
+ export interface PaginatedQueryResult<T> {
75
+ edges: Edge<T>[];
76
+ pageInfo: PageInfo;
77
+ totalCount: number;
78
+ }
79
+ export type PaginatedQuery<Key extends string, Data> = Record<Key, PaginatedQueryResult<Data>>;
80
+ export interface ObjectIdFilterField {
81
+ equal?: string;
82
+ notEqual?: string;
83
+ in?: string[];
84
+ notIn?: string[];
85
+ }
86
+ export interface StringFilterField {
87
+ equal?: string;
88
+ notEqual?: string;
89
+ in?: string[];
90
+ notIn?: string[];
91
+ }
92
+ export interface NumberFilterField {
93
+ equal?: number;
94
+ notEqual?: number;
95
+ in?: number[];
96
+ notIn?: number[];
97
+ lesserThan?: number;
98
+ lesserThanOrEqual?: number;
99
+ greaterThan?: number;
100
+ greaterThanOrEqual?: number;
101
+ }
102
+ export interface BooleanFilterField {
103
+ equal?: boolean;
104
+ notEqual?: boolean;
105
+ in?: boolean[];
106
+ notIn?: boolean[];
107
+ }
108
+ export interface DateFilterField {
109
+ equal?: Date | string;
110
+ notEqual?: Date | string;
111
+ in?: (Date | string)[];
112
+ notIn?: (Date | string)[];
113
+ lesserThan?: Date | string;
114
+ lesserThanOrEqual?: Date | string;
115
+ greaterThan?: Date | string;
116
+ greaterThanOrEqual?: Date | string;
117
+ }
118
+ export interface EnumFilterField<T> {
119
+ equal?: T;
120
+ notEqual?: T;
121
+ in?: T[];
122
+ notIn?: T[];
123
+ }
124
+ export type SortOrder = 'ASC' | 'DESC';
125
+ export type FileStatus = 'UPLOADING' | 'READY' | 'FAILED' | 'DELETED';
126
+ export interface File {
127
+ id: string;
128
+ url?: string;
129
+ status: FileStatus;
130
+ }
131
+ export type AnnouncementType = 'RELEASE' | 'SCHEDULED_MAINTENANCE';
132
+ export type AnnouncementStatus = 'ACTIVE' | 'INACTIVE';
133
+ export type AnnouncementVisibility = 'MEMBER' | 'OPERATOR' | 'GLOBAL';
134
+ export interface Announcement {
135
+ id: string;
136
+ type: AnnouncementType;
137
+ title: string;
138
+ status: AnnouncementStatus;
139
+ message: string;
140
+ activationStartDateTime: string;
141
+ activationEndDateTime: string;
142
+ dateTimeCreated: string;
143
+ dateTimeLastUpdated: string;
144
+ }
145
+ export type GameType = 'SLOTS' | 'SPORTS' | 'FISHING' | 'BINGO' | 'LIVE' | 'GAMES' | 'TABLE' | 'SPECIALTY' | 'NUMERICAL' | 'ARCADE';
146
+ export type GameProvider = 'JILI' | 'JILI_BINGO' | 'PGSOFT' | 'FACHAI' | 'BTI' | 'DG' | 'PLAYTECH' | 'E2E' | 'ONEAPI_EVOLUTION' | 'EVOLUTION' | 'EVOLUTION_NETENT' | 'EVOLUTION_REDTIGER' | 'MEGABALL' | 'MEGA2SPIN' | 'DARWIN' | 'RTG' | 'DRBINGO' | 'HOLLYWOODTV' | 'CQ9' | 'JDB' | 'HABANERO' | 'SPINIX' | 'JOKER' | 'HACKSAW' | 'EVOLUTIONNETENT' | 'JDBGTF' | 'JDBSPRIBE' | 'MICROGAMING' | 'RELAXGAMING' | 'EVOPLAY' | 'BOOONGO' | 'BGAMING' | 'KINGMAKER' | 'KINGMIDAS' | 'YELLOWBAT' | 'ETENGJUE' | 'SABA' | 'PRAGMATICPLAY' | 'SPRIBE' | 'EZUGI' | 'ALIZE';
147
+ export type GameStatus = 'ACTIVE' | 'INACTIVE';
148
+ export type GameTag = 'HOT' | 'hot' | 'NEW' | 'new' | 'TOP' | 'top' | 'POPULAR' | 'popular' | (string & {});
149
+ export interface Game {
150
+ id: string;
151
+ game: string;
152
+ name: string;
153
+ type: GameType;
154
+ provider: GameProvider;
155
+ tags?: GameTag[];
156
+ rank: string;
157
+ site: string;
158
+ image: string;
159
+ cursor: string;
160
+ status: GameStatus;
161
+ platform: string;
162
+ reference: string;
163
+ customImage?: string;
164
+ dateTimeCreated: string;
165
+ dateTimeLastUpdated: string;
166
+ favorite: boolean;
167
+ }
168
+ export interface RecommendedGame {
169
+ id: string;
170
+ name: string;
171
+ type: GameType;
172
+ provider: GameProvider;
173
+ }
174
+ export type GameSessionStatus = 'PENDING' | 'STARTING' | 'READY' | 'ENDED' | 'CANCELLED';
175
+ export interface GameSession {
176
+ id: string;
177
+ game: string;
178
+ status: GameSessionStatus;
179
+ launchUrl?: string | null;
180
+ }
181
+ export interface GameSession__Legacy {
182
+ id: string;
183
+ game: {
184
+ id: string;
185
+ };
186
+ status: GameSessionStatus;
187
+ launchUrl?: string | null;
188
+ }
189
+ export type BetRecordStatus = 'STARTED' | 'SETTLED' | 'CANCELLED';
190
+ export interface BetRecordMetadata {
191
+ odds?: string | null;
192
+ }
193
+ export interface BetRecordGame {
194
+ id: string;
195
+ name: string;
196
+ type: GameType;
197
+ provider: GameProvider;
198
+ }
199
+ export interface BetRecord {
200
+ id: string;
201
+ game: BetRecordGame;
202
+ status: BetRecordStatus;
203
+ serialCode: string;
204
+ vendorRoundId?: string | null;
205
+ bet: string;
206
+ payout: string;
207
+ validBet: string;
208
+ jackpotContribution: string;
209
+ jackpotPayout: string;
210
+ winloss?: string | null;
211
+ dateTimeSettled?: string | null;
212
+ dateTimeCreated: string;
213
+ dateTimeLastUpdated: string;
214
+ betContent?: string | null;
215
+ contestName?: string | null;
216
+ externalCategory?: string | null;
217
+ metadata?: BetRecordMetadata | null;
218
+ }
219
+ export interface LatestBetRecordGame {
220
+ id: string;
221
+ name: string;
222
+ type: GameType;
223
+ provider: GameProvider;
224
+ }
225
+ export interface LatestBetRecord {
226
+ id: string;
227
+ member: {
228
+ name: string;
229
+ };
230
+ game: LatestBetRecordGame;
231
+ bet: string;
232
+ payout: string;
233
+ validBet: string;
234
+ dateTimeSettled: string;
235
+ dateTimeCreated: string;
236
+ }
237
+ export type DepositType = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'GCASH_DIRECT_WEBPAY';
238
+ export type DepositStatus = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
239
+ export type KnownDepositError = 'INSUFFICIENT_BALANCE' | 'DEPOSIT_CREATION_REQUEST_FAILED' | 'DEPOSIT_EXECUTION_REQUEST_FAILED' | 'REQUEST_SESSION_EXPIRED' | 'REQUEST_TIMEOUT' | 'SYSTEM_CANCELLATION' | 'UNEXPECTED_ERROR' | 'FAILED_TO_PROCESS_PAYMENT' | 'MINIMUM_DEPOSIT_AMOUNT_NOT_MET' | 'UNTOUCHED';
240
+ export interface DepositRecord {
241
+ id: string;
242
+ type: DepositType;
243
+ status: DepositStatus;
244
+ amount: string;
245
+ netAmount: string;
246
+ fee: string;
247
+ reference?: string | null;
248
+ deposit: string;
249
+ depositNumber: string;
250
+ dateTimeCreated: string;
251
+ dateTimeLastUpdated: string;
252
+ error?: KnownDepositError | (string & {});
253
+ }
254
+ export interface Deposit {
255
+ id: string;
256
+ type: DepositType;
257
+ status: DepositStatus;
258
+ vca?: string | null;
259
+ qrCode?: string | null;
260
+ checkoutUrl?: string;
261
+ error?: KnownDepositError;
262
+ }
263
+ export type Bank = 'AUBKPHMM' | 'MBTCPHMM' | 'BNORPHMM' | 'MKRUPHM1';
264
+ export type WithdrawalType = 'MANUAL' | 'BANK' | 'GCASH' | 'MAYA_APP' | 'INSTAPAY' | 'MANUAL_UPI' | 'MANUAL_BANK';
265
+ export type WithdrawalStatus = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
266
+ export type WithdrawalError = 'WITHDRAWAL_CREATION_REQUEST_FAILED' | 'WITHDRAWAL_EXECUTION_REQUEST_FAILED' | 'REQUEST_SESSION_EXPIRED' | 'REQUEST_TIMEOUT' | 'SYSTEM_CANCELLATION' | 'UNEXPECTED_ERROR' | 'DAILY_PURCHASE_OR_DEPOSIT_LIMIT_EXCEEDED' | 'WITHDRAWAL_ACCOUNT_EMPTY' | 'FAILED_TO_PROCESS_PAYMENT';
267
+ export interface WithdrawalRecord {
268
+ id: string;
269
+ type: WithdrawalType;
270
+ fee: string;
271
+ amount: string;
272
+ netAmount: string;
273
+ status: WithdrawalStatus;
274
+ reference?: string | null;
275
+ withdrawalNumber: string;
276
+ bank?: Bank | null;
277
+ error?: WithdrawalError | null;
278
+ recipientMobileNumber?: string | null;
279
+ dateTimeConfirmed?: string | null;
280
+ dateTimeCreated: string;
281
+ dateTimeLastUpdated: string;
282
+ }
283
+ export interface InstapayBank {
284
+ id: string;
285
+ name: string;
286
+ code: string;
287
+ }
288
+ export type PromoType = 'DEPOSIT' | 'GENERIC' | 'SPOT_BONUS';
289
+ export type PromoStatus = 'ACTIVE' | 'INACTIVE' | 'DISABLED' | 'EXPIRED';
290
+ export interface Promo {
291
+ id: string;
292
+ type: PromoType;
293
+ name: string;
294
+ banner: File;
295
+ status: PromoStatus;
296
+ description: string;
297
+ minimumBonusAmount?: string | null;
298
+ maximumBonusAmount?: string | null;
299
+ minimumDepositAmount?: string | null;
300
+ turnoverRequirementContributionPercentagePerGameProvider?: JSON;
301
+ maximumDepositAmount?: string | null;
302
+ activationStartDateTime: string;
303
+ activationEndDateTime: string;
304
+ dateTimeCreated: string;
305
+ dateTimeLastUpdated: string;
306
+ }
307
+ export type CashbackStatus = 'ACTIVE' | 'INACTIVE';
308
+ export interface Cashback {
309
+ id: string;
310
+ name: string;
311
+ banner: File;
312
+ status: CashbackStatus;
313
+ minimumCashback: string;
314
+ maximumMonthlyCashback?: string | null;
315
+ description: string;
316
+ activationStartDateTime: string;
317
+ activationEndDateTime: string;
318
+ turnoverContributionPercentagePerGameProvider: Partial<Record<GameProvider, string>>;
319
+ dateTimeCreated: string;
320
+ dateTimeLastUpdated: string;
321
+ }
322
+ export type TurnoverRequirementType = 'BONUS' | 'DEPOSIT_PLUS_BONUS';
323
+ export interface SpotBonusPromo {
324
+ id: string;
325
+ name: string;
326
+ type: PromoType;
327
+ status: PromoStatus;
328
+ daysToClear: number;
329
+ zeroOutThreshold: string;
330
+ turnoverRequirementMultiplier: number;
331
+ turnoverRequirementType?: TurnoverRequirementType;
332
+ minimumTicketOddFactorPerSportsGameProvider: Partial<Record<GameProvider, string>>;
333
+ turnoverRequirementContributionPercentagePerGameProvider: Partial<Record<GameProvider, string>>;
334
+ bonusAmount?: string;
335
+ enabledGameProviders: GameProvider[];
336
+ activationStartDateTime?: string;
337
+ activationEndDateTime?: string;
338
+ banner?: {
339
+ id: string;
340
+ url?: string;
341
+ };
342
+ description?: string;
343
+ dateTimeCreated: string;
344
+ dateTimeLastUpdated: string;
345
+ dateTimeClosed?: string;
346
+ totalBonus: string;
347
+ totalDeposit: string;
348
+ totalBonusBalance: string;
349
+ totalBet: string;
350
+ totalBonusCashedOut: string;
351
+ bonusesCount: number;
352
+ closedBonusesCount: number;
353
+ closedBonusesCountPercentage: string;
354
+ activeBonusesCount: number;
355
+ clearedBonusesCount: number;
356
+ zeroedOutBonusesCount: number;
357
+ cancelledBonusesCount: number;
358
+ expiredBonusesCount: number;
359
+ code: string;
360
+ maximumBonusesCountLimit: number;
361
+ }
362
+ export interface Bonus {
363
+ id: string;
364
+ promo: Promo;
365
+ deposit?: Omit<DepositRecord, 'id' | 'deposit' | 'depositNumber'> | null;
366
+ amount: string;
367
+ balance: string;
368
+ turnoverRequirement: string;
369
+ currentTurnoverRequirementContribution: string;
370
+ currentTurnoverRequirementContributionPercentage: string;
371
+ turnoverRequirementContributionPercentagePerGameProvider: JSON;
372
+ enabledGameProviders: GameProvider[];
373
+ expiration: string;
374
+ dateTimeCreated: string;
375
+ dateTimeLastUpdated: string;
376
+ }
377
+ export interface CashbackBonus {
378
+ id: string;
379
+ balance: string;
380
+ total: string;
381
+ cashback: Cashback;
382
+ dateTimeCreated: string;
383
+ dateTimeLastUpdated: string;
384
+ }
385
+ export type TransactionType = 'DEPOSIT' | 'PAYOUT' | 'WITHDRAWAL_REFUND' | 'TRANSFER_IN' | 'WITHDRAWAL' | 'BET' | 'TRANSFER_OUT' | 'ROLLBACK' | 'BET_REFUND' | 'PAYOUT_REFUND' | 'CASHBACK_BONUS' | 'BONUS' | 'POINTS_TO_CASH_CONVERSION' | 'BONUS_PAYOUT' | 'BONUS_BET' | 'BONUS_CLEARED' | 'BONUS_CREATED' | 'BONUS_ZEROED_OUT' | 'BONUS_CANCELLED';
386
+ export interface TransactionRecord {
387
+ id: string;
388
+ type: TransactionType;
389
+ amount: string;
390
+ content?: string | null;
391
+ currentBalance: string;
392
+ currentBonusBalance: string;
393
+ referenceNumber: string;
394
+ dateTimeCreated: string;
395
+ }
396
+ /**
397
+ * - `PHP` - Philippine Peso
398
+ * - `USD` - United States Dollar
399
+ * - `INR` - Indian Rupee
400
+ * - `MYR` - Malaysian Ringgit
401
+ * - `IDR` - Indonesian Rupiah
402
+ */
403
+ export type Currency = 'PHP' | 'USD' | 'INR' | 'MYR' | 'IDR';
404
+ export type Timezone = 'Asia/Manila' | 'Asia/Kolkata' | 'Asia/Jakarta' | 'Asia/Makassar' | 'Asia/Jayapura' | 'Asia/Kuala_Lumpur' | 'Asia/Ho_Chi_Minh' | (string & {});
405
+ export type Country = 'IDN' | 'IND' | 'MYS' | 'PHL' | 'VNM';
406
+ export interface Wallet {
407
+ balance: string;
408
+ bonus: string | null;
65
409
  }
410
+ export interface PointsWallet {
411
+ id: string;
412
+ points: string;
413
+ account: string;
414
+ dateTimeCreated: string;
415
+ }
416
+ export type PointsWalletTransactionType = 'TURNOVER_COMMISSION' | 'POINTS_TO_CASH_CONVERSION';
417
+ export interface PointsWalletTransaction {
418
+ id: string;
419
+ type: PointsWalletTransactionType;
420
+ amount: string;
421
+ balance: string;
422
+ dateTimeCreated: string;
423
+ }
424
+ export type MemberAccountStatus = 'ACTIVE' | 'DISABLED' | 'BLACKLISTED' | 'SUSPENDED';
425
+ export type MemberAccountVerificationStatus = 'UNVERIFIED' | 'PENDING' | 'VERIFIED';
426
+ export type MemberVerificationStatus = 'PENDING' | 'APPROVED' | 'REJECTED' | 'VERIFIED' | 'UNVERIFIED';
427
+ export interface MemberAccount {
428
+ id: string;
429
+ name: string;
430
+ status: MemberAccountStatus;
431
+ realName?: string | null;
432
+ nickName?: string | null;
433
+ birthDay?: string | null;
434
+ validId?: string | null;
435
+ emailAddress?: string | null;
436
+ mobileNumber?: string | null;
437
+ verified: boolean;
438
+ verificationStatus: MemberAccountVerificationStatus;
439
+ mobileNumberVerified?: boolean | null;
440
+ mobileNumberVerificationRequired?: boolean | null;
441
+ transactionPassword: boolean;
442
+ secretAnswerSubmitted?: boolean | null;
443
+ dateTimeCreated: string;
444
+ dateTimeLastUpdated: string;
445
+ }
446
+ export interface MemberVerification {
447
+ id: string;
448
+ status: MemberVerificationStatus;
449
+ address: string;
450
+ permanentAddress: string;
451
+ sourceOfIncome: string;
452
+ natureOfWork: string;
453
+ nationality: string;
454
+ placeOfBirth: string;
455
+ idFrontImage: File;
456
+ selfieImage: File;
457
+ }
458
+ export type SecretQuestion = 'FIRST_PET' | 'FIRST_CAR' | 'FIRST_SCHOOL' | 'FAVORITE_BOOK' | 'FAVORITE_TEACHER' | 'BEST_CHILDHOOD_FRIEND' | 'BIRTH_PLACE' | 'MOTHERS_MAIDEN_NAME' | 'PARENTS_MET_CITY' | 'FAVORITE_MOVIE';
459
+ export interface ProfileCompletion {
460
+ completionPercentage?: string | null;
461
+ personalInformation?: boolean | null;
462
+ accountVerification?: boolean | null;
463
+ mobileNumberVerification?: boolean | null;
464
+ transactionPassword?: boolean | null;
465
+ accountPassword?: boolean | null;
466
+ }
467
+ export interface DepositGatewaySettings {
468
+ minimumAmount: string;
469
+ maximumAmount: string;
470
+ webEnabled: boolean;
471
+ mobileWebEnabled: boolean;
472
+ androidEnabled: boolean;
473
+ iosEnabled: boolean;
474
+ bankAccountName?: string;
475
+ bankAccountNumber?: string;
476
+ bankIFSCCode?: string;
477
+ upiId?: string;
478
+ upiQRCode?: File;
479
+ }
480
+ export interface WithdrawalGatewaySettings {
481
+ minimumAmount: string;
482
+ maximumAmount: string;
483
+ webEnabled: boolean;
484
+ mobileWebEnabled: boolean;
485
+ androidEnabled: boolean;
486
+ iosEnabled: boolean;
487
+ }
488
+ export interface Platform {
489
+ currency: Currency;
490
+ timezone: string;
491
+ }
492
+ export interface PaymentSettings {
493
+ restrictWithdrawalsToVerifiedMembers: boolean;
494
+ minimumFirstDepositAmount: string;
495
+ bankDepositGatewaySettings?: DepositGatewaySettings | null;
496
+ gcashDepositGatewaySettings?: DepositGatewaySettings | null;
497
+ mayaDepositGatewaySettings?: DepositGatewaySettings | null;
498
+ mayaAppDepositGatewaySettings?: DepositGatewaySettings | null;
499
+ onlineBankDepositGatewaySettings?: DepositGatewaySettings | null;
500
+ qrphDepositGatewaySettings?: DepositGatewaySettings | null;
501
+ manualBankDepositGatewaySettings: DepositGatewaySettings | null;
502
+ manualUPIDepositGatewaySettings: DepositGatewaySettings | null;
503
+ bankWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
504
+ gcashWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
505
+ mayaWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
506
+ mayaAppWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
507
+ instapayWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
508
+ manualBankWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
509
+ manualUPIWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
510
+ }
511
+ export interface MayaSession {
512
+ id: string;
513
+ member?: string;
514
+ dateTimeCreated: string;
515
+ }
516
+ export interface TextField {
517
+ id: string;
518
+ type: 'text';
519
+ label: string;
520
+ value?: string;
521
+ default?: string;
522
+ required?: true;
523
+ pattern?: 'url' | 'email' | (string & {});
524
+ minLength?: number;
525
+ maxLength?: number;
526
+ placeholder?: string;
527
+ }
528
+ export interface RichTextField {
529
+ id: string;
530
+ type: 'rich_text';
531
+ label: string;
532
+ value?: string;
533
+ default?: string;
534
+ required?: true;
535
+ placeholder?: string;
536
+ }
537
+ export interface ImageField {
538
+ id: string;
539
+ type: 'image';
540
+ label: string;
541
+ value?: string;
542
+ default?: string;
543
+ required?: boolean;
544
+ width?: number;
545
+ height?: number;
546
+ minWidth?: number;
547
+ minHeight?: number;
548
+ maxWidth?: number;
549
+ maxHeight?: number;
550
+ }
551
+ export interface SelectField {
552
+ id: string;
553
+ type: 'select';
554
+ label: string;
555
+ value?: string;
556
+ default?: string;
557
+ options: string[];
558
+ required?: boolean;
559
+ }
560
+ export interface MultiSelectField {
561
+ id: string;
562
+ type: 'multi_select';
563
+ label: string;
564
+ value?: string[];
565
+ default?: string[];
566
+ options: string[];
567
+ required?: boolean;
568
+ }
569
+ export interface ToggleField {
570
+ id: string;
571
+ type: 'toggle';
572
+ label: string;
573
+ value?: boolean;
574
+ default?: boolean;
575
+ }
576
+ export interface CompoundField {
577
+ id: string;
578
+ type: 'compound';
579
+ fields: (TextField | ImageField | RichTextField | SelectField | MultiSelectField | ToggleField | CompoundField)[];
580
+ value?: any;
581
+ default?: any;
582
+ multiple?: boolean;
583
+ }
584
+ export type Field = TextField | ImageField | SelectField | MultiSelectField | ToggleField | RichTextField | CompoundField;
585
+ export type FieldType = Field['type'];
586
+ export interface SiteConfig {
587
+ name: string;
588
+ logo: string;
589
+ fields: Field[];
590
+ }
591
+ export interface Site {
592
+ id: string;
593
+ name: string;
594
+ logo?: string | null;
595
+ config: SiteConfig;
596
+ }
597
+ export type ActivityRecordType = 'REGISTRATION' | 'LOGIN' | 'DEPOSIT' | 'WITHDRAWAL' | 'BET' | 'CASHBACK_BONUS' | 'BONUS' | 'FIRST_DEPOSIT';
598
+ export interface ActivityRecord {
599
+ id: string;
600
+ type: ActivityRecordType;
601
+ domain?: string | null;
602
+ amount?: string | null;
603
+ details: string;
604
+ dateTimeCreated: string;
605
+ }
606
+ export interface Referral {
607
+ id: string;
608
+ upline: {
609
+ id: string;
610
+ name: string;
611
+ realName: string;
612
+ };
613
+ downline: {
614
+ id: string;
615
+ name: string;
616
+ realName: string;
617
+ };
618
+ level: number;
619
+ turnover: string;
620
+ commission: string;
621
+ dateTimeCreated: string;
622
+ }
623
+ export interface ReferralCommission {
624
+ id: string;
625
+ commission: string;
626
+ referralCode: string;
627
+ referralsCount: number;
628
+ level1Commission: string;
629
+ level2Commission: string;
630
+ level3Commission: string;
631
+ level1ReferralsCount: number;
632
+ level2ReferralsCount: number;
633
+ level3ReferralsCount: number;
634
+ dateTimeCreated: string;
635
+ dateTimeLastUpdated: string;
636
+ }
637
+ export interface PointsClubSettings {
638
+ multiplier: string;
639
+ }
640
+ export interface MessageAction {
641
+ name: string;
642
+ url: string;
643
+ }
644
+ export type MessageIcon = 'MESSAGE' | 'CHECK' | 'CELEBRATE' | 'ALERT';
645
+ export type MessageType = 'TOURNAMENT_PAYOUT' | 'IMAGE' | 'TEXT';
646
+ export interface Message {
647
+ id: string;
648
+ icon: MessageIcon;
649
+ /** @deprecated use `Message.icon` */
650
+ logo: MessageIcon;
651
+ title: string;
652
+ popup: boolean;
653
+ image?: string;
654
+ content: string;
655
+ actions: MessageAction[];
656
+ markedAsRead: boolean;
657
+ dateTimeCreated: string;
658
+ type: MessageType;
659
+ metadata: {
660
+ tournament: {
661
+ id: string;
662
+ name: string;
663
+ };
664
+ payout: {
665
+ id: string;
666
+ amount: string;
667
+ };
668
+ } | null;
669
+ }
670
+ export type OnboardingStatus = 'PENDING' | 'SKIPPED' | 'COMPLETED';
671
+ export type OnboardingPlayerExperience = 'ROOKIE' | 'VETERAN';
672
+ export type QuestType = 'WAGERING' | 'DAILY_CHECKIN' | 'ONBOARDING';
673
+ export type QuestStatus = 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
674
+ export type QuestProgramStatus = 'ACTIVE' | 'INACTIVE' | 'DELETED';
675
+ export interface QuestProgram {
676
+ type: QuestType;
677
+ name: string;
678
+ status: QuestProgramStatus;
679
+ description: string;
680
+ }
681
+ export type MemberStatus = 'ACTIVE' | 'BLACKLISTED' | 'SUSPENDED';
682
+ export interface Quest {
683
+ id: string;
684
+ name: string;
685
+ description: string;
686
+ program: QuestProgram;
687
+ status: QuestStatus;
688
+ progressPercentage: string;
689
+ turnover: string;
690
+ type: QuestType;
691
+ bonus: string;
692
+ endDateTime: string;
693
+ dateTimeCreated: string;
694
+ lastCheckInDate?: string;
695
+ startDateTime?: string;
696
+ checkInStreak?: number;
697
+ thirdDayBonusAmount?: string;
698
+ sixthDayBonusAmount?: string;
699
+ seventhDayBonusAmount?: string;
700
+ targetTurnover?: string;
701
+ daysToClear?: string;
702
+ bonusAmount?: string;
703
+ firstDepositCompleted?: boolean;
704
+ accountVerificationCompleted?: boolean;
705
+ }
706
+ interface TopWinGame {
707
+ id: string;
708
+ name: string;
709
+ type: GameType;
710
+ provider: GameProvider;
711
+ }
712
+ export interface TopWin {
713
+ id: string;
714
+ game: TopWinGame;
715
+ member: {
716
+ id: string;
717
+ name: string;
718
+ };
719
+ multiplier: string;
720
+ payout: string;
721
+ }
722
+ export type JackpotStatus = 'ACTIVE' | 'CLOSING' | 'DISABLED';
723
+ export type JackpotCursor = 'POOL';
724
+ export type JackpotPayoutCursor = 'AMOUNT';
725
+ export interface Jackpot {
726
+ id: string;
727
+ name: string;
728
+ pool: string;
729
+ description: string;
730
+ status: JackpotStatus;
731
+ minimumJackpotPoolDrawingLimit: string;
732
+ maximumJackpotPoolLimit: string;
733
+ drawing: boolean;
734
+ minimumMultiplier: string;
735
+ minimumBet: string;
736
+ jackpotPayoutPercentage: string;
737
+ jackpotTurnoverContributionPercentagePerGameProvider: Partial<Record<GameProvider, string>>;
738
+ totalPayout: string;
739
+ }
740
+ export interface JackpotPayout {
741
+ id: string;
742
+ member: {
743
+ id: string;
744
+ name: string;
745
+ };
746
+ jackpot: {
747
+ id: string;
748
+ name: string;
749
+ };
750
+ multiplier: string;
751
+ bet: string;
752
+ amount: string;
753
+ }
754
+ export type FCMDeviceType = 'IOS' | 'ANDROID';
755
+ export interface FavoriteGame {
756
+ id: string;
757
+ name: string;
758
+ type: GameType;
759
+ provider: GameProvider;
760
+ }
761
+ export type TournamentStatus = 'ACTIVE' | 'INACTIVE' | 'DELETED';
762
+ export type TournamentType = 'MULTIPLIER';
763
+ export type TournamentFrequency = 'DAILY' | 'WEEKLY' | 'MONTHLY';
764
+ export type TournamentMode = 'ONE_TIME' | 'RECURRING';
765
+ export interface Tournament {
766
+ id: string;
767
+ type: TournamentType;
768
+ name: string;
769
+ winnersCount: string;
770
+ status: TournamentStatus;
771
+ description: string;
772
+ activationStartDateTime: string;
773
+ activationEndDateTime: string;
774
+ topPayouts: TournamentPayout[];
775
+ enabledGameProviders: GameProvider[];
776
+ frequency: TournamentFrequency;
777
+ mode: TournamentMode;
778
+ mobileBanner: {
779
+ id: string;
780
+ url: string;
781
+ mimeType: string;
782
+ };
783
+ webBanner: {
784
+ id: string;
785
+ url: string;
786
+ mimeType: string;
787
+ };
788
+ rewardSettings: Partial<Record<string, string>>;
789
+ currentLeaderboard: PaginatedQueryResult<TournamentLeaderboard>;
790
+ previousLeaderboards: PaginatedQueryResult<TournamentLeaderboard>;
791
+ }
792
+ export interface TournamentLeaderboard {
793
+ id: string;
794
+ username: string;
795
+ multiplier: string;
796
+ dateTimeCreated: string;
797
+ }
798
+ export interface TournamentPayout {
799
+ id: string;
800
+ amount: string;
801
+ member: {
802
+ id: string;
803
+ name: string;
804
+ };
805
+ }
806
+ export interface SecurityQuestionAuthenticator {
807
+ type: 'SECURITY_QUESTION';
808
+ token: string;
809
+ secretQuestion: string;
810
+ }
811
+ export type Authenticator = SecurityQuestionAuthenticator;
66
812
  export interface GameProviderData {
67
813
  id: GameProvider;
68
814
  slug: string;
@@ -74,4 +820,4 @@ export interface GameTypeData {
74
820
  slug: string;
75
821
  name: string;
76
822
  }
77
- export type SignInType = 'NAME_AND_PASSWORD' | 'MOBILE_NUMBER';
823
+ export {};