@opexa/portal-components 0.0.98 → 0.0.100

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 (509) hide show
  1. package/dist/client/hooks/useAccountQuery.js +3 -3
  2. package/dist/client/hooks/useAuthenticateMutation.d.ts +1 -1
  3. package/dist/client/hooks/useAuthenticateMutation.js +3 -2
  4. package/dist/client/hooks/useAvailablePromosQuery.d.ts +1 -1
  5. package/dist/client/hooks/useAvailablePromosQuery.js +3 -3
  6. package/dist/client/hooks/useAvailableQuestsCountQuery.js +3 -3
  7. package/dist/client/hooks/useAvailableQuestsQuery.js +3 -3
  8. package/dist/client/hooks/useBetRecordsQuery.d.ts +1 -1
  9. package/dist/client/hooks/useBetRecordsQuery.js +3 -3
  10. package/dist/client/hooks/useBonusQuery.js +3 -3
  11. package/dist/client/hooks/useBonusesCountQuery.js +3 -3
  12. package/dist/client/hooks/useBonusesQuery.js +3 -3
  13. package/dist/client/hooks/useCashbackBonusQuery.js +3 -3
  14. package/dist/client/hooks/useCashbackBonusesCountQuery.js +3 -3
  15. package/dist/client/hooks/useCashbackBonusesQuery.js +3 -3
  16. package/dist/client/hooks/useCashbackQuery.js +2 -2
  17. package/dist/client/hooks/useCashbacksQuery.js +2 -2
  18. package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +3 -3
  19. package/dist/client/hooks/useClaimCashbackBonusMutation.js +4 -3
  20. package/dist/client/hooks/useClaimSpotBonusMutation.js +4 -3
  21. package/dist/client/hooks/useCreateGCashDepositMutation.d.ts +1 -1
  22. package/dist/client/hooks/useCreateGCashDepositMutation.js +5 -3
  23. package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +1 -1
  24. package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +3 -3
  25. package/dist/client/hooks/useCreateGameSessionMutation.js +5 -3
  26. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +1 -1
  27. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +3 -3
  28. package/dist/client/hooks/useCreateMayaAppDepositMutation.d.ts +1 -1
  29. package/dist/client/hooks/useCreateMayaAppDepositMutation.js +5 -3
  30. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +1 -1
  31. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +3 -3
  32. package/dist/client/hooks/useCreateMayaDepositMutation.d.ts +1 -1
  33. package/dist/client/hooks/useCreateMayaDepositMutation.js +5 -3
  34. package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +1 -1
  35. package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +3 -3
  36. package/dist/client/hooks/useCreateOnlineBankDepositMutation.d.ts +1 -1
  37. package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +5 -3
  38. package/dist/client/hooks/useCreateQRPHDepositMutation.d.ts +1 -1
  39. package/dist/client/hooks/useCreateQRPHDepositMutation.js +5 -3
  40. package/dist/client/hooks/useDepositQuery.js +3 -3
  41. package/dist/client/hooks/useDepositRecordsQuery.d.ts +1 -1
  42. package/dist/client/hooks/useDepositRecordsQuery.js +3 -3
  43. package/dist/client/hooks/useDepositsCountQuery.js +3 -3
  44. package/dist/client/hooks/useEndGameSessionMutation.js +4 -3
  45. package/dist/client/hooks/useFavoriteGamesQuery.js +3 -3
  46. package/dist/client/hooks/useGamesQuery.d.ts +1 -1
  47. package/dist/client/hooks/useGamesQuery.js +2 -2
  48. package/dist/client/hooks/useGlobalStore.d.ts +3 -0
  49. package/dist/client/hooks/useGlobalStore.js +41 -1
  50. package/dist/client/hooks/useInstapayBankListQuery.js +3 -3
  51. package/dist/client/hooks/useIsMayaSessionValidQuery.js +5 -5
  52. package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +1 -1
  53. package/dist/client/hooks/useJackpotPayoutsQuery.js +2 -2
  54. package/dist/client/hooks/useJackpotsCountQuery.d.ts +1 -1
  55. package/dist/client/hooks/useJackpotsCountQuery.js +2 -2
  56. package/dist/client/hooks/useJackpotsQuery.d.ts +1 -1
  57. package/dist/client/hooks/useJackpotsQuery.js +2 -2
  58. package/dist/client/hooks/useLocaleInfo.d.ts +1 -1
  59. package/dist/client/hooks/useLocaleInfo.js +1 -1
  60. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +4 -3
  61. package/dist/client/hooks/useMarkMessageAsReadMutation.js +4 -3
  62. package/dist/client/hooks/useMemberVerificationQuery.js +3 -3
  63. package/dist/client/hooks/useMessagesQuery.d.ts +1 -1
  64. package/dist/client/hooks/useMessagesQuery.js +3 -3
  65. package/dist/client/hooks/usePaymentSettingsQuery.js +3 -3
  66. package/dist/client/hooks/usePlatformQuery.js +2 -2
  67. package/dist/client/hooks/useProfileCompletionQuery.js +3 -3
  68. package/dist/client/hooks/usePromoQuery.js +2 -2
  69. package/dist/client/hooks/usePromosQuery.js +2 -2
  70. package/dist/client/hooks/useSendVerificationCodeMutation.d.ts +1 -1
  71. package/dist/client/hooks/useSendVerificationCodeMutation.js +2 -2
  72. package/dist/client/hooks/useSessionQuery.js +4 -4
  73. package/dist/client/hooks/useSignInMutation.d.ts +1 -1
  74. package/dist/client/hooks/useSignInMutation.js +3 -2
  75. package/dist/client/hooks/useSignOutMutation.js +3 -2
  76. package/dist/client/hooks/useSignUpMutation.d.ts +1 -1
  77. package/dist/client/hooks/useSignUpMutation.js +2 -2
  78. package/dist/client/hooks/useTopWinsQuery.js +2 -2
  79. package/dist/client/hooks/useTournamentsCountQuery.d.ts +1 -1
  80. package/dist/client/hooks/useTournamentsCountQuery.js +2 -2
  81. package/dist/client/hooks/useTournamentsQuery.d.ts +1 -1
  82. package/dist/client/hooks/useTournamentsQuery.js +2 -2
  83. package/dist/client/hooks/useTransactionRecordsQuery.d.ts +1 -1
  84. package/dist/client/hooks/useTransactionRecordsQuery.js +3 -3
  85. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +4 -3
  86. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +1 -1
  87. package/dist/client/hooks/useUnreadMessagesCountQuery.js +3 -3
  88. package/dist/client/hooks/useUpdateAccountMutation.d.ts +1 -1
  89. package/dist/client/hooks/useUpdateAccountMutation.js +4 -3
  90. package/dist/client/hooks/useWalletQuery.js +3 -3
  91. package/dist/client/hooks/useWithdrawalRecordsQuery.d.ts +1 -1
  92. package/dist/client/hooks/useWithdrawalRecordsQuery.js +3 -3
  93. package/dist/client/services/authenticate.d.ts +1 -1
  94. package/dist/client/services/signIn.d.ts +1 -1
  95. package/dist/client/utils/createRecipeContext.js +1 -1
  96. package/dist/client/utils/toaster.d.ts +1 -1
  97. package/dist/client/utils/toaster.js +1 -1
  98. package/dist/components/Account/Account.d.ts +3 -23
  99. package/dist/components/Account/Account.js +10 -115
  100. package/dist/components/Account/Account.lazy.d.ts +23 -0
  101. package/dist/components/Account/Account.lazy.js +138 -0
  102. package/dist/components/Account/AccountTrigger.js +2 -2
  103. package/dist/components/AccountInfo/AccountInfo.js +10 -4
  104. package/dist/components/AccountSecurity/AccountSecurity.js +13 -4
  105. package/dist/components/AccountVerification/AccountVerification.js +12 -3
  106. package/dist/components/Banner/Banner.d.ts +2 -2
  107. package/dist/components/Banner/Banner.js +2 -2
  108. package/dist/components/BetRecords/BetRecords.client.d.ts +7 -0
  109. package/dist/components/BetRecords/BetRecords.client.js +189 -0
  110. package/dist/components/BetRecords/BetRecords.d.ts +3 -7
  111. package/dist/components/BetRecords/BetRecords.js +8 -174
  112. package/dist/components/Bonus/Bonus.client.d.ts +9 -1
  113. package/dist/components/Bonus/Bonus.client.js +13 -4
  114. package/dist/components/Bonus/Bonus.d.ts +2 -9
  115. package/dist/components/Bonus/Bonus.js +22 -6
  116. package/dist/components/Bonuses/Bonuses.client.d.ts +9 -1
  117. package/dist/components/Bonuses/Bonuses.client.js +14 -4
  118. package/dist/components/Bonuses/Bonuses.d.ts +2 -9
  119. package/dist/components/Bonuses/Bonuses.js +3 -2
  120. package/dist/components/Bonuses/BonusesTrigger.js +7 -6
  121. package/dist/components/Cashback/Cashback.client.d.ts +6 -1
  122. package/dist/components/Cashback/Cashback.client.js +7 -3
  123. package/dist/components/Cashback/Cashback.d.ts +2 -6
  124. package/dist/components/Cashback/Cashback.js +11 -6
  125. package/dist/components/DepositWithdrawal/AmountChoices.js +5 -3
  126. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +5 -3
  127. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +6 -3
  128. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +15 -4
  129. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +15 -4
  130. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +15 -4
  131. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositAlert.js +5 -2
  132. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  133. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.js +1 -1
  134. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.js +5 -2
  135. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +10 -4
  136. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  137. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +2 -1
  138. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +5 -2
  139. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  140. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.js +1 -1
  141. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +4 -2
  142. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +10 -4
  143. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  144. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +2 -1
  145. package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +1 -1
  146. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +10 -27
  147. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +1 -0
  148. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +36 -0
  149. package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.js +5 -2
  150. package/dist/components/DepositWithdrawal/PaymentMethods.js +4 -3
  151. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +17 -4
  152. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +18 -4
  153. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +15 -4
  154. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +17 -4
  155. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +11 -4
  156. package/dist/components/Disclaimer/DisclaimerV1.js +2 -1
  157. package/dist/components/Disclaimer/DisclaimerV2.js +2 -1
  158. package/dist/components/Disclaimer/ResponsibleGaming.js +2 -1
  159. package/dist/components/Disclaimer/TermsOfUse.js +3 -2
  160. package/dist/components/Empty.d.ts +1 -2
  161. package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +5 -1
  162. package/dist/components/FavoriteGames/FavoriteGames.client.js +8 -4
  163. package/dist/components/FavoriteGames/FavoriteGames.d.ts +2 -5
  164. package/dist/components/FavoriteGames/FavoriteGames.js +2 -2
  165. package/dist/components/GameLaunch/GameLaunch.d.ts +1 -1
  166. package/dist/components/GameLaunch/GameLaunch.js +10 -71
  167. package/dist/components/GameLaunch/GameLaunch.lazy.d.ts +1 -0
  168. package/dist/components/GameLaunch/GameLaunch.lazy.js +90 -0
  169. package/dist/components/GameLaunch/GameLaunchTrigger.js +4 -2
  170. package/dist/components/GameProviders/GameProvidersCarousel.js +5 -3
  171. package/dist/components/GameProviders/GameProvidersList.js +4 -3
  172. package/dist/components/Games/Game.js +14 -5
  173. package/dist/components/Games/GamesCarousel.client.d.ts +24 -1
  174. package/dist/components/Games/GamesCarousel.client.js +7 -3
  175. package/dist/components/Games/GamesCarousel.d.ts +2 -23
  176. package/dist/components/Games/GamesCarousel.js +2 -2
  177. package/dist/components/Games/GamesContext.js +1 -1
  178. package/dist/components/Games/GamesList.client.d.ts +19 -1
  179. package/dist/components/Games/GamesList.client.js +6 -3
  180. package/dist/components/Games/GamesList.d.ts +2 -18
  181. package/dist/components/Games/GamesList.js +1 -1
  182. package/dist/components/GamesSearch/GamesSearch.d.ts +1 -1
  183. package/dist/components/GamesSearch/GamesSearch.js +10 -4
  184. package/dist/components/Jackpots/Jackpots.js +1 -1
  185. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.js +6 -4
  186. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselContext.js +1 -1
  187. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +9 -3
  188. package/dist/components/Jackpots/JackpotsList/JackpotsList.js +2 -2
  189. package/dist/components/Jackpots/JackpotsList/JackpotsListContext.js +1 -1
  190. package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +8 -2
  191. package/dist/components/Jackpots/JackpotsList/JackpotsListItemGameProviders.js +3 -2
  192. package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +12 -3
  193. package/dist/components/Jackpots/JackpotsList/JackpotsListItemRules.js +2 -2
  194. package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.d.ts +1 -1
  195. package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.js +3 -2
  196. package/dist/components/KYC/Header.js +4 -2
  197. package/dist/components/KYC/Indicator.js +2 -2
  198. package/dist/components/KYC/KYC.d.ts +1 -1
  199. package/dist/components/KYC/KYC.js +10 -22
  200. package/dist/components/KYC/KYC.lazy.d.ts +1 -0
  201. package/dist/components/KYC/KYC.lazy.js +26 -0
  202. package/dist/components/KYC/KYCContext.js +1 -1
  203. package/dist/components/KYC/KYCTrigger.js +1 -1
  204. package/dist/components/KYC/Step1.js +3 -2
  205. package/dist/components/KYC/Step2.js +3 -2
  206. package/dist/components/KYC/Step3.js +4 -2
  207. package/dist/components/KYC/Step4.js +3 -2
  208. package/dist/components/Messages/Message.js +3 -1
  209. package/dist/components/Messages/MessageContext.js +1 -1
  210. package/dist/components/Messages/MessagePopup.js +3 -3
  211. package/dist/components/Messages/MessageTrigger.js +2 -1
  212. package/dist/components/Messages/Messages.d.ts +3 -13
  213. package/dist/components/Messages/Messages.js +10 -35
  214. package/dist/components/Messages/Messages.lazy.d.ts +13 -0
  215. package/dist/components/Messages/Messages.lazy.js +48 -0
  216. package/dist/components/Messages/MessagesTrigger.js +7 -4
  217. package/dist/components/Messages/utils.d.ts +1 -1
  218. package/dist/components/Messages/utils.js +1 -1
  219. package/dist/components/PortalProvider/PortalProvider.js +8 -5
  220. package/dist/components/PortalProvider/Providers.js +1 -1
  221. package/dist/components/PortalProvider/Snackbar.js +4 -3
  222. package/dist/components/Promo/Promo.client.d.ts +6 -1
  223. package/dist/components/Promo/Promo.client.js +7 -3
  224. package/dist/components/Promo/Promo.d.ts +2 -6
  225. package/dist/components/Promo/Promo.js +11 -6
  226. package/dist/components/Promos/Cashback.js +3 -2
  227. package/dist/components/Promos/Promo.js +3 -2
  228. package/dist/components/Promos/Promos.js +3 -2
  229. package/dist/components/Promos/PromosCarousel.js +7 -3
  230. package/dist/components/Promos/PromosGrid.js +2 -1
  231. package/dist/components/Protected/Protected.d.ts +1 -2
  232. package/dist/components/Protected/Protected.js +1 -1
  233. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +10 -5
  234. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +3 -2
  235. package/dist/components/Quests/Quests.client.d.ts +5 -1
  236. package/dist/components/Quests/Quests.client.js +2 -2
  237. package/dist/components/Quests/Quests.d.ts +2 -5
  238. package/dist/components/Quests/Quests.js +1 -1
  239. package/dist/components/Quests/WageringQuest/WageringQuest.js +3 -2
  240. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +3 -2
  241. package/dist/components/Search/Search.d.ts +3 -21
  242. package/dist/components/Search/Search.js +10 -64
  243. package/dist/components/Search/Search.lazy.d.ts +20 -0
  244. package/dist/components/Search/Search.lazy.js +78 -0
  245. package/dist/components/Search/SearchTrigger.js +1 -1
  246. package/dist/components/SignIn/MobileNumberSignIn.js +16 -5
  247. package/dist/components/SignIn/NameAndPasswordSignIn.js +16 -7
  248. package/dist/components/SignIn/SignIn.d.ts +3 -7
  249. package/dist/components/SignIn/SignIn.js +10 -14
  250. package/dist/components/SignIn/SignIn.lazy.d.ts +7 -0
  251. package/dist/components/SignIn/SignIn.lazy.js +18 -0
  252. package/dist/components/SignIn/SignInContext.js +1 -1
  253. package/dist/components/SignIn/SignInMethod.js +1 -1
  254. package/dist/components/SignIn/SignInTrigger.js +1 -1
  255. package/dist/components/SignUp/SignUp.d.ts +3 -7
  256. package/dist/components/SignUp/SignUp.js +10 -12
  257. package/dist/components/SignUp/SignUp.lazy.d.ts +7 -0
  258. package/dist/components/SignUp/SignUp.lazy.js +16 -0
  259. package/dist/components/SignUp/SignUpForm.js +15 -5
  260. package/dist/components/SignUp/SignUpTrigger.js +1 -1
  261. package/dist/components/TopWins/TopWins.client.d.ts +5 -1
  262. package/dist/components/TopWins/TopWins.client.js +8 -3
  263. package/dist/components/TopWins/TopWins.d.ts +2 -5
  264. package/dist/components/TopWins/TopWins.js +1 -1
  265. package/dist/components/Tournaments/Tournaments.js +1 -1
  266. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.js +6 -4
  267. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselContext.js +1 -1
  268. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.js +8 -3
  269. package/dist/components/Tournaments/TournamentsList/TournamentsList.js +2 -2
  270. package/dist/components/Tournaments/TournamentsList/TournamentsListContext.js +1 -1
  271. package/dist/components/Tournaments/TournamentsList/TournamentsListItemDesktop.js +7 -2
  272. package/dist/components/Tournaments/TournamentsList/TournamentsListItemGameProviders.js +3 -2
  273. package/dist/components/Tournaments/TournamentsList/TournamentsListItemMobile.js +10 -3
  274. package/dist/components/Tournaments/TournamentsList/TournamentsListItemRules.js +3 -2
  275. package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.d.ts +1 -1
  276. package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.js +1 -1
  277. package/dist/components/TransactionRecords/DepositRecordsTable.js +12 -4
  278. package/dist/components/TransactionRecords/TableFilters.js +9 -4
  279. package/dist/components/TransactionRecords/TransactionRecords.d.ts +1 -1
  280. package/dist/components/TransactionRecords/TransactionRecords.js +7 -2
  281. package/dist/components/TransactionRecords/TransactionRecordsTable.js +11 -4
  282. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +12 -4
  283. package/dist/constants/endpoints.js +2 -2
  284. package/dist/handlers.js +1 -1
  285. package/dist/middleware.js +1 -1
  286. package/dist/server/services/authenticate.d.ts +1 -1
  287. package/dist/server/services/authenticate.js +1 -1
  288. package/dist/server/services/signIn.d.ts +1 -1
  289. package/dist/server/services/signIn.js +1 -1
  290. package/dist/server/services/signOut.js +1 -1
  291. package/dist/server/utils/prefetchAccountQuery.js +3 -2
  292. package/dist/server/utils/prefetchAvailablePromosQuery.d.ts +1 -1
  293. package/dist/server/utils/prefetchAvailablePromosQuery.js +3 -2
  294. package/dist/server/utils/prefetchAvailableQuestsCountQuery.js +3 -2
  295. package/dist/server/utils/prefetchAvailableQuestsQuery.js +3 -2
  296. package/dist/server/utils/prefetchBetRecordsQuery.d.ts +1 -1
  297. package/dist/server/utils/prefetchBetRecordsQuery.js +3 -2
  298. package/dist/server/utils/prefetchBonusQuery.js +3 -2
  299. package/dist/server/utils/prefetchBonusesCountQuery.js +3 -2
  300. package/dist/server/utils/prefetchBonusesQuery.js +3 -2
  301. package/dist/server/utils/prefetchCashbackBonusQuery.js +3 -2
  302. package/dist/server/utils/prefetchCashbackBonusesCountQuery.js +4 -3
  303. package/dist/server/utils/prefetchCashbackBonusesQuery.js +4 -3
  304. package/dist/server/utils/prefetchCashbackQuery.js +3 -2
  305. package/dist/server/utils/prefetchCashbacksQuery.js +3 -2
  306. package/dist/server/utils/prefetchDepositQuery.js +3 -2
  307. package/dist/server/utils/prefetchDepositRecordsQuery.d.ts +1 -1
  308. package/dist/server/utils/prefetchDepositRecordsQuery.js +3 -2
  309. package/dist/server/utils/prefetchDepositsCountQuery.js +3 -2
  310. package/dist/server/utils/prefetchFavoriteGamesQuery.js +4 -3
  311. package/dist/server/utils/prefetchGamesQuery.d.ts +1 -1
  312. package/dist/server/utils/prefetchGamesQuery.js +3 -2
  313. package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -2
  314. package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +3 -2
  315. package/dist/server/utils/prefetchJackpotsCountQuery.d.ts +1 -1
  316. package/dist/server/utils/prefetchJackpotsCountQuery.js +3 -2
  317. package/dist/server/utils/prefetchJackpotsQuery.d.ts +1 -1
  318. package/dist/server/utils/prefetchJackpotsQuery.js +3 -2
  319. package/dist/server/utils/prefetchMemberVerificationQuery.js +3 -2
  320. package/dist/server/utils/prefetchPaymentSettingsQuery.js +3 -2
  321. package/dist/server/utils/prefetchPlatformQuery.js +3 -2
  322. package/dist/server/utils/prefetchProfileCompletionQuery.js +3 -2
  323. package/dist/server/utils/prefetchPromoQuery.js +3 -2
  324. package/dist/server/utils/prefetchPromosQuery.js +3 -2
  325. package/dist/server/utils/prefetchSessionQuery.js +2 -1
  326. package/dist/server/utils/prefetchTopWinsQuery.js +3 -2
  327. package/dist/server/utils/prefetchTournamentsCountQuery.d.ts +1 -1
  328. package/dist/server/utils/prefetchTournamentsCountQuery.js +3 -2
  329. package/dist/server/utils/prefetchTournamentsQuery.d.ts +1 -1
  330. package/dist/server/utils/prefetchTournamentsQuery.js +3 -2
  331. package/dist/server/utils/prefetchTransactionRecordsQuery.d.ts +1 -1
  332. package/dist/server/utils/prefetchTransactionRecordsQuery.js +3 -2
  333. package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +1 -1
  334. package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +3 -2
  335. package/dist/server/utils/prefetchWalletQuery.js +3 -2
  336. package/dist/server/utils/prefetchWithdrawalRecordsQuery.d.ts +1 -1
  337. package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +3 -2
  338. package/dist/services/account.d.ts +341 -0
  339. package/dist/services/account.js +233 -0
  340. package/dist/services/auth.d.ts +80 -0
  341. package/dist/services/auth.js +152 -0
  342. package/dist/services/cmsPortal.d.ts +43 -0
  343. package/dist/services/cmsPortal.js +148 -0
  344. package/dist/services/file.d.ts +33 -0
  345. package/dist/services/file.js +18 -0
  346. package/dist/services/game.d.ts +44 -0
  347. package/dist/services/game.js +33 -0
  348. package/dist/services/graphqlRequest.js +0 -16
  349. package/dist/services/httpRequest.js +0 -10
  350. package/dist/services/portal.d.ts +37 -0
  351. package/dist/services/portal.js +44 -0
  352. package/dist/services/report.d.ts +223 -0
  353. package/dist/services/report.js +72 -0
  354. package/dist/services/trigger.d.ts +94 -0
  355. package/dist/services/trigger.js +88 -0
  356. package/dist/services/wallet.d.ts +475 -0
  357. package/dist/services/wallet.js +365 -0
  358. package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
  359. package/dist/ui/AlertDialog/AlertDialog.js +1 -1
  360. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
  361. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  362. package/dist/ui/Avatar/Avatar.js +1 -1
  363. package/dist/ui/Avatar/avatar.recipe.js +1 -1
  364. package/dist/ui/Badge/Badge.d.ts +12 -12
  365. package/dist/ui/Badge/Badge.js +1 -1
  366. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  367. package/dist/ui/Badge/badge.recipe.js +1 -1
  368. package/dist/ui/Button/Button.js +2 -1
  369. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  370. package/dist/ui/Checkbox/Checkbox.js +1 -1
  371. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  372. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  373. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  374. package/dist/ui/Clipboard/Clipboard.js +1 -1
  375. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  376. package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
  377. package/dist/ui/Collapsible/Collapsible.d.ts +32 -32
  378. package/dist/ui/Collapsible/Collapsible.js +1 -1
  379. package/dist/ui/Collapsible/collapsible.recipe.d.ts +8 -8
  380. package/dist/ui/Collapsible/collapsible.recipe.js +1 -1
  381. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  382. package/dist/ui/Combobox/Combobox.js +1 -1
  383. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  384. package/dist/ui/Combobox/combobox.recipe.js +1 -1
  385. package/dist/ui/DatePicker/DatePicker.d.ts +336 -336
  386. package/dist/ui/DatePicker/DatePicker.js +1 -1
  387. package/dist/ui/DatePicker/datePicker.recipe.d.ts +14 -14
  388. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  389. package/dist/ui/Dialog/Dialog.d.ts +154 -154
  390. package/dist/ui/Dialog/Dialog.js +1 -1
  391. package/dist/ui/Dialog/dialog.recipe.d.ts +14 -14
  392. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  393. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  394. package/dist/ui/Drawer/Drawer.js +1 -1
  395. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  396. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  397. package/dist/ui/Field/Field.d.ts +21 -21
  398. package/dist/ui/Field/Field.js +1 -1
  399. package/dist/ui/Field/field.recipe.d.ts +3 -3
  400. package/dist/ui/Field/field.recipe.js +1 -1
  401. package/dist/ui/IconButton/IconButton.js +2 -1
  402. package/dist/ui/NumberInput/NumberInput.js +1 -1
  403. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  404. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  405. package/dist/ui/PasswordInput/PasswordInput.js +1 -1
  406. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  407. package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -1
  408. package/dist/ui/PinInput/PinInput.js +1 -1
  409. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  410. package/dist/ui/Popover/Popover.d.ts +121 -121
  411. package/dist/ui/Popover/Popover.js +1 -1
  412. package/dist/ui/Popover/popover.recipe.d.ts +11 -11
  413. package/dist/ui/Popover/popover.recipe.js +1 -1
  414. package/dist/ui/Presence.d.ts +1 -1
  415. package/dist/ui/Presence.js +1 -1
  416. package/dist/ui/Progress/Progress.d.ts +27 -27
  417. package/dist/ui/Progress/Progress.js +1 -1
  418. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  419. package/dist/ui/Progress/progress.recipe.js +1 -1
  420. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  421. package/dist/ui/SegmentGroup/SegmentGroup.js +1 -1
  422. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  423. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  424. package/dist/ui/Select/Select.d.ts +45 -45
  425. package/dist/ui/Select/Select.js +1 -1
  426. package/dist/ui/Select/select.recipe.d.ts +3 -3
  427. package/dist/ui/Select/select.recipe.js +1 -1
  428. package/dist/ui/Table/Table.d.ts +21 -21
  429. package/dist/ui/Table/Table.js +1 -1
  430. package/dist/ui/Table/table.recipe.d.ts +3 -3
  431. package/dist/ui/Table/table.recipe.js +1 -1
  432. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  433. package/dist/ui/Tabs/Tabs.js +1 -1
  434. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  435. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  436. package/dist/utils/getQueryClient.js +2 -2
  437. package/dist/utils/onMobileDevice.d.ts +5 -0
  438. package/dist/utils/onMobileDevice.js +9 -0
  439. package/dist/utils/queryKeys.d.ts +4 -1
  440. package/package.json +29 -30
  441. package/dist/client/hooks/index.d.ts +0 -70
  442. package/dist/client/hooks/index.js +0 -70
  443. package/dist/client/services/index.d.ts +0 -4
  444. package/dist/client/services/index.js +0 -4
  445. package/dist/client/utils/index.d.ts +0 -3
  446. package/dist/client/utils/index.js +0 -3
  447. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +0 -2
  448. package/dist/components/JackpotCounter/JackpotCounter.client.js +0 -66
  449. package/dist/components/JackpotCounter/JackpotCounter.d.ts +0 -17
  450. package/dist/components/JackpotCounter/JackpotCounter.js +0 -21
  451. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +0 -18
  452. package/dist/components/JackpotCounter/JackpotCounterItem.js +0 -109
  453. package/dist/components/JackpotCounter/JackpotCounterItem.module.css +0 -184
  454. package/dist/components/JackpotCounter/index.d.ts +0 -1
  455. package/dist/components/JackpotCounter/index.js +0 -1
  456. package/dist/components/Jackpots/JackpotDesktop.d.ts +0 -1
  457. package/dist/components/Jackpots/JackpotDesktop.js +0 -45
  458. package/dist/components/Jackpots/JackpotGameProviders.d.ts +0 -5
  459. package/dist/components/Jackpots/JackpotGameProviders.js +0 -41
  460. package/dist/components/Jackpots/JackpotMobile.d.ts +0 -1
  461. package/dist/components/Jackpots/JackpotMobile.js +0 -46
  462. package/dist/components/Jackpots/JackpotRules.d.ts +0 -5
  463. package/dist/components/Jackpots/JackpotRules.js +0 -11
  464. package/dist/components/Jackpots/Jackpots.client.d.ts +0 -2
  465. package/dist/components/Jackpots/Jackpots.client.js +0 -29
  466. package/dist/components/Jackpots/JackpotsContext.d.ts +0 -4
  467. package/dist/components/Jackpots/JackpotsContext.js +0 -3
  468. package/dist/components/Jackpots/useJackpotData.d.ts +0 -14
  469. package/dist/components/Jackpots/useJackpotData.js +0 -92
  470. package/dist/components/PortalProvider/WebVitals.d.ts +0 -1
  471. package/dist/components/PortalProvider/WebVitals.js +0 -8
  472. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +0 -2
  473. package/dist/components/TournamentCounter/TournamentCounter.client.js +0 -50
  474. package/dist/components/TournamentCounter/TournamentCounter.d.ts +0 -8
  475. package/dist/components/TournamentCounter/TournamentCounter.js +0 -21
  476. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +0 -8
  477. package/dist/components/TournamentCounter/TournamentCounterItem.js +0 -106
  478. package/dist/components/TournamentCounter/index.d.ts +0 -1
  479. package/dist/components/TournamentCounter/index.js +0 -1
  480. package/dist/components/Tournaments/TournamentDesktop.d.ts +0 -1
  481. package/dist/components/Tournaments/TournamentDesktop.js +0 -57
  482. package/dist/components/Tournaments/TournamentGameProviders.d.ts +0 -5
  483. package/dist/components/Tournaments/TournamentGameProviders.js +0 -38
  484. package/dist/components/Tournaments/TournamentMobile.d.ts +0 -1
  485. package/dist/components/Tournaments/TournamentMobile.js +0 -55
  486. package/dist/components/Tournaments/TournamentRules.d.ts +0 -5
  487. package/dist/components/Tournaments/TournamentRules.js +0 -11
  488. package/dist/components/Tournaments/Tournaments.client.d.ts +0 -2
  489. package/dist/components/Tournaments/Tournaments.client.js +0 -20
  490. package/dist/components/Tournaments/TournamentsContext.d.ts +0 -4
  491. package/dist/components/Tournaments/TournamentsContext.js +0 -3
  492. package/dist/components/Tournaments/useTournamentData.d.ts +0 -10
  493. package/dist/components/Tournaments/useTournamentData.js +0 -71
  494. package/dist/components/index.d.ts +0 -31
  495. package/dist/components/index.js +0 -31
  496. package/dist/icons/index.d.ts +0 -66
  497. package/dist/icons/index.js +0 -66
  498. package/dist/server/services/index.d.ts +0 -4
  499. package/dist/server/services/index.js +0 -4
  500. package/dist/server/utils/index.d.ts +0 -34
  501. package/dist/server/utils/index.js +0 -34
  502. package/dist/services/ObjectId.d.ts +0 -10
  503. package/dist/services/ObjectId.js +0 -72
  504. package/dist/services/index.d.ts +0 -13
  505. package/dist/services/index.js +0 -13
  506. package/dist/ui/index.d.ts +0 -26
  507. package/dist/ui/index.js +0 -26
  508. package/dist/utils/index.d.ts +0 -18
  509. package/dist/utils/index.js +0 -18
@@ -0,0 +1,223 @@
1
+ import type { SimplifyDeep } from 'type-fest';
2
+ import type { ActivityRecord, ActivityRecordType, BetRecord, BetRecordStatus, BooleanFilterField, DateFilterField, DepositRecord, DepositStatus, DepositType, EnumFilterField, GameProvider, GameType, Jackpot, JackpotCursor, JackpotPayout, JackpotPayoutCursor, JackpotStatus, NumberFilterField, ObjectIdFilterField, PaginatedQuery, PointsWalletTransaction, PointsWalletTransactionType, Referral, ReferralCommission, SortOrder, SpotBonusPromo, StringFilterField, Tournament, TournamentStatus, TournamentType, TransactionRecord, TransactionType, WithdrawalRecord, WithdrawalStatus, WithdrawalType } from '../types';
3
+ import { type GraphQLRequestOptions } from './graphqlRequest';
4
+ export type BetRecordsInput = SimplifyDeep<BetRecordsQueryVariables>;
5
+ export interface BetRecordsQuery {
6
+ member: PaginatedQuery<'betRecords', BetRecord>;
7
+ }
8
+ export interface BetRecordsQueryVariables {
9
+ first?: number;
10
+ after?: string;
11
+ sort?: SortOrder;
12
+ filter?: {
13
+ game__type?: EnumFilterField<GameType>;
14
+ game__provider?: EnumFilterField<GameProvider>;
15
+ serialCode?: StringFilterField;
16
+ dateTimeCreated?: DateFilterField;
17
+ vendorRoundId?: StringFilterField;
18
+ status?: EnumFilterField<BetRecordStatus>;
19
+ };
20
+ startDateTime?: DateFilterField;
21
+ endDateTime?: DateFilterField;
22
+ }
23
+ export declare const getBetRecords: (input?: BetRecordsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<BetRecord>>;
24
+ export interface TransactionRecordsQuery {
25
+ member: PaginatedQuery<'transactionRecords', TransactionRecord>;
26
+ }
27
+ export interface TransactionRecordsQueryVariables {
28
+ first?: number;
29
+ after?: string;
30
+ filter?: {
31
+ referenceNumber?: StringFilterField;
32
+ type?: EnumFilterField<TransactionType>;
33
+ dateTimeCreated?: DateFilterField;
34
+ };
35
+ }
36
+ export type TransactionRecordsInput = SimplifyDeep<TransactionRecordsQueryVariables>;
37
+ export declare const getTransactionRecords: (input?: TransactionRecordsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<TransactionRecord>>;
38
+ export interface WithdrawalRecordsQuery {
39
+ member: PaginatedQuery<'withdrawalRecords', WithdrawalRecord>;
40
+ }
41
+ export interface WithdrawalRecordsQueryVariables {
42
+ first?: number;
43
+ after?: string;
44
+ filter?: {
45
+ id?: ObjectIdFilterField;
46
+ type?: EnumFilterField<WithdrawalType>;
47
+ status?: EnumFilterField<WithdrawalStatus>;
48
+ reference?: StringFilterField;
49
+ withdrawal?: ObjectIdFilterField;
50
+ withdrawalNumber?: StringFilterField;
51
+ dateTimeCreated?: DateFilterField;
52
+ dateTimeLastUpdated?: DateFilterField;
53
+ };
54
+ }
55
+ export type WithdrawalRecordsInput = SimplifyDeep<WithdrawalRecordsQueryVariables>;
56
+ export declare const getWithdrawalRecords: (input?: WithdrawalRecordsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<WithdrawalRecord>>;
57
+ export interface DepositRecordsQuery {
58
+ member: PaginatedQuery<'depositRecords', DepositRecord>;
59
+ }
60
+ export interface DepositRecordsQueryVariables {
61
+ first?: number;
62
+ after?: string;
63
+ filter?: {
64
+ id?: ObjectIdFilterField;
65
+ type?: EnumFilterField<DepositType>;
66
+ status?: EnumFilterField<DepositStatus>;
67
+ deposit?: ObjectIdFilterField;
68
+ depositNumber?: StringFilterField;
69
+ reference?: StringFilterField;
70
+ dateTimeCreated?: DateFilterField;
71
+ dateTimeLastUpdated?: DateFilterField;
72
+ };
73
+ }
74
+ export type DepositRecordsInput = SimplifyDeep<DepositRecordsQueryVariables>;
75
+ export declare const getDepositRecords: (input?: DepositRecordsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<DepositRecord>>;
76
+ export interface DepositsCountQuery {
77
+ member: {
78
+ depositsCount: number;
79
+ };
80
+ }
81
+ export declare const getDepositsCount: (options?: GraphQLRequestOptions) => Promise<number>;
82
+ export interface PointsWalletTransactionsQueryVariables {
83
+ first?: number;
84
+ after?: string;
85
+ filter?: {
86
+ type?: EnumFilterField<PointsWalletTransactionType>;
87
+ };
88
+ }
89
+ export interface PointsWalletTransactionsQuery {
90
+ member: PaginatedQuery<'pointsWalletTransactions', PointsWalletTransaction>;
91
+ }
92
+ export type PointsWalletTransactionsInput = SimplifyDeep<PointsWalletTransactionsQueryVariables>;
93
+ export declare const getPointsWalletTransactions: (input?: PointsWalletTransactionsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<PointsWalletTransaction>>;
94
+ export interface ActivityRecordsQuery {
95
+ member: PaginatedQuery<'activityRecords', ActivityRecord>;
96
+ }
97
+ export interface ActivityRecordsQueryVariables {
98
+ first?: number;
99
+ after?: string;
100
+ filter?: {
101
+ type?: EnumFilterField<ActivityRecordType>;
102
+ dateTimeCreated?: DateFilterField;
103
+ };
104
+ }
105
+ export type ActivityRecordsInput = SimplifyDeep<ActivityRecordsQueryVariables>;
106
+ export declare const getActivityRecords: (input?: ActivityRecordsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<ActivityRecord>>;
107
+ export interface ReferralsQuery {
108
+ member: PaginatedQuery<'referrals', Referral>;
109
+ }
110
+ export interface ReferralsQueryVariables {
111
+ first?: number;
112
+ after?: string;
113
+ filter?: {
114
+ level?: NumberFilterField;
115
+ upline?: ObjectIdFilterField;
116
+ downline?: ObjectIdFilterField;
117
+ };
118
+ }
119
+ export type ReferralsInput = SimplifyDeep<ReferralsQueryVariables>;
120
+ export declare const getReferrals: (input?: ReferralsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<Referral>>;
121
+ export interface ReferralCommissionQuery {
122
+ member: {
123
+ referralCommission?: ReferralCommission | null;
124
+ };
125
+ }
126
+ export declare const getReferralCommission: (options?: GraphQLRequestOptions) => Promise<ReferralCommission | null>;
127
+ export interface UplinesByNameQuery {
128
+ uplinesByName: Referral[];
129
+ }
130
+ export interface UplinesByNameQueryVariables {
131
+ search: string;
132
+ first?: number;
133
+ }
134
+ export type UplinesByNameInput = SimplifyDeep<UplinesByNameQueryVariables>;
135
+ export declare const getUplinesByName: (input?: UplinesByNameInput, options?: GraphQLRequestOptions) => Promise<Referral[]>;
136
+ export interface DownlinesByNameQueryVariables {
137
+ search: string;
138
+ first?: number;
139
+ }
140
+ export interface DownlinesByNameQuery {
141
+ downlinesByName: Referral[];
142
+ }
143
+ export type DownlinesByNameInput = SimplifyDeep<DownlinesByNameQueryVariables>;
144
+ export declare const getDownlinesByName: (input?: DownlinesByNameInput, options?: GraphQLRequestOptions) => Promise<Referral[]>;
145
+ export interface PromoByCodeQueryVariables {
146
+ code: string;
147
+ }
148
+ export interface PromoByCodeQuery {
149
+ promoByCode: SpotBonusPromo;
150
+ }
151
+ export declare const getPromoByCode: (code: string, options?: GraphQLRequestOptions) => Promise<SpotBonusPromo>;
152
+ export interface JackpotsQuery extends PaginatedQuery<'jackpots', Jackpot> {
153
+ }
154
+ export interface JackpotsQueryVariables {
155
+ after?: string;
156
+ first?: number;
157
+ filter?: {
158
+ id?: ObjectIdFilterField;
159
+ name?: StringFilterField;
160
+ status?: EnumFilterField<JackpotStatus>;
161
+ drawing?: BooleanFilterField;
162
+ deleted?: BooleanFilterField;
163
+ };
164
+ sort?: {
165
+ order: SortOrder;
166
+ cursor: JackpotCursor;
167
+ };
168
+ }
169
+ export type JackpotsInput = SimplifyDeep<JackpotsQueryVariables>;
170
+ export declare const getJackpots: (input?: JackpotsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<Jackpot>>;
171
+ export interface JackpotsCountQuery {
172
+ jackpots: {
173
+ totalCount: number;
174
+ };
175
+ }
176
+ export interface JackpotsCountQueryVariables {
177
+ filter?: JackpotsQueryVariables['filter'];
178
+ }
179
+ export type JackpotsCountInput = SimplifyDeep<JackpotsCountQueryVariables>;
180
+ export declare const getJackpotsCount: (input?: JackpotsCountInput, options?: GraphQLRequestOptions) => Promise<number>;
181
+ export interface JackpotPayoutsQuery extends PaginatedQuery<'jackpotPayouts', JackpotPayout> {
182
+ }
183
+ export interface JackpotPayoutsQueryVariables {
184
+ after?: string;
185
+ first?: number;
186
+ filter?: {
187
+ id?: ObjectIdFilterField;
188
+ member?: ObjectIdFilterField;
189
+ jackpot?: ObjectIdFilterField;
190
+ dateTimeCreated?: DateFilterField;
191
+ };
192
+ sort?: {
193
+ order: SortOrder;
194
+ cursor: JackpotPayoutCursor;
195
+ };
196
+ }
197
+ export type JackpotPayoutsInput = SimplifyDeep<JackpotPayoutsQueryVariables>;
198
+ export declare const getJackpotPayouts: (input?: JackpotPayoutsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<JackpotPayout>>;
199
+ export interface TournamentsQuery extends PaginatedQuery<'tournaments', Tournament> {
200
+ }
201
+ export interface TournamentsQueryVariables {
202
+ after?: string;
203
+ first?: number;
204
+ filter?: {
205
+ id?: ObjectIdFilterField;
206
+ type?: EnumFilterField<TournamentType>;
207
+ status?: EnumFilterField<TournamentStatus>;
208
+ activationStartDateTime?: DateFilterField;
209
+ activationEndDateTime?: DateFilterField;
210
+ };
211
+ }
212
+ export type TournamentsInput = SimplifyDeep<TournamentsQueryVariables>;
213
+ export declare const getTournaments: (input?: TournamentsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<Tournament>>;
214
+ export interface TournamentsCountQuery {
215
+ tournaments: {
216
+ totalCount: number;
217
+ };
218
+ }
219
+ export interface TournamentsCountQueryVariables {
220
+ filter?: TournamentsQueryVariables['filter'];
221
+ }
222
+ export type TournamentsCountInput = SimplifyDeep<TournamentsCountQueryVariables>;
223
+ export declare const getTournamentsCount: (input?: TournamentsCountInput, options?: GraphQLRequestOptions) => Promise<number>;
@@ -0,0 +1,72 @@
1
+ import { cache } from 'react';
2
+ import { REPORT_GRAPHQL_ENDPOINT } from '../constants/index.js';
3
+ import { graphqlRequest } from './graphqlRequest.js';
4
+ import { ACTIVITY_RECORDS, BET_RECORDS, DEPOSIT_RECORDS, DEPOSITS_COUNT, DOWNLINES_BY_NAME, JACKPOT_PAYOUTS, JACKPOTS, JACKPOTS_COUNT, POINTS_WALLET_TRANSACTIONS, PROMO_BY_CODE, REFERRAL_COMMISSION, REFERRALS, TOURNAMENTS, TOURNAMENTS_COUNT, TRANSACTION_RECORDS, UPLINES_BY_NAME, WITHDRAWAL_RECORDS, } from './queries.js';
5
+ export const getBetRecords = cache(async (input, options) => {
6
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, BET_RECORDS, input, options);
7
+ return res.member.betRecords;
8
+ });
9
+ export const getTransactionRecords = cache(async (input, options) => {
10
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, TRANSACTION_RECORDS, input, options);
11
+ return res.member.transactionRecords;
12
+ });
13
+ export const getWithdrawalRecords = cache(async (input, options) => {
14
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, WITHDRAWAL_RECORDS, input, options);
15
+ return res.member.withdrawalRecords;
16
+ });
17
+ export const getDepositRecords = cache(async (input, options) => {
18
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, DEPOSIT_RECORDS, input, options);
19
+ return res.member.depositRecords;
20
+ });
21
+ export const getDepositsCount = cache(async (options) => {
22
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, DEPOSITS_COUNT, undefined, options);
23
+ return res.member.depositsCount;
24
+ });
25
+ export const getPointsWalletTransactions = cache(async (input, options) => {
26
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, POINTS_WALLET_TRANSACTIONS, input, options);
27
+ return res.member.pointsWalletTransactions;
28
+ });
29
+ export const getActivityRecords = cache(async (input, options) => {
30
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, ACTIVITY_RECORDS, input, options);
31
+ return res.member.activityRecords;
32
+ });
33
+ export const getReferrals = cache(async (input, options) => {
34
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, REFERRALS, input, options);
35
+ return res.member.referrals;
36
+ });
37
+ export const getReferralCommission = cache(async (options) => {
38
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, REFERRAL_COMMISSION, undefined, options);
39
+ return res.member.referralCommission ?? null;
40
+ });
41
+ export const getUplinesByName = cache(async (input, options) => {
42
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, UPLINES_BY_NAME, input, options);
43
+ return res.uplinesByName;
44
+ });
45
+ export const getDownlinesByName = cache(async (input, options) => {
46
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, DOWNLINES_BY_NAME, input, options);
47
+ return res.downlinesByName;
48
+ });
49
+ export const getPromoByCode = cache(async (code, options) => {
50
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, PROMO_BY_CODE, { code }, options);
51
+ return res.promoByCode;
52
+ });
53
+ export const getJackpots = cache(async (input, options) => {
54
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, JACKPOTS, input, options);
55
+ return res.jackpots;
56
+ });
57
+ export const getJackpotsCount = cache(async (input, options) => {
58
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, JACKPOTS_COUNT, input, options);
59
+ return res.jackpots.totalCount ?? 0;
60
+ });
61
+ export const getJackpotPayouts = cache(async (input, options) => {
62
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, JACKPOT_PAYOUTS, input, options);
63
+ return res.jackpotPayouts;
64
+ });
65
+ export const getTournaments = cache(async (input, options) => {
66
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, TOURNAMENTS, input, options);
67
+ return res.tournaments;
68
+ });
69
+ export const getTournamentsCount = cache(async (input, options) => {
70
+ const res = await graphqlRequest(REPORT_GRAPHQL_ENDPOINT, TOURNAMENTS_COUNT, input, options);
71
+ return res.tournaments.totalCount ?? 0;
72
+ });
@@ -0,0 +1,94 @@
1
+ import type { Simplify, SimplifyDeep } from 'type-fest';
2
+ import type { BooleanFilterField, FCMDeviceType, Message, PaginatedQuery, Quest } from '../types';
3
+ import { type GraphQLRequestOptions } from './graphqlRequest';
4
+ export interface MessagesQueryVariables {
5
+ first?: number;
6
+ after?: string;
7
+ filter?: {
8
+ popup?: BooleanFilterField;
9
+ markedAsRead?: BooleanFilterField;
10
+ };
11
+ }
12
+ export interface MessagesQuery extends PaginatedQuery<'messages', Message> {
13
+ }
14
+ export interface MessagesInput extends SimplifyDeep<MessagesQueryVariables> {
15
+ }
16
+ export declare const getMessages: (input?: MessagesInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<Message>>;
17
+ export interface UnreadMessagesCountQuery {
18
+ messages: {
19
+ totalCount: number;
20
+ };
21
+ }
22
+ export interface UnreadMessagesCountQueryVariables {
23
+ filter?: {
24
+ popup?: BooleanFilterField;
25
+ };
26
+ }
27
+ export type UnreadMessagesCountInput = SimplifyDeep<UnreadMessagesCountQueryVariables>;
28
+ export declare const getUnreadMessagesCount: (input?: UnreadMessagesCountInput, options?: GraphQLRequestOptions) => Promise<number>;
29
+ export interface MarkMessageAsReadMutationVariables {
30
+ id: string;
31
+ }
32
+ export interface MarkMessageAsReadMutation {
33
+ markMessageAsRead: boolean;
34
+ }
35
+ export declare const markMessageAsRead: (id: string, options?: GraphQLRequestOptions) => Promise<void>;
36
+ export interface MarkAllMessagesAsReadMutation {
37
+ markAllMessagesAsRead: boolean;
38
+ }
39
+ export declare const markAllMessagesAsRead: (options?: GraphQLRequestOptions) => Promise<void>;
40
+ export interface ClaimRewardMutationVariables {
41
+ id: string;
42
+ }
43
+ export type ClaimRewardError = {
44
+ name: 'RewardAlreadyClaimedError';
45
+ message: string;
46
+ } | {
47
+ name: 'RewardAlreadyExpiredError';
48
+ message: string;
49
+ };
50
+ export interface ClaimRewardMutation {
51
+ claimReward?: null | ClaimRewardError;
52
+ }
53
+ export declare const claimReward: (id: string, options?: GraphQLRequestOptions) => Promise<void>;
54
+ export interface AvailableQuestsQuery {
55
+ availableQuests: Quest[];
56
+ }
57
+ export declare const getAvailableQuests: (options?: GraphQLRequestOptions) => Promise<Quest[]>;
58
+ export interface AvailableQuestsIdsQuery {
59
+ availableQuests: {
60
+ id: string;
61
+ }[];
62
+ }
63
+ export declare const getAvailableQuestsCount: (options?: GraphQLRequestOptions) => Promise<number>;
64
+ export interface CheckInDailyCheckInQuestMutation {
65
+ checkInDailyCheckInQuest: boolean;
66
+ }
67
+ export interface CheckInDailyCheckInQuestMutationVariables {
68
+ input: {
69
+ id: string;
70
+ };
71
+ }
72
+ export declare const checkInDailyCheckInQuest: (id: string, options?: GraphQLRequestOptions) => Promise<void>;
73
+ export interface RegisterFCMDeviceMutationVariables {
74
+ input: {
75
+ type: FCMDeviceType;
76
+ token: string;
77
+ };
78
+ }
79
+ export interface RegisterFCMDeviceMutation {
80
+ registerFCMDevice: boolean;
81
+ }
82
+ export type RegisterFCMDeviceInput = Simplify<RegisterFCMDeviceMutationVariables['input']>;
83
+ export declare const registerFCMDevice: (input: RegisterFCMDeviceInput, options?: GraphQLRequestOptions) => Promise<void>;
84
+ export interface UnregisterFCMDeviceMutationVariables {
85
+ input: {
86
+ type: FCMDeviceType;
87
+ token: string;
88
+ };
89
+ }
90
+ export interface UnregisterFCMDeviceMutation {
91
+ unregisterFCMDevice: boolean;
92
+ }
93
+ export type UnregisterFCMDeviceInput = Simplify<UnregisterFCMDeviceMutationVariables['input']>;
94
+ export declare const unregisterFCMDevice: (input: UnregisterFCMDeviceInput, options?: GraphQLRequestOptions) => Promise<void>;
@@ -0,0 +1,88 @@
1
+ import { cache } from 'react';
2
+ import { TRIGGER_GRAPHQL_ENDPOINT } from '../constants/index.js';
3
+ import { graphqlRequest } from './graphqlRequest.js';
4
+ import { AVAILABLE_QUESTS, AVAILABLE_QUESTS_IDS, CHECK_IN_DAILY_QUEST, CLAIM_REWARD, MARK_ALL_MESSAGES_AS_READ, MARK_MESSAGE_AS_READ, MESSAGES, REGISTER_FCM_DEVICE, UNREAD_MESSAGES_COUNT, UNREGISTER_FCM_DEVICE, } from './queries.js';
5
+ export const getMessages = cache(async (input, options) => {
6
+ const res = await graphqlRequest(TRIGGER_GRAPHQL_ENDPOINT, MESSAGES, input, options);
7
+ return res.messages;
8
+ });
9
+ export const getUnreadMessagesCount = cache(async (input, options) => {
10
+ const res = await graphqlRequest(TRIGGER_GRAPHQL_ENDPOINT, UNREAD_MESSAGES_COUNT, {
11
+ ...input,
12
+ filter: {
13
+ ...input?.filter,
14
+ markedAsRead: {
15
+ equal: false,
16
+ },
17
+ },
18
+ }, options);
19
+ return res.messages.totalCount ?? 0;
20
+ });
21
+ export const markMessageAsRead = async (id, options) => {
22
+ const res = await graphqlRequest(TRIGGER_GRAPHQL_ENDPOINT, MARK_MESSAGE_AS_READ, { id }, options);
23
+ if (!res.markMessageAsRead) {
24
+ const error = new Error();
25
+ error.name = 'UnknownError';
26
+ error.message = 'Something went wrong.';
27
+ Error.captureStackTrace?.(error, markMessageAsRead);
28
+ throw error;
29
+ }
30
+ };
31
+ export const markAllMessagesAsRead = async (options) => {
32
+ const res = await graphqlRequest(TRIGGER_GRAPHQL_ENDPOINT, MARK_ALL_MESSAGES_AS_READ, undefined, options);
33
+ if (!res.markAllMessagesAsRead) {
34
+ const error = new Error();
35
+ error.name = 'UnknownError';
36
+ error.message = 'Something went wrong.';
37
+ Error.captureStackTrace?.(error, markAllMessagesAsRead);
38
+ throw error;
39
+ }
40
+ };
41
+ export const claimReward = async (id, options) => {
42
+ const res = await graphqlRequest(TRIGGER_GRAPHQL_ENDPOINT, CLAIM_REWARD, { id }, options);
43
+ if (res.claimReward) {
44
+ const error = new Error();
45
+ error.name = res.claimReward.name;
46
+ error.message = res.claimReward.message;
47
+ Error.captureStackTrace?.(error, claimReward);
48
+ throw error;
49
+ }
50
+ };
51
+ export const getAvailableQuests = cache(async (options) => {
52
+ const res = await graphqlRequest(TRIGGER_GRAPHQL_ENDPOINT, AVAILABLE_QUESTS, undefined, options);
53
+ return res.availableQuests;
54
+ });
55
+ export const getAvailableQuestsCount = cache(async (options) => {
56
+ const res = await graphqlRequest(TRIGGER_GRAPHQL_ENDPOINT, AVAILABLE_QUESTS_IDS, undefined, options);
57
+ return res.availableQuests.length ?? 0;
58
+ });
59
+ export const checkInDailyCheckInQuest = async (id, options) => {
60
+ const res = await graphqlRequest(TRIGGER_GRAPHQL_ENDPOINT, CHECK_IN_DAILY_QUEST, { input: { id } }, options);
61
+ if (!res.checkInDailyCheckInQuest) {
62
+ const error = new Error();
63
+ error.name = 'UnknownError';
64
+ error.message = 'Something went wrong.';
65
+ Error.captureStackTrace?.(error, checkInDailyCheckInQuest);
66
+ throw error;
67
+ }
68
+ };
69
+ export const registerFCMDevice = async (input, options) => {
70
+ const res = await graphqlRequest(TRIGGER_GRAPHQL_ENDPOINT, REGISTER_FCM_DEVICE, { input }, options);
71
+ if (!res.registerFCMDevice) {
72
+ const error = new Error();
73
+ error.name = 'UnknownError';
74
+ error.message = 'Something went wrong.';
75
+ Error.captureStackTrace?.(error, registerFCMDevice);
76
+ throw error;
77
+ }
78
+ };
79
+ export const unregisterFCMDevice = async (input, options) => {
80
+ const res = await graphqlRequest(TRIGGER_GRAPHQL_ENDPOINT, UNREGISTER_FCM_DEVICE, { input }, options);
81
+ if (!res.unregisterFCMDevice) {
82
+ const error = new Error();
83
+ error.name = 'UnknownError';
84
+ error.message = 'Something went wrong.';
85
+ Error.captureStackTrace?.(error, unregisterFCMDevice);
86
+ throw error;
87
+ }
88
+ };