@zeniai/client-epic-state 5.1.32 → 5.1.34-betaAK0
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/viewAndReport/agingReportStateTypes.d.ts +1 -1
- package/lib/entity/invoicing/coupon/couponPayload.d.ts +50 -0
- package/lib/entity/invoicing/coupon/couponPayload.js +2 -0
- package/lib/entity/invoicing/coupon/couponReducer.d.ts +10 -0
- package/lib/entity/invoicing/coupon/couponReducer.js +33 -0
- package/lib/entity/invoicing/coupon/couponState.d.ts +5 -0
- package/lib/entity/invoicing/coupon/couponState.js +2 -0
- package/lib/entity/invoicing/creditNote/creditNotePayload.d.ts +47 -0
- package/lib/entity/invoicing/creditNote/creditNotePayload.js +2 -0
- package/lib/entity/invoicing/creditNote/creditNoteReducer.d.ts +10 -0
- package/lib/entity/invoicing/creditNote/creditNoteReducer.js +35 -0
- package/lib/entity/invoicing/creditNote/creditNoteState.d.ts +5 -0
- package/lib/entity/invoicing/creditNote/creditNoteState.js +2 -0
- package/lib/entity/invoicing/dunningCase/dunningCasePayload.d.ts +29 -0
- package/lib/entity/invoicing/dunningCase/dunningCasePayload.js +2 -0
- package/lib/entity/invoicing/dunningCase/dunningCaseReducer.d.ts +10 -0
- package/lib/entity/invoicing/dunningCase/dunningCaseReducer.js +35 -0
- package/lib/entity/invoicing/dunningCase/dunningCaseState.d.ts +5 -0
- package/lib/entity/invoicing/dunningCase/dunningCaseState.js +2 -0
- package/lib/entity/invoicing/invoice/invoicePayload.d.ts +93 -0
- package/lib/entity/invoicing/invoice/invoicePayload.js +2 -0
- package/lib/entity/invoicing/invoice/invoiceReducer.d.ts +10 -0
- package/lib/entity/invoicing/invoice/invoiceReducer.js +36 -0
- package/lib/entity/invoicing/invoice/invoiceSelector.d.ts +5 -0
- package/lib/entity/invoicing/invoice/invoiceSelector.js +9 -0
- package/lib/entity/invoicing/invoice/invoiceState.d.ts +5 -0
- package/lib/entity/invoicing/invoice/invoiceState.js +2 -0
- package/lib/entity/invoicing/invoicingCommonPayload.d.ts +56 -0
- package/lib/entity/invoicing/invoicingCommonPayload.js +2 -0
- package/lib/entity/invoicing/invoicingCommonState.d.ts +45 -0
- package/lib/entity/invoicing/invoicingCommonState.js +2 -0
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerPayload.d.ts +54 -0
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerPayload.js +72 -0
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerReducer.d.ts +9 -0
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerReducer.js +47 -0
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerSelector.d.ts +4 -0
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerSelector.js +17 -0
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerState.d.ts +50 -0
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerState.js +2 -0
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionPayload.d.ts +75 -0
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionPayload.js +105 -0
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer.d.ts +9 -0
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer.js +49 -0
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionSelector.d.ts +5 -0
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionSelector.js +17 -0
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionState.d.ts +75 -0
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionState.js +2 -0
- package/lib/entity/invoicing/plan/planPayload.d.ts +41 -0
- package/lib/entity/invoicing/plan/planPayload.js +2 -0
- package/lib/entity/invoicing/plan/planReducer.d.ts +10 -0
- package/lib/entity/invoicing/plan/planReducer.js +33 -0
- package/lib/entity/invoicing/plan/planState.d.ts +5 -0
- package/lib/entity/invoicing/plan/planState.js +2 -0
- package/lib/entity/invoicing/product/productPayload.d.ts +60 -0
- package/lib/entity/invoicing/product/productPayload.js +2 -0
- package/lib/entity/invoicing/product/productReducer.d.ts +10 -0
- package/lib/entity/invoicing/product/productReducer.js +33 -0
- package/lib/entity/invoicing/product/productState.d.ts +5 -0
- package/lib/entity/invoicing/product/productState.js +2 -0
- package/lib/entity/invoicing/transaction/transactionPayload.d.ts +54 -0
- package/lib/entity/invoicing/transaction/transactionPayload.js +2 -0
- package/lib/entity/invoicing/transaction/transactionReducer.d.ts +10 -0
- package/lib/entity/invoicing/transaction/transactionReducer.js +35 -0
- package/lib/entity/invoicing/transaction/transactionState.d.ts +5 -0
- package/lib/entity/invoicing/transaction/transactionState.js +2 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +41 -2
- package/lib/entity/tenant/clearAllEpic.js +82 -4
- package/lib/entity/tenant/tenantReducer.js +3 -3
- package/lib/epic.d.ts +35 -2
- package/lib/epic.js +46 -2
- package/lib/esm/entity/invoicing/coupon/couponPayload.js +1 -0
- package/lib/esm/entity/invoicing/coupon/couponReducer.js +29 -0
- package/lib/esm/entity/invoicing/coupon/couponState.js +1 -0
- package/lib/esm/entity/invoicing/creditNote/creditNotePayload.js +1 -0
- package/lib/esm/entity/invoicing/creditNote/creditNoteReducer.js +31 -0
- package/lib/esm/entity/invoicing/creditNote/creditNoteState.js +1 -0
- package/lib/esm/entity/invoicing/dunningCase/dunningCasePayload.js +1 -0
- package/lib/esm/entity/invoicing/dunningCase/dunningCaseReducer.js +31 -0
- package/lib/esm/entity/invoicing/dunningCase/dunningCaseState.js +1 -0
- package/lib/esm/entity/invoicing/invoice/invoicePayload.js +1 -0
- package/lib/esm/entity/invoicing/invoice/invoiceReducer.js +32 -0
- package/lib/esm/entity/invoicing/invoice/invoiceSelector.js +4 -0
- package/lib/esm/entity/invoicing/invoice/invoiceState.js +1 -0
- package/lib/esm/entity/invoicing/invoicingCommonPayload.js +1 -0
- package/lib/esm/entity/invoicing/invoicingCommonState.js +1 -0
- package/lib/esm/entity/invoicing/invoicingCustomer/invoicingCustomerPayload.js +68 -0
- package/lib/esm/entity/invoicing/invoicingCustomer/invoicingCustomerReducer.js +40 -0
- package/lib/esm/entity/invoicing/invoicingCustomer/invoicingCustomerSelector.js +10 -0
- package/lib/esm/entity/invoicing/invoicingCustomer/invoicingCustomerState.js +1 -0
- package/lib/esm/entity/invoicing/invoicingSubscription/invoicingSubscriptionPayload.js +98 -0
- package/lib/esm/entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer.js +42 -0
- package/lib/esm/entity/invoicing/invoicingSubscription/invoicingSubscriptionSelector.js +10 -0
- package/lib/esm/entity/invoicing/invoicingSubscription/invoicingSubscriptionState.js +1 -0
- package/lib/esm/entity/invoicing/plan/planPayload.js +1 -0
- package/lib/esm/entity/invoicing/plan/planReducer.js +29 -0
- package/lib/esm/entity/invoicing/plan/planState.js +1 -0
- package/lib/esm/entity/invoicing/product/productPayload.js +1 -0
- package/lib/esm/entity/invoicing/product/productReducer.js +29 -0
- package/lib/esm/entity/invoicing/product/productState.js +1 -0
- package/lib/esm/entity/invoicing/transaction/transactionPayload.js +1 -0
- package/lib/esm/entity/invoicing/transaction/transactionReducer.js +31 -0
- package/lib/esm/entity/invoicing/transaction/transactionState.js +1 -0
- package/lib/esm/entity/tenant/clearAllEpic.js +78 -0
- package/lib/esm/entity/tenant/tenantReducer.js +3 -3
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogPayload.js +1 -1
- package/lib/esm/epic.js +46 -2
- package/lib/esm/index.js +82 -0
- package/lib/esm/reducer.js +120 -0
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +2 -1
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +4 -2
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +1 -2
- package/lib/esm/view/fileView/fileUploadHelpers.js +1 -2
- package/lib/esm/view/invoicing/approvalAction/approvalActionEpic.js +27 -0
- package/lib/esm/view/invoicing/approvalAction/approvalActionPayload.js +1 -0
- package/lib/esm/view/invoicing/approvalAction/approvalActionReducer.js +36 -0
- package/lib/esm/view/invoicing/approvalAction/approvalActionSelector.js +5 -0
- package/lib/esm/view/invoicing/approvalAction/approvalActionState.js +1 -0
- package/lib/esm/view/invoicing/approvalsView/approvalsViewEpics.js +35 -0
- package/lib/esm/view/invoicing/approvalsView/approvalsViewPayload.js +1 -0
- package/lib/esm/view/invoicing/approvalsView/approvalsViewReducer.js +62 -0
- package/lib/esm/view/invoicing/approvalsView/approvalsViewSelector.js +8 -0
- package/lib/esm/view/invoicing/approvalsView/approvalsViewState.js +1 -0
- package/lib/esm/view/invoicing/auditView/auditViewEpics.js +44 -0
- package/lib/esm/view/invoicing/auditView/auditViewPayload.js +1 -0
- package/lib/esm/view/invoicing/auditView/auditViewReducer.js +56 -0
- package/lib/esm/view/invoicing/auditView/auditViewSelector.js +8 -0
- package/lib/esm/view/invoicing/auditView/auditViewState.js +1 -0
- package/lib/esm/view/invoicing/catalogView/catalogViewEpics.js +139 -0
- package/lib/esm/view/invoicing/catalogView/catalogViewPayload.js +1 -0
- package/lib/esm/view/invoicing/catalogView/catalogViewReducer.js +162 -0
- package/lib/esm/view/invoicing/catalogView/catalogViewSelector.js +31 -0
- package/lib/esm/view/invoicing/catalogView/catalogViewState.js +1 -0
- package/lib/esm/view/invoicing/catalogWrite/catalogWriteEpic.js +35 -0
- package/lib/esm/view/invoicing/catalogWrite/catalogWritePayload.js +1 -0
- package/lib/esm/view/invoicing/catalogWrite/catalogWriteReducer.js +39 -0
- package/lib/esm/view/invoicing/catalogWrite/catalogWriteSelector.js +6 -0
- package/lib/esm/view/invoicing/catalogWrite/catalogWriteState.js +1 -0
- package/lib/esm/view/invoicing/couponView/couponViewEpics.js +79 -0
- package/lib/esm/view/invoicing/couponView/couponViewPayload.js +1 -0
- package/lib/esm/view/invoicing/couponView/couponViewReducer.js +105 -0
- package/lib/esm/view/invoicing/couponView/couponViewSelector.js +18 -0
- package/lib/esm/view/invoicing/couponView/couponViewState.js +1 -0
- package/lib/esm/view/invoicing/couponWrite/couponWriteEpic.js +28 -0
- package/lib/esm/view/invoicing/couponWrite/couponWritePayload.js +1 -0
- package/lib/esm/view/invoicing/couponWrite/couponWriteReducer.js +36 -0
- package/lib/esm/view/invoicing/couponWrite/couponWriteSelector.js +5 -0
- package/lib/esm/view/invoicing/couponWrite/couponWriteState.js +1 -0
- package/lib/esm/view/invoicing/createInvoice/createInvoiceEpic.js +22 -0
- package/lib/esm/view/invoicing/createInvoice/createInvoicePayload.js +1 -0
- package/lib/esm/view/invoicing/createInvoice/createInvoiceReducer.js +36 -0
- package/lib/esm/view/invoicing/createInvoice/createInvoiceSelector.js +5 -0
- package/lib/esm/view/invoicing/createInvoice/createInvoiceState.js +1 -0
- package/lib/esm/view/invoicing/creditNoteView/creditNoteViewEpics.js +85 -0
- package/lib/esm/view/invoicing/creditNoteView/creditNoteViewPayload.js +1 -0
- package/lib/esm/view/invoicing/creditNoteView/creditNoteViewReducer.js +105 -0
- package/lib/esm/view/invoicing/creditNoteView/creditNoteViewSelector.js +20 -0
- package/lib/esm/view/invoicing/creditNoteView/creditNoteViewState.js +1 -0
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.js +60 -0
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodPayload.js +1 -0
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodReducer.js +84 -0
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodSelector.js +7 -0
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodState.js +1 -0
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionEpic.js +41 -0
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionPayload.js +1 -0
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionReducer.js +73 -0
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionSelector.js +5 -0
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionState.js +1 -0
- package/lib/esm/view/invoicing/dataImportView/dataImportViewEpics.js +34 -0
- package/lib/esm/view/invoicing/dataImportView/dataImportViewPayload.js +1 -0
- package/lib/esm/view/invoicing/dataImportView/dataImportViewReducer.js +66 -0
- package/lib/esm/view/invoicing/dataImportView/dataImportViewSelector.js +8 -0
- package/lib/esm/view/invoicing/dataImportView/dataImportViewState.js +1 -0
- package/lib/esm/view/invoicing/dunningAction/dunningActionEpic.js +27 -0
- package/lib/esm/view/invoicing/dunningAction/dunningActionPayload.js +1 -0
- package/lib/esm/view/invoicing/dunningAction/dunningActionReducer.js +36 -0
- package/lib/esm/view/invoicing/dunningAction/dunningActionSelector.js +5 -0
- package/lib/esm/view/invoicing/dunningAction/dunningActionState.js +1 -0
- package/lib/esm/view/invoicing/dunningCaseView/dunningCaseViewEpics.js +79 -0
- package/lib/esm/view/invoicing/dunningCaseView/dunningCaseViewPayload.js +1 -0
- package/lib/esm/view/invoicing/dunningCaseView/dunningCaseViewReducer.js +105 -0
- package/lib/esm/view/invoicing/dunningCaseView/dunningCaseViewSelector.js +20 -0
- package/lib/esm/view/invoicing/dunningCaseView/dunningCaseViewState.js +1 -0
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewPayload.js +1 -0
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +36 -0
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +19 -0
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.js +1 -0
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.js +22 -0
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewPayload.js +1 -0
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.js +36 -0
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +30 -0
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewState.js +1 -0
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +24 -0
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionEpic.js +49 -0
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionPayload.js +1 -0
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionReducer.js +42 -0
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionSelector.js +5 -0
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionState.js +1 -0
- package/lib/esm/view/invoicing/invoiceDetail/fetchInvoiceDetailEpic.js +19 -0
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailPayload.js +1 -0
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailReducer.js +34 -0
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailSelector.js +9 -0
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailState.js +1 -0
- package/lib/esm/view/invoicing/invoiceList/fetchInvoiceCountsEpic.js +32 -0
- package/lib/esm/view/invoicing/invoiceList/fetchInvoiceKPIsEpic.js +14 -0
- package/lib/esm/view/invoicing/invoiceList/fetchInvoiceListEpic.js +53 -0
- package/lib/esm/view/invoicing/invoiceList/invoiceListPayload.js +1 -0
- package/lib/esm/view/invoicing/invoiceList/invoiceListReducer.js +90 -0
- package/lib/esm/view/invoicing/invoiceList/invoiceListSelector.js +11 -0
- package/lib/esm/view/invoicing/invoiceList/invoiceListState.js +1 -0
- package/lib/esm/view/invoicing/invoicePdf/invoicePdfEpic.js +36 -0
- package/lib/esm/view/invoicing/invoicePdf/invoicePdfReducer.js +33 -0
- package/lib/esm/view/invoicing/invoicePdf/invoicePdfSelector.js +5 -0
- package/lib/esm/view/invoicing/invoicePdf/invoicePdfState.js +1 -0
- package/lib/esm/view/invoicing/invoicingApiHelper.js +14 -0
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailEpic.js +22 -0
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +41 -0
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewPayload.js +1 -0
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.js +51 -0
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.js +25 -0
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewState.js +1 -0
- package/lib/esm/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerCountsEpic.js +20 -0
- package/lib/esm/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListEpic.js +40 -0
- package/lib/esm/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListPageEpic.js +27 -0
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewPayload.js +1 -0
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer.js +89 -0
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js +9 -0
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.js +1 -0
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewChurnEpic.js +17 -0
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewDashboardSummaryEpic.js +17 -0
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewEpic.js +55 -0
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewKPIsEpic.js +17 -0
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewMRREpic.js +17 -0
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewPlanRevenueEpic.js +17 -0
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewRevenueEpic.js +17 -0
- package/lib/esm/view/invoicing/invoicingOverview/invoicingOverviewPayload.js +87 -0
- package/lib/esm/view/invoicing/invoicingOverview/invoicingOverviewReducer.js +115 -0
- package/lib/esm/view/invoicing/invoicingOverview/invoicingOverviewSelector.js +62 -0
- package/lib/esm/view/invoicing/invoicingOverview/invoicingOverviewState.js +1 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewEpics.js +19 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewPayload.js +1 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.js +31 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector.js +13 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewState.js +1 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionCountsEpic.js +23 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListEpic.js +49 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListPageEpic.js +27 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewPayload.js +1 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.js +89 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +9 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.js +1 -0
- package/lib/esm/view/invoicing/paymentAction/paymentActionEpic.js +27 -0
- package/lib/esm/view/invoicing/paymentAction/paymentActionPayload.js +1 -0
- package/lib/esm/view/invoicing/paymentAction/paymentActionReducer.js +36 -0
- package/lib/esm/view/invoicing/paymentAction/paymentActionSelector.js +5 -0
- package/lib/esm/view/invoicing/paymentAction/paymentActionState.js +1 -0
- package/lib/esm/view/invoicing/recordPayment/recordPaymentEpic.js +22 -0
- package/lib/esm/view/invoicing/recordPayment/recordPaymentPayload.js +1 -0
- package/lib/esm/view/invoicing/recordPayment/recordPaymentReducer.js +36 -0
- package/lib/esm/view/invoicing/recordPayment/recordPaymentSelector.js +5 -0
- package/lib/esm/view/invoicing/recordPayment/recordPaymentState.js +1 -0
- package/lib/esm/view/invoicing/reportsView/reportsViewEpics.js +27 -0
- package/lib/esm/view/invoicing/reportsView/reportsViewPayload.js +1 -0
- package/lib/esm/view/invoicing/reportsView/reportsViewReducer.js +54 -0
- package/lib/esm/view/invoicing/reportsView/reportsViewSelector.js +13 -0
- package/lib/esm/view/invoicing/reportsView/reportsViewState.js +1 -0
- package/lib/esm/view/invoicing/settingsView/settingsViewEpics.js +66 -0
- package/lib/esm/view/invoicing/settingsView/settingsViewPayload.js +1 -0
- package/lib/esm/view/invoicing/settingsView/settingsViewReducer.js +75 -0
- package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +7 -0
- package/lib/esm/view/invoicing/settingsView/settingsViewState.js +1 -0
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionEpic.js +27 -0
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionPayload.js +1 -0
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionReducer.js +36 -0
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionSelector.js +5 -0
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionState.js +1 -0
- package/lib/esm/view/invoicing/transactionView/transactionViewEpics.js +70 -0
- package/lib/esm/view/invoicing/transactionView/transactionViewPayload.js +1 -0
- package/lib/esm/view/invoicing/transactionView/transactionViewReducer.js +90 -0
- package/lib/esm/view/invoicing/transactionView/transactionViewSelector.js +19 -0
- package/lib/esm/view/invoicing/transactionView/transactionViewState.js +1 -0
- package/lib/esm/view/onboardingView/cockpitView/epic/initializeOnboardingCustomerViewUpdateDataEpic.js +1 -5
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +5 -4
- package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +2 -1
- package/lib/esm/view/transactionDetail/epics/saveTransactionDetailEpic.js +1 -1
- package/lib/esm/view/transactionDetail/epics/updateTransactionDetailEpic.js +1 -1
- package/lib/index.d.ts +128 -0
- package/lib/index.js +355 -1
- package/lib/reducer.d.ts +120 -0
- package/lib/reducer.js +126 -6
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +2 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +4 -2
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +1 -2
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +1 -1
- package/lib/view/fileView/fileUploadHelpers.js +1 -2
- package/lib/view/invoicing/approvalAction/approvalActionEpic.d.ts +8 -0
- package/lib/view/invoicing/approvalAction/approvalActionEpic.js +31 -0
- package/lib/view/invoicing/approvalAction/approvalActionPayload.d.ts +3 -0
- package/lib/view/invoicing/approvalAction/approvalActionPayload.js +2 -0
- package/lib/view/invoicing/approvalAction/approvalActionReducer.d.ts +17 -0
- package/lib/view/invoicing/approvalAction/approvalActionReducer.js +40 -0
- package/lib/view/invoicing/approvalAction/approvalActionSelector.d.ts +3 -0
- package/lib/view/invoicing/approvalAction/approvalActionSelector.js +9 -0
- package/lib/view/invoicing/approvalAction/approvalActionState.d.ts +5 -0
- package/lib/view/invoicing/approvalAction/approvalActionState.js +2 -0
- package/lib/view/invoicing/approvalsView/approvalsViewEpics.d.ts +7 -0
- package/lib/view/invoicing/approvalsView/approvalsViewEpics.js +39 -0
- package/lib/view/invoicing/approvalsView/approvalsViewPayload.d.ts +14 -0
- package/lib/view/invoicing/approvalsView/approvalsViewPayload.js +2 -0
- package/lib/view/invoicing/approvalsView/approvalsViewReducer.d.ts +22 -0
- package/lib/view/invoicing/approvalsView/approvalsViewReducer.js +66 -0
- package/lib/view/invoicing/approvalsView/approvalsViewSelector.d.ts +9 -0
- package/lib/view/invoicing/approvalsView/approvalsViewSelector.js +16 -0
- package/lib/view/invoicing/approvalsView/approvalsViewState.d.ts +14 -0
- package/lib/view/invoicing/approvalsView/approvalsViewState.js +2 -0
- package/lib/view/invoicing/auditView/auditViewEpics.d.ts +7 -0
- package/lib/view/invoicing/auditView/auditViewEpics.js +48 -0
- package/lib/view/invoicing/auditView/auditViewPayload.d.ts +14 -0
- package/lib/view/invoicing/auditView/auditViewPayload.js +2 -0
- package/lib/view/invoicing/auditView/auditViewReducer.d.ts +22 -0
- package/lib/view/invoicing/auditView/auditViewReducer.js +60 -0
- package/lib/view/invoicing/auditView/auditViewSelector.d.ts +9 -0
- package/lib/view/invoicing/auditView/auditViewSelector.js +16 -0
- package/lib/view/invoicing/auditView/auditViewState.d.ts +17 -0
- package/lib/view/invoicing/auditView/auditViewState.js +2 -0
- package/lib/view/invoicing/catalogView/catalogViewEpics.d.ts +14 -0
- package/lib/view/invoicing/catalogView/catalogViewEpics.js +148 -0
- package/lib/view/invoicing/catalogView/catalogViewPayload.d.ts +10 -0
- package/lib/view/invoicing/catalogView/catalogViewPayload.js +2 -0
- package/lib/view/invoicing/catalogView/catalogViewReducer.d.ts +46 -0
- package/lib/view/invoicing/catalogView/catalogViewReducer.js +166 -0
- package/lib/view/invoicing/catalogView/catalogViewSelector.d.ts +24 -0
- package/lib/view/invoicing/catalogView/catalogViewSelector.js +52 -0
- package/lib/view/invoicing/catalogView/catalogViewState.d.ts +36 -0
- package/lib/view/invoicing/catalogView/catalogViewState.js +2 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteEpic.d.ts +9 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteEpic.js +39 -0
- package/lib/view/invoicing/catalogWrite/catalogWritePayload.d.ts +4 -0
- package/lib/view/invoicing/catalogWrite/catalogWritePayload.js +2 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteReducer.d.ts +16 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteReducer.js +43 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteSelector.d.ts +6 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteSelector.js +12 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteState.d.ts +7 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteState.js +2 -0
- package/lib/view/invoicing/couponView/couponViewEpics.d.ts +11 -0
- package/lib/view/invoicing/couponView/couponViewEpics.js +86 -0
- package/lib/view/invoicing/couponView/couponViewPayload.d.ts +7 -0
- package/lib/view/invoicing/couponView/couponViewPayload.js +2 -0
- package/lib/view/invoicing/couponView/couponViewReducer.d.ts +28 -0
- package/lib/view/invoicing/couponView/couponViewReducer.js +109 -0
- package/lib/view/invoicing/couponView/couponViewSelector.d.ts +15 -0
- package/lib/view/invoicing/couponView/couponViewSelector.js +31 -0
- package/lib/view/invoicing/couponView/couponViewState.d.ts +20 -0
- package/lib/view/invoicing/couponView/couponViewState.js +2 -0
- package/lib/view/invoicing/couponWrite/couponWriteEpic.d.ts +8 -0
- package/lib/view/invoicing/couponWrite/couponWriteEpic.js +32 -0
- package/lib/view/invoicing/couponWrite/couponWritePayload.d.ts +3 -0
- package/lib/view/invoicing/couponWrite/couponWritePayload.js +2 -0
- package/lib/view/invoicing/couponWrite/couponWriteReducer.d.ts +14 -0
- package/lib/view/invoicing/couponWrite/couponWriteReducer.js +40 -0
- package/lib/view/invoicing/couponWrite/couponWriteSelector.d.ts +4 -0
- package/lib/view/invoicing/couponWrite/couponWriteSelector.js +10 -0
- package/lib/view/invoicing/couponWrite/couponWriteState.d.ts +5 -0
- package/lib/view/invoicing/couponWrite/couponWriteState.js +2 -0
- package/lib/view/invoicing/createInvoice/createInvoiceEpic.d.ts +8 -0
- package/lib/view/invoicing/createInvoice/createInvoiceEpic.js +26 -0
- package/lib/view/invoicing/createInvoice/createInvoicePayload.d.ts +25 -0
- package/lib/view/invoicing/createInvoice/createInvoicePayload.js +2 -0
- package/lib/view/invoicing/createInvoice/createInvoiceReducer.d.ts +10 -0
- package/lib/view/invoicing/createInvoice/createInvoiceReducer.js +40 -0
- package/lib/view/invoicing/createInvoice/createInvoiceSelector.d.ts +4 -0
- package/lib/view/invoicing/createInvoice/createInvoiceSelector.js +10 -0
- package/lib/view/invoicing/createInvoice/createInvoiceState.d.ts +6 -0
- package/lib/view/invoicing/createInvoice/createInvoiceState.js +2 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewEpics.d.ts +11 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewEpics.js +92 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewPayload.d.ts +7 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewPayload.js +2 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewReducer.d.ts +28 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewReducer.js +109 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewSelector.d.ts +15 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewSelector.js +33 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewState.d.ts +21 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewState.js +2 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.d.ts +11 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.js +67 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodPayload.d.ts +18 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodPayload.js +2 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodReducer.d.ts +21 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodReducer.js +88 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodSelector.d.ts +10 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodSelector.js +17 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodState.d.ts +23 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodState.js +2 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionEpic.d.ts +7 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionEpic.js +45 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionPayload.d.ts +3 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionPayload.js +2 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionReducer.d.ts +19 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionReducer.js +77 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionSelector.d.ts +4 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionSelector.js +9 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionState.d.ts +5 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionState.js +2 -0
- package/lib/view/invoicing/dataImportView/dataImportViewEpics.d.ts +9 -0
- package/lib/view/invoicing/dataImportView/dataImportViewEpics.js +40 -0
- package/lib/view/invoicing/dataImportView/dataImportViewPayload.d.ts +50 -0
- package/lib/view/invoicing/dataImportView/dataImportViewPayload.js +2 -0
- package/lib/view/invoicing/dataImportView/dataImportViewReducer.d.ts +7 -0
- package/lib/view/invoicing/dataImportView/dataImportViewReducer.js +70 -0
- package/lib/view/invoicing/dataImportView/dataImportViewSelector.d.ts +9 -0
- package/lib/view/invoicing/dataImportView/dataImportViewSelector.js +17 -0
- package/lib/view/invoicing/dataImportView/dataImportViewState.d.ts +10 -0
- package/lib/view/invoicing/dataImportView/dataImportViewState.js +2 -0
- package/lib/view/invoicing/dunningAction/dunningActionEpic.d.ts +8 -0
- package/lib/view/invoicing/dunningAction/dunningActionEpic.js +31 -0
- package/lib/view/invoicing/dunningAction/dunningActionPayload.d.ts +3 -0
- package/lib/view/invoicing/dunningAction/dunningActionPayload.js +2 -0
- package/lib/view/invoicing/dunningAction/dunningActionReducer.d.ts +21 -0
- package/lib/view/invoicing/dunningAction/dunningActionReducer.js +40 -0
- package/lib/view/invoicing/dunningAction/dunningActionSelector.d.ts +3 -0
- package/lib/view/invoicing/dunningAction/dunningActionSelector.js +9 -0
- package/lib/view/invoicing/dunningAction/dunningActionState.d.ts +5 -0
- package/lib/view/invoicing/dunningAction/dunningActionState.js +2 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewEpics.d.ts +11 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewEpics.js +86 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewPayload.d.ts +7 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewPayload.js +2 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewReducer.d.ts +28 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewReducer.js +109 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewSelector.d.ts +15 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewSelector.js +33 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewState.d.ts +20 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewState.js +2 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewPayload.d.ts +3 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewPayload.js +2 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.d.ts +14 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +40 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.d.ts +15 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +23 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.d.ts +5 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.js +2 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.d.ts +8 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.js +26 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewPayload.d.ts +3 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewPayload.js +2 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.d.ts +14 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.js +40 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.d.ts +34 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +35 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewState.d.ts +5 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewState.js +2 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.d.ts +8 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +28 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionEpic.d.ts +9 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionEpic.js +54 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionPayload.d.ts +3 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionPayload.js +2 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionReducer.d.ts +23 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionReducer.js +46 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionSelector.d.ts +3 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionSelector.js +9 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionState.d.ts +5 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionState.js +2 -0
- package/lib/view/invoicing/invoiceDetail/fetchInvoiceDetailEpic.d.ts +8 -0
- package/lib/view/invoicing/invoiceDetail/fetchInvoiceDetailEpic.js +23 -0
- package/lib/view/invoicing/invoiceDetail/invoiceDetailPayload.d.ts +3 -0
- package/lib/view/invoicing/invoiceDetail/invoiceDetailPayload.js +2 -0
- package/lib/view/invoicing/invoiceDetail/invoiceDetailReducer.d.ts +11 -0
- package/lib/view/invoicing/invoiceDetail/invoiceDetailReducer.js +38 -0
- package/lib/view/invoicing/invoiceDetail/invoiceDetailSelector.d.ts +5 -0
- package/lib/view/invoicing/invoiceDetail/invoiceDetailSelector.js +14 -0
- package/lib/view/invoicing/invoiceDetail/invoiceDetailState.d.ts +4 -0
- package/lib/view/invoicing/invoiceDetail/invoiceDetailState.js +2 -0
- package/lib/view/invoicing/invoiceList/fetchInvoiceCountsEpic.d.ts +7 -0
- package/lib/view/invoicing/invoiceList/fetchInvoiceCountsEpic.js +36 -0
- package/lib/view/invoicing/invoiceList/fetchInvoiceKPIsEpic.d.ts +7 -0
- package/lib/view/invoicing/invoiceList/fetchInvoiceKPIsEpic.js +18 -0
- package/lib/view/invoicing/invoiceList/fetchInvoiceListEpic.d.ts +8 -0
- package/lib/view/invoicing/invoiceList/fetchInvoiceListEpic.js +57 -0
- package/lib/view/invoicing/invoiceList/invoiceListPayload.d.ts +6 -0
- package/lib/view/invoicing/invoiceList/invoiceListPayload.js +2 -0
- package/lib/view/invoicing/invoiceList/invoiceListReducer.d.ts +23 -0
- package/lib/view/invoicing/invoiceList/invoiceListReducer.js +94 -0
- package/lib/view/invoicing/invoiceList/invoiceListSelector.d.ts +12 -0
- package/lib/view/invoicing/invoiceList/invoiceListSelector.js +21 -0
- package/lib/view/invoicing/invoiceList/invoiceListState.d.ts +26 -0
- package/lib/view/invoicing/invoiceList/invoiceListState.js +2 -0
- package/lib/view/invoicing/invoicePdf/invoicePdfEpic.d.ts +7 -0
- package/lib/view/invoicing/invoicePdf/invoicePdfEpic.js +40 -0
- package/lib/view/invoicing/invoicePdf/invoicePdfReducer.d.ts +17 -0
- package/lib/view/invoicing/invoicePdf/invoicePdfReducer.js +37 -0
- package/lib/view/invoicing/invoicePdf/invoicePdfSelector.d.ts +3 -0
- package/lib/view/invoicing/invoicePdf/invoicePdfSelector.js +9 -0
- package/lib/view/invoicing/invoicePdf/invoicePdfState.d.ts +5 -0
- package/lib/view/invoicing/invoicePdf/invoicePdfState.js +2 -0
- package/lib/view/invoicing/invoicingApiHelper.d.ts +15 -0
- package/lib/view/invoicing/invoicingApiHelper.js +19 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailEpic.d.ts +8 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailEpic.js +26 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.d.ts +18 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +45 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewPayload.d.ts +3 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewPayload.js +2 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.d.ts +22 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.js +56 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.d.ts +25 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.js +32 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewState.d.ts +7 -0
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewState.js +2 -0
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerCountsEpic.d.ts +7 -0
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerCountsEpic.js +24 -0
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListEpic.d.ts +8 -0
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListEpic.js +44 -0
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListPageEpic.d.ts +16 -0
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListPageEpic.js +31 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewPayload.d.ts +5 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewPayload.js +2 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer.d.ts +31 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer.js +93 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.d.ts +12 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js +13 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.d.ts +16 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.js +2 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewChurnEpic.d.ts +7 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewChurnEpic.js +21 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewDashboardSummaryEpic.d.ts +7 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewDashboardSummaryEpic.js +21 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewEpic.d.ts +14 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewEpic.js +59 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewKPIsEpic.d.ts +7 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewKPIsEpic.js +21 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewMRREpic.d.ts +7 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewMRREpic.js +21 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewPlanRevenueEpic.d.ts +7 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewPlanRevenueEpic.js +21 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewRevenueEpic.d.ts +7 -0
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewRevenueEpic.js +21 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewPayload.d.ts +98 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewPayload.js +96 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewReducer.d.ts +10 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewReducer.js +119 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewSelector.d.ts +32 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewSelector.js +67 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewState.d.ts +110 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewState.js +2 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewEpics.d.ts +8 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewEpics.js +23 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewPayload.d.ts +3 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewPayload.js +2 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.d.ts +11 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.js +35 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector.d.ts +15 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector.js +18 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewState.d.ts +4 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewState.js +2 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionCountsEpic.d.ts +7 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionCountsEpic.js +27 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListEpic.d.ts +8 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListEpic.js +53 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListPageEpic.d.ts +16 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListPageEpic.js +31 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewPayload.d.ts +5 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewPayload.js +2 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.d.ts +31 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.js +93 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.d.ts +12 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +13 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.d.ts +19 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.js +2 -0
- package/lib/view/invoicing/paymentAction/paymentActionEpic.d.ts +8 -0
- package/lib/view/invoicing/paymentAction/paymentActionEpic.js +31 -0
- package/lib/view/invoicing/paymentAction/paymentActionPayload.d.ts +3 -0
- package/lib/view/invoicing/paymentAction/paymentActionPayload.js +2 -0
- package/lib/view/invoicing/paymentAction/paymentActionReducer.d.ts +18 -0
- package/lib/view/invoicing/paymentAction/paymentActionReducer.js +40 -0
- package/lib/view/invoicing/paymentAction/paymentActionSelector.d.ts +3 -0
- package/lib/view/invoicing/paymentAction/paymentActionSelector.js +9 -0
- package/lib/view/invoicing/paymentAction/paymentActionState.d.ts +5 -0
- package/lib/view/invoicing/paymentAction/paymentActionState.js +2 -0
- package/lib/view/invoicing/recordPayment/recordPaymentEpic.d.ts +8 -0
- package/lib/view/invoicing/recordPayment/recordPaymentEpic.js +26 -0
- package/lib/view/invoicing/recordPayment/recordPaymentPayload.d.ts +23 -0
- package/lib/view/invoicing/recordPayment/recordPaymentPayload.js +2 -0
- package/lib/view/invoicing/recordPayment/recordPaymentReducer.d.ts +10 -0
- package/lib/view/invoicing/recordPayment/recordPaymentReducer.js +40 -0
- package/lib/view/invoicing/recordPayment/recordPaymentSelector.d.ts +4 -0
- package/lib/view/invoicing/recordPayment/recordPaymentSelector.js +10 -0
- package/lib/view/invoicing/recordPayment/recordPaymentState.d.ts +6 -0
- package/lib/view/invoicing/recordPayment/recordPaymentState.js +2 -0
- package/lib/view/invoicing/reportsView/reportsViewEpics.d.ts +7 -0
- package/lib/view/invoicing/reportsView/reportsViewEpics.js +31 -0
- package/lib/view/invoicing/reportsView/reportsViewPayload.d.ts +58 -0
- package/lib/view/invoicing/reportsView/reportsViewPayload.js +2 -0
- package/lib/view/invoicing/reportsView/reportsViewReducer.d.ts +13 -0
- package/lib/view/invoicing/reportsView/reportsViewReducer.js +58 -0
- package/lib/view/invoicing/reportsView/reportsViewSelector.d.ts +12 -0
- package/lib/view/invoicing/reportsView/reportsViewSelector.js +24 -0
- package/lib/view/invoicing/reportsView/reportsViewState.d.ts +8 -0
- package/lib/view/invoicing/reportsView/reportsViewState.js +2 -0
- package/lib/view/invoicing/settingsView/settingsViewEpics.d.ts +10 -0
- package/lib/view/invoicing/settingsView/settingsViewEpics.js +73 -0
- package/lib/view/invoicing/settingsView/settingsViewPayload.d.ts +18 -0
- package/lib/view/invoicing/settingsView/settingsViewPayload.js +2 -0
- package/lib/view/invoicing/settingsView/settingsViewReducer.d.ts +12 -0
- package/lib/view/invoicing/settingsView/settingsViewReducer.js +79 -0
- package/lib/view/invoicing/settingsView/settingsViewSelector.d.ts +7 -0
- package/lib/view/invoicing/settingsView/settingsViewSelector.js +14 -0
- package/lib/view/invoicing/settingsView/settingsViewState.d.ts +7 -0
- package/lib/view/invoicing/settingsView/settingsViewState.js +2 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionEpic.d.ts +8 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionEpic.js +31 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionPayload.d.ts +3 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionPayload.js +2 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionReducer.d.ts +18 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionReducer.js +40 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionSelector.d.ts +3 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionSelector.js +9 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionState.d.ts +5 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionState.js +2 -0
- package/lib/view/invoicing/transactionView/transactionViewEpics.d.ts +10 -0
- package/lib/view/invoicing/transactionView/transactionViewEpics.js +76 -0
- package/lib/view/invoicing/transactionView/transactionViewPayload.d.ts +6 -0
- package/lib/view/invoicing/transactionView/transactionViewPayload.js +2 -0
- package/lib/view/invoicing/transactionView/transactionViewReducer.d.ts +27 -0
- package/lib/view/invoicing/transactionView/transactionViewReducer.js +94 -0
- package/lib/view/invoicing/transactionView/transactionViewSelector.d.ts +13 -0
- package/lib/view/invoicing/transactionView/transactionViewSelector.js +31 -0
- package/lib/view/invoicing/transactionView/transactionViewState.d.ts +20 -0
- package/lib/view/invoicing/transactionView/transactionViewState.js +2 -0
- package/lib/view/onboardingView/cockpitView/epic/initializeOnboardingCustomerViewUpdateDataEpic.js +1 -5
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +5 -4
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +2 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +3 -3
- package/lib/view/transactionDetail/epics/saveTransactionDetailEpic.js +1 -1
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +1 -1
- package/lib/zeniAPI.d.ts +1 -0
- package/package.json +38 -70
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
export const INVOICING_REPORT_KEYS = [
|
|
3
|
+
'aging',
|
|
4
|
+
'creditBalances',
|
|
5
|
+
'customerMovement',
|
|
6
|
+
'deferredRevenue',
|
|
7
|
+
'discounts',
|
|
8
|
+
'refunds',
|
|
9
|
+
'subscriptionCounts',
|
|
10
|
+
];
|
|
11
|
+
const emptySlot = () => ({
|
|
12
|
+
fetchState: 'Not-Started',
|
|
13
|
+
error: undefined,
|
|
14
|
+
data: undefined,
|
|
15
|
+
});
|
|
16
|
+
const buildInitialByKey = () => INVOICING_REPORT_KEYS.reduce((acc, key) => {
|
|
17
|
+
acc[key] = emptySlot();
|
|
18
|
+
return acc;
|
|
19
|
+
}, {});
|
|
20
|
+
export const initialState = {
|
|
21
|
+
byKey: buildInitialByKey(),
|
|
22
|
+
};
|
|
23
|
+
const reportsView = createSlice({
|
|
24
|
+
name: 'invoicingReportsView',
|
|
25
|
+
initialState,
|
|
26
|
+
reducers: {
|
|
27
|
+
fetchInvoicingReport(draft, action) {
|
|
28
|
+
draft.byKey[action.payload] = {
|
|
29
|
+
fetchState: 'In-Progress',
|
|
30
|
+
error: undefined,
|
|
31
|
+
data: draft.byKey[action.payload]?.data,
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
updateInvoicingReport(draft, action) {
|
|
35
|
+
draft.byKey[action.payload.key] = {
|
|
36
|
+
fetchState: 'Completed',
|
|
37
|
+
error: undefined,
|
|
38
|
+
data: action.payload.data,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
updateInvoicingReportFailure(draft, action) {
|
|
42
|
+
draft.byKey[action.payload.key] = {
|
|
43
|
+
fetchState: 'Error',
|
|
44
|
+
error: action.payload.error,
|
|
45
|
+
data: draft.byKey[action.payload.key]?.data,
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
clearInvoicingReportsView(draft) {
|
|
49
|
+
draft.byKey = buildInitialByKey();
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
export const { fetchInvoicingReport, updateInvoicingReport, updateInvoicingReportFailure, clearInvoicingReportsView, } = reportsView.actions;
|
|
54
|
+
export default reportsView.reducer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const getInvoicingReportFetchState = (key) => (state) => {
|
|
2
|
+
const slot = state.invoicingReportsViewState.byKey[key];
|
|
3
|
+
return { fetchState: slot.fetchState, error: slot.error };
|
|
4
|
+
};
|
|
5
|
+
const reportData = (state, key) => state.invoicingReportsViewState.byKey[key].data;
|
|
6
|
+
export const getInvoicingAgingReport = (state) => reportData(state, 'aging');
|
|
7
|
+
export const getInvoicingCustomerMovementReport = (state) => reportData(state, 'customerMovement');
|
|
8
|
+
export const getInvoicingDeferredRevenueReport = (state) => reportData(state, 'deferredRevenue');
|
|
9
|
+
export const getInvoicingRefundsReport = (state) => reportData(state, 'refunds') ?? [];
|
|
10
|
+
export const getInvoicingDiscountsReport = (state) => reportData(state, 'discounts') ??
|
|
11
|
+
[];
|
|
12
|
+
export const getInvoicingCreditBalancesReport = (state) => reportData(state, 'creditBalances') ?? [];
|
|
13
|
+
export const getInvoicingSubscriptionCountsReport = (state) => reportData(state, 'subscriptionCounts');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { of } from 'rxjs';
|
|
2
|
+
import { catchError, filter, switchMap } from 'rxjs/operators';
|
|
3
|
+
import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
|
|
4
|
+
import { connectInvoicingStripe, disconnectInvoicingStripe, fetchInvoicingSettings, invoicingStripeConnectionFailure, saveInvoicingSettings, saveInvoicingSettingsFailure, saveInvoicingSettingsSuccess, updateInvoicingSettings, updateInvoicingSettingsFailure, updateInvoicingStripeConnection, } from './settingsViewReducer';
|
|
5
|
+
export const fetchInvoicingSettingsEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchInvoicingSettings.match), switchMap(() => {
|
|
6
|
+
const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/settings`;
|
|
7
|
+
return zeniAPI.getJSON(apiUrl).pipe(switchMap((response) => {
|
|
8
|
+
if (isSuccessResponse(response) && response.data != null) {
|
|
9
|
+
return of(updateInvoicingSettings(response.data));
|
|
10
|
+
}
|
|
11
|
+
return of(updateInvoicingSettingsFailure(response.status));
|
|
12
|
+
}), catchError((error) => of(updateInvoicingSettingsFailure(createZeniAPIStatus('Unexpected Error', 'Fetch settings REST API call errored out ' +
|
|
13
|
+
JSON.stringify(error))))));
|
|
14
|
+
}));
|
|
15
|
+
export const connectInvoicingStripeEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(connectInvoicingStripe.match), switchMap((action) => {
|
|
16
|
+
const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/settings/stripe-connect/setup`;
|
|
17
|
+
const { api_key, publishable_key, webhook_secret } = action.payload;
|
|
18
|
+
const body = {
|
|
19
|
+
api_key,
|
|
20
|
+
publishable_key,
|
|
21
|
+
...(webhook_secret != null && webhook_secret !== ''
|
|
22
|
+
? { webhook_secret }
|
|
23
|
+
: {}),
|
|
24
|
+
};
|
|
25
|
+
return zeniAPI
|
|
26
|
+
.postAndGetJSON(apiUrl, body)
|
|
27
|
+
.pipe(switchMap((response) => {
|
|
28
|
+
if (isSuccessResponse(response) && response.data != null) {
|
|
29
|
+
return of(updateInvoicingStripeConnection({
|
|
30
|
+
stripe_connected: response.data.stripe_connected,
|
|
31
|
+
publishable_key: response.data.publishable_key,
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
return of(invoicingStripeConnectionFailure(response.status));
|
|
35
|
+
}), catchError((error) => of(invoicingStripeConnectionFailure(createZeniAPIStatus('Unexpected Error', 'Stripe connect setup REST API call errored out ' +
|
|
36
|
+
JSON.stringify(error))))));
|
|
37
|
+
}));
|
|
38
|
+
export const disconnectInvoicingStripeEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(disconnectInvoicingStripe.match), switchMap(() => {
|
|
39
|
+
const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/settings/stripe-connect/callback`;
|
|
40
|
+
return zeniAPI
|
|
41
|
+
.deleteAndGetJSON(apiUrl)
|
|
42
|
+
.pipe(switchMap((response) => {
|
|
43
|
+
if (isSuccessResponse(response)) {
|
|
44
|
+
return of(updateInvoicingStripeConnection({
|
|
45
|
+
stripe_connected: false,
|
|
46
|
+
publishable_key: '',
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
return of(invoicingStripeConnectionFailure(response.status));
|
|
50
|
+
}), catchError((error) => of(invoicingStripeConnectionFailure(createZeniAPIStatus('Unexpected Error', 'Stripe disconnect REST API call errored out ' +
|
|
51
|
+
JSON.stringify(error))))));
|
|
52
|
+
}));
|
|
53
|
+
export const saveInvoicingSettingsEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(saveInvoicingSettings.match), switchMap((action) => {
|
|
54
|
+
const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/settings`;
|
|
55
|
+
return zeniAPI
|
|
56
|
+
.putAndGetJSON(apiUrl, {
|
|
57
|
+
...action.payload,
|
|
58
|
+
})
|
|
59
|
+
.pipe(switchMap((response) => {
|
|
60
|
+
if (isSuccessResponse(response) && response.data != null) {
|
|
61
|
+
return of(saveInvoicingSettingsSuccess(response.data));
|
|
62
|
+
}
|
|
63
|
+
return of(saveInvoicingSettingsFailure(response.status));
|
|
64
|
+
}), catchError((error) => of(saveInvoicingSettingsFailure(createZeniAPIStatus('Unexpected Error', 'Save settings REST API call errored out ' +
|
|
65
|
+
JSON.stringify(error))))));
|
|
66
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
export const initialState = {
|
|
3
|
+
fetchState: 'Not-Started',
|
|
4
|
+
error: undefined,
|
|
5
|
+
saveFetchState: { fetchState: 'Not-Started', error: undefined },
|
|
6
|
+
stripeFetchState: { fetchState: 'Not-Started', error: undefined },
|
|
7
|
+
settings: undefined,
|
|
8
|
+
hasValidState() {
|
|
9
|
+
return this.fetchState === 'Completed' && this.settings != null;
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
const settingsView = createSlice({
|
|
13
|
+
name: 'invoicingSettingsView',
|
|
14
|
+
initialState,
|
|
15
|
+
reducers: {
|
|
16
|
+
fetchInvoicingSettings(draft) {
|
|
17
|
+
draft.fetchState = 'In-Progress';
|
|
18
|
+
draft.error = undefined;
|
|
19
|
+
},
|
|
20
|
+
updateInvoicingSettings(draft, action) {
|
|
21
|
+
draft.settings = action.payload;
|
|
22
|
+
draft.fetchState = 'Completed';
|
|
23
|
+
draft.error = undefined;
|
|
24
|
+
},
|
|
25
|
+
updateInvoicingSettingsFailure(draft, action) {
|
|
26
|
+
draft.fetchState = 'Error';
|
|
27
|
+
draft.error = action.payload;
|
|
28
|
+
},
|
|
29
|
+
saveInvoicingSettings(draft, action) {
|
|
30
|
+
draft.saveFetchState = { fetchState: 'In-Progress', error: undefined };
|
|
31
|
+
if (draft.settings != null) {
|
|
32
|
+
draft.settings = { ...draft.settings, ...action.payload };
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
saveInvoicingSettingsSuccess(draft, action) {
|
|
36
|
+
draft.settings = action.payload;
|
|
37
|
+
draft.saveFetchState = { fetchState: 'Completed', error: undefined };
|
|
38
|
+
},
|
|
39
|
+
saveInvoicingSettingsFailure(draft, action) {
|
|
40
|
+
draft.saveFetchState = { fetchState: 'Error', error: action.payload };
|
|
41
|
+
},
|
|
42
|
+
resetSaveInvoicingSettings(draft) {
|
|
43
|
+
draft.saveFetchState = { fetchState: 'Not-Started', error: undefined };
|
|
44
|
+
},
|
|
45
|
+
connectInvoicingStripe: {
|
|
46
|
+
reducer(draft) {
|
|
47
|
+
draft.stripeFetchState = { fetchState: 'In-Progress', error: undefined };
|
|
48
|
+
},
|
|
49
|
+
prepare(credentials) {
|
|
50
|
+
return { payload: credentials };
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
disconnectInvoicingStripe(draft) {
|
|
54
|
+
draft.stripeFetchState = { fetchState: 'In-Progress', error: undefined };
|
|
55
|
+
},
|
|
56
|
+
updateInvoicingStripeConnection(draft, action) {
|
|
57
|
+
draft.stripeFetchState = { fetchState: 'Completed', error: undefined };
|
|
58
|
+
if (draft.settings != null) {
|
|
59
|
+
draft.settings = {
|
|
60
|
+
...draft.settings,
|
|
61
|
+
stripe_connected: action.payload.stripe_connected,
|
|
62
|
+
stripe_publishable_key: action.payload.publishable_key ?? '',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
invoicingStripeConnectionFailure(draft, action) {
|
|
67
|
+
draft.stripeFetchState = { fetchState: 'Error', error: action.payload };
|
|
68
|
+
},
|
|
69
|
+
clearInvoicingSettings(draft) {
|
|
70
|
+
Object.assign(draft, initialState);
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
export const { fetchInvoicingSettings, updateInvoicingSettings, updateInvoicingSettingsFailure, saveInvoicingSettings, saveInvoicingSettingsSuccess, saveInvoicingSettingsFailure, resetSaveInvoicingSettings, connectInvoicingStripe, disconnectInvoicingStripe, updateInvoicingStripeConnection, invoicingStripeConnectionFailure, clearInvoicingSettings, } = settingsView.actions;
|
|
75
|
+
export default settingsView.reducer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const getInvoicingSettings = (state) => state.invoicingSettingsViewState.settings;
|
|
2
|
+
export const getInvoicingSettingsFetchState = (state) => ({
|
|
3
|
+
fetchState: state.invoicingSettingsViewState.fetchState,
|
|
4
|
+
error: state.invoicingSettingsViewState.error,
|
|
5
|
+
});
|
|
6
|
+
export const getInvoicingSettingsSaveState = (state) => state.invoicingSettingsViewState.saveFetchState;
|
|
7
|
+
export const getInvoicingStripeConnectState = (state) => state.invoicingSettingsViewState.stripeFetchState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { of } from 'rxjs';
|
|
2
|
+
import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
3
|
+
import { updateInvoicingSubscriptions } from '../../../entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer';
|
|
4
|
+
import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
|
|
5
|
+
import { runInvoicingSubscriptionAction, runInvoicingSubscriptionActionFailure, runInvoicingSubscriptionActionSuccess, } from './subscriptionActionReducer';
|
|
6
|
+
export const runInvoicingSubscriptionActionEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(runInvoicingSubscriptionAction.match), mergeMap((action) => {
|
|
7
|
+
const { action: kind, body, id } = action.payload;
|
|
8
|
+
const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/subscriptions/${encodeURIComponent(id)}/${kind}`;
|
|
9
|
+
return zeniAPI
|
|
10
|
+
.postAndGetJSON(apiUrl, body ?? {})
|
|
11
|
+
.pipe(mergeMap((response) => {
|
|
12
|
+
if (isSuccessResponse(response) && response.data != null) {
|
|
13
|
+
return [
|
|
14
|
+
updateInvoicingSubscriptions([response.data], 'merge'),
|
|
15
|
+
runInvoicingSubscriptionActionSuccess({ id }),
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
return of(runInvoicingSubscriptionActionFailure({
|
|
19
|
+
error: response.status,
|
|
20
|
+
id,
|
|
21
|
+
}));
|
|
22
|
+
}), catchError((error) => of(runInvoicingSubscriptionActionFailure({
|
|
23
|
+
error: createZeniAPIStatus('Unexpected Error', 'Subscription action REST API call errored out ' +
|
|
24
|
+
JSON.stringify(error)),
|
|
25
|
+
id,
|
|
26
|
+
}))));
|
|
27
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
export const initialState = {
|
|
3
|
+
byId: {},
|
|
4
|
+
};
|
|
5
|
+
const subscriptionAction = createSlice({
|
|
6
|
+
name: 'invoicingSubscriptionAction',
|
|
7
|
+
initialState,
|
|
8
|
+
reducers: {
|
|
9
|
+
runInvoicingSubscriptionAction(draft, action) {
|
|
10
|
+
draft.byId[action.payload.id] = {
|
|
11
|
+
fetchState: 'In-Progress',
|
|
12
|
+
error: undefined,
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
runInvoicingSubscriptionActionSuccess(draft, action) {
|
|
16
|
+
draft.byId[action.payload.id] = {
|
|
17
|
+
fetchState: 'Completed',
|
|
18
|
+
error: undefined,
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
runInvoicingSubscriptionActionFailure(draft, action) {
|
|
22
|
+
draft.byId[action.payload.id] = {
|
|
23
|
+
fetchState: 'Error',
|
|
24
|
+
error: action.payload.error,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
clearInvoicingSubscriptionAction(draft, action) {
|
|
28
|
+
delete draft.byId[action.payload];
|
|
29
|
+
},
|
|
30
|
+
clearAllInvoicingSubscriptionActions(draft) {
|
|
31
|
+
draft.byId = {};
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
export const { runInvoicingSubscriptionAction, runInvoicingSubscriptionActionSuccess, runInvoicingSubscriptionActionFailure, clearInvoicingSubscriptionAction, clearAllInvoicingSubscriptionActions, } = subscriptionAction.actions;
|
|
36
|
+
export default subscriptionAction.reducer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { of } from 'rxjs';
|
|
2
|
+
import { catchError, filter, switchMap } from 'rxjs/operators';
|
|
3
|
+
import { updateInvoicingTransactions } from '../../../entity/invoicing/transaction/transactionReducer';
|
|
4
|
+
import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
|
|
5
|
+
import { INVOICING_LIST_PAGE_SIZE, applyListSortParams, withQuery, } from '../invoicingApiHelper';
|
|
6
|
+
import { fetchInvoicingTransactionDetail, fetchInvoicingTransactionKPIs, fetchInvoicingTransactionList, updateInvoicingTransactionDetail, updateInvoicingTransactionDetailFailure, updateInvoicingTransactionKPIs, updateInvoicingTransactionKPIsFailure, updateInvoicingTransactionList, updateInvoicingTransactionListFailure, } from './transactionViewReducer';
|
|
7
|
+
const buildQuery = (filters, cursor, sort) => {
|
|
8
|
+
const params = new URLSearchParams();
|
|
9
|
+
if (filters.status != null && filters.status.length > 0) {
|
|
10
|
+
params.set('status', filters.status);
|
|
11
|
+
}
|
|
12
|
+
if (filters.customerId != null) {
|
|
13
|
+
params.set('customer_id', filters.customerId);
|
|
14
|
+
}
|
|
15
|
+
if (filters.type != null && filters.type.length > 0) {
|
|
16
|
+
params.set('type', filters.type);
|
|
17
|
+
}
|
|
18
|
+
if (filters.search != null && filters.search.length > 0) {
|
|
19
|
+
params.set('search', filters.search);
|
|
20
|
+
}
|
|
21
|
+
params.set('limit', String(INVOICING_LIST_PAGE_SIZE));
|
|
22
|
+
if (cursor != null) {
|
|
23
|
+
params.set('cursor', cursor);
|
|
24
|
+
}
|
|
25
|
+
applyListSortParams(params, sort);
|
|
26
|
+
return params;
|
|
27
|
+
};
|
|
28
|
+
export const fetchInvoicingTransactionListEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchInvoicingTransactionList.match), switchMap((action) => {
|
|
29
|
+
const { filters, cursor, keepExistingListItems, sort } = action.payload;
|
|
30
|
+
const apiUrl = withQuery(`${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/payments`, buildQuery(filters, cursor, sort));
|
|
31
|
+
return zeniAPI.getJSON(apiUrl).pipe(switchMap((response) => {
|
|
32
|
+
if (isSuccessResponse(response)) {
|
|
33
|
+
const items = response.data?.items ?? [];
|
|
34
|
+
return [
|
|
35
|
+
updateInvoicingTransactions(items, 'merge'),
|
|
36
|
+
updateInvoicingTransactionList({
|
|
37
|
+
ids: items.map((item) => item.id),
|
|
38
|
+
nextCursor: response.data?.next_cursor ?? null,
|
|
39
|
+
keepExistingListItems,
|
|
40
|
+
}),
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
return of(updateInvoicingTransactionListFailure(response.status));
|
|
44
|
+
}), catchError((error) => of(updateInvoicingTransactionListFailure(createZeniAPIStatus('Unexpected Error', 'Fetch payment list REST API call errored out ' +
|
|
45
|
+
JSON.stringify(error))))));
|
|
46
|
+
}));
|
|
47
|
+
export const fetchInvoicingTransactionKPIsEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchInvoicingTransactionKPIs.match), switchMap(() => {
|
|
48
|
+
const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/payments/kpis`;
|
|
49
|
+
return zeniAPI.getJSON(apiUrl).pipe(switchMap((response) => {
|
|
50
|
+
if (isSuccessResponse(response) && response.data != null) {
|
|
51
|
+
return of(updateInvoicingTransactionKPIs(response.data));
|
|
52
|
+
}
|
|
53
|
+
return of(updateInvoicingTransactionKPIsFailure(response.status));
|
|
54
|
+
}), catchError((error) => of(updateInvoicingTransactionKPIsFailure(createZeniAPIStatus('Unexpected Error', 'Fetch payment KPIs REST API call errored out ' +
|
|
55
|
+
JSON.stringify(error))))));
|
|
56
|
+
}));
|
|
57
|
+
export const fetchInvoicingTransactionDetailEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchInvoicingTransactionDetail.match), switchMap((action) => {
|
|
58
|
+
const { id } = action.payload;
|
|
59
|
+
const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/payments/${id}`;
|
|
60
|
+
return zeniAPI.getJSON(apiUrl).pipe(switchMap((response) => {
|
|
61
|
+
if (isSuccessResponse(response) && response.data != null) {
|
|
62
|
+
return [
|
|
63
|
+
updateInvoicingTransactions([response.data], 'merge'),
|
|
64
|
+
updateInvoicingTransactionDetail({ id: response.data.id }),
|
|
65
|
+
];
|
|
66
|
+
}
|
|
67
|
+
return of(updateInvoicingTransactionDetailFailure(response.status));
|
|
68
|
+
}), catchError((error) => of(updateInvoicingTransactionDetailFailure(createZeniAPIStatus('Unexpected Error', 'Fetch payment detail REST API call errored out ' +
|
|
69
|
+
JSON.stringify(error))))));
|
|
70
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
export const initialState = {
|
|
3
|
+
fetchState: 'Not-Started',
|
|
4
|
+
error: undefined,
|
|
5
|
+
ids: [],
|
|
6
|
+
nextCursor: null,
|
|
7
|
+
filters: {},
|
|
8
|
+
kpis: undefined,
|
|
9
|
+
kpisFetchState: { fetchState: 'Not-Started', error: undefined },
|
|
10
|
+
detailId: undefined,
|
|
11
|
+
detailFetchState: { fetchState: 'Not-Started', error: undefined },
|
|
12
|
+
hasValidState() {
|
|
13
|
+
return this.fetchState === 'Completed';
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
const transactionView = createSlice({
|
|
17
|
+
name: 'invoicingTransactionView',
|
|
18
|
+
initialState,
|
|
19
|
+
reducers: {
|
|
20
|
+
fetchInvoicingTransactionList: {
|
|
21
|
+
reducer(draft, action) {
|
|
22
|
+
if (!action.payload.keepExistingListItems) {
|
|
23
|
+
draft.ids = [];
|
|
24
|
+
draft.nextCursor = null;
|
|
25
|
+
}
|
|
26
|
+
draft.filters = action.payload.filters;
|
|
27
|
+
draft.sort = action.payload.sort;
|
|
28
|
+
draft.fetchState = 'In-Progress';
|
|
29
|
+
draft.error = undefined;
|
|
30
|
+
},
|
|
31
|
+
prepare(payload) {
|
|
32
|
+
return {
|
|
33
|
+
payload: {
|
|
34
|
+
filters: payload.filters ?? {},
|
|
35
|
+
cursor: payload.cursor,
|
|
36
|
+
keepExistingListItems: payload.keepExistingListItems ?? false,
|
|
37
|
+
sort: payload.sort,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
updateInvoicingTransactionList(draft, action) {
|
|
43
|
+
draft.ids = action.payload.keepExistingListItems
|
|
44
|
+
? [...new Set([...draft.ids, ...action.payload.ids])]
|
|
45
|
+
: action.payload.ids;
|
|
46
|
+
draft.nextCursor = action.payload.nextCursor;
|
|
47
|
+
draft.fetchState = 'Completed';
|
|
48
|
+
draft.error = undefined;
|
|
49
|
+
},
|
|
50
|
+
updateInvoicingTransactionListFailure(draft, action) {
|
|
51
|
+
draft.fetchState = 'Error';
|
|
52
|
+
draft.error = action.payload;
|
|
53
|
+
},
|
|
54
|
+
fetchInvoicingTransactionKPIs(draft) {
|
|
55
|
+
draft.kpisFetchState.fetchState = 'In-Progress';
|
|
56
|
+
draft.kpisFetchState.error = undefined;
|
|
57
|
+
},
|
|
58
|
+
updateInvoicingTransactionKPIs(draft, action) {
|
|
59
|
+
draft.kpis = action.payload;
|
|
60
|
+
draft.kpisFetchState.fetchState = 'Completed';
|
|
61
|
+
draft.kpisFetchState.error = undefined;
|
|
62
|
+
},
|
|
63
|
+
updateInvoicingTransactionKPIsFailure(draft, action) {
|
|
64
|
+
draft.kpisFetchState.fetchState = 'Error';
|
|
65
|
+
draft.kpisFetchState.error = action.payload;
|
|
66
|
+
},
|
|
67
|
+
updateInvoicingTransactionFilters(draft, action) {
|
|
68
|
+
draft.filters = action.payload;
|
|
69
|
+
},
|
|
70
|
+
fetchInvoicingTransactionDetail(draft, action) {
|
|
71
|
+
draft.detailId = action.payload.id;
|
|
72
|
+
draft.detailFetchState.fetchState = 'In-Progress';
|
|
73
|
+
draft.detailFetchState.error = undefined;
|
|
74
|
+
},
|
|
75
|
+
updateInvoicingTransactionDetail(draft, action) {
|
|
76
|
+
draft.detailId = action.payload.id;
|
|
77
|
+
draft.detailFetchState.fetchState = 'Completed';
|
|
78
|
+
draft.detailFetchState.error = undefined;
|
|
79
|
+
},
|
|
80
|
+
updateInvoicingTransactionDetailFailure(draft, action) {
|
|
81
|
+
draft.detailFetchState.fetchState = 'Error';
|
|
82
|
+
draft.detailFetchState.error = action.payload;
|
|
83
|
+
},
|
|
84
|
+
clearInvoicingTransactionView(draft) {
|
|
85
|
+
Object.assign(draft, initialState);
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
export const { fetchInvoicingTransactionList, updateInvoicingTransactionList, updateInvoicingTransactionListFailure, fetchInvoicingTransactionKPIs, updateInvoicingTransactionKPIs, updateInvoicingTransactionKPIsFailure, updateInvoicingTransactionFilters, fetchInvoicingTransactionDetail, updateInvoicingTransactionDetail, updateInvoicingTransactionDetailFailure, clearInvoicingTransactionView, } = transactionView.actions;
|
|
90
|
+
export default transactionView.reducer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const getInvoicingTransactionListItems = (state) => state.invoicingTransactionViewState.ids
|
|
2
|
+
.map((id) => state.invoicingTransactionState.transactionByID[id])
|
|
3
|
+
.filter((item) => item != null);
|
|
4
|
+
export const getInvoicingTransactionListFetchState = (state) => ({
|
|
5
|
+
fetchState: state.invoicingTransactionViewState.fetchState,
|
|
6
|
+
error: state.invoicingTransactionViewState.error,
|
|
7
|
+
});
|
|
8
|
+
export const getInvoicingTransactionListNextCursor = (state) => state.invoicingTransactionViewState.nextCursor;
|
|
9
|
+
export const getInvoicingTransactionListHasMore = (state) => state.invoicingTransactionViewState.nextCursor != null;
|
|
10
|
+
export const getInvoicingTransactionListFilters = (state) => state.invoicingTransactionViewState.filters;
|
|
11
|
+
export const getInvoicingTransactionKPIs = (state) => state.invoicingTransactionViewState.kpis;
|
|
12
|
+
export const getInvoicingTransactionById = (state, id) => state.invoicingTransactionState.transactionByID[id];
|
|
13
|
+
export const getInvoicingTransactionDetail = (state) => {
|
|
14
|
+
const id = state.invoicingTransactionViewState.detailId;
|
|
15
|
+
return id != null
|
|
16
|
+
? state.invoicingTransactionState.transactionByID[id]
|
|
17
|
+
: undefined;
|
|
18
|
+
};
|
|
19
|
+
export const getInvoicingTransactionDetailFetchState = (state) => state.invoicingTransactionViewState.detailFetchState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -122,11 +122,7 @@ const getSelectedProducts = (isDebitCardFlagEnabled, tenant) => {
|
|
|
122
122
|
return [];
|
|
123
123
|
}
|
|
124
124
|
else if (isBookkeepingEnabled) {
|
|
125
|
-
return [
|
|
126
|
-
'bookkeeping',
|
|
127
|
-
'zeni_bill_pay',
|
|
128
|
-
'zeni_reimbursements',
|
|
129
|
-
];
|
|
125
|
+
return ['bookkeeping', 'zeni_bill_pay', 'zeni_reimbursements'];
|
|
130
126
|
}
|
|
131
127
|
else if (isOtherProductsEnabled) {
|
|
132
128
|
const selectedProducts = [];
|
|
@@ -78,9 +78,8 @@ export const updateOnboardingCustomerViewLocalStoreDataEpic = (actions$, state$)
|
|
|
78
78
|
companyView?.company.company.companyOnboardingInfo
|
|
79
79
|
.subscriptionBillingAddressId != null) {
|
|
80
80
|
updatedCurrentStep = 'connect_ledger';
|
|
81
|
-
const isOnboardingAiActivationViewed = companyOnboardingInfo?.onboardingInfo
|
|
82
|
-
?.
|
|
83
|
-
false;
|
|
81
|
+
const isOnboardingAiActivationViewed = companyOnboardingInfo?.onboardingInfo?.onboardingAiActivationInfo
|
|
82
|
+
?.isOnboardingAiActivationViewed ?? false;
|
|
84
83
|
// Past the ledger step we always sit on connect_data_source —
|
|
85
84
|
// it has many integrations, so we treat it as never auto-complete
|
|
86
85
|
// and only advance to verification on an explicit user dispatch.
|
|
@@ -114,7 +113,9 @@ export const updateOnboardingCustomerViewLocalStoreDataEpic = (actions$, state$)
|
|
|
114
113
|
// stale subStep (e.g. 'default' carried over from another step)
|
|
115
114
|
// leaves verification rendering an empty form.
|
|
116
115
|
if (updatedCurrentStep !== onboardingCustomerViewState.currentStep) {
|
|
117
|
-
const targetSubStep = updatedCurrentStep === 'verification'
|
|
116
|
+
const targetSubStep = updatedCurrentStep === 'verification'
|
|
117
|
+
? 'unlock-stack'
|
|
118
|
+
: 'default';
|
|
118
119
|
fetchActions.push(updateCurrentSubStep({ subStep: targetSubStep }));
|
|
119
120
|
}
|
|
120
121
|
}
|
|
@@ -111,7 +111,8 @@ const setupView = createSlice({
|
|
|
111
111
|
saveSetupViewDataInLocalStore(draft, action) {
|
|
112
112
|
const setupViewLocalData = action.payload;
|
|
113
113
|
if (setupViewLocalData.companyDetails != null) {
|
|
114
|
-
const syncToken = setupViewLocalData.companyDetails.syncToken ??
|
|
114
|
+
const syncToken = setupViewLocalData.companyDetails.syncToken ??
|
|
115
|
+
draft.companyDetails.localData?.syncToken;
|
|
115
116
|
draft.companyDetails.localData = {
|
|
116
117
|
...setupViewLocalData.companyDetails,
|
|
117
118
|
...(syncToken != null ? { syncToken } : {}),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import recordGet from 'lodash/get';
|
|
2
2
|
import { from } from 'rxjs';
|
|
3
3
|
import { filter, mergeMap } from 'rxjs/operators';
|
|
4
|
-
import { getSupportedTransactionById } from '../../../entity/transaction/transactionSelector';
|
|
5
4
|
import { getIsAccountingProjectsEnabled } from '../../../entity/tenant/tenantSelector';
|
|
5
|
+
import { getSupportedTransactionById } from '../../../entity/transaction/transactionSelector';
|
|
6
6
|
import { saveTransactionDetail, updateTransactionDetail, } from '../transactionDetailReducer';
|
|
7
7
|
import { getTransactionDetailKey } from '../transactionDetailState';
|
|
8
8
|
import { toTransactionUpdatesFromTransactionDetailLocalData } from './saveTransactionHelper';
|
|
@@ -3,6 +3,7 @@ import { from, of } from 'rxjs';
|
|
|
3
3
|
import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
4
4
|
import { toRecommendationPayload } from '../../../commonPayloadTypes/recommendationPayload';
|
|
5
5
|
import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
|
|
6
|
+
import { getIsAccountingProjectsEnabled } from '../../../entity/tenant/tenantSelector';
|
|
6
7
|
import { toCustomerTransactionPayload } from '../../../entity/transaction/payloadTypes/customerTransactionPayload';
|
|
7
8
|
import { toTransferTransactionPayload } from '../../../entity/transaction/payloadTypes/otherTransactionPayload';
|
|
8
9
|
import { toTransactionID } from '../../../entity/transaction/payloadTypes/transactionIDPayload';
|
|
@@ -19,7 +20,6 @@ import { getSupportedTransactionById } from '../../../entity/transaction/transac
|
|
|
19
20
|
import { updateVendors } from '../../../entity/vendor/vendorReducer';
|
|
20
21
|
import { getVendorByVendorId } from '../../../entity/vendor/vendorSelector';
|
|
21
22
|
import { createZeniAPIStatus, isActionNotAllowed, isSuccessResponse, } from '../../../responsePayload';
|
|
22
|
-
import { getIsAccountingProjectsEnabled } from '../../../entity/tenant/tenantSelector';
|
|
23
23
|
import { getUncategorizedAccounts } from '../../accountList/accountListSelector';
|
|
24
24
|
import { getPendingReviewLineIdsFromTransaction } from '../../expenseAutomationView/helpers/transactionCategorizationLocalDataHelper';
|
|
25
25
|
import { syncTransactionCategorizationFromDetailSave } from '../../expenseAutomationView/reducers/transactionsViewReducer';
|