@zeniai/client-epic-state 5.2.32-betaAK7 → 5.2.32
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.
- package/lib/commonStateTypes/fiscalYearHelpers/getFYMonths.d.ts +2 -2
- package/lib/commonStateTypes/fiscalYearHelpers/getFYQuarterAndYear.d.ts +2 -2
- package/lib/commonStateTypes/timePeriod.d.ts +4 -4
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/sectionProjectView/sectionProjectView.d.ts +1 -1
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +2 -2
- package/lib/entity/tenant/tenantSelector.d.ts +1 -1
- package/lib/epic.d.ts +24 -24
- package/lib/epic.js +28 -28
- package/lib/esm/epic.js +28 -28
- package/lib/esm/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +1 -1
- package/lib/esm/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +1 -1
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.js +1 -1
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic.js +2 -1
- package/lib/esm/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +1 -1
- package/lib/esm/view/expenseAutomationView/helpers/reconciliationHelpers.js +2 -2
- package/lib/esm/view/invoicing/couponView/couponViewSelector.js +1 -1
- package/lib/esm/view/invoicing/couponView/fetchInvoicingCouponCountsEpic.js +1 -1
- package/lib/esm/view/invoicing/customerPaymentMethod/sendInvoicingPaymentLinkEpic.js +2 -2
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +4 -1
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js +4 -1
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +4 -4
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +4 -1
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingPaymentLinkEmailPreviewEpic.js +1 -1
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +2 -2
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionDetailPageEpic.js +8 -2
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/seedInvoicingSubscriptionFormDraftEpic.js +1 -1
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailSelector.js +2 -2
- package/lib/esm/view/invoicing/invoiceDetail/updateInvoicingInvoiceEpic.js +1 -1
- package/lib/esm/view/invoicing/invoiceList/invoiceListSelector.js +1 -1
- package/lib/esm/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.js +4 -1
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +1 -1
- package/lib/esm/view/invoicing/settingsView/initializeInvoicingBrandingAddressEpic.js +1 -1
- package/lib/esm/view/invoicing/settingsView/submitInvoicingBrandingFormEpic.js +1 -1
- package/lib/view/addressView/addressViewSelector.d.ts +1 -1
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +2 -2
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +2 -2
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
- package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewPayload.d.ts +1 -1
- package/lib/view/commonVendorView/vendorView/vendorViewPayload.d.ts +1 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.d.ts +1 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.d.ts +1 -1
- package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +1 -1
- package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +1 -1
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.js +1 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.d.ts +1 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.d.ts +1 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic.js +2 -1
- package/lib/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +1 -1
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +2 -2
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/invoicing/couponView/couponViewSelector.js +1 -1
- package/lib/view/invoicing/customerPaymentMethod/sendInvoicingPaymentLinkEpic.js +2 -2
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewReducer.d.ts +2 -2
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +4 -1
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js +4 -1
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.d.ts +1 -1
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.d.ts +3 -3
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +4 -4
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.d.ts +1 -1
- package/lib/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +4 -1
- package/lib/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingPaymentLinkEmailPreviewEpic.js +1 -1
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.d.ts +1 -1
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +1 -1
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionDetailPageEpic.js +8 -2
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/seedInvoicingSubscriptionFormDraftEpic.js +1 -1
- package/lib/view/invoicing/invoiceDetail/invoiceDetailReducer.d.ts +1 -1
- package/lib/view/invoicing/invoiceDetail/invoiceDetailSelector.js +2 -2
- package/lib/view/invoicing/invoiceList/invoiceListSelector.js +1 -1
- package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.js +4 -1
- package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewSelector.d.ts +1 -1
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +1 -1
- package/lib/view/opExByVendor/refreshOpExByVendorReportEpic.d.ts +1 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
- package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
- package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/tasksCard/fetchTasksCardEpic.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
- package/lib/view/topEx/topExSelector.d.ts +2 -2
- 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 {
|
|
283
|
-
import {
|
|
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 {
|
|
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;
|
package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.js
CHANGED
|
@@ -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) => {
|
package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
23
|
+
accountRecon?.parsedStatementData?.statementUpload.combinedStatementDetails
|
|
24
|
+
?.combinedStatementGroupId ??
|
|
25
25
|
'');
|
|
26
26
|
}
|
|
27
27
|
export const isReviewTransactionBillPaymentType = (transaction) => {
|
|
@@ -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
|
|
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({
|
|
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)),
|
package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js
CHANGED
|
@@ -61,7 +61,10 @@ const editInvoicingCouponDetailView = createSlice({
|
|
|
61
61
|
},
|
|
62
62
|
prepare(payload) {
|
|
63
63
|
return {
|
|
64
|
-
payload: {
|
|
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({
|
|
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 {
|
|
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({
|
|
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({
|
|
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:
|
|
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
|
|
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: {
|
|
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
|
|
@@ -2,7 +2,7 @@ import { EMPTY, of } from 'rxjs';
|
|
|
2
2
|
import { filter, mergeMap } from 'rxjs/operators';
|
|
3
3
|
import { getAddressByAddressId } from '../../../entity/address/addressSelector';
|
|
4
4
|
import { newAddressInLocalStore, } from '../../addressView/addressViewReducer';
|
|
5
|
-
import { INVOICING_BUSINESS_ADDRESS_TYPE
|
|
5
|
+
import { INVOICING_BUSINESS_ADDRESS_TYPE } from './invoicingBrandingFormConfig';
|
|
6
6
|
import { updateInvoicingSettings, } from './settingsViewReducer';
|
|
7
7
|
/**
|
|
8
8
|
* On `submitInvoicingBrandingForm`, PUT the settings body built from the branding
|
|
@@ -2,7 +2,7 @@ import { of } from 'rxjs';
|
|
|
2
2
|
import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
3
3
|
import { updateAddresses } from '../../../entity/address/addressReducer';
|
|
4
4
|
import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
|
|
5
|
-
import { resetNewAddressDataInLocalStore
|
|
5
|
+
import { resetNewAddressDataInLocalStore } from '../../addressView/addressViewReducer';
|
|
6
6
|
import { INVOICING_BUSINESS_ADDRESS_TYPE, brandingLocalDataToSettingsPayload, entityToInvoicingBrandingFormLocalData, } from './invoicingBrandingFormConfig';
|
|
7
7
|
import { saveInvoicingSettingsFailure, saveInvoicingSettingsSuccess, submitInvoicingBrandingForm, } from './settingsViewReducer';
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchState, ID } from '../../commonStateTypes/common';
|
|
2
2
|
import { Address } from '../../entity/address/addressState';
|
|
3
|
-
import { RootState } from '../../rootStateTypes';
|
|
4
3
|
import { ZeniAPIStatus } from '../../responsePayload';
|
|
4
|
+
import { RootState } from '../../rootStateTypes';
|
|
5
5
|
import { AddressType, AddressUpdatableInfo, NewAddressData } from './addressViewState';
|
|
6
6
|
export declare function getAllNewAddresses(state: RootState): NewAddressData[];
|
|
7
7
|
export declare function getNewAddress(type: AddressType, state: RootState): NewAddressData | undefined;
|
|
@@ -5,7 +5,7 @@ import { ZeniDate } from '../../zeniDayJS';
|
|
|
5
5
|
import { AuditSummary } from '../reviewCompanyView/reviewCompanyViewState';
|
|
6
6
|
export declare const toAuditRuleEntityType: (v: string) => "dashboard" | "transactions" | "reports";
|
|
7
7
|
export type AuditRuleEntityType = ReturnType<typeof toAuditRuleEntityType>;
|
|
8
|
-
declare const toAuditRuleEntityIdType: (v: string) => "
|
|
8
|
+
declare const toAuditRuleEntityIdType: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts" | "uncategorized-expense" | "uncategorized-income";
|
|
9
9
|
export type AuditRuleEntityIdType = ReturnType<typeof toAuditRuleEntityIdType>;
|
|
10
10
|
export declare const toAuditRuleTypeIdType: (v: string) => "business" | "accounting";
|
|
11
11
|
type AuditRuleTypeIdType = ReturnType<typeof toAuditRuleTypeIdType>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RootState } from '../../rootStateTypes';
|
|
2
2
|
export declare const getBillPayCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "
|
|
3
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
fetchState: import("../..").FetchState;
|
|
7
7
|
billPayAmountByKey: Record<string, import("../..").Amount>;
|
|
8
8
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
9
9
|
transactionCount: number;
|
|
10
|
-
firstMonthOfFY: 1 | 2 | 3 | 4 | 5 |
|
|
10
|
+
firstMonthOfFY: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
11
11
|
};
|
|
12
12
|
export type BillPayCardReport = ReturnType<typeof getBillPayCardReport>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../rootStateTypes';
|
|
2
2
|
export declare const getCardBalance: (state: RootState) => {
|
|
3
|
-
reportId: "
|
|
3
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -26,7 +26,7 @@ export declare const getCardBalance: (state: RootState) => {
|
|
|
26
26
|
isDeleted: boolean;
|
|
27
27
|
}[];
|
|
28
28
|
balance: import("../..").Balance | undefined;
|
|
29
|
-
firstMonthOfFY: 1 | 2 | 3 | 4 | 5 |
|
|
29
|
+
firstMonthOfFY: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
30
30
|
dataAvailable: import("../..").TimeframeTick | undefined;
|
|
31
31
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
32
32
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../rootStateTypes';
|
|
2
2
|
export declare const getCashBalance: (state: RootState) => {
|
|
3
|
-
reportId: "
|
|
3
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -26,7 +26,7 @@ export declare const getCashBalance: (state: RootState) => {
|
|
|
26
26
|
isDeleted: boolean;
|
|
27
27
|
}[];
|
|
28
28
|
balance: import("../..").Balance | undefined;
|
|
29
|
-
firstMonthOfFY: 1 | 2 | 3 | 4 | 5 |
|
|
29
|
+
firstMonthOfFY: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
30
30
|
dataAvailable: import("../..").TimeframeTick | undefined;
|
|
31
31
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
32
32
|
};
|