@tap-payments/auth-jsconnect 2.12.10-development → 2.12.10-sandbox
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/README.md +29 -0
- package/build/@types/app.d.ts +3 -0
- package/build/@types/app.js +1 -0
- package/build/@types/config.d.ts +2 -0
- package/build/@types/form.d.ts +1 -0
- package/build/api/document.d.ts +1 -1
- package/build/app/settings.d.ts +2 -1
- package/build/app/settings.js +8 -5
- package/build/assets/locales/ar.json +13 -10
- package/build/assets/locales/en.json +8 -6
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/constants/api.d.ts +1 -2
- package/build/constants/api.js +6 -2
- package/build/constants/app.d.ts +3 -0
- package/build/constants/app.js +15 -6
- package/build/features/app/brand/brandStore.js +5 -2
- package/build/features/app/connectExpress/connectExpressStore.d.ts +11 -1
- package/build/features/app/connectExpress/connectExpressStore.js +199 -19
- package/build/features/app/entity/entityStore.js +56 -35
- package/build/features/app/individual/individualStore.js +1 -0
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +2 -2
- package/build/features/bank/screens/BankDetails/BankDetails.js +1 -1
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
- package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.js +6 -2
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +5 -2
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +2 -2
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +2 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +3 -2
- package/build/features/connectExpress/screens/Email/Email.d.ts +5 -0
- package/build/features/connectExpress/screens/Email/Email.js +57 -0
- package/build/features/connectExpress/screens/Email/EmailField.d.ts +8 -0
- package/build/features/connectExpress/screens/Email/EmailField.js +52 -0
- package/build/features/connectExpress/screens/Email/index.d.ts +3 -0
- package/build/features/connectExpress/screens/Email/index.js +2 -0
- package/build/features/connectExpress/screens/Email/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/Email/validation.js +4 -0
- package/build/features/connectExpress/screens/NIDMissed/NID.js +4 -2
- package/build/features/connectExpress/screens/OTP/OTP.js +15 -9
- package/build/features/connectExpress/screens/OTP/OTPInput.js +10 -4
- package/build/features/entity/screens/EntityName/EntityDocumentUpload.d.ts +12 -0
- package/build/features/entity/screens/EntityName/{LicenseCertificate.js → EntityDocumentUpload.js} +10 -15
- package/build/features/entity/screens/EntityName/EntityName.js +10 -4
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +2 -2
- package/build/features/entity/screens/EntityName/validation.d.ts +9 -0
- package/build/features/entity/screens/EntityName/validation.js +3 -0
- package/build/features/featuresScreens.js +5 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +2 -2
- package/build/features/shared/Address/CountryList.d.ts +2 -2
- package/build/features/shared/Address/InputSelect.d.ts +2 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/terminal/screens/shared/styles.d.ts +1 -1
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useCountry.d.ts +1 -0
- package/build/hooks/useCountry.js +3 -2
- package/build/hooks/useIsEmailAuth.d.ts +1 -0
- package/build/hooks/useIsEmailAuth.js +11 -0
- package/build/utils/array.d.ts +1 -1
- package/build/utils/array.js +3 -2
- package/build/utils/common.js +6 -7
- package/build/utils/string.d.ts +3 -2
- package/build/utils/string.js +17 -1
- package/package.json +2 -2
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +0 -9
|
@@ -61,7 +61,7 @@ import { FlowsTypes, AuthForType, BusinessType, LicenseType, AuthForScreen } fro
|
|
|
61
61
|
import API, { setAuthSessionToGlobalHeaders } from '../../../api';
|
|
62
62
|
import { ADD_NEW_ENTITY, COLLECT_DOB_INFO_NAFATH, CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, NAFATH_PACI_TIMEOUT_DURATION, NAFATH_VERIFICATION_FAILED, OTHER_CR_LICENSE, OTHER_FL_LICENSE, SCOPE_AUTH, SCOPE_MERCHANT } from '../../../constants';
|
|
63
63
|
import { defaultCountry } from '../../../constants';
|
|
64
|
-
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA, isKW, isOtherThanKWOrSA, sendCustomEventToGTM, sendCustomDimension, getMetaData, isNetworkError, isTimeoutError, isInternalServerError, isAuthenticationVerificationFailed } from '../../../utils';
|
|
64
|
+
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA, isKW, getFlowStartScreen, isOtherThanKWOrSA, sendCustomEventToGTM, sendCustomDimension, getMetaData, isNetworkError, isTimeoutError, isInternalServerError, isAuthenticationVerificationFailed } from '../../../utils';
|
|
65
65
|
export var updateBusinessCountryAsync = createAsyncThunk('connectExpress/updateBusinessCountryAsync', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
66
|
var connectExpress, payload, data;
|
|
67
67
|
return __generator(this, function (_a) {
|
|
@@ -81,17 +81,17 @@ export var updateBusinessCountryAsync = createAsyncThunk('connectExpress/updateB
|
|
|
81
81
|
});
|
|
82
82
|
}); });
|
|
83
83
|
export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
-
var settings, countryCode, showBoard, data, _a, country_code, contact, phone, status, board_id, board_info_id, isRegistered, screen_1, _b, boardInfo, boardData, error_1;
|
|
85
|
-
var _c, _d, _e, _f, _g;
|
|
86
|
-
return __generator(this, function (
|
|
87
|
-
switch (
|
|
84
|
+
var settings, countryCode, showBoard, data, _a, country_code, contact, phone, status, board_id, board_info_id, flowStart, isRegistered, iso2, screen_1, defaultScreen, screen_2, flowScreen, _b, boardInfo, boardData, error_1;
|
|
85
|
+
var _c, _d, _e, _f, _g, _h, _j, _k;
|
|
86
|
+
return __generator(this, function (_l) {
|
|
87
|
+
switch (_l.label) {
|
|
88
88
|
case 0:
|
|
89
89
|
settings = thunkApi.getState().settings;
|
|
90
90
|
countryCode = settings.data.businessCountry;
|
|
91
91
|
showBoard = settings.data.appConfig.showBoard;
|
|
92
92
|
return [4, API.leadService.retrieveLeadIdentity(leadId)];
|
|
93
93
|
case 1:
|
|
94
|
-
data =
|
|
94
|
+
data = _l.sent();
|
|
95
95
|
_a = data || {}, country_code = _a.country_code, contact = _a.contact;
|
|
96
96
|
if (country_code)
|
|
97
97
|
thunkApi.dispatch(handleSetCountryByIso2(country_code));
|
|
@@ -103,16 +103,23 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
|
|
|
103
103
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_BUSINESS_COUNTRY_STEP'));
|
|
104
104
|
return [2, { data: data, countryCode: countryCode }];
|
|
105
105
|
}
|
|
106
|
+
flowStart = settings.data.flowStart;
|
|
106
107
|
isRegistered = (status === null || status === void 0 ? void 0 : status.toLowerCase()) === 'registered';
|
|
107
108
|
if (!isRegistered && !(data === null || data === void 0 ? void 0 : data.identification) && phone) {
|
|
108
|
-
|
|
109
|
+
iso2 = country_code || ((_d = settings.data.businessCountry) === null || _d === void 0 ? void 0 : _d.iso2);
|
|
110
|
+
screen_1 = (_e = getFlowStartScreen(flowStart, iso2)) !== null && _e !== void 0 ? _e : 'CONNECT_EXPRESS_MOBILE_STEP';
|
|
111
|
+
thunkApi.dispatch(handleCurrentActiveScreen(screen_1));
|
|
109
112
|
return [2, { data: data, countryCode: countryCode }];
|
|
110
113
|
}
|
|
111
114
|
if (!isRegistered && country_code) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
defaultScreen = isSA(data.country_code) ? 'CONNECT_EXPRESS_NID_STEP' : 'CONNECT_EXPRESS_MOBILE_STEP';
|
|
116
|
+
screen_2 = (_f = getFlowStartScreen(flowStart, data.country_code)) !== null && _f !== void 0 ? _f : defaultScreen;
|
|
117
|
+
thunkApi.dispatch(handleCurrentActiveScreen(screen_2));
|
|
118
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
119
|
+
}
|
|
120
|
+
flowScreen = getFlowStartScreen(flowStart, settings.data.businessCountry.iso2);
|
|
121
|
+
if (!isRegistered && flowScreen) {
|
|
122
|
+
thunkApi.dispatch(handleCurrentActiveScreen(flowScreen));
|
|
116
123
|
return [2, { data: data, countryCode: countryCode }];
|
|
117
124
|
}
|
|
118
125
|
if (!isRegistered && !isSA(settings.data.businessCountry.iso2)) {
|
|
@@ -123,11 +130,11 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
|
|
|
123
130
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_NID_STEP'));
|
|
124
131
|
return [2, { data: data, countryCode: countryCode }];
|
|
125
132
|
}
|
|
126
|
-
if ((
|
|
127
|
-
thunkApi.dispatch(storeAuthId((
|
|
133
|
+
if ((_g = data === null || data === void 0 ? void 0 : data.identification) === null || _g === void 0 ? void 0 : _g.authentication_id) {
|
|
134
|
+
thunkApi.dispatch(storeAuthId((_h = data === null || data === void 0 ? void 0 : data.identification) === null || _h === void 0 ? void 0 : _h.authentication_id));
|
|
128
135
|
}
|
|
129
136
|
if (isRegistered && !showBoard) {
|
|
130
|
-
(
|
|
137
|
+
(_k = (_j = settings.data.appConfig).onFlowCompleted) === null || _k === void 0 ? void 0 : _k.call(_j, data);
|
|
131
138
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
|
|
132
139
|
return [2, { data: data, countryCode: countryCode }];
|
|
133
140
|
}
|
|
@@ -136,19 +143,19 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
|
|
|
136
143
|
return [2, { data: data, countryCode: countryCode }];
|
|
137
144
|
}
|
|
138
145
|
if (!(isRegistered && board_id && board_info_id)) return [3, 5];
|
|
139
|
-
|
|
146
|
+
_l.label = 2;
|
|
140
147
|
case 2:
|
|
141
|
-
|
|
148
|
+
_l.trys.push([2, 4, , 5]);
|
|
142
149
|
return [4, Promise.all([
|
|
143
150
|
API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
|
|
144
151
|
API.boardService.retrieveBoardDetails(board_id)
|
|
145
152
|
])];
|
|
146
153
|
case 3:
|
|
147
|
-
_b =
|
|
154
|
+
_b = _l.sent(), boardInfo = _b[0], boardData = _b[1];
|
|
148
155
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP'));
|
|
149
156
|
return [2, { data: data, countryCode: countryCode, boardInfo: boardInfo, boardData: boardData }];
|
|
150
157
|
case 4:
|
|
151
|
-
error_1 =
|
|
158
|
+
error_1 = _l.sent();
|
|
152
159
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
|
|
153
160
|
return [2, { data: data, countryCode: countryCode }];
|
|
154
161
|
case 5: return [2, { data: data, countryCode: countryCode }];
|
|
@@ -309,6 +316,61 @@ export var resendMobileAuthOTP = createAsyncThunk('connectExpress/resendMobileAu
|
|
|
309
316
|
}
|
|
310
317
|
});
|
|
311
318
|
}); });
|
|
319
|
+
export var createEmailAuthAsync = createAsyncThunk('connectExpress/createEmailAuthAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
320
|
+
var _a, settings, connectExpress, requestBody, data;
|
|
321
|
+
var _b, _c;
|
|
322
|
+
return __generator(this, function (_d) {
|
|
323
|
+
switch (_d.label) {
|
|
324
|
+
case 0:
|
|
325
|
+
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
326
|
+
requestBody = {
|
|
327
|
+
country: settings.data.businessCountry.iso2,
|
|
328
|
+
scope: settings.data.appConfig.scope,
|
|
329
|
+
lang: settings.data.language,
|
|
330
|
+
lead_id: connectExpress.data.leadId,
|
|
331
|
+
user_credentail: {
|
|
332
|
+
email: params.email || ''
|
|
333
|
+
},
|
|
334
|
+
sign_in: false,
|
|
335
|
+
is_lead: true,
|
|
336
|
+
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_EMAIL,
|
|
337
|
+
encryption_contract: ['user_credentail.email']
|
|
338
|
+
};
|
|
339
|
+
return [4, API.authService.createExpressAuth(requestBody)];
|
|
340
|
+
case 1:
|
|
341
|
+
data = _d.sent();
|
|
342
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
343
|
+
(_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody.user_credentail);
|
|
344
|
+
return [2, { response: data, formData: params }];
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}); });
|
|
348
|
+
export var resendEmailAuthOTP = createAsyncThunk('connectExpress/resendEmailAuthOTPExpress', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
349
|
+
var _a, settings, connectExpress, requestBody, data;
|
|
350
|
+
return __generator(this, function (_b) {
|
|
351
|
+
switch (_b.label) {
|
|
352
|
+
case 0:
|
|
353
|
+
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
354
|
+
requestBody = {
|
|
355
|
+
country: settings.data.businessCountry.iso2,
|
|
356
|
+
scope: settings.data.appConfig.scope,
|
|
357
|
+
lang: settings.data.language,
|
|
358
|
+
lead_id: connectExpress.data.leadId,
|
|
359
|
+
user_credentail: {
|
|
360
|
+
email: params.email || ''
|
|
361
|
+
},
|
|
362
|
+
sign_in: false,
|
|
363
|
+
is_lead: true,
|
|
364
|
+
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_EMAIL,
|
|
365
|
+
encryption_contract: ['user_credentail.email']
|
|
366
|
+
};
|
|
367
|
+
return [4, API.authService.createExpressAuth(requestBody)];
|
|
368
|
+
case 1:
|
|
369
|
+
data = _b.sent();
|
|
370
|
+
return [2, { response: data, formData: params }];
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
}); });
|
|
312
374
|
export var createAuthSessionExpiredAsync = createAsyncThunk('connectExpress/createAuthSessionExpiredAsync', function (redirect, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
313
375
|
var settings, requestBody, data;
|
|
314
376
|
return __generator(this, function (_a) {
|
|
@@ -614,6 +676,78 @@ export var verifyMobileOtpAsync = createAsyncThunk('connectExpress/verifyMobileO
|
|
|
614
676
|
}
|
|
615
677
|
});
|
|
616
678
|
}); });
|
|
679
|
+
export var verifyEmailOtpAsync = createAsyncThunk('connectExpress/verifyEmailOtpAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
680
|
+
var _a, settings, connectExpress, _b, responseData, leadId, _c, auth_token, device_token, service_name, auth_type, _d, scope, redirectUrl, authData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, payload, data, authId, urlQueryStart, _e, brandList, entityList;
|
|
681
|
+
var _f, _g;
|
|
682
|
+
return __generator(this, function (_h) {
|
|
683
|
+
switch (_h.label) {
|
|
684
|
+
case 0:
|
|
685
|
+
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
686
|
+
_b = connectExpress.data || {}, responseData = _b.responseData, leadId = _b.leadId;
|
|
687
|
+
if (!(responseData === null || responseData === void 0 ? void 0 : responseData.authData))
|
|
688
|
+
throw new Error('Auth data is missing');
|
|
689
|
+
_c = responseData.authData, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name, auth_type = _c.auth_type;
|
|
690
|
+
_d = settings.data.appConfig, scope = _d.scope, redirectUrl = _d.redirectUrl, authData = _d.data;
|
|
691
|
+
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
692
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
693
|
+
isDataHasIndividualOnly = (authData === null || authData === void 0 ? void 0 : authData.length) === 1 && authData.includes('individual');
|
|
694
|
+
authDataHasValue = authData === null || authData === void 0 ? void 0 : authData.length;
|
|
695
|
+
payload = {
|
|
696
|
+
auth_token: auth_token,
|
|
697
|
+
lead_id: leadId,
|
|
698
|
+
data: params.otp,
|
|
699
|
+
auth_type: auth_type,
|
|
700
|
+
device_token: device_token,
|
|
701
|
+
service_name: service_name,
|
|
702
|
+
sign_in: false,
|
|
703
|
+
step_name: CONNECT_EXPRESS_STEP_NAMES.VERIFY_AUTH_EMAIL,
|
|
704
|
+
encryption_contract: ['data']
|
|
705
|
+
};
|
|
706
|
+
return [4, API.authService.verifyExpressAuth(payload).catch(function (err) {
|
|
707
|
+
if (isAuthenticationVerificationFailed(err === null || err === void 0 ? void 0 : err.message))
|
|
708
|
+
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_OTP_VERIFY_SECURITY_ERROR_STEP'));
|
|
709
|
+
throw new Error(err === null || err === void 0 ? void 0 : err.message);
|
|
710
|
+
})];
|
|
711
|
+
case 1:
|
|
712
|
+
data = _h.sent();
|
|
713
|
+
setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
|
|
714
|
+
sendCustomEventToGTM({
|
|
715
|
+
event: 'Send Event',
|
|
716
|
+
event_category: 'User Registration Flow',
|
|
717
|
+
event_action: 'First OTP Success'
|
|
718
|
+
});
|
|
719
|
+
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
|
|
720
|
+
authId = data.auth.id;
|
|
721
|
+
thunkApi.dispatch(storeAuthId(authId));
|
|
722
|
+
if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
|
|
723
|
+
if (settings.data.appConfig.mode === 'popup') {
|
|
724
|
+
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
725
|
+
thunkApi.dispatch(handleOpen(false));
|
|
726
|
+
return [2, data];
|
|
727
|
+
}
|
|
728
|
+
if (redirectUrl) {
|
|
729
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
730
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
731
|
+
return [2, data];
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 3];
|
|
735
|
+
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
736
|
+
case 2:
|
|
737
|
+
_e = _h.sent(), brandList = _e.brandList, entityList = _e.entityList;
|
|
738
|
+
if (brandList.length && entityList.length) {
|
|
739
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
740
|
+
return [2, data];
|
|
741
|
+
}
|
|
742
|
+
_h.label = 3;
|
|
743
|
+
case 3: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead_id)).unwrap()];
|
|
744
|
+
case 4:
|
|
745
|
+
_h.sent();
|
|
746
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_NID_MISSED_STEP')); });
|
|
747
|
+
return [2, data];
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
}); });
|
|
617
751
|
export var verifyPACIAsync = createAsyncThunk('connectExpress/verifyPACIAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
618
752
|
var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, error_3, isSuccess, authId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
|
|
619
753
|
var _d, _e, _f;
|
|
@@ -1543,6 +1677,9 @@ var initialState = {
|
|
|
1543
1677
|
mobile: '',
|
|
1544
1678
|
termAndConditionChecked: false
|
|
1545
1679
|
},
|
|
1680
|
+
emailData: {
|
|
1681
|
+
email: ''
|
|
1682
|
+
},
|
|
1546
1683
|
nidData: {
|
|
1547
1684
|
nid: '',
|
|
1548
1685
|
termAndConditionChecked: false
|
|
@@ -1647,11 +1784,14 @@ export var connectSlice = createSlice({
|
|
|
1647
1784
|
var _b = data || {}, identification = _b.identification, contact = _b.contact, terms_conditions_accepted = _b.terms_conditions_accepted;
|
|
1648
1785
|
if (identification === null || identification === void 0 ? void 0 : identification.id)
|
|
1649
1786
|
state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
|
|
1650
|
-
var
|
|
1787
|
+
var _c = contact || {}, phone = _c.phone, email = _c.email;
|
|
1651
1788
|
if (phone) {
|
|
1652
1789
|
state.data.mobileData.mobile = phone === null || phone === void 0 ? void 0 : phone.number;
|
|
1653
1790
|
state.data.mobileData.countryCode = countryCode;
|
|
1654
1791
|
}
|
|
1792
|
+
if (email) {
|
|
1793
|
+
state.data.emailData.email = email;
|
|
1794
|
+
}
|
|
1655
1795
|
if (terms_conditions_accepted !== undefined && state.data.isLeadIdPassed) {
|
|
1656
1796
|
state.data.mobileData.termAndConditionChecked = terms_conditions_accepted;
|
|
1657
1797
|
state.data.nidData.termAndConditionChecked = terms_conditions_accepted;
|
|
@@ -1718,6 +1858,31 @@ export var connectSlice = createSlice({
|
|
|
1718
1858
|
})
|
|
1719
1859
|
.addCase(resendMobileAuthOTP.rejected, function (state, action) {
|
|
1720
1860
|
state.error = action.error.message;
|
|
1861
|
+
})
|
|
1862
|
+
.addCase(createEmailAuthAsync.pending, function (state) {
|
|
1863
|
+
state.loading = true;
|
|
1864
|
+
state.error = null;
|
|
1865
|
+
})
|
|
1866
|
+
.addCase(createEmailAuthAsync.fulfilled, function (state, action) {
|
|
1867
|
+
state.loading = false;
|
|
1868
|
+
state.data.emailData = action.payload.formData;
|
|
1869
|
+
state.data.otpData.authFor = AuthForType.EMAIL;
|
|
1870
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: action.payload.response });
|
|
1871
|
+
})
|
|
1872
|
+
.addCase(createEmailAuthAsync.rejected, function (state, action) {
|
|
1873
|
+
state.loading = false;
|
|
1874
|
+
state.error = action.error.message;
|
|
1875
|
+
})
|
|
1876
|
+
.addCase(resendEmailAuthOTP.pending, function (state) {
|
|
1877
|
+
state.error = null;
|
|
1878
|
+
})
|
|
1879
|
+
.addCase(resendEmailAuthOTP.fulfilled, function (state, action) {
|
|
1880
|
+
state.data.emailData = action.payload.formData;
|
|
1881
|
+
state.data.otpData.authFor = AuthForType.EMAIL;
|
|
1882
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: action.payload.response });
|
|
1883
|
+
})
|
|
1884
|
+
.addCase(resendEmailAuthOTP.rejected, function (state, action) {
|
|
1885
|
+
state.error = action.error.message;
|
|
1721
1886
|
})
|
|
1722
1887
|
.addCase(createAuthSessionExpiredAsync.pending, function (state) {
|
|
1723
1888
|
state.loading = true;
|
|
@@ -1822,6 +1987,21 @@ export var connectSlice = createSlice({
|
|
|
1822
1987
|
state.loading = false;
|
|
1823
1988
|
if (!isAuthenticationVerificationFailed(message))
|
|
1824
1989
|
state.error = message;
|
|
1990
|
+
})
|
|
1991
|
+
.addCase(verifyEmailOtpAsync.pending, function (state) {
|
|
1992
|
+
state.loading = true;
|
|
1993
|
+
state.error = null;
|
|
1994
|
+
})
|
|
1995
|
+
.addCase(verifyEmailOtpAsync.fulfilled, function (state, action) {
|
|
1996
|
+
var _a;
|
|
1997
|
+
state.loading = false;
|
|
1998
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload) });
|
|
1999
|
+
})
|
|
2000
|
+
.addCase(verifyEmailOtpAsync.rejected, function (state, _a) {
|
|
2001
|
+
var message = _a.error.message;
|
|
2002
|
+
state.loading = false;
|
|
2003
|
+
if (!isAuthenticationVerificationFailed(message))
|
|
2004
|
+
state.error = message;
|
|
1825
2005
|
})
|
|
1826
2006
|
.addCase(verifyNafathAsync.pending, function (state) {
|
|
1827
2007
|
state.loading = true;
|
|
@@ -304,18 +304,43 @@ export var retrieveBoardDetails = createAsyncThunk('entityRetrieveEntityInfo', f
|
|
|
304
304
|
});
|
|
305
305
|
});
|
|
306
306
|
});
|
|
307
|
+
var uploadEntityDocumentByPurpose = function (documents, entityId, purpose, imageIds) { return __awaiter(void 0, void 0, void 0, function () {
|
|
308
|
+
var existingDocument, documentBody_1, documentBody;
|
|
309
|
+
return __generator(this, function (_a) {
|
|
310
|
+
if ((imageIds || []).length === 0)
|
|
311
|
+
return [2, undefined];
|
|
312
|
+
existingDocument = getRecentDocumentBasedOnPurpose(documents, purpose);
|
|
313
|
+
if (existingDocument === null || existingDocument === void 0 ? void 0 : existingDocument.id) {
|
|
314
|
+
documentBody_1 = {
|
|
315
|
+
id: existingDocument.id,
|
|
316
|
+
images: imageIds
|
|
317
|
+
};
|
|
318
|
+
return [2, API.documentService.addFilesToExistingDocument(documentBody_1)];
|
|
319
|
+
}
|
|
320
|
+
documentBody = {
|
|
321
|
+
entity_id: entityId,
|
|
322
|
+
documents: [
|
|
323
|
+
{
|
|
324
|
+
type: purpose,
|
|
325
|
+
images: imageIds
|
|
326
|
+
}
|
|
327
|
+
]
|
|
328
|
+
};
|
|
329
|
+
return [2, API.documentService.updateDocumentInfo(documentBody)];
|
|
330
|
+
});
|
|
331
|
+
}); };
|
|
307
332
|
export var updateEntityName = createAsyncThunk('entityUpdateEntityName', function (_a, thunkApi) {
|
|
308
333
|
var formData = _a.formData, originalFormData = _a.originalFormData, isDirty = _a.isDirty;
|
|
309
334
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
310
|
-
var _b, settings, entity, entityRes, _c, id, data_status, data_verification, documents, issuingDate, expiryDate, licenseType, licenseNumber, articleId, unifiedNumber, legalName, certificateId, entityType, issueDate, expDate, isFL, isLegalNameENNonEditable, isLegalNameARNonEditable, isLicenseTypeNonEditable, isEntityTypeNonEditable, isLicenseNumberNonEditable, isUnifiedNumberNonEditable, isIssuingDateNonEditable, isExpiryDateNonEditable, isDocumentsNonEditable, isAOAFileNonEditable, isEntityTypeVerified, isLicenseNonEditable, isLicenseAvailable, payload, entityData, documentData, activityList, entity_1, documentResponse,
|
|
311
|
-
var
|
|
312
|
-
return __generator(this, function (
|
|
313
|
-
switch (
|
|
335
|
+
var _b, settings, entity, entityRes, _c, id, data_status, data_verification, documents, issuingDate, expiryDate, licenseType, licenseNumber, articleId, unifiedNumber, legalName, certificateId, commercialRegistrationExtractId, entityType, issueDate, expDate, isFL, isLegalNameENNonEditable, isLegalNameARNonEditable, isLicenseTypeNonEditable, isEntityTypeNonEditable, isLicenseNumberNonEditable, isUnifiedNumberNonEditable, isIssuingDateNonEditable, isExpiryDateNonEditable, isDocumentsNonEditable, isAOAFileNonEditable, isEntityTypeVerified, isLicenseNonEditable, isLicenseAvailable, payload, entityData, documentData, activityList, entity_1, documentResponse, documentUploads, _i, documentUploads_1, _d, purpose, imageIds, response, entity_2, list;
|
|
336
|
+
var _e, _f;
|
|
337
|
+
return __generator(this, function (_g) {
|
|
338
|
+
switch (_g.label) {
|
|
314
339
|
case 0:
|
|
315
340
|
_b = thunkApi.getState(), settings = _b.settings, entity = _b.entity;
|
|
316
341
|
entityRes = (entity.data.verify.responseBody || {}).entity;
|
|
317
342
|
_c = entityRes || {}, id = _c.id, data_status = _c.data_status, data_verification = _c.data_verification, documents = _c.documents;
|
|
318
|
-
issuingDate = formData.issuingDate, expiryDate = formData.expiryDate, licenseType = formData.licenseType, licenseNumber = formData.licenseNumber, articleId = formData.articleId, unifiedNumber = formData.unifiedNumber, legalName = formData.legalName, certificateId = formData.certificateId, entityType = formData.entityType;
|
|
343
|
+
issuingDate = formData.issuingDate, expiryDate = formData.expiryDate, licenseType = formData.licenseType, licenseNumber = formData.licenseNumber, articleId = formData.articleId, unifiedNumber = formData.unifiedNumber, legalName = formData.legalName, certificateId = formData.certificateId, commercialRegistrationExtractId = formData.commercialRegistrationExtractId, entityType = formData.entityType;
|
|
319
344
|
issueDate = issuingDate && new Date(issuingDate).getTime();
|
|
320
345
|
expDate = expiryDate && new Date(expiryDate).getTime();
|
|
321
346
|
isFL = licenseType === BusinessType.FL;
|
|
@@ -358,48 +383,44 @@ export var updateEntityName = createAsyncThunk('entityUpdateEntityName', functio
|
|
|
358
383
|
if (!isDirty) return [3, 2];
|
|
359
384
|
return [4, API.entityService.updateEntity(payload)];
|
|
360
385
|
case 1:
|
|
361
|
-
entity_1 = (
|
|
386
|
+
entity_1 = (_g.sent()).entity;
|
|
362
387
|
entityData = entity_1;
|
|
363
|
-
|
|
388
|
+
_g.label = 2;
|
|
364
389
|
case 2:
|
|
365
390
|
documentResponse = undefined;
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
return [4, API.documentService.addFilesToExistingDocument(documentBody)];
|
|
391
|
+
if (!!isDocumentsNonEditable) return [3, 6];
|
|
392
|
+
documentUploads = [
|
|
393
|
+
{ purpose: DocumentPurpose.CR, imageIds: certificateId },
|
|
394
|
+
{ purpose: DocumentPurpose.COMMERCIAL_REGISTRATION_EXTRACT, imageIds: commercialRegistrationExtractId }
|
|
395
|
+
];
|
|
396
|
+
_i = 0, documentUploads_1 = documentUploads;
|
|
397
|
+
_g.label = 3;
|
|
374
398
|
case 3:
|
|
375
|
-
|
|
376
|
-
|
|
399
|
+
if (!(_i < documentUploads_1.length)) return [3, 6];
|
|
400
|
+
_d = documentUploads_1[_i], purpose = _d.purpose, imageIds = _d.imageIds;
|
|
401
|
+
return [4, uploadEntityDocumentByPurpose(documents, id || '', purpose, imageIds)];
|
|
377
402
|
case 4:
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
type: DocumentPurpose.CR,
|
|
383
|
-
images: certificateId
|
|
384
|
-
}
|
|
385
|
-
]
|
|
386
|
-
};
|
|
387
|
-
return [4, API.documentService.updateDocumentInfo(documentBody)];
|
|
403
|
+
response = _g.sent();
|
|
404
|
+
if (response)
|
|
405
|
+
documentResponse = response;
|
|
406
|
+
_g.label = 5;
|
|
388
407
|
case 5:
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
case 6:
|
|
408
|
+
_i++;
|
|
409
|
+
return [3, 3];
|
|
410
|
+
case 6:
|
|
411
|
+
if (!documentResponse) return [3, 8];
|
|
412
|
+
return [4, API.entityService.retrieveEntity(id)];
|
|
392
413
|
case 7:
|
|
393
|
-
entity_2 = (
|
|
414
|
+
entity_2 = (_g.sent()).entity;
|
|
394
415
|
entityData = entity_2;
|
|
395
416
|
documentData = documentResponse;
|
|
396
|
-
|
|
417
|
+
_g.label = 8;
|
|
397
418
|
case 8: return [4, API.dataService.getActivitiesIsIc()];
|
|
398
419
|
case 9:
|
|
399
|
-
list = (
|
|
420
|
+
list = (_g.sent()).list;
|
|
400
421
|
activityList = list;
|
|
401
422
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
402
|
-
(
|
|
423
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, id);
|
|
403
424
|
return [2, { data: { entity: entityData, documentData: documentData, activityList: activityList }, formData: originalFormData }];
|
|
404
425
|
}
|
|
405
426
|
});
|
|
@@ -754,7 +775,7 @@ export var entitySlice = createSlice({
|
|
|
754
775
|
state.error = null;
|
|
755
776
|
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
756
777
|
var _b = data || {}, entity = _b.entity, activityList = _b.activityList, rest = __rest(_b, ["entity", "activityList"]);
|
|
757
|
-
state.data.entityNameData = __assign(__assign({}, formData), { certificateId: undefined });
|
|
778
|
+
state.data.entityNameData = __assign(__assign({}, formData), { certificateId: undefined, commercialRegistrationExtractId: undefined });
|
|
758
779
|
state.data.entityNameData.responseBody = __assign(__assign({}, state.data.entityNameData.responseBody), { rest: rest });
|
|
759
780
|
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { entity: entity, activityList: activityList });
|
|
760
781
|
if (entity === null || entity === void 0 ? void 0 : entity.activities)
|
|
@@ -1274,6 +1274,7 @@ export var individualSlice = createSlice({
|
|
|
1274
1274
|
state.data.individualData.isAuthorized = is_authorized;
|
|
1275
1275
|
})
|
|
1276
1276
|
.addCase(retrieveIndividualInfo.rejected, function (state, action) {
|
|
1277
|
+
state.addOrRequestDetailLoading = false;
|
|
1277
1278
|
state.error = action.error.message;
|
|
1278
1279
|
})
|
|
1279
1280
|
.addCase(getIndividualList.pending, function (state) {
|
|
@@ -10,7 +10,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
|
|
|
10
10
|
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
11
11
|
titleAccess?: string | undefined;
|
|
12
12
|
viewBox?: string | undefined;
|
|
13
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "fr" | "in" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "
|
|
13
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "id" | "name" | "type" | "version" | "fr" | "in" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "mode" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "operator" | "origin" | "method" | "spacing" | "elevation" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
14
14
|
ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
|
|
15
15
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
16
16
|
export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
|
|
@@ -24,7 +24,7 @@ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledCom
|
|
|
24
24
|
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
25
25
|
titleAccess?: string | undefined;
|
|
26
26
|
viewBox?: string | undefined;
|
|
27
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "fr" | "in" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "
|
|
27
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "id" | "name" | "type" | "version" | "fr" | "in" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "mode" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "operator" | "origin" | "method" | "spacing" | "elevation" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
28
28
|
ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
|
|
29
29
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
30
30
|
declare type TypeProps = {
|
|
@@ -91,7 +91,7 @@ var BankDetails = function () {
|
|
|
91
91
|
var defaultBankFiles = React.useMemo(function () {
|
|
92
92
|
if (!document)
|
|
93
93
|
return [];
|
|
94
|
-
return getFileDetailsFromDocument([document],
|
|
94
|
+
return getFileDetailsFromDocument([document], [DocumentPurpose.BANK_STATEMENT, DocumentPurpose.BANK_CERTIFICATE]);
|
|
95
95
|
}, [document]);
|
|
96
96
|
var originalReadOnly = useFormReadOnly(methods, { bankStatementId: defaultBankFiles });
|
|
97
97
|
var noneEditable = useDataNoneEditable(data_status, [
|