@tap-payments/auth-jsconnect 2.5.0-test → 2.5.3-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/app/settings.js
CHANGED
|
@@ -86,7 +86,9 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
86
86
|
if (typeof maturity_1 === 'boolean')
|
|
87
87
|
matureData = maturity_1 ? 'full' : 'express';
|
|
88
88
|
thunkApi.dispatch(handleSetAppConfig(configInfo));
|
|
89
|
-
thunkApi.dispatch(handleLanguage(
|
|
89
|
+
thunkApi.dispatch(handleLanguage(language_1 || lang));
|
|
90
|
+
if (public_key)
|
|
91
|
+
thunkApi.dispatch(handlePublicKey(public_key));
|
|
90
92
|
if (typeof board_maturity === 'boolean')
|
|
91
93
|
thunkApi.dispatch(handelBoardMaturity(board_maturity));
|
|
92
94
|
onVerifyConfigTokenSuccess === null || onVerifyConfigTokenSuccess === void 0 ? void 0 : onVerifyConfigTokenSuccess(config);
|
|
@@ -553,7 +553,7 @@ export var updatePhoneInfo = createAsyncThunk('individual/updatePhoneInfo', func
|
|
|
553
553
|
export var updateIndividualPersonalInfo = createAsyncThunk('individual/updateIndividualPersonalInfo', function (_a, thunkApi) {
|
|
554
554
|
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
555
555
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
556
|
-
var _b, settings, individual, _c, notification, user, entity, id, _d, objects, ids, name, email, mobile,
|
|
556
|
+
var _b, settings, individual, _c, notification, user, entity, id, _d, objects, ids, countryCode, name, email, mobile, gender, nid, issuedCountry, expiryDate, dob, placeOfBirthCountry, placeOfBirthCity, nationality, code, data_status, userName, identification_id_type, isGenderNonEditable, isNameENNonEditable, isNameARNonEditable, isEmailNonEditable, isMobileNumberNonEditable, isMobileCountryNonEditable, isNidNonEditable, isIssuedCountryNonEditable, isExpiryNonEditable, isIdTypeNonEditable, isNationalityNonEditable, isDOBNonEditable, isBirthCityNonEditable, isBirthCountryNonEditable, hasContact, hasPhone, hasIdentification, hasBirth, nameIsEditable, contact, requestBody, data, _e, isUser, isBuyer, isUserORBuyerType;
|
|
557
557
|
var _f, _g, _h, _j, _k;
|
|
558
558
|
return __generator(this, function (_l) {
|
|
559
559
|
switch (_l.label) {
|
|
@@ -562,7 +562,8 @@ export var updateIndividualPersonalInfo = createAsyncThunk('individual/updateInd
|
|
|
562
562
|
_c = individual.data.verify.responseBody || {}, notification = _c.notification, user = _c.user, entity = _c.entity;
|
|
563
563
|
id = (((user === null || user === void 0 ? void 0 : user.is_authorized) ? user : notification === null || notification === void 0 ? void 0 : notification.recipient) || {}).id;
|
|
564
564
|
_d = user || {}, objects = _d.objects, ids = _d.ids;
|
|
565
|
-
|
|
565
|
+
countryCode = (originalFormData || {}).countryCode;
|
|
566
|
+
name = formData.name, email = formData.email, mobile = formData.mobile, gender = formData.gender, nid = formData.nid, issuedCountry = formData.issuedCountry, expiryDate = formData.expiryDate, dob = formData.dob, placeOfBirthCountry = formData.placeOfBirthCountry, placeOfBirthCity = formData.placeOfBirthCity, nationality = formData.nationality;
|
|
566
567
|
code = entity === null || entity === void 0 ? void 0 : entity.country;
|
|
567
568
|
data_status = (user || {}).data_status;
|
|
568
569
|
userName = getUserNameObject(name);
|
|
@@ -581,13 +582,14 @@ export var updateIndividualPersonalInfo = createAsyncThunk('individual/updateInd
|
|
|
581
582
|
isDOBNonEditable = hasNoneEditableValue(data_status, 'birth.date');
|
|
582
583
|
isBirthCityNonEditable = hasNoneEditableValue(data_status, 'birth.city');
|
|
583
584
|
isBirthCountryNonEditable = hasNoneEditableValue(data_status, 'birth.country');
|
|
584
|
-
hasContact = email || mobile
|
|
585
|
+
hasContact = email || mobile;
|
|
585
586
|
hasPhone = mobile && (countryCode === null || countryCode === void 0 ? void 0 : countryCode.idd_prefix);
|
|
586
587
|
hasIdentification = nid && (issuedCountry || identification_id_type || expiryDate);
|
|
587
588
|
hasBirth = placeOfBirthCity || placeOfBirthCountry;
|
|
588
589
|
nameIsEditable = userName.first && !(isNameENNonEditable && isNameARNonEditable);
|
|
589
590
|
contact = hasContact && !(isEmailNonEditable && isMobileCountryNonEditable && isMobileNumberNonEditable)
|
|
590
|
-
? __assign({ email: isEmailNonEditable ? undefined : email }, (!(
|
|
591
|
+
? __assign({ email: isEmailNonEditable ? undefined : email }, (!(isMobileCountryNonEditable && isMobileNumberNonEditable) &&
|
|
592
|
+
hasPhone && {
|
|
591
593
|
phone: {
|
|
592
594
|
country_code: isMobileCountryNonEditable ? undefined : (_h = countryCode === null || countryCode === void 0 ? void 0 : countryCode.idd_prefix) === null || _h === void 0 ? void 0 : _h.toString(),
|
|
593
595
|
number: isMobileNumberNonEditable || !mobile ? undefined : mobile
|