@zeniai/client-epic-state 5.1.34-betaAK3 → 5.1.34
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 +1 -3
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +1 -1
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -41
- package/lib/entity/tenant/clearAllEpic.js +4 -82
- package/lib/entity/tenant/tenantReducer.js +3 -3
- package/lib/epic.d.ts +1 -36
- package/lib/epic.js +1 -47
- package/lib/esm/entity/tenant/clearAllEpic.js +0 -78
- package/lib/esm/entity/tenant/tenantReducer.js +3 -3
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogPayload.js +1 -1
- package/lib/esm/epic.js +1 -47
- package/lib/esm/index.js +2 -85
- package/lib/esm/reducer.js +0 -120
- package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +3 -29
- package/lib/esm/view/aiCfoView/aiCfoViewSelector.js +0 -11
- package/lib/esm/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -2
- package/lib/esm/view/aiCfoView/epics/submitQuestionEpic.js +1 -7
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +1 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +2 -4
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +2 -1
- package/lib/esm/view/fileView/fileUploadHelpers.js +2 -1
- package/lib/esm/view/onboardingView/cockpitView/epic/initializeOnboardingCustomerViewUpdateDataEpic.js +21 -5
- package/lib/esm/view/onboardingView/cockpitView/onboardingCockpitViewPayload.js +2 -2
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +4 -5
- package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +1 -2
- package/lib/esm/view/transactionDetail/epics/saveTransactionDetailEpic.js +1 -1
- package/lib/index.d.ts +4 -139
- package/lib/index.js +5 -358
- package/lib/reducer.d.ts +0 -120
- package/lib/reducer.js +6 -126
- package/lib/view/aiCfoView/aiCfoViewPayload.d.ts +0 -14
- package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +4 -8
- package/lib/view/aiCfoView/aiCfoViewReducer.js +4 -30
- package/lib/view/aiCfoView/aiCfoViewSelector.d.ts +1 -2
- package/lib/view/aiCfoView/aiCfoViewSelector.js +0 -12
- package/lib/view/aiCfoView/aiCfoViewState.d.ts +0 -15
- package/lib/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -2
- package/lib/view/aiCfoView/epics/submitQuestionEpic.js +1 -7
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +1 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +2 -4
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +2 -1
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +1 -1
- package/lib/view/fileView/fileUploadHelpers.js +2 -1
- package/lib/view/onboardingView/cockpitView/epic/initializeOnboardingCustomerViewUpdateDataEpic.js +20 -4
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.js +2 -2
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +4 -5
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +1 -2
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +3 -3
- package/lib/view/transactionDetail/epics/saveTransactionDetailEpic.js +1 -1
- package/lib/zeniAPI.d.ts +0 -1
- package/package.json +2 -5
- package/lib/entity/invoicing/coupon/couponConstants.d.ts +0 -11
- package/lib/entity/invoicing/coupon/couponConstants.js +0 -29
- package/lib/entity/invoicing/coupon/couponPayload.d.ts +0 -55
- package/lib/entity/invoicing/coupon/couponPayload.js +0 -48
- package/lib/entity/invoicing/coupon/couponReducer.d.ts +0 -9
- package/lib/entity/invoicing/coupon/couponReducer.js +0 -47
- package/lib/entity/invoicing/coupon/couponSelector.d.ts +0 -5
- package/lib/entity/invoicing/coupon/couponSelector.js +0 -9
- package/lib/entity/invoicing/coupon/couponState.d.ts +0 -39
- package/lib/entity/invoicing/coupon/couponState.js +0 -2
- package/lib/entity/invoicing/creditNote/creditNotePayload.d.ts +0 -47
- package/lib/entity/invoicing/creditNote/creditNotePayload.js +0 -2
- package/lib/entity/invoicing/creditNote/creditNoteReducer.d.ts +0 -10
- package/lib/entity/invoicing/creditNote/creditNoteReducer.js +0 -35
- package/lib/entity/invoicing/creditNote/creditNoteState.d.ts +0 -5
- package/lib/entity/invoicing/creditNote/creditNoteState.js +0 -2
- package/lib/entity/invoicing/dunningCase/dunningCasePayload.d.ts +0 -29
- package/lib/entity/invoicing/dunningCase/dunningCasePayload.js +0 -2
- package/lib/entity/invoicing/dunningCase/dunningCaseReducer.d.ts +0 -10
- package/lib/entity/invoicing/dunningCase/dunningCaseReducer.js +0 -35
- package/lib/entity/invoicing/dunningCase/dunningCaseState.d.ts +0 -5
- package/lib/entity/invoicing/dunningCase/dunningCaseState.js +0 -2
- package/lib/entity/invoicing/invoice/invoicePayload.d.ts +0 -96
- package/lib/entity/invoicing/invoice/invoicePayload.js +0 -120
- package/lib/entity/invoicing/invoice/invoiceReducer.d.ts +0 -9
- package/lib/entity/invoicing/invoice/invoiceReducer.js +0 -49
- package/lib/entity/invoicing/invoice/invoiceSelector.d.ts +0 -5
- package/lib/entity/invoicing/invoice/invoiceSelector.js +0 -9
- package/lib/entity/invoicing/invoice/invoiceState.d.ts +0 -99
- package/lib/entity/invoicing/invoice/invoiceState.js +0 -2
- package/lib/entity/invoicing/invoicingCommonPayload.d.ts +0 -65
- package/lib/entity/invoicing/invoicingCommonPayload.js +0 -2
- package/lib/entity/invoicing/invoicingCommonState.d.ts +0 -45
- package/lib/entity/invoicing/invoicingCommonState.js +0 -2
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerPayload.d.ts +0 -54
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerPayload.js +0 -72
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerReducer.d.ts +0 -9
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerReducer.js +0 -47
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerSelector.d.ts +0 -4
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerSelector.js +0 -17
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerState.d.ts +0 -50
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerState.js +0 -2
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionPayload.d.ts +0 -75
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionPayload.js +0 -105
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer.d.ts +0 -9
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer.js +0 -49
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionSelector.d.ts +0 -5
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionSelector.js +0 -17
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionState.d.ts +0 -75
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionState.js +0 -2
- package/lib/entity/invoicing/plan/planPayload.d.ts +0 -41
- package/lib/entity/invoicing/plan/planPayload.js +0 -2
- package/lib/entity/invoicing/plan/planReducer.d.ts +0 -10
- package/lib/entity/invoicing/plan/planReducer.js +0 -33
- package/lib/entity/invoicing/plan/planState.d.ts +0 -5
- package/lib/entity/invoicing/plan/planState.js +0 -2
- package/lib/entity/invoicing/product/productPayload.d.ts +0 -60
- package/lib/entity/invoicing/product/productPayload.js +0 -2
- package/lib/entity/invoicing/product/productReducer.d.ts +0 -10
- package/lib/entity/invoicing/product/productReducer.js +0 -33
- package/lib/entity/invoicing/product/productState.d.ts +0 -5
- package/lib/entity/invoicing/product/productState.js +0 -2
- package/lib/entity/invoicing/transaction/transactionPayload.d.ts +0 -54
- package/lib/entity/invoicing/transaction/transactionPayload.js +0 -2
- package/lib/entity/invoicing/transaction/transactionReducer.d.ts +0 -10
- package/lib/entity/invoicing/transaction/transactionReducer.js +0 -35
- package/lib/entity/invoicing/transaction/transactionState.d.ts +0 -5
- package/lib/entity/invoicing/transaction/transactionState.js +0 -2
- package/lib/esm/entity/invoicing/coupon/couponConstants.js +0 -26
- package/lib/esm/entity/invoicing/coupon/couponPayload.js +0 -43
- package/lib/esm/entity/invoicing/coupon/couponReducer.js +0 -40
- package/lib/esm/entity/invoicing/coupon/couponSelector.js +0 -4
- package/lib/esm/entity/invoicing/coupon/couponState.js +0 -1
- package/lib/esm/entity/invoicing/creditNote/creditNotePayload.js +0 -1
- package/lib/esm/entity/invoicing/creditNote/creditNoteReducer.js +0 -31
- package/lib/esm/entity/invoicing/creditNote/creditNoteState.js +0 -1
- package/lib/esm/entity/invoicing/dunningCase/dunningCasePayload.js +0 -1
- package/lib/esm/entity/invoicing/dunningCase/dunningCaseReducer.js +0 -31
- package/lib/esm/entity/invoicing/dunningCase/dunningCaseState.js +0 -1
- package/lib/esm/entity/invoicing/invoice/invoicePayload.js +0 -115
- package/lib/esm/entity/invoicing/invoice/invoiceReducer.js +0 -42
- package/lib/esm/entity/invoicing/invoice/invoiceSelector.js +0 -4
- package/lib/esm/entity/invoicing/invoice/invoiceState.js +0 -1
- package/lib/esm/entity/invoicing/invoicingCommonPayload.js +0 -1
- package/lib/esm/entity/invoicing/invoicingCommonState.js +0 -1
- package/lib/esm/entity/invoicing/invoicingCustomer/invoicingCustomerPayload.js +0 -68
- package/lib/esm/entity/invoicing/invoicingCustomer/invoicingCustomerReducer.js +0 -40
- package/lib/esm/entity/invoicing/invoicingCustomer/invoicingCustomerSelector.js +0 -10
- package/lib/esm/entity/invoicing/invoicingCustomer/invoicingCustomerState.js +0 -1
- package/lib/esm/entity/invoicing/invoicingSubscription/invoicingSubscriptionPayload.js +0 -98
- package/lib/esm/entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer.js +0 -42
- package/lib/esm/entity/invoicing/invoicingSubscription/invoicingSubscriptionSelector.js +0 -10
- package/lib/esm/entity/invoicing/invoicingSubscription/invoicingSubscriptionState.js +0 -1
- package/lib/esm/entity/invoicing/plan/planPayload.js +0 -1
- package/lib/esm/entity/invoicing/plan/planReducer.js +0 -29
- package/lib/esm/entity/invoicing/plan/planState.js +0 -1
- package/lib/esm/entity/invoicing/product/productPayload.js +0 -1
- package/lib/esm/entity/invoicing/product/productReducer.js +0 -29
- package/lib/esm/entity/invoicing/product/productState.js +0 -1
- package/lib/esm/entity/invoicing/transaction/transactionPayload.js +0 -1
- package/lib/esm/entity/invoicing/transaction/transactionReducer.js +0 -31
- package/lib/esm/entity/invoicing/transaction/transactionState.js +0 -1
- package/lib/esm/view/aiCfoView/epics/fetchSkillsEpic.js +0 -34
- package/lib/esm/view/invoicing/approvalAction/approvalActionEpic.js +0 -27
- package/lib/esm/view/invoicing/approvalAction/approvalActionPayload.js +0 -1
- package/lib/esm/view/invoicing/approvalAction/approvalActionReducer.js +0 -36
- package/lib/esm/view/invoicing/approvalAction/approvalActionSelector.js +0 -5
- package/lib/esm/view/invoicing/approvalAction/approvalActionState.js +0 -1
- package/lib/esm/view/invoicing/approvalsView/approvalsViewEpics.js +0 -35
- package/lib/esm/view/invoicing/approvalsView/approvalsViewPayload.js +0 -1
- package/lib/esm/view/invoicing/approvalsView/approvalsViewReducer.js +0 -62
- package/lib/esm/view/invoicing/approvalsView/approvalsViewSelector.js +0 -8
- package/lib/esm/view/invoicing/approvalsView/approvalsViewState.js +0 -1
- package/lib/esm/view/invoicing/auditView/auditViewEpics.js +0 -44
- package/lib/esm/view/invoicing/auditView/auditViewPayload.js +0 -1
- package/lib/esm/view/invoicing/auditView/auditViewReducer.js +0 -56
- package/lib/esm/view/invoicing/auditView/auditViewSelector.js +0 -8
- package/lib/esm/view/invoicing/auditView/auditViewState.js +0 -1
- package/lib/esm/view/invoicing/catalogView/catalogViewEpics.js +0 -139
- package/lib/esm/view/invoicing/catalogView/catalogViewPayload.js +0 -1
- package/lib/esm/view/invoicing/catalogView/catalogViewReducer.js +0 -162
- package/lib/esm/view/invoicing/catalogView/catalogViewSelector.js +0 -31
- package/lib/esm/view/invoicing/catalogView/catalogViewState.js +0 -1
- package/lib/esm/view/invoicing/catalogWrite/catalogWriteEpic.js +0 -35
- package/lib/esm/view/invoicing/catalogWrite/catalogWritePayload.js +0 -1
- package/lib/esm/view/invoicing/catalogWrite/catalogWriteReducer.js +0 -39
- package/lib/esm/view/invoicing/catalogWrite/catalogWriteSelector.js +0 -6
- package/lib/esm/view/invoicing/catalogWrite/catalogWriteState.js +0 -1
- package/lib/esm/view/invoicing/couponView/couponViewEpics.js +0 -93
- package/lib/esm/view/invoicing/couponView/couponViewPayload.js +0 -1
- package/lib/esm/view/invoicing/couponView/couponViewReducer.js +0 -104
- package/lib/esm/view/invoicing/couponView/couponViewSelector.js +0 -33
- package/lib/esm/view/invoicing/couponView/couponViewState.js +0 -1
- package/lib/esm/view/invoicing/createInvoice/createInvoiceEpic.js +0 -22
- package/lib/esm/view/invoicing/createInvoice/createInvoicePayload.js +0 -1
- package/lib/esm/view/invoicing/createInvoice/createInvoiceReducer.js +0 -36
- package/lib/esm/view/invoicing/createInvoice/createInvoiceSelector.js +0 -27
- package/lib/esm/view/invoicing/createInvoice/createInvoiceState.js +0 -1
- package/lib/esm/view/invoicing/creditNoteView/creditNoteViewEpics.js +0 -85
- package/lib/esm/view/invoicing/creditNoteView/creditNoteViewPayload.js +0 -1
- package/lib/esm/view/invoicing/creditNoteView/creditNoteViewReducer.js +0 -105
- package/lib/esm/view/invoicing/creditNoteView/creditNoteViewSelector.js +0 -20
- package/lib/esm/view/invoicing/creditNoteView/creditNoteViewState.js +0 -1
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.js +0 -60
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodPayload.js +0 -1
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodReducer.js +0 -84
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodSelector.js +0 -7
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodState.js +0 -1
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionEpic.js +0 -41
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionPayload.js +0 -1
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionReducer.js +0 -73
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionSelector.js +0 -5
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionState.js +0 -1
- package/lib/esm/view/invoicing/dataImportView/dataImportViewEpics.js +0 -34
- package/lib/esm/view/invoicing/dataImportView/dataImportViewPayload.js +0 -1
- package/lib/esm/view/invoicing/dataImportView/dataImportViewReducer.js +0 -66
- package/lib/esm/view/invoicing/dataImportView/dataImportViewSelector.js +0 -8
- package/lib/esm/view/invoicing/dataImportView/dataImportViewState.js +0 -1
- package/lib/esm/view/invoicing/dunningAction/dunningActionEpic.js +0 -27
- package/lib/esm/view/invoicing/dunningAction/dunningActionPayload.js +0 -1
- package/lib/esm/view/invoicing/dunningAction/dunningActionReducer.js +0 -36
- package/lib/esm/view/invoicing/dunningAction/dunningActionSelector.js +0 -5
- package/lib/esm/view/invoicing/dunningAction/dunningActionState.js +0 -1
- package/lib/esm/view/invoicing/dunningCaseView/dunningCaseViewEpics.js +0 -79
- package/lib/esm/view/invoicing/dunningCaseView/dunningCaseViewPayload.js +0 -1
- package/lib/esm/view/invoicing/dunningCaseView/dunningCaseViewReducer.js +0 -105
- package/lib/esm/view/invoicing/dunningCaseView/dunningCaseViewSelector.js +0 -20
- package/lib/esm/view/invoicing/dunningCaseView/dunningCaseViewState.js +0 -1
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewPayload.js +0 -1
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js +0 -36
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js +0 -29
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewState.js +0 -1
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/saveInvoicingCouponEpic.js +0 -28
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewPayload.js +0 -1
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +0 -36
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +0 -19
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.js +0 -1
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.js +0 -22
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewPayload.js +0 -1
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.js +0 -36
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +0 -30
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewState.js +0 -1
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +0 -24
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionEpic.js +0 -49
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionPayload.js +0 -1
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionReducer.js +0 -42
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionSelector.js +0 -5
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionState.js +0 -1
- package/lib/esm/view/invoicing/invoiceDetail/fetchInvoiceDetailEpic.js +0 -22
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailPayload.js +0 -1
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailReducer.js +0 -38
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailSelector.js +0 -15
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailState.js +0 -1
- package/lib/esm/view/invoicing/invoiceList/fetchInvoiceCountsEpic.js +0 -32
- package/lib/esm/view/invoicing/invoiceList/fetchInvoiceKPIsEpic.js +0 -15
- package/lib/esm/view/invoicing/invoiceList/fetchInvoiceListEpic.js +0 -53
- package/lib/esm/view/invoicing/invoiceList/fetchInvoiceListPageEpic.js +0 -30
- package/lib/esm/view/invoicing/invoiceList/invoiceListPayload.js +0 -1
- package/lib/esm/view/invoicing/invoiceList/invoiceListReducer.js +0 -105
- package/lib/esm/view/invoicing/invoiceList/invoiceListSelector.js +0 -32
- package/lib/esm/view/invoicing/invoiceList/invoiceListState.js +0 -1
- package/lib/esm/view/invoicing/invoicePdf/invoicePdfEpic.js +0 -36
- package/lib/esm/view/invoicing/invoicePdf/invoicePdfReducer.js +0 -33
- package/lib/esm/view/invoicing/invoicePdf/invoicePdfSelector.js +0 -5
- package/lib/esm/view/invoicing/invoicePdf/invoicePdfState.js +0 -1
- package/lib/esm/view/invoicing/invoicingApiHelper.js +0 -14
- package/lib/esm/view/invoicing/invoicingCouponDetailView/fetchInvoicingCouponDetailEpic.js +0 -22
- package/lib/esm/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewPayload.js +0 -1
- package/lib/esm/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewReducer.js +0 -38
- package/lib/esm/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewSelector.js +0 -11
- package/lib/esm/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewState.js +0 -1
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailEpic.js +0 -22
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +0 -41
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewPayload.js +0 -1
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.js +0 -51
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.js +0 -25
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewState.js +0 -1
- package/lib/esm/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerCountsEpic.js +0 -20
- package/lib/esm/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListEpic.js +0 -40
- package/lib/esm/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListPageEpic.js +0 -27
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewPayload.js +0 -1
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer.js +0 -89
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js +0 -16
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.js +0 -1
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewChurnEpic.js +0 -17
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewDashboardSummaryEpic.js +0 -17
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewEpic.js +0 -55
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewKPIsEpic.js +0 -17
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewMRREpic.js +0 -17
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewPlanRevenueEpic.js +0 -17
- package/lib/esm/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewRevenueEpic.js +0 -17
- package/lib/esm/view/invoicing/invoicingOverview/invoicingOverviewPayload.js +0 -87
- package/lib/esm/view/invoicing/invoicingOverview/invoicingOverviewReducer.js +0 -115
- package/lib/esm/view/invoicing/invoicingOverview/invoicingOverviewSelector.js +0 -62
- package/lib/esm/view/invoicing/invoicingOverview/invoicingOverviewState.js +0 -1
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewEpics.js +0 -19
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewPayload.js +0 -1
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.js +0 -31
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector.js +0 -13
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewState.js +0 -1
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionCountsEpic.js +0 -23
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListEpic.js +0 -49
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListPageEpic.js +0 -27
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewPayload.js +0 -1
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.js +0 -89
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +0 -17
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.js +0 -1
- package/lib/esm/view/invoicing/paymentAction/paymentActionEpic.js +0 -27
- package/lib/esm/view/invoicing/paymentAction/paymentActionPayload.js +0 -1
- package/lib/esm/view/invoicing/paymentAction/paymentActionReducer.js +0 -36
- package/lib/esm/view/invoicing/paymentAction/paymentActionSelector.js +0 -5
- package/lib/esm/view/invoicing/paymentAction/paymentActionState.js +0 -1
- package/lib/esm/view/invoicing/recordPayment/recordPaymentEpic.js +0 -22
- package/lib/esm/view/invoicing/recordPayment/recordPaymentPayload.js +0 -1
- package/lib/esm/view/invoicing/recordPayment/recordPaymentReducer.js +0 -36
- package/lib/esm/view/invoicing/recordPayment/recordPaymentSelector.js +0 -5
- package/lib/esm/view/invoicing/recordPayment/recordPaymentState.js +0 -1
- package/lib/esm/view/invoicing/settingsView/settingsViewEpics.js +0 -66
- package/lib/esm/view/invoicing/settingsView/settingsViewPayload.js +0 -1
- package/lib/esm/view/invoicing/settingsView/settingsViewReducer.js +0 -75
- package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +0 -7
- package/lib/esm/view/invoicing/settingsView/settingsViewState.js +0 -1
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionEpic.js +0 -27
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionPayload.js +0 -1
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionReducer.js +0 -36
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionSelector.js +0 -5
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionState.js +0 -1
- package/lib/esm/view/invoicing/transactionView/transactionViewEpics.js +0 -70
- package/lib/esm/view/invoicing/transactionView/transactionViewPayload.js +0 -1
- package/lib/esm/view/invoicing/transactionView/transactionViewReducer.js +0 -90
- package/lib/esm/view/invoicing/transactionView/transactionViewSelector.js +0 -19
- package/lib/esm/view/invoicing/transactionView/transactionViewState.js +0 -1
- package/lib/view/aiCfoView/epics/fetchSkillsEpic.d.ts +0 -8
- package/lib/view/aiCfoView/epics/fetchSkillsEpic.js +0 -38
- package/lib/view/invoicing/approvalAction/approvalActionEpic.d.ts +0 -8
- package/lib/view/invoicing/approvalAction/approvalActionEpic.js +0 -31
- package/lib/view/invoicing/approvalAction/approvalActionPayload.d.ts +0 -3
- package/lib/view/invoicing/approvalAction/approvalActionPayload.js +0 -2
- package/lib/view/invoicing/approvalAction/approvalActionReducer.d.ts +0 -17
- package/lib/view/invoicing/approvalAction/approvalActionReducer.js +0 -40
- package/lib/view/invoicing/approvalAction/approvalActionSelector.d.ts +0 -3
- package/lib/view/invoicing/approvalAction/approvalActionSelector.js +0 -9
- package/lib/view/invoicing/approvalAction/approvalActionState.d.ts +0 -5
- package/lib/view/invoicing/approvalAction/approvalActionState.js +0 -2
- package/lib/view/invoicing/approvalsView/approvalsViewEpics.d.ts +0 -7
- package/lib/view/invoicing/approvalsView/approvalsViewEpics.js +0 -39
- package/lib/view/invoicing/approvalsView/approvalsViewPayload.d.ts +0 -14
- package/lib/view/invoicing/approvalsView/approvalsViewPayload.js +0 -2
- package/lib/view/invoicing/approvalsView/approvalsViewReducer.d.ts +0 -22
- package/lib/view/invoicing/approvalsView/approvalsViewReducer.js +0 -66
- package/lib/view/invoicing/approvalsView/approvalsViewSelector.d.ts +0 -9
- package/lib/view/invoicing/approvalsView/approvalsViewSelector.js +0 -16
- package/lib/view/invoicing/approvalsView/approvalsViewState.d.ts +0 -14
- package/lib/view/invoicing/approvalsView/approvalsViewState.js +0 -2
- package/lib/view/invoicing/auditView/auditViewEpics.d.ts +0 -7
- package/lib/view/invoicing/auditView/auditViewEpics.js +0 -48
- package/lib/view/invoicing/auditView/auditViewPayload.d.ts +0 -14
- package/lib/view/invoicing/auditView/auditViewPayload.js +0 -2
- package/lib/view/invoicing/auditView/auditViewReducer.d.ts +0 -22
- package/lib/view/invoicing/auditView/auditViewReducer.js +0 -60
- package/lib/view/invoicing/auditView/auditViewSelector.d.ts +0 -9
- package/lib/view/invoicing/auditView/auditViewSelector.js +0 -16
- package/lib/view/invoicing/auditView/auditViewState.d.ts +0 -17
- package/lib/view/invoicing/auditView/auditViewState.js +0 -2
- package/lib/view/invoicing/catalogView/catalogViewEpics.d.ts +0 -14
- package/lib/view/invoicing/catalogView/catalogViewEpics.js +0 -148
- package/lib/view/invoicing/catalogView/catalogViewPayload.d.ts +0 -10
- package/lib/view/invoicing/catalogView/catalogViewPayload.js +0 -2
- package/lib/view/invoicing/catalogView/catalogViewReducer.d.ts +0 -46
- package/lib/view/invoicing/catalogView/catalogViewReducer.js +0 -166
- package/lib/view/invoicing/catalogView/catalogViewSelector.d.ts +0 -24
- package/lib/view/invoicing/catalogView/catalogViewSelector.js +0 -52
- package/lib/view/invoicing/catalogView/catalogViewState.d.ts +0 -36
- package/lib/view/invoicing/catalogView/catalogViewState.js +0 -2
- package/lib/view/invoicing/catalogWrite/catalogWriteEpic.d.ts +0 -9
- package/lib/view/invoicing/catalogWrite/catalogWriteEpic.js +0 -39
- package/lib/view/invoicing/catalogWrite/catalogWritePayload.d.ts +0 -4
- package/lib/view/invoicing/catalogWrite/catalogWritePayload.js +0 -2
- package/lib/view/invoicing/catalogWrite/catalogWriteReducer.d.ts +0 -16
- package/lib/view/invoicing/catalogWrite/catalogWriteReducer.js +0 -43
- package/lib/view/invoicing/catalogWrite/catalogWriteSelector.d.ts +0 -6
- package/lib/view/invoicing/catalogWrite/catalogWriteSelector.js +0 -12
- package/lib/view/invoicing/catalogWrite/catalogWriteState.d.ts +0 -7
- package/lib/view/invoicing/catalogWrite/catalogWriteState.js +0 -2
- package/lib/view/invoicing/couponView/couponViewEpics.d.ts +0 -16
- package/lib/view/invoicing/couponView/couponViewEpics.js +0 -100
- package/lib/view/invoicing/couponView/couponViewPayload.d.ts +0 -6
- package/lib/view/invoicing/couponView/couponViewPayload.js +0 -2
- package/lib/view/invoicing/couponView/couponViewReducer.d.ts +0 -32
- package/lib/view/invoicing/couponView/couponViewReducer.js +0 -108
- package/lib/view/invoicing/couponView/couponViewSelector.d.ts +0 -29
- package/lib/view/invoicing/couponView/couponViewSelector.js +0 -43
- package/lib/view/invoicing/couponView/couponViewState.d.ts +0 -18
- package/lib/view/invoicing/couponView/couponViewState.js +0 -2
- package/lib/view/invoicing/createInvoice/createInvoiceEpic.d.ts +0 -8
- package/lib/view/invoicing/createInvoice/createInvoiceEpic.js +0 -26
- package/lib/view/invoicing/createInvoice/createInvoicePayload.d.ts +0 -25
- package/lib/view/invoicing/createInvoice/createInvoicePayload.js +0 -2
- package/lib/view/invoicing/createInvoice/createInvoiceReducer.d.ts +0 -10
- package/lib/view/invoicing/createInvoice/createInvoiceReducer.js +0 -40
- package/lib/view/invoicing/createInvoice/createInvoiceSelector.d.ts +0 -23
- package/lib/view/invoicing/createInvoice/createInvoiceSelector.js +0 -33
- package/lib/view/invoicing/createInvoice/createInvoiceState.d.ts +0 -6
- package/lib/view/invoicing/createInvoice/createInvoiceState.js +0 -2
- package/lib/view/invoicing/creditNoteView/creditNoteViewEpics.d.ts +0 -11
- package/lib/view/invoicing/creditNoteView/creditNoteViewEpics.js +0 -92
- package/lib/view/invoicing/creditNoteView/creditNoteViewPayload.d.ts +0 -7
- package/lib/view/invoicing/creditNoteView/creditNoteViewPayload.js +0 -2
- package/lib/view/invoicing/creditNoteView/creditNoteViewReducer.d.ts +0 -28
- package/lib/view/invoicing/creditNoteView/creditNoteViewReducer.js +0 -109
- package/lib/view/invoicing/creditNoteView/creditNoteViewSelector.d.ts +0 -15
- package/lib/view/invoicing/creditNoteView/creditNoteViewSelector.js +0 -33
- package/lib/view/invoicing/creditNoteView/creditNoteViewState.d.ts +0 -21
- package/lib/view/invoicing/creditNoteView/creditNoteViewState.js +0 -2
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.d.ts +0 -11
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.js +0 -67
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodPayload.d.ts +0 -18
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodPayload.js +0 -2
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodReducer.d.ts +0 -21
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodReducer.js +0 -88
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodSelector.d.ts +0 -10
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodSelector.js +0 -17
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodState.d.ts +0 -23
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodState.js +0 -2
- package/lib/view/invoicing/dataImportAction/dataImportActionEpic.d.ts +0 -7
- package/lib/view/invoicing/dataImportAction/dataImportActionEpic.js +0 -45
- package/lib/view/invoicing/dataImportAction/dataImportActionPayload.d.ts +0 -3
- package/lib/view/invoicing/dataImportAction/dataImportActionPayload.js +0 -2
- package/lib/view/invoicing/dataImportAction/dataImportActionReducer.d.ts +0 -19
- package/lib/view/invoicing/dataImportAction/dataImportActionReducer.js +0 -77
- package/lib/view/invoicing/dataImportAction/dataImportActionSelector.d.ts +0 -4
- package/lib/view/invoicing/dataImportAction/dataImportActionSelector.js +0 -9
- package/lib/view/invoicing/dataImportAction/dataImportActionState.d.ts +0 -5
- package/lib/view/invoicing/dataImportAction/dataImportActionState.js +0 -2
- package/lib/view/invoicing/dataImportView/dataImportViewEpics.d.ts +0 -9
- package/lib/view/invoicing/dataImportView/dataImportViewEpics.js +0 -40
- package/lib/view/invoicing/dataImportView/dataImportViewPayload.d.ts +0 -50
- package/lib/view/invoicing/dataImportView/dataImportViewPayload.js +0 -2
- package/lib/view/invoicing/dataImportView/dataImportViewReducer.d.ts +0 -7
- package/lib/view/invoicing/dataImportView/dataImportViewReducer.js +0 -70
- package/lib/view/invoicing/dataImportView/dataImportViewSelector.d.ts +0 -9
- package/lib/view/invoicing/dataImportView/dataImportViewSelector.js +0 -17
- package/lib/view/invoicing/dataImportView/dataImportViewState.d.ts +0 -10
- package/lib/view/invoicing/dataImportView/dataImportViewState.js +0 -2
- package/lib/view/invoicing/dunningAction/dunningActionEpic.d.ts +0 -8
- package/lib/view/invoicing/dunningAction/dunningActionEpic.js +0 -31
- package/lib/view/invoicing/dunningAction/dunningActionPayload.d.ts +0 -3
- package/lib/view/invoicing/dunningAction/dunningActionPayload.js +0 -2
- package/lib/view/invoicing/dunningAction/dunningActionReducer.d.ts +0 -21
- package/lib/view/invoicing/dunningAction/dunningActionReducer.js +0 -40
- package/lib/view/invoicing/dunningAction/dunningActionSelector.d.ts +0 -3
- package/lib/view/invoicing/dunningAction/dunningActionSelector.js +0 -9
- package/lib/view/invoicing/dunningAction/dunningActionState.d.ts +0 -5
- package/lib/view/invoicing/dunningAction/dunningActionState.js +0 -2
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewEpics.d.ts +0 -11
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewEpics.js +0 -86
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewPayload.d.ts +0 -7
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewPayload.js +0 -2
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewReducer.d.ts +0 -28
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewReducer.js +0 -109
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewSelector.d.ts +0 -15
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewSelector.js +0 -33
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewState.d.ts +0 -20
- package/lib/view/invoicing/dunningCaseView/dunningCaseViewState.js +0 -2
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewPayload.d.ts +0 -3
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewPayload.js +0 -2
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.d.ts +0 -14
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js +0 -40
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.d.ts +0 -28
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js +0 -34
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewState.d.ts +0 -5
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewState.js +0 -2
- package/lib/view/invoicing/editInvoicingCouponDetailView/saveInvoicingCouponEpic.d.ts +0 -8
- package/lib/view/invoicing/editInvoicingCouponDetailView/saveInvoicingCouponEpic.js +0 -32
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewPayload.d.ts +0 -3
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewPayload.js +0 -2
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.d.ts +0 -14
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +0 -40
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.d.ts +0 -15
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +0 -23
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.d.ts +0 -5
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.js +0 -2
- package/lib/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.d.ts +0 -8
- package/lib/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.js +0 -26
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewPayload.d.ts +0 -3
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewPayload.js +0 -2
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.d.ts +0 -14
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.js +0 -40
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.d.ts +0 -34
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +0 -35
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewState.d.ts +0 -5
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewState.js +0 -2
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.d.ts +0 -8
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +0 -28
- package/lib/view/invoicing/invoiceAction/invoiceActionEpic.d.ts +0 -9
- package/lib/view/invoicing/invoiceAction/invoiceActionEpic.js +0 -54
- package/lib/view/invoicing/invoiceAction/invoiceActionPayload.d.ts +0 -3
- package/lib/view/invoicing/invoiceAction/invoiceActionPayload.js +0 -2
- package/lib/view/invoicing/invoiceAction/invoiceActionReducer.d.ts +0 -23
- package/lib/view/invoicing/invoiceAction/invoiceActionReducer.js +0 -46
- package/lib/view/invoicing/invoiceAction/invoiceActionSelector.d.ts +0 -3
- package/lib/view/invoicing/invoiceAction/invoiceActionSelector.js +0 -9
- package/lib/view/invoicing/invoiceAction/invoiceActionState.d.ts +0 -5
- package/lib/view/invoicing/invoiceAction/invoiceActionState.js +0 -2
- package/lib/view/invoicing/invoiceDetail/fetchInvoiceDetailEpic.d.ts +0 -8
- package/lib/view/invoicing/invoiceDetail/fetchInvoiceDetailEpic.js +0 -26
- package/lib/view/invoicing/invoiceDetail/invoiceDetailPayload.d.ts +0 -3
- package/lib/view/invoicing/invoiceDetail/invoiceDetailPayload.js +0 -2
- package/lib/view/invoicing/invoiceDetail/invoiceDetailReducer.d.ts +0 -16
- package/lib/view/invoicing/invoiceDetail/invoiceDetailReducer.js +0 -43
- package/lib/view/invoicing/invoiceDetail/invoiceDetailSelector.d.ts +0 -15
- package/lib/view/invoicing/invoiceDetail/invoiceDetailSelector.js +0 -22
- package/lib/view/invoicing/invoiceDetail/invoiceDetailState.d.ts +0 -7
- package/lib/view/invoicing/invoiceDetail/invoiceDetailState.js +0 -2
- package/lib/view/invoicing/invoiceList/fetchInvoiceCountsEpic.d.ts +0 -7
- package/lib/view/invoicing/invoiceList/fetchInvoiceCountsEpic.js +0 -36
- package/lib/view/invoicing/invoiceList/fetchInvoiceKPIsEpic.d.ts +0 -7
- package/lib/view/invoicing/invoiceList/fetchInvoiceKPIsEpic.js +0 -19
- package/lib/view/invoicing/invoiceList/fetchInvoiceListEpic.d.ts +0 -8
- package/lib/view/invoicing/invoiceList/fetchInvoiceListEpic.js +0 -57
- package/lib/view/invoicing/invoiceList/fetchInvoiceListPageEpic.d.ts +0 -11
- package/lib/view/invoicing/invoiceList/fetchInvoiceListPageEpic.js +0 -34
- package/lib/view/invoicing/invoiceList/invoiceListPayload.d.ts +0 -6
- package/lib/view/invoicing/invoiceList/invoiceListPayload.js +0 -2
- package/lib/view/invoicing/invoiceList/invoiceListReducer.d.ts +0 -32
- package/lib/view/invoicing/invoiceList/invoiceListReducer.js +0 -109
- package/lib/view/invoicing/invoiceList/invoiceListSelector.d.ts +0 -29
- package/lib/view/invoicing/invoiceList/invoiceListSelector.js +0 -42
- package/lib/view/invoicing/invoiceList/invoiceListState.d.ts +0 -26
- package/lib/view/invoicing/invoiceList/invoiceListState.js +0 -2
- package/lib/view/invoicing/invoicePdf/invoicePdfEpic.d.ts +0 -7
- package/lib/view/invoicing/invoicePdf/invoicePdfEpic.js +0 -40
- package/lib/view/invoicing/invoicePdf/invoicePdfReducer.d.ts +0 -17
- package/lib/view/invoicing/invoicePdf/invoicePdfReducer.js +0 -37
- package/lib/view/invoicing/invoicePdf/invoicePdfSelector.d.ts +0 -3
- package/lib/view/invoicing/invoicePdf/invoicePdfSelector.js +0 -9
- package/lib/view/invoicing/invoicePdf/invoicePdfState.d.ts +0 -5
- package/lib/view/invoicing/invoicePdf/invoicePdfState.js +0 -2
- package/lib/view/invoicing/invoicingApiHelper.d.ts +0 -15
- package/lib/view/invoicing/invoicingApiHelper.js +0 -19
- package/lib/view/invoicing/invoicingCouponDetailView/fetchInvoicingCouponDetailEpic.d.ts +0 -8
- package/lib/view/invoicing/invoicingCouponDetailView/fetchInvoicingCouponDetailEpic.js +0 -26
- package/lib/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewPayload.d.ts +0 -3
- package/lib/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewPayload.js +0 -2
- package/lib/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewReducer.d.ts +0 -16
- package/lib/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewReducer.js +0 -43
- package/lib/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewSelector.d.ts +0 -12
- package/lib/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewSelector.js +0 -18
- package/lib/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewState.d.ts +0 -7
- package/lib/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewState.js +0 -2
- package/lib/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailEpic.d.ts +0 -8
- package/lib/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailEpic.js +0 -26
- package/lib/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.d.ts +0 -18
- package/lib/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +0 -45
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewPayload.d.ts +0 -3
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewPayload.js +0 -2
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.d.ts +0 -22
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.js +0 -56
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.d.ts +0 -25
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.js +0 -32
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewState.d.ts +0 -7
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewState.js +0 -2
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerCountsEpic.d.ts +0 -7
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerCountsEpic.js +0 -24
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListEpic.d.ts +0 -8
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListEpic.js +0 -44
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListPageEpic.d.ts +0 -16
- package/lib/view/invoicing/invoicingCustomerListView/epics/fetchInvoicingCustomerListPageEpic.js +0 -31
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewPayload.d.ts +0 -5
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewPayload.js +0 -2
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer.d.ts +0 -31
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer.js +0 -93
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.d.ts +0 -18
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js +0 -19
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.d.ts +0 -16
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.js +0 -2
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewChurnEpic.d.ts +0 -7
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewChurnEpic.js +0 -21
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewDashboardSummaryEpic.d.ts +0 -7
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewDashboardSummaryEpic.js +0 -21
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewEpic.d.ts +0 -14
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewEpic.js +0 -59
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewKPIsEpic.d.ts +0 -7
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewKPIsEpic.js +0 -21
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewMRREpic.d.ts +0 -7
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewMRREpic.js +0 -21
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewPlanRevenueEpic.d.ts +0 -7
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewPlanRevenueEpic.js +0 -21
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewRevenueEpic.d.ts +0 -7
- package/lib/view/invoicing/invoicingOverview/epics/fetchInvoicingOverviewRevenueEpic.js +0 -21
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewPayload.d.ts +0 -98
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewPayload.js +0 -96
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewReducer.d.ts +0 -10
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewReducer.js +0 -119
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewSelector.d.ts +0 -32
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewSelector.js +0 -67
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewState.d.ts +0 -110
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewState.js +0 -2
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewEpics.d.ts +0 -8
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewEpics.js +0 -23
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewPayload.d.ts +0 -3
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewPayload.js +0 -2
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.d.ts +0 -11
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.js +0 -35
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector.d.ts +0 -15
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector.js +0 -18
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewState.d.ts +0 -4
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewState.js +0 -2
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionCountsEpic.d.ts +0 -7
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionCountsEpic.js +0 -27
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListEpic.d.ts +0 -8
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListEpic.js +0 -53
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListPageEpic.d.ts +0 -16
- package/lib/view/invoicing/invoicingSubscriptionListView/epics/fetchInvoicingSubscriptionListPageEpic.js +0 -31
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewPayload.d.ts +0 -5
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewPayload.js +0 -2
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.d.ts +0 -31
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.js +0 -93
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.d.ts +0 -19
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +0 -20
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.d.ts +0 -19
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.js +0 -2
- package/lib/view/invoicing/paymentAction/paymentActionEpic.d.ts +0 -8
- package/lib/view/invoicing/paymentAction/paymentActionEpic.js +0 -31
- package/lib/view/invoicing/paymentAction/paymentActionPayload.d.ts +0 -3
- package/lib/view/invoicing/paymentAction/paymentActionPayload.js +0 -2
- package/lib/view/invoicing/paymentAction/paymentActionReducer.d.ts +0 -18
- package/lib/view/invoicing/paymentAction/paymentActionReducer.js +0 -40
- package/lib/view/invoicing/paymentAction/paymentActionSelector.d.ts +0 -3
- package/lib/view/invoicing/paymentAction/paymentActionSelector.js +0 -9
- package/lib/view/invoicing/paymentAction/paymentActionState.d.ts +0 -5
- package/lib/view/invoicing/paymentAction/paymentActionState.js +0 -2
- package/lib/view/invoicing/recordPayment/recordPaymentEpic.d.ts +0 -8
- package/lib/view/invoicing/recordPayment/recordPaymentEpic.js +0 -26
- package/lib/view/invoicing/recordPayment/recordPaymentPayload.d.ts +0 -23
- package/lib/view/invoicing/recordPayment/recordPaymentPayload.js +0 -2
- package/lib/view/invoicing/recordPayment/recordPaymentReducer.d.ts +0 -10
- package/lib/view/invoicing/recordPayment/recordPaymentReducer.js +0 -40
- package/lib/view/invoicing/recordPayment/recordPaymentSelector.d.ts +0 -4
- package/lib/view/invoicing/recordPayment/recordPaymentSelector.js +0 -10
- package/lib/view/invoicing/recordPayment/recordPaymentState.d.ts +0 -6
- package/lib/view/invoicing/recordPayment/recordPaymentState.js +0 -2
- package/lib/view/invoicing/settingsView/settingsViewEpics.d.ts +0 -10
- package/lib/view/invoicing/settingsView/settingsViewEpics.js +0 -73
- package/lib/view/invoicing/settingsView/settingsViewPayload.d.ts +0 -18
- package/lib/view/invoicing/settingsView/settingsViewPayload.js +0 -2
- package/lib/view/invoicing/settingsView/settingsViewReducer.d.ts +0 -12
- package/lib/view/invoicing/settingsView/settingsViewReducer.js +0 -79
- package/lib/view/invoicing/settingsView/settingsViewSelector.d.ts +0 -7
- package/lib/view/invoicing/settingsView/settingsViewSelector.js +0 -14
- package/lib/view/invoicing/settingsView/settingsViewState.d.ts +0 -7
- package/lib/view/invoicing/settingsView/settingsViewState.js +0 -2
- package/lib/view/invoicing/subscriptionAction/subscriptionActionEpic.d.ts +0 -8
- package/lib/view/invoicing/subscriptionAction/subscriptionActionEpic.js +0 -31
- package/lib/view/invoicing/subscriptionAction/subscriptionActionPayload.d.ts +0 -3
- package/lib/view/invoicing/subscriptionAction/subscriptionActionPayload.js +0 -2
- package/lib/view/invoicing/subscriptionAction/subscriptionActionReducer.d.ts +0 -18
- package/lib/view/invoicing/subscriptionAction/subscriptionActionReducer.js +0 -40
- package/lib/view/invoicing/subscriptionAction/subscriptionActionSelector.d.ts +0 -3
- package/lib/view/invoicing/subscriptionAction/subscriptionActionSelector.js +0 -9
- package/lib/view/invoicing/subscriptionAction/subscriptionActionState.d.ts +0 -5
- package/lib/view/invoicing/subscriptionAction/subscriptionActionState.js +0 -2
- package/lib/view/invoicing/transactionView/transactionViewEpics.d.ts +0 -10
- package/lib/view/invoicing/transactionView/transactionViewEpics.js +0 -76
- package/lib/view/invoicing/transactionView/transactionViewPayload.d.ts +0 -6
- package/lib/view/invoicing/transactionView/transactionViewPayload.js +0 -2
- package/lib/view/invoicing/transactionView/transactionViewReducer.d.ts +0 -27
- package/lib/view/invoicing/transactionView/transactionViewReducer.js +0 -94
- package/lib/view/invoicing/transactionView/transactionViewSelector.d.ts +0 -13
- package/lib/view/invoicing/transactionView/transactionViewSelector.js +0 -31
- package/lib/view/invoicing/transactionView/transactionViewState.d.ts +0 -20
- package/lib/view/invoicing/transactionView/transactionViewState.js +0 -2
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UpdateType } from '../../../commonStateTypes/common';
|
|
2
|
-
import { InvoicingPlan } from './planPayload';
|
|
3
|
-
import { InvoicingPlanState } from './planState';
|
|
4
|
-
export declare const initialState: InvoicingPlanState;
|
|
5
|
-
export declare const updateInvoicingPlans: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[items: InvoicingPlan[], updateType?: UpdateType | undefined], {
|
|
6
|
-
items: InvoicingPlan[];
|
|
7
|
-
updateType: UpdateType | undefined;
|
|
8
|
-
}, "invoicingPlan/updateInvoicingPlans", never, never>, removeInvoicingPlan: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "invoicingPlan/removeInvoicingPlan">, clearAllInvoicingPlans: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"invoicingPlan/clearAllInvoicingPlans">;
|
|
9
|
-
declare const _default: import("redux").Reducer<InvoicingPlanState>;
|
|
10
|
-
export default _default;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearAllInvoicingPlans = exports.removeInvoicingPlan = exports.updateInvoicingPlans = exports.initialState = void 0;
|
|
5
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
-
exports.initialState = { planByID: {} };
|
|
7
|
-
const plan = (0, toolkit_1.createSlice)({
|
|
8
|
-
name: 'invoicingPlan',
|
|
9
|
-
initialState: exports.initialState,
|
|
10
|
-
reducers: {
|
|
11
|
-
updateInvoicingPlans: {
|
|
12
|
-
reducer(draft, action) {
|
|
13
|
-
if (action.payload.updateType === 'replace') {
|
|
14
|
-
draft.planByID = {};
|
|
15
|
-
}
|
|
16
|
-
action.payload.items.forEach((item) => {
|
|
17
|
-
draft.planByID[item.id] = item;
|
|
18
|
-
});
|
|
19
|
-
},
|
|
20
|
-
prepare(items, updateType) {
|
|
21
|
-
return { payload: { items, updateType } };
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
removeInvoicingPlan(draft, action) {
|
|
25
|
-
delete draft.planByID[action.payload];
|
|
26
|
-
},
|
|
27
|
-
clearAllInvoicingPlans(draft) {
|
|
28
|
-
draft.planByID = {};
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
_a = plan.actions, exports.updateInvoicingPlans = _a.updateInvoicingPlans, exports.removeInvoicingPlan = _a.removeInvoicingPlan, exports.clearAllInvoicingPlans = _a.clearAllInvoicingPlans;
|
|
33
|
-
exports.default = plan.reducer;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export interface InvoicingPlanTier {
|
|
2
|
-
price: number;
|
|
3
|
-
starting_unit: number;
|
|
4
|
-
ending_unit?: number;
|
|
5
|
-
package_size?: number;
|
|
6
|
-
pricing_type?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface InvoicingAccountingDetail {
|
|
9
|
-
accounting_category_1?: string;
|
|
10
|
-
accounting_category_2?: string;
|
|
11
|
-
accounting_category_3?: string;
|
|
12
|
-
accounting_category_4?: string;
|
|
13
|
-
accounting_code?: string;
|
|
14
|
-
sku?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface InvoicingProduct {
|
|
17
|
-
id: string;
|
|
18
|
-
accounting_detail?: InvoicingAccountingDetail;
|
|
19
|
-
applicable_items?: string[];
|
|
20
|
-
archived_at?: string;
|
|
21
|
-
billing_cycles?: number;
|
|
22
|
-
created_at?: string;
|
|
23
|
-
currency_code?: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
enabled?: boolean;
|
|
26
|
-
enabled_for_checkout?: boolean;
|
|
27
|
-
enabled_in_portal?: boolean;
|
|
28
|
-
external_name?: string;
|
|
29
|
-
free_quantity?: number;
|
|
30
|
-
gift_claim_redirect_url?: string;
|
|
31
|
-
included_in_mrr?: boolean;
|
|
32
|
-
invoice_notes?: string;
|
|
33
|
-
is_giftable?: boolean;
|
|
34
|
-
is_shippable?: boolean;
|
|
35
|
-
is_taxable?: boolean;
|
|
36
|
-
item_applicability?: string;
|
|
37
|
-
item_id?: string;
|
|
38
|
-
item_type?: string;
|
|
39
|
-
metered?: boolean;
|
|
40
|
-
name?: string;
|
|
41
|
-
period?: number;
|
|
42
|
-
period_unit?: string;
|
|
43
|
-
price?: number;
|
|
44
|
-
pricing_model?: string;
|
|
45
|
-
proration_type?: string;
|
|
46
|
-
shipping_period?: number;
|
|
47
|
-
shipping_period_unit?: string;
|
|
48
|
-
show_description_in_invoices?: boolean;
|
|
49
|
-
show_description_in_quotes?: boolean;
|
|
50
|
-
status?: string;
|
|
51
|
-
tiers?: InvoicingPlanTier[];
|
|
52
|
-
trial_end_action?: string;
|
|
53
|
-
trial_period?: number;
|
|
54
|
-
trial_period_unit?: string;
|
|
55
|
-
type?: string;
|
|
56
|
-
unit?: string;
|
|
57
|
-
updated_at?: string;
|
|
58
|
-
usage_accumulation_reset_frequency?: string;
|
|
59
|
-
usage_calculation?: string;
|
|
60
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UpdateType } from '../../../commonStateTypes/common';
|
|
2
|
-
import { InvoicingProduct } from './productPayload';
|
|
3
|
-
import { InvoicingProductState } from './productState';
|
|
4
|
-
export declare const initialState: InvoicingProductState;
|
|
5
|
-
export declare const updateInvoicingProducts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[items: InvoicingProduct[], updateType?: UpdateType | undefined], {
|
|
6
|
-
items: InvoicingProduct[];
|
|
7
|
-
updateType: UpdateType | undefined;
|
|
8
|
-
}, "invoicingProduct/updateInvoicingProducts", never, never>, removeInvoicingProduct: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "invoicingProduct/removeInvoicingProduct">, clearAllInvoicingProducts: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"invoicingProduct/clearAllInvoicingProducts">;
|
|
9
|
-
declare const _default: import("redux").Reducer<InvoicingProductState>;
|
|
10
|
-
export default _default;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearAllInvoicingProducts = exports.removeInvoicingProduct = exports.updateInvoicingProducts = exports.initialState = void 0;
|
|
5
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
-
exports.initialState = { productByID: {} };
|
|
7
|
-
const product = (0, toolkit_1.createSlice)({
|
|
8
|
-
name: 'invoicingProduct',
|
|
9
|
-
initialState: exports.initialState,
|
|
10
|
-
reducers: {
|
|
11
|
-
updateInvoicingProducts: {
|
|
12
|
-
reducer(draft, action) {
|
|
13
|
-
if (action.payload.updateType === 'replace') {
|
|
14
|
-
draft.productByID = {};
|
|
15
|
-
}
|
|
16
|
-
action.payload.items.forEach((item) => {
|
|
17
|
-
draft.productByID[item.id] = item;
|
|
18
|
-
});
|
|
19
|
-
},
|
|
20
|
-
prepare(items, updateType) {
|
|
21
|
-
return { payload: { items, updateType } };
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
removeInvoicingProduct(draft, action) {
|
|
25
|
-
delete draft.productByID[action.payload];
|
|
26
|
-
},
|
|
27
|
-
clearAllInvoicingProducts(draft) {
|
|
28
|
-
draft.productByID = {};
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
_a = product.actions, exports.updateInvoicingProducts = _a.updateInvoicingProducts, exports.removeInvoicingProduct = _a.removeInvoicingProduct, exports.clearAllInvoicingProducts = _a.clearAllInvoicingProducts;
|
|
33
|
-
exports.default = product.reducer;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export type InvoicingTransactionType = 'payment' | 'refund' | 'authorization' | 'payment_reversal';
|
|
2
|
-
export type InvoicingTransactionStatus = 'in_progress' | 'success' | 'voided' | 'failure' | 'timeout' | 'needs_attention' | 'late_failure' | 'failed';
|
|
3
|
-
export interface InvoicingLinkedInvoiceRef {
|
|
4
|
-
applied_amount: number;
|
|
5
|
-
invoice_id: string;
|
|
6
|
-
invoice_status?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface InvoicingLinkedRefund {
|
|
9
|
-
txn_amount: number;
|
|
10
|
-
txn_id: string;
|
|
11
|
-
txn_status: string;
|
|
12
|
-
}
|
|
13
|
-
export interface InvoicingLinkedCreditNoteRef {
|
|
14
|
-
applied_amount: number;
|
|
15
|
-
cn_id: string;
|
|
16
|
-
}
|
|
17
|
-
export interface InvoicingTransaction {
|
|
18
|
-
amount: number;
|
|
19
|
-
id: string;
|
|
20
|
-
amount_capturable?: number;
|
|
21
|
-
amount_unused?: number;
|
|
22
|
-
currency_code?: string;
|
|
23
|
-
customer?: string;
|
|
24
|
-
customer_id?: string;
|
|
25
|
-
customer_name?: string;
|
|
26
|
-
date?: string;
|
|
27
|
-
error_code?: string;
|
|
28
|
-
error_text?: string;
|
|
29
|
-
fraud_flag?: string;
|
|
30
|
-
fraud_reason?: string;
|
|
31
|
-
gateway?: string;
|
|
32
|
-
gateway_account_id?: string;
|
|
33
|
-
id_at_gateway?: string;
|
|
34
|
-
invoice_id?: string;
|
|
35
|
-
linked_credit_notes?: InvoicingLinkedCreditNoteRef[];
|
|
36
|
-
linked_invoices?: InvoicingLinkedInvoiceRef[];
|
|
37
|
-
linked_refunds?: InvoicingLinkedRefund[];
|
|
38
|
-
masked_card_number?: string;
|
|
39
|
-
payment_method?: string;
|
|
40
|
-
payment_source_id?: string;
|
|
41
|
-
reference_number?: string;
|
|
42
|
-
refunded_txn_id?: string;
|
|
43
|
-
settled_at?: string;
|
|
44
|
-
status?: InvoicingTransactionStatus;
|
|
45
|
-
subscription_id?: string;
|
|
46
|
-
three_d_secure?: boolean;
|
|
47
|
-
type?: InvoicingTransactionType;
|
|
48
|
-
}
|
|
49
|
-
export interface InvoicingPaymentKPIs {
|
|
50
|
-
net_revenue: number;
|
|
51
|
-
total_collected: number;
|
|
52
|
-
total_failed: number;
|
|
53
|
-
total_refunds: number;
|
|
54
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UpdateType } from '../../../commonStateTypes/common';
|
|
2
|
-
import { InvoicingTransaction } from './transactionPayload';
|
|
3
|
-
import { InvoicingTransactionState } from './transactionState';
|
|
4
|
-
export declare const initialState: InvoicingTransactionState;
|
|
5
|
-
export declare const updateInvoicingTransactions: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[items: InvoicingTransaction[], updateType?: UpdateType | undefined], {
|
|
6
|
-
items: InvoicingTransaction[];
|
|
7
|
-
updateType: UpdateType | undefined;
|
|
8
|
-
}, "invoicingTransaction/updateInvoicingTransactions", never, never>, removeInvoicingTransaction: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "invoicingTransaction/removeInvoicingTransaction">, clearAllInvoicingTransactions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"invoicingTransaction/clearAllInvoicingTransactions">;
|
|
9
|
-
declare const _default: import("redux").Reducer<InvoicingTransactionState>;
|
|
10
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearAllInvoicingTransactions = exports.removeInvoicingTransaction = exports.updateInvoicingTransactions = exports.initialState = void 0;
|
|
5
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
-
exports.initialState = {
|
|
7
|
-
transactionByID: {},
|
|
8
|
-
};
|
|
9
|
-
const transaction = (0, toolkit_1.createSlice)({
|
|
10
|
-
name: 'invoicingTransaction',
|
|
11
|
-
initialState: exports.initialState,
|
|
12
|
-
reducers: {
|
|
13
|
-
updateInvoicingTransactions: {
|
|
14
|
-
reducer(draft, action) {
|
|
15
|
-
if (action.payload.updateType === 'replace') {
|
|
16
|
-
draft.transactionByID = {};
|
|
17
|
-
}
|
|
18
|
-
action.payload.items.forEach((item) => {
|
|
19
|
-
draft.transactionByID[item.id] = item;
|
|
20
|
-
});
|
|
21
|
-
},
|
|
22
|
-
prepare(items, updateType) {
|
|
23
|
-
return { payload: { items, updateType } };
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
removeInvoicingTransaction(draft, action) {
|
|
27
|
-
delete draft.transactionByID[action.payload];
|
|
28
|
-
},
|
|
29
|
-
clearAllInvoicingTransactions(draft) {
|
|
30
|
-
draft.transactionByID = {};
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
_a = transaction.actions, exports.updateInvoicingTransactions = _a.updateInvoicingTransactions, exports.removeInvoicingTransaction = _a.removeInvoicingTransaction, exports.clearAllInvoicingTransactions = _a.clearAllInvoicingTransactions;
|
|
35
|
-
exports.default = transaction.reducer;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Coupon form select options. Single source of truth (CES-owned) for the value
|
|
3
|
-
* sets that back the coupon's string-union domain fields; surfaced to the form
|
|
4
|
-
* via `getInvoicingCouponFormView` so web-components need not hardcode them.
|
|
5
|
-
*/
|
|
6
|
-
export const INVOICING_DISCOUNT_TYPE_OPTIONS = [
|
|
7
|
-
{ label: 'Percentage', value: 'percentage' },
|
|
8
|
-
{ label: 'Fixed amount', value: 'fixed_amount' },
|
|
9
|
-
{ label: 'Offer quantity', value: 'offer_quantity' },
|
|
10
|
-
];
|
|
11
|
-
export const INVOICING_COUPON_DURATION_TYPE_OPTIONS = [
|
|
12
|
-
{ label: 'One time', value: 'one_time' },
|
|
13
|
-
{ label: 'Forever', value: 'forever' },
|
|
14
|
-
{ label: 'Limited period', value: 'limited_period' },
|
|
15
|
-
];
|
|
16
|
-
export const INVOICING_COUPON_PERIOD_UNIT_OPTIONS = [
|
|
17
|
-
{ label: 'Day', value: 'day' },
|
|
18
|
-
{ label: 'Week', value: 'week' },
|
|
19
|
-
{ label: 'Month', value: 'month' },
|
|
20
|
-
{ label: 'Year', value: 'year' },
|
|
21
|
-
];
|
|
22
|
-
export const INVOICING_COUPON_APPLY_ON_OPTIONS = [
|
|
23
|
-
{ label: 'Invoice amount', value: 'invoice_amount' },
|
|
24
|
-
{ label: 'Each specified item', value: 'each_specified_item' },
|
|
25
|
-
{ label: 'Specified items total', value: 'specified_items_total' },
|
|
26
|
-
];
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { toAmount } from '../../../commonStateTypes/amount';
|
|
2
|
-
import { date } from '../../../zeniDayJS';
|
|
3
|
-
// ── Payload → State mappers (snake_case wire shape → camelCase domain shape) ──
|
|
4
|
-
const DEFAULT_CURRENCY_CODE = 'USD';
|
|
5
|
-
const DEFAULT_CURRENCY_SYMBOL = '$';
|
|
6
|
-
export const mapInvoicingCouponPayloadToState = (payload) => {
|
|
7
|
-
const currencyCode = payload.currency_code ?? DEFAULT_CURRENCY_CODE;
|
|
8
|
-
const currencySymbol = DEFAULT_CURRENCY_SYMBOL;
|
|
9
|
-
return {
|
|
10
|
-
id: payload.id,
|
|
11
|
-
applyOn: payload.apply_on,
|
|
12
|
-
couponCode: payload.coupon_code,
|
|
13
|
-
createdAt: payload.created_at != null ? date(payload.created_at) : undefined,
|
|
14
|
-
currencyCode: payload.currency_code,
|
|
15
|
-
discountAmount: payload.discount_amount != null
|
|
16
|
-
? toAmount(payload.discount_amount, currencyCode, currencySymbol)
|
|
17
|
-
: undefined,
|
|
18
|
-
discountPercentage: payload.discount_percentage,
|
|
19
|
-
discountQuantity: payload.discount_quantity,
|
|
20
|
-
discountType: payload.discount_type,
|
|
21
|
-
durationType: payload.duration_type,
|
|
22
|
-
invoiceName: payload.invoice_name,
|
|
23
|
-
invoiceNotes: payload.invoice_notes,
|
|
24
|
-
itemConstraints: payload.item_constraints,
|
|
25
|
-
maxRedemptions: payload.max_redemptions,
|
|
26
|
-
name: payload.name,
|
|
27
|
-
period: payload.period,
|
|
28
|
-
periodUnit: payload.period_unit,
|
|
29
|
-
redemptions: payload.redemptions,
|
|
30
|
-
restrictedProducts: payload.restricted_products,
|
|
31
|
-
revRecTreatment: payload.rev_rec_treatment,
|
|
32
|
-
status: payload.status,
|
|
33
|
-
updatedAt: payload.updated_at != null ? date(payload.updated_at) : undefined,
|
|
34
|
-
validFrom: payload.valid_from != null ? date(payload.valid_from) : undefined,
|
|
35
|
-
validTill: payload.valid_till != null ? date(payload.valid_till) : undefined,
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export const mapInvoicingDiscountKPIsPayloadToState = (payload) => ({
|
|
39
|
-
totalActive: payload.total_active,
|
|
40
|
-
totalDiscountedAmount: toAmount(payload.total_discounted_amount, DEFAULT_CURRENCY_CODE, DEFAULT_CURRENCY_SYMBOL),
|
|
41
|
-
totalExpired: payload.total_expired,
|
|
42
|
-
totalRedemptions: payload.total_redemptions,
|
|
43
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
-
import assignWith from 'lodash/assignWith';
|
|
3
|
-
import { mapInvoicingCouponPayloadToState, } from './couponPayload';
|
|
4
|
-
export const initialState = { couponByID: {} };
|
|
5
|
-
const coupon = createSlice({
|
|
6
|
-
name: 'invoicingCoupon',
|
|
7
|
-
initialState,
|
|
8
|
-
reducers: {
|
|
9
|
-
updateInvoicingCoupons: {
|
|
10
|
-
reducer(draft, action) {
|
|
11
|
-
doUpdateInvoicingCoupons(draft.couponByID, action.payload, action.meta.updateType);
|
|
12
|
-
},
|
|
13
|
-
prepare(payload, updateType = 'replace') {
|
|
14
|
-
return { payload, meta: { updateType } };
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
removeInvoicingCoupon(draft, action) {
|
|
18
|
-
delete draft.couponByID[action.payload];
|
|
19
|
-
},
|
|
20
|
-
clearAllInvoicingCoupons(draft) {
|
|
21
|
-
Object.assign(draft, initialState);
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
export const { updateInvoicingCoupons, removeInvoicingCoupon, clearAllInvoicingCoupons, } = coupon.actions;
|
|
26
|
-
export default coupon.reducer;
|
|
27
|
-
/**
|
|
28
|
-
* Helper functions.
|
|
29
|
-
*/
|
|
30
|
-
function doUpdateInvoicingCoupons(draft, payload, updateType) {
|
|
31
|
-
payload.forEach((couponPayload) => {
|
|
32
|
-
const latestCoupon = mapInvoicingCouponPayloadToState(couponPayload);
|
|
33
|
-
if (latestCoupon.id in draft && updateType === 'merge') {
|
|
34
|
-
assignWith(draft[latestCoupon.id], latestCoupon, (objValue, srcValue) => (srcValue == null ? objValue : srcValue));
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
draft[latestCoupon.id] = latestCoupon;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
-
export const initialState = {
|
|
3
|
-
creditNoteByID: {},
|
|
4
|
-
};
|
|
5
|
-
const creditNote = createSlice({
|
|
6
|
-
name: 'invoicingCreditNote',
|
|
7
|
-
initialState,
|
|
8
|
-
reducers: {
|
|
9
|
-
updateInvoicingCreditNotes: {
|
|
10
|
-
reducer(draft, action) {
|
|
11
|
-
if (action.payload.updateType === 'replace') {
|
|
12
|
-
draft.creditNoteByID = {};
|
|
13
|
-
}
|
|
14
|
-
action.payload.items.forEach((item) => {
|
|
15
|
-
draft.creditNoteByID[item.id] = item;
|
|
16
|
-
});
|
|
17
|
-
},
|
|
18
|
-
prepare(items, updateType) {
|
|
19
|
-
return { payload: { items, updateType } };
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
removeInvoicingCreditNote(draft, action) {
|
|
23
|
-
delete draft.creditNoteByID[action.payload];
|
|
24
|
-
},
|
|
25
|
-
clearAllInvoicingCreditNotes(draft) {
|
|
26
|
-
draft.creditNoteByID = {};
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
export const { updateInvoicingCreditNotes, removeInvoicingCreditNote, clearAllInvoicingCreditNotes, } = creditNote.actions;
|
|
31
|
-
export default creditNote.reducer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
-
export const initialState = {
|
|
3
|
-
dunningCaseByID: {},
|
|
4
|
-
};
|
|
5
|
-
const dunningCase = createSlice({
|
|
6
|
-
name: 'invoicingDunningCase',
|
|
7
|
-
initialState,
|
|
8
|
-
reducers: {
|
|
9
|
-
updateInvoicingDunningCases: {
|
|
10
|
-
reducer(draft, action) {
|
|
11
|
-
if (action.payload.updateType === 'replace') {
|
|
12
|
-
draft.dunningCaseByID = {};
|
|
13
|
-
}
|
|
14
|
-
action.payload.items.forEach((item) => {
|
|
15
|
-
draft.dunningCaseByID[item.id] = item;
|
|
16
|
-
});
|
|
17
|
-
},
|
|
18
|
-
prepare(items, updateType) {
|
|
19
|
-
return { payload: { items, updateType } };
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
removeInvoicingDunningCase(draft, action) {
|
|
23
|
-
delete draft.dunningCaseByID[action.payload];
|
|
24
|
-
},
|
|
25
|
-
clearAllInvoicingDunningCases(draft) {
|
|
26
|
-
draft.dunningCaseByID = {};
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
export const { updateInvoicingDunningCases, removeInvoicingDunningCase, clearAllInvoicingDunningCases, } = dunningCase.actions;
|
|
31
|
-
export default dunningCase.reducer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { toAmount } from '../../../commonStateTypes/amount';
|
|
2
|
-
import { date } from '../../../zeniDayJS';
|
|
3
|
-
// ── Payload → State mappers (snake_case wire shape → camelCase domain shape) ──
|
|
4
|
-
const DEFAULT_CURRENCY_CODE = 'USD';
|
|
5
|
-
const DEFAULT_CURRENCY_SYMBOL = '$';
|
|
6
|
-
const mapLineItem = (payload, currencyCode, currencySymbol) => ({
|
|
7
|
-
amount: toAmount(payload.amount, currencyCode, currencySymbol),
|
|
8
|
-
description: payload.description,
|
|
9
|
-
quantity: payload.quantity,
|
|
10
|
-
unitAmount: toAmount(payload.unit_amount, currencyCode, currencySymbol),
|
|
11
|
-
dateFrom: payload.date_from != null ? date(payload.date_from) : undefined,
|
|
12
|
-
dateTo: payload.date_to != null ? date(payload.date_to) : undefined,
|
|
13
|
-
discountAmount: payload.discount_amount != null
|
|
14
|
-
? toAmount(payload.discount_amount, currencyCode, currencySymbol)
|
|
15
|
-
: undefined,
|
|
16
|
-
entityDescription: payload.entity_description,
|
|
17
|
-
entityType: payload.entity_type,
|
|
18
|
-
id: payload.id,
|
|
19
|
-
isTaxed: payload.is_taxed,
|
|
20
|
-
itemLevelDiscountAmount: payload.item_level_discount_amount != null
|
|
21
|
-
? toAmount(payload.item_level_discount_amount, currencyCode, currencySymbol)
|
|
22
|
-
: undefined,
|
|
23
|
-
subscriptionID: payload.subscription_id,
|
|
24
|
-
taxAmount: payload.tax_amount != null
|
|
25
|
-
? toAmount(payload.tax_amount, currencyCode, currencySymbol)
|
|
26
|
-
: undefined,
|
|
27
|
-
taxExemptReason: payload.tax_exempt_reason,
|
|
28
|
-
taxRate: payload.tax_rate,
|
|
29
|
-
usagePercentage: payload.usage_percentage,
|
|
30
|
-
});
|
|
31
|
-
const mapLinkedPayment = (payload, currencyCode, currencySymbol) => ({
|
|
32
|
-
appliedAmount: toAmount(payload.applied_amount, currencyCode, currencySymbol),
|
|
33
|
-
txnID: payload.txn_id,
|
|
34
|
-
appliedAt: payload.applied_at != null ? date(payload.applied_at) : undefined,
|
|
35
|
-
txnAmount: payload.txn_amount != null
|
|
36
|
-
? toAmount(payload.txn_amount, currencyCode, currencySymbol)
|
|
37
|
-
: undefined,
|
|
38
|
-
txnDate: payload.txn_date != null ? date(payload.txn_date) : undefined,
|
|
39
|
-
txnStatus: payload.txn_status,
|
|
40
|
-
});
|
|
41
|
-
const mapIssuedCreditNote = (payload, currencyCode, currencySymbol) => ({
|
|
42
|
-
cnID: payload.cn_id,
|
|
43
|
-
cnStatus: payload.cn_status,
|
|
44
|
-
cnTotal: toAmount(payload.cn_total, currencyCode, currencySymbol),
|
|
45
|
-
});
|
|
46
|
-
const mapDunningAttempt = (payload) => ({
|
|
47
|
-
attempt: payload.attempt,
|
|
48
|
-
createdAt: payload.created_at != null ? date(payload.created_at) : undefined,
|
|
49
|
-
dunningType: payload.dunning_type,
|
|
50
|
-
transactionID: payload.transaction_id,
|
|
51
|
-
});
|
|
52
|
-
const mapInvoiceNote = (payload) => ({
|
|
53
|
-
note: payload.note,
|
|
54
|
-
entityID: payload.entity_id,
|
|
55
|
-
entityType: payload.entity_type,
|
|
56
|
-
});
|
|
57
|
-
export const mapInvoicingInvoicePayloadToState = (payload) => {
|
|
58
|
-
const currencyCode = payload.currency_code ?? DEFAULT_CURRENCY_CODE;
|
|
59
|
-
const currencySymbol = DEFAULT_CURRENCY_SYMBOL;
|
|
60
|
-
const toAmt = (value) => toAmount(value, currencyCode, currencySymbol);
|
|
61
|
-
return {
|
|
62
|
-
customerID: payload.customer_id,
|
|
63
|
-
date: date(payload.date),
|
|
64
|
-
id: payload.id,
|
|
65
|
-
status: payload.status,
|
|
66
|
-
total: toAmt(payload.total),
|
|
67
|
-
adjustmentCreditNotes: payload.adjustment_credit_notes,
|
|
68
|
-
amountAdjusted: payload.amount_adjusted != null ? toAmt(payload.amount_adjusted) : undefined,
|
|
69
|
-
amountDue: payload.amount_due != null ? toAmt(payload.amount_due) : undefined,
|
|
70
|
-
amountPaid: payload.amount_paid != null ? toAmt(payload.amount_paid) : undefined,
|
|
71
|
-
amountToCollect: payload.amount_to_collect != null
|
|
72
|
-
? toAmt(payload.amount_to_collect)
|
|
73
|
-
: undefined,
|
|
74
|
-
billingAddress: payload.billing_address,
|
|
75
|
-
createdAt: payload.created_at != null ? date(payload.created_at) : undefined,
|
|
76
|
-
creditsApplied: payload.credits_applied != null ? toAmt(payload.credits_applied) : undefined,
|
|
77
|
-
currencyCode: payload.currency_code,
|
|
78
|
-
customerEmail: payload.customer_email,
|
|
79
|
-
customerName: payload.customer_name,
|
|
80
|
-
dueDate: payload.due_date != null ? date(payload.due_date) : undefined,
|
|
81
|
-
dunningAttempts: payload.dunning_attempts?.map(mapDunningAttempt),
|
|
82
|
-
dunningStatus: payload.dunning_status,
|
|
83
|
-
firstInvoice: payload.first_invoice,
|
|
84
|
-
generatedAt: payload.generated_at != null ? date(payload.generated_at) : undefined,
|
|
85
|
-
hasAdvanceCharges: payload.has_advance_charges,
|
|
86
|
-
issuedCreditNotes: payload.issued_credit_notes?.map((note) => mapIssuedCreditNote(note, currencyCode, currencySymbol)),
|
|
87
|
-
lineItems: payload.line_items?.map((item) => mapLineItem(item, currencyCode, currencySymbol)),
|
|
88
|
-
linkedPayments: payload.linked_payments?.map((payment) => mapLinkedPayment(payment, currencyCode, currencySymbol)),
|
|
89
|
-
netTermDays: payload.net_term_days,
|
|
90
|
-
nextRetryAt: payload.next_retry_at != null ? date(payload.next_retry_at) : undefined,
|
|
91
|
-
notes: payload.notes?.map(mapInvoiceNote),
|
|
92
|
-
paidAt: payload.paid_at != null ? date(payload.paid_at) : undefined,
|
|
93
|
-
poNumber: payload.po_number,
|
|
94
|
-
priceType: payload.price_type,
|
|
95
|
-
recurring: payload.recurring,
|
|
96
|
-
roundOffAmount: payload.round_off_amount != null
|
|
97
|
-
? toAmt(payload.round_off_amount)
|
|
98
|
-
: undefined,
|
|
99
|
-
shippingAddress: payload.shipping_address,
|
|
100
|
-
subscriptionID: payload.subscription_id,
|
|
101
|
-
subscriptionName: payload.subscription_name,
|
|
102
|
-
subTotal: payload.sub_total != null ? toAmt(payload.sub_total) : undefined,
|
|
103
|
-
tax: payload.tax != null ? toAmt(payload.tax) : undefined,
|
|
104
|
-
updatedAt: payload.updated_at != null ? date(payload.updated_at) : undefined,
|
|
105
|
-
writeOffAmount: payload.write_off_amount != null
|
|
106
|
-
? toAmt(payload.write_off_amount)
|
|
107
|
-
: undefined,
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
export const mapInvoicingInvoiceKPIsPayloadToState = (payload) => ({
|
|
111
|
-
dueTotal: toAmount(payload.due_total, DEFAULT_CURRENCY_CODE, DEFAULT_CURRENCY_SYMBOL),
|
|
112
|
-
paidTotal: toAmount(payload.paid_total, DEFAULT_CURRENCY_CODE, DEFAULT_CURRENCY_SYMBOL),
|
|
113
|
-
pendingTotal: toAmount(payload.pending_total, DEFAULT_CURRENCY_CODE, DEFAULT_CURRENCY_SYMBOL),
|
|
114
|
-
totalInvoiced: toAmount(payload.total_invoiced, DEFAULT_CURRENCY_CODE, DEFAULT_CURRENCY_SYMBOL),
|
|
115
|
-
});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
-
import assignWith from 'lodash/assignWith';
|
|
3
|
-
import { mapInvoicingInvoicePayloadToState, } from './invoicePayload';
|
|
4
|
-
export const initialState = {
|
|
5
|
-
invoiceByID: {},
|
|
6
|
-
};
|
|
7
|
-
const invoice = createSlice({
|
|
8
|
-
name: 'invoicingInvoice',
|
|
9
|
-
initialState,
|
|
10
|
-
reducers: {
|
|
11
|
-
updateInvoices: {
|
|
12
|
-
reducer(draft, action) {
|
|
13
|
-
doUpdateInvoices(draft.invoiceByID, action.payload, action.meta.updateType);
|
|
14
|
-
},
|
|
15
|
-
prepare(payload, updateType = 'replace') {
|
|
16
|
-
return { payload, meta: { updateType } };
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
removeInvoice(draft, action) {
|
|
20
|
-
delete draft.invoiceByID[action.payload];
|
|
21
|
-
},
|
|
22
|
-
clearAllInvoices(draft) {
|
|
23
|
-
Object.assign(draft, initialState);
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
export const { updateInvoices, removeInvoice, clearAllInvoices } = invoice.actions;
|
|
28
|
-
export default invoice.reducer;
|
|
29
|
-
/**
|
|
30
|
-
* Helper functions.
|
|
31
|
-
*/
|
|
32
|
-
function doUpdateInvoices(draft, payload, updateType) {
|
|
33
|
-
payload.forEach((invoicePayload) => {
|
|
34
|
-
const latestInvoice = mapInvoicingInvoicePayloadToState(invoicePayload);
|
|
35
|
-
if (latestInvoice.id in draft && updateType === 'merge') {
|
|
36
|
-
assignWith(draft[latestInvoice.id], latestInvoice, (objValue, srcValue) => (srcValue == null ? objValue : srcValue));
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
draft[latestInvoice.id] = latestInvoice;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|