@tap-payments/auth-jsconnect 2.1.67-test → 2.1.68-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.
@@ -79,19 +79,20 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
79
79
  countryCode = findCountryByIddPrefix(settings.data.countries, phone.country_code);
80
80
  status = data.status, board_id = data.board_id, board_info_id = data.board_info_id;
81
81
  isRegistered = (status === null || status === void 0 ? void 0 : status.toLowerCase()) === 'registered';
82
+ if (!isRegistered && !(data === null || data === void 0 ? void 0 : data.identification) && (data === null || data === void 0 ? void 0 : data.phone)) {
83
+ thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_MOBILE_STEP'));
84
+ return [2, { data: data, countryCode: countryCode }];
85
+ }
82
86
  if (isRegistered && !showBoard) {
83
87
  (_d = (_c = settings.data.appConfig).onFlowCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, data);
84
88
  thunkApi.dispatch(handleOpen(false));
85
89
  return [2, { data: data, countryCode: countryCode }];
86
90
  }
87
- if (!isRegistered && !(data === null || data === void 0 ? void 0 : data.identification) && (data === null || data === void 0 ? void 0 : data.phone)) {
88
- thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_MOBILE_STEP'));
89
- return [2, { data: data, countryCode: countryCode }];
90
- }
91
- if (!(board_id && board_info_id)) {
91
+ if (isRegistered && !(board_id && board_info_id)) {
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, 3];
95
96
  return [4, Promise.all([
96
97
  API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
97
98
  API.boardService.retrieveBoardDetails(board_id),
@@ -101,6 +102,7 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
101
102
  _b = _e.sent(), boardInfo = _b[0], boardData = _b[1], leadData = _b[2];
102
103
  thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP'));
103
104
  return [2, { data: __assign(__assign({}, data), leadData.data), countryCode: countryCode, boardInfo: boardInfo, boardData: boardData }];
105
+ case 3: return [2, { data: data, countryCode: countryCode }];
104
106
  }
105
107
  });
106
108
  }); });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.1.67-test",
3
+ "version": "2.1.68-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",