wt-front-shared 1.0.54 → 1.0.55

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, response?.body?.data);
1917
1917
  return this.handleResponse(response, endPoint);
1918
1918
  }), catchError((error) => {
1919
1919
  console.error('[ base-api-service ][ httpClient ][ request ]', error);
@@ -2254,7 +2254,7 @@ const _requestsStateReducer = createReducer(initialState$f, on(CreateRequestList
2254
2254
  };
2255
2255
  }
2256
2256
  }), on(UpdateRequestData, (state, action) => {
2257
- const { endPointUrl, secondEndPointUrl, status, error, itemId, method } = action.payload;
2257
+ const { endPointUrl, secondEndPointUrl, status, error, itemId, method, responseData } = action.payload;
2258
2258
  const ids = getRequestIdVariants(endPointUrl, action.payload?.itemId, method, secondEndPointUrl);
2259
2259
  let existsId = getExistId(state.ids, ids);
2260
2260
  if (existsId) {
@@ -2265,7 +2265,8 @@ const _requestsStateReducer = createReducer(initialState$f, on(CreateRequestList
2265
2265
  secondEndPointUrl,
2266
2266
  itemId,
2267
2267
  status,
2268
- error
2268
+ error,
2269
+ data: responseData
2269
2270
  })
2270
2271
  };
2271
2272
  }
@@ -2320,8 +2321,8 @@ class RequestsFacade {
2320
2321
  createRequestListener(endPointUrl, method, itemId, secondEndPointUrl) {
2321
2322
  this.store.dispatch(CreateRequestListener({ payload: { endPointUrl, method, itemId, secondEndPointUrl } }));
2322
2323
  }
2323
- updateRequestData(endPointUrl, method, itemId, status, secondEndPointUrl, error) {
2324
- this.store.dispatch(UpdateRequestData({ payload: { endPointUrl, secondEndPointUrl, method, itemId, status, error } }));
2324
+ updateRequestData(endPointUrl, method, itemId, status, secondEndPointUrl, error, responseData) {
2325
+ this.store.dispatch(UpdateRequestData({ payload: { endPointUrl, secondEndPointUrl, method, itemId, status, error, responseData } }));
2325
2326
  }
2326
2327
  deleteRequestWaiter(endPointUrl, method, itemId, secondEndPointUrl) {
2327
2328
  this.store.dispatch(DeleteRequestWaiter({ payload: { endPointUrl, secondEndPointUrl, method, itemId } }));