@zeniai/client-epic-state 4.19.37-betaVR8 → 4.19.37-betaVR9

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.
@@ -12,7 +12,7 @@ export const fetchBulkUploadBatchDetailsEpic = (actions$, state$, zeniAPI) => ac
12
12
  }));
13
13
  }
14
14
  return zeniAPI
15
- .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/receipts/batches/${currentBatchId}`)
15
+ .getJSON(`${zeniAPI.apiEndPoints.communicationAgentMicroServiceBaseUrl}/1.0/receipts/batches/${currentBatchId}`)
16
16
  .pipe(mergeMap((response) => {
17
17
  if (isSuccessResponse(response) && response.data != null) {
18
18
  const actions = [];
@@ -21,7 +21,7 @@ export const fetchBulkUploadBatchesEpic = (actions$, state$, zeniAPI) => actions
21
21
  }
22
22
  const period = convertToPeriod(selectedPeriod);
23
23
  return zeniAPI
24
- .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/receipts/batches?start_date=${period.start}&end_date=${period.end}`)
24
+ .getJSON(`${zeniAPI.apiEndPoints.communicationAgentMicroServiceBaseUrl}/1.0/receipts/batches?start_date=${period.start}&end_date=${period.end}`)
25
25
  .pipe(mergeMap((response) => {
26
26
  if (isSuccessResponse(response) && response.data != null) {
27
27
  return of(fetchBulkUploadBatchesSuccess({
@@ -15,7 +15,7 @@ export const fetchMultipleBatchDetailsEpic = (actions$, state$, zeniAPI) => acti
15
15
  return EMPTY;
16
16
  }
17
17
  return from(completedBatchIds).pipe(mergeMap((batchId) => zeniAPI
18
- .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/receipts/batches/${batchId}`)
18
+ .getJSON(`${zeniAPI.apiEndPoints.communicationAgentMicroServiceBaseUrl}/1.0/receipts/batches/${batchId}`)
19
19
  .pipe(mergeMap((response) => {
20
20
  if (isSuccessResponse(response) && response.data != null) {
21
21
  const actions = [];
@@ -19,7 +19,7 @@ export const pollBulkUploadBatchStatusEpic = (actions$, _state$, zeniAPI) => act
19
19
  return timer(0, FALLBACK_POLL_INTERVAL_MS).pipe(takeUntil(actions$.pipe(filter((a) => clearBulkUpload.match(a) ||
20
20
  (pusherBatchStatusUpdate.match(a) &&
21
21
  a.payload.status === 'completed')))), switchMap(() => zeniAPI
22
- .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/receipts/batches/${batchId}/status`)
22
+ .getJSON(`${zeniAPI.apiEndPoints.communicationAgentMicroServiceBaseUrl}/1.0/receipts/batches/${batchId}/status`)
23
23
  .pipe(mergeMap((response) => {
24
24
  if (isSuccessResponse(response) && response.data != null) {
25
25
  const batchStatus = toBatchStatus(response.data);
@@ -15,7 +15,7 @@ const fetchBulkUploadBatchDetailsEpic = (actions$, state$, zeniAPI) => actions$.
15
15
  }));
16
16
  }
17
17
  return zeniAPI
18
- .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/receipts/batches/${currentBatchId}`)
18
+ .getJSON(`${zeniAPI.apiEndPoints.communicationAgentMicroServiceBaseUrl}/1.0/receipts/batches/${currentBatchId}`)
19
19
  .pipe((0, operators_1.mergeMap)((response) => {
20
20
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
21
21
  const actions = [];
@@ -24,7 +24,7 @@ const fetchBulkUploadBatchesEpic = (actions$, state$, zeniAPI) => actions$.pipe(
24
24
  }
25
25
  const period = (0, timePeriod_1.convertToPeriod)(selectedPeriod);
26
26
  return zeniAPI
27
- .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/receipts/batches?start_date=${period.start}&end_date=${period.end}`)
27
+ .getJSON(`${zeniAPI.apiEndPoints.communicationAgentMicroServiceBaseUrl}/1.0/receipts/batches?start_date=${period.start}&end_date=${period.end}`)
28
28
  .pipe((0, operators_1.mergeMap)((response) => {
29
29
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
30
30
  return (0, rxjs_1.of)((0, missingReceiptsViewReducer_1.fetchBulkUploadBatchesSuccess)({
@@ -18,7 +18,7 @@ const fetchMultipleBatchDetailsEpic = (actions$, state$, zeniAPI) => actions$.pi
18
18
  return rxjs_1.EMPTY;
19
19
  }
20
20
  return (0, rxjs_1.from)(completedBatchIds).pipe((0, operators_1.mergeMap)((batchId) => zeniAPI
21
- .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/receipts/batches/${batchId}`)
21
+ .getJSON(`${zeniAPI.apiEndPoints.communicationAgentMicroServiceBaseUrl}/1.0/receipts/batches/${batchId}`)
22
22
  .pipe((0, operators_1.mergeMap)((response) => {
23
23
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
24
24
  const actions = [];
@@ -23,7 +23,7 @@ const pollBulkUploadBatchStatusEpic = (actions$, _state$, zeniAPI) => actions$.p
23
23
  return (0, rxjs_1.timer)(0, FALLBACK_POLL_INTERVAL_MS).pipe((0, operators_1.takeUntil)(actions$.pipe((0, operators_1.filter)((a) => missingReceiptsViewReducer_1.clearBulkUpload.match(a) ||
24
24
  (missingReceiptsViewReducer_1.pusherBatchStatusUpdate.match(a) &&
25
25
  a.payload.status === 'completed')))), (0, operators_1.switchMap)(() => zeniAPI
26
- .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/receipts/batches/${batchId}/status`)
26
+ .getJSON(`${zeniAPI.apiEndPoints.communicationAgentMicroServiceBaseUrl}/1.0/receipts/batches/${batchId}/status`)
27
27
  .pipe((0, operators_1.mergeMap)((response) => {
28
28
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
29
29
  const batchStatus = (0, missingReceiptsPayload_1.toBatchStatus)(response.data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.19.37-betaVR8",
3
+ "version": "4.19.37-betaVR9",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",