@opexa/portal-components 0.0.100 → 0.0.102
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.
- package/dist/components/Bonus/Bonus.client.js +1 -1
- package/dist/components/Cashback/Cashback.client.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.lazy.js +1 -1
- package/dist/components/GamesSearch/GamesSearch.js +1 -1
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +5 -6
- package/dist/components/Jackpots/JackpotsList/JackpotsList.d.ts +3 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsList.js +7 -7
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +6 -7
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemGameProviders.js +8 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +4 -5
- package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.d.ts +0 -4
- package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.js +0 -23
- package/dist/components/KYC/BasicInformation.d.ts +1 -0
- package/dist/components/KYC/BasicInformation.js +12 -0
- package/dist/components/KYC/IdentityVerification.d.ts +1 -0
- package/dist/components/KYC/IdentityVerification.js +20 -0
- package/dist/components/KYC/Indicator.js +2 -3
- package/dist/components/KYC/KYC.d.ts +3 -1
- package/dist/components/KYC/KYC.js +2 -2
- package/dist/components/KYC/KYC.lazy.d.ts +5 -1
- package/dist/components/KYC/KYC.lazy.js +9 -13
- package/dist/components/KYC/PersonalInformation.d.ts +1 -0
- package/dist/components/KYC/PersonalInformation.js +20 -0
- package/dist/components/KYC/{Header.js → backup/Header.js} +4 -4
- package/dist/components/KYC/backup/Indicator.d.ts +1 -0
- package/dist/components/KYC/backup/Indicator.js +9 -0
- package/dist/components/KYC/backup/KYC.d.ts +1 -0
- package/dist/components/KYC/backup/KYC.js +14 -0
- package/dist/components/KYC/backup/KYC.lazy.d.ts +1 -0
- package/dist/components/KYC/backup/KYC.lazy.js +26 -0
- package/dist/components/KYC/backup/KYCContext.d.ts +2 -0
- package/dist/components/KYC/backup/KYCContext.js +2 -0
- package/dist/components/KYC/{Step1.js → backup/Step1.js} +4 -4
- package/dist/components/KYC/{Step2.js → backup/Step2.js} +4 -4
- package/dist/components/KYC/{Step3.js → backup/Step3.js} +4 -4
- package/dist/components/KYC/{Step4.js → backup/Step4.js} +3 -3
- package/dist/components/KYC/backup/useKYC.d.ts +10 -0
- package/dist/components/KYC/backup/useKYC.js +8 -0
- package/dist/components/KYC/useKYC.d.ts +5 -8
- package/dist/components/KYC/useKYC.js +3 -0
- package/dist/components/Promo/Promo.client.js +1 -1
- package/dist/components/Search/Search.lazy.js +1 -1
- package/dist/next.config.js +4 -0
- package/dist/styles/theme.css +3 -2
- package/dist/ui/Presence/index.d.ts +1 -0
- package/dist/ui/Presence/index.js +1 -0
- package/dist/ui/Prose/index.d.ts +1 -0
- package/dist/ui/Prose/index.js +1 -0
- package/package.json +1 -1
- package/dist/services/account.service.d.ts +0 -341
- package/dist/services/account.service.js +0 -233
- package/dist/services/auth.service.d.ts +0 -80
- package/dist/services/auth.service.js +0 -152
- package/dist/services/cmsPortal.service.d.ts +0 -43
- package/dist/services/cmsPortal.service.js +0 -148
- package/dist/services/file.service.d.ts +0 -33
- package/dist/services/file.service.js +0 -18
- package/dist/services/game.service.d.ts +0 -44
- package/dist/services/game.service.js +0 -33
- package/dist/services/portal.service.d.ts +0 -37
- package/dist/services/portal.service.js +0 -44
- package/dist/services/report.service.d.ts +0 -223
- package/dist/services/report.service.js +0 -72
- package/dist/services/trigger.service.d.ts +0 -94
- package/dist/services/trigger.service.js +0 -88
- package/dist/services/wallet.service.d.ts +0 -475
- package/dist/services/wallet.service.js +0 -365
- package/dist/utils/isMobile.d.ts +0 -5
- package/dist/utils/isMobile.js +0 -9
- /package/dist/components/KYC/{Header.d.ts → backup/Header.d.ts} +0 -0
- /package/dist/components/KYC/{Step1.d.ts → backup/Step1.d.ts} +0 -0
- /package/dist/components/KYC/{Step2.d.ts → backup/Step2.d.ts} +0 -0
- /package/dist/components/KYC/{Step3.d.ts → backup/Step3.d.ts} +0 -0
- /package/dist/components/KYC/{Step4.d.ts → backup/Step4.d.ts} +0 -0
- /package/dist/ui/{Presence.d.ts → Presence/Presence.d.ts} +0 -0
- /package/dist/ui/{Presence.js → Presence/Presence.js} +0 -0
- /package/dist/ui/{Prose.d.ts → Prose/Prose.d.ts} +0 -0
- /package/dist/ui/{Prose.js → Prose/Prose.js} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import dynamic from 'next/dynamic';
|
|
4
|
+
import { useShallow } from 'zustand/shallow';
|
|
5
|
+
import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
|
|
6
|
+
const Component = dynamic(() => import('./KYC.lazy.js').then((m) => m.KYC), {
|
|
7
|
+
ssr: false,
|
|
8
|
+
loading: () => null,
|
|
9
|
+
});
|
|
10
|
+
export function KYC() {
|
|
11
|
+
const touched = useGlobalStore(useShallow((ctx) => ctx.kyc['~touched']));
|
|
12
|
+
if (touched)
|
|
13
|
+
return _jsx(Component, {});
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function KYC(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Portal } from '@ark-ui/react';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
import { useShallow } from 'zustand/shallow';
|
|
6
|
+
import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
|
|
7
|
+
import { Dialog } from '../../../ui/Dialog/index.js';
|
|
8
|
+
import { Header } from './Header.js';
|
|
9
|
+
import { Indicator } from './Indicator.js';
|
|
10
|
+
import { KYCContext } from './KYCContext.js';
|
|
11
|
+
import { Step1 } from './Step1.js';
|
|
12
|
+
import { Step2 } from './Step2.js';
|
|
13
|
+
import { Step3 } from './Step3.js';
|
|
14
|
+
import { Step4 } from './Step4.js';
|
|
15
|
+
import { useKYC } from './useKYC.js';
|
|
16
|
+
export function KYC() {
|
|
17
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
18
|
+
kyc: ctx.kyc,
|
|
19
|
+
})));
|
|
20
|
+
const context = useKYC();
|
|
21
|
+
return (_jsx(KYCContext, { value: context, children: _jsx(Dialog.Root, { open: globalStore.kyc.open, onOpenChange: (details) => {
|
|
22
|
+
globalStore.kyc.setOpen(details.open);
|
|
23
|
+
}, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: twMerge(context.step === 4 && 'flex items-center'), children: _jsxs(Dialog.Content, { className: twMerge(context.step < 4
|
|
24
|
+
? 'bg-bg-primary lg:bg-bg-primary-alt mx-auto h-full w-full lg:h-auto lg:w-[400px] lg:p-3xl'
|
|
25
|
+
: 'mx-auto w-[25rem] max-w-[calc(100%-2rem)] p-3xl'), children: [context.step < 4 && _jsx(Header, {}), context.step < 4 && _jsx(Indicator, {}), context.step === 1 && _jsx(Step1, {}), context.step === 2 && _jsx(Step2, {}), context.step === 3 && _jsx(Step3, {}), context.step === 4 && _jsx(Step4, {})] }) })] }) }) }));
|
|
26
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Image from 'next/image';
|
|
3
|
-
import { CheckIcon } from '
|
|
4
|
-
import { XIcon } from '
|
|
5
|
-
import uploadId from '
|
|
6
|
-
import { Button } from '
|
|
3
|
+
import { CheckIcon } from '../../../icons/CheckIcon.js';
|
|
4
|
+
import { XIcon } from '../../../icons/XIcon.js';
|
|
5
|
+
import uploadId from '../../../images/capture-id-banner.png';
|
|
6
|
+
import { Button } from '../../../ui/Button/index.js';
|
|
7
7
|
import { useKYCContext } from './KYCContext.js';
|
|
8
8
|
export function Step1() {
|
|
9
9
|
const context = useKYCContext();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Image from 'next/image';
|
|
3
|
-
import { CheckIcon } from '
|
|
4
|
-
import { XIcon } from '
|
|
5
|
-
import selfie from '
|
|
6
|
-
import { Button } from '
|
|
3
|
+
import { CheckIcon } from '../../../icons/CheckIcon.js';
|
|
4
|
+
import { XIcon } from '../../../icons/XIcon.js';
|
|
5
|
+
import selfie from '../../../images/capture-selfie-banner.png';
|
|
6
|
+
import { Button } from '../../../ui/Button/index.js';
|
|
7
7
|
import { useKYCContext } from './KYCContext.js';
|
|
8
8
|
export function Step2() {
|
|
9
9
|
const context = useKYCContext();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { CheckIcon } from '
|
|
3
|
-
import { Button } from '
|
|
4
|
-
import { Checkbox } from '
|
|
5
|
-
import { Field } from '
|
|
2
|
+
import { CheckIcon } from '../../../icons/CheckIcon.js';
|
|
3
|
+
import { Button } from '../../../ui/Button/index.js';
|
|
4
|
+
import { Checkbox } from '../../../ui/Checkbox/index.js';
|
|
5
|
+
import { Field } from '../../../ui/Field/index.js';
|
|
6
6
|
import { useKYCContext } from './KYCContext.js';
|
|
7
7
|
export function Step3() {
|
|
8
8
|
const context = useKYCContext();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { CheckCircleIcon } from '
|
|
3
|
-
import { Button } from '
|
|
4
|
-
import { Dialog } from '
|
|
2
|
+
import { CheckCircleIcon } from '../../../icons/CheckCircleIcon.js';
|
|
3
|
+
import { Button } from '../../../ui/Button/index.js';
|
|
4
|
+
import { Dialog } from '../../../ui/Dialog/index.js';
|
|
5
5
|
export function Step4() {
|
|
6
6
|
return (_jsxs("div", { children: [_jsx("div", { className: "bg-bg-success-secondary text-text-featured-icon-light-success mx-auto flex size-12 items-center justify-center rounded-full", children: _jsx(CheckCircleIcon, {}) }), _jsx("h2", { className: "mt-3 text-center", children: "Submission Successful" }), _jsx("p", { className: "text-text-tertiary-600 text-center", children: "Your documents have been submitted successfully. They\u2019re now under review, and you\u2019ll receive a notification as soon as your account is verified." }), _jsx(Dialog.Context, { children: (api) => (_jsx(Button, { className: "mt-3xl", onClick: () => api.setOpen(false), children: "Ok" })) })] }));
|
|
7
7
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
type Step = 1 | 2 | 3 | 4;
|
|
2
1
|
export interface UseKYCReturn {
|
|
3
|
-
step:
|
|
4
|
-
setStep: (step:
|
|
2
|
+
step: number;
|
|
3
|
+
setStep: (step: number) => void;
|
|
4
|
+
done: boolean;
|
|
5
|
+
setDone: (done: boolean) => void;
|
|
5
6
|
}
|
|
6
|
-
export declare function useKYC():
|
|
7
|
-
step: Step;
|
|
8
|
-
setStep: import("react").Dispatch<import("react").SetStateAction<Step>>;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
7
|
+
export declare function useKYC(): UseKYCReturn;
|
|
@@ -11,7 +11,7 @@ import { useLocaleInfo } from '../../client/hooks/useLocaleInfo.js';
|
|
|
11
11
|
import { usePromoQuery } from '../../client/hooks/usePromoQuery.js';
|
|
12
12
|
import { ChevronLeftIcon } from '../../icons/ChevronLeftIcon.js';
|
|
13
13
|
import { Button } from '../../ui/Button/index.js';
|
|
14
|
-
import { Prose } from '../../ui/Prose.js';
|
|
14
|
+
import { Prose } from '../../ui/Prose/index.js';
|
|
15
15
|
export function Promo__client(props) {
|
|
16
16
|
const localeInfo = useLocaleInfo();
|
|
17
17
|
const availablePromosQuery = useAvailablePromosQuery();
|
|
@@ -14,7 +14,7 @@ import { Button } from '../../ui/Button/index.js';
|
|
|
14
14
|
import { Dialog } from '../../ui/Dialog/index.js';
|
|
15
15
|
import { Field } from '../../ui/Field/index.js';
|
|
16
16
|
import { IconButton } from '../../ui/IconButton/index.js';
|
|
17
|
-
import { Presence } from '../../ui/Presence.js';
|
|
17
|
+
import { Presence } from '../../ui/Presence/index.js';
|
|
18
18
|
import { callIfFn } from '../../utils/callIfFn.js';
|
|
19
19
|
import { getGameImageUrl } from '../../utils/getGameImageUrl.js';
|
|
20
20
|
import { GameLaunchTrigger } from '../GameLaunch/index.js';
|
package/dist/next.config.js
CHANGED
package/dist/styles/theme.css
CHANGED
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
--color-bg-tertiary: #22262f;
|
|
218
218
|
--color-bg-quaternary: #373a41;
|
|
219
219
|
--color-bg-active: #22262f;
|
|
220
|
-
--color-bg-disabled-subtle: #
|
|
220
|
+
--color-bg-disabled-subtle: #13161b;
|
|
221
221
|
--color-bg-success-secondary: #079455;
|
|
222
222
|
--color-bg-overlay: #22262f;
|
|
223
223
|
--color-bg-error-secondary: #d92d20;
|
|
@@ -233,6 +233,7 @@
|
|
|
233
233
|
--color-text-tertiary-hover: #cecfd2;
|
|
234
234
|
--color-text-quarterary-brand: #94969c;
|
|
235
235
|
--color-text-quarterary-500: #94969c;
|
|
236
|
+
--color-text-senary-300: #61646c;
|
|
236
237
|
--color-text-quinary: #85888e;
|
|
237
238
|
--color-text-disabled: #85888e;
|
|
238
239
|
--color-text-disabled-subtle: #d0d5dd;
|
|
@@ -252,7 +253,7 @@
|
|
|
252
253
|
--color-border-primary: #373a41;
|
|
253
254
|
--color-border-secondary: #22262f;
|
|
254
255
|
--color-border-disabled: #373a41;
|
|
255
|
-
--color-border-disabled-subtle: #
|
|
256
|
+
--color-border-disabled-subtle: #22262f;
|
|
256
257
|
--color-border-brand: #fac515;
|
|
257
258
|
--color-border-brand-solid: #ca8504;
|
|
258
259
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Presence';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Presence.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Prose';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Prose.js';
|
package/package.json
CHANGED
|
@@ -1,341 +0,0 @@
|
|
|
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>;
|