@zeniai/client-epic-state 5.0.3-betaVR1 → 5.0.3

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.
@@ -5,7 +5,7 @@ import { updateTransactions } from '../../../../entity/transaction/transactionRe
5
5
  import { isSuccessResponse } from '../../../../responsePayload';
6
6
  import { BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS } from '../../helpers/bulkUploadTiming';
7
7
  import { extractTransactionPayloadsFromBatchFiles, isBatchDetailsApiStatusCompleted, toBatchDetails, } from '../../payload/missingReceiptsPayload';
8
- import { bulkUploadAutomatchingTimedOut, bulkUploadReceiptsSuccess, clearBulkUpload, fetchBulkUploadBatchDetails, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatches, pusherBatchStatusUpdate, requestMissingReceiptsTabNavigation, restoreBulkUploadMatchingState, } from '../../reducers/missingReceiptsViewReducer';
8
+ import { bulkUploadAutomatchingTimedOut, bulkUploadReceiptsSuccess, clearBulkUpload, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatches, pusherBatchStatusUpdate, requestMissingReceiptsTabNavigation, restoreBulkUploadMatchingState, } from '../../reducers/missingReceiptsViewReducer';
9
9
  /** First poll after upload; then interval while batch not resolved via Pusher or API. */
10
10
  const FALLBACK_FIRST_DELAY_MS = 30000;
11
11
  /** Shorter first poll for restored sessions — batch may already be near completion. */
@@ -35,17 +35,9 @@ export const bulkUploadAutomatchingTimeoutEpic = (actions$, state$) => actions$.
35
35
  if (bulk.phase !== 'matching' || bulk.currentBatchId !== batchId) {
36
36
  return EMPTY;
37
37
  }
38
- /**
39
- * Also request the single-batch details directly so the "X out of Y Receipts Matched"
40
- * toast still fires when the backend actually completed between the last Pusher ping
41
- * and this timeout. If Pusher already tagged the batch as still `processing`,
42
- * `fetchBulkUploadBatchDetailsEpic`'s guard will skip the call and we simply rely on
43
- * the list refresh to eventually populate details via `fetchMultipleBatchDetailsEpic`.
44
- */
45
38
  return from([
46
39
  bulkUploadAutomatchingTimedOut(batchId),
47
40
  fetchBulkUploadBatches({ cacheOverride: true }),
48
- fetchBulkUploadBatchDetails(),
49
41
  ]);
50
42
  }), takeUntil(merge(actions$.pipe(filter(clearBulkUpload.match)), actions$.pipe(filter(pusherBatchStatusUpdate.match), filter((a) => a.payload.batchId === batchId &&
51
43
  a.payload.status === 'completed')), actions$.pipe(filter(fetchBulkUploadBatchDetailsSuccess.match), filter((a) => a.payload.batchId === batchId)))));