@tap-payments/auth-jsconnect 2.8.35-test → 2.8.36-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.
@@ -102,7 +102,10 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
102
102
  bankData = _j.sent();
103
103
  _j.label = 6;
104
104
  case 6:
105
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
105
+ if (isInternally)
106
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
107
+ else
108
+ thunkApi.dispatch(handleNextScreenStep());
106
109
  _j.label = 7;
107
110
  case 7: return [2, {
108
111
  data: data,
@@ -108,7 +108,10 @@ export var verifyLeadToken = createAsyncThunk('brand/verifyLeadToken', function
108
108
  case 5: return [4, API.dataService.getChannelsOfServices({ page: 0 })];
109
109
  case 6:
110
110
  salesChannels = _f.sent();
111
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP')); });
111
+ if (isInternally)
112
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP')); });
113
+ else
114
+ thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP'));
112
115
  _f.label = 7;
113
116
  case 7: return [2, {
114
117
  data: data,
@@ -111,7 +111,10 @@ export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function
111
111
  return [4, API.entityService.retrieveEntityType()];
112
112
  case 6:
113
113
  entityTypes = _g.sent();
114
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP')); });
114
+ if (isInternally)
115
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP')); });
116
+ else
117
+ thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP'));
115
118
  _g.label = 7;
116
119
  case 7: return [2, {
117
120
  data: data,
@@ -160,7 +160,10 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
160
160
  _j.sent();
161
161
  _j.label = 15;
162
162
  case 15:
163
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
163
+ if (isInternally)
164
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
165
+ else
166
+ thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP'));
164
167
  _j.label = 16;
165
168
  case 16: return [3, 18];
166
169
  case 17:
@@ -99,7 +99,10 @@ export var verifyLeadToken = createAsyncThunk('taxVerifyLeadToken', function (_a
99
99
  case 6:
100
100
  if (!country_code && ((_e = entityData === null || entityData === void 0 ? void 0 : entityData.entity) === null || _e === void 0 ? void 0 : _e.country))
101
101
  thunkApi.dispatch(handleSetCountryByIso2(entityData.entity.country));
102
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('TAX_TAX_DETAILS_STEP')); });
102
+ if (isInternally)
103
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('TAX_TAX_DETAILS_STEP')); });
104
+ else
105
+ thunkApi.dispatch(handleNextScreenStep('TAX_TAX_DETAILS_STEP'));
103
106
  _f.label = 7;
104
107
  case 7: return [2, {
105
108
  data: data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.8.35-test",
3
+ "version": "2.8.36-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",