@zeniai/client-epic-state 5.2.32-betaAK7 → 5.2.32-betaRD0

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 (107) hide show
  1. package/lib/commonStateTypes/fiscalYearHelpers/getFYMonths.d.ts +2 -2
  2. package/lib/commonStateTypes/fiscalYearHelpers/getFYQuarterAndYear.d.ts +2 -2
  3. package/lib/commonStateTypes/timePeriod.d.ts +4 -4
  4. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +1 -1
  5. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  6. package/lib/entity/class/classReducer.d.ts +4 -4
  7. package/lib/entity/class/classState.d.ts +1 -1
  8. package/lib/entity/forecast/forecastState.d.ts +1 -1
  9. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  10. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  11. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  12. package/lib/entity/sectionProjectView/sectionProjectView.d.ts +1 -1
  13. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +2 -2
  14. package/lib/entity/tenant/tenantSelector.d.ts +1 -1
  15. package/lib/epic.d.ts +24 -24
  16. package/lib/epic.js +28 -28
  17. package/lib/esm/epic.js +28 -28
  18. package/lib/esm/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +1 -1
  19. package/lib/esm/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +1 -1
  20. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.js +1 -1
  21. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +2 -2
  22. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.js +2 -2
  23. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic.js +2 -1
  24. package/lib/esm/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +1 -1
  25. package/lib/esm/view/expenseAutomationView/helpers/reconciliationHelpers.js +2 -2
  26. package/lib/esm/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +18 -10
  27. package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +3 -11
  28. package/lib/esm/view/expenseAutomationView/selectors/missingReceiptsSelector.js +15 -11
  29. package/lib/esm/view/invoicing/couponView/couponViewSelector.js +1 -1
  30. package/lib/esm/view/invoicing/couponView/fetchInvoicingCouponCountsEpic.js +1 -1
  31. package/lib/esm/view/invoicing/customerPaymentMethod/sendInvoicingPaymentLinkEpic.js +2 -2
  32. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +4 -1
  33. package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js +4 -1
  34. package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +4 -4
  35. package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +4 -1
  36. package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingPaymentLinkEmailPreviewEpic.js +1 -1
  37. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +2 -2
  38. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionDetailPageEpic.js +8 -2
  39. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/seedInvoicingSubscriptionFormDraftEpic.js +1 -1
  40. package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailSelector.js +2 -2
  41. package/lib/esm/view/invoicing/invoiceDetail/updateInvoicingInvoiceEpic.js +1 -1
  42. package/lib/esm/view/invoicing/invoiceList/invoiceListSelector.js +1 -1
  43. package/lib/esm/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.js +4 -1
  44. package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +1 -1
  45. package/lib/esm/view/invoicing/settingsView/initializeInvoicingBrandingAddressEpic.js +1 -1
  46. package/lib/esm/view/invoicing/settingsView/submitInvoicingBrandingFormEpic.js +1 -1
  47. package/lib/tsconfig.mocks.tsbuildinfo +1 -0
  48. package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
  49. package/lib/view/addressView/addressViewSelector.d.ts +1 -1
  50. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  51. package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
  52. package/lib/view/cardBalance/cardBalanceSelector.d.ts +2 -2
  53. package/lib/view/cashBalance/cashBalanceSelector.d.ts +2 -2
  54. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
  55. package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
  56. package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewPayload.d.ts +1 -1
  57. package/lib/view/commonVendorView/vendorView/vendorViewPayload.d.ts +1 -1
  58. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.d.ts +1 -1
  59. package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.d.ts +1 -1
  60. package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +1 -1
  61. package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +1 -1
  62. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  63. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.js +1 -1
  64. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.d.ts +1 -1
  65. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +2 -2
  66. package/lib/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.d.ts +1 -1
  67. package/lib/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.js +2 -2
  68. package/lib/view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic.js +2 -1
  69. package/lib/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +1 -1
  70. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +2 -2
  71. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +18 -10
  72. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +3 -11
  73. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +15 -11
  74. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -1
  75. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  76. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  77. package/lib/view/invoicing/couponView/couponViewSelector.js +1 -1
  78. package/lib/view/invoicing/customerPaymentMethod/sendInvoicingPaymentLinkEpic.js +2 -2
  79. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewReducer.d.ts +2 -2
  80. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +4 -1
  81. package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js +4 -1
  82. package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.d.ts +1 -1
  83. package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.d.ts +3 -3
  84. package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +4 -4
  85. package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.d.ts +1 -1
  86. package/lib/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +4 -1
  87. package/lib/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingPaymentLinkEmailPreviewEpic.js +1 -1
  88. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.d.ts +1 -1
  89. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +1 -1
  90. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionDetailPageEpic.js +8 -2
  91. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/seedInvoicingSubscriptionFormDraftEpic.js +1 -1
  92. package/lib/view/invoicing/invoiceDetail/invoiceDetailReducer.d.ts +1 -1
  93. package/lib/view/invoicing/invoiceDetail/invoiceDetailSelector.js +2 -2
  94. package/lib/view/invoicing/invoiceList/invoiceListSelector.js +1 -1
  95. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.d.ts +1 -1
  96. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.js +4 -1
  97. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewSelector.d.ts +1 -1
  98. package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +1 -1
  99. package/lib/view/opExByVendor/refreshOpExByVendorReportEpic.d.ts +1 -1
  100. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
  101. package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
  102. package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
  103. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  104. package/lib/view/tasksCard/fetchTasksCardEpic.d.ts +1 -1
  105. package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
  106. package/lib/view/topEx/topExSelector.d.ts +2 -2
  107. package/package.json +1 -1
package/lib/esm/epic.js CHANGED
@@ -252,20 +252,8 @@ import { fetchGlobalMerchantRecommendationEpic, } from './view/globalMerchantVie
252
252
  import { fetchGlobalMerchantAutoCompleteViewEpic, } from './view/globalMerchantView/globalMerchantAutoCompleteView/fetchGlobalMerchantAutoCompleteViewEpic';
253
253
  import { fetchInsightsCardEpic, } from './view/insightsCard/insightsCardEpic';
254
254
  import { fetchInvoicingAuditLogEpic, } from './view/invoicing/auditView/auditViewEpics';
255
- import { fetchInvoicingPaymentLinkEmailPreviewEpic, } from './view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingPaymentLinkEmailPreviewEpic';
256
- import { fetchInvoicingPaymentLinkEmailPreviewPageEpic, } from './view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingPaymentLinkEmailPreviewPageEpic';
257
- import { seedInvoicingCustomerFormDraftEpic, } from './view/invoicing/editInvoicingCustomerDetailView/seedInvoicingCustomerFormDraftEpic';
258
- import { fetchInvoicingSubscriptionDetailPageEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionDetailPageEpic';
259
- import { seedInvoicingSubscriptionFormDraftEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/seedInvoicingSubscriptionFormDraftEpic';
260
- import { fetchInvoiceDetailPageEpic, } from './view/invoicing/invoiceDetail/fetchInvoiceDetailPageEpic';
261
- import { fetchInvoicingCouponDetailPageEpic, } from './view/invoicing/editInvoicingCouponDetailView/fetchInvoicingCouponDetailPageEpic';
262
- import { seedInvoicingCouponFormDraftEpic, } from './view/invoicing/editInvoicingCouponDetailView/seedInvoicingCouponFormDraftEpic';
263
- import { fetchInvoicingCatalogItemDetailPageEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailPageEpic';
264
- import { seedInvoicingCatalogItemFormDraftEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/seedInvoicingCatalogItemFormDraftEpic';
265
- import { runInvoicingCatalogPlanActionEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic';
266
- import { runInvoicingCatalogProductActionEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic';
267
- import { fetchInvoicingCouponListEpic, } from './view/invoicing/couponView/fetchInvoicingCouponListEpic';
268
255
  import { fetchInvoicingCouponCountsEpic } from './view/invoicing/couponView/fetchInvoicingCouponCountsEpic';
256
+ import { fetchInvoicingCouponListEpic, } from './view/invoicing/couponView/fetchInvoicingCouponListEpic';
269
257
  import { fetchInvoicingCouponListPageEpic } from './view/invoicing/couponView/fetchInvoicingCouponListPageEpic';
270
258
  import { createCreditNoteEpic } from './view/invoicing/createCreditNote/createCreditNoteEpic';
271
259
  import { createInvoiceEpic, } from './view/invoicing/createInvoice/createInvoiceEpic';
@@ -274,29 +262,46 @@ import { createInvoicingSetupIntentEpic, } from './view/invoicing/customerPaymen
274
262
  import { fetchInvoicingPlaidLinkTokenEpic } from './view/invoicing/customerPaymentMethod/fetchInvoicingPlaidLinkTokenEpic';
275
263
  import { saveInvoicingPaymentMethodEpic } from './view/invoicing/customerPaymentMethod/saveInvoicingPaymentMethodEpic';
276
264
  import { sendInvoicingPaymentLinkEpic } from './view/invoicing/customerPaymentMethod/sendInvoicingPaymentLinkEpic';
277
- import { invoicingDataImportActionEpic } from './view/invoicing/dataImportView/invoicingDataImportActionEpic';
278
- import { fetchInvoicingMigrationSessionsEpic, } from './view/invoicing/dataImportView/fetchInvoicingMigrationSessionsEpic';
279
265
  import { fetchInvoicingDataImportStatusEpic } from './view/invoicing/dataImportView/fetchInvoicingDataImportStatusEpic';
280
266
  import { fetchInvoicingMigrationDiagnosticsEpic } from './view/invoicing/dataImportView/fetchInvoicingMigrationDiagnosticsEpic';
281
267
  import { fetchInvoicingMigrationSessionEpic } from './view/invoicing/dataImportView/fetchInvoicingMigrationSessionEpic';
282
- import { runInvoicingDiscountActionEpic, } from './view/invoicing/editInvoicingCouponDetailView/runInvoicingDiscountActionEpic';
283
- import { runInvoicingDunningActionEpic, } from './view/invoicing/invoicingDunningCaseDetailView/runInvoicingDunningActionEpic';
268
+ import { fetchInvoicingMigrationSessionsEpic, } from './view/invoicing/dataImportView/fetchInvoicingMigrationSessionsEpic';
269
+ import { invoicingDataImportActionEpic } from './view/invoicing/dataImportView/invoicingDataImportActionEpic';
270
+ import { fetchInvoicingCatalogItemDetailEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic';
271
+ import { fetchInvoicingCatalogItemDetailPageEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailPageEpic';
272
+ import { runInvoicingCatalogPlanActionEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic';
273
+ import { runInvoicingCatalogProductActionEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic';
284
274
  import { saveInvoicingCatalogItemEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic';
275
+ import { seedInvoicingCatalogItemFormDraftEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/seedInvoicingCatalogItemFormDraftEpic';
276
+ import { fetchInvoicingCouponDetailEpic, } from './view/invoicing/editInvoicingCouponDetailView/fetchInvoicingCouponDetailEpic';
277
+ import { fetchInvoicingCouponDetailPageEpic, } from './view/invoicing/editInvoicingCouponDetailView/fetchInvoicingCouponDetailPageEpic';
278
+ import { runInvoicingDiscountActionEpic, } from './view/invoicing/editInvoicingCouponDetailView/runInvoicingDiscountActionEpic';
285
279
  import { saveInvoicingCouponEpic, } from './view/invoicing/editInvoicingCouponDetailView/saveInvoicingCouponEpic';
280
+ import { seedInvoicingCouponFormDraftEpic, } from './view/invoicing/editInvoicingCouponDetailView/seedInvoicingCouponFormDraftEpic';
281
+ import { addPromotionalCreditsEpic, } from './view/invoicing/editInvoicingCustomerDetailView/addPromotionalCreditsEpic';
282
+ import { fetchInvoicingCustomerDetailEpic, } from './view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailEpic';
283
+ import { fetchInvoicingCustomerDetailPageEpic, } from './view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic';
284
+ import { fetchInvoicingPaymentLinkEmailPreviewEpic, } from './view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingPaymentLinkEmailPreviewEpic';
285
+ import { fetchInvoicingPaymentLinkEmailPreviewPageEpic, } from './view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingPaymentLinkEmailPreviewPageEpic';
286
286
  import { initializeInvoicingCustomerAddressEpic } from './view/invoicing/editInvoicingCustomerDetailView/initializeInvoicingCustomerAddressEpic';
287
287
  import { saveInvoicingCustomerEpic, } from './view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic';
288
+ import { seedInvoicingCustomerFormDraftEpic, } from './view/invoicing/editInvoicingCustomerDetailView/seedInvoicingCustomerFormDraftEpic';
289
+ import { fetchInvoicingSubscriptionDetailEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionDetailEpic';
290
+ import { fetchInvoicingSubscriptionDetailPageEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionDetailPageEpic';
288
291
  import { fetchInvoicingSubscriptionFormPageEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionFormPageEpic';
289
292
  import { initializeInvoicingSubscriptionAddressEpic } from './view/invoicing/editInvoicingSubscriptionDetailView/initializeInvoicingSubscriptionAddressEpic';
293
+ import { runInvoicingSubscriptionActionEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/runInvoicingSubscriptionActionEpic';
290
294
  import { saveInvoicingSubscriptionEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic';
295
+ import { seedInvoicingSubscriptionFormDraftEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/seedInvoicingSubscriptionFormDraftEpic';
291
296
  import { syncInvoicingSubscriptionCouponsEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/syncInvoicingSubscriptionCouponsEpic';
297
+ import { fetchInvoiceDetailEpic, } from './view/invoicing/invoiceDetail/fetchInvoiceDetailEpic';
298
+ import { fetchInvoiceDetailPageEpic, } from './view/invoicing/invoiceDetail/fetchInvoiceDetailPageEpic';
292
299
  import { runInvoicingInvoiceActionEpic, } from './view/invoicing/invoiceDetail/runInvoicingInvoiceActionEpic';
293
300
  import { updateInvoicingInvoiceEpic } from './view/invoicing/invoiceDetail/updateInvoicingInvoiceEpic';
294
- import { fetchInvoiceDetailEpic, } from './view/invoicing/invoiceDetail/fetchInvoiceDetailEpic';
295
301
  import { fetchInvoiceCountsEpic, } from './view/invoicing/invoiceList/fetchInvoiceCountsEpic';
296
302
  import { fetchInvoiceKPIsEpic, } from './view/invoicing/invoiceList/fetchInvoiceKPIsEpic';
297
303
  import { fetchInvoiceListEpic, } from './view/invoicing/invoiceList/fetchInvoiceListEpic';
298
304
  import { fetchInvoiceListPageEpic, } from './view/invoicing/invoiceList/fetchInvoiceListPageEpic';
299
- import { fetchInvoicingCatalogItemDetailEpic, } from './view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic';
300
305
  import { fetchInvoicingCatalogCountsEpic } from './view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogCountsEpic';
301
306
  import { fetchInvoicingCatalogListPageEpic, } from './view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogListPageEpic';
302
307
  import { fetchInvoicingCatalogPlanListEpic } from './view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic';
@@ -304,20 +309,18 @@ import { fetchInvoicingCatalogProductListEpic } from './view/invoicing/invoicing
304
309
  import { acceptInvoicingTermsEpic } from './view/invoicing/invoicingConfigView/epics/acceptInvoicingTermsEpic';
305
310
  import { enableInvoicingEpic } from './view/invoicing/invoicingConfigView/epics/enableInvoicingEpic';
306
311
  import { fetchInvoicingConfigEpic, } from './view/invoicing/invoicingConfigView/epics/fetchInvoicingConfigEpic';
307
- import { fetchInvoicingCouponDetailEpic, } from './view/invoicing/editInvoicingCouponDetailView/fetchInvoicingCouponDetailEpic';
308
312
  import { fetchInvoicingCreditNoteDetailEpic, } from './view/invoicing/invoicingCreditNoteDetailView/invoicingCreditNoteDetailViewEpics';
309
313
  import { fetchInvoicingCreditNoteCountsEpic } from './view/invoicing/invoicingCreditNoteListView/epics/fetchInvoicingCreditNoteCountsEpic';
310
314
  import { fetchInvoicingCreditNoteListEpic } from './view/invoicing/invoicingCreditNoteListView/epics/fetchInvoicingCreditNoteListEpic';
311
315
  import { fetchInvoicingCreditNoteListPageEpic, } from './view/invoicing/invoicingCreditNoteListView/epics/fetchInvoicingCreditNoteListPageEpic';
312
- import { fetchInvoicingCustomerDetailEpic, } from './view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailEpic';
313
- import { fetchInvoicingCustomerDetailPageEpic, } from './view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic';
314
316
  import { fetchInvoicingCustomerCountsEpic } from './view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerCountsEpic';
315
317
  import { fetchInvoicingCustomerListEpic } from './view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListEpic';
316
318
  import { fetchInvoicingCustomerListPageEpic, } from './view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListPageEpic';
319
+ import { fetchInvoicingDunningCaseDetailEpic, } from './view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningCaseDetailEpic';
320
+ import { fetchInvoicingDunningCaseDetailPageEpic, } from './view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningCaseDetailPageEpic';
317
321
  import { fetchInvoicingDunningEmailPreviewEpic } from './view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningEmailPreviewEpic';
318
322
  import { fetchInvoicingDunningEmailPreviewPageEpic } from './view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningEmailPreviewPageEpic';
319
- import { fetchInvoicingDunningCaseDetailPageEpic, } from './view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningCaseDetailPageEpic';
320
- import { fetchInvoicingDunningCaseDetailEpic, } from './view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningCaseDetailEpic';
323
+ import { runInvoicingDunningActionEpic, } from './view/invoicing/invoicingDunningCaseDetailView/runInvoicingDunningActionEpic';
321
324
  import { fetchInvoicingDunningCaseCountsEpic } from './view/invoicing/invoicingDunningCaseListView/epics/fetchInvoicingDunningCaseCountsEpic';
322
325
  import { fetchInvoicingDunningCaseListEpic } from './view/invoicing/invoicingDunningCaseListView/epics/fetchInvoicingDunningCaseListEpic';
323
326
  import { fetchInvoicingDunningCaseListPageEpic, } from './view/invoicing/invoicingDunningCaseListView/epics/fetchInvoicingDunningCaseListPageEpic';
@@ -333,16 +336,14 @@ import { fetchInvoicingQboConnectionEpic } from './view/invoicing/invoicingQboVi
333
336
  import { fetchInvoicingQboSyncHealthEpic } from './view/invoicing/invoicingQboView/epics/fetchInvoicingQboSyncHealthEpic';
334
337
  import { retryInvoicingQboSyncTaskEpic } from './view/invoicing/invoicingQboView/epics/retryInvoicingQboSyncTaskEpic';
335
338
  import { startInvoicingQboBackfillEpic } from './view/invoicing/invoicingQboView/epics/startInvoicingQboBackfillEpic';
336
- import { fetchInvoicingSubscriptionDetailEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionDetailEpic';
337
339
  import { fetchInvoicingSubscriptionCountsEpic } from './view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionCountsEpic';
338
340
  import { fetchInvoicingSubscriptionListEpic } from './view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListEpic';
339
341
  import { fetchInvoicingSubscriptionListPageEpic, } from './view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListPageEpic';
340
342
  import { fetchInvoicingTransactionDetailEpic, } from './view/invoicing/invoicingTransactionDetailView/invoicingTransactionDetailViewEpics';
343
+ import { runInvoicingPaymentActionEpic, } from './view/invoicing/invoicingTransactionDetailView/runInvoicingPaymentActionEpic';
341
344
  import { fetchInvoicingTransactionListEpic } from './view/invoicing/invoicingTransactionListView/epics/fetchInvoicingTransactionListEpic';
342
345
  import { fetchInvoicingTransactionListPageEpic, } from './view/invoicing/invoicingTransactionListView/epics/fetchInvoicingTransactionListPageEpic';
343
346
  import { issueCreditNoteEpic } from './view/invoicing/issueCreditNote/issueCreditNoteEpic';
344
- import { runInvoicingPaymentActionEpic, } from './view/invoicing/invoicingTransactionDetailView/runInvoicingPaymentActionEpic';
345
- import { addPromotionalCreditsEpic, } from './view/invoicing/editInvoicingCustomerDetailView/addPromotionalCreditsEpic';
346
347
  import { recordPaymentEpic, } from './view/invoicing/recordPayment/recordPaymentEpic';
347
348
  import { connectInvoicingStripeEpic } from './view/invoicing/settingsView/epics/connectInvoicingStripeEpic';
348
349
  import { disconnectInvoicingStripeEpic } from './view/invoicing/settingsView/epics/disconnectInvoicingStripeEpic';
@@ -351,7 +352,6 @@ import { saveInvoicingSettingsEpic } from './view/invoicing/settingsView/epics/s
351
352
  import { submitInvoicingQboSettingsEpic } from './view/invoicing/settingsView/epics/submitInvoicingQboSettingsEpic';
352
353
  import { initializeInvoicingBrandingAddressEpic } from './view/invoicing/settingsView/initializeInvoicingBrandingAddressEpic';
353
354
  import { submitInvoicingBrandingFormEpic } from './view/invoicing/settingsView/submitInvoicingBrandingFormEpic';
354
- import { runInvoicingSubscriptionActionEpic, } from './view/invoicing/editInvoicingSubscriptionDetailView/runInvoicingSubscriptionActionEpic';
355
355
  import { fetchMonthClosePerformanceTrendEpic, } from './view/monthEndCloseChecksView/epics/fetchMonthClosePerformanceTrendEpic';
356
356
  import { fetchMonthEndCloseChecksEpic, } from './view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic';
357
357
  import { fetchNetBurnOrIncomeWithForecastEpic, waitForForecastListThenFetchNetBurnOrIncomeWithForecastEpic, } from './view/netBurnOrIncome/fetchNetBurnOrIncomeWithForecastEpic';
@@ -6,8 +6,8 @@ import { getAttachmentFileByFileId } from '../../../entity/file/fileSelector';
6
6
  import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
7
7
  import { createZeniAPIStatus, isSuccessStatus } from '../../../responsePayload';
8
8
  import { dateNow, getBusinessDayOfDate } from '../../../zeniDayJS';
9
- import { buildMonthEndTemplateData } from '../monthEndTemplateData';
10
9
  import { saveCompanyMonthEndReport, updateCompanyMonthEndReportDataOnSaveSuccess, updateStatusForCompanyMonthEndReportOnSaveFailure, } from '../companyMonthEndReportViewReducer';
10
+ import { buildMonthEndTemplateData } from '../monthEndTemplateData';
11
11
  export const saveCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(saveCompanyMonthEndReport.match), mergeMap((action) => {
12
12
  const { agentInsightEdits, companyId, recipientEmailList, subject, isPreview, fileId, zeniRequestsHtml, tenantId, } = action.payload;
13
13
  const state = state$.value;
@@ -7,8 +7,8 @@ import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
7
7
  import { createZeniAPIStatus, isSuccessStatus } from '../../../responsePayload';
8
8
  import { dateNow, getBusinessDayOfDate } from '../../../zeniDayJS';
9
9
  import { updateMetaDataOnSendMonthEndReport } from '../../companyView/companyViewReducer';
10
- import { buildMonthEndTemplateData } from '../monthEndTemplateData';
11
10
  import { sendCompanyMonthEndReport, updateStatusForSendCompanyMonthEndReport, } from '../companyMonthEndReportViewReducer';
11
+ import { buildMonthEndTemplateData } from '../monthEndTemplateData';
12
12
  export const sendCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(sendCompanyMonthEndReport.match), mergeMap((action) => {
13
13
  const { companyId, fileId, tenantId } = action.payload;
14
14
  const state = state$.value;
@@ -4,8 +4,8 @@ import { convertToPeriod, toAbsoluteDay, } from '../../../../../commonStateTypes
4
4
  import { updateJEOneTimeAccruals } from '../../../../../entity/jeSchedules/jeSchedulesReducer';
5
5
  import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
6
6
  import { getCurrentTenant } from '../../../../../entity/tenant/tenantSelector';
7
- import { clearAll } from '../../../../../rootActions';
8
7
  import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
8
+ import { clearAll } from '../../../../../rootActions';
9
9
  import { prepareCreateOneTimeAccrualPayload, } from '../../../payload/jeSchedulesPayload';
10
10
  import { createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, fetchJeSchedules, } from '../../../reducers/jeSchedulesViewReducer';
11
11
  export const createOneTimeAccrualEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(createOneTimeAccrual.match), mergeMap((action) => {
@@ -1,13 +1,13 @@
1
1
  import { from } from 'rxjs';
2
2
  import { catchError, filter, mergeMap, takeUntil } from 'rxjs/operators';
3
3
  import { convertToPeriod, toAbsoluteDay, } from '../../../../../commonStateTypes/timePeriod';
4
- import { getCurrentTenant } from '../../../../../entity/tenant/tenantSelector';
5
- import { clearAll } from '../../../../../rootActions';
6
4
  import { updateJESchedules, updateJESchedulesDetails, } from '../../../../../entity/jeSchedules/jeSchedulesReducer';
7
5
  import { getJEScheduleTransactionKey } from '../../../../../entity/jeSchedules/jeSchedulesTypes';
8
6
  import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
7
+ import { getCurrentTenant } from '../../../../../entity/tenant/tenantSelector';
9
8
  import { getScheduleTransactionById } from '../../../../../entity/transaction/transactionSelector';
10
9
  import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
10
+ import { clearAll } from '../../../../../rootActions';
11
11
  import { prepareNewSchedulePayload, } from '../../../helpers/newScheduleLocalDataHelper';
12
12
  import { fetchJeSchedules, resetNewScheduleLocalData, saveNewSchedule, saveNewScheduleFailure, saveNewScheduleSuccess, } from '../../../reducers/jeSchedulesViewReducer';
13
13
  const FAILURE_REASON_MESSAGES = {
@@ -2,8 +2,8 @@ import { from } from 'rxjs';
2
2
  import { catchError, filter, mergeMap, takeUntil } from 'rxjs/operators';
3
3
  import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
4
4
  import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
5
- import { clearAll } from '../../../../rootActions';
6
5
  import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
6
+ import { clearAll } from '../../../../rootActions';
7
7
  import { fetchMonthEndCloseChecks } from '../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer';
8
8
  import { removeJeAccruedScheduleKey, removeJeScheduleTransactionKey, revertJeSchedule, revertJeScheduleFailure, revertJeScheduleSuccess, } from '../../reducers/jeSchedulesViewReducer';
9
9
  /**
@@ -22,7 +22,7 @@ import { removeJeAccruedScheduleKey, removeJeScheduleTransactionKey, revertJeSch
22
22
  export const revertJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(revertJeSchedule.match), mergeMap((action) => {
23
23
  const state = state$.value;
24
24
  const { expenseAutomationViewState: { selectedPeriodByTenantId }, } = state;
25
- const { jeScheduleId, jeScheduleTransactionKey, reason, note, scheduleType } = action.payload;
25
+ const { jeScheduleId, jeScheduleTransactionKey, reason, note, scheduleType, } = action.payload;
26
26
  const currentTenant = getCurrentTenant(state);
27
27
  const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
28
28
  // Feedback nested under je_schedules[0], the same shape ignore takes -- the two endpoints were
@@ -27,7 +27,8 @@ export const backgroundRefetchReviewTabEpic = (actions$, state$, zeniAPI) => act
27
27
  page_token: pageToken,
28
28
  page_size: PAGE_SIZE,
29
29
  search_text: reviewUiState.searchString,
30
- transaction_group: state.expenseAutomationTransactionsViewState.selectedTransactionGroup,
30
+ transaction_group: state.expenseAutomationTransactionsViewState
31
+ .selectedTransactionGroup,
31
32
  };
32
33
  return zeniAPI.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/expense-automation/transactions?query=${encodeURIComponent(JSON.stringify(queryParam))}`);
33
34
  };
@@ -1,6 +1,6 @@
1
1
  import { toAmount } from '../../../commonStateTypes/amount';
2
- import { DEFAULT_DATE_FORMAT } from '../../../commonStateTypes/timePeriod';
3
2
  import { MONTH_YEAR_FORMAT } from '../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY';
3
+ import { DEFAULT_DATE_FORMAT } from '../../../commonStateTypes/timePeriod';
4
4
  import { LAST_SCHEDULE_DAY_OF_MONTH } from '../../../commonStateTypes/timePeriod';
5
5
  import { getPostingDateAndStatusForIndex } from '../../scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper';
6
6
  import { mapScheduleTransactionToBaseScheduleTransactionPayload, } from '../../scheduleView/scheduleDetailView/scheduleDetailPayload';
@@ -20,8 +20,8 @@ export function resolveCombinedStatementGroupId(accountRecon) {
20
20
  return (accountRecon?.combinedStatementGroupId ??
21
21
  accountRecon?.parsedStatementData?.statementUpload.statementMeta
22
22
  .combinedStatementGroupId ??
23
- accountRecon?.parsedStatementData?.statementUpload
24
- .combinedStatementDetails?.combinedStatementGroupId ??
23
+ accountRecon?.parsedStatementData?.statementUpload.combinedStatementDetails
24
+ ?.combinedStatementGroupId ??
25
25
  '');
26
26
  }
27
27
  export const isReviewTransactionBillPaymentType = (transaction) => {
@@ -1,4 +1,3 @@
1
- import { reduceAnyFetchState } from '../../../commonStateTypes/reduceFetchState';
2
1
  import { toMonthYearPeriodId } from '../../../commonStateTypes/timePeriod';
3
2
  import { getAccountBase } from '../../../entity/account/accountSelector';
4
3
  import { getClassById } from '../../../entity/class/classSelector';
@@ -7,7 +6,7 @@ import { getUserByUserId } from '../../../entity/user/userSelector';
7
6
  import { getVendorByVendorId } from '../../../entity/vendor/vendorSelector';
8
7
  import { getAllSteps } from './getAllStepsHelper';
9
8
  export function getExpenseAutomationFluxAnalysisView(state) {
10
- const { expenseAutomationFluxAnalysisViewState, monthEndCloseChecksState, monthEndCloseChecksViewState, } = state;
9
+ const { expenseAutomationFluxAnalysisViewState, monthEndCloseChecksState } = state;
11
10
  const { fetchState, error, lastRefreshSuccessTime, refreshStatus, uiState, reviewOperatingExpenseIdsByPeriod, selectedSectionIdsByPeriod, groupsBySelectedPeriod, fluxAnalysisEntities, bulkReviewStatus, currency, totalBalancesAndVariance, } = expenseAutomationFluxAnalysisViewState;
12
11
  const fetchStateAndError = {
13
12
  fetchState,
@@ -92,17 +91,26 @@ export function getExpenseAutomationFluxAnalysisView(state) {
92
91
  },
93
92
  };
94
93
  const completionStatus = fluxCompletionStatus != null ? fluxCompletionStatus : 'incomplete';
95
- const monthEndFetchState = monthYearPeriodId != null
96
- ? (monthEndCloseChecksViewState.monthEndCloseChecksViewByTenantId[currentTenant.tenantId]?.[monthYearPeriodId] ?? { fetchState: 'Not-Started', error: undefined })
97
- : { fetchState: 'Not-Started', error: undefined };
98
- const reducedFetchStatus = reduceAnyFetchState([
99
- fetchStateAndError,
100
- monthEndFetchState,
101
- ]);
94
+ const groupsForSelectedPeriod = monthYearPeriodId != null
95
+ ? groupsBySelectedPeriod[monthYearPeriodId]
96
+ : undefined;
97
+ /**
98
+ * `fetchState` is a flat slice field that survives a period switch, so it still reads
99
+ * 'Completed' before the newly selected period has been requested. The per-period group is
100
+ * created by the fetch's own request reducer, so its absence means "not requested yet for this
101
+ * period" -- report 'Not-Started' so the table keeps its skeleton instead of rendering the
102
+ * previous period's rows during the transition.
103
+ *
104
+ * This used to fall out of merging in the month-close/checks fetch state, which also coupled
105
+ * the tab's first load to an unrelated request that resolves 6-12s later.
106
+ */
107
+ const fetchStatus = fetchState === 'Completed' && groupsForSelectedPeriod == null
108
+ ? { fetchState: 'Not-Started', error: undefined }
109
+ : fetchStateAndError;
102
110
  return {
103
111
  sections,
104
112
  totalBalancesAndVariance,
105
- fetchStatus: reducedFetchStatus,
113
+ fetchStatus,
106
114
  bulkReviewStatus,
107
115
  reviewOperatingExpensesIds,
108
116
  selectedSectionIds,
@@ -1,6 +1,5 @@
1
1
  import omit from 'lodash/omit';
2
2
  import orderBy from 'lodash/orderBy';
3
- import { reduceAnyFetchState } from '../../../commonStateTypes/reduceFetchState';
4
3
  import { LAST_SCHEDULE_DAY_OF_MONTH, toMonthYearPeriodId, } from '../../../commonStateTypes/timePeriod';
5
4
  import { getAccountIdsForTypes } from '../../../entity/account/accountSelector';
6
5
  import { generateJEOneTimeAccrualKey } from '../../../entity/jeSchedules/jeScheduleHelper';
@@ -210,7 +209,7 @@ export function getExpenseAutomationJESchedulesView(state) {
210
209
  const failedJeScheduledTransaction = [];
211
210
  const accruedSchedules = [];
212
211
  const oneTimeAccruals = [];
213
- const { accountState, accountListState, classState, classListState, expenseAutomationJESchedulesViewState, expenseAutomationViewState, monthEndCloseChecksState, monthEndCloseChecksViewState, } = state;
212
+ const { accountState, accountListState, classState, classListState, expenseAutomationJESchedulesViewState, expenseAutomationViewState, monthEndCloseChecksState, } = state;
214
213
  const { jeScheduleTransactionKeysByPeriodAndTab, jeScheduleAccruedKeysByPeriodAndTab, jeScheduleOneTimeAccrualKeysByPeriodAndTab, failedJeScheduleTransactionKeysByPeriodAndTab, jeScheduleLocalDataById, postStatusById, ignoreStatusById, revertStatusById, oneTimeAccrualActionStatusById, uiState, error, fetchState, refreshStatus, newSchedule, } = expenseAutomationJESchedulesViewState;
215
214
  const accountSettingsView = getJEAccountSettingsView(state);
216
215
  const newScheduleView = newSchedule.selectedDetailScheduleType === 'fixed_assets' ||
@@ -401,13 +400,6 @@ export function getExpenseAutomationJESchedulesView(state) {
401
400
  : [];
402
401
  const jeCompletionStatus = allSteps.find((step) => step.step === 'je_schedules')?.completionStatus;
403
402
  const completionStatus = jeCompletionStatus != null ? jeCompletionStatus : 'incomplete';
404
- const monthEndFetchState = monthYearPeriodId != null
405
- ? (monthEndCloseChecksViewState.monthEndCloseChecksViewByTenantId[currentTenant.tenantId]?.[monthYearPeriodId] ?? { fetchState: 'Not-Started', error: undefined })
406
- : { fetchState: 'Not-Started', error: undefined };
407
- const reducedFetchStatus = reduceAnyFetchState([
408
- { fetchState, error },
409
- monthEndFetchState,
410
- ]);
411
403
  const countByType = (schedules) => {
412
404
  const counts = ALL_SCHEDULES_TYPES.reduce((acc, type) => ({ ...acc, [type]: 0 }), {});
413
405
  schedules.forEach((schedule) => {
@@ -445,10 +437,10 @@ export function getExpenseAutomationJESchedulesView(state) {
445
437
  ignoreStatusById: ignoreStatusById,
446
438
  revertStatusById: revertStatusById,
447
439
  oneTimeAccrualActionStatusById: oneTimeAccrualActionStatusById,
448
- fetchState: reducedFetchStatus.fetchState,
440
+ fetchState,
449
441
  jeScheduleLocalDataById: jeScheduleLocalDataById,
450
442
  uiState: uiState,
451
- error: reducedFetchStatus.error,
443
+ error,
452
444
  refreshStatus,
453
445
  completionStatus,
454
446
  };
@@ -1,5 +1,4 @@
1
1
  import orderBy from 'lodash/orderBy';
2
- import { reduceAnyFetchState } from '../../../commonStateTypes/reduceFetchState';
3
2
  import { toMonthYearPeriodId } from '../../../commonStateTypes/timePeriod';
4
3
  import { getCurrentTenant } from '../../../entity/tenant/tenantSelector';
5
4
  import { getSupportedTransactionById, getSupportedTransactionsByIds, } from '../../../entity/transaction/transactionSelector';
@@ -8,7 +7,7 @@ import { getCompletedTransactionsCacheKey } from '../reducers/missingReceiptsVie
8
7
  import { isUnmatchedTabFileStatus, } from '../types/missingReceiptsViewState';
9
8
  import { getAllSteps } from './getAllStepsHelper';
10
9
  export function getExpenseAutomationMissingReceiptsView(state) {
11
- const { expenseAutomationMissingReceiptsViewState, expenseAutomationViewState, transactionState, monthEndCloseChecksState, monthEndCloseChecksViewState, } = state;
10
+ const { expenseAutomationMissingReceiptsViewState, expenseAutomationViewState, transactionState, monthEndCloseChecksState, } = state;
12
11
  const currentTenant = getCurrentTenant(state);
13
12
  const { selectedPeriodByTenantId } = expenseAutomationViewState;
14
13
  const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
@@ -176,16 +175,21 @@ export function getExpenseAutomationMissingReceiptsView(state) {
176
175
  vendorLogo: result.vendorLogo ?? transaction?.logo?.href,
177
176
  };
178
177
  });
179
- const monthEndFetchState = monthYearPeriodId != null
180
- ? (monthEndCloseChecksViewState.monthEndCloseChecksViewByTenantId[currentTenant.tenantId]?.[monthYearPeriodId] ?? { fetchState: 'Not-Started', error: undefined })
181
- : { fetchState: 'Not-Started', error: undefined };
182
- const reducedFetchStatus = reduceAnyFetchState([
183
- { fetchState, error },
184
- monthEndFetchState,
185
- ]);
178
+ /**
179
+ * `fetchState` is a flat slice field that survives a period switch, so it still reads
180
+ * 'Completed' before the newly selected period's ids land. Report 'Not-Started' until they do,
181
+ * so the table keeps its skeleton rather than flashing the "all done" empty state over the
182
+ * previous period's rows.
183
+ *
184
+ * This used to fall out of merging in the month-close/checks fetch state, which also coupled
185
+ * the tab's first load to an unrelated request that resolves 6-12s later.
186
+ */
187
+ const fetchStatus = fetchState === 'Completed' && transactionIdsForSelectedPeriod == null
188
+ ? { fetchState: 'Not-Started', error: undefined }
189
+ : { fetchState, error };
186
190
  return {
187
- fetchState: reducedFetchStatus.fetchState,
188
- error: reducedFetchStatus.error,
191
+ fetchState: fetchStatus.fetchState,
192
+ error: fetchStatus.error,
189
193
  uploadReceiptStatusById,
190
194
  uiState,
191
195
  refreshStatus,
@@ -1,6 +1,6 @@
1
1
  import { createSelector } from '@reduxjs/toolkit';
2
- import { runningInvoicingActionId } from '../runningInvoicingActionId';
3
2
  import { invoicingTabIdsFromConfig } from '../invoicingTabHelper';
3
+ import { runningInvoicingActionId } from '../runningInvoicingActionId';
4
4
  import { ALL_INVOICING_COUPON_TAB_IDS, INVOICING_COUPON_COLUMNS, } from './couponViewState';
5
5
  export const getInvoicingCouponListItems = (state) => state.invoicingCouponViewState.ids
6
6
  .map((id) => state.invoicingCouponState.couponByID[id])
@@ -1,7 +1,7 @@
1
1
  import { of } from 'rxjs';
2
2
  import { catchError, filter, switchMap } from 'rxjs/operators';
3
3
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
4
- import { withQuery, } from '../invoicingApiHelper';
4
+ import { withQuery } from '../invoicingApiHelper';
5
5
  import { fetchInvoicingCouponCounts, updateInvoicingCouponCounts, updateInvoicingCouponCountsFailure, } from './couponViewReducer';
6
6
  /**
7
7
  * Fetch unless the endpoint is already loaded or in flight — or always when the
@@ -5,7 +5,7 @@ import { sendInvoicingPaymentLink, sendInvoicingPaymentLinkFailure, sendInvoicin
5
5
  export const sendInvoicingPaymentLinkEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(sendInvoicingPaymentLink.match), mergeMap((action) => {
6
6
  const { body, customerId, email, subject } = action.payload;
7
7
  const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/customers/${encodeURIComponent(customerId)}/payment-link`;
8
- return zeniAPI
8
+ return (zeniAPI
9
9
  // subject/body are omitted rather than sent empty, so the backend
10
10
  // falls back to its own defaults for anything the user left alone.
11
11
  .postAndGetJSON(apiUrl, {
@@ -22,5 +22,5 @@ export const sendInvoicingPaymentLinkEpic = (actions$, _state$, zeniAPI) => acti
22
22
  }
23
23
  return of(sendInvoicingPaymentLinkFailure(response.status));
24
24
  }), catchError((error) => of(sendInvoicingPaymentLinkFailure(createZeniAPIStatus('Unexpected Error', 'Send payment link REST API call errored out ' +
25
- JSON.stringify(error))))));
25
+ JSON.stringify(error)))))));
26
26
  }));
@@ -13,7 +13,10 @@ export const fetchInvoicingCatalogItemDetailEpic = (actions$, _state$, zeniAPI)
13
13
  updateInvoicingCatalogItemDetail({ id: response.data.id, kind }),
14
14
  ];
15
15
  }
16
- return of(updateInvoicingCatalogItemDetailFailure({ error: response.status, id }));
16
+ return of(updateInvoicingCatalogItemDetailFailure({
17
+ error: response.status,
18
+ id,
19
+ }));
17
20
  }), catchError((error) => of(updateInvoicingCatalogItemDetailFailure({
18
21
  error: createZeniAPIStatus('Unexpected Error', 'Fetch catalog item detail REST API call errored out ' +
19
22
  JSON.stringify(error)),
@@ -61,7 +61,10 @@ const editInvoicingCouponDetailView = createSlice({
61
61
  },
62
62
  prepare(payload) {
63
63
  return {
64
- payload: { cacheOverride: payload.cacheOverride ?? false, id: payload.id },
64
+ payload: {
65
+ cacheOverride: payload.cacheOverride ?? false,
66
+ id: payload.id,
67
+ },
65
68
  };
66
69
  },
67
70
  },
@@ -1,13 +1,13 @@
1
1
  import { reduceAllFetchState } from '../../../commonStateTypes/reduceFetchState';
2
- import { getInvoicingCustomerById } from '../../../entity/invoicing/invoicingCustomer/invoicingCustomerSelector';
3
- import { getFormattedAddress } from '../../addressView/addressViewSelector';
4
- import { getInvoicingConfigView, invoicingFieldHelpForGroup, } from '../invoicingConfigView/invoicingConfigViewSelector';
5
- import { INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE, initialInvoicingCustomerFormLocalData, } from './invoicingCustomerFormConfig';
6
2
  import { getInvoicesByIds } from '../../../entity/invoicing/invoice/invoiceSelector';
3
+ import { getInvoicingCustomerById } from '../../../entity/invoicing/invoicingCustomer/invoicingCustomerSelector';
7
4
  import { invoicingCustomerPaymentMethods } from '../../../entity/invoicing/invoicingCustomer/invoicingCustomerSelector';
5
+ import { getFormattedAddress } from '../../addressView/addressViewSelector';
8
6
  import { getInvoicingPaymentLinkSendState, getInvoicingPaymentMethodSaveState, getInvoicingPlaidLinkToken, getInvoicingPlaidLinkTokenFetchState, getInvoicingSentPaymentLinkEmail, getInvoicingSentPaymentLinkMagicUrl, getInvoicingSetupIntent, getInvoicingSetupIntentFetchState, } from '../customerPaymentMethod/customerPaymentMethodSelector';
7
+ import { getInvoicingConfigView, invoicingFieldHelpForGroup, } from '../invoicingConfigView/invoicingConfigViewSelector';
9
8
  import { isStripeConnectedFromSettings } from '../settingsView/invoicingSettingsHelpers';
10
9
  import { getInvoicingSettings } from '../settingsView/settingsViewSelector';
10
+ import { INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE, initialInvoicingCustomerFormLocalData, } from './invoicingCustomerFormConfig';
11
11
  /**
12
12
  * `invoicingCustomerID` is absent in create mode, where there is no record to
13
13
  * resolve — the view still renders, off an empty record.
@@ -46,6 +46,9 @@ export const fetchInvoicingCustomerDetailPageEpic = (actions$, state$) => action
46
46
  // preview on first paint. Deliberately not part of the page's fetch
47
47
  // state — the page must not wait on it, and its own guard makes the
48
48
  // later open a no-op.
49
- pageActions.push(fetchInvoicingPaymentLinkEmailPreviewPage({ cacheOverride, customerId: id }));
49
+ pageActions.push(fetchInvoicingPaymentLinkEmailPreviewPage({
50
+ cacheOverride,
51
+ customerId: id,
52
+ }));
50
53
  return concat(from(pageActions));
51
54
  }));
@@ -1,8 +1,8 @@
1
1
  import { of } from 'rxjs';
2
2
  import { catchError, filter, map, switchMap } from 'rxjs/operators';
3
3
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
4
- import { fetchInvoicingPaymentLinkEmailPreview, updateInvoicingPaymentLinkEmailPreview, updateInvoicingPaymentLinkEmailPreviewFailure, } from './editInvoicingCustomerDetailViewReducer';
5
4
  import { toInvoicingPaymentLinkEmailPreview, } from './editInvoicingCustomerDetailViewPayload';
5
+ import { fetchInvoicingPaymentLinkEmailPreview, updateInvoicingPaymentLinkEmailPreview, updateInvoicingPaymentLinkEmailPreviewFailure, } from './editInvoicingCustomerDetailViewReducer';
6
6
  /**
7
7
  * Renders the payment-link email once, server-side, with sentinel tokens where
8
8
  * the subject and body go. The composer splices the draft into those tokens as
@@ -1,12 +1,12 @@
1
1
  import { reduceAllFetchState } from '../../../commonStateTypes/reduceFetchState';
2
2
  import { getInvoicingSubscriptionById } from '../../../entity/invoicing/invoicingSubscription/invoicingSubscriptionSelector';
3
- import { initialInvoicingSubscriptionFormLocalData } from './invoicingSubscriptionFormConfig';
4
3
  import { getFormattedAddress } from '../../addressView/addressViewSelector';
5
4
  import { getInvoicingCouponListItems } from '../couponView/couponViewSelector';
6
5
  import { getInvoicingCatalogListView, getInvoicingCatalogPrices, } from '../invoicingCatalogListView/invoicingCatalogListViewSelector';
7
6
  import { getInvoicingConfigView, invoicingFieldHelpForGroup, } from '../invoicingConfigView/invoicingConfigViewSelector';
8
7
  import { getInvoicingCustomerListView } from '../invoicingCustomerListView/invoicingCustomerListViewSelector';
9
- import { INVOICING_SUBSCRIPTION_SHIPPING_ADDRESS_TYPE, } from './invoicingSubscriptionFormConfig';
8
+ import { initialInvoicingSubscriptionFormLocalData } from './invoicingSubscriptionFormConfig';
9
+ import { INVOICING_SUBSCRIPTION_SHIPPING_ADDRESS_TYPE } from './invoicingSubscriptionFormConfig';
10
10
  export const getEditInvoicingSubscriptionDetailViewState = (state, invoicingSubscriptionID) => {
11
11
  const { error, fetchState, savedSubscriptionId } = state.editInvoicingSubscriptionDetailViewState;
12
12
  const { subscriptionCommercialEditAllowedFromStatuses, subscriptionLifecycleActionOptions, subscriptionMetadataEditAllowedFromStatuses, } = getInvoicingConfigView(state);
@@ -38,14 +38,20 @@ export const fetchInvoicingSubscriptionDetailPageEpic = (actions$, state$) => ac
38
38
  // Plan and coupon lists back the names the page renders for its line
39
39
  // items; both list slices cache, so this only refetches when asked to.
40
40
  const catalogListState = state.invoicingCatalogListViewState;
41
- if (shouldFetch({ error: catalogListState.error, fetchState: catalogListState.fetchState }, cacheOverride)) {
41
+ if (shouldFetch({
42
+ error: catalogListState.error,
43
+ fetchState: catalogListState.fetchState,
44
+ }, cacheOverride)) {
42
45
  pageActions.push(fetchInvoicingCatalogPlanList({
43
46
  filters: { type: 'plan' },
44
47
  keepExistingListItems: false,
45
48
  }));
46
49
  }
47
50
  const couponListState = state.invoicingCouponViewState;
48
- if (shouldFetch({ error: couponListState.error, fetchState: couponListState.fetchState }, cacheOverride)) {
51
+ if (shouldFetch({
52
+ error: couponListState.error,
53
+ fetchState: couponListState.fetchState,
54
+ }, cacheOverride)) {
49
55
  pageActions.push(fetchInvoicingCouponList({ filters: {}, keepExistingListItems: false }));
50
56
  }
51
57
  return pageActions.length > 0 ? from(pageActions) : EMPTY;
@@ -1,8 +1,8 @@
1
1
  import { EMPTY, of } from 'rxjs';
2
2
  import { filter, mergeMap, withLatestFrom } from 'rxjs/operators';
3
3
  import { seedInvoicingSubscriptionFormDraft, updateInvoicingSubscriptionDetail, } from './editInvoicingSubscriptionDetailViewReducer';
4
- import { entityToInvoicingSubscriptionFormLocalData } from './invoicingSubscriptionFormConfig';
5
4
  import { getInvoicingSubscriptionById } from './invoicingSubscriptionDetailHelper';
5
+ import { entityToInvoicingSubscriptionFormLocalData } from './invoicingSubscriptionFormConfig';
6
6
  /**
7
7
  * Seeds the edit draft from the record the moment the detail fetch lands, so
8
8
  * the form has its values before it mounts. The reducer ignores the seed when a
@@ -27,8 +27,8 @@ export const getInvoiceDetail = (state, invoiceId) => {
27
27
  shippingAddress: invoice?.shippingAddressId != null
28
28
  ? getAddressByAddressId(state.addressState, invoice.shippingAddressId)
29
29
  : undefined,
30
- actionState: (state.invoicingInvoiceDetailState.actionStateByInvoiceId[invoiceId] ??
31
- NOT_STARTED_ACTION),
30
+ actionState: state.invoicingInvoiceDetailState.actionStateByInvoiceId[invoiceId] ??
31
+ NOT_STARTED_ACTION,
32
32
  fetchState: detail?.fetchState ?? 'Not-Started',
33
33
  error: detail?.error,
34
34
  version: 1.0,
@@ -5,7 +5,7 @@ import { extractInvoicingInvoiceAddresses } from '../../../entity/invoicing/invo
5
5
  import { updateInvoices } from '../../../entity/invoicing/invoice/invoiceReducer';
6
6
  import { apiErrorSnackbarVariables } from '../../../entity/snackbar/snackbarApiError';
7
7
  import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
8
- import { createZeniAPIStatus, isSuccessResponse, } from '../../../responsePayload';
8
+ import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
9
9
  import { runInvoicingInvoiceActionFailure, runInvoicingInvoiceActionSuccess, updateInvoicingInvoice, } from './invoiceDetailReducer';
10
10
  export const updateInvoicingInvoiceEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(updateInvoicingInvoice.match), mergeMap((action) => {
11
11
  const { data, invoiceId } = action.payload;
@@ -1,6 +1,6 @@
1
1
  import { createSelector } from '@reduxjs/toolkit';
2
- import { runningInvoicingActionId } from '../runningInvoicingActionId';
3
2
  import { invoicingTabIdsFromConfig } from '../invoicingTabHelper';
3
+ import { runningInvoicingActionId } from '../runningInvoicingActionId';
4
4
  import { ALL_INVOICING_INVOICE_TAB_IDS, makeInvoiceTabState, } from './invoiceListState';
5
5
  /**
6
6
  * Bundled read view for the invoices list page: the denormalized invoice rows
@@ -44,7 +44,10 @@ const invoicingDunningCaseDetailView = createSlice({
44
44
  },
45
45
  prepare(payload) {
46
46
  return {
47
- payload: { cacheOverride: payload.cacheOverride ?? false, id: payload.id },
47
+ payload: {
48
+ cacheOverride: payload.cacheOverride ?? false,
49
+ id: payload.id,
50
+ },
48
51
  };
49
52
  },
50
53
  },
@@ -1,7 +1,7 @@
1
1
  import { createSelector } from '@reduxjs/toolkit';
2
- import { runningInvoicingActionId } from '../runningInvoicingActionId';
3
2
  import { getInvoicingSubscriptionsByIds } from '../../../entity/invoicing/invoicingSubscription/invoicingSubscriptionSelector';
4
3
  import { invoicingTabIdsFromConfig } from '../invoicingTabHelper';
4
+ import { runningInvoicingActionId } from '../runningInvoicingActionId';
5
5
  import { ALL_INVOICING_SUBSCRIPTION_TAB_IDS, INVOICING_SUBSCRIPTION_COLUMNS, } from './invoicingSubscriptionListViewState';
6
6
  /**
7
7
  * Memoized so the denormalized `subscriptions` array (and the wrapping view