@zeniai/client-epic-state 5.1.97 → 5.1.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/entity/invoicing/invoicingCommonPayload.d.ts +12 -0
- package/lib/entity/invoicing/invoicingCommonPayload.js +18 -0
- package/lib/entity/invoicing/invoicingTransaction/invoicingTransactionPayload.d.ts +1 -1
- package/lib/epic.d.ts +1 -5
- package/lib/epic.js +1 -5
- package/lib/esm/entity/invoicing/invoicingCommonPayload.js +16 -0
- package/lib/esm/epic.js +1 -5
- package/lib/esm/index.js +16 -18
- package/lib/esm/reducer.js +0 -3
- package/lib/esm/view/dashboard/dashboardEpic.js +0 -20
- package/lib/esm/view/dashboard/dashboardReducer.js +1 -13
- package/lib/esm/view/dashboard/dashboardSelector.js +2 -7
- package/lib/esm/view/invoicing/auditView/auditViewSelector.js +4 -0
- package/lib/esm/view/invoicing/couponView/couponViewSelector.js +18 -8
- package/lib/esm/view/invoicing/couponView/couponViewState.js +0 -9
- package/lib/esm/view/invoicing/createCreditNote/createCreditNoteFormConfig.js +1 -0
- package/lib/esm/view/invoicing/createCreditNote/createCreditNotePayload.js +4 -1
- package/lib/esm/view/invoicing/createCreditNote/createCreditNoteSelector.js +4 -2
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +7 -6
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig.js +3 -19
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js +10 -5
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +6 -4
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/invoicingCustomerFormConfig.js +0 -17
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +5 -0
- package/lib/esm/view/invoicing/invoiceList/fetchInvoiceListPageEpic.js +2 -1
- package/lib/esm/view/invoicing/invoiceList/invoiceListReducer.js +18 -17
- package/lib/esm/view/invoicing/invoiceList/invoiceListSelector.js +12 -4
- package/lib/esm/view/invoicing/invoiceList/invoiceListState.js +13 -9
- package/lib/esm/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.js +5 -1
- package/lib/esm/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +2 -1
- package/lib/esm/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.js +26 -0
- package/lib/esm/view/invoicing/invoicingConfigView/invoicingConfigViewSelector.js +9 -0
- package/lib/esm/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewSelector.js +9 -3
- package/lib/esm/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewState.js +0 -9
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +2 -2
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.js +1 -1
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js +9 -3
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.js +0 -9
- package/lib/esm/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewSelector.js +8 -3
- package/lib/esm/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.js +1 -9
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +11 -3
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.js +0 -9
- package/lib/esm/view/invoicing/invoicingTabHelper.js +27 -0
- package/lib/esm/view/invoicing/invoicingTransactionListView/epics/fetchInvoicingTransactionListPageEpic.js +2 -1
- package/lib/esm/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer.js +5 -5
- package/lib/esm/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector.js +12 -4
- package/lib/esm/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState.js +11 -9
- package/lib/esm/view/invoicing/issueCreditNote/issueCreditNoteFormConfig.js +1 -8
- package/lib/esm/view/invoicing/issueCreditNote/issueCreditNotePayload.js +5 -1
- package/lib/esm/view/invoicing/issueCreditNote/issueCreditNoteSelector.js +5 -2
- package/lib/esm/view/invoicing/recordPayment/recordPaymentFormConfig.js +0 -26
- package/lib/esm/view/invoicing/recordPayment/recordPaymentSelector.js +26 -6
- package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +8 -1
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +1 -67
- package/lib/index.d.ts +17 -20
- package/lib/index.js +41 -65
- package/lib/reducer.d.ts +0 -3
- package/lib/reducer.js +0 -3
- package/lib/view/dashboard/dashboardEpic.d.ts +1 -3
- package/lib/view/dashboard/dashboardEpic.js +0 -20
- package/lib/view/dashboard/dashboardReducer.d.ts +1 -1
- package/lib/view/dashboard/dashboardReducer.js +2 -14
- package/lib/view/dashboard/dashboardSelector.d.ts +0 -1
- package/lib/view/dashboard/dashboardSelector.js +2 -7
- package/lib/view/dashboard/dashboardState.d.ts +0 -1
- package/lib/view/invoicing/auditView/auditViewSelector.d.ts +4 -0
- package/lib/view/invoicing/auditView/auditViewSelector.js +4 -0
- package/lib/view/invoicing/couponView/couponViewSelector.d.ts +5 -1
- package/lib/view/invoicing/couponView/couponViewSelector.js +17 -7
- package/lib/view/invoicing/couponView/couponViewState.d.ts +0 -7
- package/lib/view/invoicing/couponView/couponViewState.js +1 -10
- package/lib/view/invoicing/createCreditNote/createCreditNoteFormConfig.js +1 -0
- package/lib/view/invoicing/createCreditNote/createCreditNotePayload.js +4 -1
- package/lib/view/invoicing/createCreditNote/createCreditNoteSelector.d.ts +3 -1
- package/lib/view/invoicing/createCreditNote/createCreditNoteSelector.js +4 -2
- package/lib/view/invoicing/createCreditNote/createCreditNoteState.d.ts +6 -0
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.d.ts +5 -5
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +6 -5
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig.d.ts +3 -6
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig.js +4 -20
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.d.ts +9 -7
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js +10 -5
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.d.ts +4 -3
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +5 -3
- package/lib/view/invoicing/editInvoicingCustomerDetailView/invoicingCustomerFormConfig.d.ts +0 -8
- package/lib/view/invoicing/editInvoicingCustomerDetailView/invoicingCustomerFormConfig.js +1 -18
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.d.ts +5 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +5 -0
- package/lib/view/invoicing/invoiceList/fetchInvoiceListPageEpic.js +2 -1
- package/lib/view/invoicing/invoiceList/invoiceListReducer.js +17 -16
- package/lib/view/invoicing/invoiceList/invoiceListSelector.d.ts +3 -1
- package/lib/view/invoicing/invoiceList/invoiceListSelector.js +11 -3
- package/lib/view/invoicing/invoiceList/invoiceListState.d.ts +13 -9
- package/lib/view/invoicing/invoiceList/invoiceListState.js +15 -10
- package/lib/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.d.ts +9 -1
- package/lib/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.js +5 -1
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.d.ts +3 -1
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +2 -1
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewPayload.d.ts +13 -0
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.js +26 -0
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewSelector.d.ts +19 -1
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewSelector.js +11 -1
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewState.d.ts +13 -0
- package/lib/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewSelector.d.ts +8 -1
- package/lib/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewSelector.js +8 -2
- package/lib/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewState.d.ts +0 -7
- package/lib/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewState.js +1 -10
- package/lib/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +2 -2
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.js +1 -1
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.d.ts +3 -1
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js +8 -2
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.d.ts +0 -7
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.js +1 -10
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewSelector.d.ts +3 -1
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewSelector.js +7 -2
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.d.ts +2 -9
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.js +2 -10
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.d.ts +7 -1
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +10 -2
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.d.ts +0 -7
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.js +1 -10
- package/lib/view/invoicing/invoicingTabHelper.d.ts +27 -0
- package/lib/view/invoicing/invoicingTabHelper.js +30 -0
- package/lib/view/invoicing/invoicingTransactionListView/epics/fetchInvoicingTransactionListPageEpic.js +2 -1
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer.js +4 -4
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector.d.ts +8 -0
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector.js +11 -3
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState.d.ts +10 -10
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState.js +13 -10
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteFormConfig.d.ts +0 -2
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteFormConfig.js +2 -9
- package/lib/view/invoicing/issueCreditNote/issueCreditNotePayload.d.ts +2 -2
- package/lib/view/invoicing/issueCreditNote/issueCreditNotePayload.js +5 -1
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteSelector.d.ts +3 -1
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteSelector.js +4 -1
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteState.d.ts +6 -0
- package/lib/view/invoicing/recordPayment/recordPaymentFormConfig.d.ts +0 -6
- package/lib/view/invoicing/recordPayment/recordPaymentFormConfig.js +1 -27
- package/lib/view/invoicing/recordPayment/recordPaymentSelector.d.ts +3 -2
- package/lib/view/invoicing/recordPayment/recordPaymentSelector.js +26 -6
- package/lib/view/invoicing/settingsView/settingsViewSelector.d.ts +12 -1
- package/lib/view/invoicing/settingsView/settingsViewSelector.js +8 -1
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.d.ts +1 -1
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +2 -68
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.d.ts +0 -3
- package/package.json +1 -1
- package/lib/entity/invoicing/coupon/couponConstants.d.ts +0 -11
- package/lib/entity/invoicing/coupon/couponConstants.js +0 -29
- package/lib/esm/entity/invoicing/coupon/couponConstants.js +0 -26
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.js +0 -18
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.js +0 -18
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.js +0 -18
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.js +0 -16
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardPayload.js +0 -1
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +0 -60
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.js +0 -12
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardState.js +0 -1
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.d.ts +0 -8
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.js +0 -22
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.d.ts +0 -8
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.js +0 -22
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.d.ts +0 -8
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.js +0 -22
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.d.ts +0 -13
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.js +0 -20
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardPayload.d.ts +0 -11
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardPayload.js +0 -2
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.d.ts +0 -7
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +0 -64
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.d.ts +0 -12
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.js +0 -15
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardState.d.ts +0 -9
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardState.js +0 -2
package/lib/esm/index.js
CHANGED
|
@@ -169,7 +169,7 @@ import { ALL_COCKPIT_TABS_FILE_TYPES, ALL_COCKPIT_TABS_IDS, toCockpitTabsFileTyp
|
|
|
169
169
|
import { toHealthSortKeyType, toManagementSortKeyType, toOnboardingSortKeyType, toPortfolioSortKeyType, toTaskManagerSortKeyType, } from './view/companyView/types/cockpitTypes';
|
|
170
170
|
import { toCompanyPassportLocalData, } from './view/companyView/types/companyPassport/companyPassportLocalData';
|
|
171
171
|
import { clearTransferEntryRouteReplacement, createTransferEntry, createTransferEntryFailure, createTransferEntryReplacedTransaction, createTransferEntrySuccess, fetchAccountsForTransferFlow, resetCreateTransferEntryStatus, } from './view/createTransferEntry/createTransferEntryReducer';
|
|
172
|
-
import { fetchDashboard
|
|
172
|
+
import { fetchDashboard } from './view/dashboard/dashboardReducer';
|
|
173
173
|
import { getDashboard, } from './view/dashboard/dashboardSelector';
|
|
174
174
|
import { updateDashboardLayout } from './view/dashboardLayout/dashboardLayoutReducer';
|
|
175
175
|
import uploadAccountStatementIntoDocumentAI from './view/expenseAutomationView/epics/accountRecon/uploadAccountStatementDocumentAIHelper';
|
|
@@ -365,7 +365,7 @@ import { getRemiBusinessVerificationDetails, getRemiSetupViewDetails, } from './
|
|
|
365
365
|
import { approveOrRejectRemisBulkAction, autoReviewPendingApprovalRemis, cancelOrDeleteRemisBulkAction, clearAllRemisFromBulkActionList, clearRemiBulkActionView, incrementRemiBulkActionProcessedCount, removeRemiFromBulkActionList, reviewDraftRemisBulkAction, submitDraftRemisBulkAction, updateRemisBulkActionList, } from './view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer';
|
|
366
366
|
import { getRemisBulkOperationProgress, getRemisBulkReviewView, } from './view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewSelector';
|
|
367
367
|
import { hideCreatedByFilter, } from './view/spendManagement/spendManagementFilterHelpers';
|
|
368
|
-
import { acceptTreasuryTerms, clearTreasurySetupView, fetchPortfolioAllocation, fetchTreasuryFunds, fetchTreasurySetupView, updateFundAllocationLocalData, updatePortfolioAllocation,
|
|
368
|
+
import { acceptTreasuryTerms, clearTreasurySetupView, fetchPortfolioAllocation, fetchTreasuryFunds, fetchTreasurySetupView, updateFundAllocationLocalData, updatePortfolioAllocation, } from './view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer';
|
|
369
369
|
import { getTreasuryBusinessVerificationDetails, getTreasurySetupViewDetails, } from './view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector';
|
|
370
370
|
import { getTreasuryFundsMaximumYield, } from './view/spendManagement/treasury/treasurySetUp/treasurySetupViewState';
|
|
371
371
|
import { clearCheckDeposit, depositCheck, updateLocalStore as updateCheckDepositLocalData, updateDepositToLocalData, } from './view/spendManagement/zeniAccounts/checkDeposit/checkDepositReducer';
|
|
@@ -449,8 +449,6 @@ import { fetchVendorTabView, updateVendorTabViewTab, } from './view/vendorTabVie
|
|
|
449
449
|
import { getVendorTabView, } from './view/vendorTabView/vendorTabViewSelector';
|
|
450
450
|
import { fetchZeniAccStatementPage } from './view/zeniAccStatementList/zeniAccStatementListReducer';
|
|
451
451
|
import { getZeniAccStatements, } from './view/zeniAccStatementList/zeniAccStatementListSelector';
|
|
452
|
-
import { fetchZeniAccountsPromoCard } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
|
|
453
|
-
import { getZeniAccountsPromoCard, } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector';
|
|
454
452
|
import { parseOAuthParams, } from './view/zeniOAuthView/zeniOAuthParamsParser';
|
|
455
453
|
import { approveOAuthConsent, approveOAuthConsentFailure, approveOAuthConsentSuccess, clearZeniOAuthView, } from './view/zeniOAuthView/zeniOAuthReducer';
|
|
456
454
|
import { getZeniOAuthApproveError, getZeniOAuthApproveFetchState, getZeniOAuthApproveRedirectUrl, } from './view/zeniOAuthView/zeniOAuthSelector';
|
|
@@ -509,7 +507,7 @@ export { clearRevenueProjectView, fetchRevenueForTimeframeProjectView, fetchReve
|
|
|
509
507
|
export { fetchCashPosition, updateCashPositionCOABalancesRange, updateCashPositionDownloadState, updateCashPositionUIState, getCashPosition, getCashPositionUIState, getCashPositionForSelectedRange, getCashPositionForHighlightedRange, };
|
|
510
508
|
export { fetchCashInCashOut, getCashInCashOut, getCashInCashOutUIState, getCashInCashOutForSelectedRange, getCashInCashOutForHighlightedRange, updateCashInCashOutCOABalancesRange, updateCashInCashOutDownloadState, updateCashInCashOutUIState, };
|
|
511
509
|
export { fetchTopEx, updateTopExTimeFrame, updateTopExDownloadState, getTopExpenses, getTop6Expenses, getAllTopExpenses, };
|
|
512
|
-
export { fetchDashboard, getDashboard
|
|
510
|
+
export { fetchDashboard, getDashboard };
|
|
513
511
|
export { updateDashboardLayout };
|
|
514
512
|
export { getPandLWithForecast, } from './view/profitAndLoss/pAndLWithForecast/pAndLWithForecastSelector';
|
|
515
513
|
export { fetchProfitAndLoss, resetProfitAndLossNodeCollapseState, updateProfitAndLossUIState, getProfitAndLossReport, getPandLReportFetchState, fetchProfitAndLossForTimeframe, };
|
|
@@ -659,7 +657,6 @@ export { getAllTags, fetchTagList, createTag, deleteTag, };
|
|
|
659
657
|
export { getAllCardsAndBankPaymentMethods, createCardSetupIntent, confirmCardSetupIntent, addCardPaymentSource, fetchPaymentSources, resetCardPaymentErrorStatuses, clearCardPaymentView, };
|
|
660
658
|
export { getAuditReportGroupViewSelectorView, getAuditRuleGroupViewSelectorView, getUserFromAllUsers, fetchAuditRuleGroupView, fetchAuditReportGroupView, saveReasonForAuditRule, clearAuditReportGroupViewByCompanyId, };
|
|
661
659
|
export { fetchCollaborationAuthToken, getAuthenticationView, };
|
|
662
|
-
export { getZeniAccountsPromoCard, fetchZeniAccountsPromoCard, };
|
|
663
660
|
export { approveOAuthConsent, approveOAuthConsentFailure, approveOAuthConsentSuccess, clearZeniOAuthView, getZeniOAuthApproveError, getZeniOAuthApproveFetchState, getZeniOAuthApproveRedirectUrl, parseOAuthParams, };
|
|
664
661
|
export { toNotificationModeStrict, updateCommentsNotifications, updateCommentsNotificationsStatuses, };
|
|
665
662
|
export { toNotificationSubTabTypeStrict, toNotificationTabTypeStrict, fetchNotificationView, fetchNotificationUnreadCount, fetchNotificationUnreadCountSuccess, updateNotificationViewAllNotificationsStatus, updateNotificationViewNotificationStatus, updateNotificationViewTabState, updateNotificationViewCurrentTabAndSubTab, updateNotificationViewSubTab, updateNotificationViewUIState, getNotificationView, getExternalNotificationsForSelectedSubTab, getNotificationsForSelectedSubTab, };
|
|
@@ -671,7 +668,7 @@ export { ALL_WEEK_DAYS, SEMI_WEEKLY_REQUIRED_DAYS_COUNT, getMinAllowedEndDate, g
|
|
|
671
668
|
export { fetchCockpitContext, fetchCompanyTaskManagerView, fetchTaskManagerMetrics, getCompanyTaskManagerView, createTaskFromTaskGroupTemplate, };
|
|
672
669
|
export { fetchInternationalVerificationForm, submitInternationalVerificationForm, updateVerificationFormLocalData, getIntlWireVerificationView, };
|
|
673
670
|
export { fetchExpressPayInitialDetails, updateExpressPayFormLocalData, submitExpressPay, resetExpressPayLocalData, getExpressPayView, };
|
|
674
|
-
export { acceptTreasuryTerms, fetchTreasurySetupView, clearTreasurySetupView, fetchTreasuryFunds, updatePortfolioAllocation, fetchPortfolioAllocation, updateFundAllocationLocalData,
|
|
671
|
+
export { acceptTreasuryTerms, fetchTreasurySetupView, clearTreasurySetupView, fetchTreasuryFunds, updatePortfolioAllocation, fetchPortfolioAllocation, updateFundAllocationLocalData, getTreasurySetupViewDetails, getTreasuryFundsMaximumYield, };
|
|
675
672
|
// ── AI Accountant Entity ──
|
|
676
673
|
export { getAllowedOperationsForStatus, toAiAccountantEnrollmentStatus, toAiAccountantJobStatus, toAiAccountantOperationType, } from './entity/aiAccountantCustomer/aiAccountantCustomerState';
|
|
677
674
|
export { toAiAccountantCustomer, toAiAccountantEnrollment, toAiAccountantJob, } from './entity/aiAccountantCustomer/aiAccountantCustomerPayload';
|
|
@@ -732,7 +729,7 @@ export { mapAuditLogEntry } from './view/invoicing/auditView/auditViewPayload';
|
|
|
732
729
|
export { clearAllInvoices, removeInvoice, updateInvoices, } from './entity/invoicing/invoice/invoiceReducer';
|
|
733
730
|
export { getInvoiceById, getInvoicesByIds, } from './entity/invoicing/invoice/invoiceSelector';
|
|
734
731
|
export { clearInvoiceList, fetchInvoiceCounts, fetchInvoiceKPIs, fetchInvoiceList, fetchInvoiceListPage, setInvoiceActiveTab, updateInvoiceListFilters, } from './view/invoicing/invoiceList/invoiceListReducer';
|
|
735
|
-
export { ALL_INVOICING_INVOICE_TAB_IDS,
|
|
732
|
+
export { ALL_INVOICING_INVOICE_TAB_IDS, } from './view/invoicing/invoiceList/invoiceListState';
|
|
736
733
|
export { getInvoiceListView } from './view/invoicing/invoiceList/invoiceListSelector';
|
|
737
734
|
export { clearAllInvoiceDetail, fetchInvoiceDetail, } from './view/invoicing/invoiceDetail/invoiceDetailReducer';
|
|
738
735
|
export { getInvoiceDetail } from './view/invoicing/invoiceDetail/invoiceDetailSelector';
|
|
@@ -741,14 +738,14 @@ export { blankInvoicingCreateInvoiceLineItem, createInvoiceFormLocalDataToReques
|
|
|
741
738
|
export { resetRecordPayment, initializeRecordPaymentDraft, submitRecordPayment, updateRecordPaymentFormDraft, } from './view/invoicing/recordPayment/recordPaymentReducer';
|
|
742
739
|
export { initializeIssueCreditNoteDraft, issueCreditNoteFailure, issueCreditNoteSuccess, resetIssueCreditNote, submitIssueCreditNote, updateIssueCreditNoteFormDraft, } from './view/invoicing/issueCreditNote/issueCreditNoteReducer';
|
|
743
740
|
export { computeIssueCreditNoteTotal, initializeIssueCreditNoteDraftFromInvoice, localDataToIssueCreditNotePayload, } from './view/invoicing/issueCreditNote/issueCreditNotePayload';
|
|
744
|
-
export {
|
|
741
|
+
export { initialIssueCreditNoteFormLocalData, } from './view/invoicing/issueCreditNote/issueCreditNoteFormConfig';
|
|
745
742
|
export { getIssueCreditNoteView } from './view/invoicing/issueCreditNote/issueCreditNoteSelector';
|
|
746
743
|
export { createCreditNoteFailure, createCreditNoteSuccess, resetCreateCreditNote, submitCreateCreditNote, updateCreateCreditNoteFormDraft, } from './view/invoicing/createCreditNote/createCreditNoteReducer';
|
|
747
744
|
export { localDataToCreateCreditNotePayload } from './view/invoicing/createCreditNote/createCreditNotePayload';
|
|
748
745
|
export { initialCreateCreditNoteFormLocalData } from './view/invoicing/createCreditNote/createCreditNoteFormConfig';
|
|
749
746
|
export { getCreateCreditNoteFormView, getCreateCreditNoteView, } from './view/invoicing/createCreditNote/createCreditNoteSelector';
|
|
750
747
|
export { initializeRecordPaymentDraftFromInvoice, localDataToInvoiceRecordPaymentBody, localDataToRecordPaymentPayload, } from './view/invoicing/recordPayment/recordPaymentPayload';
|
|
751
|
-
export {
|
|
748
|
+
export { initialRecordPaymentFormLocalData, } from './view/invoicing/recordPayment/recordPaymentFormConfig';
|
|
752
749
|
export { clearInvoicingOverview, fetchInvoicingOverview, } from './view/invoicing/invoicingOverview/invoicingOverviewReducer';
|
|
753
750
|
export { buildPeriodOptions, getInvoicingOverview, } from './view/invoicing/invoicingOverview/invoicingOverviewSelector';
|
|
754
751
|
export { clearInvoicingAuditView, fetchInvoicingAuditLog, } from './view/invoicing/auditView/auditViewReducer';
|
|
@@ -756,14 +753,14 @@ export { getInvoicingAuditView } from './view/invoicing/auditView/auditViewSelec
|
|
|
756
753
|
export { getCreateInvoiceFormView } from './view/invoicing/createInvoice/createInvoiceSelector';
|
|
757
754
|
export { getRecordPaymentFormView, getRecordPaymentInvoiceOptions, getRecordPaymentView, } from './view/invoicing/recordPayment/recordPaymentSelector';
|
|
758
755
|
export { initializeInvoicingCustomerAddress, resetEditInvoicingCustomerDetailView, submitInvoicingCustomerForm, submitInvoicingCustomerFormFailure, submitInvoicingCustomerFormSuccess, updateInvoicingCustomerFormDraft, } from './view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer';
|
|
759
|
-
export { INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE,
|
|
756
|
+
export { INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE, entityToInvoicingCustomerFormLocalData, initialInvoicingCustomerFormLocalData, } from './view/invoicing/editInvoicingCustomerDetailView/invoicingCustomerFormConfig';
|
|
760
757
|
export { getInvoicingCustomerFormView } from './view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector';
|
|
761
758
|
export { fetchInvoicingSubscriptionFormPage, initializeInvoicingSubscriptionAddress, resetEditInvoicingSubscriptionDetailView, submitInvoicingSubscriptionForm, updateInvoicingSubscriptionFormDraft, } from './view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer';
|
|
762
759
|
export { INVOICING_SUBSCRIPTION_BILLING_FREQUENCY_VALUES, INVOICING_SUBSCRIPTION_SHIPPING_ADDRESS_TYPE, entityToInvoicingSubscriptionFormLocalData, initialInvoicingSubscriptionFormLocalData, invoicingSubscriptionTodayIso, toInvoicingSubscriptionQuantity, } from './view/invoicing/editInvoicingSubscriptionDetailView/invoicingSubscriptionFormConfig';
|
|
763
760
|
export { getEditInvoicingSubscriptionDetailViewState, getInvoicingSubscriptionFormView, } from './view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector';
|
|
764
761
|
export { archiveInvoicingCatalogSubFamily, createInvoicingCatalogSubFamily, resetEditInvoicingCatalogItemDetailView, saveInvoicingCatalogItem, submitInvoicingCatalogItemForm, updateInvoicingCatalogItemFormDraft, } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewReducer';
|
|
765
762
|
export { catalogDetailEditValuesToSavePayload, createSubFamilyFormToPayload, planToCatalogDetailEditValues, productToCreateSubFamilyFormValues, } from './view/invoicing/editInvoicingCatalogItemDetailView/catalogDetailEditPayload';
|
|
766
|
-
export { INVOICING_CATALOG_APPLICABILITY_VALUES,
|
|
763
|
+
export { INVOICING_CATALOG_APPLICABILITY_VALUES, INVOICING_CATALOG_PRICING_MODEL_VALUES, INVOICING_CATALOG_PRORATION_VALUES, INVOICING_CATALOG_TIER_TYPE_VALUES, blankInvoicingCatalogSubFamily, blankInvoicingCatalogTier, entityToInvoicingCatalogItemFormLocalData, initialInvoicingCatalogItemFormLocalData, isTieredCatalogPricingModel, } from './view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig';
|
|
767
764
|
export { getEditInvoicingCatalogItemDetailViewState, getInvoicingApplicableCatalogItemOptions, getInvoicingCatalogItemFormView, getSavedInvoicingCatalogItemId, getSavedInvoicingCatalogItemKind, } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector';
|
|
768
765
|
export { resetEditInvoicingCouponDetailView, saveInvoicingCoupon, submitInvoicingCouponForm, updateInvoicingCouponFormDraft, } from './view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer';
|
|
769
766
|
export { entityToInvoicingCouponFormLocalData, initialInvoicingCouponFormLocalData, } from './view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewState';
|
|
@@ -788,7 +785,7 @@ export { INVOICING_LIST_PAGE_SIZE } from './view/invoicing/invoicingApiHelper';
|
|
|
788
785
|
// ── Invoicing: customers ──────────────────────────────────────────────────────
|
|
789
786
|
export { clearAllInvoicingCustomers, removeInvoicingCustomer, updateInvoicingCustomers, } from './entity/invoicing/invoicingCustomer/invoicingCustomerReducer';
|
|
790
787
|
export { clearInvoicingCustomerListView, fetchInvoicingCustomerCounts, fetchInvoicingCustomerList, fetchInvoicingCustomerListPage, setInvoicingCustomerActiveTab, updateInvoicingCustomerFilters, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer';
|
|
791
|
-
export { ALL_INVOICING_CUSTOMER_SORT_KEYS, ALL_INVOICING_CUSTOMER_TAB_IDS, INVOICING_CUSTOMER_COLUMNS,
|
|
788
|
+
export { ALL_INVOICING_CUSTOMER_SORT_KEYS, ALL_INVOICING_CUSTOMER_TAB_IDS, INVOICING_CUSTOMER_COLUMNS, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState';
|
|
792
789
|
export { getInvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
793
790
|
export { clearInvoicingCustomerDetailView, fetchInvoicingCustomerDetail, fetchInvoicingCustomerDetailPage, } from './view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer';
|
|
794
791
|
export { getInvoicingCustomerDetail } from './view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector';
|
|
@@ -800,28 +797,28 @@ export { submitAddPromotionalCredits, resetPromotionalCreditAction, } from './vi
|
|
|
800
797
|
// ── Invoicing: subscriptions ──────────────────────────────────────────────────
|
|
801
798
|
export { clearAllInvoicingSubscriptions, removeInvoicingSubscription, updateInvoicingSubscriptions, } from './entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer';
|
|
802
799
|
export { clearInvoicingSubscriptionListView, fetchInvoicingSubscriptionCounts, fetchInvoicingSubscriptionList, fetchInvoicingSubscriptionListPage, setInvoicingSubscriptionActiveTab, updateInvoicingSubscriptionFilters, } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer';
|
|
803
|
-
export { ALL_INVOICING_SUBSCRIPTION_SORT_KEYS, ALL_INVOICING_SUBSCRIPTION_TAB_IDS, INVOICING_SUBSCRIPTION_COLUMNS,
|
|
800
|
+
export { ALL_INVOICING_SUBSCRIPTION_SORT_KEYS, ALL_INVOICING_SUBSCRIPTION_TAB_IDS, INVOICING_SUBSCRIPTION_COLUMNS, } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState';
|
|
804
801
|
export { getInvoicingSubscriptionListView } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector';
|
|
805
802
|
export { clearInvoicingSubscriptionDetailView, fetchInvoicingSubscriptionDetail, } from './view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer';
|
|
806
803
|
export { getInvoicingSubscriptionById, getInvoicingSubscriptionDetail, } from './view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector';
|
|
807
804
|
// ── Invoicing: payments (transactions) ────────────────────────────────────────
|
|
808
805
|
export { clearAllInvoicingTransactions, removeInvoicingTransaction, updateInvoicingTransactions, } from './entity/invoicing/invoicingTransaction/invoicingTransactionReducer';
|
|
809
806
|
export { clearInvoicingTransactionListView, fetchInvoicingTransactionList, fetchInvoicingTransactionListPage, setInvoicingTransactionActiveTab, updateInvoicingTransactionFilters, } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer';
|
|
810
|
-
export { ALL_INVOICING_TRANSACTION_SORT_KEYS, ALL_INVOICING_TRANSACTION_TAB_IDS, INVOICING_TRANSACTION_COLUMNS,
|
|
807
|
+
export { ALL_INVOICING_TRANSACTION_SORT_KEYS, ALL_INVOICING_TRANSACTION_TAB_IDS, INVOICING_TRANSACTION_COLUMNS, } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState';
|
|
811
808
|
export { getInvoicingTransactionListView } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector';
|
|
812
809
|
export { clearInvoicingTransactionDetailView, fetchInvoicingTransactionDetail, } from './view/invoicing/invoicingTransactionDetailView/invoicingTransactionDetailViewReducer';
|
|
813
810
|
export { getInvoicingTransactionById, getInvoicingTransactionDetail, } from './view/invoicing/invoicingTransactionDetailView/invoicingTransactionDetailViewSelector';
|
|
814
811
|
// ── Invoicing: credit notes ───────────────────────────────────────────────────
|
|
815
812
|
export { clearAllInvoicingCreditNotes, removeInvoicingCreditNote, updateInvoicingCreditNotes, } from './entity/invoicing/creditNote/creditNoteReducer';
|
|
816
813
|
export { clearInvoicingCreditNoteListView, fetchInvoicingCreditNoteCounts, fetchInvoicingCreditNoteList, fetchInvoicingCreditNoteListPage, setInvoicingCreditNoteActiveTab, updateInvoicingCreditNoteFilters, } from './view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewReducer';
|
|
817
|
-
export { ALL_INVOICING_CREDIT_NOTE_SORT_KEYS, ALL_INVOICING_CREDIT_NOTE_TAB_IDS, INVOICING_CREDIT_NOTE_COLUMNS,
|
|
814
|
+
export { ALL_INVOICING_CREDIT_NOTE_SORT_KEYS, ALL_INVOICING_CREDIT_NOTE_TAB_IDS, INVOICING_CREDIT_NOTE_COLUMNS, } from './view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewState';
|
|
818
815
|
export { getInvoicingCreditNoteListView } from './view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewSelector';
|
|
819
816
|
export { clearInvoicingCreditNoteDetailView, fetchInvoicingCreditNoteDetail, } from './view/invoicing/invoicingCreditNoteDetailView/invoicingCreditNoteDetailViewReducer';
|
|
820
817
|
export { getInvoicingCreditNoteById, getInvoicingCreditNoteDetail, } from './view/invoicing/invoicingCreditNoteDetailView/invoicingCreditNoteDetailViewSelector';
|
|
821
818
|
// ── Invoicing: discounts (coupons) ────────────────────────────────────────────
|
|
822
819
|
export { clearAllInvoicingCoupons, removeInvoicingCoupon, updateInvoicingCoupons, } from './entity/invoicing/coupon/couponReducer';
|
|
823
820
|
export { clearInvoicingCouponView, fetchInvoicingCouponCounts, fetchInvoicingCouponList, fetchInvoicingCouponListPage, setInvoicingCouponActiveTab, updateInvoicingCouponFilters, } from './view/invoicing/couponView/couponViewReducer';
|
|
824
|
-
export { ALL_INVOICING_COUPON_SORT_KEYS, ALL_INVOICING_COUPON_TAB_IDS, INVOICING_COUPON_COLUMNS,
|
|
821
|
+
export { ALL_INVOICING_COUPON_SORT_KEYS, ALL_INVOICING_COUPON_TAB_IDS, INVOICING_COUPON_COLUMNS, } from './view/invoicing/couponView/couponViewState';
|
|
825
822
|
export { getInvoicingCouponCounts, getInvoicingCouponListFetchState, getInvoicingCouponListFilters, getInvoicingCouponListHasMore, getInvoicingCouponListItems, getInvoicingCouponListNextCursor, getInvoicingCouponListView, } from './view/invoicing/couponView/couponViewSelector';
|
|
826
823
|
export { getInvoicingCouponById } from './entity/invoicing/coupon/couponSelector';
|
|
827
824
|
export { clearInvoicingCouponDetailView, fetchInvoicingCouponDetail, } from './view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewReducer';
|
|
@@ -829,7 +826,7 @@ export { getInvoicingCouponDetail } from './view/invoicing/invoicingCouponDetail
|
|
|
829
826
|
// ── Invoicing: dunning ────────────────────────────────────────────────────────
|
|
830
827
|
export { clearAllInvoicingDunningCases, removeInvoicingDunningCase, updateInvoicingDunningCases, } from './entity/invoicing/dunningCase/dunningCaseReducer';
|
|
831
828
|
export { clearInvoicingDunningCaseListView, fetchInvoicingDunningCaseCounts, fetchInvoicingDunningCaseList, fetchInvoicingDunningCaseListPage, setInvoicingDunningCaseActiveTab, updateInvoicingDunningCaseFilters, } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer';
|
|
832
|
-
export { ALL_INVOICING_DUNNING_CASE_SORT_KEYS, ALL_INVOICING_DUNNING_CASE_TAB_IDS, INVOICING_DUNNING_CASE_COLUMNS,
|
|
829
|
+
export { ALL_INVOICING_DUNNING_CASE_SORT_KEYS, ALL_INVOICING_DUNNING_CASE_TAB_IDS, INVOICING_DUNNING_CASE_COLUMNS, } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState';
|
|
833
830
|
export { getInvoicingDunningCaseListView } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewSelector';
|
|
834
831
|
export { clearInvoicingDunningCaseDetailView, fetchInvoicingDunningCaseDetail, fetchInvoicingDunningEmailPreviewPage, invalidateInvoicingDunningEmailPreview, } from './view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer';
|
|
835
832
|
export { getInvoicingDunningCaseById, getInvoicingDunningCaseDetail, getInvoicingDunningEmailPreview, } from './view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewSelector';
|
|
@@ -855,3 +852,4 @@ export { INVOICING_QBO_CUSTOMER_MATCHING_MODES, getInvoicingQboAccountMappingId,
|
|
|
855
852
|
// ── Invoicing: config ─────────────────────────────────────────────────────────
|
|
856
853
|
export { acceptInvoicingTerms, clearInvoicingConfig, enableInvoicing, fetchInvoicingConfig, resetInvoicingConfigActionStates, updateInvoicingConfig, } from './view/invoicing/invoicingConfigView/invoicingConfigViewReducer';
|
|
857
854
|
export { getInvoicingConfigView } from './view/invoicing/invoicingConfigView/invoicingConfigViewSelector';
|
|
855
|
+
export { getInvoicingOnboardingGateView } from './view/invoicing/invoicingConfigView/invoicingConfigViewSelector';
|
package/lib/esm/reducer.js
CHANGED
|
@@ -282,7 +282,6 @@ import vendorGlobalReviewView, { initialState as initialVendorGlobalReviewViewSt
|
|
|
282
282
|
import vendorTabView, { initialState as initialVendorTabViewState, } from './view/vendorTabView/vendorTabViewReducer';
|
|
283
283
|
import vendorTypeList, { initialState as initialVendorTypeListState, } from './view/vendorTypeList/vendorTypeListReducer';
|
|
284
284
|
import zeniAccStatementList, { initialState as initialZeniAccStatementListState, } from './view/zeniAccStatementList/zeniAccStatementListReducer';
|
|
285
|
-
import zeniAccountsPromoCard, { initialState as initialZeniAccountsPromoCardState, } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
|
|
286
285
|
import zeniOAuthView, { initialState as initialZeniOAuthViewState, } from './view/zeniOAuthView/zeniOAuthReducer';
|
|
287
286
|
// Note: Please maintain strict alphabetical order
|
|
288
287
|
const initialEntitiesState = {
|
|
@@ -572,7 +571,6 @@ const initialViewsState = {
|
|
|
572
571
|
zeniAccountListState: initialzeniAccountListState,
|
|
573
572
|
zeniAccountSetupViewState: initialZeniAccountSetupViewState,
|
|
574
573
|
zeniAccStatementListState: initialZeniAccStatementListState,
|
|
575
|
-
zeniAccountsPromoCardState: initialZeniAccountsPromoCardState,
|
|
576
574
|
zeniOAuthViewState: initialZeniOAuthViewState,
|
|
577
575
|
};
|
|
578
576
|
export const initialRootState = {
|
|
@@ -868,7 +866,6 @@ const viewReducers = {
|
|
|
868
866
|
zeniAccountListState: zeniAccountList,
|
|
869
867
|
zeniAccountSetupViewState: zeniAccountSetupView,
|
|
870
868
|
zeniAccStatementListState: zeniAccStatementList,
|
|
871
|
-
zeniAccountsPromoCardState: zeniAccountsPromoCard,
|
|
872
869
|
zeniOAuthViewState: zeniOAuthView,
|
|
873
870
|
};
|
|
874
871
|
const reducers = combineReducers({
|
|
@@ -25,10 +25,8 @@ import { fetchRewardsPlan } from '../referralView/referralReducer';
|
|
|
25
25
|
import { fetchReimbursementCard } from '../reimbursementCard/reimbursementCardReducer';
|
|
26
26
|
import { fetchRevenue } from '../revenue/revenueReducer';
|
|
27
27
|
import { getRevenueReportFetchState } from '../revenue/revenueSelector';
|
|
28
|
-
import { fetchTreasuryFunds } from '../spendManagement/treasury/treasurySetUp/treasurySetupViewReducer';
|
|
29
28
|
import { fetchTasksCard } from '../tasksCard/tasksCardReducer';
|
|
30
29
|
import { fetchTopEx } from '../topEx/topExReducer';
|
|
31
|
-
import { fetchZeniAccountsPromoCard } from '../zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
|
|
32
30
|
import { fetchDashboard } from './dashboardReducer';
|
|
33
31
|
export const fetchDashboardEpic = (actions$, state$) => actions$.pipe(filter(fetchDashboard.match), switchMap((action) => {
|
|
34
32
|
const { userId, companyId, fetchFullReport, cacheOverride, excludeResources, tenantId, } = action.payload;
|
|
@@ -66,9 +64,6 @@ export const fetchDashboardEpic = (actions$, state$) => actions$.pipe(filter(fet
|
|
|
66
64
|
if (excludeResources.includes('accounts_receivable_aging') === false) {
|
|
67
65
|
actions.push(fetchArAging(arAgingDate));
|
|
68
66
|
}
|
|
69
|
-
if (excludeResources.includes('zeni_accounts_promo_card') === false) {
|
|
70
|
-
actions.push(fetchZeniAccountsPromoCard());
|
|
71
|
-
}
|
|
72
67
|
if (!isInvestorBanker) {
|
|
73
68
|
actions.push(fetchBillPayCard());
|
|
74
69
|
}
|
|
@@ -85,9 +80,6 @@ export const fetchDashboardEpic = (actions$, state$) => actions$.pipe(filter(fet
|
|
|
85
80
|
refreshViewInBackground: false,
|
|
86
81
|
}));
|
|
87
82
|
}
|
|
88
|
-
if (excludeResources.includes('treasury_promo_card') === false) {
|
|
89
|
-
actions.push(fetchTreasuryFunds());
|
|
90
|
-
}
|
|
91
83
|
return from(actions);
|
|
92
84
|
}
|
|
93
85
|
else {
|
|
@@ -164,11 +156,6 @@ export const fetchDashboardEpic = (actions$, state$) => actions$.pipe(filter(fet
|
|
|
164
156
|
excludeResources.includes('accounts_receivable_aging') === false) {
|
|
165
157
|
fetchActions.push(fetchArAging(arAgingDate));
|
|
166
158
|
}
|
|
167
|
-
if (state.zeniAccountsPromoCardState.fetchState !== 'In-Progress' &&
|
|
168
|
-
!state.zeniAccountsPromoCardState.hasValidState() &&
|
|
169
|
-
excludeResources.includes('zeni_accounts_promo_card') === false) {
|
|
170
|
-
fetchActions.push(fetchZeniAccountsPromoCard());
|
|
171
|
-
}
|
|
172
159
|
if (state.billPayCardState.fetchState !== 'In-Progress' &&
|
|
173
160
|
!state.billPayCardState.hasValidState() &&
|
|
174
161
|
!isInvestorBanker) {
|
|
@@ -197,13 +184,6 @@ export const fetchDashboardEpic = (actions$, state$) => actions$.pipe(filter(fet
|
|
|
197
184
|
refreshViewInBackground: false,
|
|
198
185
|
}));
|
|
199
186
|
}
|
|
200
|
-
if (state.treasurySetupViewState.treasuryFundsDetails.fetchStatus
|
|
201
|
-
.fetchState !== 'In-Progress' &&
|
|
202
|
-
state.treasurySetupViewState.treasuryFundsDetails.fetchStatus
|
|
203
|
-
.fetchState !== 'Completed' &&
|
|
204
|
-
excludeResources.includes('treasury_promo_card') === false) {
|
|
205
|
-
fetchActions.push(fetchTreasuryFunds());
|
|
206
|
-
}
|
|
207
187
|
return from(fetchActions);
|
|
208
188
|
}
|
|
209
189
|
}));
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createSlice } from '@reduxjs/toolkit';
|
|
2
2
|
import { clearAll } from '../../rootActions';
|
|
3
3
|
import { dateNow } from '../../zeniDayJS';
|
|
4
|
-
import { updateTreasuryPromoIntroClosedByOutsideClick, updateTreasuryPromoRemindMeLaterClicked, } from '../spendManagement/treasury/treasurySetUp/treasurySetupViewReducer';
|
|
5
4
|
export const initialState = {
|
|
6
|
-
isTreasuryVideoClosed: false,
|
|
7
5
|
lastFetchRequestTime: undefined,
|
|
8
6
|
};
|
|
9
7
|
const dashboard = createSlice({
|
|
@@ -27,25 +25,15 @@ const dashboard = createSlice({
|
|
|
27
25
|
};
|
|
28
26
|
},
|
|
29
27
|
},
|
|
30
|
-
updateTreasuryVideoClosed(draft) {
|
|
31
|
-
draft.isTreasuryVideoClosed = true;
|
|
32
|
-
},
|
|
33
28
|
clearDashboard(draft) {
|
|
34
29
|
Object.assign(draft, initialState);
|
|
35
30
|
},
|
|
36
31
|
},
|
|
37
32
|
extraReducers: (builder) => {
|
|
38
|
-
builder
|
|
39
|
-
.addCase(updateTreasuryPromoRemindMeLaterClicked, (draft) => {
|
|
40
|
-
draft.isTreasuryVideoClosed = true;
|
|
41
|
-
})
|
|
42
|
-
.addCase(updateTreasuryPromoIntroClosedByOutsideClick, (draft) => {
|
|
43
|
-
draft.isTreasuryVideoClosed = true;
|
|
44
|
-
});
|
|
45
33
|
builder.addCase(clearAll, (draft) => {
|
|
46
34
|
Object.assign(draft, initialState);
|
|
47
35
|
});
|
|
48
36
|
},
|
|
49
37
|
});
|
|
50
|
-
export const { fetchDashboard,
|
|
38
|
+
export const { fetchDashboard, clearDashboard } = dashboard.actions;
|
|
51
39
|
export default dashboard.reducer;
|
|
@@ -22,7 +22,6 @@ import { getReimbursementCardReport } from '../reimbursementCard/reimbursementCa
|
|
|
22
22
|
import { getRevenueReport } from '../revenue/revenueSelector';
|
|
23
23
|
import { getTasksCardReport } from '../tasksCard/tasksCardSelector';
|
|
24
24
|
import { getTop6Expenses } from '../topEx/topExSelector';
|
|
25
|
-
import { getZeniAccountsPromoCard } from '../zeniAccountsPromoCard/zeniAccountsPromoCardSelector';
|
|
26
25
|
const getNetBurnOrIncomeForLast4Periods = (state) => {
|
|
27
26
|
return getNetBurnOrIncomeReport(state.accountState, state.accountGroupState, state.sectionAccountsViewState, state.netBurnOrIncomeState, state.forecastState, state.forecastListState, newBalancesFilter(state.netBurnOrIncomeState.netBurnOrIncome.firstMonthOfFY, state.netBurnOrIncomeState.uiState.timeframe, 4, undefined, 'ascending_date', state.netBurnOrIncomeState.uiState.selectedAdditionalBalances));
|
|
28
27
|
};
|
|
@@ -39,10 +38,10 @@ const tenantSelector = createSelector(getTenantsByCheckInDateSelector, getCurren
|
|
|
39
38
|
tenantsOrdered,
|
|
40
39
|
currentTenant,
|
|
41
40
|
}));
|
|
42
|
-
export const getDashboard = createSelector(tenantSelector, getCardBalance, getCashBalance, getOperatingExpensesForLast5Periods, getRevenueForLast4Periods, getTop6Expenses, getNetBurnOrIncomeForLast4Periods, getNetBurnOrIncomeStoryCard, getCashPositionLast5Periods, getCashInCashOutLast4Periods, getInsights, getCompanyPassportView, getTasksCardReport, getBillPayCardReport, getReimbursementCardReport, apAgingSelector, arAgingSelector,
|
|
41
|
+
export const getDashboard = createSelector(tenantSelector, getCardBalance, getCashBalance, getOperatingExpensesForLast5Periods, getRevenueForLast4Periods, getTop6Expenses, getNetBurnOrIncomeForLast4Periods, getNetBurnOrIncomeStoryCard, getCashPositionLast5Periods, getCashInCashOutLast4Periods, getInsights, getCompanyPassportView, getTasksCardReport, getBillPayCardReport, getReimbursementCardReport, apAgingSelector, arAgingSelector, getRewardsPlanCard, getDashboardCardsOrdered, (state) => {
|
|
43
42
|
const currentTenant = getCurrentTenant(state);
|
|
44
43
|
return getMonthEndCloseChecksViewByTenantId(state, currentTenant.tenantId);
|
|
45
|
-
}, (state) => state.tenantState, (_state, additionalExcludedReports) => additionalExcludedReports, (
|
|
44
|
+
}, (state) => state.tenantState, (_state, additionalExcludedReports) => additionalExcludedReports, (tenants, cardBalance, cashBalance, opEx, revenue, topEx, netBurnOrIncome, netBurnOrIncomeStoryCard, cashPosition, cashInCashOut, insightsView, companyPassportView, tasksCard, billPayCard, reimbursementCard, apAgingReport, arAgingReport, rewardsPlanCard, cards, monthEndCloseChecksView, tenantState, additionalExcludedReports) => {
|
|
46
45
|
const isReimbursementFeatureEnabled = tenants.currentTenant.company?.featuresActivationInfo
|
|
47
46
|
.isReimbursementFeatureEnabled;
|
|
48
47
|
const isBillPayFeatureEnabled = tenants.currentTenant.company?.featuresActivationInfo
|
|
@@ -211,9 +210,6 @@ export const getDashboard = createSelector(tenantSelector, getCardBalance, getCa
|
|
|
211
210
|
if (isReimbursementFeatureEnabled === true && isAdmin) {
|
|
212
211
|
reportsInOrder.push(reimbursementCard);
|
|
213
212
|
}
|
|
214
|
-
if (additionalExcludedReports.includes('zeni_accounts_promo_card') === false) {
|
|
215
|
-
reportsInOrder.push(zeniAccountsPromoCard);
|
|
216
|
-
}
|
|
217
213
|
if (additionalExcludedReports.includes('rewards_card') === false) {
|
|
218
214
|
reportsInOrder.push(rewardsPlanCard);
|
|
219
215
|
}
|
|
@@ -229,6 +225,5 @@ export const getDashboard = createSelector(tenantSelector, getCardBalance, getCa
|
|
|
229
225
|
...tenants,
|
|
230
226
|
reportsInOrder,
|
|
231
227
|
cardsForDashboardUI: cardsCopy,
|
|
232
|
-
isTreasuryVideoClosed,
|
|
233
228
|
};
|
|
234
229
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getInvoicingConfigView } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
1
2
|
/**
|
|
2
3
|
* Single bundled view for the invoicing audit log — consumers read only this.
|
|
3
4
|
* Carries the log `items`, pagination (`nextCursor` + derived `hasMore`), the
|
|
@@ -5,7 +6,10 @@
|
|
|
5
6
|
*/
|
|
6
7
|
export const getInvoicingAuditView = (state) => {
|
|
7
8
|
const auditState = state.invoicingAuditViewState;
|
|
9
|
+
const { auditLogEntityRouteOptions, auditLogListSortFieldOptions } = getInvoicingConfigView(state);
|
|
8
10
|
return {
|
|
11
|
+
auditLogEntityRouteOptions,
|
|
12
|
+
auditLogListSortFieldOptions,
|
|
9
13
|
filters: auditState.filters,
|
|
10
14
|
hasMore: auditState.nextCursor != null,
|
|
11
15
|
items: auditState.items,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createSelector } from '@reduxjs/toolkit';
|
|
2
|
-
import {
|
|
2
|
+
import { invoicingTabIdsFromConfig } from '../invoicingTabHelper';
|
|
3
|
+
import { ALL_INVOICING_COUPON_TAB_IDS, INVOICING_COUPON_COLUMNS, } from './couponViewState';
|
|
3
4
|
export const getInvoicingCouponListItems = (state) => state.invoicingCouponViewState.ids
|
|
4
5
|
.map((id) => state.invoicingCouponState.couponByID[id])
|
|
5
6
|
.filter((item) => item != null);
|
|
@@ -17,19 +18,22 @@ export const getInvoicingCouponCounts = (state) => state.invoicingCouponViewStat
|
|
|
17
18
|
* array (and the wrapping view object) keep referential identity until the
|
|
18
19
|
* coupon entity slice or the list-view slice actually change.
|
|
19
20
|
*/
|
|
20
|
-
export const getInvoicingCouponListView = createSelector((state) => state.invoicingCouponState, (state) => state.invoicingCouponViewState, (couponState, listViewState) => {
|
|
21
|
+
export const getInvoicingCouponListView = createSelector((state) => state.invoicingCouponState, (state) => state.invoicingCouponViewState, (state) => state.invoicingConfigViewState.discountStatusOptions, (state) => state.invoicingConfigViewState.discountLifecycleActionOptions, (couponState, listViewState, statusOptions, discountLifecycleActionOptions) => {
|
|
21
22
|
const { activeTab } = listViewState;
|
|
22
23
|
const allCoupons = listViewState.ids
|
|
23
24
|
.map((id) => couponState.couponByID[id])
|
|
24
25
|
.filter((item) => item != null);
|
|
25
26
|
// The list API ignores `status`, so it returns every status; filter to the
|
|
26
|
-
// active tab client-side. 'all' shows everything
|
|
27
|
-
//
|
|
27
|
+
// active tab client-side. 'all' shows everything and 'inactive' is the
|
|
28
|
+
// FE-derived composite of every non-active status (undefined included);
|
|
29
|
+
// every other tab is a real backend status and matches exactly — without
|
|
30
|
+
// that, config-supplied tabs like `expired` and `archived` would each show
|
|
31
|
+
// the whole non-active set.
|
|
28
32
|
const coupons = activeTab === 'all'
|
|
29
33
|
? allCoupons
|
|
30
|
-
:
|
|
31
|
-
? coupon.status
|
|
32
|
-
: coupon.status
|
|
34
|
+
: activeTab === 'inactive'
|
|
35
|
+
? allCoupons.filter((coupon) => coupon.status !== 'active')
|
|
36
|
+
: allCoupons.filter((coupon) => coupon.status === activeTab);
|
|
33
37
|
return {
|
|
34
38
|
activeTab,
|
|
35
39
|
columns: INVOICING_COUPON_COLUMNS,
|
|
@@ -38,7 +42,13 @@ export const getInvoicingCouponListView = createSelector((state) => state.invoic
|
|
|
38
42
|
countsFetchState: listViewState.countsFetchState,
|
|
39
43
|
filters: listViewState.filters,
|
|
40
44
|
nextCursor: listViewState.nextCursor,
|
|
41
|
-
|
|
45
|
+
discountLifecycleActionOptions,
|
|
46
|
+
statusOptions,
|
|
47
|
+
tabIds: invoicingTabIdsFromConfig({
|
|
48
|
+
allTabIds: ALL_INVOICING_COUPON_TAB_IDS,
|
|
49
|
+
localTabIds: ['inactive'],
|
|
50
|
+
statusOptions,
|
|
51
|
+
}),
|
|
42
52
|
fetchState: listViewState.fetchState,
|
|
43
53
|
error: listViewState.error,
|
|
44
54
|
sort: listViewState.sort,
|
|
@@ -28,12 +28,3 @@ export const ALL_INVOICING_COUPON_TAB_IDS = [
|
|
|
28
28
|
'inactive',
|
|
29
29
|
];
|
|
30
30
|
export const toInvoicingCouponTabId = (v) => stringToUnion(v, ALL_INVOICING_COUPON_TAB_IDS);
|
|
31
|
-
/**
|
|
32
|
-
* Ordered filter-tab id set owned by CES so the coupon/discount-list tabs live
|
|
33
|
-
* next to the model rather than being hardcoded in web-components. Tab labels
|
|
34
|
-
* and the per-tab count lookup stay in the view layer; this only carries the id
|
|
35
|
-
* set and display order.
|
|
36
|
-
*/
|
|
37
|
-
export const INVOICING_COUPON_TABS = [
|
|
38
|
-
...ALL_INVOICING_COUPON_TAB_IDS,
|
|
39
|
-
];
|
|
@@ -15,10 +15,13 @@ export const localDataToCreateCreditNotePayload = (localData) => {
|
|
|
15
15
|
lineItem.unit_amount > 0);
|
|
16
16
|
const reasonCode = localData.reasonCode.trim();
|
|
17
17
|
const referenceInvoiceId = localData.referenceInvoiceId.trim();
|
|
18
|
+
// Optional-chained: a draft persisted before this field existed has no
|
|
19
|
+
// `type`, and the draft survives navigation.
|
|
20
|
+
const type = localData.type?.trim() ?? '';
|
|
18
21
|
return {
|
|
19
22
|
customer_id: localData.customerId,
|
|
20
23
|
line_items: lineItems,
|
|
21
|
-
type
|
|
24
|
+
...(type !== '' ? { type } : {}),
|
|
22
25
|
...(reasonCode !== '' ? { reason_code: reasonCode } : {}),
|
|
23
26
|
...(referenceInvoiceId !== ''
|
|
24
27
|
? { reference_invoice_id: referenceInvoiceId }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getInvoicingConfigView } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
2
2
|
export const getCreateCreditNoteView = (state) => {
|
|
3
3
|
const { createdCreditNoteId, error, fetchState } = state.invoicingCreateCreditNoteState;
|
|
4
4
|
return {
|
|
@@ -10,9 +10,11 @@ export const getCreateCreditNoteView = (state) => {
|
|
|
10
10
|
};
|
|
11
11
|
export const getCreateCreditNoteFormView = (state) => {
|
|
12
12
|
const { draft, error, fetchState } = state.invoicingCreateCreditNoteState;
|
|
13
|
+
const { creditNoteReasonCodeOptions, creditNoteTypeOptions } = getInvoicingConfigView(state);
|
|
13
14
|
return {
|
|
14
15
|
localData: draft,
|
|
15
|
-
|
|
16
|
+
reasonCodeOptions: creditNoteReasonCodeOptions,
|
|
17
|
+
typeOptions: creditNoteTypeOptions,
|
|
16
18
|
error,
|
|
17
19
|
fetchState,
|
|
18
20
|
version: 1.0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSelector } from '@reduxjs/toolkit';
|
|
2
2
|
import { getInvoicingPlanById, getInvoicingPlansByIds, } from '../../../entity/invoicing/plan/planSelector';
|
|
3
3
|
import { getInvoicingConfigView } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
4
|
-
import { INVOICING_CATALOG_APPLICABILITY_VALUES,
|
|
4
|
+
import { INVOICING_CATALOG_APPLICABILITY_VALUES, INVOICING_CATALOG_PRICING_MODEL_VALUES, INVOICING_CATALOG_PRORATION_VALUES, INVOICING_CATALOG_TIER_TYPE_VALUES, entityToInvoicingCatalogItemFormLocalData, } from './invoicingCatalogItemFormConfig';
|
|
5
5
|
export const getEditInvoicingCatalogItemDetailViewState = (state) => ({
|
|
6
6
|
fetchState: state.editInvoicingCatalogItemDetailViewState.fetchState,
|
|
7
7
|
error: state.editInvoicingCatalogItemDetailViewState.error,
|
|
@@ -48,19 +48,20 @@ export const getInvoicingCatalogItemFormView = (state, id) => {
|
|
|
48
48
|
const applicableItemOptions = id != null
|
|
49
49
|
? allApplicableItemOptions.filter((option) => option.id !== id)
|
|
50
50
|
: allApplicableItemOptions;
|
|
51
|
+
const { billingPeriodUnitOptions, catalogItemTypeOptions, catalogTierTypeOptionsByPricingModel, catalogTrialEndActionOptions, catalogTrialUnitOptions, } = getInvoicingConfigView(state);
|
|
51
52
|
return {
|
|
52
53
|
applicabilityValues: INVOICING_CATALOG_APPLICABILITY_VALUES,
|
|
53
54
|
applicableItemOptions,
|
|
54
55
|
localData,
|
|
55
56
|
mode: id != null ? 'edit' : 'create',
|
|
56
|
-
|
|
57
|
+
periodUnitOptions: billingPeriodUnitOptions,
|
|
57
58
|
pricingModelValues: INVOICING_CATALOG_PRICING_MODEL_VALUES,
|
|
58
59
|
prorationValues: INVOICING_CATALOG_PRORATION_VALUES,
|
|
59
60
|
tierTypeValues: INVOICING_CATALOG_TIER_TYPE_VALUES,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
catalogTierTypeOptionsByPricingModel
|
|
61
|
+
trialEndActionOptions: catalogTrialEndActionOptions,
|
|
62
|
+
trialUnitOptions: catalogTrialUnitOptions,
|
|
63
|
+
typeOptions: catalogItemTypeOptions,
|
|
64
|
+
catalogTierTypeOptionsByPricingModel,
|
|
64
65
|
kind,
|
|
65
66
|
plan,
|
|
66
67
|
savedItemId,
|
package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Value sets the catalog item form still owns locally: the backend has no enum
|
|
3
|
+
* for pricing model, tier type, proration or applicability yet, so these stay
|
|
4
|
+
* here until it does. Everything else on this form comes from `/1.0/config`.
|
|
4
5
|
*/
|
|
5
|
-
export const INVOICING_CATALOG_TYPE_VALUES = [
|
|
6
|
-
'plan',
|
|
7
|
-
'addon',
|
|
8
|
-
'charge',
|
|
9
|
-
];
|
|
10
|
-
export const INVOICING_CATALOG_PERIOD_UNIT_VALUES = [
|
|
11
|
-
'day',
|
|
12
|
-
'week',
|
|
13
|
-
'month',
|
|
14
|
-
'year',
|
|
15
|
-
];
|
|
16
6
|
export const INVOICING_CATALOG_PRICING_MODEL_VALUES = [
|
|
17
7
|
'flat_fee',
|
|
18
8
|
'per_unit',
|
|
@@ -25,12 +15,6 @@ export const INVOICING_CATALOG_TIER_TYPE_VALUES = [
|
|
|
25
15
|
'flat_fee',
|
|
26
16
|
'package',
|
|
27
17
|
];
|
|
28
|
-
export const INVOICING_CATALOG_TRIAL_UNIT_VALUES = ['day', 'month'];
|
|
29
|
-
export const INVOICING_CATALOG_TRIAL_END_ACTION_VALUES = [
|
|
30
|
-
'site_default',
|
|
31
|
-
'activate_subscription',
|
|
32
|
-
'cancel_subscription',
|
|
33
|
-
];
|
|
34
18
|
export const INVOICING_CATALOG_PRORATION_VALUES = [
|
|
35
19
|
'site_default',
|
|
36
20
|
'partial_term',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { INVOICING_COUPON_APPLY_ON_OPTIONS, INVOICING_COUPON_DURATION_TYPE_OPTIONS, INVOICING_COUPON_PERIOD_UNIT_OPTIONS, INVOICING_DISCOUNT_TYPE_OPTIONS, } from '../../../entity/invoicing/coupon/couponConstants';
|
|
2
1
|
import { getInvoicingCouponById } from '../../../entity/invoicing/coupon/couponSelector';
|
|
2
|
+
import { toInvoicingFormOption, } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
3
|
+
import { getInvoicingConfigView } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
3
4
|
import { entityToInvoicingCouponFormLocalData, } from './editInvoicingCouponDetailViewState';
|
|
4
5
|
/**
|
|
5
6
|
* Bundled view for the discount create/edit form: the save fetch state/error,
|
|
@@ -8,7 +9,10 @@ import { entityToInvoicingCouponFormLocalData, } from './editInvoicingCouponDeta
|
|
|
8
9
|
*/
|
|
9
10
|
export const getEditInvoicingCouponDetailViewState = (state, couponId) => {
|
|
10
11
|
const { error, fetchState, savedCouponId } = state.editInvoicingCouponDetailViewState;
|
|
12
|
+
const { discountLifecycleActionOptions, fetchState: configFetchState } = getInvoicingConfigView(state);
|
|
11
13
|
return {
|
|
14
|
+
configFetchState,
|
|
15
|
+
discountLifecycleActionOptions,
|
|
12
16
|
coupon: couponId != null
|
|
13
17
|
? getInvoicingCouponById(state.invoicingCouponState, couponId)
|
|
14
18
|
: undefined,
|
|
@@ -31,13 +35,14 @@ export const getInvoicingCouponFormView = (state, couponId) => {
|
|
|
31
35
|
? (editDraftById[couponId] ??
|
|
32
36
|
entityToInvoicingCouponFormLocalData(base.coupon))
|
|
33
37
|
: newCouponDraft;
|
|
38
|
+
const { billingPeriodUnitOptions, discountApplyOnOptions, discountDurationTypeOptions, discountTypeOptions, } = getInvoicingConfigView(state);
|
|
34
39
|
return {
|
|
35
40
|
...base,
|
|
36
|
-
applyOnOptions:
|
|
37
|
-
discountTypeOptions:
|
|
38
|
-
durationTypeOptions:
|
|
41
|
+
applyOnOptions: discountApplyOnOptions.map(toInvoicingFormOption),
|
|
42
|
+
discountTypeOptions: discountTypeOptions.map(toInvoicingFormOption),
|
|
43
|
+
durationTypeOptions: discountDurationTypeOptions.map(toInvoicingFormOption),
|
|
39
44
|
localData,
|
|
40
45
|
mode: couponId != null ? 'edit' : 'create',
|
|
41
|
-
periodUnitOptions:
|
|
46
|
+
periodUnitOptions: billingPeriodUnitOptions.map(toInvoicingFormOption),
|
|
42
47
|
};
|
|
43
48
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getInvoicingCustomerById } from '../../../entity/invoicing/invoicingCustomer/invoicingCustomerSelector';
|
|
2
2
|
import { getFormattedAddress } from '../../addressView/addressViewSelector';
|
|
3
|
-
import {
|
|
3
|
+
import { getInvoicingConfigView } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
4
|
+
import { INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE, entityToInvoicingCustomerFormLocalData, } from './invoicingCustomerFormConfig';
|
|
4
5
|
/**
|
|
5
6
|
* Bundled view for the customer create/edit form. Exposes the draft `localData`
|
|
6
7
|
* (seeded from the existing customer entity in edit mode until the user edits),
|
|
@@ -26,12 +27,13 @@ export const getInvoicingCustomerFormView = (state, invoicingCustomerID) => {
|
|
|
26
27
|
const billingAddressLabel = newAddress?.addressToCreate != null
|
|
27
28
|
? getFormattedAddress(newAddress.addressToCreate)
|
|
28
29
|
: undefined;
|
|
30
|
+
const { customerTypeOptions, netTermDayOptions, taxabilityOptions } = getInvoicingConfigView(state);
|
|
29
31
|
return {
|
|
30
|
-
|
|
32
|
+
customerTypeOptions,
|
|
31
33
|
localData,
|
|
32
34
|
mode,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
netTermDayOptions,
|
|
36
|
+
taxabilityOptions,
|
|
35
37
|
billingAddressId,
|
|
36
38
|
billingAddressLabel,
|
|
37
39
|
savedCustomerId,
|
package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/invoicingCustomerFormConfig.js
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
/** `AddressType` key used when the customer form opens the shared Address screen. */
|
|
2
2
|
export const INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE = 'invoicing_customer_billing_address';
|
|
3
|
-
/**
|
|
4
|
-
* Canonical option value sets for the customer form. CES owns the values;
|
|
5
|
-
* web-components maps each value to a localized label (same split as the
|
|
6
|
-
* invoicing list column/tab config).
|
|
7
|
-
*/
|
|
8
|
-
export const INVOICING_CUSTOMER_TYPE_VALUES = [
|
|
9
|
-
'business',
|
|
10
|
-
'residential',
|
|
11
|
-
];
|
|
12
|
-
export const INVOICING_TAXABILITY_VALUES = ['taxable', 'exempt'];
|
|
13
|
-
export const INVOICING_NET_TERM_DAY_VALUES = [
|
|
14
|
-
'0',
|
|
15
|
-
'15',
|
|
16
|
-
'30',
|
|
17
|
-
'45',
|
|
18
|
-
'60',
|
|
19
|
-
];
|
|
20
3
|
export const initialInvoicingCustomerFormLocalData = {
|
|
21
4
|
autoCollection: true,
|
|
22
5
|
company: '',
|