@tap-payments/auth-jsconnect 2.0.100-test → 2.0.102-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.
Files changed (27) hide show
  1. package/build/api/index.d.ts +4 -2
  2. package/build/api/individual.d.ts +21 -0
  3. package/build/api/individual.js +28 -1
  4. package/build/assets/locales/ar.json +3 -1
  5. package/build/assets/locales/en.json +3 -1
  6. package/build/features/app/bank/bankStore.js +2 -2
  7. package/build/features/app/business/businessStore.js +14 -12
  8. package/build/features/app/connect/connectStore.js +18 -3
  9. package/build/features/app/individual/individualStore.d.ts +17 -0
  10. package/build/features/app/individual/individualStore.js +144 -69
  11. package/build/features/app/password/passwordStore.js +1 -1
  12. package/build/features/app/tax/taxStore.js +2 -2
  13. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -5
  14. package/build/features/business/screens/Activities/ActivitiesList.d.ts +36 -0
  15. package/build/features/business/screens/Activities/ActivitiesList.js +32 -2
  16. package/build/features/business/screens/Activities/OperationStartDate.d.ts +13 -0
  17. package/build/features/business/screens/Activities/OperationStartDate.js +5 -1
  18. package/build/features/business/screens/Customers/CustomerLocations.d.ts +13 -0
  19. package/build/features/business/screens/Customers/CustomerLocations.js +9 -2
  20. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -3
  21. package/build/features/business/screens/Verify/Verify.js +2 -1
  22. package/build/features/connect/screens/Merchant/SocialMedia.js +6 -2
  23. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -6
  24. package/build/features/individual/screens/Verify/Verify.js +4 -4
  25. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -5
  26. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +7 -4
  27. package/package.json +1 -1
@@ -16,7 +16,7 @@ import { styled } from '@mui/material/styles';
16
16
  import { FlowsButtons } from '../../../shared/Button';
17
17
  import { ICONS_NAMES, PASSWORD_OPERATION_TYPE } from '../../../../constants';
18
18
  import { useAppSelector, useLanguage } from '../../../../hooks';
19
- import { getResetFlowUrl, showLastFour } from '../../../../utils';
19
+ import { getResetFlowUrl, showLastFour, concatenateObjectValues } from '../../../../utils';
20
20
  import { taxSelector } from '../../../app/tax/taxStore';
21
21
  import Box from '@mui/material/Box';
22
22
  import Text from '../../../../components/Text';
@@ -48,9 +48,12 @@ var SuccessWithFlowButtons = function () {
48
48
  var t = useTranslation().t;
49
49
  var isAr = useLanguage().isAr;
50
50
  var data = useAppSelector(taxSelector).data;
51
- var _e = data.verify.responseBody || {}, flows = _e.flows, nameObj = _e.name, entity = _e.entity, brand = _e.brand, bank = _e.bank, merchant = _e.merchant, identification_id = _e.identification_id, vatID = _e.vatID, user = _e.user;
51
+ var _e = data.verify.responseBody || {}, flows = _e.flows, nameObj = _e.name, entity = _e.entity, brand = _e.brand, bank = _e.bank, merchant = _e.merchant, vatID = _e.vatID, user = _e.user;
52
52
  var _f = useState([]), buttons = _f[0], setButtons = _f[1];
53
- var username = ((nameObj === null || nameObj === void 0 ? void 0 : nameObj.first) || '') + ' ' + ((nameObj === null || nameObj === void 0 ? void 0 : nameObj.last) || '');
53
+ var _g = nameObj || {}, en = _g.en, ar = _g.ar;
54
+ var username = isAr
55
+ ? concatenateObjectValues(ar || en, ['first', 'last'])
56
+ : concatenateObjectValues(en, ['first', 'last']);
54
57
  var licenseNumber = ((_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.number) || '';
55
58
  var bankName = (bank === null || bank === void 0 ? void 0 : bank.bank_name) || t('bank');
56
59
  var iban = showLastFour((bank === null || bank === void 0 ? void 0 : bank.iban) || '');
@@ -61,7 +64,7 @@ var SuccessWithFlowButtons = function () {
61
64
  var identification = user.identification;
62
65
  var maskedId = !!(identification === null || identification === void 0 ? void 0 : identification.id) ? " ".concat(t('masking_symbols')).concat((_d = identification === null || identification === void 0 ? void 0 : identification.id) === null || _d === void 0 ? void 0 : _d.slice(-2)) : '';
63
66
  var settings = useAppSelector(settingsSelector);
64
- var _g = data.verify.responseBody || { contact: {}, board_id: '' }, contact = _g.contact, board_id = _g.board_id, board_info_id = _g.board_info_id;
67
+ var _h = data.verify.responseBody || { contact: {}, board_id: '' }, contact = _h.contact, board_id = _h.board_id, board_info_id = _h.board_info_id;
65
68
  var email = (contact || { email: '' }).email;
66
69
  var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, board_id, board_info_id);
67
70
  var reMapFlowData = function (flows) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.0.100-test",
3
+ "version": "2.0.102-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",