@zeniai/client-epic-state 5.2.54-betaRD1 → 5.2.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.
Files changed (74) hide show
  1. package/lib/entity/billPay/billTransaction/billTransactionReducer.d.ts +5 -1
  2. package/lib/entity/billPay/billTransaction/billTransactionReducer.js +17 -2
  3. package/lib/entity/invoicing/plan/planSelector.d.ts +9 -0
  4. package/lib/entity/invoicing/plan/planSelector.js +3 -2
  5. package/lib/entity/invoicing/product/productPayload.d.ts +1 -1
  6. package/lib/entity/invoicing/product/productPayload.js +1 -1
  7. package/lib/entity/invoicing/product/productState.d.ts +10 -0
  8. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +1 -4
  9. package/lib/entity/jeSchedules/jeSchedulesReducer.js +5 -79
  10. package/lib/epic.d.ts +3 -2
  11. package/lib/epic.js +8 -6
  12. package/lib/esm/entity/billPay/billTransaction/billTransactionReducer.js +16 -1
  13. package/lib/esm/entity/invoicing/plan/planSelector.js +1 -1
  14. package/lib/esm/entity/invoicing/product/productPayload.js +1 -1
  15. package/lib/esm/entity/jeSchedules/jeSchedulesReducer.js +4 -78
  16. package/lib/esm/epic.js +8 -6
  17. package/lib/esm/index.js +5 -5
  18. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +1 -14
  19. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +13 -10
  20. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +17 -38
  21. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +1 -17
  22. package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +1 -74
  23. package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +14 -49
  24. package/lib/esm/view/invoicing/createInvoice/createInvoiceSelector.js +28 -1
  25. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormHelper.js +1 -7
  26. package/lib/esm/view/spendManagement/billPay/billDetailView/billDetailViewReducer.js +87 -1
  27. package/lib/esm/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +1 -0
  28. package/lib/esm/view/spendManagement/billPay/billDetailView/billDetailViewState.js +4 -0
  29. package/lib/esm/view/spendManagement/billPay/billDetailView/epics/fetchBillRecommendationsEpic.js +97 -0
  30. package/lib/esm/view/spendManagement/billPay/billDetailView/epics/fetchRecommendationsForBill.js +85 -0
  31. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewReducer.js +18 -1
  32. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +3 -0
  33. package/lib/esm/view/spendManagement/billPay/editBillView/epics/applyBillRecommendationsToLocalStoreEpic.js +95 -0
  34. package/lib/index.d.ts +5 -5
  35. package/lib/index.js +22 -22
  36. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +2 -2
  37. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +0 -13
  38. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +11 -8
  39. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +17 -38
  40. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +2 -2
  41. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +1 -17
  42. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +0 -18
  43. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +3 -10
  44. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +3 -76
  45. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +0 -3
  46. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +14 -49
  47. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +0 -16
  48. package/lib/view/invoicing/createInvoice/createInvoiceSelector.d.ts +7 -2
  49. package/lib/view/invoicing/createInvoice/createInvoiceSelector.js +28 -1
  50. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormHelper.d.ts +2 -2
  51. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormHelper.js +1 -7
  52. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +19 -0
  53. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.d.ts +10 -1
  54. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.js +88 -2
  55. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +1 -0
  56. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +1 -0
  57. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewState.d.ts +7 -0
  58. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewState.js +4 -0
  59. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillRecommendationsEpic.d.ts +37 -0
  60. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillRecommendationsEpic.js +104 -0
  61. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchRecommendationsForBill.d.ts +24 -0
  62. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchRecommendationsForBill.js +92 -0
  63. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +4 -1
  64. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +19 -2
  65. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +1 -0
  66. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +3 -0
  67. package/lib/view/spendManagement/billPay/editBillView/epics/applyBillRecommendationsToLocalStoreEpic.d.ts +18 -0
  68. package/lib/view/spendManagement/billPay/editBillView/epics/applyBillRecommendationsToLocalStoreEpic.js +102 -0
  69. package/package.json +1 -1
  70. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchFailedJePostingsEpic.js +0 -39
  71. package/lib/tsconfig.mocks.tsbuildinfo +0 -1
  72. package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
  73. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchFailedJePostingsEpic.d.ts +0 -20
  74. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchFailedJePostingsEpic.js +0 -43
@@ -1,6 +1,5 @@
1
1
  import { createSlice } from '@reduxjs/toolkit';
2
2
  import assignWith from 'lodash/assignWith';
3
- import omit from 'lodash/omit';
4
3
  import { clearAll } from '../../rootActions';
5
4
  import { generateJEOneTimeAccrualKey } from './jeScheduleHelper';
6
5
  import { getJEScheduleKey, getJEScheduleTransactionDetailKeyPayload, toJEAccruedScheduledTransaction, toJEOneTimeAccrual, toJEScheduledTransaction, toScheduledJournalEntryState, } from './jeSchedulesPayload';
@@ -131,27 +130,6 @@ const jeSchedules = createSlice({
131
130
  });
132
131
  },
133
132
  },
134
- /**
135
- * Drops one journal entry from a schedule, leaving the schedule and its other entries.
136
- *
137
- * A schedule that failed to post in several months is one schedule key and several rows on the
138
- * Failed Postings list. Resolving one of them must retire only that row -- removing the whole
139
- * schedule key took the still-failing months off the list with it, where nothing would surface
140
- * them again.
141
- */
142
- removeScheduledJournalEntryFromJESchedule: {
143
- prepare(jeScheduleTransactionKey, scheduledJournalEntryID) {
144
- return { payload: { jeScheduleTransactionKey, scheduledJournalEntryID } };
145
- },
146
- reducer(draft, action) {
147
- const { jeScheduleTransactionKey, scheduledJournalEntryID } = action.payload;
148
- const schedule = draft.schedulesByTransactionKey[jeScheduleTransactionKey];
149
- if (schedule == null) {
150
- return;
151
- }
152
- schedule.scheduledJournalEntry = schedule.scheduledJournalEntry.filter((journalEntry) => journalEntry.scheduledJournalEntryID !== scheduledJournalEntryID);
153
- },
154
- },
155
133
  clearAllJEScheduleTransactions(draft) {
156
134
  draft.schedulesByTransactionKey = {};
157
135
  },
@@ -167,7 +145,7 @@ const jeSchedules = createSlice({
167
145
  });
168
146
  },
169
147
  });
170
- export const { updateJESchedules, updateAccruedJESchedules, updateJEScheduledTransaction, updateAccruedJEScheduledTransaction, updateJESchedulesDetails, updateAccruedJESchedulesDetails, deleteJESchedulesDetails, deleteAccruedJESchedulesDetails, clearAllAccruedJESchedules, clearAllJEScheduleTransactions, removeScheduledJournalEntryFromJESchedule, updateJEOneTimeAccruals, } = jeSchedules.actions;
148
+ export const { updateJESchedules, updateAccruedJESchedules, updateJEScheduledTransaction, updateAccruedJEScheduledTransaction, updateJESchedulesDetails, updateAccruedJESchedulesDetails, deleteJESchedulesDetails, deleteAccruedJESchedulesDetails, clearAllAccruedJESchedules, clearAllJEScheduleTransactions, updateJEOneTimeAccruals, } = jeSchedules.actions;
171
149
  export default jeSchedules.reducer;
172
150
  /**
173
151
  * Helper functions
@@ -176,13 +154,7 @@ function doUpdateJEScheduledTransaction(draft, id, payload, updateType) {
176
154
  const jeTransaction = toJEScheduledTransaction(payload);
177
155
  const existingTransaction = draft[id];
178
156
  if (existingTransaction != null && updateType === 'merge') {
179
- // scheduledJournalEntry is held back from the merge. The list payload never carries journal
180
- // entries -- toJEScheduledTransaction always sets [] -- and [] is not nullish, so the
181
- // customizer below would treat it as a value and wipe whatever updateJESchedulesDetails had
182
- // already written. Only the details action may write this field. It is still set on the
183
- // insert path below, so it is always present.
184
- const mergeable = omit(jeTransaction, ['scheduledJournalEntry']);
185
- assignWith(draft[id], mergeable, (objValue, srcValue) => srcValue ?? objValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!
157
+ assignWith(draft[id], jeTransaction, (objValue, srcValue) => srcValue ?? objValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!
186
158
  }
187
159
  else {
188
160
  draft[id] = jeTransaction;
@@ -201,32 +173,6 @@ function doUpdateJEAccruedScheduledTransaction(draft, id, payload, updateType) {
201
173
  /**
202
174
  * Helper functions
203
175
  */
204
- /**
205
- * Upserts `incomingEntries` into `existingEntries`, matched on scheduledJournalEntryID.
206
- *
207
- * A details payload carries only the entries its caller asked for, never a statement about the
208
- * complete set: the detail fetch sends every month of a schedule, fetchFailedJePostingsEpic sends
209
- * only the currently-failing ones. Replacing the array wholesale therefore let a tenant-wide
210
- * failures refresh shrink a schedule whose Quick View had already loaded all of its months, and
211
- * the posted ones silently vanished from the store until the detail call ran again.
212
- *
213
- * Each writer owns only the entries it actually sent. Callers that do hold the authoritative list
214
- * pass updateType 'replace' and skip this path entirely.
215
- */
216
- function mergeScheduledJournalEntries(existingEntries, incomingEntries) {
217
- const incomingEntryByID = new Map(incomingEntries.map((incomingEntry) => [
218
- incomingEntry.scheduledJournalEntryID,
219
- incomingEntry,
220
- ]));
221
- const existingEntryIDs = new Set(existingEntries.map((existingEntry) => existingEntry.scheduledJournalEntryID));
222
- // Existing order is preserved so a re-fetch cannot reshuffle rows under the user; entries the
223
- // store has not seen before are appended.
224
- return [
225
- ...existingEntries.map((existingEntry) => incomingEntryByID.get(existingEntry.scheduledJournalEntryID) ??
226
- existingEntry),
227
- ...incomingEntries.filter((incomingEntry) => !existingEntryIDs.has(incomingEntry.scheduledJournalEntryID)),
228
- ];
229
- }
230
176
  function doUpdateAccruedScheduledDetailTransaction(draft, id, jeSchedulePayload, scheduleJournalEntries, updateType) {
231
177
  const jeTransaction = toJEAccruedScheduledTransaction(jeSchedulePayload);
232
178
  const { currencyCode, currencySymbol } = jeTransaction;
@@ -237,17 +183,7 @@ function doUpdateAccruedScheduledDetailTransaction(draft, id, jeSchedulePayload,
237
183
  }
238
184
  const existingTransaction = draft[id];
239
185
  if (existingTransaction != null && updateType === 'merge') {
240
- // An empty array here means "this payload carried no entries for this schedule", not "this
241
- // schedule has none" -- and [] is not nullish, so the customizer below would treat it as a
242
- // value and clear entries another call already wrote. Only overwrite when there is something
243
- // to write.
244
- const mergeable = scheduledJournalEntries.length > 0
245
- ? {
246
- ...jeTransaction,
247
- scheduledJournalEntry: mergeScheduledJournalEntries(existingTransaction.scheduledJournalEntry, scheduledJournalEntries),
248
- }
249
- : omit(jeTransaction, ['scheduledJournalEntry']);
250
- assignWith(draft[id], mergeable, (objValue, srcValue) => srcValue ?? objValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!
186
+ assignWith(draft[id], { ...jeTransaction, scheduledJournalEntry: scheduledJournalEntries }, (objValue, srcValue) => srcValue ?? objValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!
251
187
  }
252
188
  else {
253
189
  draft[id] = {
@@ -267,17 +203,7 @@ function doUpdateScheduledDetailTransaction(draft, id, jeSchedulePayload, schedu
267
203
  }
268
204
  const existingTransaction = draft[id];
269
205
  if (existingTransaction != null && updateType === 'merge') {
270
- // An empty array here means "this payload carried no entries for this schedule", not "this
271
- // schedule has none" -- and [] is not nullish, so the customizer below would treat it as a
272
- // value and clear entries another call already wrote. Only overwrite when there is something
273
- // to write.
274
- const mergeable = scheduledJournalEntries.length > 0
275
- ? {
276
- ...jeTransaction,
277
- scheduledJournalEntry: mergeScheduledJournalEntries(existingTransaction.scheduledJournalEntry, scheduledJournalEntries),
278
- }
279
- : omit(jeTransaction, ['scheduledJournalEntry']);
280
- assignWith(draft[id], mergeable, (objValue, srcValue) => srcValue ?? objValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!
206
+ assignWith(draft[id], { ...jeTransaction, scheduledJournalEntry: scheduledJournalEntries }, (objValue, srcValue) => srcValue ?? objValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!
281
207
  }
282
208
  else {
283
209
  draft[id] = {
package/lib/esm/epic.js CHANGED
@@ -50,21 +50,21 @@ import { acceptMasterTOSEpic, } from './view/aiCfoView/epics/acceptMasterTOSEpic
50
50
  import { createSessionAndSubmitEpic, } from './view/aiCfoView/epics/createSessionAndSubmitEpic';
51
51
  import { createSessionEpic, } from './view/aiCfoView/epics/createSessionEpic';
52
52
  import { deleteChatSessionEpic, } from './view/aiCfoView/epics/deleteChatSessionEpic';
53
- import { deleteRoutineEpic } from './view/aiCfoView/epics/deleteRoutineEpic';
54
53
  import { deleteSkillEpic } from './view/aiCfoView/epics/deleteSkillEpic';
55
54
  import { fetchChatHistoryEpic, } from './view/aiCfoView/epics/fetchChatHistoryEpic';
56
55
  import { fetchChatSessionsForUserEpic, } from './view/aiCfoView/epics/fetchChatSessionsForUserEpic';
57
- import { fetchRoutineRunsEpic } from './view/aiCfoView/epics/fetchRoutineRunsEpic';
58
- import { fetchRoutinesEpic } from './view/aiCfoView/epics/fetchRoutinesEpic';
59
56
  import { fetchSkillDetailEpic } from './view/aiCfoView/epics/fetchSkillDetailEpic';
60
57
  import { fetchSkillVersionBodyEpic } from './view/aiCfoView/epics/fetchSkillVersionBodyEpic';
61
58
  import { fetchSkillVersionsEpic } from './view/aiCfoView/epics/fetchSkillVersionsEpic';
62
59
  import { fetchSkillsEpic, } from './view/aiCfoView/epics/fetchSkillsEpic';
63
60
  import { fetchSuggestedQuestionsEpic, } from './view/aiCfoView/epics/fetchSuggestedQuestionsEpic';
61
+ import { deleteRoutineEpic } from './view/aiCfoView/epics/deleteRoutineEpic';
62
+ import { fetchRoutineRunsEpic } from './view/aiCfoView/epics/fetchRoutineRunsEpic';
63
+ import { fetchRoutinesEpic } from './view/aiCfoView/epics/fetchRoutinesEpic';
64
64
  import { runRoutineEpic } from './view/aiCfoView/epics/runRoutineEpic';
65
65
  import { saveRoutineEpic } from './view/aiCfoView/epics/saveRoutineEpic';
66
- import { saveSkillEpic } from './view/aiCfoView/epics/saveSkillEpic';
67
66
  import { setRoutineEnabledEpic } from './view/aiCfoView/epics/setRoutineEnabledEpic';
67
+ import { saveSkillEpic } from './view/aiCfoView/epics/saveSkillEpic';
68
68
  import { setSkillVisibilityEpic } from './view/aiCfoView/epics/setSkillVisibilityEpic';
69
69
  import { stopSubmitEpic, } from './view/aiCfoView/epics/stopSubmitEpic';
70
70
  import { stopSubmitQuestionEpic, } from './view/aiCfoView/epics/stopSubmitQuestionEpic';
@@ -211,7 +211,6 @@ import { matchAndReverseAccrualsEpic, } from './view/expenseAutomationView/epics
211
211
  import { searchMatchAccrualsEpic, } from './view/expenseAutomationView/epics/jeSchedule/actualMatching/searchMatchAccrualsEpic';
212
212
  import { searchMatchTransactionsEpic, } from './view/expenseAutomationView/epics/jeSchedule/actualMatching/searchMatchTransactionsEpic';
213
213
  import { undoReversalAccrualsEpic, } from './view/expenseAutomationView/epics/jeSchedule/actualMatching/undoReversalAccrualsEpic';
214
- import { fetchFailedJePostingsEpic as fetchExpenseAutomationFailedJePostingsEpic, } from './view/expenseAutomationView/epics/jeSchedule/fetchFailedJePostingsEpic';
215
214
  import { fetchJeSchedulesPageEpic as fetchExpenseAutomationJESchedulesPageEpic, } from './view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic';
216
215
  import { fetchJeSchedulesEpic as fetchExpenseAutomationJeSchedulesEpic, } from './view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic';
217
216
  import { fetchOneTimeAccrualEpic, } from './view/expenseAutomationView/epics/jeSchedule/fetchOneTimeAccrualEpic';
@@ -508,6 +507,7 @@ import { approveOrRejectBillEpic, } from './view/spendManagement/billPay/billDet
508
507
  import { cancelAndDeleteBillEpic, } from './view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic';
509
508
  import { deleteBillEpic, } from './view/spendManagement/billPay/billDetailView/epics/deleteBillEpic';
510
509
  import { fetchBillDetailEpic, waitForVendorByNameThenUpdateBillDetailEpic, } from './view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic';
510
+ import { fetchBillRecommendationsEpic, } from './view/spendManagement/billPay/billDetailView/epics/fetchBillRecommendationsEpic';
511
511
  import { fetchEligibleActionsForBillEpic, } from './view/spendManagement/billPay/billDetailView/epics/fetchEligibleActionsForBillEpic';
512
512
  import { retryOrRefundBillEpic, } from './view/spendManagement/billPay/billDetailView/epics/retryOrRefundBillEpic';
513
513
  import { fetchBillListEpic, } from './view/spendManagement/billPay/billList/fetchBillListEpic';
@@ -529,6 +529,7 @@ import { cancelOrDeleteBillsBulkActionEpic, } from './view/spendManagement/billP
529
529
  import { submitDraftBillsBulkActionEpic, } from './view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic';
530
530
  import { validateBillsBulkActionEpic, } from './view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts';
531
531
  import { convertAmountToHomeCurrencyEpic, } from './view/spendManagement/billPay/editBillView/epics/convertAmountToHomeCurrencyEpic';
532
+ import { applyBillRecommendationsToLocalStoreEpic, } from './view/spendManagement/billPay/editBillView/epics/applyBillRecommendationsToLocalStoreEpic';
532
533
  import { fetchBillAndInitializeLocalStoreEpic, waitForBillDetailThenInitializeLocalStoreEpic, } from './view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic';
533
534
  import { fetchEditBillDetailPageEpic, } from './view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic';
534
535
  import { fetchVendorAndUpdateBillLocalDataEpic, waitForVendorByIdThenSaveBillUpdatetoLocalStoreEpic, } from './view/spendManagement/billPay/editBillView/epics/fetchVendorAndUpdateBillLocalDataEpic';
@@ -783,6 +784,7 @@ const ALL_EPICS = [
783
784
  acknowledgeOnboardingAiFinanceTeamEpic,
784
785
  addCardPaymentSourceEpic,
785
786
  addPromotionalCreditsEpic,
787
+ applyBillRecommendationsToLocalStoreEpic,
786
788
  applyExtractedPolicyToDraftEpic,
787
789
  approveOAuthConsentEpic,
788
790
  approveOrRejectBillEpic,
@@ -930,6 +932,7 @@ const ALL_EPICS = [
930
932
  fetchBillPayConfigEpic,
931
933
  fetchBillPaySetupApproverViewEpic,
932
934
  fetchBillPaySetupViewEpic,
935
+ fetchBillRecommendationsEpic,
933
936
  fetchBulkUploadBatchDetailsEpic,
934
937
  fetchBulkUploadBatchesEpic,
935
938
  fetchCannedResponsesEpic,
@@ -1012,7 +1015,6 @@ const ALL_EPICS = [
1012
1015
  fetchExpenseAutomationActualMatchingEpic,
1013
1016
  fetchExpenseAutomationActualMatchingMatchEpic,
1014
1017
  fetchExpenseAutomationActualMatchingPageEpic,
1015
- fetchExpenseAutomationFailedJePostingsEpic,
1016
1018
  fetchExpenseAutomationFluxAnalysisViewEpic,
1017
1019
  fetchExpenseAutomationInitializeTransactionCategorizationViewLocalDataEpic,
1018
1020
  fetchExpenseAutomationJeSchedulesEpic,
package/lib/esm/index.js CHANGED
@@ -188,9 +188,9 @@ import { toExpenseAutomationViewType, toExpenseAutomationViewTypeStrict, } from
188
188
  import { computeNewScheduleJeDetails } from './view/expenseAutomationView/helpers/newScheduleLocalDataHelper';
189
189
  import { isReviewTransactionBankTransferType, isReviewTransactionBillPaymentType, isReviewTransactionCreditCardCreditType, isReviewTransactionCreditCardPaymentType, isReviewTransactionDepositType, isReviewTransactionExpenseType, } from './view/expenseAutomationView/helpers/reconciliationHelpers';
190
190
  import { MAX_SELECTION_LIMIT, checkIfAllLineItemsAreCategoryClassFilled, getLineItemsByTransactionIdsFromLocalData, isAnyItemWithUncategorizedExpenseAccount, } from './view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper';
191
- import { ackCloseMatchAfterUndo, clearActualMatchingView as clearExpenseAutomationActualMatchingView, clearMatchNewModal, closeMatchNewModal, fetchActualMatchingMatch, fetchActualMatching as fetchExpenseAutomationActualMatching, fetchActualMatchingPage as fetchExpenseAutomationActualMatchingPage, matchAndReverseAccruals, openMatchNewModal, searchMatchAccruals, searchMatchTransactions, undoReversalAccruals, updateActualMatchingUIState as updateExpenseAutomationActualMatchingUIState, } from './view/expenseAutomationView/reducers/actualMatchingViewReducer';
191
+ import { ackCloseMatchAfterUndo, clearActualMatchingView as clearExpenseAutomationActualMatchingView, clearMatchNewModal, closeMatchNewModal, fetchActualMatching as fetchExpenseAutomationActualMatching, fetchActualMatchingMatch, fetchActualMatchingPage as fetchExpenseAutomationActualMatchingPage, matchAndReverseAccruals, openMatchNewModal, searchMatchAccruals, searchMatchTransactions, undoReversalAccruals, updateActualMatchingUIState as updateExpenseAutomationActualMatchingUIState, } from './view/expenseAutomationView/reducers/actualMatchingViewReducer';
192
192
  import { clearExpenseAutomationFluxAnalysisView, fetchFluxAnalysisView, reviewFluxAnalysisView, updateFluxAnalysisViewPageMetaData, updateFluxAnalysisViewUIState, updateOperatingExpensesIdsForReview, updateSelectedSectionIdsForReview, } from './view/expenseAutomationView/reducers/fluxAnalysisViewReducer';
193
- import { clearJeScheduleLocalData as clearExpenseAutomationJEScheduleLocalData, clearExpenseAutomationJESchedulesView, clearSearchTransactionsForNewSchedule as clearJeSearchTransactionsForNewSchedule, createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, fetchJeSchedulesPage as fetchExpenseAutomationJESchedulesPage, fetchOneTimeAccrual, ignoreRecommendedJeSchedule as ignoreExpenseAutomationJESchedule, ignoreOneTimeAccrual, initializeAccountSettingsView as initializeJeAccountSettingsView, initializeNewSchedule as initializeJeNewSchedule, initializeJeScheduleLocalData, promoteOneTimeAccrual, removeJeOneTimeAccrualLocalData, removeJeScheduleTransactionKey, resetNewScheduleLocalData as resetJeNewScheduleLocalData, retryJeSchedule as retryExpenseAutomationJESchedule, revertJeSchedule, revertOneTimeAccrual, saveAccountSettings as saveJeAccountSettings, saveAccountSettingsLocalData as saveJeAccountSettingsLocalData, saveNewSchedule as saveJeNewSchedule, saveNewScheduleFailure as saveJeNewScheduleFailure, saveNewScheduleSuccess as saveJeNewScheduleSuccess, searchTransactionsForNewSchedule as searchJeTransactionsForNewSchedule, searchTransactionsForNewScheduleFailure as searchJeTransactionsForNewScheduleFailure, searchTransactionsForNewScheduleSuccess as searchJeTransactionsForNewScheduleSuccess, toggleJECreatedGroupCollapsed, toggleJEFailedGroupCollapsed, toggleJEPendingGroupCollapsed, updateJESchedulesUIState as updateExpenseAutomationJESchedulesUIState, updateJEScheduleTypeFilter, updateNewScheduleLocalData as updateJeNewScheduleLocalData, updateJeOneTimeAccrualLocalData, updateJeScheduleLocalDataById, updateJeScheduleTransactionKeys, } from './view/expenseAutomationView/reducers/jeSchedulesViewReducer';
193
+ import { clearJeScheduleLocalData as clearExpenseAutomationJEScheduleLocalData, clearExpenseAutomationJESchedulesView, clearSearchTransactionsForNewSchedule as clearJeSearchTransactionsForNewSchedule, createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, fetchJeSchedulesPage as fetchExpenseAutomationJESchedulesPage, fetchOneTimeAccrual, ignoreRecommendedJeSchedule as ignoreExpenseAutomationJESchedule, ignoreOneTimeAccrual, initializeAccountSettingsView as initializeJeAccountSettingsView, initializeNewSchedule as initializeJeNewSchedule, initializeJeScheduleLocalData, promoteOneTimeAccrual, removeJeOneTimeAccrualLocalData, removeJeScheduleTransactionKey, resetNewScheduleLocalData as resetJeNewScheduleLocalData, retryJeSchedule as retryExpenseAutomationJESchedule, revertJeSchedule, revertOneTimeAccrual, saveAccountSettings as saveJeAccountSettings, saveAccountSettingsLocalData as saveJeAccountSettingsLocalData, saveNewSchedule as saveJeNewSchedule, saveNewScheduleFailure as saveJeNewScheduleFailure, saveNewScheduleSuccess as saveJeNewScheduleSuccess, searchTransactionsForNewSchedule as searchJeTransactionsForNewSchedule, searchTransactionsForNewScheduleFailure as searchJeTransactionsForNewScheduleFailure, searchTransactionsForNewScheduleSuccess as searchJeTransactionsForNewScheduleSuccess, toggleJECreatedGroupCollapsed, toggleJEPendingGroupCollapsed, updateJESchedulesUIState as updateExpenseAutomationJESchedulesUIState, updateJEScheduleTypeFilter, updateNewScheduleLocalData as updateJeNewScheduleLocalData, updateJeOneTimeAccrualLocalData, updateJeScheduleLocalDataById, updateJeScheduleTransactionKeys, } from './view/expenseAutomationView/reducers/jeSchedulesViewReducer';
194
194
  import { acknowledgeBulkUploadConfirmMatchComplete, bulkUploadAutomatchingTimedOut, bulkUploadReceipts, bulkUploadReceiptsFailure, bulkUploadReceiptsSuccess, clearBulkUpload, clearBulkUploadBatchDetailsForScopeChange, clearManualSearchResults, clearMissingReceiptsTabNavigation, confirmBulkUploadMatch, confirmBulkUploadMatchFailure, confirmBulkUploadMatchSuccess, fetchBulkUploadBatchDetails, fetchBulkUploadBatchDetailsFailure, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatches, fetchBulkUploadBatchesFailure, fetchBulkUploadBatchesSuccess, fetchCompletedTransactions, fetchCompletedTransactionsFailure, fetchCompletedTransactionsSuccess, fetchMissingReceipts as fetchExpenseAutomationMissingReceipts, fetchMoreBatchDetails, fetchMoreBatchDetailsComplete, fetchMoreBatchDetailsFailure, markBatchDetailRefreshAttempted, markMissingReceiptAsDone as markExpenseAutomationMissingReceiptAsDone, pusherBatchStatusUpdate, refreshBatchDetailsForBatchId, requestMissingReceiptsTabNavigation, restoreBulkUploadAutomatchingOnMount, restoreBulkUploadMatchingState, searchTransactionsForManualMatch, searchTransactionsForManualMatchFailure, searchTransactionsForManualMatchSuccess, setBulkUploadCompletedSubTab, setBulkUploadResultsTab, setBulkUploadSortConfig, setBulkUploadUploadedFileCount, storeBatchDetails, updateBulkUploadProgress, updateMissingReceiptUploadState as updateExpenseAutomationMissingReceiptUploadState, updateMissingReceiptsUIState as updateExpenseAutomationMissingReceiptsUIState, uploadMissingReceiptSuccess as uploadExpenseAutomationMissingReceiptSuccess, } from './view/expenseAutomationView/reducers/missingReceiptsViewReducer';
195
195
  import { clearStatementDateConflict, confirmStatementMapping, deleteAccountStatement, deleteCombinedStatement, excludeAccountFromReconciliation, fetchReconciliation as fetchReconciliationView, includeAccountInReconciliation, parseCombinedStatement, parseStatement, parseStatementFailure, parseStatementSuccess, reparseStatement, reparseStatementFailure, reparseStatementSuccess, resetReparseStatementStatus, saveReconciliationDetail as saveExpenseAutomationReconciliationDetail, saveReconciliationReview as saveExpenseAutomationReconciliationReview, setConnectionInProgressForAccount as setConnectionInProgressForAccountReconciliation, setStatementParseInProgress, setStatementProcessingDismissedToBackground, submitCombinedStatementUpdate, submitStatementUpdate, updateAccountReconciliationLocalData as updateExpenseAutomationAccountReconciliationLocalData, updateSelectedAccountId as updateExpenseAutomationAccountReconciliationSelectedAccountId, updateSelectedTab as updateExpenseAutomationAccountReconciliationSelectedTab, updateReconListScrollPosition as updateExpenseAutomationReconListScrollPosition, updateReviewTabSortState as updateExpenseAutomationReconReviewTabListSortState, updateReviewTabLocalData as updateExpenseAutomationReconReviewTabLocalData, updateReconcileTabListScrollState as updateExpenseAutomationReconcileTabListScrollState, updateReconcileTabListSortState as updateExpenseAutomationReconcileTabListSortState, updateReconcileTabLocalData as updateExpenseAutomationReconcileTabLocalData, updateSelectedDrawerAccountId as updateExpenseAutomationSelectedDrawerAccountId, updateNodeCollapseState, updateParsedStatementData, updateStatementProcessingBackgroundCompletedSteps, updateStatementProcessingFailed, updateStatementUpdateLocalData, updateStatementUploadChosen, uploadAccountStatement, } from './view/expenseAutomationView/reducers/reconciliationViewReducer';
196
196
  import { backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, fetchTransactionCategorization, fetchTransactionCategorizationFailure, fetchTransactionCategorizationView, initializeTransactionCategorizationViewLocalData, markCategoryClassRecommendationsFailureForCategorization, markTransactionAsNotMiscategorized, removeTransactionFromAllTabs, saveTransactionCategorization, saveTransactionCategorizationLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, setEntityRecommendationForLineIdsForCategorization, syncTransactionCategorizationFromDetailSave, updateCurrentSelectedTransactionCategorizationTab, updateSelectedCheckboxTransactionIds, updateSelectedCustomerForTransaction, updateSelectedTransactionId, updateSelectedVendorForTransaction, updateTransactionCategorization, updateTransactionCategorizationCompletedSubTab, updateTransactionCategorizationSaveStatus, updateTransactionCategorizationUIState, updateTransactionCategorizationUploadReceiptState, updateTransactionFilters, updateTransactionGroup, uploadTransactionCategorizationReceiptSuccess, } from './view/expenseAutomationView/reducers/transactionsViewReducer';
@@ -303,7 +303,7 @@ import { isAccountingTabVisible, isApprovalRulesTabVisible, isBankConnectionsTab
303
303
  import { clearSettingsView, fetchBankConnectionsView, fetchBillingAccountsView, fetchCompanyBillingAddress, fetchMyProfile, fetchMyProfileView, fetchNotificationSettings, fetchNotificationSettingsView, initializeMyProfileLocalData, refreshQBOData, resetNotificationSettingsLocalData, resetNotificationSettingsUpdateStatus, saveCompanyBillingAddress, saveNotificationSettings, updateMyProfile, updateMyProfileLocalData, updateNotificationSettingsLocalData, updateSettingsViewUIState, } from './view/settingsView/settingsViewReducer';
304
304
  import { getApprovalRuleViewDetails, getBankConnectionsSetupViewDetails, getBillingAccountsViewDetails, getIntegrationsView, getMyBankConnectionsDetails, getMyProfileView, getNotificationSettings, getNotificationSettingsView, } from './view/settingsView/settingsViewSelector';
305
305
  import { NOTIFICATION_MODES, REMINDER_NOTIFICATION_TYPES, } from './view/settingsView/settingsViewState';
306
- import { approveOrRejectBill, cancelAndDeleteBill, deleteBill, fetchBillDetail, retryOrRefundBill, updateApprovalStatusOnSuccess, } from './view/spendManagement/billPay/billDetailView/billDetailViewReducer';
306
+ import { approveOrRejectBill, cancelAndDeleteBill, deleteBill, fetchBillDetail, fetchBillRecommendations, retryOrRefundBill, updateApprovalStatusOnSuccess, } from './view/spendManagement/billPay/billDetailView/billDetailViewReducer';
307
307
  import { checkApproveRejectBtnShow as checkApproveRejectBtnShowForBill, checkShowMarkAsPaidButton, getBillDetailView, } from './view/spendManagement/billPay/billDetailView/billDetailViewSelector';
308
308
  import { getBillTransactionDetailKey, } from './view/spendManagement/billPay/billDetailView/billDetailViewState';
309
309
  import { getBillDownloadList, } from './view/spendManagement/billPay/billList/billListDownloadSelector';
@@ -491,7 +491,7 @@ export { stringToUnion, stringToUnionStrict };
491
491
  export { fetchMonthEndCloseChecks, fetchMonthClosePerformanceTrend, getMonthEndCloseChecksViewByTenantId, ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY, };
492
492
  export {
493
493
  // Bulk Upload Types
494
- BATCH_FILE_STATUSES, isUnmatchedTabFileStatus, DEFAULT_COMPLETED_SUB_TAB, DEFAULT_TRANSACTION_GROUP, TRANSACTION_GROUPS, toTransactionGroup, toBatchFileStatus, toBatchStatusValue, toBulkUploadPhase, toBulkUploadResultsTab, toBulkUploadSortKey, toCompletedSubTab, toMatchSource, toMissingReceiptsTab, actualMatchingTransactionLineKey, ALL_JE_PAGE_TABS, MATCH_ACCRUAL_SEARCH_LIMIT, MATCH_SEARCH_DEBOUNCE_MS, MATCH_TRANSACTION_SEARCH_PAGE_SIZE, toExpenseAutomationJEScheduleSortKey, toExpenseAutomationActualMatchingSortKey, toJEPageTab, toMatchAndReverseResultStatus, toUndoReversalResultStatus, toggleJECreatedGroupCollapsed, toggleJEFailedGroupCollapsed, toggleJEPendingGroupCollapsed, updateJEScheduleTypeFilter, getExpenseAutomationView, toExpenseAutomationMissingReceiptsSortKey, toExpenseAutomationTransactionsTabKey, toExpenseAutomationViewType, toExpenseAutomationViewTypeStrict, uploadExpenseAutomationMissingReceiptSuccess, markExpenseAutomationMissingReceiptAsDone, fetchAllExpenseAutomationTabs, refreshExpenseAutomationCurrentTab, updateCurrentSelectedTransactionCategorizationTab, updateTransactionCategorizationCompletedSubTab, updateTransactionGroup, fetchExpenseAutomationMissingReceipts,
494
+ BATCH_FILE_STATUSES, isUnmatchedTabFileStatus, DEFAULT_COMPLETED_SUB_TAB, DEFAULT_TRANSACTION_GROUP, TRANSACTION_GROUPS, toTransactionGroup, toBatchFileStatus, toBatchStatusValue, toBulkUploadPhase, toBulkUploadResultsTab, toBulkUploadSortKey, toCompletedSubTab, toMatchSource, toMissingReceiptsTab, actualMatchingTransactionLineKey, ALL_JE_PAGE_TABS, MATCH_ACCRUAL_SEARCH_LIMIT, MATCH_SEARCH_DEBOUNCE_MS, MATCH_TRANSACTION_SEARCH_PAGE_SIZE, toExpenseAutomationJEScheduleSortKey, toExpenseAutomationActualMatchingSortKey, toJEPageTab, toMatchAndReverseResultStatus, toUndoReversalResultStatus, toggleJECreatedGroupCollapsed, toggleJEPendingGroupCollapsed, updateJEScheduleTypeFilter, getExpenseAutomationView, toExpenseAutomationMissingReceiptsSortKey, toExpenseAutomationTransactionsTabKey, toExpenseAutomationViewType, toExpenseAutomationViewTypeStrict, uploadExpenseAutomationMissingReceiptSuccess, markExpenseAutomationMissingReceiptAsDone, fetchAllExpenseAutomationTabs, refreshExpenseAutomationCurrentTab, updateCurrentSelectedTransactionCategorizationTab, updateTransactionCategorizationCompletedSubTab, updateTransactionGroup, fetchExpenseAutomationMissingReceipts,
495
495
  // Bulk Upload Actions
496
496
  bulkUploadReceipts, bulkUploadAutomatchingTimedOut, bulkUploadReceiptsSuccess, bulkUploadReceiptsFailure, restoreBulkUploadAutomatchingOnMount, restoreBulkUploadMatchingState, updateBulkUploadProgress, pusherBatchStatusUpdate, requestMissingReceiptsTabNavigation, clearMissingReceiptsTabNavigation, fetchBulkUploadBatchDetails, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatchDetailsFailure, storeBatchDetails, fetchMoreBatchDetails, fetchMoreBatchDetailsComplete, fetchMoreBatchDetailsFailure, fetchBulkUploadBatches, fetchBulkUploadBatchesSuccess, fetchBulkUploadBatchesFailure, clearBulkUploadBatchDetailsForScopeChange, markBatchDetailRefreshAttempted, refreshBatchDetailsForBatchId, confirmBulkUploadMatch, confirmBulkUploadMatchSuccess, confirmBulkUploadMatchFailure, setBulkUploadResultsTab, setBulkUploadCompletedSubTab, setBulkUploadSortConfig, setBulkUploadUploadedFileCount, clearBulkUpload, searchTransactionsForManualMatch, searchTransactionsForManualMatchSuccess, searchTransactionsForManualMatchFailure, clearManualSearchResults, acknowledgeBulkUploadConfirmMatchComplete, fetchCompletedTransactions, fetchCompletedTransactionsSuccess, fetchCompletedTransactionsFailure, fetchFluxAnalysisView, clearExpenseAutomationFluxAnalysisView, updateOperatingExpensesIdsForReview as updateFluxOperatingExpensesIdsForReview, updateSelectedSectionIdsForReview as updateFluxAnalysisSelectedSectionIdsForReview, reviewFluxAnalysisView, updateExpenseAutomationMissingReceiptUploadState, updateExpenseAutomationMissingReceiptsUIState, updateTransactionCategorizationUploadReceiptState, uploadTransactionCategorizationReceiptSuccess, getExpenseAutomationFluxAnalysisView, updateCurrentSelectedView, updateCurrentSelectedPeriod, getExpenseAutomationTransactionView, getLastTransferEntryReplacement, updateFluxAnalysisViewUIState, updateFluxAnalysisViewPageMetaData, MAX_SELECTION_LIMIT, checkIfAllLineItemsAreCategoryClassFilled, getLineItemsByTransactionIdsFromLocalData, isAnyItemWithUncategorizedExpenseAccount, excludeAccountFromReconciliation, includeAccountInReconciliation, saveExpenseAutomationReconciliationDetail, updateExpenseAutomationReconcileTabListScrollState, updateExpenseAutomationReconReviewTabListSortState, updateExpenseAutomationReconcileTabListSortState, updateExpenseAutomationReconcileTabLocalData, updateExpenseAutomationAccountReconciliationSelectedTab, updateExpenseAutomationAccountReconciliationSelectedAccountId, getExpenseAutomationReconciliationView, getLedgerAccountIdsWithStatementOverrideWarning, getLedgerAccountsForCombinedStatementMapping, getReparseStatementStatusByAccountId, getUnavailableLedgerAccountIds, fetchReconciliationView, uploadAccountStatementIntoDocumentAI, updateExpenseAutomationReconListScrollPosition, setConnectionInProgressForAccountReconciliation, getAccountReconByAccountIdAndSelectedPeriod, toReconciliationTabsType, isAccountReconReport, updateExpenseAutomationReconReviewTabLocalData, updateExpenseAutomationSelectedDrawerAccountId, updateStatementProcessingFailed, saveExpenseAutomationReconciliationReview, updateExpenseAutomationAccountReconciliationLocalData, toReconciliationAccountSource, deleteAccountStatement, deleteCombinedStatement, uploadAccountStatement, parseCombinedStatement, parseStatement, parseStatementSuccess, parseStatementFailure, reparseStatement, reparseStatementSuccess, reparseStatementFailure, resetReparseStatementStatus, updateParsedStatementData, updateNodeCollapseState, updateStatementUploadChosen, submitCombinedStatementUpdate, submitStatementUpdate, clearStatementDateConflict, confirmStatementMapping, updateStatementUpdateLocalData, isReviewTransactionBankTransferType, isReviewTransactionBillPaymentType, isReviewTransactionCreditCardPaymentType, isReviewTransactionDepositType, isReviewTransactionExpenseType, isReviewTransactionCreditCardCreditType, setStatementParseInProgress, setStatementProcessingDismissedToBackground, updateStatementProcessingBackgroundCompletedSteps, };
497
497
  export { computeNewScheduleJeDetails, createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, fetchOneTimeAccrual, getJeNewAccrualAccountsView, ignoreOneTimeAccrual, promoteOneTimeAccrual, revertJeSchedule, revertOneTimeAccrual, getJeNewScheduleSearchTransactionsView, getJeNewScheduleView, };
@@ -606,7 +606,7 @@ export { updateW9FormUploadFetchState, updateW9FormUploadFile, getVendorUploadDe
606
606
  export { toOutsideZeniPaymentModeType, checkShowMarkAsPaidButton, };
607
607
  export { toRemiSubTabType, toRemiSubTabTypeStrict, toRemiTabType, toRemiTabTypeStrict, toReimbursementTypeCode, getRemiList, getRemiDownloadList, fetchRemiList, fetchRemiListPerTab, updateRemiListTab, updateRemiListSubTab, updateRemiDetailSaveRemiCode, updateRemiListUIState, updateRemiListSearchResult, updateBillListFilterResult, updateRemiListFilterResult, REIMBURSEMENT_FILTER_CATEGORIES, REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED, updateRemiListDownloadUIState, updateBillListDownloadUIState, updateBillsBulkActionList, removeBillFromBulkActionList, clearAllBillsFromBulkActionList, getBillsBulkReviewView, validateBillsBulkAction, approveOrRejectBillsBulkAction, cancelOrDeleteBillsBulkAction, submitDraftBillsBulkAction, autoReviewPendingApprovalBills, incrementBulkActionProcessedCount, getBillsBulkOperationProgress, clearBillPayBulkActionView, isBillConditionallyValid, getRemisBulkReviewView, getRemisBulkOperationProgress, updateRemisBulkActionList, removeRemiFromBulkActionList, clearAllRemisFromBulkActionList, reviewDraftRemisBulkAction, approveOrRejectRemisBulkAction, cancelOrDeleteRemisBulkAction, submitDraftRemisBulkAction, autoReviewPendingApprovalRemis, clearRemiBulkActionView, incrementRemiBulkActionProcessedCount, updateOutsideZeniPaymentLocalData, discardOutsideZeniPaymentLocalData, checkIfCreatorIsApprover, };
608
608
  export { getClassList, fetchClassList, getProjectList, fetchProjectList, };
609
- export { fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, retryOrRefundBill, getBillList, getBillDownloadList, getBillDetailView, checkApproveRejectBtnShowForBill, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, getEditBillDetail, getReviewPageBillDetail, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, updateBillListUIState, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, resetVendorSaveStatus, updateContactsInVendorDetailLocalData, updateVendorTabDetailUIState, updateContactsInVendorTabDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, fetchUserDetails, verifyUser, updateVendorContact, toPaymentToOption, convertAmountToHomeCurrency, fetchVendorAndUpdateBillLocalData, markBillForRetry, updateWithdrawFromAccountId, removeBillFileFromLocalStore, replaceBillFileInLocalStore, updateShouldReplaceBillData, };
609
+ export { fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, retryOrRefundBill, getBillList, getBillDownloadList, getBillDetailView, checkApproveRejectBtnShowForBill, getBillTransactionDetailKey, fetchBillDetail, fetchBillRecommendations, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, getEditBillDetail, getReviewPageBillDetail, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, updateBillListUIState, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, resetVendorSaveStatus, updateContactsInVendorDetailLocalData, updateVendorTabDetailUIState, updateContactsInVendorTabDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, fetchUserDetails, verifyUser, updateVendorContact, toPaymentToOption, convertAmountToHomeCurrency, fetchVendorAndUpdateBillLocalData, markBillForRetry, updateWithdrawFromAccountId, removeBillFileFromLocalStore, replaceBillFileInLocalStore, updateShouldReplaceBillData, };
610
610
  export { hideCreatedByFilter, };
611
611
  // Transaction Categorization filter API — lives under Expense Automation,
612
612
  // not Spend Management. Kept in a separate re-export block to make the
@@ -3,7 +3,7 @@ import { filter, mergeMap } from 'rxjs/operators';
3
3
  import { fetchAccountList } from '../../../accountList/accountListReducer';
4
4
  import { getAccountsTypesForScheduleEpics } from '../../../scheduleView/scheduleListView/scheduleListHelper';
5
5
  import { fetchActualMatchingPage } from '../../reducers/actualMatchingViewReducer';
6
- import { fetchFailedJePostings, fetchJeSchedules, fetchJeSchedulesPage, initializeAccountSettingsView, } from '../../reducers/jeSchedulesViewReducer';
6
+ import { fetchJeSchedules, fetchJeSchedulesPage, initializeAccountSettingsView, } from '../../reducers/jeSchedulesViewReducer';
7
7
  export const fetchJeSchedulesPageEpic = (actions$, state$) => actions$.pipe(filter(fetchJeSchedulesPage.match), mergeMap((action) => {
8
8
  const jeSchedulePageActions = [];
9
9
  const { period, refreshViewInBackground } = action.payload;
@@ -24,19 +24,6 @@ export const fetchJeSchedulesPageEpic = (actions$, state$) => actions$.pipe(filt
24
24
  else {
25
25
  jeSchedulePageActions.push(fetchJeSchedules(period, refreshViewInBackground));
26
26
  }
27
- // Failed postings are tenant-wide and carry no period, so a period change or a tab switch
28
- // cannot invalidate them -- fetch once and let retry keep the list current from then on.
29
- // Refreshes still refetch, silently, so a failure resolved elsewhere leaves eventually.
30
- const { fetchState: failedPostingsFetchState } = state.expenseAutomationJESchedulesViewState.failedJePostings.fetchState;
31
- const isBackgroundRefresh = refreshViewInBackground === true;
32
- // 'Error' is retried, not just 'Not-Started'. A transient failure on first load would
33
- // otherwise leave the bucket in Error, and a later period change -- which is not a
34
- // background refresh -- would never ask again, so the tab stayed empty for the session.
35
- if (failedPostingsFetchState === 'Not-Started' ||
36
- failedPostingsFetchState === 'Error' ||
37
- isBackgroundRefresh) {
38
- jeSchedulePageActions.push(fetchFailedJePostings(isBackgroundRefresh));
39
- }
40
27
  // Only on the first page load. Account settings cannot change from a tab switch or a
41
28
  // refresh, and re-initializing puts accountSettingsView back to 'In-Progress' -- which the
42
29
  // page reads as "still loading" and answers with a full skeleton over rows it already has.
@@ -2,13 +2,13 @@ import { from, of } from 'rxjs';
2
2
  import { catchError, filter, mergeMap, takeUntil } from 'rxjs/operators';
3
3
  import { DEFAULT_DATE_FORMAT } from '../../../../commonStateTypes/timePeriod';
4
4
  import { toAbsoluteDay, toString } from '../../../../commonStateTypes/timePeriod';
5
- import { updateAccruedJESchedules, updateAccruedJESchedulesDetails, updateJEOneTimeAccruals, updateJESchedules, } from '../../../../entity/jeSchedules/jeSchedulesReducer';
5
+ import { updateAccruedJESchedules, updateAccruedJESchedulesDetails, updateJEOneTimeAccruals, updateJESchedules, updateJESchedulesDetails, } from '../../../../entity/jeSchedules/jeSchedulesReducer';
6
6
  import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
7
7
  import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
8
8
  import { clearAll } from '../../../../rootActions';
9
9
  import { date } from '../../../../zeniDayJS';
10
10
  import { SERVICE_MONTH_FORMAT, } from '../../payload/jeSchedulesPayload';
11
- import { fetchJeSchedules, fetchJeSchedulesFailure, fetchJeSchedulesSuccess, } from '../../reducers/jeSchedulesViewReducer';
11
+ import { fetchJeSchedules, fetchJeSchedulesFailure, fetchJeSchedulesSuccess, initializeJeScheduleLocalData, } from '../../reducers/jeSchedulesViewReducer';
12
12
  /**
13
13
  * How far back to look for accrued schedules, matching the Vendors page
14
14
  * (`getDefaultSelectedTimeframeForScheduleType`, 'accrued_expenses'), which queries the same
@@ -81,9 +81,8 @@ export const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe
81
81
  one_time_accrual_service_month_end: parsedEndDate.format(SERVICE_MONTH_FORMAT),
82
82
  // Existing lists what actually reached the books.
83
83
  one_time_accrual_statuses: ['posted'],
84
- // Kept only so this tab's response shape is unchanged. Nothing reads the failed
85
- // postings it returns any more -- they have their own endpoint and their own group
86
- // on Review. Dropping the key from the response is a server-side follow-up.
84
+ // A failed posting from an earlier month still needs to surface here, so this list
85
+ // is deliberately not windowed.
87
86
  filter_failed_je_postings_by_date: false,
88
87
  }),
89
88
  };
@@ -94,10 +93,12 @@ export const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe
94
93
  const updateActions = [];
95
94
  const accruedJeSchedules = response.data.accrued_je_schedules?.je_schedules ?? [];
96
95
  const oneTimeAccruals = response.data.one_time_accruals ?? [];
97
- // failed_je_postings is deliberately ignored. This endpoint windows it to the close
98
- // month, which is what hid older failures; fetchFailedJePostingsEpic owns that list
99
- // now and fetches it unwindowed.
100
- updateActions.push(updateJESchedules([...response.data.je_schedules]));
96
+ updateActions.push(updateJESchedules([
97
+ ...response.data.je_schedules,
98
+ ...response.data.failed_je_postings.je_schedules,
99
+ ]), updateJESchedulesDetails([...response.data.failed_je_postings.je_schedules], response.data.failed_je_postings.scheduled_journal_entries), initializeJeScheduleLocalData([
100
+ ...response.data.failed_je_postings.je_schedules,
101
+ ]));
101
102
  if (accruedJeSchedules.length > 0) {
102
103
  updateActions.push(updateAccruedJESchedules(accruedJeSchedules), updateAccruedJESchedulesDetails(accruedJeSchedules, response.data.accrued_je_schedules
103
104
  ?.scheduled_journal_entries));
@@ -110,7 +111,9 @@ export const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe
110
111
  }
111
112
  updateActions.push(fetchJeSchedulesSuccess({
112
113
  jeSchedules: [...response.data.je_schedules],
113
- failedJeSchedules: [],
114
+ failedJeSchedules: [
115
+ ...response.data.failed_je_postings.je_schedules,
116
+ ],
114
117
  accruedJeSchedules: accruedJeSchedules,
115
118
  oneTimeAccruals: oneTimeAccruals,
116
119
  selectedPeriod: selectedPeriod,
@@ -1,49 +1,28 @@
1
1
  import { from } from 'rxjs';
2
2
  import { filter, mergeMap } from 'rxjs/operators';
3
+ import { getJEScheduledTransactionByJEScheduleTransactionKey } from '../../../../entity/jeSchedules/jeSchedulesSelector';
3
4
  import { initializeJeScheduleLocalData, updateJeScheduleLocalDataById, } from '../../reducers/jeSchedulesViewReducer';
4
5
  export const initializeJeScheduleLocalDataEpic = (actions$, state$) => actions$.pipe(filter(initializeJeScheduleLocalData.match), mergeMap((action) => {
5
6
  const state = state$.value;
6
- const { jeScheduleLocalDataById } = state.expenseAutomationJESchedulesViewState;
7
7
  const actions = [];
8
8
  const { jeScheduleTransactionKeys } = action.payload;
9
9
  jeScheduleTransactionKeys.forEach((jeScheduleTransactionKey) => {
10
- // Read straight off the entity rather than through
11
- // getJEScheduledTransactionByJEScheduleTransactionKey. That selector resolves the vendor,
12
- // the base transaction and the accounts, and THROWS when any of them is not in the store
13
- // yet -- a missing-schedule guard does not cover it. This epic is a mergeMap with no
14
- // catchError, so one throw takes its subscription down for the rest of the session and
15
- // every later row silently renders without a Retry button. The three fields below are all
16
- // it has ever needed.
17
- const jeSchedule = state.jeSchedulesState.schedulesByTransactionKey[jeScheduleTransactionKey];
18
- if (jeSchedule == null) {
19
- return;
20
- }
21
- // Filtered on `error` because the entry array is shared state: a schedule whose detail
22
- // page or Quick View has been opened holds every month it has, posted ones included.
23
- jeSchedule.scheduledJournalEntry
24
- .filter((journalEntry) => journalEntry.error.length > 0)
25
- .forEach((journalEntry) => {
26
- const { scheduledJournalEntryID } = journalEntry;
27
- // Seeded once and never re-seeded. updateJeScheduleLocalDataById merges what it is
28
- // given over what is there, and the seed carries explicit undefined edits -- so
29
- // re-running it on a background refresh wiped a category the user had already picked
30
- // and Retry went on to post the original broken one.
31
- if (jeScheduleLocalDataById[scheduledJournalEntryID] != null) {
32
- return;
33
- }
34
- actions.push(updateJeScheduleLocalDataById({
35
- localData: {
36
- jeScheduleType: jeSchedule.jeScheduleType,
37
- jeScheduleID: jeSchedule.jeScheduleId,
38
- scheduledJournalEntryID,
39
- updatedVendor: undefined,
40
- updatedCategoryId: undefined,
41
- updatedAccumulatedDepreciationCategoryID: undefined,
42
- updatedClassId: undefined,
43
- },
44
- scheduledJournalEntryID,
45
- }));
46
- });
10
+ const jeScheduledTransaction = getJEScheduledTransactionByJEScheduleTransactionKey(jeScheduleTransactionKey, state);
11
+ const initLocalData = {
12
+ jeScheduleType: jeScheduledTransaction.jeScheduleType,
13
+ jeScheduleID: jeScheduledTransaction.jeScheduleId,
14
+ scheduledJournalEntryID: jeScheduledTransaction.scheduledJournalEntry[0]
15
+ .scheduledJournalEntryID,
16
+ updatedVendor: undefined,
17
+ updatedCategoryId: undefined,
18
+ updatedAccumulatedDepreciationCategoryID: undefined,
19
+ updatedClassId: undefined,
20
+ };
21
+ actions.push(updateJeScheduleLocalDataById({
22
+ localData: initLocalData,
23
+ scheduledJournalEntryID: jeScheduledTransaction.scheduledJournalEntry[0]
24
+ .scheduledJournalEntryID,
25
+ }));
47
26
  });
48
27
  return from(actions);
49
28
  }));
@@ -1,6 +1,5 @@
1
1
  import { from } from 'rxjs';
2
2
  import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
3
- import { removeScheduledJournalEntryFromJESchedule, } from '../../../../entity/jeSchedules/jeSchedulesReducer';
4
3
  import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
5
4
  import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
6
5
  import { createZeniAPIStatus, isSuccessStatus, } from '../../../../responsePayload';
@@ -23,21 +22,9 @@ export const retryJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe(
23
22
  .pipe(mergeMap((response) => {
24
23
  if (isSuccessStatus(response)) {
25
24
  const updateActions = [];
26
- // Retire this entry, and the schedule itself only when this was its last failed
27
- // one. A schedule that failed in several months is several rows sharing one
28
- // schedule key, so dropping the key outright took the still-failing months off the
29
- // list with it and nothing would have surfaced them again.
30
- // Counts only entries that actually carry an error, for the same reason the selector
31
- // and the local-data seed do: opening a schedule's detail or Quick View replaces
32
- // this array with every month it has, posted ones included. Counting those left the
33
- // schedule key in the bucket after its last real failure was resolved, so a later
34
- // details write could surface a resolved row again with nothing to retry.
35
- const stillFailingEntriesForSchedule = state.jeSchedulesState.schedulesByTransactionKey[jeScheduleTransactionKey]?.scheduledJournalEntry.filter((journalEntry) => journalEntry.error.length > 0) ?? [];
36
- const wasLastFailedEntryForSchedule = stillFailingEntriesForSchedule.filter((journalEntry) => journalEntry.scheduledJournalEntryID !==
37
- scheduledJournalEntryID).length === 0;
38
25
  updateActions.push(retryJeScheduleSuccess({
39
26
  scheduledJournalEntryID,
40
- }), removeScheduledJournalEntryFromJESchedule(jeScheduleTransactionKey, scheduledJournalEntryID), removeJeScheduleLocalDataById({ scheduledJournalEntryID }), // Important to remove localdata after success.
27
+ }), removeFailedJeScheduleTransactionKey(jeScheduleTransactionKey, selectedPeriod), removeJeScheduleLocalDataById({ scheduledJournalEntryID }), // Important to remove localdata after success.
41
28
  fetchMonthEndCloseChecks({
42
29
  tenantId: currentTenant.tenantId,
43
30
  period: selectedPeriod,
@@ -47,9 +34,6 @@ export const retryJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe(
47
34
  messageText: 'success',
48
35
  type: 'success',
49
36
  }));
50
- if (wasLastFailedEntryForSchedule) {
51
- updateActions.push(removeFailedJeScheduleTransactionKey(jeScheduleTransactionKey, selectedPeriod));
52
- }
53
37
  return from(updateActions);
54
38
  }
55
39
  else {
@@ -62,11 +62,6 @@ export const initialState = {
62
62
  jeScheduleAccruedKeysByPeriodAndTab: {},
63
63
  jeScheduleOneTimeAccrualKeysByPeriodAndTab: {},
64
64
  failedJeScheduleTransactionKeysByPeriodAndTab: {},
65
- failedJePostings: {
66
- fetchState: { fetchState: 'Not-Started', error: undefined },
67
- jeScheduleTransactionKeys: [],
68
- scheduledJournalEntryIDs: [],
69
- },
70
65
  postStatusById: {},
71
66
  ignoreStatusById: {},
72
67
  revertStatusById: {},
@@ -76,9 +71,6 @@ export const initialState = {
76
71
  oneTimeAccrualFetchStatusById: {},
77
72
  uiState: {
78
73
  createdGroupCollapsed: false,
79
- // Expanded, like the other two. A failed posting is the only thing on this page that is
80
- // actively wrong, so folding it away by default would hide the reason to open the tab.
81
- failedGroupCollapsed: false,
82
74
  pendingGroupCollapsed: false,
83
75
  scrollPosition: { scrollTop: 0, scrollLeft: undefined },
84
76
  searchString: '',
@@ -150,59 +142,6 @@ const expenseAutomationJESchedulesView = createSlice({
150
142
  };
151
143
  },
152
144
  },
153
- /**
154
- * The Failed Postings list, fetched separately from the schedules it belongs to.
155
- *
156
- * No period and no tab in any of these three: the endpoint applies no date window, so there is
157
- * one list per tenant and one slot to hold it. `refreshInBackground` keeps a silent refetch
158
- * from dropping a skeleton over rows already on screen, the same way refreshStatus does for
159
- * the schedules list.
160
- */
161
- fetchFailedJePostings: {
162
- reducer(draft, action) {
163
- if (!action.payload.refreshInBackground) {
164
- draft.failedJePostings.fetchState = {
165
- fetchState: 'In-Progress',
166
- error: undefined,
167
- };
168
- }
169
- },
170
- prepare(refreshInBackground = false) {
171
- return { payload: { refreshInBackground } };
172
- },
173
- },
174
- fetchFailedJePostingsSuccess: {
175
- reducer(draft, action) {
176
- // Both lists are replaced, never merged: this response is the whole current answer to
177
- // "what is failing right now", so an entry it no longer names has stopped failing --
178
- // resolved by someone else, or posted since -- and must drop out of the group.
179
- draft.failedJePostings = {
180
- fetchState: { fetchState: 'Completed', error: undefined },
181
- jeScheduleTransactionKeys: action.payload.failedJeSchedules.map((schedule) => getJEScheduleTransactionDetailKeyPayload(schedule.base_transaction)),
182
- // `?? ''` mirrors toScheduledJournalEntryState, so an entry the server sent without an
183
- // id lands on the same value on both sides and still matches itself.
184
- scheduledJournalEntryIDs: action.payload.failedScheduledJournalEntries.map((journalEntry) => journalEntry.scheduled_journal_entry_id ?? ''),
185
- };
186
- },
187
- prepare(failedJeSchedules, failedScheduledJournalEntries) {
188
- return { payload: { failedJeSchedules, failedScheduledJournalEntries } };
189
- },
190
- },
191
- fetchFailedJePostingsFailure: {
192
- reducer(draft, action) {
193
- // Keys are deliberately left alone. The schedules list clears its buckets on failure so an
194
- // errored tab cannot read as "these are all the schedules there are", but this list is a
195
- // set of outstanding problems -- showing the last known ones beside an error beats
196
- // implying there are none.
197
- draft.failedJePostings.fetchState = {
198
- fetchState: 'Error',
199
- error: action.payload.status,
200
- };
201
- },
202
- prepare(status) {
203
- return { payload: { status } };
204
- },
205
- },
206
145
  fetchJeSchedulesSuccess(draft, action) {
207
146
  const { jeSchedules, selectedPeriod, selectedPageTab, failedJeSchedules, accruedJeSchedules, oneTimeAccruals, refreshViewInBackground, } = action.payload;
208
147
  const periodTabKey = getJESchedulePeriodTabKey(selectedPageTab, toMonthYearPeriodId(selectedPeriod));
@@ -265,13 +204,6 @@ const expenseAutomationJESchedulesView = createSlice({
265
204
  error: undefined,
266
205
  },
267
206
  };
268
- // This posting has just succeeded, so it is no longer part of the failing set. Removing the
269
- // entry from the schedule entity is not enough on its own: a later detail or Quick View
270
- // fetch re-adds that month from the server, and because is_posting_failed is never cleared
271
- // it can still arrive carrying its old error array. With the id left in place the selector
272
- // would match it again and put a Retry button back on a posting that already went through.
273
- draft.failedJePostings.scheduledJournalEntryIDs =
274
- draft.failedJePostings.scheduledJournalEntryIDs.filter((failedEntryID) => failedEntryID !== scheduledJournalEntryID);
275
207
  },
276
208
  retryJeScheduleFailure(draft, action) {
277
209
  const { status, scheduledJournalEntryID } = action.payload;
@@ -426,8 +358,6 @@ const expenseAutomationJESchedulesView = createSlice({
426
358
  reducer(draft, action) {
427
359
  const { failedJeScheduleKey } = action.payload;
428
360
  removeKeyFromEveryTabSlot(draft.failedJeScheduleTransactionKeysByPeriodAndTab, failedJeScheduleKey);
429
- draft.failedJePostings.jeScheduleTransactionKeys =
430
- draft.failedJePostings.jeScheduleTransactionKeys.filter((jeScheduleKey) => jeScheduleKey !== failedJeScheduleKey);
431
361
  },
432
362
  },
433
363
  initializeJeScheduleLocalData: {
@@ -770,9 +700,6 @@ const expenseAutomationJESchedulesView = createSlice({
770
700
  draft.uiState.createdGroupCollapsed =
771
701
  !draft.uiState.createdGroupCollapsed;
772
702
  },
773
- toggleJEFailedGroupCollapsed(draft) {
774
- draft.uiState.failedGroupCollapsed = !draft.uiState.failedGroupCollapsed;
775
- },
776
703
  clearExpenseAutomationJESchedulesView(draft) {
777
704
  Object.assign(draft, initialState);
778
705
  },
@@ -783,7 +710,7 @@ const expenseAutomationJESchedulesView = createSlice({
783
710
  });
784
711
  },
785
712
  });
786
- export const { clearExpenseAutomationJESchedulesView, clearJeAccountSettingsLocalData, clearJeScheduleLocalData, clearSearchTransactionsForNewSchedule, createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, ignoreOneTimeAccrual, oneTimeAccrualActionFailure, oneTimeAccrualActionSuccess, promoteOneTimeAccrual, revertJeSchedule, revertJeScheduleFailure, revertJeScheduleSuccess, revertOneTimeAccrual, fetchAccountSettingsListForAccountTypes, fetchJeSchedules, fetchFailedJePostings, fetchFailedJePostingsFailure, fetchFailedJePostingsSuccess, fetchJeSchedulesFailure, fetchJeSchedulesPage, fetchJeSchedulesSuccess, fetchOneTimeAccrual, fetchOneTimeAccrualFailure, fetchOneTimeAccrualSuccess, fetchRecommendationForAccountSettings, ignoreRecommendedJeSchedule, ignoreRecommendedJeScheduleFailure, ignoreRecommendedJeScheduleSuccess, initializeAccountSettingsView, initializeJeScheduleLocalData, initializeNewSchedule, removeFailedJeScheduleTransactionKey, removeJeOneTimeAccrualLocalData, removeJeScheduleLocalDataById, removeJeAccruedScheduleKey, removeJeScheduleTransactionKey, resetNewScheduleLocalData, retryJeSchedule, retryJeScheduleFailure, retryJeScheduleSuccess, saveAccountSettings, saveAccountSettingsFailure, saveAccountSettingsLocalData, saveAccountSettingsSuccess, saveNewSchedule, saveNewScheduleFailure, saveNewScheduleSuccess, searchTransactionsForNewSchedule, searchTransactionsForNewScheduleFailure, searchTransactionsForNewScheduleSuccess, toggleJECreatedGroupCollapsed, toggleJEFailedGroupCollapsed, toggleJEPendingGroupCollapsed, updateAccountSettingsListForAccountTypes, updateAccountSettingsListForAccountTypesFailure, updateJESchedulesUIState, updateJEScheduleTypeFilter, updateJeOneTimeAccrualLocalData, updateJeScheduleLocalDataById, updateJeScheduleTransactionKeys, updateNewScheduleLocalData, updateRecommendationForAccountSettings, updateRecommendationForAccountSettingsFailure, } = expenseAutomationJESchedulesView.actions;
713
+ export const { clearExpenseAutomationJESchedulesView, clearJeAccountSettingsLocalData, clearJeScheduleLocalData, clearSearchTransactionsForNewSchedule, createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, ignoreOneTimeAccrual, oneTimeAccrualActionFailure, oneTimeAccrualActionSuccess, promoteOneTimeAccrual, revertJeSchedule, revertJeScheduleFailure, revertJeScheduleSuccess, revertOneTimeAccrual, fetchAccountSettingsListForAccountTypes, fetchJeSchedules, fetchJeSchedulesFailure, fetchJeSchedulesPage, fetchJeSchedulesSuccess, fetchOneTimeAccrual, fetchOneTimeAccrualFailure, fetchOneTimeAccrualSuccess, fetchRecommendationForAccountSettings, ignoreRecommendedJeSchedule, ignoreRecommendedJeScheduleFailure, ignoreRecommendedJeScheduleSuccess, initializeAccountSettingsView, initializeJeScheduleLocalData, initializeNewSchedule, removeFailedJeScheduleTransactionKey, removeJeOneTimeAccrualLocalData, removeJeScheduleLocalDataById, removeJeAccruedScheduleKey, removeJeScheduleTransactionKey, resetNewScheduleLocalData, retryJeSchedule, retryJeScheduleFailure, retryJeScheduleSuccess, saveAccountSettings, saveAccountSettingsFailure, saveAccountSettingsLocalData, saveAccountSettingsSuccess, saveNewSchedule, saveNewScheduleFailure, saveNewScheduleSuccess, searchTransactionsForNewSchedule, searchTransactionsForNewScheduleFailure, searchTransactionsForNewScheduleSuccess, toggleJECreatedGroupCollapsed, toggleJEPendingGroupCollapsed, updateAccountSettingsListForAccountTypes, updateAccountSettingsListForAccountTypesFailure, updateJESchedulesUIState, updateJEScheduleTypeFilter, updateJeOneTimeAccrualLocalData, updateJeScheduleLocalDataById, updateJeScheduleTransactionKeys, updateNewScheduleLocalData, updateRecommendationForAccountSettings, updateRecommendationForAccountSettingsFailure, } = expenseAutomationJESchedulesView.actions;
787
714
  export default expenseAutomationJESchedulesView.reducer;
788
715
  const doUpdateRecommendationForAccountSettings = (draft, payload) => {
789
716
  const { prepaidExpensesRecommendations, fixedAssetsRecommendations, accruedExpensesRecommendations, } = mapAccountTypeRecommendationPayloadToAccountRecommendationByType(payload);