@opexa/portal-components 0.0.83 → 0.0.85

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 (292) hide show
  1. package/dist/client/hooks/useAccountQuery.d.ts +1 -2
  2. package/dist/client/hooks/useAccountQuery.js +3 -10
  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 +3 -10
  6. package/dist/client/hooks/useAvailableQuestsQuery.d.ts +1 -2
  7. package/dist/client/hooks/useAvailableQuestsQuery.js +3 -10
  8. package/dist/client/hooks/useBetRecordsQuery.d.ts +2 -2
  9. package/dist/client/hooks/useBetRecordsQuery.js +3 -10
  10. package/dist/client/hooks/useBonusQuery.d.ts +1 -2
  11. package/dist/client/hooks/useBonusQuery.js +5 -14
  12. package/dist/client/hooks/useBonusesQuery.d.ts +1 -2
  13. package/dist/client/hooks/useBonusesQuery.js +3 -10
  14. package/dist/client/hooks/useCashbackBonusQuery.d.ts +1 -2
  15. package/dist/client/hooks/useCashbackBonusQuery.js +3 -10
  16. package/dist/client/hooks/useCashbackBonusesQuery.d.ts +1 -2
  17. package/dist/client/hooks/useCashbackBonusesQuery.js +3 -10
  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 +2 -9
  22. package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +4 -11
  23. package/dist/client/hooks/useClaimCashbackBonusMutation.js +3 -9
  24. package/dist/client/hooks/useClaimSpotBonusMutation.js +3 -9
  25. package/dist/client/hooks/useCreateGCashDepositMutation.d.ts +2 -2
  26. package/dist/client/hooks/useCreateGCashDepositMutation.js +5 -16
  27. package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +1 -1
  28. package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +4 -11
  29. package/dist/client/hooks/useCreateGameSessionMutation.d.ts +1 -2
  30. package/dist/client/hooks/useCreateGameSessionMutation.js +7 -25
  31. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +1 -1
  32. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +4 -11
  33. package/dist/client/hooks/useCreateMayaAppDepositMutation.d.ts +2 -2
  34. package/dist/client/hooks/useCreateMayaAppDepositMutation.js +5 -16
  35. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +1 -1
  36. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +4 -11
  37. package/dist/client/hooks/useCreateMayaDepositMutation.d.ts +2 -2
  38. package/dist/client/hooks/useCreateMayaDepositMutation.js +5 -16
  39. package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +1 -1
  40. package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +4 -11
  41. package/dist/client/hooks/useCreateOnlineBankDepositMutation.d.ts +2 -2
  42. package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +5 -16
  43. package/dist/client/hooks/useCreateQRPHDepositMutation.d.ts +3 -3
  44. package/dist/client/hooks/useCreateQRPHDepositMutation.js +5 -16
  45. package/dist/client/hooks/useDepositQuery.d.ts +1 -2
  46. package/dist/client/hooks/useDepositQuery.js +5 -11
  47. package/dist/client/hooks/useDepositRecordsQuery.d.ts +2 -2
  48. package/dist/client/hooks/useDepositRecordsQuery.js +3 -10
  49. package/dist/client/hooks/useDepositsCountQuery.js +5 -11
  50. package/dist/client/hooks/useEndGameSessionMutation.d.ts +1 -2
  51. package/dist/client/hooks/useEndGameSessionMutation.js +4 -12
  52. package/dist/client/hooks/useFavoriteGamesQuery.d.ts +1 -2
  53. package/dist/client/hooks/useFavoriteGamesQuery.js +5 -11
  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 +5 -11
  60. package/dist/client/hooks/useIsMayaSessionValidQuery.js +3 -10
  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 +3 -9
  66. package/dist/client/hooks/useMarkMessageAsReadMutation.js +3 -9
  67. package/dist/client/hooks/useMemberVerificationQuery.d.ts +1 -2
  68. package/dist/client/hooks/useMemberVerificationQuery.js +3 -10
  69. package/dist/client/hooks/useMessagesQuery.d.ts +2 -2
  70. package/dist/client/hooks/useMessagesQuery.js +3 -10
  71. package/dist/client/hooks/usePaymentSettingsQuery.d.ts +1 -2
  72. package/dist/client/hooks/usePaymentSettingsQuery.js +3 -10
  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 +3 -10
  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 +3 -10
  93. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +3 -9
  94. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +1 -1
  95. package/dist/client/hooks/useUnreadMessagesCountQuery.js +3 -10
  96. package/dist/client/hooks/useUpdateAccountMutation.d.ts +1 -1
  97. package/dist/client/hooks/useUpdateAccountMutation.js +3 -9
  98. package/dist/client/hooks/useWalletQuery.d.ts +1 -2
  99. package/dist/client/hooks/useWalletQuery.js +5 -11
  100. package/dist/client/hooks/useWithdrawalRecordsQuery.d.ts +2 -2
  101. package/dist/client/hooks/useWithdrawalRecordsQuery.js +3 -10
  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 +88 -88
  236. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  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 +264 -264
  248. package/dist/ui/DatePicker/datePicker.recipe.d.ts +11 -11
  249. package/dist/ui/Dialog/Dialog.d.ts +88 -88
  250. package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
  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/Popover/Popover.d.ts +55 -55
  254. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  255. package/dist/ui/Progress/Progress.d.ts +27 -27
  256. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  257. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  258. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  259. package/dist/ui/Select/Select.d.ts +45 -45
  260. package/dist/ui/Select/select.recipe.d.ts +3 -3
  261. package/dist/ui/Table/Table.d.ts +21 -21
  262. package/dist/ui/Table/table.recipe.d.ts +3 -3
  263. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  264. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  265. package/dist/utils/getGameImageUrl.d.ts +1 -1
  266. package/dist/utils/getGameImageUrl.js +3 -5
  267. package/dist/utils/getGameProviderData.d.ts +1 -2
  268. package/dist/utils/getGameTypeData.d.ts +1 -2
  269. package/dist/utils/graphqlRequest.d.ts +4 -0
  270. package/dist/utils/graphqlRequest.js +255 -0
  271. package/dist/utils/httpRequest.d.ts +6 -0
  272. package/dist/utils/httpRequest.js +87 -0
  273. package/dist/utils/queryKeys.d.ts +1 -1
  274. package/dist/utils/sha256.d.ts +4 -0
  275. package/dist/utils/sha256.js +16 -0
  276. package/package.json +166 -160
  277. package/dist/components/Games/GameContext.d.ts +0 -2
  278. package/dist/components/Games/GameContext.js +0 -2
  279. package/dist/components/Jackpots/JackpotItemDesktop.d.ts +0 -9
  280. package/dist/components/Jackpots/JackpotItemDesktop.js +0 -43
  281. package/dist/components/Jackpots/JackpotItemMobile.d.ts +0 -9
  282. package/dist/components/Jackpots/JackpotItemMobile.js +0 -44
  283. package/dist/components/Jackpots/useJackpotItemData.d.ts +0 -20
  284. package/dist/components/Jackpots/useJackpotItemData.js +0 -87
  285. package/dist/components/Messages/MessageItem.d.ts +0 -4
  286. package/dist/components/Tournaments/TournamentItemDesktop.d.ts +0 -7
  287. package/dist/components/Tournaments/TournamentItemDesktop.js +0 -56
  288. package/dist/components/Tournaments/TournamentItemMobile.d.ts +0 -7
  289. package/dist/components/Tournaments/TournamentItemMobile.js +0 -54
  290. package/dist/components/Tournaments/useTournamentItemData.d.ts +0 -16
  291. package/dist/components/Tournaments/useTournamentItemData.js +0 -64
  292. package/dist/images/hacksaw-gaming.png +0 -0
@@ -1,5 +1,4 @@
1
- import { getProfileCompletion } from '@opexa/portal-sdk-core';
2
- import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
1
+ import { getProfileCompletion } from '../../services/index.js';
3
2
  import { getProfileCompletionQueryKey, getQueryClient } from '../../utils/index.js';
4
3
  import { getSession } from '../services/getSession.js';
5
4
  export const prefetchProfileCompletionQuery = async () => {
@@ -11,9 +10,7 @@ export const prefetchProfileCompletionQuery = async () => {
11
10
  queryFn: async ({ signal }) => {
12
11
  return await getProfileCompletion({
13
12
  signal,
14
- environment: ENVIRONMENT,
15
13
  headers: {
16
- 'Platform-Code': PLATFORM_CODE,
17
14
  Authorization: `Bearer ${session.token}`,
18
15
  },
19
16
  });
@@ -1,20 +1,11 @@
1
- import { getPromos } from '@opexa/portal-sdk-core';
2
- import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
1
+ import { getPromo } from '../../services/index.js';
3
2
  import { getPromoQueryKey, getQueryClient } from '../../utils/index.js';
4
3
  export const prefetchPromoQuery = async (id) => {
5
4
  await getQueryClient().prefetchQuery({
6
5
  queryKey: getPromoQueryKey(id),
7
6
  queryFn: async ({ signal }) => {
8
- /* FIXME: use getPromo query once api is fixed */
9
- const promos = await getPromos({
10
- signal,
11
- environment: ENVIRONMENT,
12
- headers: {
13
- 'Platform-Code': PLATFORM_CODE,
14
- },
15
- });
16
- const promo = promos.find((p) => p.id === id) ?? null;
17
- return promo;
7
+ const promo = await getPromo(id, { signal });
8
+ return promo ?? null;
18
9
  },
19
10
  });
20
11
  };
@@ -1,17 +1,10 @@
1
- import { getPromos } from '@opexa/portal-sdk-core';
2
- import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
1
+ import { getPromos } from '../../services/index.js';
3
2
  import { getPromosQueryKey, getQueryClient } from '../../utils/index.js';
4
3
  export const prefetchPromosQuery = async () => {
5
4
  await getQueryClient().prefetchQuery({
6
5
  queryKey: getPromosQueryKey(),
7
6
  queryFn: async ({ signal }) => {
8
- return await getPromos({
9
- signal,
10
- environment: ENVIRONMENT,
11
- headers: {
12
- 'Platform-Code': PLATFORM_CODE,
13
- },
14
- });
7
+ return await getPromos({ signal });
15
8
  },
16
9
  });
17
10
  };
@@ -1,17 +1,10 @@
1
- import { getTopWins } from '@opexa/portal-sdk-core';
2
- import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
1
+ import { getTopWins } from '../../services/index.js';
3
2
  import { getQueryClient, getTopWinsQueryKey } from '../../utils/index.js';
4
3
  export const prefetchTopWinsQuery = async () => {
5
4
  await getQueryClient().prefetchQuery({
6
5
  queryKey: getTopWinsQueryKey(),
7
6
  queryFn: async ({ signal }) => {
8
- return await getTopWins({
9
- signal,
10
- environment: ENVIRONMENT,
11
- headers: {
12
- 'Platform-Code': PLATFORM_CODE,
13
- },
14
- });
7
+ return await getTopWins({ signal });
15
8
  },
16
9
  });
17
10
  };
@@ -1,2 +1,2 @@
1
- import { type TournamentsInput } from '@opexa/portal-sdk-core';
1
+ import { type TournamentsInput } from '../../services';
2
2
  export declare const prefetchTournamentsQuery: (input?: TournamentsInput) => Promise<void>;
@@ -1,17 +1,10 @@
1
- import { getTournaments } from '@opexa/portal-sdk-core';
2
- import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
1
+ import { getTournaments } from '../../services/index.js';
3
2
  import { getQueryClient, getTournamentsQueryKey } from '../../utils/index.js';
4
3
  export const prefetchTournamentsQuery = async (input) => {
5
4
  await getQueryClient().prefetchInfiniteQuery({
6
5
  queryKey: getTournamentsQueryKey(input),
7
6
  queryFn: async ({ signal }) => {
8
- return await getTournaments(input, {
9
- signal,
10
- environment: ENVIRONMENT,
11
- headers: {
12
- 'Platform-Code': PLATFORM_CODE,
13
- },
14
- });
7
+ return await getTournaments(input, { signal });
15
8
  },
16
9
  initialPageParam: undefined,
17
10
  });
@@ -1,2 +1,2 @@
1
- import { type TransactionRecordsInput } from '@opexa/portal-sdk-core';
1
+ import { type TransactionRecordsInput } from '../../services';
2
2
  export declare const prefetchTransactionRecordsQuery: (input?: TransactionRecordsInput) => Promise<void>;
@@ -1,5 +1,4 @@
1
- import { getTransactionRecords, } from '@opexa/portal-sdk-core';
2
- import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
1
+ import { getTransactionRecords, } from '../../services/index.js';
3
2
  import { getQueryClient, getTransactionRecordsQueryKey } from '../../utils/index.js';
4
3
  import { getSession } from '../services/getSession.js';
5
4
  export const prefetchTransactionRecordsQuery = async (input) => {
@@ -11,9 +10,7 @@ export const prefetchTransactionRecordsQuery = async (input) => {
11
10
  queryFn: async ({ signal }) => {
12
11
  return await getTransactionRecords(input, {
13
12
  signal,
14
- environment: ENVIRONMENT,
15
13
  headers: {
16
- 'Platform-Code': PLATFORM_CODE,
17
14
  Authorization: `Bearer ${session.token}`,
18
15
  },
19
16
  });
@@ -1,2 +1,2 @@
1
- import { type UnreadMessagesCountInput } from '@opexa/portal-sdk-core';
1
+ import { type UnreadMessagesCountInput } from '../../services';
2
2
  export declare const prefetchUnreadMessagesCountQuery: (input?: UnreadMessagesCountInput) => Promise<void>;
@@ -1,5 +1,4 @@
1
- import { getUnreadMessagesCount, } from '@opexa/portal-sdk-core';
2
- import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
1
+ import { getUnreadMessagesCount, } from '../../services/index.js';
3
2
  import { getAccountQueryKey, getQueryClient } from '../../utils/index.js';
4
3
  import { getSession } from '../services/getSession.js';
5
4
  export const prefetchUnreadMessagesCountQuery = async (input) => {
@@ -11,9 +10,7 @@ export const prefetchUnreadMessagesCountQuery = async (input) => {
11
10
  queryFn: async ({ signal }) => {
12
11
  return await getUnreadMessagesCount(input, {
13
12
  signal,
14
- environment: ENVIRONMENT,
15
13
  headers: {
16
- 'Platform-Code': PLATFORM_CODE,
17
14
  Authorization: `Bearer ${session.token}`,
18
15
  },
19
16
  });
@@ -1,5 +1,4 @@
1
- import { getWallet } from '@opexa/portal-sdk-core';
2
- import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
1
+ import { getWallet } from '../../services/index.js';
3
2
  import { getQueryClient, getWalletQueryKey } from '../../utils/index.js';
4
3
  import { getSession } from '../services/getSession.js';
5
4
  export const prefetchWalletQuery = async () => {
@@ -9,14 +8,13 @@ export const prefetchWalletQuery = async () => {
9
8
  await getQueryClient().prefetchQuery({
10
9
  queryKey: getWalletQueryKey(),
11
10
  queryFn: async ({ signal }) => {
12
- return await getWallet({
11
+ const wallet = await getWallet({
13
12
  signal,
14
- environment: ENVIRONMENT,
15
13
  headers: {
16
- 'Platform-Code': PLATFORM_CODE,
17
14
  Authorization: `Bearer ${session.token}`,
18
15
  },
19
16
  });
17
+ return wallet ?? null;
20
18
  },
21
19
  });
22
20
  };
@@ -1,2 +1,2 @@
1
- import { type WithdrawalRecordsInput } from '@opexa/portal-sdk-core';
1
+ import { type WithdrawalRecordsInput } from '../../services';
2
2
  export declare const prefetchWithdrawalRecordsQuery: (input?: WithdrawalRecordsInput) => Promise<void>;
@@ -1,5 +1,4 @@
1
- import { getWithdrawalRecords, } from '@opexa/portal-sdk-core';
2
- import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
1
+ import { getWithdrawalRecords, } from '../../services/index.js';
3
2
  import { getQueryClient, getWithdrawalRecordsQueryKey } from '../../utils/index.js';
4
3
  import { getSession } from '../services/getSession.js';
5
4
  export const prefetchWithdrawalRecordsQuery = async (input) => {
@@ -11,9 +10,7 @@ export const prefetchWithdrawalRecordsQuery = async (input) => {
11
10
  queryFn: async ({ signal }) => {
12
11
  return await getWithdrawalRecords(input, {
13
12
  signal,
14
- environment: ENVIRONMENT,
15
13
  headers: {
16
- 'Platform-Code': PLATFORM_CODE,
17
14
  Authorization: `Bearer ${session.token}`,
18
15
  },
19
16
  });
@@ -0,0 +1,24 @@
1
+ export declare class ObjectId {
2
+ private _buffer;
3
+ constructor(buffer: Buffer);
4
+ static translate(id: ObjectId, type: number): ObjectId;
5
+ static generate(type?: number): ObjectId;
6
+ static generateFromKey(type: number, key: string): Promise<ObjectId>;
7
+ static from(value: string | Buffer): ObjectId;
8
+ get type(): number;
9
+ get buffer(): Buffer<ArrayBufferLike>;
10
+ compare(other: ObjectId): 0 | 1 | -1;
11
+ equals(other: ObjectId): boolean;
12
+ clone(): ObjectId;
13
+ toString(encoding?: 'bs58' | 'hex' | 'base64'): string;
14
+ }
15
+ export declare const ObjectType: {
16
+ MemberAccount: number;
17
+ MemberVerification: number;
18
+ Deposit: number;
19
+ Withdrawal: number;
20
+ File: number;
21
+ Game: number;
22
+ GameSession: number;
23
+ MayaSession: number;
24
+ };
@@ -0,0 +1,86 @@
1
+ import bs58 from 'bs58';
2
+ import { sha256 } from 'crypto-hash';
3
+ import randomBytes from 'randombytes';
4
+ const MACHINE_ID = randomBytes(5);
5
+ let counter = randomBytes(4).readUInt32BE(0) & 0xffffff;
6
+ export class ObjectId {
7
+ _buffer;
8
+ constructor(buffer) {
9
+ this._buffer = buffer;
10
+ }
11
+ static translate(id, type) {
12
+ const buffer = Buffer.from(id.buffer);
13
+ buffer[0] = type & 0xff;
14
+ return ObjectId.from(buffer);
15
+ }
16
+ static generate(type) {
17
+ const buffer = Buffer.alloc(13);
18
+ const time = Math.floor(Date.now() / 1000) & 0xffffffff;
19
+ counter = (counter + 1) & 0xffffff;
20
+ buffer[0] = (type ?? 0) & 0xff;
21
+ buffer[1] = (time >> 24) & 0xff;
22
+ buffer[2] = (time >> 16) & 0xff;
23
+ buffer[3] = (time >> 8) & 0xff;
24
+ buffer[4] = time & 0xff;
25
+ buffer[5] = MACHINE_ID[0];
26
+ buffer[6] = MACHINE_ID[1];
27
+ buffer[7] = MACHINE_ID[2];
28
+ buffer[8] = MACHINE_ID[3];
29
+ buffer[9] = MACHINE_ID[4];
30
+ buffer[10] = (counter >> 16) & 0xff;
31
+ buffer[11] = (counter >> 8) & 0xff;
32
+ buffer[12] = counter & 0xff;
33
+ return new ObjectId(buffer);
34
+ }
35
+ static async generateFromKey(type, key) {
36
+ const buffer = Buffer.alloc(13);
37
+ buffer[0] = type & 0xff;
38
+ Buffer.from(await sha256(key, { outputFormat: 'buffer' })).copy(buffer, 1, 0, 12);
39
+ return new ObjectId(buffer);
40
+ }
41
+ static from(value) {
42
+ if (typeof value === 'string') {
43
+ if (value.length > 20) {
44
+ throw new Error('String value exceeds the limit of 20 characters');
45
+ }
46
+ return new ObjectId(Buffer.from(bs58.decode(value)));
47
+ }
48
+ if (value instanceof Buffer) {
49
+ return new ObjectId(value);
50
+ }
51
+ throw new Error('Invalid value type. Expected string or Buffer.');
52
+ }
53
+ get type() {
54
+ return this.buffer[0];
55
+ }
56
+ get buffer() {
57
+ return this._buffer;
58
+ }
59
+ compare(other) {
60
+ return this._buffer.compare(other._buffer);
61
+ }
62
+ equals(other) {
63
+ return this._buffer.equals(other._buffer);
64
+ }
65
+ clone() {
66
+ const buffer = Buffer.alloc(13);
67
+ this.buffer.copy(buffer);
68
+ return ObjectId.from(buffer);
69
+ }
70
+ toString(encoding) {
71
+ if (!encoding || encoding === 'bs58') {
72
+ return bs58.encode(this._buffer);
73
+ }
74
+ return this._buffer.toString(encoding);
75
+ }
76
+ }
77
+ export const ObjectType = {
78
+ MemberAccount: 8,
79
+ MemberVerification: 15,
80
+ Deposit: 9,
81
+ Withdrawal: 14,
82
+ File: 16,
83
+ Game: 203,
84
+ GameSession: 204,
85
+ MayaSession: 230,
86
+ };
@@ -0,0 +1,341 @@
1
+ import type { Simplify, SimplifyDeep } from 'type-fest';
2
+ import type { Announcement, AnnouncementType, AnnouncementVisibility, DateFilterField, EnumFilterField, MemberAccount, MemberVerification, PaginatedQuery, PaymentSettings, PointsClubSettings, ProfileCompletion, SecretQuestion } from '../types';
3
+ import { type GraphQLRequestOptions } from './graphqlRequest';
4
+ export interface MemberAccountQuery {
5
+ memberAccount: MemberAccount;
6
+ }
7
+ export declare const getMemberAccount: (options?: GraphQLRequestOptions) => Promise<MemberAccount>;
8
+ export type RegisterMemberAccountError = {
9
+ name: 'AccountNameNotAvailableError';
10
+ message: string;
11
+ } | {
12
+ name: 'InvalidPlatformError';
13
+ message: string;
14
+ } | {
15
+ name: 'InvalidReCAPTCHAResponseError';
16
+ message: string;
17
+ } | {
18
+ name: 'InvalidSMSVerificationCodeError';
19
+ message: string;
20
+ } | {
21
+ name: 'MinimumAgeRequirementError';
22
+ message: string;
23
+ } | {
24
+ name: 'MobileNumberNotAvailableError';
25
+ message: string;
26
+ } | {
27
+ name: 'ReCAPTCHAVerificationFailedError';
28
+ message: string;
29
+ };
30
+ export interface RegisterMemberAccountMutation {
31
+ registerMemberAccount?: null | RegisterMemberAccountError;
32
+ }
33
+ export interface RegisterMemberAccountMutationVariables {
34
+ input: {
35
+ id: string;
36
+ name: string;
37
+ password: string;
38
+ mobileNumber: string;
39
+ birthDay: string;
40
+ domain?: string;
41
+ btag?: string;
42
+ };
43
+ referralCode?: string;
44
+ verificationCode?: string;
45
+ }
46
+ export type RegisterMemberAccountInput = Simplify<RegisterMemberAccountMutationVariables['input'] & Pick<RegisterMemberAccountMutationVariables, 'referralCode' | 'verificationCode'>>;
47
+ export declare const registerMemberAccount: (input: RegisterMemberAccountInput, options?: GraphQLRequestOptions) => Promise<void>;
48
+ export interface RegisterMemberAccountViaMobileMutation {
49
+ registerMemberAccountViaMobile?: null | RegisterMemberAccountError;
50
+ }
51
+ export interface RegisterMemberAccountViaMobileMutationVariables {
52
+ input: {
53
+ id: string;
54
+ mobileNumber: string;
55
+ domain?: string;
56
+ btag?: string;
57
+ };
58
+ referralCode?: string;
59
+ verificationCode?: string;
60
+ }
61
+ export type RegisterMemberAccountViaMobileInput = Simplify<RegisterMemberAccountViaMobileMutationVariables['input'] & Pick<RegisterMemberAccountViaMobileMutationVariables, 'verificationCode' | 'referralCode'>>;
62
+ export declare const registerMemberAccountViaMobile: (input: RegisterMemberAccountViaMobileInput, options?: GraphQLRequestOptions) => Promise<void>;
63
+ export interface RegisterMemberAccountByMobileNumberMutationVariables {
64
+ input: {
65
+ id: string;
66
+ mobileNumber: string;
67
+ password: string;
68
+ realName: string;
69
+ };
70
+ mobileNumberVerificationCode: string;
71
+ }
72
+ export type RegisterMemberAccountByMobileNumberError = {
73
+ name: 'MobileNumberNotAvailableError';
74
+ message: string;
75
+ } | {
76
+ name: 'InvalidSMSVerificationCodeError';
77
+ message: string;
78
+ } | {
79
+ name: 'InvalidPlatformError';
80
+ message: string;
81
+ };
82
+ export interface RegisterMemberAccountByMobileNumberMutation {
83
+ registerMemberAccountByMobileNumber?: null | RegisterMemberAccountByMobileNumberError;
84
+ }
85
+ export type RegisterMemberAccountByMobileNumberInput = Simplify<RegisterMemberAccountByMobileNumberMutationVariables['input'] & Pick<RegisterMemberAccountByMobileNumberMutationVariables, 'mobileNumberVerificationCode'>>;
86
+ export declare const registerMemberAccountByMobileNumber: (input: RegisterMemberAccountByMobileNumberInput, options?: GraphQLRequestOptions) => Promise<void>;
87
+ export interface RegisterMemberAccountMutationVariables__Next {
88
+ input: {
89
+ id: string;
90
+ name: string;
91
+ password: string;
92
+ mobileNumber?: string;
93
+ domain?: string;
94
+ btag?: string;
95
+ };
96
+ }
97
+ export type RegisterMemberAccountInput__Next = Simplify<RegisterMemberAccountMutationVariables__Next['input']>;
98
+ export declare const registerMemberAccount__next: (input: RegisterMemberAccountInput__Next, options?: GraphQLRequestOptions) => Promise<void>;
99
+ export type RegisterMemberAccountByNameError = {
100
+ name: 'AccountNameNotAvailableError';
101
+ message: string;
102
+ } | {
103
+ name: 'InvalidPlatformError';
104
+ message: string;
105
+ } | {
106
+ name: 'InvalidReCAPTCHAResponseError';
107
+ message: string;
108
+ };
109
+ export interface RegisterMemberAccountByNameMutationVariables {
110
+ input: {
111
+ id: string;
112
+ name: string;
113
+ password: string;
114
+ };
115
+ }
116
+ export interface RegisterMemberAccountByNameMutation {
117
+ registerMemberAccountByName?: null | RegisterMemberAccountByNameError;
118
+ }
119
+ export type RegisterMemberAccountByNameInput = Simplify<RegisterMemberAccountByNameMutationVariables['input']>;
120
+ export declare const registerMemberAccountByName: (input: RegisterMemberAccountByNameInput, options?: GraphQLRequestOptions) => Promise<void>;
121
+ export type UpdateMemberAccountError = {
122
+ name: 'AccountNameNotAvailableError';
123
+ message: string;
124
+ } | {
125
+ name: 'EmailAddressNotAvailableError';
126
+ message: string;
127
+ } | {
128
+ name: 'InvalidTransactionPasswordError';
129
+ message: string;
130
+ } | {
131
+ name: 'MobileNumberNotAvailableError';
132
+ message: string;
133
+ } | {
134
+ name: 'NickNameNotAvailableError';
135
+ message: string;
136
+ } | {
137
+ name: 'RealNameAlreadySetError';
138
+ message: string;
139
+ } | {
140
+ name: 'ValidIdAlreadySetError';
141
+ message: string;
142
+ };
143
+ export interface UpdateMemberAccountMutation {
144
+ updateMemberAccount?: null | UpdateMemberAccountError;
145
+ }
146
+ export interface UpdateMemberAccountMutationVariables {
147
+ input: {
148
+ id: string;
149
+ data: {
150
+ name?: string;
151
+ password?: string;
152
+ emailAddress?: string;
153
+ mobileNumber?: string;
154
+ realName?: string;
155
+ nickName?: string;
156
+ transactionPassword?: string;
157
+ validId?: string;
158
+ mobileNumberVerificationRequired?: boolean;
159
+ secretQuestion?: SecretQuestion;
160
+ secretAnswer?: string;
161
+ birthDay?: string;
162
+ branchCode?: string;
163
+ };
164
+ };
165
+ }
166
+ export type UpdateMemberAccountDataInput = Simplify<UpdateMemberAccountMutationVariables['input']['data']>;
167
+ export declare const updateMemberAccount: (id: string, data: UpdateMemberAccountDataInput, options?: GraphQLRequestOptions) => Promise<void>;
168
+ export interface DeleteMemberAccountMutation {
169
+ deleteMemberAccount: boolean;
170
+ }
171
+ export interface DeleteMemberAccountMutationVariables {
172
+ input: {
173
+ id: string;
174
+ };
175
+ }
176
+ export declare const deleteMemberAccount: (id: string, options?: GraphQLRequestOptions) => Promise<void>;
177
+ export type ResetPasswordError = {
178
+ name: 'AccountNotFoundError';
179
+ message: string;
180
+ } | {
181
+ name: 'InvalidVerificationCodeError';
182
+ message: string;
183
+ };
184
+ export interface ResetPasswordMutation {
185
+ resetPassword?: null | ResetPasswordError;
186
+ }
187
+ export interface ResetPasswordMutationVariables {
188
+ input: {
189
+ mobileNumber: string;
190
+ newPassword: string;
191
+ };
192
+ verificationCode: string;
193
+ }
194
+ export type ResetPasswordInput = Simplify<ResetPasswordMutationVariables['input'] & Pick<ResetPasswordMutationVariables, 'verificationCode'>>;
195
+ export declare const resetPassword: (input: ResetPasswordInput, options?: GraphQLRequestOptions) => Promise<void>;
196
+ export interface ProfileCompletionQuery {
197
+ profileCompletion: ProfileCompletion;
198
+ }
199
+ export declare const getProfileCompletion: (options?: GraphQLRequestOptions) => Promise<ProfileCompletion>;
200
+ export interface PaymentSettingsQuery extends PaymentSettings {
201
+ }
202
+ export declare const getPaymentSettings: (options?: GraphQLRequestOptions) => Promise<PaymentSettingsQuery>;
203
+ export type VerifyMobileNumberError = {
204
+ name: 'InvalidSMSVerificationCodeError';
205
+ message: string;
206
+ } | {
207
+ name: 'MobileNumberAlreadyVerifiedError';
208
+ message: string;
209
+ };
210
+ export interface VerifyMobileNumberMutation {
211
+ verifyMobileNumber?: null | VerifyMobileNumberError;
212
+ }
213
+ export interface VerifyMobileNumberMutationVariables {
214
+ input: {
215
+ verificationCode: string;
216
+ };
217
+ }
218
+ export declare const verifyMobileNumber: (verificationCode: string, options?: GraphQLRequestOptions) => Promise<void>;
219
+ export type CreateMemberVerificationError = {
220
+ name: 'FileDoesNotExistError';
221
+ message: string;
222
+ } | {
223
+ name: 'FileNotReadyError';
224
+ message: string;
225
+ } | {
226
+ name: 'MemberVerificationAlreadyExistsError';
227
+ message: string;
228
+ };
229
+ export interface CreateMemberVerificationMutation {
230
+ createMemberVerification?: null | CreateMemberVerificationError;
231
+ }
232
+ export interface CreateMemberVerificationMutationVariables {
233
+ input: {
234
+ id: string;
235
+ idFrontImage: string;
236
+ selfieImage: string;
237
+ address: string;
238
+ permanentAddress: string;
239
+ sourceOfIncome: string;
240
+ natureOfWork: string;
241
+ nationality: string;
242
+ placeOfBirth: string;
243
+ };
244
+ }
245
+ export type CreateMemberVerificationInput = Simplify<CreateMemberVerificationMutationVariables['input']>;
246
+ export declare const createMemberVerification: (input: CreateMemberVerificationInput, options?: GraphQLRequestOptions) => Promise<void>;
247
+ export declare const createMemberVerification__next: (input: CreateMemberVerificationInput, options?: GraphQLRequestOptions) => Promise<void>;
248
+ export type UpdateMemberVerificationError = {
249
+ name: 'FileDoesNotExistError';
250
+ message: string;
251
+ } | {
252
+ name: 'FileNotReadyError';
253
+ message: string;
254
+ } | {
255
+ name: 'MemberVerificationAlreadyApprovedError';
256
+ message: string;
257
+ } | {
258
+ name: 'MemberVerificationDoesNotExistError';
259
+ message: string;
260
+ };
261
+ export interface UpdateMemberVerificationMutation {
262
+ updateMemberVerification?: null | UpdateMemberVerificationError;
263
+ }
264
+ export interface UpdateMemberVerificationMutationVariables {
265
+ input: {
266
+ id: string;
267
+ data: {
268
+ idFrontImage?: string;
269
+ selfieImage?: string;
270
+ address?: string;
271
+ permanentAddress?: string;
272
+ sourceOfIncome?: string;
273
+ natureOfWork?: string;
274
+ nationality?: string;
275
+ placeOfBirth?: string;
276
+ };
277
+ };
278
+ }
279
+ export type UpdateMemberVerificationDataInput = Simplify<UpdateMemberVerificationMutationVariables['input']['data']>;
280
+ export declare const updateMemberVerification: (id: string, data: UpdateMemberVerificationDataInput, options?: GraphQLRequestOptions) => Promise<void>;
281
+ export interface MemberVerificationQuery {
282
+ memberAccount: {
283
+ verification?: MemberVerification | null;
284
+ };
285
+ }
286
+ export declare const getMemberVerification: (options?: GraphQLRequestOptions) => Promise<MemberVerification | null>;
287
+ export interface AnnouncementsQuery extends PaginatedQuery<'announcements', Announcement> {
288
+ }
289
+ export interface AnnouncementsQueryVariables {
290
+ first?: number;
291
+ after?: string;
292
+ filter?: {
293
+ type?: EnumFilterField<AnnouncementType>;
294
+ visibility?: EnumFilterField<AnnouncementVisibility>;
295
+ activationStartDateTime?: DateFilterField;
296
+ activationEndDateTime?: DateFilterField;
297
+ };
298
+ }
299
+ export type AnnouncementsInput = SimplifyDeep<AnnouncementsQueryVariables>;
300
+ export declare const getAnnouncements: (input?: AnnouncementsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<Announcement>>;
301
+ export type RegisterMayaMemberAccountError = {
302
+ name: 'AccountNameNotAvailableError';
303
+ message: string;
304
+ };
305
+ export interface RegisterMayaMemberAccountMutation {
306
+ registerMayaMemberAccount?: null | RegisterMayaMemberAccountError;
307
+ }
308
+ export interface RegisterMayaMemberAccountMutationVariables {
309
+ input: {
310
+ name: string;
311
+ password: string;
312
+ domain?: string;
313
+ };
314
+ }
315
+ export type RegisterMayaMemberAccountInput = Simplify<RegisterMayaMemberAccountMutationVariables['input']>;
316
+ export declare const registerMayaMemberAccount: (input: RegisterMayaMemberAccountInput, options?: GraphQLRequestOptions) => Promise<void>;
317
+ export interface ReferralCodeQuery {
318
+ referralCode?: string | null;
319
+ }
320
+ export declare const getReferralCode: (options?: GraphQLRequestOptions) => Promise<string | null>;
321
+ export interface UpdateReferralCodeMutationVariables {
322
+ input: {
323
+ code: string;
324
+ };
325
+ }
326
+ export type UpdateReferralCodeError = {
327
+ name: 'ReferralCodeNotAvailableError';
328
+ message: string;
329
+ };
330
+ export interface UpdateReferralCodeMutation {
331
+ updateReferralCode?: null | UpdateReferralCodeError;
332
+ }
333
+ export declare const updateReferralCode: (code: string, options?: GraphQLRequestOptions) => Promise<void>;
334
+ export interface PointsClubSettingsQuery {
335
+ pointsClubSettings?: PointsClubSettings | null;
336
+ }
337
+ export declare const getPointsClubSettings: (options?: GraphQLRequestOptions) => Promise<PointsClubSettings | null>;
338
+ export interface GoogleClientIdQuery {
339
+ googleClientId?: string | null;
340
+ }
341
+ export declare const getGoogleClientId: (options?: GraphQLRequestOptions) => Promise<string | null>;