@tap-payments/auth-jsconnect 2.0.45 → 2.0.46
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 +47 -2
- package/build/@types/app.js +22 -0
- package/build/@types/form.d.ts +19 -1
- package/build/@types/index.d.ts +1 -0
- package/build/@types/index.js +1 -0
- package/build/@types/user.d.ts +141 -0
- package/build/@types/user.js +1 -0
- package/build/api/board.d.ts +16 -0
- package/build/api/board.js +10 -1
- package/build/api/country.d.ts +4 -0
- package/build/api/country.js +9 -1
- package/build/api/entity.d.ts +3 -3
- package/build/api/index.d.ts +8 -3
- package/build/api/individual.d.ts +54 -4
- package/build/api/individual.js +9 -1
- package/build/api/user.d.ts +6 -0
- package/build/api/user.js +9 -1
- package/build/app/settings.js +11 -8
- package/build/assets/locales/ar.json +28 -2
- package/build/assets/locales/en.json +28 -1
- package/build/components/SimpleList/SimpleList.d.ts +2 -0
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +3 -1
- package/build/constants/app.d.ts +1 -0
- package/build/constants/app.js +20 -7
- package/build/constants/assets.d.ts +4 -0
- package/build/constants/assets.js +4 -0
- package/build/features/app/bank/bankStore.d.ts +1 -0
- package/build/features/app/bank/bankStore.js +19 -13
- package/build/features/app/brand/brandStore.d.ts +2 -0
- package/build/features/app/brand/brandStore.js +69 -49
- package/build/features/app/business/businessStore.js +3 -3
- package/build/features/app/connect/connectStore.js +6 -6
- package/build/features/app/connectExpress/connectExpressStore.js +15 -9
- package/build/features/app/entity/entityStore.d.ts +2 -0
- package/build/features/app/entity/entityStore.js +5 -3
- package/build/features/app/individual/individualStore.d.ts +93 -4
- package/build/features/app/individual/individualStore.js +613 -129
- package/build/features/app/password/passwordStore.js +2 -2
- package/build/features/app/tax/taxStore.js +30 -29
- package/build/features/bank/Bank.js +2 -2
- package/build/features/bank/screens/BankDetails/BankDetails.js +8 -7
- package/build/features/bank/screens/BankDetails/BankName.js +13 -10
- package/build/features/bank/screens/BankDetails/BankStatement.js +8 -2
- package/build/features/bank/screens/BankDetails/Beneficiary.js +12 -13
- package/build/features/bank/screens/BankDetails/IBAN.js +14 -10
- package/build/features/bank/screens/BankDetails/validation.d.ts +14 -14
- package/build/features/bank/screens/BankDetails/validation.js +34 -15
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
- package/build/features/brand/Brand.js +2 -2
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +3 -3
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +8 -6
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +12 -2
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +2 -2
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +9 -6
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +10 -7
- package/build/features/brand/screens/BrandActivities/validation.d.ts +7 -7
- package/build/features/brand/screens/BrandActivities/validation.js +26 -15
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +11 -4
- package/build/features/brand/screens/BrandInfo/BrandName.js +13 -12
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +21 -9
- package/build/features/brand/screens/BrandInfo/validation.d.ts +7 -7
- package/build/features/brand/screens/BrandInfo/validation.js +46 -36
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
- package/build/features/business/Business.js +2 -2
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +3 -3
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +2 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
- package/build/features/connect/Connect.js +2 -2
- package/build/features/connect/screens/Merchant/BrandList.js +4 -4
- package/build/features/connect/screens/Merchant/BrandName.js +6 -5
- package/build/features/connect/screens/Merchant/validation.js +2 -2
- package/build/features/connectExpress/ConnectExpress.js +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +5 -5
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +23 -3
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/entity/Entity.js +2 -2
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +3 -3
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +3 -3
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +9 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
- package/build/features/featuresScreens.js +10 -0
- package/build/features/individual/Individual.js +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +13 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +48 -25
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +6 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +9 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +11 -17
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +12 -16
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +9 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +35 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +41 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +8 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +9 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +25 -23
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +19 -25
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +10 -0
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +31 -0
- package/build/features/individual/screens/IndividualList/Email.d.ts +6 -0
- package/build/features/individual/screens/IndividualList/Email.js +48 -0
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +31 -0
- package/build/features/individual/screens/IndividualList/IndividualList.js +58 -0
- package/build/features/individual/screens/IndividualList/MobileNumber.d.ts +12 -0
- package/build/features/individual/screens/IndividualList/MobileNumber.js +143 -0
- package/build/features/individual/screens/IndividualList/UserList.d.ts +5 -0
- package/build/features/individual/screens/IndividualList/UserList.js +186 -0
- package/build/features/individual/screens/IndividualList/index.d.ts +3 -0
- package/build/features/individual/screens/IndividualList/index.js +2 -0
- package/build/features/individual/screens/IndividualList/validation.d.ts +12 -0
- package/build/features/individual/screens/IndividualList/validation.js +39 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +8 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +109 -0
- package/build/features/individual/screens/{AdditionalIndividualInfo/EmployerLocation.d.ts → IndividualPersonalInfo/BirthCountry.d.ts} +2 -2
- package/build/features/individual/screens/{AdditionalIndividualInfo/EmployerLocation.js → IndividualPersonalInfo/BirthCountry.js} +14 -24
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +7 -0
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +46 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +6 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +50 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +7 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +50 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +34 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +81 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +6 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +48 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +21 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +139 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +10 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +88 -0
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +10 -0
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +145 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +6 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +52 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +10 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +88 -0
- package/build/features/individual/screens/IndividualPersonalInfo/index.d.ts +3 -0
- package/build/features/individual/screens/IndividualPersonalInfo/index.js +2 -0
- package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +38 -0
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +68 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
- package/build/features/individual/screens/Verify/Verify.js +10 -17
- package/build/features/password/Password.js +2 -2
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
- package/build/features/shared/Address/Address.d.ts +6 -1
- package/build/features/shared/Address/Address.js +40 -30
- package/build/features/shared/Address/CountryList.d.ts +1 -1
- package/build/features/shared/Address/InputSelect.d.ts +1 -1
- package/build/features/shared/Address/InputText.d.ts +2 -1
- package/build/features/shared/Address/InputText.js +2 -2
- package/build/features/shared/Button/Button.js +11 -0
- package/build/features/shared/Button/FlowsButtons.d.ts +1 -0
- package/build/features/shared/Button/FlowsButtons.js +5 -5
- package/build/features/shared/Button/ListButton.d.ts +18 -0
- package/build/features/shared/Button/ListButton.js +125 -0
- package/build/features/shared/Button/index.d.ts +2 -1
- package/build/features/shared/Button/index.js +2 -1
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +2 -1
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +2 -2
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +2 -1
- package/build/features/shared/SalesChannels/SalesChannel.js +2 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +2 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +8 -6
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +6 -1
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +33 -11
- package/build/features/signIn/SignIn.js +2 -2
- package/build/features/tax/Tax.js +2 -2
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -1
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +8 -2
- package/build/features/tax/screens/TaxDetails/VATId.js +8 -3
- package/build/features/tax/screens/TaxDetails/validation.d.ts +4 -4
- package/build/features/tax/screens/TaxDetails/validation.js +10 -5
- package/build/utils/array.d.ts +1 -0
- package/build/utils/array.js +10 -2
- package/build/utils/common.d.ts +1 -0
- package/build/utils/common.js +6 -0
- package/build/utils/date.d.ts +1 -0
- package/build/utils/date.js +7 -1
- package/build/utils/error.d.ts +1 -0
- package/build/utils/error.js +3 -0
- package/build/utils/html.d.ts +1 -1
- package/build/utils/html.js +4 -1
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -0
- package/build/utils/string.d.ts +15 -2
- package/build/utils/string.js +37 -3
- package/build/utils/validation.d.ts +1 -0
- package/build/utils/validation.js +3 -0
- package/package.json +129 -129
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.d.ts +0 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +0 -46
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.d.ts +0 -19
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +0 -52
- package/build/features/individual/screens/ShowIndividualInfo/index.d.ts +0 -3
- package/build/features/individual/screens/ShowIndividualInfo/index.js +0 -2
- package/build/features/individual/screens/ShowIndividualInfo/info.d.ts +0 -7
- package/build/features/individual/screens/ShowIndividualInfo/info.js +0 -28
|
@@ -63,7 +63,7 @@ import { CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHE
|
|
|
63
63
|
import { defaultCountry } from '../../../constants';
|
|
64
64
|
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, getEighteenYearsAgo, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA } from '../../../utils';
|
|
65
65
|
export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
|
-
var _a, settings, connectExpress, countryCode, showBoard, data, phone, status, board_id, board_info_id, isRegistered, _b, boardInfo, boardData,
|
|
66
|
+
var _a, settings, connectExpress, countryCode, showBoard, data, phone, status, board_id, board_info_id, isRegistered, _b, boardInfo, boardData, error_1;
|
|
67
67
|
var _c, _d;
|
|
68
68
|
return __generator(this, function (_e) {
|
|
69
69
|
switch (_e.label) {
|
|
@@ -92,17 +92,23 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
|
|
|
92
92
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
|
|
93
93
|
return [2, { data: data, countryCode: countryCode }];
|
|
94
94
|
}
|
|
95
|
-
if (!(isRegistered && board_id && board_info_id)) return [3,
|
|
95
|
+
if (!(isRegistered && board_id && board_info_id)) return [3, 5];
|
|
96
|
+
_e.label = 2;
|
|
97
|
+
case 2:
|
|
98
|
+
_e.trys.push([2, 4, , 5]);
|
|
96
99
|
return [4, Promise.all([
|
|
97
100
|
API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
|
|
98
|
-
API.boardService.retrieveBoardDetails(board_id)
|
|
99
|
-
thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()
|
|
101
|
+
API.boardService.retrieveBoardDetails(board_id)
|
|
100
102
|
])];
|
|
101
|
-
case
|
|
102
|
-
_b = _e.sent(), boardInfo = _b[0], boardData = _b[1]
|
|
103
|
+
case 3:
|
|
104
|
+
_b = _e.sent(), boardInfo = _b[0], boardData = _b[1];
|
|
103
105
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP'));
|
|
104
|
-
return [2, { data:
|
|
105
|
-
case
|
|
106
|
+
return [2, { data: data, countryCode: countryCode, boardInfo: boardInfo, boardData: boardData }];
|
|
107
|
+
case 4:
|
|
108
|
+
error_1 = _e.sent();
|
|
109
|
+
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
|
|
110
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
111
|
+
case 5: return [2, { data: data, countryCode: countryCode }];
|
|
106
112
|
}
|
|
107
113
|
});
|
|
108
114
|
}); });
|
|
@@ -996,10 +1002,10 @@ export var connectSlice = createSlice({
|
|
|
996
1002
|
})
|
|
997
1003
|
.addCase(createAccountAsync.pending, function (state) {
|
|
998
1004
|
state.loading = true;
|
|
999
|
-
state.error = null;
|
|
1000
1005
|
})
|
|
1001
1006
|
.addCase(createAccountAsync.fulfilled, function (state, action) {
|
|
1002
1007
|
state.loading = false;
|
|
1008
|
+
state.error = null;
|
|
1003
1009
|
state.data.responseData = __assign(__assign({}, state.data.responseData), action.payload);
|
|
1004
1010
|
})
|
|
1005
1011
|
.addCase(createAccountAsync.rejected, function (state, action) {
|
|
@@ -14,6 +14,7 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
14
14
|
merchant: any;
|
|
15
15
|
name: any;
|
|
16
16
|
contact: any;
|
|
17
|
+
individuals: any;
|
|
17
18
|
flows: any;
|
|
18
19
|
entityTypes: any;
|
|
19
20
|
};
|
|
@@ -50,6 +51,7 @@ export declare const verifyEntityLeadOTP: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
50
51
|
merchant: any;
|
|
51
52
|
name: any;
|
|
52
53
|
contact: any;
|
|
54
|
+
individuals: any;
|
|
53
55
|
flows: any;
|
|
54
56
|
entityTypes: any;
|
|
55
57
|
};
|
|
@@ -59,7 +59,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
59
59
|
var _a;
|
|
60
60
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
61
61
|
import API from '../../../api';
|
|
62
|
-
import { BusinessType, FieldType, FlowsTypes } from '../../../@types';
|
|
62
|
+
import { BusinessType, DocumentPurpose, FieldType, FlowsTypes } from '../../../@types';
|
|
63
63
|
import { handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
64
64
|
import { ENTITY_STEP_NAMES } from '../../../constants';
|
|
65
65
|
import moment from 'moment';
|
|
@@ -131,6 +131,7 @@ export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function
|
|
|
131
131
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
132
132
|
name: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.names,
|
|
133
133
|
contact: (_e = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _e === void 0 ? void 0 : _e.contact,
|
|
134
|
+
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
|
|
134
135
|
flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [],
|
|
135
136
|
entityTypes: entityTypes
|
|
136
137
|
},
|
|
@@ -215,6 +216,7 @@ export var verifyEntityLeadOTP = createAsyncThunk('verifyEntityLeadOTP', functio
|
|
|
215
216
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
216
217
|
name: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.names,
|
|
217
218
|
contact: (_h = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _h === void 0 ? void 0 : _h.contact,
|
|
219
|
+
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
|
|
218
220
|
flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [],
|
|
219
221
|
entityTypes: entityTypes
|
|
220
222
|
},
|
|
@@ -232,7 +234,7 @@ export var retrieveBoardDetails = createAsyncThunk('entityRetrieveEntityInfo', f
|
|
|
232
234
|
case 1:
|
|
233
235
|
data = _c.sent();
|
|
234
236
|
return [2, {
|
|
235
|
-
data: __assign(__assign({}, data), { user: data === null || data === void 0 ? void 0 : data.user, brand: data === null || data === void 0 ? void 0 : data.brand, bank_account: data === null || data === void 0 ? void 0 : data.bank_account, entity: data === null || data === void 0 ? void 0 : data.entity, merchant: data === null || data === void 0 ? void 0 : data.merchant, name: (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.names, contact: (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.contact })
|
|
237
|
+
data: __assign(__assign({}, data), { user: data === null || data === void 0 ? void 0 : data.user, brand: data === null || data === void 0 ? void 0 : data.brand, bank_account: data === null || data === void 0 ? void 0 : data.bank_account, entity: data === null || data === void 0 ? void 0 : data.entity, merchant: data === null || data === void 0 ? void 0 : data.merchant, name: (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.names, contact: (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.contact, individuals: data === null || data === void 0 ? void 0 : data.individuals })
|
|
236
238
|
}];
|
|
237
239
|
}
|
|
238
240
|
});
|
|
@@ -329,7 +331,7 @@ export var uploadArticle = createAsyncThunk('entityUploadArticle', function (_a)
|
|
|
329
331
|
uploadPayload = {
|
|
330
332
|
file_link_create: true,
|
|
331
333
|
title: file === null || file === void 0 ? void 0 : file.name,
|
|
332
|
-
purpose:
|
|
334
|
+
purpose: DocumentPurpose.ARTICLE_ASSOCIATION,
|
|
333
335
|
type: type,
|
|
334
336
|
file: file
|
|
335
337
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
|
-
import { CountryCode, FlowsTypes, IndividualExtraFormValues, OTPFormValues, ResponseData, SharedState, ActionState } from '../../../@types';
|
|
2
|
+
import { CountryCode, FlowsTypes, IndividualExtraFormValues, OTPFormValues, ResponseData, SharedState, ActionState, User, IndividualPersonalInfoFormValues, IndividualEmailMobileFormValues } from '../../../@types';
|
|
3
3
|
interface VerifyLeadTokenProps {
|
|
4
4
|
token: string;
|
|
5
5
|
isInternally?: boolean;
|
|
@@ -7,7 +7,6 @@ interface VerifyLeadTokenProps {
|
|
|
7
7
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
8
8
|
data: any;
|
|
9
9
|
boardResponse: {
|
|
10
|
-
user: any;
|
|
11
10
|
brand: any;
|
|
12
11
|
bank_account: any;
|
|
13
12
|
entity: any;
|
|
@@ -15,6 +14,7 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
15
14
|
merchant_id: any;
|
|
16
15
|
name: any;
|
|
17
16
|
contact: any;
|
|
17
|
+
individuals: any;
|
|
18
18
|
countries: CountryCode[];
|
|
19
19
|
countryCode: any;
|
|
20
20
|
notification: any;
|
|
@@ -43,6 +43,78 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
43
43
|
fulfilledMeta?: unknown;
|
|
44
44
|
rejectedMeta?: unknown;
|
|
45
45
|
}>;
|
|
46
|
+
type AddDetailsParams = {
|
|
47
|
+
user: User;
|
|
48
|
+
userList: User[];
|
|
49
|
+
};
|
|
50
|
+
export declare const addDetailsAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
51
|
+
userList: User[];
|
|
52
|
+
}, AddDetailsParams, {
|
|
53
|
+
state?: unknown;
|
|
54
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
55
|
+
extra?: unknown;
|
|
56
|
+
rejectValue?: unknown;
|
|
57
|
+
serializedErrorType?: unknown;
|
|
58
|
+
pendingMeta?: unknown;
|
|
59
|
+
fulfilledMeta?: unknown;
|
|
60
|
+
rejectedMeta?: unknown;
|
|
61
|
+
}>;
|
|
62
|
+
type RequestEmail = {
|
|
63
|
+
user: User;
|
|
64
|
+
collectInfo: IndividualEmailMobileFormValues;
|
|
65
|
+
};
|
|
66
|
+
export declare const requestDetailsByEmail: import("@reduxjs/toolkit").AsyncThunk<{
|
|
67
|
+
data: any;
|
|
68
|
+
userData: any;
|
|
69
|
+
}, RequestEmail, {
|
|
70
|
+
state?: unknown;
|
|
71
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
72
|
+
extra?: unknown;
|
|
73
|
+
rejectValue?: unknown;
|
|
74
|
+
serializedErrorType?: unknown;
|
|
75
|
+
pendingMeta?: unknown;
|
|
76
|
+
fulfilledMeta?: unknown;
|
|
77
|
+
rejectedMeta?: unknown;
|
|
78
|
+
}>;
|
|
79
|
+
export declare const getIndividualList: import("@reduxjs/toolkit").AsyncThunk<any[], string, {
|
|
80
|
+
state?: unknown;
|
|
81
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
82
|
+
extra?: unknown;
|
|
83
|
+
rejectValue?: unknown;
|
|
84
|
+
serializedErrorType?: unknown;
|
|
85
|
+
pendingMeta?: unknown;
|
|
86
|
+
fulfilledMeta?: unknown;
|
|
87
|
+
rejectedMeta?: unknown;
|
|
88
|
+
}>;
|
|
89
|
+
export declare const getCityList: import("@reduxjs/toolkit").AsyncThunk<any, string, {
|
|
90
|
+
state?: unknown;
|
|
91
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
92
|
+
extra?: unknown;
|
|
93
|
+
rejectValue?: unknown;
|
|
94
|
+
serializedErrorType?: unknown;
|
|
95
|
+
pendingMeta?: unknown;
|
|
96
|
+
fulfilledMeta?: unknown;
|
|
97
|
+
rejectedMeta?: unknown;
|
|
98
|
+
}>;
|
|
99
|
+
type RetrieveIndividualInfoParams = {
|
|
100
|
+
id: string;
|
|
101
|
+
type: string;
|
|
102
|
+
countryCode?: string;
|
|
103
|
+
};
|
|
104
|
+
export declare const retrieveIndividualInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
105
|
+
data: any;
|
|
106
|
+
countryCode: string | undefined;
|
|
107
|
+
countries: CountryCode[];
|
|
108
|
+
}, RetrieveIndividualInfoParams, {
|
|
109
|
+
state?: unknown;
|
|
110
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
111
|
+
extra?: unknown;
|
|
112
|
+
rejectValue?: unknown;
|
|
113
|
+
serializedErrorType?: unknown;
|
|
114
|
+
pendingMeta?: unknown;
|
|
115
|
+
fulfilledMeta?: unknown;
|
|
116
|
+
rejectedMeta?: unknown;
|
|
117
|
+
}>;
|
|
46
118
|
export declare const retrieveDataList: import("@reduxjs/toolkit").AsyncThunk<{
|
|
47
119
|
sourceIncome: any;
|
|
48
120
|
monthlyIncome: any;
|
|
@@ -72,7 +144,6 @@ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk
|
|
|
72
144
|
export declare const verifyLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
73
145
|
data: any;
|
|
74
146
|
boardResponse: {
|
|
75
|
-
user: any;
|
|
76
147
|
brand: any;
|
|
77
148
|
bank_account: any;
|
|
78
149
|
entity: any;
|
|
@@ -80,6 +151,7 @@ export declare const verifyLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
80
151
|
merchant_id: any;
|
|
81
152
|
name: any;
|
|
82
153
|
contact: any;
|
|
154
|
+
individuals: any;
|
|
83
155
|
countries: CountryCode[];
|
|
84
156
|
countryCode: any;
|
|
85
157
|
notification: any;
|
|
@@ -98,6 +170,19 @@ export declare const verifyLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
98
170
|
fulfilledMeta?: unknown;
|
|
99
171
|
rejectedMeta?: unknown;
|
|
100
172
|
}>;
|
|
173
|
+
export declare const updateIndividualPersonalInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
174
|
+
data: any;
|
|
175
|
+
formData: IndividualPersonalInfoFormValues;
|
|
176
|
+
}, IndividualPersonalInfoFormValues, {
|
|
177
|
+
state?: unknown;
|
|
178
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
179
|
+
extra?: unknown;
|
|
180
|
+
rejectValue?: unknown;
|
|
181
|
+
serializedErrorType?: unknown;
|
|
182
|
+
pendingMeta?: unknown;
|
|
183
|
+
fulfilledMeta?: unknown;
|
|
184
|
+
rejectedMeta?: unknown;
|
|
185
|
+
}>;
|
|
101
186
|
export declare const updateIndividualInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
102
187
|
data: any;
|
|
103
188
|
formData: IndividualExtraFormValues;
|
|
@@ -130,20 +215,24 @@ type VerifyData = {
|
|
|
130
215
|
export interface IndividualData {
|
|
131
216
|
verify: ResponseData & VerifyData;
|
|
132
217
|
otpData: OTPFormValues & ResponseData;
|
|
218
|
+
individualCollectData: IndividualEmailMobileFormValues & ResponseData;
|
|
219
|
+
individualPersonalData: IndividualPersonalInfoFormValues & ResponseData;
|
|
133
220
|
individualData: IndividualExtraFormValues & ResponseData;
|
|
134
221
|
flowName: FlowsTypes;
|
|
135
222
|
}
|
|
136
223
|
export interface IndividualState extends SharedState<IndividualData> {
|
|
137
224
|
customLoading?: boolean;
|
|
225
|
+
cityLoading?: boolean;
|
|
138
226
|
}
|
|
139
227
|
export declare const individualSlice: import("@reduxjs/toolkit").Slice<IndividualState, {
|
|
140
228
|
clearError: (state: IndividualState) => void;
|
|
141
229
|
stopLoader: (state: IndividualState) => void;
|
|
142
230
|
resetOTPScreen: (state: IndividualState) => void;
|
|
231
|
+
resetIndividualData: (state: IndividualState) => void;
|
|
143
232
|
civilIDUploadingStatus: (state: IndividualState, action: ActionState<boolean>) => void;
|
|
144
233
|
signatureFileUploadingStatus: (state: IndividualState, action: ActionState<boolean>) => void;
|
|
145
234
|
}, "individual/store">;
|
|
146
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"individual/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"individual/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"individual/store/resetOTPScreen">, civilIDUploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "individual/store/civilIDUploadingStatus">, signatureFileUploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "individual/store/signatureFileUploadingStatus">;
|
|
235
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"individual/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"individual/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"individual/store/resetOTPScreen">, civilIDUploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "individual/store/civilIDUploadingStatus">, signatureFileUploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "individual/store/signatureFileUploadingStatus">, resetIndividualData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"individual/store/resetIndividualData">;
|
|
147
236
|
declare const _default: import("redux").Reducer<IndividualState, import("redux").AnyAction>;
|
|
148
237
|
export default _default;
|
|
149
238
|
export declare const individualSelector: (state: RootState) => IndividualState;
|