@tap-payments/auth-jsconnect 2.3.68-test → 2.3.69-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.
@@ -525,9 +525,9 @@ export var updatePhoneInfo = createAsyncThunk('individual/updatePhoneInfo', func
525
525
  }); });
526
526
  export var updateIndividualPersonalInfo = createAsyncThunk('individual/updateIndividualPersonalInfo', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
527
527
  var _a, settings, individual, _b, notification, user, entity, _c, id, type, name, email, mobile, countryCode, gender, nid, issuedCountry, expiryDate, dob, placeOfBirthCountry, placeOfBirthCity, nationality, code, data_status, userName, identification_id_type, isNameNonEditable, isEmailNonEditable, isMobileNumberNonEditable, isMobileCountryNonEditable, isNidNonEditable, isIssuedCountryNonEditable, isExpiryNonEditable, isIdTypeNonEditable, isNationalityNonEditable, isDOBNonEditable, isBirthCityNonEditable, isBirthCountryNonEditable, hasContact, hasPhone, hasIdentification, hasBirth, contact, requestBody, data;
528
- var _d, _e, _f, _g, _h, _j;
529
- return __generator(this, function (_k) {
530
- switch (_k.label) {
528
+ var _d, _e, _f, _g, _h;
529
+ return __generator(this, function (_j) {
530
+ switch (_j.label) {
531
531
  case 0:
532
532
  _a = thunkApi.getState(), settings = _a.settings, individual = _a.individual;
533
533
  _b = individual.data.verify.responseBody || {}, notification = _b.notification, user = _b.user, entity = _b.entity;
@@ -577,7 +577,7 @@ export var updateIndividualPersonalInfo = createAsyncThunk('individual/updateInd
577
577
  date_of_birth: dob
578
578
  })), (!((isBirthCityNonEditable && isBirthCountryNonEditable) || !hasBirth) && {
579
579
  birth: {
580
- city: isBirthCityNonEditable ? undefined : (_g = placeOfBirthCity === null || placeOfBirthCity === void 0 ? void 0 : placeOfBirthCity.name) === null || _g === void 0 ? void 0 : _g.en,
580
+ city: isBirthCityNonEditable ? undefined : placeOfBirthCity === null || placeOfBirthCity === void 0 ? void 0 : placeOfBirthCity.id,
581
581
  country: isBirthCountryNonEditable ? undefined : placeOfBirthCountry === null || placeOfBirthCountry === void 0 ? void 0 : placeOfBirthCountry.iso2
582
582
  }
583
583
  })), (!isNationalityNonEditable && {
@@ -591,22 +591,21 @@ export var updateIndividualPersonalInfo = createAsyncThunk('individual/updateInd
591
591
  'identification.issued_country_code',
592
592
  'identification.expiry',
593
593
  'identification.type',
594
- 'birth.city',
595
594
  'birth.country',
596
595
  'date_of_birth',
597
596
  'nationality'
598
597
  ], step_name: INDIVIDUAl_STEP_NAMES.INDIVIDUAl_PERSONAL_INFO });
599
598
  return [4, API.individualService.updateIndividual(requestBody)];
600
599
  case 1:
601
- data = _k.sent();
600
+ data = _j.sent();
602
601
  if (!(type === IndividualType.USER || type === IndividualType.BUYER)) return [3, 3];
603
602
  return [4, thunkApi.dispatch(retrieveDataList(code))];
604
603
  case 2:
605
- _k.sent();
606
- _k.label = 3;
604
+ _j.sent();
605
+ _j.label = 3;
607
606
  case 3:
608
607
  sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
609
- (_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, requestBody);
608
+ (_h = (_g = settings.data.appConfig).onStepCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, settings.data.activeScreen.name, requestBody);
610
609
  return [2, { data: data, formData: params }];
611
610
  }
612
611
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.3.68-test",
3
+ "version": "2.3.69-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",