@zeniai/client-epic-state 5.1.26 → 5.1.27-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/README.md +3 -1
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +1 -1
- 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/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/epic.d.ts +32 -1
- package/lib/epic.js +33 -1
- 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/tenant/clearAllEpic.js +74 -0
- package/lib/esm/entity/tenant/tenantReducer.js +3 -3
- package/lib/esm/epic.js +33 -1
- package/lib/esm/index.js +80 -2
- package/lib/esm/reducer.js +114 -0
- package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +29 -3
- package/lib/esm/view/aiCfoView/aiCfoViewSelector.js +11 -0
- package/lib/esm/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -2
- package/lib/esm/view/aiCfoView/epics/fetchSkillsEpic.js +34 -0
- package/lib/esm/view/aiCfoView/epics/submitQuestionEpic.js +7 -1
- 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 +101 -4
- package/lib/index.js +373 -5
- package/lib/reducer.d.ts +114 -0
- package/lib/reducer.js +126 -12
- package/lib/view/aiCfoView/aiCfoViewPayload.d.ts +14 -0
- package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +8 -4
- package/lib/view/aiCfoView/aiCfoViewReducer.js +30 -4
- package/lib/view/aiCfoView/aiCfoViewSelector.d.ts +2 -1
- package/lib/view/aiCfoView/aiCfoViewSelector.js +12 -0
- package/lib/view/aiCfoView/aiCfoViewState.d.ts +15 -0
- package/lib/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -2
- package/lib/view/aiCfoView/epics/fetchSkillsEpic.d.ts +8 -0
- package/lib/view/aiCfoView/epics/fetchSkillsEpic.js +38 -0
- package/lib/view/aiCfoView/epics/submitQuestionEpic.js +7 -1
- 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 +5 -2
|
@@ -0,0 +1,766 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Domain payload types for the Invoicing (Accounts Receivable) module.
|
|
3
|
+
*
|
|
4
|
+
* These mirror the snake_case shapes returned by the Invoicing backend
|
|
5
|
+
* microservice (reachable at `apiEndPoints.invoicingMicroServiceBaseUrl`,
|
|
6
|
+
* keeping the same `/1.0/*` paths and `ZeniAPIResponse` envelope as the rest of
|
|
7
|
+
* the platform). The Invoicing UI in `@zeniai/web-components` was authored
|
|
8
|
+
* against these shapes, so we keep them as the canonical domain types rather
|
|
9
|
+
* than remapping to camelCase, which keeps the ported pages drop-in compatible.
|
|
10
|
+
*
|
|
11
|
+
* These were migrated from the standalone Invoicing service's API contract and
|
|
12
|
+
* are now owned here; nothing references the original standalone frontend.
|
|
13
|
+
*/
|
|
14
|
+
export interface InvoicingBillingAddress {
|
|
15
|
+
city?: string;
|
|
16
|
+
company?: string;
|
|
17
|
+
country?: string;
|
|
18
|
+
email?: string;
|
|
19
|
+
first_name?: string;
|
|
20
|
+
last_name?: string;
|
|
21
|
+
line1?: string;
|
|
22
|
+
line2?: string;
|
|
23
|
+
phone?: string;
|
|
24
|
+
state_code?: string;
|
|
25
|
+
validation_status?: 'not_validated' | 'valid' | 'partially_valid' | 'invalid';
|
|
26
|
+
zip?: string;
|
|
27
|
+
}
|
|
28
|
+
export type InvoicingInvoiceStatus = 'paid' | 'partially_paid' | 'posted' | 'payment_due' | 'not_paid' | 'voided' | 'pending' | 'draft';
|
|
29
|
+
export interface InvoicingLineItem {
|
|
30
|
+
amount: number;
|
|
31
|
+
description: string;
|
|
32
|
+
quantity: number;
|
|
33
|
+
unit_amount: number;
|
|
34
|
+
date_from?: string;
|
|
35
|
+
date_to?: string;
|
|
36
|
+
discount_amount?: number;
|
|
37
|
+
entity_description?: string;
|
|
38
|
+
entity_type?: string;
|
|
39
|
+
id?: string;
|
|
40
|
+
is_taxed?: boolean;
|
|
41
|
+
item_level_discount_amount?: number;
|
|
42
|
+
subscription_id?: string;
|
|
43
|
+
tax_amount?: number;
|
|
44
|
+
tax_exempt_reason?: string;
|
|
45
|
+
tax_rate?: number;
|
|
46
|
+
usage_percentage?: number;
|
|
47
|
+
}
|
|
48
|
+
export interface InvoicingLinkedPayment {
|
|
49
|
+
applied_amount: number;
|
|
50
|
+
txn_id: string;
|
|
51
|
+
applied_at?: string;
|
|
52
|
+
txn_amount?: number;
|
|
53
|
+
txn_date?: string;
|
|
54
|
+
txn_status?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface InvoicingIssuedCreditNote {
|
|
57
|
+
cn_id: string;
|
|
58
|
+
cn_status: string;
|
|
59
|
+
cn_total: number;
|
|
60
|
+
}
|
|
61
|
+
export type InvoicingPriceType = 'tax_exclusive' | 'tax_inclusive';
|
|
62
|
+
export interface InvoicingDunningAttempt {
|
|
63
|
+
attempt: number;
|
|
64
|
+
created_at?: string;
|
|
65
|
+
dunning_type?: string;
|
|
66
|
+
transaction_id?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface InvoicingInvoiceNote {
|
|
69
|
+
note: string;
|
|
70
|
+
entity_id?: string;
|
|
71
|
+
entity_type?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface InvoicingInvoice {
|
|
74
|
+
customer_id: string;
|
|
75
|
+
date: string;
|
|
76
|
+
id: string;
|
|
77
|
+
status: InvoicingInvoiceStatus;
|
|
78
|
+
total: number;
|
|
79
|
+
adjustment_credit_notes?: string[];
|
|
80
|
+
amount_adjusted?: number;
|
|
81
|
+
amount_due?: number;
|
|
82
|
+
amount_paid?: number;
|
|
83
|
+
amount_to_collect?: number;
|
|
84
|
+
billing_address?: InvoicingBillingAddress;
|
|
85
|
+
created_at?: string;
|
|
86
|
+
credits_applied?: number;
|
|
87
|
+
currency_code?: string;
|
|
88
|
+
customer_email?: string;
|
|
89
|
+
customer_name?: string;
|
|
90
|
+
due_date?: string;
|
|
91
|
+
dunning_attempts?: InvoicingDunningAttempt[];
|
|
92
|
+
dunning_status?: string;
|
|
93
|
+
first_invoice?: boolean;
|
|
94
|
+
generated_at?: string;
|
|
95
|
+
has_advance_charges?: boolean;
|
|
96
|
+
issued_credit_notes?: InvoicingIssuedCreditNote[];
|
|
97
|
+
line_items?: InvoicingLineItem[];
|
|
98
|
+
linked_payments?: InvoicingLinkedPayment[];
|
|
99
|
+
net_term_days?: number;
|
|
100
|
+
next_retry_at?: string;
|
|
101
|
+
notes?: InvoicingInvoiceNote[];
|
|
102
|
+
paid_at?: string;
|
|
103
|
+
po_number?: string;
|
|
104
|
+
price_type?: InvoicingPriceType;
|
|
105
|
+
recurring?: boolean;
|
|
106
|
+
round_off_amount?: number;
|
|
107
|
+
shipping_address?: InvoicingBillingAddress;
|
|
108
|
+
sub_total?: number;
|
|
109
|
+
subscription_id?: string;
|
|
110
|
+
subscription_name?: string;
|
|
111
|
+
tax?: number;
|
|
112
|
+
updated_at?: string;
|
|
113
|
+
write_off_amount?: number;
|
|
114
|
+
}
|
|
115
|
+
export interface InvoicingInvoiceKPIs {
|
|
116
|
+
due_total: number;
|
|
117
|
+
paid_total: number;
|
|
118
|
+
pending_total: number;
|
|
119
|
+
total_invoiced: number;
|
|
120
|
+
}
|
|
121
|
+
/** Status -> count map for list tab badges; always includes an `all` total. */
|
|
122
|
+
export type InvoicingListCounts = Record<string, number> & {
|
|
123
|
+
all: number;
|
|
124
|
+
};
|
|
125
|
+
/** Cursor-paginated list envelope returned by Invoicing list endpoints. */
|
|
126
|
+
export interface InvoicingPaginatedList<T> {
|
|
127
|
+
items: T[];
|
|
128
|
+
next_cursor: string | null;
|
|
129
|
+
}
|
|
130
|
+
export interface InvoicingCustomer {
|
|
131
|
+
id: string;
|
|
132
|
+
allow_direct_debit?: boolean;
|
|
133
|
+
arr?: number;
|
|
134
|
+
auto_collection?: 'on' | 'off';
|
|
135
|
+
billing_address?: InvoicingBillingAddress;
|
|
136
|
+
card_status?: 'no_card' | 'valid' | 'expiring' | 'expired';
|
|
137
|
+
company?: string;
|
|
138
|
+
consolidated_invoicing?: boolean;
|
|
139
|
+
created_at?: string;
|
|
140
|
+
customer_type?: 'residential' | 'business';
|
|
141
|
+
default_payment_method_id?: string;
|
|
142
|
+
email?: string;
|
|
143
|
+
excess_payments?: number;
|
|
144
|
+
first_name?: string;
|
|
145
|
+
fraud_flag?: 'safe' | 'suspicious' | 'fraudulent';
|
|
146
|
+
initials?: string;
|
|
147
|
+
invoice_notes?: string;
|
|
148
|
+
is_at_risk?: boolean;
|
|
149
|
+
last_name?: string;
|
|
150
|
+
lifetime_value?: number;
|
|
151
|
+
locale?: string;
|
|
152
|
+
mrr?: number;
|
|
153
|
+
net_term_days?: number;
|
|
154
|
+
payment_method?: string;
|
|
155
|
+
payment_method_last4?: string;
|
|
156
|
+
payment_method_type?: 'ach' | 'card' | 'none';
|
|
157
|
+
phone?: string;
|
|
158
|
+
plan?: string;
|
|
159
|
+
plan_name?: string;
|
|
160
|
+
preferred_currency_code?: string;
|
|
161
|
+
promotional_credits?: number;
|
|
162
|
+
refundable_credits?: number;
|
|
163
|
+
status?: string;
|
|
164
|
+
stripe_customer_id?: string;
|
|
165
|
+
subscriptions?: InvoicingSubscription[];
|
|
166
|
+
taxability?: 'taxable' | 'exempt';
|
|
167
|
+
total_receivable?: number;
|
|
168
|
+
unbilled_charges?: number;
|
|
169
|
+
updated_at?: string;
|
|
170
|
+
vat_number?: string;
|
|
171
|
+
}
|
|
172
|
+
export interface InvoicingCustomerCounts extends InvoicingListCounts {
|
|
173
|
+
active: number;
|
|
174
|
+
at_risk: number;
|
|
175
|
+
churned: number;
|
|
176
|
+
not_churned: number;
|
|
177
|
+
total: number;
|
|
178
|
+
trial: number;
|
|
179
|
+
}
|
|
180
|
+
export type InvoicingSubscriptionStatus = 'active' | 'in_trial' | 'future' | 'non_renewing' | 'paused' | 'cancelled';
|
|
181
|
+
export type InvoicingBillingPeriodUnit = 'day' | 'week' | 'month' | 'year';
|
|
182
|
+
export interface InvoicingSubscriptionItem {
|
|
183
|
+
amount?: number;
|
|
184
|
+
billing_cycles?: number;
|
|
185
|
+
catalog_item_id?: string;
|
|
186
|
+
item_name?: string;
|
|
187
|
+
item_price_id?: string;
|
|
188
|
+
item_type?: string;
|
|
189
|
+
quantity?: number;
|
|
190
|
+
unit_price?: number;
|
|
191
|
+
}
|
|
192
|
+
export interface InvoicingSubscriptionCoupon {
|
|
193
|
+
coupon_id: string;
|
|
194
|
+
applied_count?: number;
|
|
195
|
+
apply_till?: string;
|
|
196
|
+
coupon_code?: string;
|
|
197
|
+
}
|
|
198
|
+
export interface InvoicingContractTerm {
|
|
199
|
+
id: string;
|
|
200
|
+
action_at_term_end?: string;
|
|
201
|
+
auto_renew?: boolean;
|
|
202
|
+
billing_cycle?: number;
|
|
203
|
+
cancellation_notice_days?: number;
|
|
204
|
+
contract_end?: string;
|
|
205
|
+
contract_start?: string;
|
|
206
|
+
status?: string;
|
|
207
|
+
total_contract_value?: number;
|
|
208
|
+
}
|
|
209
|
+
export interface InvoicingSubscription {
|
|
210
|
+
customer_id: string;
|
|
211
|
+
id: string;
|
|
212
|
+
status: InvoicingSubscriptionStatus;
|
|
213
|
+
activated_at?: string;
|
|
214
|
+
auto_collection?: 'on' | 'off';
|
|
215
|
+
auto_collection_count?: number;
|
|
216
|
+
billing_period?: number;
|
|
217
|
+
billing_period_unit?: InvoicingBillingPeriodUnit;
|
|
218
|
+
cancel_reason?: string;
|
|
219
|
+
cancelled_at?: string;
|
|
220
|
+
catalog_item_id?: string;
|
|
221
|
+
contract_term?: InvoicingContractTerm;
|
|
222
|
+
coupons?: InvoicingSubscriptionCoupon[];
|
|
223
|
+
created_at?: string;
|
|
224
|
+
currency_code?: string;
|
|
225
|
+
current_term_end?: string;
|
|
226
|
+
current_term_start?: string;
|
|
227
|
+
customer_name?: string;
|
|
228
|
+
due_invoices_count?: number;
|
|
229
|
+
due_since?: string;
|
|
230
|
+
has_scheduled_changes?: boolean;
|
|
231
|
+
mrr?: number;
|
|
232
|
+
next_billing_at?: string;
|
|
233
|
+
pause_date?: string;
|
|
234
|
+
plan_amount?: number;
|
|
235
|
+
plan_id?: string;
|
|
236
|
+
plan_name?: string;
|
|
237
|
+
po_number?: string;
|
|
238
|
+
remaining_billing_cycles?: number;
|
|
239
|
+
resume_date?: string;
|
|
240
|
+
setup_fee?: number;
|
|
241
|
+
shipping_address?: InvoicingBillingAddress;
|
|
242
|
+
started_at?: string;
|
|
243
|
+
subscription_items?: InvoicingSubscriptionItem[];
|
|
244
|
+
total_dues?: number;
|
|
245
|
+
trial_end?: string;
|
|
246
|
+
trial_start?: string;
|
|
247
|
+
updated_at?: string;
|
|
248
|
+
}
|
|
249
|
+
export type InvoicingTransactionType = 'payment' | 'refund' | 'authorization' | 'payment_reversal';
|
|
250
|
+
export type InvoicingTransactionStatus = 'in_progress' | 'success' | 'voided' | 'failure' | 'timeout' | 'needs_attention' | 'late_failure' | 'failed';
|
|
251
|
+
export interface InvoicingLinkedInvoiceRef {
|
|
252
|
+
applied_amount: number;
|
|
253
|
+
invoice_id: string;
|
|
254
|
+
invoice_status?: string;
|
|
255
|
+
}
|
|
256
|
+
export interface InvoicingLinkedRefund {
|
|
257
|
+
txn_amount: number;
|
|
258
|
+
txn_id: string;
|
|
259
|
+
txn_status: string;
|
|
260
|
+
}
|
|
261
|
+
export interface InvoicingLinkedCreditNoteRef {
|
|
262
|
+
applied_amount: number;
|
|
263
|
+
cn_id: string;
|
|
264
|
+
}
|
|
265
|
+
export interface InvoicingTransaction {
|
|
266
|
+
amount: number;
|
|
267
|
+
id: string;
|
|
268
|
+
amount_capturable?: number;
|
|
269
|
+
amount_unused?: number;
|
|
270
|
+
currency_code?: string;
|
|
271
|
+
customer?: string;
|
|
272
|
+
customer_id?: string;
|
|
273
|
+
customer_name?: string;
|
|
274
|
+
date?: string;
|
|
275
|
+
error_code?: string;
|
|
276
|
+
error_text?: string;
|
|
277
|
+
fraud_flag?: string;
|
|
278
|
+
fraud_reason?: string;
|
|
279
|
+
gateway?: string;
|
|
280
|
+
gateway_account_id?: string;
|
|
281
|
+
id_at_gateway?: string;
|
|
282
|
+
invoice_id?: string;
|
|
283
|
+
linked_credit_notes?: InvoicingLinkedCreditNoteRef[];
|
|
284
|
+
linked_invoices?: InvoicingLinkedInvoiceRef[];
|
|
285
|
+
linked_refunds?: InvoicingLinkedRefund[];
|
|
286
|
+
masked_card_number?: string;
|
|
287
|
+
payment_method?: string;
|
|
288
|
+
payment_source_id?: string;
|
|
289
|
+
reference_number?: string;
|
|
290
|
+
refunded_txn_id?: string;
|
|
291
|
+
settled_at?: string;
|
|
292
|
+
status?: InvoicingTransactionStatus;
|
|
293
|
+
subscription_id?: string;
|
|
294
|
+
three_d_secure?: boolean;
|
|
295
|
+
type?: InvoicingTransactionType;
|
|
296
|
+
}
|
|
297
|
+
export interface InvoicingPaymentKPIs {
|
|
298
|
+
net_revenue: number;
|
|
299
|
+
total_collected: number;
|
|
300
|
+
total_failed: number;
|
|
301
|
+
total_refunds: number;
|
|
302
|
+
}
|
|
303
|
+
export type InvoicingCreditNoteStatus = 'adjusted' | 'refunded' | 'refund_due' | 'voided' | 'open' | 'closed' | 'partially_used';
|
|
304
|
+
export type InvoicingCreditNoteType = 'adjustment' | 'refundable' | 'store' | 'referral';
|
|
305
|
+
export interface InvoicingCreditNoteLineItem {
|
|
306
|
+
amount: number;
|
|
307
|
+
description: string;
|
|
308
|
+
quantity: number;
|
|
309
|
+
unit_amount: number;
|
|
310
|
+
entity_type?: string;
|
|
311
|
+
id?: string;
|
|
312
|
+
}
|
|
313
|
+
export interface InvoicingCreditNoteAllocation {
|
|
314
|
+
allocated_amount: number;
|
|
315
|
+
invoice_id: string;
|
|
316
|
+
allocated_at?: string;
|
|
317
|
+
}
|
|
318
|
+
export interface InvoicingCreditNote {
|
|
319
|
+
id: string;
|
|
320
|
+
allocations?: InvoicingCreditNoteAllocation[];
|
|
321
|
+
amount_allocated?: number;
|
|
322
|
+
amount_available?: number;
|
|
323
|
+
amount_refunded?: number;
|
|
324
|
+
create_reason_code?: string;
|
|
325
|
+
created_at?: string;
|
|
326
|
+
credit_note_number?: string;
|
|
327
|
+
currency_code?: string;
|
|
328
|
+
customer_id?: string;
|
|
329
|
+
customer_name?: string;
|
|
330
|
+
date?: string;
|
|
331
|
+
line_items?: InvoicingCreditNoteLineItem[];
|
|
332
|
+
linked_refunds?: string[];
|
|
333
|
+
notes?: string;
|
|
334
|
+
price_type?: InvoicingPriceType;
|
|
335
|
+
reason_code?: string;
|
|
336
|
+
reference_invoice_id?: string;
|
|
337
|
+
status?: InvoicingCreditNoteStatus;
|
|
338
|
+
sub_total?: number;
|
|
339
|
+
subscription_id?: string;
|
|
340
|
+
total?: number;
|
|
341
|
+
type?: InvoicingCreditNoteType;
|
|
342
|
+
}
|
|
343
|
+
export interface InvoicingCreditKPIs {
|
|
344
|
+
total_allocated: number;
|
|
345
|
+
total_available: number;
|
|
346
|
+
total_open: number;
|
|
347
|
+
total_refunded: number;
|
|
348
|
+
}
|
|
349
|
+
export type InvoicingDiscountType = 'percentage' | 'fixed_amount' | 'offer_quantity';
|
|
350
|
+
export type InvoicingCouponDurationType = 'one_time' | 'forever' | 'limited_period';
|
|
351
|
+
export type InvoicingCouponStatus = 'active' | 'expired' | 'archived';
|
|
352
|
+
export interface InvoicingCoupon {
|
|
353
|
+
id: string;
|
|
354
|
+
apply_on?: string;
|
|
355
|
+
coupon_code?: string;
|
|
356
|
+
created_at?: string;
|
|
357
|
+
currency_code?: string;
|
|
358
|
+
discount_amount?: number;
|
|
359
|
+
discount_percentage?: number;
|
|
360
|
+
discount_quantity?: number;
|
|
361
|
+
discount_type?: InvoicingDiscountType;
|
|
362
|
+
duration_type?: InvoicingCouponDurationType;
|
|
363
|
+
invoice_name?: string;
|
|
364
|
+
invoice_notes?: string;
|
|
365
|
+
item_constraints?: Record<string, unknown>[];
|
|
366
|
+
max_redemptions?: number;
|
|
367
|
+
name?: string;
|
|
368
|
+
period?: number;
|
|
369
|
+
period_unit?: string;
|
|
370
|
+
redemptions?: number;
|
|
371
|
+
restricted_products?: string[];
|
|
372
|
+
rev_rec_treatment?: string;
|
|
373
|
+
status?: InvoicingCouponStatus;
|
|
374
|
+
updated_at?: string;
|
|
375
|
+
valid_from?: string;
|
|
376
|
+
valid_till?: string;
|
|
377
|
+
}
|
|
378
|
+
export interface InvoicingCouponCode {
|
|
379
|
+
code: string;
|
|
380
|
+
coupon_id?: string;
|
|
381
|
+
coupon_set_id?: string;
|
|
382
|
+
status?: string;
|
|
383
|
+
}
|
|
384
|
+
export interface InvoicingCouponSet {
|
|
385
|
+
id: string;
|
|
386
|
+
archived_count?: number;
|
|
387
|
+
codes?: InvoicingCouponCode[];
|
|
388
|
+
coupon_id?: string;
|
|
389
|
+
name?: string;
|
|
390
|
+
redeemed_count?: number;
|
|
391
|
+
total_count?: number;
|
|
392
|
+
}
|
|
393
|
+
export interface InvoicingDiscountKPIs {
|
|
394
|
+
total_active: number;
|
|
395
|
+
total_discounted_amount: number;
|
|
396
|
+
total_expired: number;
|
|
397
|
+
total_redemptions: number;
|
|
398
|
+
}
|
|
399
|
+
export type InvoicingDunningStatus = 'Retrying' | 'Scheduled' | 'Manual Review' | 'Resolved' | 'Cancelled' | 'Paused';
|
|
400
|
+
export interface InvoicingDunningCase {
|
|
401
|
+
id: string;
|
|
402
|
+
status: InvoicingDunningStatus;
|
|
403
|
+
amount?: number;
|
|
404
|
+
attempts?: number;
|
|
405
|
+
created_at?: string;
|
|
406
|
+
currency_code?: string;
|
|
407
|
+
customer?: string;
|
|
408
|
+
customer_email?: string;
|
|
409
|
+
customer_id?: string;
|
|
410
|
+
days_past_due?: number;
|
|
411
|
+
failure_reason?: string;
|
|
412
|
+
initials?: string;
|
|
413
|
+
invoice_id?: string;
|
|
414
|
+
last_attempt?: string;
|
|
415
|
+
max_attempts?: number;
|
|
416
|
+
next_retry?: string;
|
|
417
|
+
paused_reason?: string;
|
|
418
|
+
paused_until?: string;
|
|
419
|
+
subscription_id?: string;
|
|
420
|
+
}
|
|
421
|
+
export interface InvoicingDunningKPIs {
|
|
422
|
+
active_cases: number;
|
|
423
|
+
at_risk_amount: number;
|
|
424
|
+
recovery_rate: number;
|
|
425
|
+
total_cases: number;
|
|
426
|
+
avg_days_to_resolve?: number | null;
|
|
427
|
+
}
|
|
428
|
+
export interface InvoicingPlanTier {
|
|
429
|
+
price: number;
|
|
430
|
+
starting_unit: number;
|
|
431
|
+
ending_unit?: number;
|
|
432
|
+
package_size?: number;
|
|
433
|
+
pricing_type?: string;
|
|
434
|
+
}
|
|
435
|
+
export interface InvoicingAccountingDetail {
|
|
436
|
+
accounting_category_1?: string;
|
|
437
|
+
accounting_category_2?: string;
|
|
438
|
+
accounting_category_3?: string;
|
|
439
|
+
accounting_category_4?: string;
|
|
440
|
+
accounting_code?: string;
|
|
441
|
+
sku?: string;
|
|
442
|
+
}
|
|
443
|
+
export interface InvoicingPlan {
|
|
444
|
+
id: string;
|
|
445
|
+
applicable_items?: string[];
|
|
446
|
+
archived_at?: string;
|
|
447
|
+
billing_cycles?: number;
|
|
448
|
+
created_at?: string;
|
|
449
|
+
currency_code?: string;
|
|
450
|
+
description?: string;
|
|
451
|
+
enabled_for_checkout?: boolean;
|
|
452
|
+
enabled_in_portal?: boolean;
|
|
453
|
+
external_name?: string;
|
|
454
|
+
gift_claim_redirect_url?: string;
|
|
455
|
+
included_in_mrr?: boolean;
|
|
456
|
+
is_giftable?: boolean;
|
|
457
|
+
is_shippable?: boolean;
|
|
458
|
+
item_applicability?: string;
|
|
459
|
+
item_family_id?: string;
|
|
460
|
+
item_type?: string;
|
|
461
|
+
metadata?: Record<string, unknown>;
|
|
462
|
+
metered?: boolean;
|
|
463
|
+
name?: string;
|
|
464
|
+
period?: number;
|
|
465
|
+
period_unit?: string;
|
|
466
|
+
price?: number;
|
|
467
|
+
prices?: InvoicingProduct[];
|
|
468
|
+
status?: string;
|
|
469
|
+
tiers?: InvoicingPlanTier[];
|
|
470
|
+
trial_period?: number;
|
|
471
|
+
trial_period_unit?: string;
|
|
472
|
+
type?: string;
|
|
473
|
+
unit?: string;
|
|
474
|
+
updated_at?: string;
|
|
475
|
+
usage_calculation?: string;
|
|
476
|
+
}
|
|
477
|
+
export interface InvoicingProduct {
|
|
478
|
+
id: string;
|
|
479
|
+
accounting_detail?: InvoicingAccountingDetail;
|
|
480
|
+
applicable_items?: string[];
|
|
481
|
+
archived_at?: string;
|
|
482
|
+
billing_cycles?: number;
|
|
483
|
+
created_at?: string;
|
|
484
|
+
currency_code?: string;
|
|
485
|
+
description?: string;
|
|
486
|
+
enabled?: boolean;
|
|
487
|
+
enabled_for_checkout?: boolean;
|
|
488
|
+
enabled_in_portal?: boolean;
|
|
489
|
+
external_name?: string;
|
|
490
|
+
free_quantity?: number;
|
|
491
|
+
gift_claim_redirect_url?: string;
|
|
492
|
+
included_in_mrr?: boolean;
|
|
493
|
+
invoice_notes?: string;
|
|
494
|
+
is_giftable?: boolean;
|
|
495
|
+
is_shippable?: boolean;
|
|
496
|
+
is_taxable?: boolean;
|
|
497
|
+
item_applicability?: string;
|
|
498
|
+
item_id?: string;
|
|
499
|
+
item_type?: string;
|
|
500
|
+
metered?: boolean;
|
|
501
|
+
name?: string;
|
|
502
|
+
period?: number;
|
|
503
|
+
period_unit?: string;
|
|
504
|
+
price?: number;
|
|
505
|
+
pricing_model?: string;
|
|
506
|
+
proration_type?: string;
|
|
507
|
+
shipping_period?: number;
|
|
508
|
+
shipping_period_unit?: string;
|
|
509
|
+
show_description_in_invoices?: boolean;
|
|
510
|
+
show_description_in_quotes?: boolean;
|
|
511
|
+
status?: string;
|
|
512
|
+
tiers?: InvoicingPlanTier[];
|
|
513
|
+
trial_end_action?: string;
|
|
514
|
+
trial_period?: number;
|
|
515
|
+
trial_period_unit?: string;
|
|
516
|
+
type?: string;
|
|
517
|
+
unit?: string;
|
|
518
|
+
updated_at?: string;
|
|
519
|
+
usage_accumulation_reset_frequency?: string;
|
|
520
|
+
usage_calculation?: string;
|
|
521
|
+
}
|
|
522
|
+
export interface InvoicingCatalogKPIs {
|
|
523
|
+
active_plans: number;
|
|
524
|
+
active_products: number;
|
|
525
|
+
avg_plan_price: number;
|
|
526
|
+
total_mrr: number;
|
|
527
|
+
}
|
|
528
|
+
export interface InvoicingSettings {
|
|
529
|
+
accent_color?: string;
|
|
530
|
+
address?: string;
|
|
531
|
+
address_enabled?: boolean;
|
|
532
|
+
auto_collection?: 'on' | 'off';
|
|
533
|
+
chargebee_connected?: boolean;
|
|
534
|
+
chargebee_site?: string;
|
|
535
|
+
company_name?: string;
|
|
536
|
+
currency?: string;
|
|
537
|
+
currency_code?: string;
|
|
538
|
+
date_format?: string;
|
|
539
|
+
default_memo?: string;
|
|
540
|
+
dunning_max_attempts?: number;
|
|
541
|
+
dunning_retry_interval?: number;
|
|
542
|
+
email?: string;
|
|
543
|
+
id?: string;
|
|
544
|
+
invoice_prefix?: string;
|
|
545
|
+
logo_url?: string;
|
|
546
|
+
net_term_days?: number;
|
|
547
|
+
payment_terms?: string;
|
|
548
|
+
phone?: string;
|
|
549
|
+
phone_enabled?: boolean;
|
|
550
|
+
show_service_periods?: boolean;
|
|
551
|
+
show_tax_id?: boolean;
|
|
552
|
+
stripe_connected_account_id?: string;
|
|
553
|
+
stripe_publishable_key?: string;
|
|
554
|
+
tax_enabled?: boolean;
|
|
555
|
+
tax_id?: string;
|
|
556
|
+
tax_rate?: number;
|
|
557
|
+
timezone?: string;
|
|
558
|
+
[key: string]: unknown;
|
|
559
|
+
}
|
|
560
|
+
export interface InvoicingAnalyticsKPIs {
|
|
561
|
+
active_customers: number;
|
|
562
|
+
active_subscriptions: number;
|
|
563
|
+
arr: number;
|
|
564
|
+
churn_rate: number;
|
|
565
|
+
mrr: number;
|
|
566
|
+
ltv?: number;
|
|
567
|
+
net_revenue_retention?: number;
|
|
568
|
+
}
|
|
569
|
+
export interface InvoicingRevenueDataPoint {
|
|
570
|
+
month: string;
|
|
571
|
+
revenue: number;
|
|
572
|
+
arr?: number;
|
|
573
|
+
}
|
|
574
|
+
export interface InvoicingMRRDataPoint {
|
|
575
|
+
month: string;
|
|
576
|
+
mrr: number;
|
|
577
|
+
churned?: number;
|
|
578
|
+
expansion?: number;
|
|
579
|
+
month_num?: number;
|
|
580
|
+
net?: number;
|
|
581
|
+
new?: number;
|
|
582
|
+
start_mrr?: number;
|
|
583
|
+
year?: number;
|
|
584
|
+
}
|
|
585
|
+
export interface InvoicingChurnDataPoint {
|
|
586
|
+
month: string;
|
|
587
|
+
rate: number;
|
|
588
|
+
churned?: number;
|
|
589
|
+
subscribers?: number;
|
|
590
|
+
}
|
|
591
|
+
export interface InvoicingPlanRevenuePoint {
|
|
592
|
+
mrr: number;
|
|
593
|
+
pct: number;
|
|
594
|
+
plan: string;
|
|
595
|
+
}
|
|
596
|
+
export interface InvoicingAuditEntry {
|
|
597
|
+
action: string;
|
|
598
|
+
target: string;
|
|
599
|
+
time: string;
|
|
600
|
+
actor?: string;
|
|
601
|
+
entity_id?: string;
|
|
602
|
+
entity_type?: string;
|
|
603
|
+
id?: string;
|
|
604
|
+
meta?: string;
|
|
605
|
+
timestamp?: string;
|
|
606
|
+
}
|
|
607
|
+
export interface InvoicingDashboardSummary {
|
|
608
|
+
customer_movement: {
|
|
609
|
+
churned: number;
|
|
610
|
+
net_change: number;
|
|
611
|
+
new: number;
|
|
612
|
+
paused: number;
|
|
613
|
+
reactivated: number;
|
|
614
|
+
resumed: number;
|
|
615
|
+
total_active: number;
|
|
616
|
+
total_active_value: number;
|
|
617
|
+
};
|
|
618
|
+
failed_payments: {
|
|
619
|
+
amount: number;
|
|
620
|
+
count: number;
|
|
621
|
+
};
|
|
622
|
+
grr: {
|
|
623
|
+
churn: number;
|
|
624
|
+
contraction: number;
|
|
625
|
+
grr: number;
|
|
626
|
+
retained_arr: number;
|
|
627
|
+
starting_arr: number;
|
|
628
|
+
};
|
|
629
|
+
mrr_movement: {
|
|
630
|
+
churned: number;
|
|
631
|
+
expansions: number;
|
|
632
|
+
net_change: number;
|
|
633
|
+
new_subscriptions: number;
|
|
634
|
+
};
|
|
635
|
+
nrr: {
|
|
636
|
+
churn: number;
|
|
637
|
+
contraction: number;
|
|
638
|
+
ending_arr: number;
|
|
639
|
+
expansion_arr: number;
|
|
640
|
+
nrr: number;
|
|
641
|
+
starting_arr: number;
|
|
642
|
+
};
|
|
643
|
+
outstanding: number;
|
|
644
|
+
past_due_invoices: {
|
|
645
|
+
amount: number;
|
|
646
|
+
count: number;
|
|
647
|
+
};
|
|
648
|
+
upcoming_invoices: {
|
|
649
|
+
amount: number;
|
|
650
|
+
count: number;
|
|
651
|
+
};
|
|
652
|
+
/** Period-over-period change in outstanding balance, e.g. -6.7. */
|
|
653
|
+
outstanding_change_pct?: number;
|
|
654
|
+
}
|
|
655
|
+
export type InvoicingApprovalStatus = 'approved' | 'denied' | 'pending';
|
|
656
|
+
export interface InvoicingApprovalItem {
|
|
657
|
+
id: string;
|
|
658
|
+
amount?: number;
|
|
659
|
+
created_at?: string;
|
|
660
|
+
notes?: string;
|
|
661
|
+
requester?: string;
|
|
662
|
+
status?: InvoicingApprovalStatus;
|
|
663
|
+
target?: string;
|
|
664
|
+
type?: string;
|
|
665
|
+
}
|
|
666
|
+
export interface InvoicingAgingBuckets {
|
|
667
|
+
'90_plus': InvoicingInvoice[];
|
|
668
|
+
'1_30': InvoicingInvoice[];
|
|
669
|
+
'31_60': InvoicingInvoice[];
|
|
670
|
+
'61_90': InvoicingInvoice[];
|
|
671
|
+
current: InvoicingInvoice[];
|
|
672
|
+
}
|
|
673
|
+
export interface InvoicingAgingReportSummary {
|
|
674
|
+
'90_plus': number;
|
|
675
|
+
'1_30': number;
|
|
676
|
+
'31_60': number;
|
|
677
|
+
'61_90': number;
|
|
678
|
+
current: number;
|
|
679
|
+
total: number;
|
|
680
|
+
}
|
|
681
|
+
export interface InvoicingAgingReport {
|
|
682
|
+
buckets: InvoicingAgingBuckets;
|
|
683
|
+
summary: InvoicingAgingReportSummary;
|
|
684
|
+
}
|
|
685
|
+
export interface InvoicingCustomerMovementRow {
|
|
686
|
+
churned: number;
|
|
687
|
+
ending: number;
|
|
688
|
+
month: string;
|
|
689
|
+
new: number;
|
|
690
|
+
paused: number;
|
|
691
|
+
reactivated: number;
|
|
692
|
+
resumed: number;
|
|
693
|
+
starting: number;
|
|
694
|
+
}
|
|
695
|
+
export type InvoicingCustomerMovementReport = InvoicingCustomerMovementRow[];
|
|
696
|
+
export interface InvoicingDeferredRevenueScheduleRow {
|
|
697
|
+
adjustments: string;
|
|
698
|
+
closing: string;
|
|
699
|
+
opening: string;
|
|
700
|
+
period: string;
|
|
701
|
+
recognized: string;
|
|
702
|
+
}
|
|
703
|
+
export interface InvoicingDeferredRevenueObligationRow {
|
|
704
|
+
pct: number;
|
|
705
|
+
product: string;
|
|
706
|
+
recognized: string;
|
|
707
|
+
remaining: string;
|
|
708
|
+
total: string;
|
|
709
|
+
}
|
|
710
|
+
export interface InvoicingDeferredRevenueKPIs {
|
|
711
|
+
avg_contract_duration: string;
|
|
712
|
+
recognition_rate: string;
|
|
713
|
+
recognized_this_month: string;
|
|
714
|
+
total_deferred: string;
|
|
715
|
+
}
|
|
716
|
+
export interface InvoicingDeferredRevenueReport {
|
|
717
|
+
kpis: InvoicingDeferredRevenueKPIs;
|
|
718
|
+
obligations: InvoicingDeferredRevenueObligationRow[];
|
|
719
|
+
schedule: InvoicingDeferredRevenueScheduleRow[];
|
|
720
|
+
}
|
|
721
|
+
export type InvoicingMigrationStatus = 'scanning' | 'review' | 'importing' | 'done' | 'failed' | 'rolled_back';
|
|
722
|
+
export interface InvoicingMigrationIssue {
|
|
723
|
+
level: 'error' | 'warning';
|
|
724
|
+
message: string;
|
|
725
|
+
count?: number;
|
|
726
|
+
}
|
|
727
|
+
export interface InvoicingMigrationModuleSummary {
|
|
728
|
+
id: string;
|
|
729
|
+
imported: number;
|
|
730
|
+
issues: InvoicingMigrationIssue[];
|
|
731
|
+
label: string;
|
|
732
|
+
skipped: number;
|
|
733
|
+
state: 'pending' | 'scanning' | 'scanned' | 'importing' | 'imported';
|
|
734
|
+
total: number;
|
|
735
|
+
warnings: number;
|
|
736
|
+
}
|
|
737
|
+
export interface InvoicingMigrationSummary {
|
|
738
|
+
imported: number;
|
|
739
|
+
skipped: number;
|
|
740
|
+
total_records: number;
|
|
741
|
+
warnings: number;
|
|
742
|
+
}
|
|
743
|
+
export interface InvoicingMigrationSession {
|
|
744
|
+
created_at: string;
|
|
745
|
+
id: string;
|
|
746
|
+
modules: InvoicingMigrationModuleSummary[];
|
|
747
|
+
site: string;
|
|
748
|
+
source: 'chargebee_api' | 'csv_upload';
|
|
749
|
+
status: InvoicingMigrationStatus;
|
|
750
|
+
summary: InvoicingMigrationSummary;
|
|
751
|
+
updated_at: string;
|
|
752
|
+
catalog_version?: string;
|
|
753
|
+
/** Present only on the rollback response. */
|
|
754
|
+
deleted?: number;
|
|
755
|
+
error?: string | null;
|
|
756
|
+
rollback_available_until?: string | null;
|
|
757
|
+
}
|
|
758
|
+
export interface InvoicingDataImportStatusRow {
|
|
759
|
+
id: string;
|
|
760
|
+
last_imported: string | null;
|
|
761
|
+
module: string;
|
|
762
|
+
records: number;
|
|
763
|
+
source: string;
|
|
764
|
+
status: 'in_sync' | 'skipped' | 'warnings' | 'error' | 'pending';
|
|
765
|
+
status_count: number;
|
|
766
|
+
}
|