@opexa/portal-components 0.1.63 → 0.1.65
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/client/hooks/platformGamesFallback.d.ts +1 -1
- package/dist/client/hooks/platformGamesFallback.js +6 -4
- package/dist/client/hooks/useInplaySignUpMutation.d.ts +5 -0
- package/dist/client/hooks/useInplaySignUpMutation.js +27 -0
- package/dist/client/hooks/useSignInMutation.d.ts +1 -0
- package/dist/client/hooks/useSignInMutation.js +11 -5
- package/dist/client/services/signIn.d.ts +1 -1
- package/dist/client/services/signIn.js +9 -3
- package/dist/components/AccountInfo/AccountInfo.js +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/SignIn/MobileNumberSignInternational.js +1 -0
- package/dist/components/SignIn/NameAndPasswordSignIn.js +1 -0
- package/dist/components/SignIn/SignIn.lazy.d.ts +1 -0
- package/dist/components/SignIn/SignIn.lazy.js +1 -1
- package/dist/components/SignUp/SignUpDefault/SignUpDefault.lazy.d.ts +1 -0
- package/dist/components/SignUp/SignUpDefault/SignUpDefault.lazy.js +9 -1
- package/dist/components/SignUp/SignUpDefault/SignUpDefaultForm.js +49 -21
- package/dist/constants/Endpoint.js +7 -6
- package/dist/constants/EnvVar.d.ts +5 -0
- package/dist/constants/EnvVar.js +9 -0
- package/dist/constants/HeaderKey.d.ts +1 -0
- package/dist/constants/HeaderKey.js +1 -0
- package/dist/handlers/postSession.js +3 -2
- package/dist/schemas/forgotPasswordSchema.d.ts +4 -4
- package/dist/services/account.d.ts +47 -0
- package/dist/services/account.js +21 -1
- package/dist/services/auth.d.ts +1 -1
- package/dist/services/auth.js +6 -4
- package/dist/services/queries.d.ts +1 -0
- package/dist/services/queries.js +44 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
- package/dist/ui/Avatar/Avatar.d.ts +9 -9
- package/dist/ui/Avatar/avatar.recipe.d.ts +3 -3
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Carousel/Carousel.d.ts +45 -45
- package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +33 -33
- package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Field/Field.d.ts +21 -21
- package/dist/ui/Field/field.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +198 -198
- package/dist/ui/Menu/menu.recipe.d.ts +11 -11
- package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
- package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
- package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
- package/dist/ui/PinInput/PinInput.d.ts +12 -12
- package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
- package/dist/ui/Popover/Popover.d.ts +88 -88
- package/dist/ui/Popover/popover.recipe.d.ts +8 -8
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/QrCode/QrCode.d.ts +25 -25
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/package.json +1 -1
package/dist/services/account.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cache } from 'react';
|
|
2
2
|
import { ACCOUNT_GRAPHQL_ENDPOINT } from '../constants/index.js';
|
|
3
3
|
import { graphqlRequest } from './graphqlRequest.js';
|
|
4
|
-
import { ANNOUNCEMENTS, APPROVE_MEMBER_VERIFICATION__NEXT, CREATE_MEMBER_VERIFICATION, CREATE_MEMBER_VERIFICATION__NEXT, DELETE_MEMBER_ACCOUNT, FACEBOOK_CLIENT_ID, GENERATE_SUMSUB_VERIFICATION_TOKEN, GOOGLE_CLIENT_ID, MEMBER_ACCOUNT, MEMBER_VERIFICATION, PAYMENT_SETTINGS, POINTS_CLUB_SETTINGS, PROFILE_COMPLETION, REFERRAL_CODE, REGISTER_AGENT_ACCOUNT, REGISTER_MAYA_MEMBER_ACCOUNT, REGISTER_MEMBER_ACCOUNT, REGISTER_MEMBER_ACCOUNT__NEXT, REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER, REGISTER_MEMBER_ACCOUNT_BY_NAME, REGISTER_MEMBER_ACCOUNT_VIA_MOBILE, REQUIRE_FIRST_DEPOSIT, RESET_PASSWORD, RESTRICT_WITHDRAWALS_TO_VERIFIED_MEMBERS, UNLINK_FACEBOOK, UNLINK_GOOGLE, UPDATE_DAILY_BET_LIMIT_MUTATION, UPDATE_DAILY_DEPOSIT_LIMIT_MUTATION, UPDATE_MEMBER_ACCOUNT, UPDATE_MEMBER_VERIFICATION, UPDATE_MEMBER_VERIFICATION__NEXT, UPDATE_MOBILE_NUMBER, UPDATE_MONTHLY_BET_LIMIT_MUTATION, UPDATE_MONTHLY_DEPOSIT_LIMIT_MUTATION, UPDATE_REFERRAL_CODE, VERIFY_MOBILE_NUMBER, } from './queries.js';
|
|
4
|
+
import { ANNOUNCEMENTS, APPROVE_MEMBER_VERIFICATION__NEXT, CREATE_MEMBER_VERIFICATION, CREATE_MEMBER_VERIFICATION__NEXT, DELETE_MEMBER_ACCOUNT, FACEBOOK_CLIENT_ID, GENERATE_SUMSUB_VERIFICATION_TOKEN, GOOGLE_CLIENT_ID, MEMBER_ACCOUNT, MEMBER_VERIFICATION, PAYMENT_SETTINGS, POINTS_CLUB_SETTINGS, PROFILE_COMPLETION, REFERRAL_CODE, REGISTER_AGENT_ACCOUNT, REGISTER_MAYA_MEMBER_ACCOUNT, REGISTER_MEMBER_ACCOUNT, REGISTER_MEMBER_ACCOUNT__NEXT, REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER, REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_INPLAY, REGISTER_MEMBER_ACCOUNT_BY_NAME, REGISTER_MEMBER_ACCOUNT_VIA_MOBILE, REQUIRE_FIRST_DEPOSIT, RESET_PASSWORD, RESTRICT_WITHDRAWALS_TO_VERIFIED_MEMBERS, UNLINK_FACEBOOK, UNLINK_GOOGLE, UPDATE_DAILY_BET_LIMIT_MUTATION, UPDATE_DAILY_DEPOSIT_LIMIT_MUTATION, UPDATE_MEMBER_ACCOUNT, UPDATE_MEMBER_VERIFICATION, UPDATE_MEMBER_VERIFICATION__NEXT, UPDATE_MOBILE_NUMBER, UPDATE_MONTHLY_BET_LIMIT_MUTATION, UPDATE_MONTHLY_DEPOSIT_LIMIT_MUTATION, UPDATE_REFERRAL_CODE, VERIFY_MOBILE_NUMBER, } from './queries.js';
|
|
5
5
|
import { sha256 } from './sha256.js';
|
|
6
6
|
export const getMemberAccount = cache(async (options) => {
|
|
7
7
|
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, MEMBER_ACCOUNT, undefined, options);
|
|
@@ -69,6 +69,24 @@ export const registerMemberAccountByMobileNumber = async (input, options) => {
|
|
|
69
69
|
throw error;
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
+
export const registerMemberAccountByMobileNumberInplay = async (input, options) => {
|
|
73
|
+
const { referralCode, ...rest } = input;
|
|
74
|
+
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_INPLAY, {
|
|
75
|
+
input: rest,
|
|
76
|
+
referralCode,
|
|
77
|
+
}, options);
|
|
78
|
+
const payload = res.registerMemberAccountByMobileNumber;
|
|
79
|
+
if (payload) {
|
|
80
|
+
const error = new Error();
|
|
81
|
+
error.name = payload.name;
|
|
82
|
+
error.message =
|
|
83
|
+
payload.message ||
|
|
84
|
+
ERROR_CODES_MESSAGE_MAP[payload.name] ||
|
|
85
|
+
'Something went wrong. Please try again later.';
|
|
86
|
+
Error.captureStackTrace?.(error, registerMemberAccountByMobileNumberInplay);
|
|
87
|
+
throw error;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
72
90
|
export const registerMemberAccount__next = async (input, options) => {
|
|
73
91
|
const { password, ...rest } = input;
|
|
74
92
|
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, REGISTER_MEMBER_ACCOUNT__NEXT, {
|
|
@@ -359,6 +377,8 @@ const ERROR_CODES_MESSAGE_MAP = {
|
|
|
359
377
|
FileDoesNotExistError: 'File does not exist',
|
|
360
378
|
FileNotReadyError: 'File is not yet ready',
|
|
361
379
|
InvalidPlatformError: 'Invalid platform',
|
|
380
|
+
InvalidAgentCodeError: 'Invalid agent code',
|
|
381
|
+
InvalidMobileNumberVerificationCodeError: 'Invalid mobile number verification code',
|
|
362
382
|
InvalidReCAPTCHAResponseError: 'Invalid reCAPTCHA',
|
|
363
383
|
InvalidSMSVerificationCodeError: 'Invalid SMS verification code',
|
|
364
384
|
InvalidTransactionPasswordError: 'You cannot use your account password as your transaction password.',
|
package/dist/services/auth.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export interface CreateSessionTwoFactorAuthEnabledMutation {
|
|
|
59
59
|
authenticator: Authenticator;
|
|
60
60
|
}
|
|
61
61
|
export type CreateSessionMutation = CreateSessionTwoFactorAuthDisabledMutation | CreateSessionTwoFactorAuthEnabledMutation;
|
|
62
|
-
export declare function createSession(input: CreateSessionInput, options?: HttpRequestOptions, versionSession?: VersionSession, version?: ApiVersion): Promise<CreateSessionMutation>;
|
|
62
|
+
export declare function createSession(input: CreateSessionInput, options?: HttpRequestOptions, versionSession?: VersionSession, version?: ApiVersion, authApiBaseUrl?: string | null): Promise<CreateSessionMutation>;
|
|
63
63
|
export declare function createSessionLibangan(input: CreateSessionInput__Libangan, options?: HttpRequestOptions): Promise<{
|
|
64
64
|
session: {
|
|
65
65
|
id: string;
|
package/dist/services/auth.js
CHANGED
|
@@ -6,7 +6,7 @@ function getSessionEndpoint(versionSession, version) {
|
|
|
6
6
|
return '/v3/inplay/sessions';
|
|
7
7
|
return version !== 1 ? `/v${version}/sessions` : '/sessions';
|
|
8
8
|
}
|
|
9
|
-
export async function createSession(input, options, versionSession = 'default', version = 1) {
|
|
9
|
+
export async function createSession(input, options, versionSession = 'default', version = 1, authApiBaseUrl) {
|
|
10
10
|
const isWeb = new Headers(options?.headers).get(PLATFORM_WEB_HEADER_KEY) === 'true';
|
|
11
11
|
const headers = new Headers();
|
|
12
12
|
if (input.type === 'NAME_AND_PASSWORD') {
|
|
@@ -48,14 +48,16 @@ export async function createSession(input, options, versionSession = 'default',
|
|
|
48
48
|
// Version 4 mirrors portal-sdk's `AuthService`: the auth server relies on
|
|
49
49
|
// its own cookie for web sign-ins, signalled via `?type=web`.
|
|
50
50
|
const queryParam = version === 4 && isWeb ? '?type=web' : '';
|
|
51
|
-
const
|
|
51
|
+
const path = getSessionEndpoint(effectiveVersionSession, version);
|
|
52
|
+
const baseUrl = authApiBaseUrl || AUTH_ENDPOINT;
|
|
53
|
+
console.log({ x: baseUrl });
|
|
52
54
|
try {
|
|
53
55
|
// v1 against the default endpoint returns the payload flat; every
|
|
54
56
|
// other combination (Inplay, or version 3/4) wraps it in `{ data: { ... } }`.
|
|
55
57
|
// Unwrap those so callers can treat both consistently via the existing
|
|
56
58
|
// `CreateSessionMutation` union.
|
|
57
59
|
if (effectiveVersionSession === 'Inplay' || version !== 1) {
|
|
58
|
-
const wrapped = await httpRequest.json(`${
|
|
60
|
+
const wrapped = await httpRequest.json(`${baseUrl}${path}${queryParam}`, {
|
|
59
61
|
...options,
|
|
60
62
|
method: 'POST',
|
|
61
63
|
headers,
|
|
@@ -72,7 +74,7 @@ export async function createSession(input, options, versionSession = 'default',
|
|
|
72
74
|
refreshToken: wrapped.data.refreshToken,
|
|
73
75
|
};
|
|
74
76
|
}
|
|
75
|
-
return await httpRequest.json(`${
|
|
77
|
+
return await httpRequest.json(`${baseUrl}${path}`, {
|
|
76
78
|
...options,
|
|
77
79
|
method: 'POST',
|
|
78
80
|
headers,
|
|
@@ -99,6 +99,7 @@ export declare const APPROVE_MEMBER_VERIFICATION__NEXT = "\n mutation SubmitMem
|
|
|
99
99
|
export declare const UPDATE_MEMBER_VERIFICATION__NEXT = "\n mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {\n updateMemberVerification: updateMemberVerification_next(input: $input) {\n ... on FileDoesNotExistError {\n __typename\n }\n ... on FileNotReadyError {\n __typename\n }\n ... on MemberVerificationAlreadyApprovedError {\n __typename\n }\n ... on MemberVerificationDoesNotExistError {\n __typename\n }\n }\n }\n";
|
|
100
100
|
export declare const PROFILE_COMPLETION = "\n query ProfileCompletion {\n profileCompletion {\n completionPercentage\n personalInformation\n accountVerification\n mobileNumberVerification\n transactionPassword\n accountPassword\n }\n }\n";
|
|
101
101
|
export declare const REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER = "\n mutation RegisterMemberAccountByMobileNumber(\n $input: RegisterMemberAccountByMobileNumberInput!\n $mobileNumberVerificationCode: String!\n ) {\n registerMemberAccountByMobileNumber(\n input: $input\n mobileNumberVerificationCode: $mobileNumberVerificationCode\n ) {\n ... on MobileNumberNotAvailableError {\n name: __typename\n message\n }\n ... on InvalidSMSVerificationCodeError {\n name: __typename\n message\n }\n ... on InvalidPlatformError {\n name: __typename\n message\n }\n }\n }\n";
|
|
102
|
+
export declare const REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_INPLAY = "\n mutation RegisterMemberAccountByMobileNumberInplay(\n $input: _RegisterMemberAccountByMobileNumberInput!\n $referralCode: String\n ) {\n registerMemberAccountByMobileNumber: _registerMemberAccountByMobileNumber(\n input: $input\n referralCode: $referralCode\n ) {\n ... on AccountNameNotAvailableError {\n name: __typename\n message\n }\n ... on MobileNumberNotAvailableError {\n name: __typename\n message\n }\n ... on EmailAddressNotAvailableError {\n name: __typename\n message\n }\n ... on InvalidMobileNumberVerificationCodeError {\n name: __typename\n message\n }\n ... on InvalidAgentCodeError {\n name: __typename\n message\n }\n ... on InvalidPlatformError {\n name: __typename\n message\n }\n ... on ReCAPTCHAVerificationFailedError {\n name: __typename\n message\n }\n ... on MemberAccountAlreadyExistsError {\n name: __typename\n message\n }\n }\n }\n";
|
|
102
103
|
export declare const PLATFORM = "\n query Platform {\n timezone\n currency\n }\n";
|
|
103
104
|
export declare const PAYMENT_SETTINGS = "\n fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {\n minimumAmount\n maximumAmount\n webEnabled\n mobileWebEnabled\n androidEnabled\n iosEnabled\n bankAccountName\n bankAccountNumber\n bankIFSCCode\n upiId\n upiQRCode {\n id\n url\n }\n }\n\n fragment WithdrawalGatewaySettingsCoreData on WithdrawalGatewaySettings {\n minimumAmount\n maximumAmount\n webEnabled\n mobileWebEnabled\n androidEnabled\n iosEnabled\n }\n\n query PaymentSettings {\n minimumFirstDepositAmount\n restrictWithdrawalsToVerifiedMembers\n bankDepositGatewaySettings: depositGatewaySettings(gateway: BANK) {\n ...DepositGatewaySettingsCoreData\n }\n libanganDepositGatewaySettings: depositGatewaySettings(gateway: LIBANGAN_PAY_IN) {\n ...DepositGatewaySettingsCoreData\n }\n gcashDepositGatewaySettings: depositGatewaySettings(gateway: GCASH) {\n ...DepositGatewaySettingsCoreData\n }\n gcashWebpayDepositGatewaySettings: depositGatewaySettings(gateway: GCASH_WEBPAY) {\n ...DepositGatewaySettingsCoreData\n }\n aioGCashDepositGatewaySettings: depositGatewaySettings(gateway: AIO_GCASH) {\n ...DepositGatewaySettingsCoreData\n }\n aioPayMayaDepositGatewaySettings: depositGatewaySettings(gateway: AIO_PAY_MAYA) {\n ...DepositGatewaySettingsCoreData\n }\n aioGrabPayDepositGatewaySettings: depositGatewaySettings(gateway: AIO_GRAB_PAY) {\n ...DepositGatewaySettingsCoreData\n }\n aioPalawanPayDepositGatewaySettings: depositGatewaySettings(gateway: AIO_PALAWAN_PAY) {\n ...DepositGatewaySettingsCoreData\n }\n mayaDepositGatewaySettings: depositGatewaySettings(gateway: MAYA) {\n ...DepositGatewaySettingsCoreData\n }\n mayaAppDepositGatewaySettings: depositGatewaySettings(gateway: MAYA_APP) {\n ...DepositGatewaySettingsCoreData\n }\n mayaWebpayDepositGatewaySettings: depositGatewaySettings(gateway: MAYA_WEBPAY) {\n ...DepositGatewaySettingsCoreData\n }\n onlineBankDepositGatewaySettings: depositGatewaySettings(gateway: ONLINE_BANK) {\n ...DepositGatewaySettingsCoreData\n }\n qrphDepositGatewaySettings: depositGatewaySettings(gateway: QR_PH) {\n ...DepositGatewaySettingsCoreData\n }\n manualBankDepositGatewaySettings: depositGatewaySettings(gateway: MANUAL_BANK) {\n ...DepositGatewaySettingsCoreData\n }\n manualUPIDepositGatewaySettings: depositGatewaySettings(gateway: MANUAL_UPI) {\n ...DepositGatewaySettingsCoreData\n }\n pisoPayDepositGatewaySettings: depositGatewaySettings(gateway: PISO_PAY_CHECKOUT) {\n ...DepositGatewaySettingsCoreData\n }\n aurixPayGCashDepositGatewaySettings: depositGatewaySettings(gateway: AURIX_PAY_GCASH) {\n ...DepositGatewaySettingsCoreData\n }\n aurixPayGrabPayDepositGatewaySettings: depositGatewaySettings(gateway: AURIX_PAY_GRAB_PAY) {\n ...DepositGatewaySettingsCoreData\n }\n aurixPayPayMayaDepositGatewaySettings: depositGatewaySettings(gateway: AURIX_PAY_PAY_MAYA) {\n ...DepositGatewaySettingsCoreData\n }\n aurixPayQrphDepositGatewaySettings: depositGatewaySettings(gateway: AURIX_PAY_QR_PH) {\n ...DepositGatewaySettingsCoreData\n }\n bankWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: BANK) {\n ...WithdrawalGatewaySettingsCoreData\n }\n gcashWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: GCASH) {\n ...WithdrawalGatewaySettingsCoreData\n }\n gcashStandardCashInWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: GCASH_STANDARD_CASH_IN) {\n ...WithdrawalGatewaySettingsCoreData\n }\n mayaWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: MAYA) {\n ...WithdrawalGatewaySettingsCoreData\n }\n mayaAppWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: MAYA_APP) {\n ...WithdrawalGatewaySettingsCoreData\n }\n instapayWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: INSTAPAY) {\n ...WithdrawalGatewaySettingsCoreData\n }\n manualBankWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: MANUAL_BANK) {\n ...WithdrawalGatewaySettingsCoreData\n }\n manualUPIWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: MANUAL_UPI) {\n ...WithdrawalGatewaySettingsCoreData\n }\n ventajaWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: VENTAJA_DISBURSEMENT) {\n ...WithdrawalGatewaySettingsCoreData\n }\n pisoPayWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: PISO_PAY_REMITTANCE) {\n ...WithdrawalGatewaySettingsCoreData\n }\n }\n";
|
|
104
105
|
export declare const MAYA_SESSION = "\n query MayaSession($id: ObjectId!) {\n mayaSession(id: $id) {\n id\n member\n dateTimeCreated\n }\n }\n";
|
package/dist/services/queries.js
CHANGED
|
@@ -2659,6 +2659,50 @@ export const REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER = /* GraphQL */ `
|
|
|
2659
2659
|
}
|
|
2660
2660
|
}
|
|
2661
2661
|
`;
|
|
2662
|
+
export const REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_INPLAY = /* GraphQL */ `
|
|
2663
|
+
mutation RegisterMemberAccountByMobileNumberInplay(
|
|
2664
|
+
$input: _RegisterMemberAccountByMobileNumberInput!
|
|
2665
|
+
$referralCode: String
|
|
2666
|
+
) {
|
|
2667
|
+
registerMemberAccountByMobileNumber: _registerMemberAccountByMobileNumber(
|
|
2668
|
+
input: $input
|
|
2669
|
+
referralCode: $referralCode
|
|
2670
|
+
) {
|
|
2671
|
+
... on AccountNameNotAvailableError {
|
|
2672
|
+
name: __typename
|
|
2673
|
+
message
|
|
2674
|
+
}
|
|
2675
|
+
... on MobileNumberNotAvailableError {
|
|
2676
|
+
name: __typename
|
|
2677
|
+
message
|
|
2678
|
+
}
|
|
2679
|
+
... on EmailAddressNotAvailableError {
|
|
2680
|
+
name: __typename
|
|
2681
|
+
message
|
|
2682
|
+
}
|
|
2683
|
+
... on InvalidMobileNumberVerificationCodeError {
|
|
2684
|
+
name: __typename
|
|
2685
|
+
message
|
|
2686
|
+
}
|
|
2687
|
+
... on InvalidAgentCodeError {
|
|
2688
|
+
name: __typename
|
|
2689
|
+
message
|
|
2690
|
+
}
|
|
2691
|
+
... on InvalidPlatformError {
|
|
2692
|
+
name: __typename
|
|
2693
|
+
message
|
|
2694
|
+
}
|
|
2695
|
+
... on ReCAPTCHAVerificationFailedError {
|
|
2696
|
+
name: __typename
|
|
2697
|
+
message
|
|
2698
|
+
}
|
|
2699
|
+
... on MemberAccountAlreadyExistsError {
|
|
2700
|
+
name: __typename
|
|
2701
|
+
message
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
`;
|
|
2662
2706
|
export const PLATFORM = /* GraphQL */ `
|
|
2663
2707
|
query Platform {
|
|
2664
2708
|
timezone
|