@zeniai/client-epic-state 5.1.16 → 5.1.18-betaAA0
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/customer/customerPayload.d.ts +7 -1
- package/lib/entity/customer/customerPayload.js +32 -9
- package/lib/entity/invoicing/coupon/couponReducer.d.ts +12 -0
- package/lib/entity/invoicing/coupon/couponReducer.js +33 -0
- package/lib/entity/invoicing/creditNote/creditNoteReducer.d.ts +12 -0
- package/lib/entity/invoicing/creditNote/creditNoteReducer.js +35 -0
- package/lib/entity/invoicing/customer/customerReducer.d.ts +12 -0
- package/lib/entity/invoicing/customer/customerReducer.js +33 -0
- package/lib/entity/invoicing/dunningCase/dunningCaseReducer.d.ts +12 -0
- package/lib/entity/invoicing/dunningCase/dunningCaseReducer.js +35 -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/invoicingTypes.d.ts +766 -0
- package/lib/entity/invoicing/invoicingTypes.js +15 -0
- package/lib/entity/invoicing/plan/planReducer.d.ts +12 -0
- package/lib/entity/invoicing/plan/planReducer.js +33 -0
- package/lib/entity/invoicing/product/productReducer.d.ts +12 -0
- package/lib/entity/invoicing/product/productReducer.js +33 -0
- package/lib/entity/invoicing/subscription/subscriptionReducer.d.ts +12 -0
- package/lib/entity/invoicing/subscription/subscriptionReducer.js +35 -0
- package/lib/entity/invoicing/transaction/transactionReducer.d.ts +12 -0
- package/lib/entity/invoicing/transaction/transactionReducer.js +35 -0
- package/lib/entity/reimbursement/reimbursementPayload.js +2 -1
- package/lib/entity/task/taskState.d.ts +1 -1
- package/lib/entity/tenant/clearAllEpic.d.ts +39 -2
- package/lib/entity/tenant/clearAllEpic.js +82 -8
- package/lib/entity/tenant/tenantReducer.js +3 -3
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +1 -1
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -1
- package/lib/entity/transactionActivityLog/transactionActivityLogPayload.js +4 -1
- package/lib/epic.d.ts +31 -1
- package/lib/epic.js +32 -1
- package/lib/esm/entity/customer/customerPayload.js +30 -8
- package/lib/esm/entity/invoicing/coupon/couponReducer.js +29 -0
- package/lib/esm/entity/invoicing/creditNote/creditNoteReducer.js +31 -0
- package/lib/esm/entity/invoicing/customer/customerReducer.js +29 -0
- package/lib/esm/entity/invoicing/dunningCase/dunningCaseReducer.js +31 -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/invoicingTypes.js +14 -0
- package/lib/esm/entity/invoicing/plan/planReducer.js +29 -0
- package/lib/esm/entity/invoicing/product/productReducer.js +29 -0
- package/lib/esm/entity/invoicing/subscription/subscriptionReducer.js +31 -0
- package/lib/esm/entity/invoicing/transaction/transactionReducer.js +31 -0
- package/lib/esm/entity/reimbursement/reimbursementPayload.js +3 -2
- package/lib/esm/entity/tenant/clearAllEpic.js +74 -0
- package/lib/esm/entity/tenant/tenantReducer.js +3 -3
- package/lib/esm/entity/transaction/payloadTypes/transactionLinePayload.js +2 -2
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogPayload.js +5 -2
- package/lib/esm/epic.js +32 -1
- package/lib/esm/index.js +78 -0
- package/lib/esm/reducer.js +114 -0
- package/lib/esm/view/invoicing/analyticsView/analyticsViewEpics.js +42 -0
- package/lib/esm/view/invoicing/analyticsView/analyticsViewReducer.js +45 -0
- package/lib/esm/view/invoicing/analyticsView/analyticsViewSelector.js +10 -0
- package/lib/esm/view/invoicing/approvalAction/approvalActionEpic.js +28 -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/approvalsView/approvalsViewEpics.js +37 -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/auditView/auditViewEpics.js +46 -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/catalogView/catalogViewEpics.js +143 -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/catalogWrite/catalogWriteEpic.js +34 -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/couponView/couponViewEpics.js +83 -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/couponWrite/couponWriteEpic.js +29 -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/createInvoice/createInvoiceEpic.js +23 -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/creditNoteView/creditNoteViewEpics.js +87 -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/customerPaymentMethod/customerPaymentMethodEpic.js +63 -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/customerView/customerViewEpics.js +71 -0
- package/lib/esm/view/invoicing/customerView/customerViewReducer.js +90 -0
- package/lib/esm/view/invoicing/customerView/customerViewSelector.js +17 -0
- package/lib/esm/view/invoicing/customerWrite/customerWriteEpic.js +23 -0
- package/lib/esm/view/invoicing/customerWrite/customerWriteReducer.js +36 -0
- package/lib/esm/view/invoicing/customerWrite/customerWriteSelector.js +5 -0
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionEpic.js +41 -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/dataImportView/dataImportViewEpics.js +41 -0
- package/lib/esm/view/invoicing/dataImportView/dataImportViewReducer.js +66 -0
- package/lib/esm/view/invoicing/dataImportView/dataImportViewSelector.js +6 -0
- package/lib/esm/view/invoicing/dunningAction/dunningActionEpic.js +28 -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/dunningCaseView/dunningCaseViewEpics.js +85 -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/invoiceAction/invoiceActionEpic.js +50 -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/invoiceDetail/fetchInvoiceDetailEpic.js +20 -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 +17 -0
- package/lib/esm/view/invoicing/invoiceList/fetchInvoiceListEpic.js +55 -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 +37 -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/invoicingApiHelper.js +38 -0
- package/lib/esm/view/invoicing/paymentAction/paymentActionEpic.js +28 -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/recordPayment/recordPaymentEpic.js +23 -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/reportsView/reportsViewEpics.js +28 -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/settingsView/settingsViewEpics.js +53 -0
- package/lib/esm/view/invoicing/settingsView/settingsViewReducer.js +69 -0
- package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +7 -0
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionEpic.js +28 -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/subscriptionView/subscriptionViewEpics.js +85 -0
- package/lib/esm/view/invoicing/subscriptionView/subscriptionViewReducer.js +90 -0
- package/lib/esm/view/invoicing/subscriptionView/subscriptionViewSelector.js +19 -0
- package/lib/esm/view/invoicing/subscriptionWrite/subscriptionWriteEpic.js +25 -0
- package/lib/esm/view/invoicing/subscriptionWrite/subscriptionWriteReducer.js +36 -0
- package/lib/esm/view/invoicing/subscriptionWrite/subscriptionWriteSelector.js +5 -0
- package/lib/esm/view/invoicing/transactionView/transactionViewEpics.js +76 -0
- package/lib/esm/view/invoicing/transactionView/transactionViewReducer.js +90 -0
- package/lib/esm/view/invoicing/transactionView/transactionViewSelector.js +19 -0
- package/lib/index.d.ts +97 -0
- package/lib/index.js +365 -1
- package/lib/reducer.d.ts +114 -0
- package/lib/reducer.js +126 -12
- package/lib/view/invoicing/analyticsView/analyticsViewEpics.d.ts +7 -0
- package/lib/view/invoicing/analyticsView/analyticsViewEpics.js +46 -0
- package/lib/view/invoicing/analyticsView/analyticsViewReducer.d.ts +22 -0
- package/lib/view/invoicing/analyticsView/analyticsViewReducer.js +49 -0
- package/lib/view/invoicing/analyticsView/analyticsViewSelector.d.ts +10 -0
- package/lib/view/invoicing/analyticsView/analyticsViewSelector.js +20 -0
- package/lib/view/invoicing/approvalAction/approvalActionEpic.d.ts +8 -0
- package/lib/view/invoicing/approvalAction/approvalActionEpic.js +32 -0
- package/lib/view/invoicing/approvalAction/approvalActionReducer.d.ts +20 -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/approvalsView/approvalsViewEpics.d.ts +7 -0
- package/lib/view/invoicing/approvalsView/approvalsViewEpics.js +41 -0
- package/lib/view/invoicing/approvalsView/approvalsViewReducer.d.ts +33 -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/auditView/auditViewEpics.d.ts +7 -0
- package/lib/view/invoicing/auditView/auditViewEpics.js +50 -0
- package/lib/view/invoicing/auditView/auditViewReducer.d.ts +36 -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/catalogView/catalogViewEpics.d.ts +14 -0
- package/lib/view/invoicing/catalogView/catalogViewEpics.js +152 -0
- package/lib/view/invoicing/catalogView/catalogViewReducer.d.ts +76 -0
- package/lib/view/invoicing/catalogView/catalogViewReducer.js +166 -0
- package/lib/view/invoicing/catalogView/catalogViewSelector.d.ts +22 -0
- package/lib/view/invoicing/catalogView/catalogViewSelector.js +52 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteEpic.d.ts +9 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteEpic.js +38 -0
- package/lib/view/invoicing/catalogWrite/catalogWriteReducer.d.ts +21 -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/couponView/couponViewEpics.d.ts +11 -0
- package/lib/view/invoicing/couponView/couponViewEpics.js +90 -0
- package/lib/view/invoicing/couponView/couponViewReducer.d.ts +42 -0
- package/lib/view/invoicing/couponView/couponViewReducer.js +109 -0
- package/lib/view/invoicing/couponView/couponViewSelector.d.ts +14 -0
- package/lib/view/invoicing/couponView/couponViewSelector.js +31 -0
- package/lib/view/invoicing/couponWrite/couponWriteEpic.d.ts +8 -0
- package/lib/view/invoicing/couponWrite/couponWriteEpic.js +33 -0
- package/lib/view/invoicing/couponWrite/couponWriteReducer.d.ts +17 -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/createInvoice/createInvoiceEpic.d.ts +8 -0
- package/lib/view/invoicing/createInvoice/createInvoiceEpic.js +27 -0
- package/lib/view/invoicing/createInvoice/createInvoiceReducer.d.ts +34 -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/creditNoteView/creditNoteViewEpics.d.ts +11 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewEpics.js +94 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewReducer.d.ts +43 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewReducer.js +109 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewSelector.d.ts +14 -0
- package/lib/view/invoicing/creditNoteView/creditNoteViewSelector.js +33 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.d.ts +11 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.js +70 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodReducer.d.ts +42 -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/customerView/customerViewEpics.d.ts +10 -0
- package/lib/view/invoicing/customerView/customerViewEpics.js +77 -0
- package/lib/view/invoicing/customerView/customerViewReducer.d.ts +41 -0
- package/lib/view/invoicing/customerView/customerViewReducer.js +94 -0
- package/lib/view/invoicing/customerView/customerViewSelector.d.ts +13 -0
- package/lib/view/invoicing/customerView/customerViewSelector.js +29 -0
- package/lib/view/invoicing/customerWrite/customerWriteEpic.d.ts +8 -0
- package/lib/view/invoicing/customerWrite/customerWriteEpic.js +27 -0
- package/lib/view/invoicing/customerWrite/customerWriteReducer.d.ts +17 -0
- package/lib/view/invoicing/customerWrite/customerWriteReducer.js +40 -0
- package/lib/view/invoicing/customerWrite/customerWriteSelector.d.ts +4 -0
- package/lib/view/invoicing/customerWrite/customerWriteSelector.js +10 -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/dataImportActionReducer.d.ts +23 -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/dataImportView/dataImportViewEpics.d.ts +9 -0
- package/lib/view/invoicing/dataImportView/dataImportViewEpics.js +47 -0
- package/lib/view/invoicing/dataImportView/dataImportViewReducer.d.ts +15 -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 +15 -0
- package/lib/view/invoicing/dunningAction/dunningActionEpic.d.ts +8 -0
- package/lib/view/invoicing/dunningAction/dunningActionEpic.js +32 -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/dunningCaseView/dunningCaseViewEpics.d.ts +11 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewEpics.js +92 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewReducer.d.ts +42 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewReducer.js +109 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewSelector.d.ts +14 -0
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewSelector.js +33 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionEpic.d.ts +9 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionEpic.js +55 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionReducer.d.ts +26 -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/invoiceDetail/fetchInvoiceDetailEpic.d.ts +8 -0
- package/lib/view/invoicing/invoiceDetail/fetchInvoiceDetailEpic.js +24 -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 +21 -0
- package/lib/view/invoicing/invoiceList/fetchInvoiceListEpic.d.ts +8 -0
- package/lib/view/invoicing/invoiceList/fetchInvoiceListEpic.js +59 -0
- package/lib/view/invoicing/invoiceList/invoiceListReducer.d.ts +22 -0
- package/lib/view/invoicing/invoiceList/invoiceListReducer.js +94 -0
- package/lib/view/invoicing/invoiceList/invoiceListSelector.d.ts +11 -0
- package/lib/view/invoicing/invoiceList/invoiceListSelector.js +21 -0
- package/lib/view/invoicing/invoiceList/invoiceListState.d.ts +25 -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 +41 -0
- package/lib/view/invoicing/invoicePdf/invoicePdfReducer.d.ts +20 -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/invoicingApiHelper.d.ts +22 -0
- package/lib/view/invoicing/invoicingApiHelper.js +44 -0
- package/lib/view/invoicing/paymentAction/paymentActionEpic.d.ts +8 -0
- package/lib/view/invoicing/paymentAction/paymentActionEpic.js +32 -0
- package/lib/view/invoicing/paymentAction/paymentActionReducer.d.ts +21 -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/recordPayment/recordPaymentEpic.d.ts +8 -0
- package/lib/view/invoicing/recordPayment/recordPaymentEpic.js +27 -0
- package/lib/view/invoicing/recordPayment/recordPaymentReducer.d.ts +32 -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/reportsView/reportsViewEpics.d.ts +7 -0
- package/lib/view/invoicing/reportsView/reportsViewEpics.js +32 -0
- package/lib/view/invoicing/reportsView/reportsViewReducer.d.ts +20 -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/settingsView/settingsViewEpics.d.ts +10 -0
- package/lib/view/invoicing/settingsView/settingsViewEpics.js +60 -0
- package/lib/view/invoicing/settingsView/settingsViewReducer.d.ts +12 -0
- package/lib/view/invoicing/settingsView/settingsViewReducer.js +73 -0
- package/lib/view/invoicing/settingsView/settingsViewSelector.d.ts +7 -0
- package/lib/view/invoicing/settingsView/settingsViewSelector.js +14 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionEpic.d.ts +8 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionEpic.js +32 -0
- package/lib/view/invoicing/subscriptionAction/subscriptionActionReducer.d.ts +21 -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/subscriptionView/subscriptionViewEpics.d.ts +10 -0
- package/lib/view/invoicing/subscriptionView/subscriptionViewEpics.js +91 -0
- package/lib/view/invoicing/subscriptionView/subscriptionViewReducer.d.ts +44 -0
- package/lib/view/invoicing/subscriptionView/subscriptionViewReducer.js +94 -0
- package/lib/view/invoicing/subscriptionView/subscriptionViewSelector.d.ts +13 -0
- package/lib/view/invoicing/subscriptionView/subscriptionViewSelector.js +31 -0
- package/lib/view/invoicing/subscriptionWrite/subscriptionWriteEpic.d.ts +8 -0
- package/lib/view/invoicing/subscriptionWrite/subscriptionWriteEpic.js +29 -0
- package/lib/view/invoicing/subscriptionWrite/subscriptionWriteReducer.d.ts +17 -0
- package/lib/view/invoicing/subscriptionWrite/subscriptionWriteReducer.js +40 -0
- package/lib/view/invoicing/subscriptionWrite/subscriptionWriteSelector.d.ts +4 -0
- package/lib/view/invoicing/subscriptionWrite/subscriptionWriteSelector.js +10 -0
- package/lib/view/invoicing/transactionView/transactionViewEpics.d.ts +10 -0
- package/lib/view/invoicing/transactionView/transactionViewEpics.js +82 -0
- package/lib/view/invoicing/transactionView/transactionViewReducer.d.ts +43 -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/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
- 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/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +3 -3
- package/lib/zeniAPI.d.ts +1 -0
- package/package.json +1 -1
package/lib/reducer.d.ts
CHANGED
|
@@ -32,6 +32,15 @@ import { ForecastState } from './entity/forecast/forecastState';
|
|
|
32
32
|
import { EntityState } from './entity/genericEntity/entityState';
|
|
33
33
|
import { GlobalMerchantState } from './entity/globalMerchant/globalMerchantState';
|
|
34
34
|
import { InsightState } from './entity/insights/insightState';
|
|
35
|
+
import { InvoicingCouponState } from './entity/invoicing/coupon/couponReducer';
|
|
36
|
+
import { InvoicingCreditNoteState } from './entity/invoicing/creditNote/creditNoteReducer';
|
|
37
|
+
import { InvoicingCustomerState } from './entity/invoicing/customer/customerReducer';
|
|
38
|
+
import { InvoicingDunningCaseState } from './entity/invoicing/dunningCase/dunningCaseReducer';
|
|
39
|
+
import { InvoiceState as InvoicingInvoiceState } from './entity/invoicing/invoice/invoiceState';
|
|
40
|
+
import { InvoicingPlanState } from './entity/invoicing/plan/planReducer';
|
|
41
|
+
import { InvoicingProductState } from './entity/invoicing/product/productReducer';
|
|
42
|
+
import { InvoicingSubscriptionState } from './entity/invoicing/subscription/subscriptionReducer';
|
|
43
|
+
import { InvoicingTransactionState } from './entity/invoicing/transaction/transactionReducer';
|
|
35
44
|
import { JESchedulesState } from './entity/jeSchedules/jeSchedulesState';
|
|
36
45
|
import { MerchantState } from './entity/merchant/merchant';
|
|
37
46
|
import { MonthEndCloseChecksState } from './entity/monthEndCloseChecks/monthEndCloseChecksState';
|
|
@@ -115,6 +124,35 @@ import { ForecastListState } from './view/forecastList/forecastListState';
|
|
|
115
124
|
import { GlobalMerchantAutoCompleteState } from './view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState';
|
|
116
125
|
import { GlobalMerchantViewState } from './view/globalMerchantView/globalMerchantViewState';
|
|
117
126
|
import { InsightsCardState } from './view/insightsCard/insightsCardState';
|
|
127
|
+
import { InvoicingAnalyticsViewState } from './view/invoicing/analyticsView/analyticsViewReducer';
|
|
128
|
+
import { InvoicingApprovalActionState } from './view/invoicing/approvalAction/approvalActionReducer';
|
|
129
|
+
import { InvoicingApprovalsViewState } from './view/invoicing/approvalsView/approvalsViewReducer';
|
|
130
|
+
import { InvoicingAuditViewState } from './view/invoicing/auditView/auditViewReducer';
|
|
131
|
+
import { InvoicingCatalogViewState } from './view/invoicing/catalogView/catalogViewReducer';
|
|
132
|
+
import { InvoicingCatalogWriteState } from './view/invoicing/catalogWrite/catalogWriteReducer';
|
|
133
|
+
import { InvoicingCouponWriteState } from './view/invoicing/couponWrite/couponWriteReducer';
|
|
134
|
+
import { InvoicingCouponViewState } from './view/invoicing/couponView/couponViewReducer';
|
|
135
|
+
import { CreateInvoiceState as InvoicingCreateInvoiceState } from './view/invoicing/createInvoice/createInvoiceReducer';
|
|
136
|
+
import { InvoicingCreditNoteViewState } from './view/invoicing/creditNoteView/creditNoteViewReducer';
|
|
137
|
+
import { InvoicingCustomerPaymentMethodState } from './view/invoicing/customerPaymentMethod/customerPaymentMethodReducer';
|
|
138
|
+
import { InvoicingCustomerViewState } from './view/invoicing/customerView/customerViewReducer';
|
|
139
|
+
import { InvoicingCustomerWriteState } from './view/invoicing/customerWrite/customerWriteReducer';
|
|
140
|
+
import { InvoicingDataImportActionState } from './view/invoicing/dataImportAction/dataImportActionReducer';
|
|
141
|
+
import { InvoicingDataImportViewState } from './view/invoicing/dataImportView/dataImportViewReducer';
|
|
142
|
+
import { InvoicingDunningActionState } from './view/invoicing/dunningAction/dunningActionReducer';
|
|
143
|
+
import { InvoicingDunningCaseViewState } from './view/invoicing/dunningCaseView/dunningCaseViewReducer';
|
|
144
|
+
import { InvoicingInvoiceActionState } from './view/invoicing/invoiceAction/invoiceActionReducer';
|
|
145
|
+
import { InvoiceDetailState as InvoicingInvoiceDetailState } from './view/invoicing/invoiceDetail/invoiceDetailState';
|
|
146
|
+
import { InvoiceListState as InvoicingInvoiceListState } from './view/invoicing/invoiceList/invoiceListState';
|
|
147
|
+
import { InvoicingInvoicePdfState } from './view/invoicing/invoicePdf/invoicePdfReducer';
|
|
148
|
+
import { InvoicingPaymentActionState } from './view/invoicing/paymentAction/paymentActionReducer';
|
|
149
|
+
import { RecordPaymentState as InvoicingRecordPaymentState } from './view/invoicing/recordPayment/recordPaymentReducer';
|
|
150
|
+
import { InvoicingReportsViewState } from './view/invoicing/reportsView/reportsViewReducer';
|
|
151
|
+
import { InvoicingSettingsViewState } from './view/invoicing/settingsView/settingsViewReducer';
|
|
152
|
+
import { InvoicingSubscriptionActionState } from './view/invoicing/subscriptionAction/subscriptionActionReducer';
|
|
153
|
+
import { InvoicingSubscriptionViewState } from './view/invoicing/subscriptionView/subscriptionViewReducer';
|
|
154
|
+
import { InvoicingSubscriptionWriteState } from './view/invoicing/subscriptionWrite/subscriptionWriteReducer';
|
|
155
|
+
import { InvoicingTransactionViewState } from './view/invoicing/transactionView/transactionViewReducer';
|
|
118
156
|
import { MonthEndCloseChecksViewState } from './view/monthEndCloseChecksView/monthEndCloseChecksViewState';
|
|
119
157
|
import { NetBurnOrIncomeWithForecastState } from './view/netBurnOrIncome/netBurnOrIncomeState';
|
|
120
158
|
import { NetBurnOrIncomeClassesViewState } from './view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewState';
|
|
@@ -262,6 +300,15 @@ type EntitiesState = {
|
|
|
262
300
|
forecastState: ForecastState;
|
|
263
301
|
globalMerchantState: GlobalMerchantState;
|
|
264
302
|
insightState: InsightState;
|
|
303
|
+
invoicingCouponState: InvoicingCouponState;
|
|
304
|
+
invoicingCreditNoteState: InvoicingCreditNoteState;
|
|
305
|
+
invoicingCustomerState: InvoicingCustomerState;
|
|
306
|
+
invoicingDunningCaseState: InvoicingDunningCaseState;
|
|
307
|
+
invoicingInvoiceState: InvoicingInvoiceState;
|
|
308
|
+
invoicingPlanState: InvoicingPlanState;
|
|
309
|
+
invoicingProductState: InvoicingProductState;
|
|
310
|
+
invoicingSubscriptionState: InvoicingSubscriptionState;
|
|
311
|
+
invoicingTransactionState: InvoicingTransactionState;
|
|
265
312
|
jeSchedulesState: JESchedulesState;
|
|
266
313
|
merchantState: MerchantState;
|
|
267
314
|
monthEndCloseChecksState: MonthEndCloseChecksState;
|
|
@@ -381,6 +428,35 @@ type ViewsState = {
|
|
|
381
428
|
insightsCardState: InsightsCardState;
|
|
382
429
|
internationalWireState: InternationalWireState;
|
|
383
430
|
internationalWireVerificationState: InternationalWireVerificationState;
|
|
431
|
+
invoicingAnalyticsViewState: InvoicingAnalyticsViewState;
|
|
432
|
+
invoicingApprovalActionState: InvoicingApprovalActionState;
|
|
433
|
+
invoicingApprovalsViewState: InvoicingApprovalsViewState;
|
|
434
|
+
invoicingAuditViewState: InvoicingAuditViewState;
|
|
435
|
+
invoicingCatalogViewState: InvoicingCatalogViewState;
|
|
436
|
+
invoicingCatalogWriteState: InvoicingCatalogWriteState;
|
|
437
|
+
invoicingCouponViewState: InvoicingCouponViewState;
|
|
438
|
+
invoicingCouponWriteState: InvoicingCouponWriteState;
|
|
439
|
+
invoicingCreateInvoiceState: InvoicingCreateInvoiceState;
|
|
440
|
+
invoicingCreditNoteViewState: InvoicingCreditNoteViewState;
|
|
441
|
+
invoicingCustomerPaymentMethodState: InvoicingCustomerPaymentMethodState;
|
|
442
|
+
invoicingCustomerViewState: InvoicingCustomerViewState;
|
|
443
|
+
invoicingCustomerWriteState: InvoicingCustomerWriteState;
|
|
444
|
+
invoicingDataImportActionState: InvoicingDataImportActionState;
|
|
445
|
+
invoicingDataImportViewState: InvoicingDataImportViewState;
|
|
446
|
+
invoicingDunningActionState: InvoicingDunningActionState;
|
|
447
|
+
invoicingDunningCaseViewState: InvoicingDunningCaseViewState;
|
|
448
|
+
invoicingInvoiceActionState: InvoicingInvoiceActionState;
|
|
449
|
+
invoicingInvoiceDetailState: InvoicingInvoiceDetailState;
|
|
450
|
+
invoicingInvoiceListState: InvoicingInvoiceListState;
|
|
451
|
+
invoicingInvoicePdfState: InvoicingInvoicePdfState;
|
|
452
|
+
invoicingPaymentActionState: InvoicingPaymentActionState;
|
|
453
|
+
invoicingRecordPaymentState: InvoicingRecordPaymentState;
|
|
454
|
+
invoicingReportsViewState: InvoicingReportsViewState;
|
|
455
|
+
invoicingSettingsViewState: InvoicingSettingsViewState;
|
|
456
|
+
invoicingSubscriptionActionState: InvoicingSubscriptionActionState;
|
|
457
|
+
invoicingSubscriptionViewState: InvoicingSubscriptionViewState;
|
|
458
|
+
invoicingSubscriptionWriteState: InvoicingSubscriptionWriteState;
|
|
459
|
+
invoicingTransactionViewState: InvoicingTransactionViewState;
|
|
384
460
|
issueChargeCardState: IssueChargeCardState;
|
|
385
461
|
magicLinkViewState: MagicLinkViewState;
|
|
386
462
|
merchantListState: MerchantListState;
|
|
@@ -545,6 +621,35 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
545
621
|
globalMerchantAutoCompleteState: GlobalMerchantAutoCompleteState;
|
|
546
622
|
globalMerchantViewState: GlobalMerchantViewState;
|
|
547
623
|
insightsCardState: InsightsCardState;
|
|
624
|
+
invoicingAnalyticsViewState: InvoicingAnalyticsViewState;
|
|
625
|
+
invoicingApprovalActionState: InvoicingApprovalActionState;
|
|
626
|
+
invoicingApprovalsViewState: InvoicingApprovalsViewState;
|
|
627
|
+
invoicingAuditViewState: InvoicingAuditViewState;
|
|
628
|
+
invoicingCatalogViewState: InvoicingCatalogViewState;
|
|
629
|
+
invoicingCatalogWriteState: InvoicingCatalogWriteState;
|
|
630
|
+
invoicingCouponWriteState: InvoicingCouponWriteState;
|
|
631
|
+
invoicingCouponViewState: InvoicingCouponViewState;
|
|
632
|
+
invoicingCreditNoteViewState: InvoicingCreditNoteViewState;
|
|
633
|
+
invoicingCreateInvoiceState: InvoicingCreateInvoiceState;
|
|
634
|
+
invoicingRecordPaymentState: InvoicingRecordPaymentState;
|
|
635
|
+
invoicingCustomerPaymentMethodState: InvoicingCustomerPaymentMethodState;
|
|
636
|
+
invoicingCustomerViewState: InvoicingCustomerViewState;
|
|
637
|
+
invoicingCustomerWriteState: InvoicingCustomerWriteState;
|
|
638
|
+
invoicingDataImportActionState: InvoicingDataImportActionState;
|
|
639
|
+
invoicingDataImportViewState: InvoicingDataImportViewState;
|
|
640
|
+
invoicingDunningActionState: InvoicingDunningActionState;
|
|
641
|
+
invoicingDunningCaseViewState: InvoicingDunningCaseViewState;
|
|
642
|
+
invoicingInvoiceActionState: InvoicingInvoiceActionState;
|
|
643
|
+
invoicingInvoiceDetailState: InvoicingInvoiceDetailState;
|
|
644
|
+
invoicingInvoiceListState: InvoicingInvoiceListState;
|
|
645
|
+
invoicingInvoicePdfState: InvoicingInvoicePdfState;
|
|
646
|
+
invoicingPaymentActionState: InvoicingPaymentActionState;
|
|
647
|
+
invoicingReportsViewState: InvoicingReportsViewState;
|
|
648
|
+
invoicingSettingsViewState: InvoicingSettingsViewState;
|
|
649
|
+
invoicingSubscriptionActionState: InvoicingSubscriptionActionState;
|
|
650
|
+
invoicingSubscriptionViewState: InvoicingSubscriptionViewState;
|
|
651
|
+
invoicingSubscriptionWriteState: InvoicingSubscriptionWriteState;
|
|
652
|
+
invoicingTransactionViewState: InvoicingTransactionViewState;
|
|
548
653
|
internationalWireState: InternationalWireState;
|
|
549
654
|
issueChargeCardState: IssueChargeCardState;
|
|
550
655
|
internationalWireVerificationState: InternationalWireVerificationState;
|
|
@@ -666,6 +771,15 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
666
771
|
forecastState: ForecastState;
|
|
667
772
|
globalMerchantState: GlobalMerchantState;
|
|
668
773
|
insightState: InsightState;
|
|
774
|
+
invoicingCouponState: InvoicingCouponState;
|
|
775
|
+
invoicingCreditNoteState: InvoicingCreditNoteState;
|
|
776
|
+
invoicingCustomerState: InvoicingCustomerState;
|
|
777
|
+
invoicingDunningCaseState: InvoicingDunningCaseState;
|
|
778
|
+
invoicingInvoiceState: InvoicingInvoiceState;
|
|
779
|
+
invoicingPlanState: InvoicingPlanState;
|
|
780
|
+
invoicingProductState: InvoicingProductState;
|
|
781
|
+
invoicingSubscriptionState: InvoicingSubscriptionState;
|
|
782
|
+
invoicingTransactionState: InvoicingTransactionState;
|
|
669
783
|
jeSchedulesState: JESchedulesState;
|
|
670
784
|
merchantState: MerchantState;
|
|
671
785
|
monthEndCloseChecksState: MonthEndCloseChecksState;
|
package/lib/reducer.js
CHANGED
|
@@ -72,6 +72,15 @@ const forecastReducer_1 = __importStar(require("./entity/forecast/forecastReduce
|
|
|
72
72
|
const entityReducer_1 = __importStar(require("./entity/genericEntity/entityReducer"));
|
|
73
73
|
const globalMerchantReducer_1 = __importStar(require("./entity/globalMerchant/globalMerchantReducer"));
|
|
74
74
|
const insightReducer_1 = __importStar(require("./entity/insights/insightReducer"));
|
|
75
|
+
const couponReducer_1 = __importStar(require("./entity/invoicing/coupon/couponReducer"));
|
|
76
|
+
const creditNoteReducer_1 = __importStar(require("./entity/invoicing/creditNote/creditNoteReducer"));
|
|
77
|
+
const customerReducer_2 = __importStar(require("./entity/invoicing/customer/customerReducer"));
|
|
78
|
+
const dunningCaseReducer_1 = __importStar(require("./entity/invoicing/dunningCase/dunningCaseReducer"));
|
|
79
|
+
const invoiceReducer_1 = __importStar(require("./entity/invoicing/invoice/invoiceReducer"));
|
|
80
|
+
const planReducer_1 = __importStar(require("./entity/invoicing/plan/planReducer"));
|
|
81
|
+
const productReducer_1 = __importStar(require("./entity/invoicing/product/productReducer"));
|
|
82
|
+
const subscriptionReducer_1 = __importStar(require("./entity/invoicing/subscription/subscriptionReducer"));
|
|
83
|
+
const transactionReducer_1 = __importStar(require("./entity/invoicing/transaction/transactionReducer"));
|
|
75
84
|
const jeSchedulesReducer_1 = __importStar(require("./entity/jeSchedules/jeSchedulesReducer"));
|
|
76
85
|
const merchantReducer_1 = __importStar(require("./entity/merchant/merchantReducer"));
|
|
77
86
|
const monthEndCloseChecksReducer_1 = __importStar(require("./entity/monthEndCloseChecks/monthEndCloseChecksReducer"));
|
|
@@ -86,7 +95,7 @@ const sectionAccountsViewReducer_1 = __importStar(require("./entity/sectionAccou
|
|
|
86
95
|
const sectionClassesViewReducer_1 = __importStar(require("./entity/sectionClassesViewV2/sectionClassesViewReducer"));
|
|
87
96
|
const sectionProjectViewReducer_1 = __importStar(require("./entity/sectionProjectView/sectionProjectViewReducer"));
|
|
88
97
|
const snackbarReducer_1 = __importStar(require("./entity/snackbar/snackbarReducer"));
|
|
89
|
-
const
|
|
98
|
+
const subscriptionReducer_2 = __importStar(require("./entity/subscription/subscription/subscriptionReducer"));
|
|
90
99
|
const subscriptionAddOnReducer_1 = __importStar(require("./entity/subscription/subscriptionAddOn/subscriptionAddOnReducer"));
|
|
91
100
|
const subscriptionCouponReducer_1 = __importStar(require("./entity/subscription/subscriptionCoupon/subscriptionCouponReducer"));
|
|
92
101
|
const subscriptionPlanReducer_1 = __importStar(require("./entity/subscription/subscriptionPlan/subscriptionPlanReducer"));
|
|
@@ -99,7 +108,7 @@ const taskGroupTemplateReducer_1 = __importStar(require("./entity/taskGroupTempl
|
|
|
99
108
|
const taskSummaryReducer_1 = __importStar(require("./entity/taskSummary/taskSummaryReducer"));
|
|
100
109
|
const tenantReducer_1 = __importStar(require("./entity/tenant/tenantReducer"));
|
|
101
110
|
const toastNotificationReducer_1 = __importStar(require("./entity/toastNotification/toastNotificationReducer"));
|
|
102
|
-
const
|
|
111
|
+
const transactionReducer_2 = __importStar(require("./entity/transaction/transactionReducer"));
|
|
103
112
|
const transactionActivityLogReducer_1 = __importStar(require("./entity/transactionActivityLog/transactionActivityLogReducer"));
|
|
104
113
|
const userReducer_1 = __importStar(require("./entity/user/userReducer"));
|
|
105
114
|
const userGroupsReducer_1 = __importStar(require("./entity/userGroups/userGroupsReducer"));
|
|
@@ -156,6 +165,35 @@ const forecastListReducer_1 = __importStar(require("./view/forecastList/forecast
|
|
|
156
165
|
const globalMerchantAutoCompleteViewReducer_1 = __importStar(require("./view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer"));
|
|
157
166
|
const globalMerchantViewReducer_1 = __importStar(require("./view/globalMerchantView/globalMerchantViewReducer"));
|
|
158
167
|
const insightsCardReducer_1 = __importStar(require("./view/insightsCard/insightsCardReducer"));
|
|
168
|
+
const analyticsViewReducer_1 = __importStar(require("./view/invoicing/analyticsView/analyticsViewReducer"));
|
|
169
|
+
const approvalActionReducer_1 = __importStar(require("./view/invoicing/approvalAction/approvalActionReducer"));
|
|
170
|
+
const approvalsViewReducer_1 = __importStar(require("./view/invoicing/approvalsView/approvalsViewReducer"));
|
|
171
|
+
const auditViewReducer_1 = __importStar(require("./view/invoicing/auditView/auditViewReducer"));
|
|
172
|
+
const catalogViewReducer_1 = __importStar(require("./view/invoicing/catalogView/catalogViewReducer"));
|
|
173
|
+
const catalogWriteReducer_1 = __importStar(require("./view/invoicing/catalogWrite/catalogWriteReducer"));
|
|
174
|
+
const couponWriteReducer_1 = __importStar(require("./view/invoicing/couponWrite/couponWriteReducer"));
|
|
175
|
+
const couponViewReducer_1 = __importStar(require("./view/invoicing/couponView/couponViewReducer"));
|
|
176
|
+
const createInvoiceReducer_1 = __importStar(require("./view/invoicing/createInvoice/createInvoiceReducer"));
|
|
177
|
+
const creditNoteViewReducer_1 = __importStar(require("./view/invoicing/creditNoteView/creditNoteViewReducer"));
|
|
178
|
+
const customerPaymentMethodReducer_1 = __importStar(require("./view/invoicing/customerPaymentMethod/customerPaymentMethodReducer"));
|
|
179
|
+
const customerViewReducer_1 = __importStar(require("./view/invoicing/customerView/customerViewReducer"));
|
|
180
|
+
const customerWriteReducer_1 = __importStar(require("./view/invoicing/customerWrite/customerWriteReducer"));
|
|
181
|
+
const dataImportActionReducer_1 = __importStar(require("./view/invoicing/dataImportAction/dataImportActionReducer"));
|
|
182
|
+
const dataImportViewReducer_1 = __importStar(require("./view/invoicing/dataImportView/dataImportViewReducer"));
|
|
183
|
+
const dunningActionReducer_1 = __importStar(require("./view/invoicing/dunningAction/dunningActionReducer"));
|
|
184
|
+
const dunningCaseViewReducer_1 = __importStar(require("./view/invoicing/dunningCaseView/dunningCaseViewReducer"));
|
|
185
|
+
const invoiceActionReducer_1 = __importStar(require("./view/invoicing/invoiceAction/invoiceActionReducer"));
|
|
186
|
+
const invoiceDetailReducer_1 = __importStar(require("./view/invoicing/invoiceDetail/invoiceDetailReducer"));
|
|
187
|
+
const invoiceListReducer_1 = __importStar(require("./view/invoicing/invoiceList/invoiceListReducer"));
|
|
188
|
+
const invoicePdfReducer_1 = __importStar(require("./view/invoicing/invoicePdf/invoicePdfReducer"));
|
|
189
|
+
const paymentActionReducer_1 = __importStar(require("./view/invoicing/paymentAction/paymentActionReducer"));
|
|
190
|
+
const recordPaymentReducer_1 = __importStar(require("./view/invoicing/recordPayment/recordPaymentReducer"));
|
|
191
|
+
const reportsViewReducer_1 = __importStar(require("./view/invoicing/reportsView/reportsViewReducer"));
|
|
192
|
+
const settingsViewReducer_1 = __importStar(require("./view/invoicing/settingsView/settingsViewReducer"));
|
|
193
|
+
const subscriptionActionReducer_1 = __importStar(require("./view/invoicing/subscriptionAction/subscriptionActionReducer"));
|
|
194
|
+
const subscriptionViewReducer_1 = __importStar(require("./view/invoicing/subscriptionView/subscriptionViewReducer"));
|
|
195
|
+
const subscriptionWriteReducer_1 = __importStar(require("./view/invoicing/subscriptionWrite/subscriptionWriteReducer"));
|
|
196
|
+
const transactionViewReducer_1 = __importStar(require("./view/invoicing/transactionView/transactionViewReducer"));
|
|
159
197
|
const monthEndCloseChecksViewReducer_1 = __importStar(require("./view/monthEndCloseChecksView/monthEndCloseChecksViewReducer"));
|
|
160
198
|
const netBurnOrIncomeReducer_1 = __importStar(require("./view/netBurnOrIncome/netBurnOrIncomeReducer"));
|
|
161
199
|
const netBurnOrIncomeClassesViewReducer_1 = __importStar(require("./view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer"));
|
|
@@ -183,7 +221,7 @@ const reviewCompanyViewReducer_1 = __importStar(require("./view/reviewCompanyVie
|
|
|
183
221
|
const scheduleAccruedDetailReducer_1 = __importStar(require("./view/scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailReducer"));
|
|
184
222
|
const scheduleDetailReducer_1 = __importStar(require("./view/scheduleView/scheduleDetailView/scheduleDetailReducer"));
|
|
185
223
|
const scheduleListReducer_1 = __importStar(require("./view/scheduleView/scheduleListView/scheduleListReducer"));
|
|
186
|
-
const
|
|
224
|
+
const settingsViewReducer_2 = __importStar(require("./view/settingsView/settingsViewReducer"));
|
|
187
225
|
const autoTransferRulesReducer_1 = __importStar(require("./view/spendManagement/autotransferRules/autoTransferRulesReducer"));
|
|
188
226
|
const billDetailViewReducer_1 = __importStar(require("./view/spendManagement/billPay/billDetailView/billDetailViewReducer"));
|
|
189
227
|
const billListReducer_1 = __importStar(require("./view/spendManagement/billPay/billList/billListReducer"));
|
|
@@ -240,7 +278,7 @@ const transferDetailReducer_1 = __importStar(require("./view/spendManagement/zen
|
|
|
240
278
|
const zeniAccountListReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer"));
|
|
241
279
|
const zeniAccountSetupViewReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer"));
|
|
242
280
|
const zeniAccountsConfigReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer"));
|
|
243
|
-
const
|
|
281
|
+
const subscriptionViewReducer_2 = __importStar(require("./view/subscriptionView/subscriptionViewReducer"));
|
|
244
282
|
const tagViewReducer_1 = __importStar(require("./view/tagView/tagViewReducer"));
|
|
245
283
|
const cannedResponsesReducer_1 = __importStar(require("./view/taskManager/cannedResponsesView/cannedResponsesReducer"));
|
|
246
284
|
const taskDetailReducer_1 = __importStar(require("./view/taskManager/taskDetailView/taskDetailReducer"));
|
|
@@ -305,6 +343,15 @@ const initialEntitiesState = {
|
|
|
305
343
|
forecastState: forecastReducer_1.initialState,
|
|
306
344
|
globalMerchantState: globalMerchantReducer_1.initialState,
|
|
307
345
|
insightState: insightReducer_1.initialState,
|
|
346
|
+
invoicingCouponState: couponReducer_1.initialState,
|
|
347
|
+
invoicingCreditNoteState: creditNoteReducer_1.initialState,
|
|
348
|
+
invoicingCustomerState: customerReducer_2.initialState,
|
|
349
|
+
invoicingDunningCaseState: dunningCaseReducer_1.initialState,
|
|
350
|
+
invoicingInvoiceState: invoiceReducer_1.initialState,
|
|
351
|
+
invoicingPlanState: planReducer_1.initialState,
|
|
352
|
+
invoicingProductState: productReducer_1.initialState,
|
|
353
|
+
invoicingSubscriptionState: subscriptionReducer_1.initialState,
|
|
354
|
+
invoicingTransactionState: transactionReducer_1.initialState,
|
|
308
355
|
jeSchedulesState: jeSchedulesReducer_1.initialState,
|
|
309
356
|
merchantState: merchantReducer_1.initialState,
|
|
310
357
|
monthEndCloseChecksState: monthEndCloseChecksReducer_1.initialState,
|
|
@@ -323,7 +370,7 @@ const initialEntitiesState = {
|
|
|
323
370
|
subscriptionCouponState: subscriptionCouponReducer_1.initialState,
|
|
324
371
|
subscriptionPaymentAccountState: subscriptionPaymentAccountReducer_1.initialState,
|
|
325
372
|
subscriptionPlanState: subscriptionPlanReducer_1.initialState,
|
|
326
|
-
subscriptionState:
|
|
373
|
+
subscriptionState: subscriptionReducer_2.initialState,
|
|
327
374
|
subscriptionSummaryState: subscriptionSummaryReducer_1.initialState,
|
|
328
375
|
tagState: tagReducer_1.initialState,
|
|
329
376
|
taskGroupState: taskGroupReducer_1.initialState,
|
|
@@ -333,7 +380,7 @@ const initialEntitiesState = {
|
|
|
333
380
|
tenantState: tenantReducer_1.initialState,
|
|
334
381
|
toastNotificationState: toastNotificationReducer_1.initialState,
|
|
335
382
|
transactionActivityLogState: transactionActivityLogReducer_1.initialState,
|
|
336
|
-
transactionState:
|
|
383
|
+
transactionState: transactionReducer_2.initialState,
|
|
337
384
|
userGroupsState: userGroupsReducer_1.initialState,
|
|
338
385
|
userRoleState: userRoleReducer_1.initialState,
|
|
339
386
|
userState: userReducer_1.initialState,
|
|
@@ -421,6 +468,35 @@ const initialViewsState = {
|
|
|
421
468
|
globalMerchantAutoCompleteState: globalMerchantAutoCompleteViewReducer_1.initialState,
|
|
422
469
|
globalMerchantViewState: globalMerchantViewReducer_1.initialState,
|
|
423
470
|
insightsCardState: insightsCardReducer_1.initialState,
|
|
471
|
+
invoicingAnalyticsViewState: analyticsViewReducer_1.initialState,
|
|
472
|
+
invoicingApprovalActionState: approvalActionReducer_1.initialState,
|
|
473
|
+
invoicingApprovalsViewState: approvalsViewReducer_1.initialState,
|
|
474
|
+
invoicingAuditViewState: auditViewReducer_1.initialState,
|
|
475
|
+
invoicingCatalogViewState: catalogViewReducer_1.initialState,
|
|
476
|
+
invoicingCatalogWriteState: catalogWriteReducer_1.initialState,
|
|
477
|
+
invoicingCouponWriteState: couponWriteReducer_1.initialState,
|
|
478
|
+
invoicingCouponViewState: couponViewReducer_1.initialState,
|
|
479
|
+
invoicingCreditNoteViewState: creditNoteViewReducer_1.initialState,
|
|
480
|
+
invoicingCreateInvoiceState: createInvoiceReducer_1.initialState,
|
|
481
|
+
invoicingRecordPaymentState: recordPaymentReducer_1.initialState,
|
|
482
|
+
invoicingCustomerPaymentMethodState: customerPaymentMethodReducer_1.initialState,
|
|
483
|
+
invoicingCustomerViewState: customerViewReducer_1.initialState,
|
|
484
|
+
invoicingCustomerWriteState: customerWriteReducer_1.initialState,
|
|
485
|
+
invoicingDataImportActionState: dataImportActionReducer_1.initialState,
|
|
486
|
+
invoicingDataImportViewState: dataImportViewReducer_1.initialState,
|
|
487
|
+
invoicingDunningActionState: dunningActionReducer_1.initialState,
|
|
488
|
+
invoicingDunningCaseViewState: dunningCaseViewReducer_1.initialState,
|
|
489
|
+
invoicingInvoiceActionState: invoiceActionReducer_1.initialState,
|
|
490
|
+
invoicingInvoiceDetailState: invoiceDetailReducer_1.initialState,
|
|
491
|
+
invoicingInvoiceListState: invoiceListReducer_1.initialState,
|
|
492
|
+
invoicingInvoicePdfState: invoicePdfReducer_1.initialState,
|
|
493
|
+
invoicingPaymentActionState: paymentActionReducer_1.initialState,
|
|
494
|
+
invoicingReportsViewState: reportsViewReducer_1.initialState,
|
|
495
|
+
invoicingSettingsViewState: settingsViewReducer_1.initialState,
|
|
496
|
+
invoicingSubscriptionActionState: subscriptionActionReducer_1.initialState,
|
|
497
|
+
invoicingSubscriptionViewState: subscriptionViewReducer_1.initialState,
|
|
498
|
+
invoicingSubscriptionWriteState: subscriptionWriteReducer_1.initialState,
|
|
499
|
+
invoicingTransactionViewState: transactionViewReducer_1.initialState,
|
|
424
500
|
internationalWireState: internationalWireReducer_1.initialState,
|
|
425
501
|
issueChargeCardState: issueChargeCardReducer_1.initialState,
|
|
426
502
|
internationalWireVerificationState: internationalWireVerificationReducer_1.initialState,
|
|
@@ -462,9 +538,9 @@ const initialViewsState = {
|
|
|
462
538
|
scheduleAccruedDetailState: scheduleAccruedDetailReducer_1.initialState,
|
|
463
539
|
scheduleDetailState: scheduleDetailReducer_1.initialState,
|
|
464
540
|
scheduleListState: scheduleListReducer_1.initialState,
|
|
465
|
-
settingsViewState:
|
|
541
|
+
settingsViewState: settingsViewReducer_2.initialState,
|
|
466
542
|
setupViewState: setupViewReducer_1.initialState,
|
|
467
|
-
subscriptionViewState:
|
|
543
|
+
subscriptionViewState: subscriptionViewReducer_2.initialState,
|
|
468
544
|
tagViewState: tagViewReducer_1.initialState,
|
|
469
545
|
cannedResponsesState: cannedResponsesReducer_1.initialState,
|
|
470
546
|
taskDetailState: taskDetailReducer_1.initialState,
|
|
@@ -548,6 +624,15 @@ const entityReducers = {
|
|
|
548
624
|
forecastState: forecastReducer_1.default,
|
|
549
625
|
globalMerchantState: globalMerchantReducer_1.default,
|
|
550
626
|
insightState: insightReducer_1.default,
|
|
627
|
+
invoicingCouponState: couponReducer_1.default,
|
|
628
|
+
invoicingCreditNoteState: creditNoteReducer_1.default,
|
|
629
|
+
invoicingCustomerState: customerReducer_2.default,
|
|
630
|
+
invoicingDunningCaseState: dunningCaseReducer_1.default,
|
|
631
|
+
invoicingInvoiceState: invoiceReducer_1.default,
|
|
632
|
+
invoicingPlanState: planReducer_1.default,
|
|
633
|
+
invoicingProductState: productReducer_1.default,
|
|
634
|
+
invoicingSubscriptionState: subscriptionReducer_1.default,
|
|
635
|
+
invoicingTransactionState: transactionReducer_1.default,
|
|
551
636
|
jeSchedulesState: jeSchedulesReducer_1.default,
|
|
552
637
|
merchantState: merchantReducer_1.default,
|
|
553
638
|
monthEndCloseChecksState: monthEndCloseChecksReducer_1.default,
|
|
@@ -566,7 +651,7 @@ const entityReducers = {
|
|
|
566
651
|
subscriptionCouponState: subscriptionCouponReducer_1.default,
|
|
567
652
|
subscriptionPaymentAccountState: subscriptionPaymentAccountReducer_1.default,
|
|
568
653
|
subscriptionPlanState: subscriptionPlanReducer_1.default,
|
|
569
|
-
subscriptionState:
|
|
654
|
+
subscriptionState: subscriptionReducer_2.default,
|
|
570
655
|
subscriptionSummaryState: subscriptionSummaryReducer_1.default,
|
|
571
656
|
tagState: tagReducer_1.default,
|
|
572
657
|
taskGroupState: taskGroupReducer_1.default,
|
|
@@ -576,7 +661,7 @@ const entityReducers = {
|
|
|
576
661
|
tenantState: tenantReducer_1.default,
|
|
577
662
|
toastNotificationState: toastNotificationReducer_1.default,
|
|
578
663
|
transactionActivityLogState: transactionActivityLogReducer_1.default,
|
|
579
|
-
transactionState:
|
|
664
|
+
transactionState: transactionReducer_2.default,
|
|
580
665
|
userGroupsState: userGroupsReducer_1.default,
|
|
581
666
|
userRoleState: userRoleReducer_1.default,
|
|
582
667
|
userState: userReducer_1.default,
|
|
@@ -663,6 +748,35 @@ const viewReducers = {
|
|
|
663
748
|
globalMerchantAutoCompleteState: globalMerchantAutoCompleteViewReducer_1.default,
|
|
664
749
|
globalMerchantViewState: globalMerchantViewReducer_1.default,
|
|
665
750
|
insightsCardState: insightsCardReducer_1.default,
|
|
751
|
+
invoicingAnalyticsViewState: analyticsViewReducer_1.default,
|
|
752
|
+
invoicingApprovalActionState: approvalActionReducer_1.default,
|
|
753
|
+
invoicingApprovalsViewState: approvalsViewReducer_1.default,
|
|
754
|
+
invoicingAuditViewState: auditViewReducer_1.default,
|
|
755
|
+
invoicingCatalogViewState: catalogViewReducer_1.default,
|
|
756
|
+
invoicingCatalogWriteState: catalogWriteReducer_1.default,
|
|
757
|
+
invoicingCouponWriteState: couponWriteReducer_1.default,
|
|
758
|
+
invoicingCouponViewState: couponViewReducer_1.default,
|
|
759
|
+
invoicingCreditNoteViewState: creditNoteViewReducer_1.default,
|
|
760
|
+
invoicingCreateInvoiceState: createInvoiceReducer_1.default,
|
|
761
|
+
invoicingRecordPaymentState: recordPaymentReducer_1.default,
|
|
762
|
+
invoicingCustomerPaymentMethodState: customerPaymentMethodReducer_1.default,
|
|
763
|
+
invoicingCustomerViewState: customerViewReducer_1.default,
|
|
764
|
+
invoicingCustomerWriteState: customerWriteReducer_1.default,
|
|
765
|
+
invoicingDataImportActionState: dataImportActionReducer_1.default,
|
|
766
|
+
invoicingDataImportViewState: dataImportViewReducer_1.default,
|
|
767
|
+
invoicingDunningActionState: dunningActionReducer_1.default,
|
|
768
|
+
invoicingDunningCaseViewState: dunningCaseViewReducer_1.default,
|
|
769
|
+
invoicingInvoiceActionState: invoiceActionReducer_1.default,
|
|
770
|
+
invoicingInvoiceDetailState: invoiceDetailReducer_1.default,
|
|
771
|
+
invoicingInvoiceListState: invoiceListReducer_1.default,
|
|
772
|
+
invoicingInvoicePdfState: invoicePdfReducer_1.default,
|
|
773
|
+
invoicingPaymentActionState: paymentActionReducer_1.default,
|
|
774
|
+
invoicingReportsViewState: reportsViewReducer_1.default,
|
|
775
|
+
invoicingSettingsViewState: settingsViewReducer_1.default,
|
|
776
|
+
invoicingSubscriptionActionState: subscriptionActionReducer_1.default,
|
|
777
|
+
invoicingSubscriptionViewState: subscriptionViewReducer_1.default,
|
|
778
|
+
invoicingSubscriptionWriteState: subscriptionWriteReducer_1.default,
|
|
779
|
+
invoicingTransactionViewState: transactionViewReducer_1.default,
|
|
666
780
|
internationalWireState: internationalWireReducer_1.default,
|
|
667
781
|
issueChargeCardState: issueChargeCardReducer_1.default,
|
|
668
782
|
internationalWireVerificationState: internationalWireVerificationReducer_1.default,
|
|
@@ -705,9 +819,9 @@ const viewReducers = {
|
|
|
705
819
|
scheduleAccruedDetailState: scheduleAccruedDetailReducer_1.default,
|
|
706
820
|
scheduleDetailState: scheduleDetailReducer_1.default,
|
|
707
821
|
scheduleListState: scheduleListReducer_1.default,
|
|
708
|
-
settingsViewState:
|
|
822
|
+
settingsViewState: settingsViewReducer_2.default,
|
|
709
823
|
setupViewState: setupViewReducer_1.default,
|
|
710
|
-
subscriptionViewState:
|
|
824
|
+
subscriptionViewState: subscriptionViewReducer_2.default,
|
|
711
825
|
cannedResponsesState: cannedResponsesReducer_1.default,
|
|
712
826
|
taskDetailState: taskDetailReducer_1.default,
|
|
713
827
|
taskGroupTemplateViewState: taskGroupTemplateViewReducer_1.default,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RootState } from '../../../reducer';
|
|
4
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
5
|
+
import { fetchInvoicingAnalytics, updateInvoicingAnalytics, updateInvoicingAnalyticsFailure } from './analyticsViewReducer';
|
|
6
|
+
export type ActionType = ReturnType<typeof fetchInvoicingAnalytics> | ReturnType<typeof updateInvoicingAnalytics> | ReturnType<typeof updateInvoicingAnalyticsFailure>;
|
|
7
|
+
export declare const fetchInvoicingAnalyticsEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchInvoicingAnalyticsEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const responsePayload_1 = require("../../../responsePayload");
|
|
7
|
+
const invoicingApiHelper_1 = require("../invoicingApiHelper");
|
|
8
|
+
const analyticsViewReducer_1 = require("./analyticsViewReducer");
|
|
9
|
+
const REVENUE_MONTHS = 12;
|
|
10
|
+
const MRR_MONTHS = 6;
|
|
11
|
+
function listData(response) {
|
|
12
|
+
return (0, responsePayload_1.isSuccessResponse)(response) && response.data != null
|
|
13
|
+
? response.data
|
|
14
|
+
: [];
|
|
15
|
+
}
|
|
16
|
+
function optionalData(response) {
|
|
17
|
+
return (0, responsePayload_1.isSuccessResponse)(response) && response.data != null
|
|
18
|
+
? response.data
|
|
19
|
+
: undefined;
|
|
20
|
+
}
|
|
21
|
+
const fetchInvoicingAnalyticsEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(analyticsViewReducer_1.fetchInvoicingAnalytics.match), (0, operators_1.switchMap)((action) => {
|
|
22
|
+
const base = (0, invoicingApiHelper_1.invoicingBaseUrl)(zeniAPI);
|
|
23
|
+
const period = `year=${action.payload.year}&month=${action.payload.month}`;
|
|
24
|
+
return (0, rxjs_1.forkJoin)([
|
|
25
|
+
zeniAPI.getJSON(`${base}/analytics/kpis?${period}`),
|
|
26
|
+
zeniAPI.getJSON(`${base}/analytics/revenue?months=${REVENUE_MONTHS}&${period}`),
|
|
27
|
+
zeniAPI.getJSON(`${base}/analytics/mrr?months=${MRR_MONTHS}&${period}`),
|
|
28
|
+
zeniAPI.getJSON(`${base}/analytics/churn?months=${MRR_MONTHS}&${period}`),
|
|
29
|
+
zeniAPI.getJSON(`${base}/analytics/plan-revenue?${period}`),
|
|
30
|
+
zeniAPI.getJSON(`${base}/analytics/dashboard-summary?${period}`),
|
|
31
|
+
]).pipe((0, operators_1.switchMap)(([kpisRes, revenueRes, mrrRes, churnRes, planRes, summaryRes]) => {
|
|
32
|
+
if (!(0, responsePayload_1.isSuccessResponse)(kpisRes)) {
|
|
33
|
+
return (0, rxjs_1.of)((0, analyticsViewReducer_1.updateInvoicingAnalyticsFailure)(kpisRes.status));
|
|
34
|
+
}
|
|
35
|
+
return (0, rxjs_1.of)((0, analyticsViewReducer_1.updateInvoicingAnalytics)({
|
|
36
|
+
kpis: optionalData(kpisRes),
|
|
37
|
+
revenue: listData(revenueRes),
|
|
38
|
+
mrr: listData(mrrRes),
|
|
39
|
+
churn: listData(churnRes),
|
|
40
|
+
planRevenue: listData(planRes),
|
|
41
|
+
summary: optionalData(summaryRes),
|
|
42
|
+
}));
|
|
43
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, analyticsViewReducer_1.updateInvoicingAnalyticsFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch analytics REST API call errored out ' +
|
|
44
|
+
JSON.stringify(error))))));
|
|
45
|
+
}));
|
|
46
|
+
exports.fetchInvoicingAnalyticsEpic = fetchInvoicingAnalyticsEpic;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FetchedState } from '../../../commonStateTypes/common';
|
|
2
|
+
import { InvoicingAnalyticsKPIs, InvoicingChurnDataPoint, InvoicingDashboardSummary, InvoicingMRRDataPoint, InvoicingPlanRevenuePoint, InvoicingRevenueDataPoint } from '../../../entity/invoicing/invoicingTypes';
|
|
3
|
+
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
4
|
+
export interface InvoicingAnalyticsPeriod {
|
|
5
|
+
month: number;
|
|
6
|
+
year: number;
|
|
7
|
+
}
|
|
8
|
+
export interface InvoicingAnalyticsData {
|
|
9
|
+
churn: InvoicingChurnDataPoint[];
|
|
10
|
+
mrr: InvoicingMRRDataPoint[];
|
|
11
|
+
planRevenue: InvoicingPlanRevenuePoint[];
|
|
12
|
+
revenue: InvoicingRevenueDataPoint[];
|
|
13
|
+
kpis?: InvoicingAnalyticsKPIs;
|
|
14
|
+
summary?: InvoicingDashboardSummary;
|
|
15
|
+
}
|
|
16
|
+
export interface InvoicingAnalyticsViewState extends FetchedState, InvoicingAnalyticsData {
|
|
17
|
+
period?: InvoicingAnalyticsPeriod;
|
|
18
|
+
}
|
|
19
|
+
export declare const initialState: InvoicingAnalyticsViewState;
|
|
20
|
+
export declare const fetchInvoicingAnalytics: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingAnalyticsPeriod, "invoicingAnalyticsView/fetchInvoicingAnalytics">, updateInvoicingAnalytics: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingAnalyticsData, "invoicingAnalyticsView/updateInvoicingAnalytics">, updateInvoicingAnalyticsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingAnalyticsView/updateInvoicingAnalyticsFailure">, clearInvoicingAnalytics: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"invoicingAnalyticsView/clearInvoicingAnalytics">;
|
|
21
|
+
declare const _default: import("redux").Reducer<InvoicingAnalyticsViewState>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.clearInvoicingAnalytics = exports.updateInvoicingAnalyticsFailure = exports.updateInvoicingAnalytics = exports.fetchInvoicingAnalytics = exports.initialState = void 0;
|
|
5
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
exports.initialState = {
|
|
7
|
+
fetchState: 'Not-Started',
|
|
8
|
+
error: undefined,
|
|
9
|
+
churn: [],
|
|
10
|
+
kpis: undefined,
|
|
11
|
+
mrr: [],
|
|
12
|
+
period: undefined,
|
|
13
|
+
planRevenue: [],
|
|
14
|
+
revenue: [],
|
|
15
|
+
summary: undefined,
|
|
16
|
+
hasValidState() {
|
|
17
|
+
return this.fetchState === 'Completed' && this.kpis != null;
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
const analyticsView = (0, toolkit_1.createSlice)({
|
|
21
|
+
name: 'invoicingAnalyticsView',
|
|
22
|
+
initialState: exports.initialState,
|
|
23
|
+
reducers: {
|
|
24
|
+
fetchInvoicingAnalytics(draft, action) {
|
|
25
|
+
draft.fetchState = 'In-Progress';
|
|
26
|
+
draft.error = undefined;
|
|
27
|
+
draft.period = action.payload;
|
|
28
|
+
},
|
|
29
|
+
updateInvoicingAnalytics(draft, action) {
|
|
30
|
+
draft.kpis = action.payload.kpis;
|
|
31
|
+
draft.revenue = action.payload.revenue;
|
|
32
|
+
draft.mrr = action.payload.mrr;
|
|
33
|
+
draft.churn = action.payload.churn;
|
|
34
|
+
draft.planRevenue = action.payload.planRevenue;
|
|
35
|
+
draft.summary = action.payload.summary;
|
|
36
|
+
draft.fetchState = 'Completed';
|
|
37
|
+
draft.error = undefined;
|
|
38
|
+
},
|
|
39
|
+
updateInvoicingAnalyticsFailure(draft, action) {
|
|
40
|
+
draft.fetchState = 'Error';
|
|
41
|
+
draft.error = action.payload;
|
|
42
|
+
},
|
|
43
|
+
clearInvoicingAnalytics(draft) {
|
|
44
|
+
Object.assign(draft, exports.initialState);
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
_a = analyticsView.actions, exports.fetchInvoicingAnalytics = _a.fetchInvoicingAnalytics, exports.updateInvoicingAnalytics = _a.updateInvoicingAnalytics, exports.updateInvoicingAnalyticsFailure = _a.updateInvoicingAnalyticsFailure, exports.clearInvoicingAnalytics = _a.clearInvoicingAnalytics;
|
|
49
|
+
exports.default = analyticsView.reducer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FetchStateAndError } from '../../../commonStateTypes/common';
|
|
2
|
+
import { InvoicingAnalyticsKPIs, InvoicingChurnDataPoint, InvoicingDashboardSummary, InvoicingMRRDataPoint, InvoicingPlanRevenuePoint, InvoicingRevenueDataPoint } from '../../../entity/invoicing/invoicingTypes';
|
|
3
|
+
import { RootState } from '../../../reducer';
|
|
4
|
+
export declare const getInvoicingAnalyticsKPIs: (state: RootState) => InvoicingAnalyticsKPIs | undefined;
|
|
5
|
+
export declare const getInvoicingAnalyticsRevenue: (state: RootState) => InvoicingRevenueDataPoint[];
|
|
6
|
+
export declare const getInvoicingAnalyticsMRR: (state: RootState) => InvoicingMRRDataPoint[];
|
|
7
|
+
export declare const getInvoicingAnalyticsChurn: (state: RootState) => InvoicingChurnDataPoint[];
|
|
8
|
+
export declare const getInvoicingAnalyticsPlanRevenue: (state: RootState) => InvoicingPlanRevenuePoint[];
|
|
9
|
+
export declare const getInvoicingAnalyticsSummary: (state: RootState) => InvoicingDashboardSummary | undefined;
|
|
10
|
+
export declare const getInvoicingAnalyticsFetchState: (state: RootState) => FetchStateAndError;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getInvoicingAnalyticsFetchState = exports.getInvoicingAnalyticsSummary = exports.getInvoicingAnalyticsPlanRevenue = exports.getInvoicingAnalyticsChurn = exports.getInvoicingAnalyticsMRR = exports.getInvoicingAnalyticsRevenue = exports.getInvoicingAnalyticsKPIs = void 0;
|
|
4
|
+
const getInvoicingAnalyticsKPIs = (state) => state.invoicingAnalyticsViewState.kpis;
|
|
5
|
+
exports.getInvoicingAnalyticsKPIs = getInvoicingAnalyticsKPIs;
|
|
6
|
+
const getInvoicingAnalyticsRevenue = (state) => state.invoicingAnalyticsViewState.revenue;
|
|
7
|
+
exports.getInvoicingAnalyticsRevenue = getInvoicingAnalyticsRevenue;
|
|
8
|
+
const getInvoicingAnalyticsMRR = (state) => state.invoicingAnalyticsViewState.mrr;
|
|
9
|
+
exports.getInvoicingAnalyticsMRR = getInvoicingAnalyticsMRR;
|
|
10
|
+
const getInvoicingAnalyticsChurn = (state) => state.invoicingAnalyticsViewState.churn;
|
|
11
|
+
exports.getInvoicingAnalyticsChurn = getInvoicingAnalyticsChurn;
|
|
12
|
+
const getInvoicingAnalyticsPlanRevenue = (state) => state.invoicingAnalyticsViewState.planRevenue;
|
|
13
|
+
exports.getInvoicingAnalyticsPlanRevenue = getInvoicingAnalyticsPlanRevenue;
|
|
14
|
+
const getInvoicingAnalyticsSummary = (state) => state.invoicingAnalyticsViewState.summary;
|
|
15
|
+
exports.getInvoicingAnalyticsSummary = getInvoicingAnalyticsSummary;
|
|
16
|
+
const getInvoicingAnalyticsFetchState = (state) => ({
|
|
17
|
+
fetchState: state.invoicingAnalyticsViewState.fetchState,
|
|
18
|
+
error: state.invoicingAnalyticsViewState.error,
|
|
19
|
+
});
|
|
20
|
+
exports.getInvoicingAnalyticsFetchState = getInvoicingAnalyticsFetchState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RootState } from '../../../reducer';
|
|
4
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
5
|
+
import { upsertInvoicingApproval } from '../approvalsView/approvalsViewReducer';
|
|
6
|
+
import { runInvoicingApprovalAction, runInvoicingApprovalActionFailure, runInvoicingApprovalActionSuccess } from './approvalActionReducer';
|
|
7
|
+
export type ActionType = ReturnType<typeof runInvoicingApprovalAction> | ReturnType<typeof runInvoicingApprovalActionSuccess> | ReturnType<typeof runInvoicingApprovalActionFailure> | ReturnType<typeof upsertInvoicingApproval>;
|
|
8
|
+
export declare const runInvoicingApprovalActionEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runInvoicingApprovalActionEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const responsePayload_1 = require("../../../responsePayload");
|
|
7
|
+
const invoicingApiHelper_1 = require("../invoicingApiHelper");
|
|
8
|
+
const approvalsViewReducer_1 = require("../approvalsView/approvalsViewReducer");
|
|
9
|
+
const approvalActionReducer_1 = require("./approvalActionReducer");
|
|
10
|
+
const runInvoicingApprovalActionEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(approvalActionReducer_1.runInvoicingApprovalAction.match), (0, operators_1.mergeMap)((action) => {
|
|
11
|
+
const { action: kind, approvalId } = action.payload;
|
|
12
|
+
const apiUrl = `${(0, invoicingApiHelper_1.invoicingBaseUrl)(zeniAPI)}/approvals/${encodeURIComponent(approvalId)}/${kind}`;
|
|
13
|
+
return zeniAPI
|
|
14
|
+
.postAndGetJSON(apiUrl, {})
|
|
15
|
+
.pipe((0, operators_1.mergeMap)((response) => {
|
|
16
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
17
|
+
return [
|
|
18
|
+
(0, approvalsViewReducer_1.upsertInvoicingApproval)(response.data),
|
|
19
|
+
(0, approvalActionReducer_1.runInvoicingApprovalActionSuccess)({ approvalId }),
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
return (0, rxjs_1.of)((0, approvalActionReducer_1.runInvoicingApprovalActionFailure)({
|
|
23
|
+
error: response.status,
|
|
24
|
+
approvalId,
|
|
25
|
+
}));
|
|
26
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, approvalActionReducer_1.runInvoicingApprovalActionFailure)({
|
|
27
|
+
error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Approval action REST API call errored out ' +
|
|
28
|
+
JSON.stringify(error)),
|
|
29
|
+
approvalId,
|
|
30
|
+
}))));
|
|
31
|
+
}));
|
|
32
|
+
exports.runInvoicingApprovalActionEpic = runInvoicingApprovalActionEpic;
|