@tap-payments/auth-jsconnect 2.3.40-test → 2.3.46-test
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/form.d.ts +0 -3
- package/build/api/entity.d.ts +0 -1
- package/build/api/index.d.ts +0 -3
- package/build/api/index.js +1 -3
- package/build/assets/locales/ar.json +0 -1
- package/build/assets/locales/en.json +0 -1
- package/build/components/DatePicker/DatePicker.js +1 -0
- package/build/components/RadioGroup/RadioGroup.d.ts +5 -2
- package/build/components/RadioGroup/RadioGroup.js +5 -9
- package/build/components/RadioGroup/index.d.ts +1 -1
- package/build/constants/app.js +4 -10
- package/build/features/app/bank/bankStore.d.ts +0 -1
- package/build/features/app/bank/bankStore.js +21 -37
- package/build/features/app/connectExpress/connectExpressStore.js +12 -8
- package/build/features/app/entity/entityStore.d.ts +1 -9
- package/build/features/app/entity/entityStore.js +48 -119
- package/build/features/app/individual/individualStore.d.ts +0 -2
- package/build/features/app/individual/individualStore.js +71 -91
- package/build/features/app/tax/taxStore.js +18 -36
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +6 -10
- package/build/features/bank/screens/Verify/OTPInput.js +5 -3
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +0 -5
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +5 -5
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +0 -5
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +5 -5
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +13 -3
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +12 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -1
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +6 -9
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +12 -0
- package/build/features/brand/screens/BrandActivities/TAC.js +6 -9
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +2 -2
- package/build/features/brand/screens/BrandInfo/Segments.js +9 -1
- package/build/features/brand/screens/BrandInfo/TeamSize.js +9 -1
- package/build/features/brand/screens/Verify/OTPInput.js +5 -3
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +0 -5
- package/build/features/business/screens/Activities/ActivitiesList.js +5 -5
- package/build/features/business/screens/Activities/OperationStartDate.js +1 -1
- package/build/features/business/screens/BusinessType/LicenseList.js +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +0 -5
- package/build/features/business/screens/Customers/CustomerLocations.js +5 -5
- package/build/features/business/screens/Customers/ExpectedCustomers.js +12 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +12 -2
- package/build/features/business/screens/IDBOD/DOB.js +1 -1
- package/build/features/business/screens/Verify/OTPInput.js +5 -3
- package/build/features/connect/screens/Merchant/BrandList.js +1 -1
- package/build/features/connect/screens/Merchant/Segments.js +6 -1
- package/build/features/connect/screens/Merchant/TeamSize.js +6 -1
- package/build/features/connectExpress/screens/Brand/Brand.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +3 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +12 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +6 -9
- package/build/features/connectExpress/screens/NID/TAC.d.ts +12 -0
- package/build/features/connectExpress/screens/NID/TAC.js +6 -9
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +0 -5
- package/build/features/entity/screens/EntityCapital/ActivityList.js +5 -5
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +2 -2
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +0 -5
- package/build/features/entity/screens/EntityName/EntityTypeList.js +5 -5
- package/build/features/entity/screens/Verify/OTPInput.js +5 -3
- package/build/features/featuresScreens.js +0 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +10 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +9 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +9 -1
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +9 -1
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +9 -1
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +9 -1
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +9 -6
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +9 -1
- package/build/features/individual/screens/Verify/OTPInput.js +5 -3
- package/build/features/password/screens/Verify/OTPInput.js +5 -3
- package/build/features/shared/Address/Address.js +13 -20
- package/build/features/shared/Address/CountryList.js +4 -4
- package/build/features/shared/Address/InputSelect.js +1 -1
- package/build/features/shared/Button/FlowsButtons.js +14 -19
- package/build/features/shared/Input/Input.js +2 -3
- package/build/features/shared/OTP/OTP.d.ts +2 -1
- package/build/features/shared/OTP/OTP.js +2 -2
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +2 -1
- package/build/features/shared/SalesChannels/SalesChannel.js +2 -1
- package/build/features/shared/UploadFile/FileUpload.js +5 -5
- package/build/features/shared/UploadFile/UploadFile.js +7 -7
- package/build/features/shared/UploadMultipleFile/UploadFile.js +5 -5
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +6 -9
- package/build/features/tax/screens/Verify/OTPInput.js +5 -3
- package/build/utils/error.d.ts +1 -0
- package/build/utils/error.js +3 -0
- package/build/utils/string.d.ts +1 -1
- package/build/utils/string.js +6 -0
- package/package.json +1 -1
- package/build/api/address.d.ts +0 -4
- package/build/api/address.js +0 -12
- package/build/features/entity/screens/EntityAddress/EntityAddress.d.ts +0 -5
- package/build/features/entity/screens/EntityAddress/EntityAddress.js +0 -42
- package/build/features/entity/screens/EntityAddress/index.d.ts +0 -2
- package/build/features/entity/screens/EntityAddress/index.js +0 -2
package/build/@types/form.d.ts
CHANGED
|
@@ -134,9 +134,6 @@ export declare type EntityCapitalFormValues = {
|
|
|
134
134
|
capitalShareCount: string;
|
|
135
135
|
capitalShareValue: string;
|
|
136
136
|
};
|
|
137
|
-
export declare type EntityAddressFormValues = {
|
|
138
|
-
billingAddress: Record<string, string>;
|
|
139
|
-
};
|
|
140
137
|
export declare type BusinessDataFormValues = {
|
|
141
138
|
brandName: string;
|
|
142
139
|
licenseNumber: string;
|
package/build/api/entity.d.ts
CHANGED
package/build/api/index.d.ts
CHANGED
|
@@ -141,9 +141,6 @@ declare const API: {
|
|
|
141
141
|
addFilesToExistingDocument: ({ id, ...data }: DocumentBody) => Promise<any>;
|
|
142
142
|
removeFilesFromDocument: ({ id, ...data }: DocumentBody) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
143
143
|
};
|
|
144
|
-
addressService: {
|
|
145
|
-
retrieveAddressFormat: (countryCode: string) => Promise<any>;
|
|
146
|
-
};
|
|
147
144
|
};
|
|
148
145
|
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody };
|
|
149
146
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
package/build/api/index.js
CHANGED
|
@@ -15,7 +15,6 @@ import { userService } from './user';
|
|
|
15
15
|
import { brandService } from './brand';
|
|
16
16
|
import { fileService } from './file';
|
|
17
17
|
import { documentService } from './document';
|
|
18
|
-
import { addressService } from './address';
|
|
19
18
|
var API = {
|
|
20
19
|
locationService: locationService,
|
|
21
20
|
operatorService: operatorService,
|
|
@@ -32,8 +31,7 @@ var API = {
|
|
|
32
31
|
userService: userService,
|
|
33
32
|
brandService: brandService,
|
|
34
33
|
fileService: fileService,
|
|
35
|
-
documentService: documentService
|
|
36
|
-
addressService: addressService
|
|
34
|
+
documentService: documentService
|
|
37
35
|
};
|
|
38
36
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
39
37
|
export default API;
|
|
@@ -391,7 +391,6 @@
|
|
|
391
391
|
"try_again": "حاول مرة أخرى",
|
|
392
392
|
"file_delete_error": "حدث خطأ ما في حذف الملف. حاول مرة اخرى",
|
|
393
393
|
"file_download_error": "حدث خطأ ما في تحميل الملف. حاول مرة اخرى",
|
|
394
|
-
"is_required": " مطلوب",
|
|
395
394
|
"title_brand_logo": "لوجو العلامة التجارية",
|
|
396
395
|
"description_brand_logo": "JPG or PNG files up to 4mb."
|
|
397
396
|
}
|
|
@@ -421,7 +421,6 @@
|
|
|
421
421
|
"try_again": "Try again",
|
|
422
422
|
"file_delete_error": "Something went wrong with deleting file. Please try again",
|
|
423
423
|
"file_download_error": "Something went wrong with downloading file. Please try again",
|
|
424
|
-
"is_required": " is required",
|
|
425
424
|
"title_brand_logo": "Brand Logo",
|
|
426
425
|
"description_brand_logo": "JPG or PNG files up to 4mb."
|
|
427
426
|
}
|
|
@@ -42,6 +42,7 @@ var Container = styled(Box, { shouldForwardProp: function (prop) { return prop !
|
|
|
42
42
|
var theme = _a.theme, disabled = _a.disabled;
|
|
43
43
|
return ({
|
|
44
44
|
cursor: disabled ? 'auto' : 'pointer',
|
|
45
|
+
opacity: disabled ? '0.6' : '1',
|
|
45
46
|
fontFamily: theme.typography.fontFamily
|
|
46
47
|
});
|
|
47
48
|
});
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RadioGroupProps } from '@mui/material/RadioGroup';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
interface RadioGroupStyledProps extends RadioGroupProps {
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export type { RadioGroupStyledProps };
|
|
7
|
+
declare const _default: React.MemoExoticComponent<({ children, ...props }: RadioGroupStyledProps) => JSX.Element>;
|
|
5
8
|
export default _default;
|
|
@@ -24,15 +24,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import { styled } from '@mui/material/styles';
|
|
26
26
|
import RadioGroup from '@mui/material/RadioGroup';
|
|
27
|
-
var RadioGroupStyled = styled(RadioGroup)(function (_a) {
|
|
28
|
-
var theme = _a.theme;
|
|
29
|
-
return ({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
display: 'flex',
|
|
33
|
-
direction: theme.direction,
|
|
34
|
-
marginInlineStart: theme.spacing(0.25)
|
|
35
|
-
});
|
|
27
|
+
var RadioGroupStyled = styled(RadioGroup, { shouldForwardProp: function (prop) { return prop !== 'readOnly'; } })(function (_a) {
|
|
28
|
+
var theme = _a.theme, readOnly = _a.readOnly;
|
|
29
|
+
return (__assign({ width: '100%', flexDirection: 'row', display: 'flex', direction: theme.direction, marginInlineStart: theme.spacing(0.25) }, (readOnly && {
|
|
30
|
+
opacity: 0.6
|
|
31
|
+
})));
|
|
36
32
|
});
|
|
37
33
|
var RadioGroupComponent = function (_a) {
|
|
38
34
|
var children = _a.children, props = __rest(_a, ["children"]);
|
package/build/constants/app.js
CHANGED
|
@@ -465,33 +465,27 @@ export var ENTITY_SCREENS_NAVIGATION = [
|
|
|
465
465
|
},
|
|
466
466
|
{
|
|
467
467
|
name: 'ENTITY_CAPITAL_STEP',
|
|
468
|
-
next: '
|
|
468
|
+
next: 'ENTITY_DETAILS_SUCCESS_STEP',
|
|
469
469
|
prev: 'ENTITY_NAME_STEP',
|
|
470
470
|
order: 3
|
|
471
471
|
},
|
|
472
|
-
{
|
|
473
|
-
name: 'ENTITY_ADDRESS_STEP',
|
|
474
|
-
next: 'ENTITY_DETAILS_SUCCESS_STEP',
|
|
475
|
-
prev: 'ENTITY_CAPITAL_STEP',
|
|
476
|
-
order: 4
|
|
477
|
-
},
|
|
478
472
|
{
|
|
479
473
|
name: 'ENTITY_DETAILS_SUCCESS_STEP',
|
|
480
474
|
next: 'ENTITY_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
481
475
|
prev: 'ENTITY_CAPITAL_STEP',
|
|
482
|
-
order:
|
|
476
|
+
order: 4
|
|
483
477
|
},
|
|
484
478
|
{
|
|
485
479
|
name: 'ENTITY_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
486
480
|
next: 'ENTITY_RESET_PASSWORD_SUCCESS',
|
|
487
481
|
prev: '',
|
|
488
|
-
order:
|
|
482
|
+
order: 5
|
|
489
483
|
},
|
|
490
484
|
{
|
|
491
485
|
name: 'ENTITY_RESET_PASSWORD_SUCCESS',
|
|
492
486
|
next: '',
|
|
493
487
|
prev: '',
|
|
494
|
-
order:
|
|
488
|
+
order: 5
|
|
495
489
|
}
|
|
496
490
|
];
|
|
497
491
|
export var BRAND_SCREENS_NAVIGATION = [
|
|
@@ -55,10 +55,10 @@ import { hasNoneEditableValue, sleep } from '../../../utils';
|
|
|
55
55
|
export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_a, thunkApi) {
|
|
56
56
|
var token = _a.token, isInternally = _a.isInternally;
|
|
57
57
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
-
var payload, data,
|
|
59
|
-
var _b, _c, _d
|
|
60
|
-
return __generator(this, function (
|
|
61
|
-
switch (
|
|
58
|
+
var payload, data, boardData, board_id, countryIso2;
|
|
59
|
+
var _b, _c, _d;
|
|
60
|
+
return __generator(this, function (_e) {
|
|
61
|
+
switch (_e.label) {
|
|
62
62
|
case 0:
|
|
63
63
|
payload = {
|
|
64
64
|
service_name: 'tap_email',
|
|
@@ -66,37 +66,29 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
|
|
|
66
66
|
};
|
|
67
67
|
return [4, API.leadService.verifyLeadToken(payload)];
|
|
68
68
|
case 1:
|
|
69
|
-
data = (
|
|
69
|
+
data = (_e.sent()).data;
|
|
70
70
|
boardData = undefined;
|
|
71
|
-
if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3,
|
|
71
|
+
if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 4];
|
|
72
72
|
board_id = data === null || data === void 0 ? void 0 : data.id;
|
|
73
|
-
if (!board_id) return [3,
|
|
74
|
-
return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
75
|
-
case 2:
|
|
76
|
-
boardInfoData = _f.sent();
|
|
73
|
+
if (!board_id) return [3, 3];
|
|
77
74
|
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
75
|
+
case 2:
|
|
76
|
+
boardData = _e.sent();
|
|
77
|
+
_e.label = 3;
|
|
78
78
|
case 3:
|
|
79
|
-
boardData = _f.sent();
|
|
80
|
-
_f.label = 4;
|
|
81
|
-
case 4:
|
|
82
79
|
countryIso2 = (_b = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _b === void 0 ? void 0 : _b.country;
|
|
83
80
|
if (countryIso2)
|
|
84
81
|
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
85
|
-
info = (boardInfoData || {}).info;
|
|
86
82
|
if (isInternally)
|
|
87
83
|
data.step_name = BANK_STEP_NAMES.BANK_INFO;
|
|
88
|
-
hasBankCompleted = ((_c = info === null || info === void 0 ? void 0 : info.find(function (flow) { return flow.name === 'bank'; })) === null || _c === void 0 ? void 0 : _c.status) === 'completed';
|
|
89
84
|
if (data.step_name === BANK_STEP_NAMES.PHONE_AUTH) {
|
|
90
85
|
thunkApi.dispatch(handleCurrentActiveScreen('BANK_VERIFY_STEP'));
|
|
91
86
|
}
|
|
92
|
-
else if (hasBankCompleted) {
|
|
93
|
-
thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
94
|
-
}
|
|
95
87
|
else if (data.step_name === BANK_STEP_NAMES.BANK_INFO) {
|
|
96
88
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP')); });
|
|
97
89
|
}
|
|
98
|
-
|
|
99
|
-
case
|
|
90
|
+
_e.label = 4;
|
|
91
|
+
case 4: return [2, {
|
|
100
92
|
data: data,
|
|
101
93
|
boardResponse: {
|
|
102
94
|
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
@@ -104,11 +96,10 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
|
|
|
104
96
|
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
105
97
|
entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity,
|
|
106
98
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
107
|
-
name: (
|
|
108
|
-
contact: (
|
|
99
|
+
name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names,
|
|
100
|
+
contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact,
|
|
109
101
|
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
110
|
-
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals
|
|
111
|
-
flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []
|
|
102
|
+
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals
|
|
112
103
|
},
|
|
113
104
|
token: token
|
|
114
105
|
}];
|
|
@@ -134,14 +125,13 @@ export var resendOTP = createAsyncThunk('resendOTPBank', function (params, thunk
|
|
|
134
125
|
});
|
|
135
126
|
}); });
|
|
136
127
|
export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
137
|
-
var _a, bank, settings, responseBody,
|
|
138
|
-
var _b, _c, _d
|
|
139
|
-
return __generator(this, function (
|
|
140
|
-
switch (
|
|
128
|
+
var _a, bank, settings, responseBody, payload, data;
|
|
129
|
+
var _b, _c, _d;
|
|
130
|
+
return __generator(this, function (_e) {
|
|
131
|
+
switch (_e.label) {
|
|
141
132
|
case 0:
|
|
142
133
|
_a = thunkApi.getState(), bank = _a.bank, settings = _a.settings;
|
|
143
134
|
responseBody = bank.data.verify.responseBody;
|
|
144
|
-
flows = (responseBody || {}).flows;
|
|
145
135
|
payload = {
|
|
146
136
|
data: params.otp,
|
|
147
137
|
service_name: (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _b === void 0 ? void 0 : _b.service_name,
|
|
@@ -151,16 +141,10 @@ export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (p
|
|
|
151
141
|
};
|
|
152
142
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
153
143
|
case 1:
|
|
154
|
-
data = (
|
|
144
|
+
data = (_e.sent()).data;
|
|
155
145
|
if (!data.errors) {
|
|
156
146
|
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, { otp: params.otp });
|
|
157
|
-
|
|
158
|
-
if (hasBankCompleted) {
|
|
159
|
-
thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP')); });
|
|
163
|
-
}
|
|
147
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP')); });
|
|
164
148
|
}
|
|
165
149
|
return [2, { data: data, formData: params }];
|
|
166
150
|
}
|
|
@@ -1027,7 +1027,7 @@ export var connectSlice = createSlice({
|
|
|
1027
1027
|
state.error = null;
|
|
1028
1028
|
})
|
|
1029
1029
|
.addCase(retrieveEntityListAsync.fulfilled, function (state, action) {
|
|
1030
|
-
var _a, _b
|
|
1030
|
+
var _a, _b;
|
|
1031
1031
|
state.loading = false;
|
|
1032
1032
|
var data = action.payload;
|
|
1033
1033
|
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
@@ -1047,19 +1047,23 @@ export var connectSlice = createSlice({
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
licenseList = __spreadArray(__spreadArray([], licenseList, true), [OTHER_CR_LICENSE, OTHER_FL_LICENSE], false);
|
|
1050
|
-
var
|
|
1050
|
+
var _c = ((_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.leadData) || {}, license_number = _c.license_number, license_type = _c.license_type;
|
|
1051
|
+
var selectedLicense = undefined;
|
|
1051
1052
|
if (license_number) {
|
|
1052
1053
|
var findLicense = licenseList.find(function (_a) {
|
|
1053
1054
|
var license = _a.license;
|
|
1054
1055
|
return (license === null || license === void 0 ? void 0 : license.number) === license_number;
|
|
1055
1056
|
});
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1057
|
+
if (findLicense)
|
|
1058
|
+
selectedLicense = findLicense;
|
|
1059
|
+
else if (!findLicense && license_type === 'freelance') {
|
|
1060
|
+
selectedLicense = __assign(__assign({}, OTHER_FL_LICENSE), { license: { number: license_number } });
|
|
1061
|
+
}
|
|
1062
|
+
else
|
|
1063
|
+
selectedLicense = __assign(__assign({}, OTHER_CR_LICENSE), { license: { number: license_number } });
|
|
1064
|
+
state.data.businessData.licenseNumber = license_number;
|
|
1062
1065
|
}
|
|
1066
|
+
state.data.businessData.selectedLicense = selectedLicense;
|
|
1063
1067
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { licenseList: licenseList });
|
|
1064
1068
|
})
|
|
1065
1069
|
.addCase(retrieveEntityListAsync.rejected, function (state, action) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
|
-
import { ActionState,
|
|
2
|
+
import { ActionState, EntityCapitalFormValues, EntityNameFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
3
3
|
interface VerifyLeadTokenProps {
|
|
4
4
|
token: string;
|
|
5
5
|
isInternally?: boolean;
|
|
@@ -16,7 +16,6 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
16
16
|
contact: any;
|
|
17
17
|
individuals: any;
|
|
18
18
|
business: any;
|
|
19
|
-
flows: any;
|
|
20
19
|
entityTypes: any;
|
|
21
20
|
};
|
|
22
21
|
token: string;
|
|
@@ -36,7 +35,6 @@ export declare const verifyEntityLeadOTP: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
36
35
|
contact: any;
|
|
37
36
|
individuals: any;
|
|
38
37
|
business: any;
|
|
39
|
-
flows: any;
|
|
40
38
|
entityTypes: any;
|
|
41
39
|
};
|
|
42
40
|
formData: OTPFormValues;
|
|
@@ -51,12 +49,7 @@ export declare const updateEntityName: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
51
49
|
export declare const updateEntityCapital: import("@reduxjs/toolkit").AsyncThunk<{
|
|
52
50
|
data: any;
|
|
53
51
|
formData: EntityCapitalFormValues;
|
|
54
|
-
addressFormat: any;
|
|
55
52
|
}, EntityCapitalFormValues, {}>;
|
|
56
|
-
export declare const updateEntityAddress: import("@reduxjs/toolkit").AsyncThunk<{
|
|
57
|
-
data: any;
|
|
58
|
-
formData: EntityAddressFormValues;
|
|
59
|
-
}, EntityAddressFormValues, {}>;
|
|
60
53
|
export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
61
54
|
response: any;
|
|
62
55
|
formData: void;
|
|
@@ -69,7 +62,6 @@ export interface EntityData {
|
|
|
69
62
|
otpData: OTPFormValues & ResponseData;
|
|
70
63
|
entityNameData: EntityNameFormValues & ResponseData;
|
|
71
64
|
entityCapitalData: EntityCapitalFormValues & ResponseData;
|
|
72
|
-
entityAddressData: EntityAddressFormValues & ResponseData;
|
|
73
65
|
flowName: FlowsTypes;
|
|
74
66
|
}
|
|
75
67
|
export interface EntityState extends SharedState<EntityData> {
|