wt-front-shared 1.0.54 → 1.0.56

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);
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 } = action.payload;
2256
+ const { endPointUrl, secondEndPointUrl, status, error, itemId, method, responseData } = 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) {
@@ -2265,7 +2264,8 @@ const _requestsStateReducer = createReducer(initialState$f, on(CreateRequestList
2265
2264
  secondEndPointUrl,
2266
2265
  itemId,
2267
2266
  status,
2268
- error
2267
+ error,
2268
+ data: responseData
2269
2269
  })
2270
2270
  };
2271
2271
  }
@@ -2320,8 +2320,8 @@ class RequestsFacade {
2320
2320
  createRequestListener(endPointUrl, method, itemId, secondEndPointUrl) {
2321
2321
  this.store.dispatch(CreateRequestListener({ payload: { endPointUrl, method, itemId, secondEndPointUrl } }));
2322
2322
  }
2323
- updateRequestData(endPointUrl, method, itemId, status, secondEndPointUrl, error) {
2324
- this.store.dispatch(UpdateRequestData({ payload: { endPointUrl, secondEndPointUrl, method, itemId, status, error } }));
2323
+ updateRequestData(endPointUrl, method, itemId, status, secondEndPointUrl, error, responseData) {
2324
+ this.store.dispatch(UpdateRequestData({ payload: { endPointUrl, secondEndPointUrl, method, itemId, status, error, data: responseData } }));
2325
2325
  }
2326
2326
  deleteRequestWaiter(endPointUrl, method, itemId, secondEndPointUrl) {
2327
2327
  this.store.dispatch(DeleteRequestWaiter({ payload: { endPointUrl, secondEndPointUrl, method, itemId } }));