@tap-payments/auth-jsconnect 1.0.52 → 1.0.53
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/build/@types/app.d.ts +2 -3
- package/build/@types/form.d.ts +16 -1
- package/build/api/entity.d.ts +5 -2
- package/build/api/index.d.ts +3 -3
- package/build/api/lead.d.ts +1 -1
- package/build/app/rootReducer.d.ts +3 -0
- package/build/app/rootReducer.js +7 -1
- package/build/app/store.d.ts +6 -0
- package/build/components/AnimationFlow/AnimationFlow.d.ts +3 -1
- package/build/components/AnimationFlow/AnimationFlow.js +5 -1
- package/build/components/AnimationFlow/Loader.d.ts +2 -0
- package/build/components/AnimationFlow/Loader.js +14 -0
- package/build/components/Loader/Loader.d.ts +1 -0
- package/build/components/Loader/Loader.js +1 -1
- package/build/constants/app.d.ts +18 -0
- package/build/constants/app.js +47 -11
- package/build/features/app/bank/bankStore.d.ts +1 -1
- package/build/features/app/bank/bankStore.js +5 -6
- package/build/features/app/business/businessStore.d.ts +1 -2
- package/build/features/app/business/businessStore.js +56 -56
- package/build/features/app/connect/connectStore.js +17 -30
- package/build/features/app/individual/individualStore.d.ts +36 -0
- package/build/features/app/individual/individualStore.js +222 -0
- package/build/features/app/password/passwordStore.d.ts +36 -0
- package/build/features/app/password/passwordStore.js +218 -0
- package/build/features/app/tax/taxStore.d.ts +36 -0
- package/build/features/app/tax/taxStore.js +217 -0
- package/build/features/bank/Bank.js +1 -1
- package/build/features/bank/screens/Verify/Verify.js +2 -2
- package/build/features/business/screens/Activities/Activities.js +8 -8
- package/build/features/business/screens/Activities/ActivitiesList.js +7 -7
- package/build/features/business/screens/Activities/SalesChannels.js +1 -1
- package/build/features/connect/Connect.js +2 -2
- package/build/features/connect/screens/Merchant/BrandList.js +1 -1
- package/build/features/connect/screens/Merchant/Merchant.js +32 -21
- package/build/features/connect/screens/Merchant/SocialMedia.d.ts +2 -1
- package/build/features/connect/screens/Merchant/SocialMedia.js +6 -2
- package/build/features/connect/screens/Merchant/validation.d.ts +6 -1
- package/build/features/connect/screens/Merchant/validation.js +67 -9
- package/build/features/connect/screens/Mobile/MobileNumber.js +1 -1
- package/build/features/featuresScreens.js +15 -5
- package/build/features/individual/Individual.d.ts +2 -1
- package/build/features/individual/Individual.js +15 -7
- package/build/features/individual/screens/Verify/OTPInput.d.ts +5 -0
- package/build/features/individual/screens/Verify/OTPInput.js +42 -0
- package/build/features/individual/screens/Verify/Verify.d.ts +5 -0
- package/build/features/individual/screens/Verify/Verify.js +78 -0
- package/build/features/individual/screens/Verify/index.d.ts +2 -0
- package/build/features/individual/screens/Verify/index.js +2 -0
- package/build/features/individual/screens/Verify/validation.d.ts +8 -0
- package/build/features/individual/screens/Verify/validation.js +4 -0
- package/build/features/password/Password.d.ts +2 -1
- package/build/features/password/Password.js +15 -7
- package/build/features/password/screens/Verify/OTPInput.d.ts +5 -0
- package/build/features/password/screens/Verify/OTPInput.js +42 -0
- package/build/features/password/screens/Verify/Verify.d.ts +5 -0
- package/build/features/password/screens/Verify/Verify.js +78 -0
- package/build/features/password/screens/Verify/index.d.ts +2 -0
- package/build/features/password/screens/Verify/index.js +2 -0
- package/build/features/password/screens/Verify/validation.d.ts +8 -0
- package/build/features/password/screens/Verify/validation.js +4 -0
- package/build/features/tax/Tax.d.ts +2 -1
- package/build/features/tax/Tax.js +15 -7
- package/build/features/tax/screens/Verify/OTPInput.d.ts +5 -0
- package/build/features/tax/screens/Verify/OTPInput.js +42 -0
- package/build/features/tax/screens/Verify/Verify.d.ts +5 -0
- package/build/features/tax/screens/Verify/Verify.js +78 -0
- package/build/features/tax/screens/Verify/index.d.ts +2 -0
- package/build/features/tax/screens/Verify/index.js +2 -0
- package/build/features/tax/screens/Verify/validation.d.ts +8 -0
- package/build/features/tax/screens/Verify/validation.js +4 -0
- package/build/hooks/useAppDispatch.d.ts +3 -0
- package/build/utils/string.js +0 -1
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
package/build/@types/form.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, SalesChannel } from './app';
|
|
1
|
+
import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, SalesChannel, SourceOfIncome } from './app';
|
|
2
2
|
export declare type MobileFormValues = {
|
|
3
3
|
mobile: string | null;
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -56,3 +56,18 @@ export declare type BankFormValues = {
|
|
|
56
56
|
beneficiaryName: string;
|
|
57
57
|
bankName: string;
|
|
58
58
|
};
|
|
59
|
+
export declare type TaxFormValues = {
|
|
60
|
+
vatId: string;
|
|
61
|
+
};
|
|
62
|
+
export declare type IndividualExtraFormValues = {
|
|
63
|
+
sourceIncome: SourceOfIncome;
|
|
64
|
+
monthlyIncome: string;
|
|
65
|
+
employerName: string;
|
|
66
|
+
employerLocation: CountryCode;
|
|
67
|
+
isPEP: boolean | null;
|
|
68
|
+
isInfluencer: boolean | null;
|
|
69
|
+
};
|
|
70
|
+
export declare type PasswordCreateFormValues = {
|
|
71
|
+
password: string;
|
|
72
|
+
confirmPassword: string;
|
|
73
|
+
};
|
package/build/api/entity.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
export declare type
|
|
2
|
+
export declare type EntityInfoCreateBody = {
|
|
3
3
|
activities?: Array<string>;
|
|
4
4
|
business_operation_start_at?: string;
|
|
5
5
|
channel_services?: Array<string>;
|
|
@@ -13,8 +13,11 @@ export declare type EntityInfoUpdateBody = {
|
|
|
13
13
|
step_name: string;
|
|
14
14
|
encryption_contract?: Array<string>;
|
|
15
15
|
};
|
|
16
|
+
export interface EntityInfoUpdateBody extends EntityInfoCreateBody {
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
16
19
|
declare const entityService: {
|
|
17
|
-
createEntityInfo: (data:
|
|
20
|
+
createEntityInfo: (data: EntityInfoCreateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
21
|
updateEntityInfo: (data: EntityInfoUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
22
|
};
|
|
20
23
|
export { entityService };
|
package/build/api/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ValidateOperatorBody } from './operator';
|
|
|
3
3
|
import { CreateAuthBody, VerifyAuthBody } from './auth';
|
|
4
4
|
import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
|
|
5
5
|
import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
|
|
6
|
-
import { EntityInfoUpdateBody } from './entity';
|
|
6
|
+
import { EntityInfoUpdateBody, EntityInfoCreateBody } from './entity';
|
|
7
7
|
import { CreateAccountBody } from './account';
|
|
8
8
|
declare const API: {
|
|
9
9
|
ipService: {
|
|
@@ -30,7 +30,7 @@ declare const API: {
|
|
|
30
30
|
retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
31
|
};
|
|
32
32
|
entityService: {
|
|
33
|
-
createEntityInfo: (data:
|
|
33
|
+
createEntityInfo: (data: EntityInfoCreateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
34
34
|
updateEntityInfo: (data: EntityInfoUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
35
|
};
|
|
36
36
|
availabilityServices: {
|
|
@@ -50,6 +50,6 @@ declare const API: {
|
|
|
50
50
|
getExpectedCutomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoUpdateBody, CreateAccountBody };
|
|
53
|
+
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoCreateBody, EntityInfoUpdateBody, CreateAccountBody };
|
|
54
54
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders };
|
|
55
55
|
export default API;
|
package/build/api/lead.d.ts
CHANGED
|
@@ -3,5 +3,8 @@ declare const rootReducer: {
|
|
|
3
3
|
connect: import("redux").Reducer<import("../features/app/connect/connectStore").ConnectState, import("redux").AnyAction>;
|
|
4
4
|
business: import("redux").Reducer<import("../features/app/business/businessStore").BusinessState, import("redux").AnyAction>;
|
|
5
5
|
bank: import("redux").Reducer<import("../features/app/bank/bankStore").BankState, import("redux").AnyAction>;
|
|
6
|
+
tax: import("redux").Reducer<import("../features/app/tax/taxStore").TaxState, import("redux").AnyAction>;
|
|
7
|
+
individual: import("redux").Reducer<import("../features/app/individual/individualStore").IndividualState, import("redux").AnyAction>;
|
|
8
|
+
password: import("redux").Reducer<import("../features/app/password/passwordStore").PasswordState, import("redux").AnyAction>;
|
|
6
9
|
};
|
|
7
10
|
export default rootReducer;
|
package/build/app/rootReducer.js
CHANGED
|
@@ -2,10 +2,16 @@ import settings from './settings';
|
|
|
2
2
|
import connect from '../features/app/connect/connectStore';
|
|
3
3
|
import business from '../features/app/business/businessStore';
|
|
4
4
|
import bank from '../features/app/bank/bankStore';
|
|
5
|
+
import tax from '../features/app/tax/taxStore';
|
|
6
|
+
import individual from '../features/app/individual/individualStore';
|
|
7
|
+
import password from '../features/app/password/passwordStore';
|
|
5
8
|
var rootReducer = {
|
|
6
9
|
settings: settings,
|
|
7
10
|
connect: connect,
|
|
8
11
|
business: business,
|
|
9
|
-
bank: bank
|
|
12
|
+
bank: bank,
|
|
13
|
+
tax: tax,
|
|
14
|
+
individual: individual,
|
|
15
|
+
password: password
|
|
10
16
|
};
|
|
11
17
|
export default rootReducer;
|
package/build/app/store.d.ts
CHANGED
|
@@ -4,11 +4,17 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
4
4
|
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
5
5
|
business: import("../features/app/business/businessStore").BusinessState;
|
|
6
6
|
bank: import("../features/app/bank/bankStore").BankState;
|
|
7
|
+
tax: import("../features/app/tax/taxStore").TaxState;
|
|
8
|
+
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
9
|
+
password: import("../features/app/password/passwordStore").PasswordState;
|
|
7
10
|
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<{
|
|
8
11
|
settings: import("./settings").SettingsState;
|
|
9
12
|
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
10
13
|
business: import("../features/app/business/businessStore").BusinessState;
|
|
11
14
|
bank: import("../features/app/bank/bankStore").BankState;
|
|
15
|
+
tax: import("../features/app/tax/taxStore").TaxState;
|
|
16
|
+
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
17
|
+
password: import("../features/app/password/passwordStore").PasswordState;
|
|
12
18
|
}, import("redux").AnyAction, undefined>]>>;
|
|
13
19
|
export declare type AppDispatch = typeof store.dispatch;
|
|
14
20
|
export declare type RootState = ReturnType<typeof store.getState>;
|
|
@@ -5,5 +5,7 @@ export interface AnimationFlowProps {
|
|
|
5
5
|
footer?: React.ReactNode;
|
|
6
6
|
type?: 'PUPOP' | 'BOTTOMSHEET';
|
|
7
7
|
breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
error?: string;
|
|
8
10
|
}
|
|
9
|
-
export default function AnimationFlow({ open, children, breakpoint, type, footer }: AnimationFlowProps): JSX.Element;
|
|
11
|
+
export default function AnimationFlow({ open, children, breakpoint, type, footer, loading, error }: AnimationFlowProps): JSX.Element;
|
|
@@ -14,10 +14,14 @@ import { useTheme } from '@mui/material/styles';
|
|
|
14
14
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
15
15
|
import Dialog from './Dialog';
|
|
16
16
|
import BottomSheet from './BottomSheet';
|
|
17
|
+
import Loader from './Loader';
|
|
17
18
|
export default function AnimationFlow(_a) {
|
|
18
|
-
var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, footer = _a.footer;
|
|
19
|
+
var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, footer = _a.footer, loading = _a.loading, error = _a.error;
|
|
19
20
|
var theme = useTheme();
|
|
20
21
|
var matches = useMediaQuery(theme.breakpoints.down(breakpoint || 'sm'));
|
|
22
|
+
if (loading) {
|
|
23
|
+
return _jsx(Loader, {});
|
|
24
|
+
}
|
|
21
25
|
if (type === 'PUPOP') {
|
|
22
26
|
return (_jsx(Dialog, __assign({ footer: footer, open: open }, { children: children })));
|
|
23
27
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { styled } from '@mui/material/styles';
|
|
3
|
+
import Box from '@mui/material/Box';
|
|
4
|
+
import Loader from '../Loader';
|
|
5
|
+
var BoxStyled = styled(Box)(function () { return ({
|
|
6
|
+
width: '100%',
|
|
7
|
+
height: '100%',
|
|
8
|
+
display: 'flex',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
alignItems: 'center'
|
|
11
|
+
}); });
|
|
12
|
+
export default function FlowLoading() {
|
|
13
|
+
return (_jsx(BoxStyled, { children: _jsx(Loader, { svgStyle: { width: 60, height: 60 }, innerColor: '#000', outerColor: '#000', toggleAnimation: true }) }));
|
|
14
|
+
}
|
|
@@ -28,7 +28,7 @@ var LoaderBoxStyled = styled('svg')(function (_a) {
|
|
|
28
28
|
return (__assign({ height: '100%', transformOrigin: 'center center', width: '100%', position: 'absolute', top: 0, left: 0, margin: 'auto' }, (size && { transform: "scale(".concat(size / 40.0, ")") })));
|
|
29
29
|
});
|
|
30
30
|
function Loader(props) {
|
|
31
|
-
return (_jsx(RootStyled, __assign({ className: 'loader', style: props.style }, { children: _jsxs(LoaderBoxStyled, __assign({
|
|
31
|
+
return (_jsx(RootStyled, __assign({ className: 'loader', style: props.style }, { children: _jsxs(LoaderBoxStyled, __assign({ viewBox: '25 25 50 50', style: props.svgStyle }, { children: [_jsx("circle", __assign({ cx: '50', cy: '50', r: '20', fill: 'none', stroke: props.outerColor || 'black', strokeWidth: '3.6px', strokeLinecap: 'round', strokeDasharray: ' 125, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '0 50 50', to: '360 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; 122; 122; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) })), _jsx("circle", __assign({ cx: '50', cy: '50', r: '14', fill: 'none', stroke: props.innerColor || 'black', strokeWidth: ' 3.6px', strokeLinecap: 'round', strokeDasharray: ' 88, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '360 50 50', to: '0 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; -85; -85; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) }))] })) })));
|
|
32
32
|
}
|
|
33
33
|
Loader.defaultProps = {
|
|
34
34
|
outerColor: '#423e3c',
|
package/build/constants/app.d.ts
CHANGED
|
@@ -95,6 +95,24 @@ export declare const BANK_STEP_NAMES: {
|
|
|
95
95
|
BANK_INFO: string;
|
|
96
96
|
BANK_SUCCESS: string;
|
|
97
97
|
};
|
|
98
|
+
export declare const TAX_STEP_NAMES: {
|
|
99
|
+
PHONE_AUTH: string;
|
|
100
|
+
IDENTITY_AUTH: string;
|
|
101
|
+
TAX_INFO: string;
|
|
102
|
+
TAX_SUCCESS: string;
|
|
103
|
+
};
|
|
104
|
+
export declare const INDIVIDUAl_STEP_NAMES: {
|
|
105
|
+
PHONE_AUTH: string;
|
|
106
|
+
IDENTITY_AUTH: string;
|
|
107
|
+
INDIVIDUAl_INFO: string;
|
|
108
|
+
INDIVIDUAl_SUCCESS: string;
|
|
109
|
+
};
|
|
110
|
+
export declare const PASSWORD_STEP_NAMES: {
|
|
111
|
+
PHONE_AUTH: string;
|
|
112
|
+
IDENTITY_AUTH: string;
|
|
113
|
+
PASSWORD_CREATE: string;
|
|
114
|
+
PASSWORD_SUCCESS: string;
|
|
115
|
+
};
|
|
98
116
|
export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
|
|
99
117
|
export declare const ENCRYPTION_FLAG = "encryption_contract";
|
|
100
118
|
export declare const BACKEND_ENCRYPTION_FLAG = "backend_encryption_contract";
|
package/build/constants/app.js
CHANGED
|
@@ -70,7 +70,7 @@ export var BUSINESS_SCREENS_NAVIGATION = [
|
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
name: 'BUSINESS_BUSINESS_TYPE_STEP',
|
|
73
|
-
next: '
|
|
73
|
+
next: 'BUSINESS_ACTIVITIES_STEP',
|
|
74
74
|
prev: 'BUSINESS_IDBOD_STEP',
|
|
75
75
|
order: 2
|
|
76
76
|
},
|
|
@@ -101,36 +101,48 @@ export var BUSINESS_SCREENS_NAVIGATION = [
|
|
|
101
101
|
];
|
|
102
102
|
export var INDIVIDUAL_SCREENS_NAVIGATION = [
|
|
103
103
|
{
|
|
104
|
-
name: '
|
|
105
|
-
next: '
|
|
104
|
+
name: 'INDIVIDUAL_VERIFY_STEP',
|
|
105
|
+
next: 'INDIVIDUAL_SHOW_INDIVIDUAL_INFO_STEP',
|
|
106
106
|
prev: '',
|
|
107
107
|
order: 1
|
|
108
108
|
},
|
|
109
|
+
{
|
|
110
|
+
name: 'INDIVIDUAL_SHOW_INDIVIDUAL_INFO_STEP',
|
|
111
|
+
next: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
|
|
112
|
+
prev: 'INDIVIDUAL_VERIFY_STEP',
|
|
113
|
+
order: 2
|
|
114
|
+
},
|
|
109
115
|
{
|
|
110
116
|
name: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
|
|
111
117
|
next: 'INDIVIDUAL_SUCCESS_STEP',
|
|
112
118
|
prev: 'INDIVIDUAL_SHOW_INDIVIDUAL_INFO_STEP',
|
|
113
|
-
order:
|
|
119
|
+
order: 3
|
|
114
120
|
},
|
|
115
121
|
{
|
|
116
122
|
name: 'INDIVIDUAL_SUCCESS_STEP',
|
|
117
123
|
next: '',
|
|
118
124
|
prev: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
|
|
119
|
-
order:
|
|
125
|
+
order: 4
|
|
120
126
|
}
|
|
121
127
|
];
|
|
122
128
|
export var PASSWORD_SCREENS_NAVIGATION = [
|
|
123
129
|
{
|
|
124
|
-
name: '
|
|
125
|
-
next: '
|
|
130
|
+
name: 'PASSWORD_VERIFY_STEP',
|
|
131
|
+
next: 'PASSWORD_CREATE_PASSWORD_STEP',
|
|
126
132
|
prev: '',
|
|
127
133
|
order: 1
|
|
128
134
|
},
|
|
135
|
+
{
|
|
136
|
+
name: 'PASSWORD_CREATE_PASSWORD_STEP',
|
|
137
|
+
next: 'PASSWORD_SUCCESS_STEP',
|
|
138
|
+
prev: 'PASSWORD_VERIFY_STEP',
|
|
139
|
+
order: 2
|
|
140
|
+
},
|
|
129
141
|
{
|
|
130
142
|
name: 'PASSWORD_SUCCESS_STEP',
|
|
131
143
|
next: '',
|
|
132
144
|
prev: 'PASSWORD_CREATE_PASSWORD_STEP',
|
|
133
|
-
order:
|
|
145
|
+
order: 3
|
|
134
146
|
}
|
|
135
147
|
];
|
|
136
148
|
export var BANK_SCREENS_NAVIGATION = [
|
|
@@ -155,16 +167,22 @@ export var BANK_SCREENS_NAVIGATION = [
|
|
|
155
167
|
];
|
|
156
168
|
export var TAX_SCREENS_NAVIGATION = [
|
|
157
169
|
{
|
|
158
|
-
name: '
|
|
159
|
-
next: '
|
|
170
|
+
name: 'TAX_VERIFY_STEP',
|
|
171
|
+
next: 'TAX_TAX_DETAILS_STEP',
|
|
160
172
|
prev: '',
|
|
161
173
|
order: 1
|
|
162
174
|
},
|
|
175
|
+
{
|
|
176
|
+
name: 'TAX_TAX_DETAILS_STEP',
|
|
177
|
+
next: 'TAX_DETAILS_SUCCESS_STEP',
|
|
178
|
+
prev: 'TAX_VERIFY_STEP',
|
|
179
|
+
order: 2
|
|
180
|
+
},
|
|
163
181
|
{
|
|
164
182
|
name: 'TAX_DETAILS_SUCCESS_STEP',
|
|
165
183
|
next: '',
|
|
166
184
|
prev: 'TAX_TAX_DETAILS_STEP',
|
|
167
|
-
order:
|
|
185
|
+
order: 3
|
|
168
186
|
}
|
|
169
187
|
];
|
|
170
188
|
export var DefaultDeviceInfo = {
|
|
@@ -244,6 +262,24 @@ export var BANK_STEP_NAMES = {
|
|
|
244
262
|
BANK_INFO: 'bank_info',
|
|
245
263
|
BANK_SUCCESS: 'bank_completed'
|
|
246
264
|
};
|
|
265
|
+
export var TAX_STEP_NAMES = {
|
|
266
|
+
PHONE_AUTH: 'tax_phone_auth',
|
|
267
|
+
IDENTITY_AUTH: 'tax_identity_auth',
|
|
268
|
+
TAX_INFO: 'tax_info',
|
|
269
|
+
TAX_SUCCESS: 'tax_completed'
|
|
270
|
+
};
|
|
271
|
+
export var INDIVIDUAl_STEP_NAMES = {
|
|
272
|
+
PHONE_AUTH: 'individual_phone_auth',
|
|
273
|
+
IDENTITY_AUTH: 'individual_identity_auth',
|
|
274
|
+
INDIVIDUAl_INFO: 'individual_info',
|
|
275
|
+
INDIVIDUAl_SUCCESS: 'individual_completed'
|
|
276
|
+
};
|
|
277
|
+
export var PASSWORD_STEP_NAMES = {
|
|
278
|
+
PHONE_AUTH: 'password_phone_auth',
|
|
279
|
+
IDENTITY_AUTH: 'password_identity_auth',
|
|
280
|
+
PASSWORD_CREATE: 'password_create',
|
|
281
|
+
PASSWORD_SUCCESS: 'password_completed'
|
|
282
|
+
};
|
|
247
283
|
export var RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
|
|
248
284
|
export var ENCRYPTION_FLAG = 'encryption_contract';
|
|
249
285
|
export var BACKEND_ENCRYPTION_FLAG = 'backend_encryption_contract';
|
|
@@ -5,7 +5,7 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
5
5
|
leadData: any;
|
|
6
6
|
token: string;
|
|
7
7
|
}, string, {}>;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
9
|
data: any;
|
|
10
10
|
formData: {
|
|
11
11
|
otp: string;
|
|
@@ -76,7 +76,7 @@ export var verifyLeadToken = createAsyncThunk('verifyLeadToken', function (token
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
}); });
|
|
79
|
-
export var
|
|
79
|
+
export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
80
80
|
var _a, bank, settings, responseBody, payload, data;
|
|
81
81
|
var _b, _c, _d;
|
|
82
82
|
return __generator(this, function (_e) {
|
|
@@ -111,7 +111,7 @@ export var updateLeadSuccess = createAsyncThunk('updateLeadSuccess', function (p
|
|
|
111
111
|
_a = thunkApi.getState(), settings = _a.settings, bank = _a.bank;
|
|
112
112
|
payload = {
|
|
113
113
|
step_name: BANK_STEP_NAMES.BANK_SUCCESS,
|
|
114
|
-
|
|
114
|
+
id: ((_b = bank.data.otpData.responseBody) === null || _b === void 0 ? void 0 : _b.id) || '',
|
|
115
115
|
encryption_contract: []
|
|
116
116
|
};
|
|
117
117
|
return [4, API.leadService.updateLead(payload)];
|
|
@@ -171,11 +171,11 @@ export var bankSlice = createSlice({
|
|
|
171
171
|
.addCase(verifyLeadToken.rejected, function (state, action) {
|
|
172
172
|
state.error = action.error.message;
|
|
173
173
|
})
|
|
174
|
-
.addCase(
|
|
174
|
+
.addCase(verifyBankLeadOTP.pending, function (state) {
|
|
175
175
|
state.loading = true;
|
|
176
176
|
state.error = null;
|
|
177
177
|
})
|
|
178
|
-
.addCase(
|
|
178
|
+
.addCase(verifyBankLeadOTP.fulfilled, function (state, action) {
|
|
179
179
|
var _a;
|
|
180
180
|
state.loading = false;
|
|
181
181
|
state.error = null;
|
|
@@ -186,9 +186,8 @@ export var bankSlice = createSlice({
|
|
|
186
186
|
return;
|
|
187
187
|
}
|
|
188
188
|
state.data.otpData = formData;
|
|
189
|
-
state.data.otpData.responseBody = data;
|
|
190
189
|
})
|
|
191
|
-
.addCase(
|
|
190
|
+
.addCase(verifyBankLeadOTP.rejected, function (state, action) {
|
|
192
191
|
state.loading = false;
|
|
193
192
|
state.error = action.error.message;
|
|
194
193
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
|
-
import { ActivitiesFormValues,
|
|
2
|
+
import { ActivitiesFormValues, CustomersFormValues, BusinessTypeFormValues, CountryCode, License, NIDFormValues, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
3
3
|
export declare const getCountries: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
businessCountry: any;
|
|
5
5
|
countries: any;
|
|
@@ -81,7 +81,6 @@ export interface BusinessData {
|
|
|
81
81
|
businessTypeData: BusinessTypeFormValues & ResponseData;
|
|
82
82
|
crInfos: Array<License>;
|
|
83
83
|
flInfos: Array<License>;
|
|
84
|
-
businessInfo: BusinessInfoFormValues & ResponseData;
|
|
85
84
|
activitiesData: ActivitiesFormValues & ResponseData;
|
|
86
85
|
customersData: CustomersFormValues & ResponseData;
|
|
87
86
|
}
|