wt-front-shared 1.0.55 → 1.0.57

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.
@@ -1913,7 +1913,7 @@ class BaseAPIService {
1913
1913
  }
1914
1914
  });
1915
1915
  }
1916
- this.requestsFacade.updateRequestData(endPointUrl, params.httpMethod, itemId, this.statuses.LOADED, secondEndPointUrl, response?.body?.data);
1916
+ this.requestsFacade.updateRequestData(endPointUrl, params.httpMethod, itemId, this.statuses.LOADED, secondEndPointUrl, null, response?.body?.data);
1917
1917
  return this.handleResponse(response, endPoint);
1918
1918
  }), catchError((error) => {
1919
1919
  console.error('[ base-api-service ][ httpClient ][ request ]', error);
@@ -1927,7 +1927,6 @@ class BaseAPIService {
1927
1927
  });
1928
1928
  }*/
1929
1929
  const errorResult = this.handleResponse(error, endPoint);
1930
- //this.requestsFacade.updateRequestData(endPointUrl, params.httpMethod, itemId, this.statuses.LOADED, secondEndPointUrl);
1931
1930
  return of(errorResult);
1932
1931
  }));
1933
1932
  }
@@ -2254,7 +2253,7 @@ const _requestsStateReducer = createReducer(initialState$f, on(CreateRequestList
2254
2253
  };
2255
2254
  }
2256
2255
  }), on(UpdateRequestData, (state, action) => {
2257
- const { endPointUrl, secondEndPointUrl, status, error, itemId, method, responseData } = action.payload;
2256
+ const { endPointUrl, secondEndPointUrl, status, error, itemId, method, data } = action.payload;
2258
2257
  const ids = getRequestIdVariants(endPointUrl, action.payload?.itemId, method, secondEndPointUrl);
2259
2258
  let existsId = getExistId(state.ids, ids);
2260
2259
  if (existsId) {
@@ -2266,7 +2265,7 @@ const _requestsStateReducer = createReducer(initialState$f, on(CreateRequestList
2266
2265
  itemId,
2267
2266
  status,
2268
2267
  error,
2269
- data: responseData
2268
+ data: { ...data }
2270
2269
  })
2271
2270
  };
2272
2271
  }
@@ -2322,7 +2321,7 @@ class RequestsFacade {
2322
2321
  this.store.dispatch(CreateRequestListener({ payload: { endPointUrl, method, itemId, secondEndPointUrl } }));
2323
2322
  }
2324
2323
  updateRequestData(endPointUrl, method, itemId, status, secondEndPointUrl, error, responseData) {
2325
- this.store.dispatch(UpdateRequestData({ payload: { endPointUrl, secondEndPointUrl, method, itemId, status, error, responseData } }));
2324
+ this.store.dispatch(UpdateRequestData({ payload: { endPointUrl, secondEndPointUrl, method, itemId, status, error, data: responseData } }));
2326
2325
  }
2327
2326
  deleteRequestWaiter(endPointUrl, method, itemId, secondEndPointUrl) {
2328
2327
  this.store.dispatch(DeleteRequestWaiter({ payload: { endPointUrl, secondEndPointUrl, method, itemId } }));
@@ -10239,7 +10238,6 @@ class SiteHelperComponent {
10239
10238
  }
10240
10239
  }
10241
10240
  runSiteHelper(configuration) {
10242
- console.log('runSiteHelper', this.siteHelperRunning, configuration);
10243
10241
  this.stopSiteTour();
10244
10242
  if (this.siteHelperRunning) {
10245
10243
  this.activeConfigStep = -1;
@@ -10249,10 +10247,8 @@ class SiteHelperComponent {
10249
10247
  else if (this.configurations[this.pageUrl]) {
10250
10248
  const helperKey = `url-${this.pageUrl}`;
10251
10249
  const cookieKey = this.getCookieKey(helperKey);
10252
- console.log('helperKey', helperKey, cookieKey);
10253
10250
  if (!this.cookieService.get(cookieKey)) {
10254
10251
  this.currentSiteHelperKey = `url-${this.pageUrl}`;
10255
- console.log('this.currentSiteHelperKey', this.currentSiteHelperKey);
10256
10252
  this.currentSiteHelperConfiguration = this.configurations[this.pageUrl];
10257
10253
  }
10258
10254
  }
@@ -10262,7 +10258,6 @@ class SiteHelperComponent {
10262
10258
  }
10263
10259
  }
10264
10260
  async runSiteHelperNextStep() {
10265
- console.log('runSiteHelperNextStep');
10266
10261
  if (!this.siteHelperRunning) {
10267
10262
  return;
10268
10263
  }