@zeniai/client-epic-state 5.1.84 → 5.1.85-betaAK0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/coreEpics.js +1 -2
- package/lib/entity/account/accountReducer.js +6 -0
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupReducer.js +6 -0
- package/lib/entity/accountRecon/accountReconReducer.js +6 -0
- package/lib/entity/accountRecon/accountReconState.d.ts +1 -1
- package/lib/entity/address/addressReducer.js +6 -0
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +6 -0
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerState.d.ts +2 -2
- package/lib/entity/aiCfo/aiCfoReducer.js +6 -0
- package/lib/entity/aiCfo/aiCfoState.d.ts +2 -2
- package/lib/entity/approvalRule/approvalRuleReducer.js +6 -0
- package/lib/entity/bankAccount/bankAccountReducer.js +6 -0
- package/lib/entity/billPay/billTransaction/billTransactionReducer.js +6 -0
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +3 -3
- package/lib/entity/billPay/contact/contactReducer.js +6 -0
- package/lib/entity/billPay/recurringBills/recurringBillsReducer.js +6 -0
- package/lib/entity/cardPayment/cardPaymentReducer.js +6 -0
- package/lib/entity/cardPolicy/cardPolicyReducer.js +6 -0
- package/lib/entity/chargeCard/chargeCard.d.ts +2 -2
- package/lib/entity/chargeCard/chargeCardReducer.js +6 -0
- package/lib/entity/chargeCardRepayment/chargeCardRepayment.d.ts +1 -1
- package/lib/entity/chargeCardRepayment/chargeCardRepaymentReducer.js +6 -0
- package/lib/entity/chargeCardTransaction/chargeCardTransactionReducer.js +4 -0
- package/lib/entity/class/classReducer.js +6 -0
- package/lib/entity/company/companyReducer.js +11 -0
- package/lib/entity/companyHealthMetric/companyHealthMetricReducer.js +6 -0
- package/lib/entity/connectedAccount/connectedAccountReducer.js +6 -0
- package/lib/entity/countryList/countryListReducer.js +6 -0
- package/lib/entity/creditAgent/creditAgentReducer.js +6 -0
- package/lib/entity/creditAgent/creditAgentState.d.ts +1 -1
- package/lib/entity/currency/currencyReducer.js +6 -0
- package/lib/entity/customer/customerReducer.js +6 -0
- package/lib/entity/customerIncome/customerIncomeTrendReducer.js +6 -0
- package/lib/entity/customerSatisfaction/customerSatisfactionReducer.js +4 -0
- package/lib/entity/depositAccount/depositAccountReducer.js +8 -0
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
- package/lib/entity/depositAccountTransaction/depositAccountTransactionReducer.js +6 -0
- package/lib/entity/entityApprovalStatus/entityApprovalStatusReducer.js +6 -0
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
- package/lib/entity/file/fileReducer.js +6 -0
- package/lib/entity/forecast/forecastReducer.js +6 -0
- package/lib/entity/genericEntity/entityReducer.js +6 -0
- package/lib/entity/globalMerchant/globalMerchantReducer.js +6 -0
- package/lib/entity/insights/insightReducer.js +6 -0
- package/lib/entity/invoicing/coupon/couponReducer.js +6 -0
- package/lib/entity/invoicing/creditNote/creditNoteReducer.js +6 -0
- package/lib/entity/invoicing/dunningCase/dunningCaseReducer.js +6 -0
- package/lib/entity/invoicing/invoice/invoiceReducer.js +6 -0
- package/lib/entity/invoicing/invoicingCustomer/invoicingCustomerReducer.js +6 -0
- package/lib/entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer.js +6 -0
- package/lib/entity/invoicing/invoicingTransaction/invoicingTransactionReducer.js +6 -0
- package/lib/entity/invoicing/plan/planReducer.js +6 -0
- package/lib/entity/invoicing/product/productReducer.js +6 -0
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/jeSchedules/jeSchedulesReducer.js +7 -0
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +3 -3
- package/lib/entity/merchant/merchantReducer.js +6 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +6 -0
- package/lib/entity/notification/notificationReducer.js +6 -0
- package/lib/entity/notificationRegistry/notificationRegistryReducer.js +14 -0
- package/lib/entity/onboardingCustomer/onboardingCustomerReducer.js +6 -0
- package/lib/entity/paymentAccount/paymentAccountReducer.js +6 -0
- package/lib/entity/paymentInstrument/paymentInstrumentReducer.js +6 -0
- package/lib/entity/portfolio/accountingSummary/accountingSummaryReducer.js +6 -0
- package/lib/entity/project/projectReducer.js +6 -0
- package/lib/entity/reimbursement/reimbursementReducer.js +6 -0
- package/lib/entity/sectionAccountsView/sectionAccountsViewReducer.js +6 -0
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.js +6 -0
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.js +6 -0
- package/lib/entity/snackbar/snackbarApiError.d.ts +16 -0
- package/lib/entity/snackbar/snackbarApiError.js +26 -0
- package/lib/entity/snackbar/snackbarReducer.js +6 -0
- package/lib/entity/subscription/subscription/subscriptionReducer.js +6 -0
- package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnReducer.js +6 -0
- package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponReducer.js +6 -0
- package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.js +6 -0
- package/lib/entity/subscription/subscriptionSummary/subscriptionSummaryReducer.js +6 -0
- package/lib/entity/subscriptionPaymentAccount/subscriptionPaymentAccountReducer.js +6 -0
- package/lib/entity/tag/tagReducer.js +6 -0
- package/lib/entity/task/taskReducer.js +6 -0
- package/lib/entity/task/taskState.d.ts +1 -1
- package/lib/entity/taskGroup/taskGroupReducer.js +6 -0
- package/lib/entity/taskGroupTemplate/taskGroupTemplateReducer.js +6 -0
- package/lib/entity/taskSummary/taskSummaryReducer.js +6 -0
- package/lib/entity/tenant/tenantReducer.d.ts +1 -3
- package/lib/entity/tenant/tenantReducer.js +14 -13
- package/lib/entity/toastNotification/toastNotificationReducer.js +6 -0
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
- package/lib/entity/transaction/transactionReducer.js +8 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogReducer.js +6 -0
- package/lib/entity/user/userReducer.js +6 -0
- package/lib/entity/userGroups/userGroupsReducer.js +6 -0
- package/lib/entity/userRole/userRoleReducer.js +6 -0
- package/lib/entity/vendor/vendorReducer.js +6 -0
- package/lib/entity/vendorExpense/vendorExpenseReducer.js +8 -0
- package/lib/epic.d.ts +1 -2
- package/lib/epic.js +1 -2
- package/lib/esm/coreEpics.js +1 -2
- package/lib/esm/entity/account/accountReducer.js +6 -0
- package/lib/esm/entity/accountGroup/accountGroupReducer.js +6 -0
- package/lib/esm/entity/accountRecon/accountReconReducer.js +6 -0
- package/lib/esm/entity/address/addressReducer.js +6 -0
- package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +6 -0
- package/lib/esm/entity/aiCfo/aiCfoReducer.js +6 -0
- package/lib/esm/entity/approvalRule/approvalRuleReducer.js +6 -0
- package/lib/esm/entity/bankAccount/bankAccountReducer.js +6 -0
- package/lib/esm/entity/billPay/billTransaction/billTransactionReducer.js +6 -0
- package/lib/esm/entity/billPay/contact/contactReducer.js +6 -0
- package/lib/esm/entity/billPay/recurringBills/recurringBillsReducer.js +6 -0
- package/lib/esm/entity/cardPayment/cardPaymentReducer.js +6 -0
- package/lib/esm/entity/cardPolicy/cardPolicyReducer.js +6 -0
- package/lib/esm/entity/chargeCard/chargeCardReducer.js +6 -0
- package/lib/esm/entity/chargeCardRepayment/chargeCardRepaymentReducer.js +6 -0
- package/lib/esm/entity/chargeCardTransaction/chargeCardTransactionReducer.js +4 -0
- package/lib/esm/entity/class/classReducer.js +6 -0
- package/lib/esm/entity/company/companyReducer.js +11 -0
- package/lib/esm/entity/companyHealthMetric/companyHealthMetricReducer.js +6 -0
- package/lib/esm/entity/connectedAccount/connectedAccountReducer.js +6 -0
- package/lib/esm/entity/countryList/countryListReducer.js +6 -0
- package/lib/esm/entity/creditAgent/creditAgentReducer.js +6 -0
- package/lib/esm/entity/currency/currencyReducer.js +6 -0
- package/lib/esm/entity/customer/customerReducer.js +6 -0
- package/lib/esm/entity/customerIncome/customerIncomeTrendReducer.js +6 -0
- package/lib/esm/entity/customerSatisfaction/customerSatisfactionReducer.js +4 -0
- package/lib/esm/entity/depositAccount/depositAccountReducer.js +8 -0
- package/lib/esm/entity/depositAccountTransaction/depositAccountTransactionReducer.js +6 -0
- package/lib/esm/entity/entityApprovalStatus/entityApprovalStatusReducer.js +6 -0
- package/lib/esm/entity/file/fileReducer.js +6 -0
- package/lib/esm/entity/forecast/forecastReducer.js +6 -0
- package/lib/esm/entity/genericEntity/entityReducer.js +6 -0
- package/lib/esm/entity/globalMerchant/globalMerchantReducer.js +6 -0
- package/lib/esm/entity/insights/insightReducer.js +6 -0
- package/lib/esm/entity/invoicing/coupon/couponReducer.js +6 -0
- package/lib/esm/entity/invoicing/creditNote/creditNoteReducer.js +6 -0
- package/lib/esm/entity/invoicing/dunningCase/dunningCaseReducer.js +6 -0
- package/lib/esm/entity/invoicing/invoice/invoiceReducer.js +6 -0
- package/lib/esm/entity/invoicing/invoicingCustomer/invoicingCustomerReducer.js +6 -0
- package/lib/esm/entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer.js +6 -0
- package/lib/esm/entity/invoicing/invoicingTransaction/invoicingTransactionReducer.js +6 -0
- package/lib/esm/entity/invoicing/plan/planReducer.js +6 -0
- package/lib/esm/entity/invoicing/product/productReducer.js +6 -0
- package/lib/esm/entity/jeSchedules/jeSchedulesReducer.js +7 -0
- package/lib/esm/entity/merchant/merchantReducer.js +6 -0
- package/lib/esm/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +6 -0
- package/lib/esm/entity/notification/notificationReducer.js +6 -0
- package/lib/esm/entity/notificationRegistry/notificationRegistryReducer.js +14 -0
- package/lib/esm/entity/onboardingCustomer/onboardingCustomerReducer.js +6 -0
- package/lib/esm/entity/paymentAccount/paymentAccountReducer.js +6 -0
- package/lib/esm/entity/paymentInstrument/paymentInstrumentReducer.js +6 -0
- package/lib/esm/entity/portfolio/accountingSummary/accountingSummaryReducer.js +6 -0
- package/lib/esm/entity/project/projectReducer.js +6 -0
- package/lib/esm/entity/reimbursement/reimbursementReducer.js +6 -0
- package/lib/esm/entity/sectionAccountsView/sectionAccountsViewReducer.js +6 -0
- package/lib/esm/entity/sectionClassesViewV2/sectionClassesViewReducer.js +6 -0
- package/lib/esm/entity/sectionProjectView/sectionProjectViewReducer.js +6 -0
- package/lib/esm/entity/snackbar/snackbarApiError.js +22 -0
- package/lib/esm/entity/snackbar/snackbarReducer.js +6 -0
- package/lib/esm/entity/subscription/subscription/subscriptionReducer.js +6 -0
- package/lib/esm/entity/subscription/subscriptionAddOn/subscriptionAddOnReducer.js +6 -0
- package/lib/esm/entity/subscription/subscriptionCoupon/subscriptionCouponReducer.js +6 -0
- package/lib/esm/entity/subscription/subscriptionPlan/subscriptionPlanReducer.js +6 -0
- package/lib/esm/entity/subscription/subscriptionSummary/subscriptionSummaryReducer.js +6 -0
- package/lib/esm/entity/subscriptionPaymentAccount/subscriptionPaymentAccountReducer.js +6 -0
- package/lib/esm/entity/tag/tagReducer.js +6 -0
- package/lib/esm/entity/task/taskReducer.js +6 -0
- package/lib/esm/entity/taskGroup/taskGroupReducer.js +6 -0
- package/lib/esm/entity/taskGroupTemplate/taskGroupTemplateReducer.js +6 -0
- package/lib/esm/entity/taskSummary/taskSummaryReducer.js +6 -0
- package/lib/esm/entity/tenant/tenantReducer.js +12 -11
- package/lib/esm/entity/toastNotification/toastNotificationReducer.js +6 -0
- package/lib/esm/entity/transaction/transactionReducer.js +8 -0
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogReducer.js +6 -0
- package/lib/esm/entity/user/userReducer.js +6 -0
- package/lib/esm/entity/userGroups/userGroupsReducer.js +6 -0
- package/lib/esm/entity/userRole/userRoleReducer.js +6 -0
- package/lib/esm/entity/vendor/vendorReducer.js +6 -0
- package/lib/esm/entity/vendorExpense/vendorExpenseReducer.js +8 -0
- package/lib/esm/epic.js +1 -2
- package/lib/esm/index.js +3 -2
- package/lib/esm/rootActions.js +18 -0
- package/lib/esm/view/accountList/accountListReducer.js +6 -0
- package/lib/esm/view/accountMappingView/accountMappingReducer.js +6 -0
- package/lib/esm/view/addressView/addressViewReducer.js +6 -0
- package/lib/esm/view/aiAccountantView/aiAccountantViewReducer.js +4 -0
- package/lib/esm/view/aiAgentPerformance/aggregatedReportViewReducer.js +6 -0
- package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +6 -0
- package/lib/esm/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +6 -0
- package/lib/esm/view/apAgingView/apAgingReport/apAgingReducer.js +6 -0
- package/lib/esm/view/arAgingView/arAgingDetail/arAgingDetailReducer.js +6 -0
- package/lib/esm/view/arAgingView/arAgingReport/arAgingReducer.js +6 -0
- package/lib/esm/view/auditReportView/auditReportViewReducer.js +8 -0
- package/lib/esm/view/authenticationView/authenticationViewReducer.js +7 -0
- package/lib/esm/view/autoComplete/entityAutoCompleteReducer.js +7 -0
- package/lib/esm/view/balanceSheet/balanceSheetReducer.js +6 -0
- package/lib/esm/view/bankAccountView/bankAccountViewReducer.js +6 -0
- package/lib/esm/view/billPayCard/billPayCardReducer.js +6 -0
- package/lib/esm/view/cardBalance/cardBalanceReducer.js +6 -0
- package/lib/esm/view/cardPayment/cardPaymentViewReducer.js +6 -0
- package/lib/esm/view/cashBalance/cashBalanceReducer.js +6 -0
- package/lib/esm/view/cashFlow/cashFlowReducer.js +6 -0
- package/lib/esm/view/cashInCashOut/cashInCashOutReducer.js +6 -0
- package/lib/esm/view/cashPosition/cashPositionReducer.js +6 -0
- package/lib/esm/view/classList/classListReducer.js +6 -0
- package/lib/esm/view/commonVendorView/transactionVendorView/transactionVendorViewReducer.js +6 -0
- package/lib/esm/view/commonVendorView/vendorView/vendorViewReducer.js +6 -0
- package/lib/esm/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.js +6 -0
- package/lib/esm/view/companyConfigView/companyConfigReducer.js +6 -0
- package/lib/esm/view/companyHealthMetricView/companyHealthMetricConfigReducer.js +4 -0
- package/lib/esm/view/companyHealthMetricView/companyHealthMetricViewReducer.js +6 -0
- package/lib/esm/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +6 -0
- package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewReducer.js +6 -0
- package/lib/esm/view/companyView/companyViewReducer.js +6 -0
- package/lib/esm/view/createTransferEntry/createTransferEntryReducer.js +7 -1
- package/lib/esm/view/creditAgentView/creditAgentViewReducer.js +4 -0
- package/lib/esm/view/dashboard/dashboardReducer.js +4 -0
- package/lib/esm/view/dashboardLayout/dashboardLayoutReducer.js +6 -0
- package/lib/esm/view/expenseAutomationView/expenseAutomationViewReducer.js +9 -0
- package/lib/esm/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +6 -0
- package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +6 -0
- package/lib/esm/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +6 -0
- package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +6 -0
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +6 -0
- package/lib/esm/view/featureNotificationView/featureNotificationViewReducer.js +6 -0
- package/lib/esm/view/fileView/fileViewReducer.js +6 -0
- package/lib/esm/view/financeStatement/financeStatementReducer.js +6 -0
- package/lib/esm/view/forecastList/forecastListReducer.js +6 -0
- package/lib/esm/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer.js +7 -0
- package/lib/esm/view/globalMerchantView/globalMerchantViewReducer.js +6 -0
- package/lib/esm/view/insightsCard/insightsCardReducer.js +6 -0
- package/lib/esm/view/invoicing/auditView/auditViewReducer.js +6 -0
- package/lib/esm/view/invoicing/catalogAction/catalogActionReducer.js +6 -0
- package/lib/esm/view/invoicing/couponView/couponViewReducer.js +6 -0
- package/lib/esm/view/invoicing/createCreditNote/createCreditNoteEpic.js +2 -0
- package/lib/esm/view/invoicing/createCreditNote/createCreditNoteReducer.js +6 -0
- package/lib/esm/view/invoicing/createInvoice/createInvoiceEpic.js +2 -0
- package/lib/esm/view/invoicing/createInvoice/createInvoiceReducer.js +6 -0
- package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodReducer.js +6 -0
- package/lib/esm/view/invoicing/dataImportAction/dataImportActionReducer.js +6 -0
- package/lib/esm/view/invoicing/dataImportView/dataImportViewReducer.js +13 -0
- package/lib/esm/view/invoicing/discountAction/discountActionEpic.js +6 -3
- package/lib/esm/view/invoicing/discountAction/discountActionReducer.js +6 -0
- package/lib/esm/view/invoicing/dunningAction/dunningActionEpic.js +6 -3
- package/lib/esm/view/invoicing/dunningAction/dunningActionReducer.js +6 -0
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +3 -0
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/saveInvoicingCouponEpic.js +2 -0
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.js +2 -0
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +2 -0
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionEpic.js +2 -0
- package/lib/esm/view/invoicing/invoiceAction/invoiceActionReducer.js +6 -0
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailReducer.js +6 -0
- package/lib/esm/view/invoicing/invoiceList/invoiceListReducer.js +13 -0
- package/lib/esm/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingCreditNoteDetailView/invoicingCreditNoteDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingOverview/invoicingOverviewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingQboView/epics/retryInvoicingQboSyncTaskEpic.js +2 -0
- package/lib/esm/view/invoicing/invoicingQboView/epics/startInvoicingQboBackfillEpic.js +2 -0
- package/lib/esm/view/invoicing/invoicingQboView/invoicingQboViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingTransactionDetailView/invoicingTransactionDetailViewReducer.js +6 -0
- package/lib/esm/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer.js +9 -0
- package/lib/esm/view/invoicing/issueCreditNote/issueCreditNoteEpic.js +2 -0
- package/lib/esm/view/invoicing/issueCreditNote/issueCreditNoteReducer.js +6 -0
- package/lib/esm/view/invoicing/paymentAction/paymentActionReducer.js +6 -0
- package/lib/esm/view/invoicing/promotionalCreditAction/promotionalCreditActionReducer.js +6 -0
- package/lib/esm/view/invoicing/recordPayment/recordPaymentEpic.js +3 -0
- package/lib/esm/view/invoicing/recordPayment/recordPaymentReducer.js +6 -0
- package/lib/esm/view/invoicing/settingsView/settingsViewEpics.js +6 -3
- package/lib/esm/view/invoicing/settingsView/settingsViewReducer.js +6 -0
- package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +52 -0
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionEpic.js +6 -3
- package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionReducer.js +6 -0
- package/lib/esm/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +6 -0
- package/lib/esm/view/netBurnOrIncome/netBurnOrIncomeReducer.js +6 -0
- package/lib/esm/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +6 -0
- package/lib/esm/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewReducer.js +6 -0
- package/lib/esm/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +6 -0
- package/lib/esm/view/notificationPreferencesView/notificationPreferencesViewReducer.js +25 -0
- package/lib/esm/view/notificationView/notificationViewReducer.js +6 -0
- package/lib/esm/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +6 -0
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewReducer.js +4 -0
- package/lib/esm/view/opEx/opExReducer.js +6 -0
- package/lib/esm/view/opExByVendor/opExByVendorReducer.js +6 -0
- package/lib/esm/view/opExClassesView/opExClassesViewReducer.js +6 -0
- package/lib/esm/view/opExProjectView/opExProjectViewReducer.js +6 -0
- package/lib/esm/view/ownerList/ownerListReducer.js +6 -0
- package/lib/esm/view/people/peopleReducer.js +6 -0
- package/lib/esm/view/profitAndLoss/profitAndLossReducer.js +6 -0
- package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +6 -0
- package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +6 -0
- package/lib/esm/view/projectList/projectListReducer.js +6 -0
- package/lib/esm/view/recommendation/recommendationReducer.js +6 -0
- package/lib/esm/view/referralView/referralReducer.js +6 -0
- package/lib/esm/view/reimbursementCard/reimbursementCardReducer.js +6 -0
- package/lib/esm/view/reportUIOptions/reportUIOptionsReducer.js +6 -0
- package/lib/esm/view/reportsResync/reportsResyncReducer.js +6 -0
- package/lib/esm/view/revenue/revenueReducer.js +6 -0
- package/lib/esm/view/revenueClassesView/revenueClassesViewReducer.js +6 -0
- package/lib/esm/view/revenueProjectView/revenueProjectViewReducer.js +6 -0
- package/lib/esm/view/reviewCompanyView/reviewCompanyViewReducer.js +6 -0
- package/lib/esm/view/scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailReducer.js +6 -0
- package/lib/esm/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +6 -0
- package/lib/esm/view/scheduleView/scheduleListView/scheduleListReducer.js +6 -0
- package/lib/esm/view/settingsView/settingsViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/billDetailView/billDetailViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/billList/billListReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/billPaySetupView/billPaySetupViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/internationalWire/internationalWireReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/magicLinkView/magicLinkViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/previousBills/previousBillsReducer.js +6 -0
- package/lib/esm/view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +4 -0
- package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/chargeCardStatementList/chargeCardStatementListReducer.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +6 -0
- package/lib/esm/view/spendManagement/commonHistoryView/commonHistoryReducer.js +6 -0
- package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +4 -0
- package/lib/esm/view/spendManagement/merchantList/merchantListReducer.js +6 -0
- package/lib/esm/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/realTimeApprovalView/realTimeApprovalReducer.js +6 -0
- package/lib/esm/view/spendManagement/reimbursement/editRemiView/editRemiViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigReducer.js +6 -0
- package/lib/esm/view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/reimbursement/remiListView/remiListReducer.js +6 -0
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/reimbursement/remiSetupView/remiSetupViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +6 -0
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer.js +6 -0
- package/lib/esm/view/spendManagement/treasury/treasuryTaxLetterList/treasuryTaxLetterListReducer.js +6 -0
- package/lib/esm/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer.js +6 -0
- package/lib/esm/view/spendManagement/zeniAccounts/checkDeposit/checkDepositReducer.js +6 -0
- package/lib/esm/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailReducer.js +6 -0
- package/lib/esm/view/spendManagement/zeniAccounts/depositAccountList/depositAccountListReducer.js +6 -0
- package/lib/esm/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListReducer.js +6 -0
- package/lib/esm/view/spendManagement/zeniAccounts/expressPay/expressPayReducer.js +6 -0
- package/lib/esm/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer.js +6 -0
- package/lib/esm/view/spendManagement/zeniAccounts/transferDetail/transferDetailReducer.js +6 -0
- package/lib/esm/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer.js +6 -0
- package/lib/esm/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer.js +6 -0
- package/lib/esm/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +6 -0
- package/lib/esm/view/subscriptionView/subscriptionViewReducer.js +6 -0
- package/lib/esm/view/tagView/tagViewReducer.js +6 -0
- package/lib/esm/view/taskManager/cannedResponsesView/cannedResponsesReducer.js +4 -0
- package/lib/esm/view/taskManager/taskDetailView/taskDetailReducer.js +6 -0
- package/lib/esm/view/taskManager/taskGroupTemplateView/taskGroupTemplateViewReducer.js +6 -0
- package/lib/esm/view/taskManager/taskGroupView/taskGroupViewReducer.js +6 -0
- package/lib/esm/view/taskManager/taskListView/taskListReducer.js +4 -0
- package/lib/esm/view/tasksCard/tasksCardReducer.js +6 -0
- package/lib/esm/view/topEx/topExReducer.js +6 -0
- package/lib/esm/view/transactionActivityLogView/transactionActivityLogViewReducer.js +6 -0
- package/lib/esm/view/transactionDetail/transactionDetailReducer.js +6 -0
- package/lib/esm/view/transactionList/transactionListReducer.js +6 -0
- package/lib/esm/view/trend/trendReducer.js +6 -0
- package/lib/esm/view/trendWithTransactions/trendWithTransactionsReducer.js +6 -0
- package/lib/esm/view/twoFactorAuthentication/twoFactorAuthenticationReducer.js +6 -0
- package/lib/esm/view/userFinancialAccount/userFinancialAccountReducer.js +6 -0
- package/lib/esm/view/userGroupListView/userGroupListViewReducer.js +6 -0
- package/lib/esm/view/userListView/userListViewReducer.js +6 -0
- package/lib/esm/view/userRoleConfigView/userRoleConfigReducer.js +6 -0
- package/lib/esm/view/vendor1099TypeList/vendor1099TypeListReducer.js +6 -0
- package/lib/esm/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.js +6 -0
- package/lib/esm/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.js +4 -0
- package/lib/esm/view/vendorList/vendorListReducer.js +6 -0
- package/lib/esm/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +6 -0
- package/lib/esm/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewReducer.js +6 -0
- package/lib/esm/view/vendorTabView/vendorTabViewReducer.js +6 -0
- package/lib/esm/view/vendorTypeList/vendorTypeListReducer.js +6 -0
- package/lib/esm/view/zeniAccStatementList/zeniAccStatementListReducer.js +6 -0
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +6 -0
- package/lib/esm/view/zeniOAuthView/zeniOAuthReducer.js +4 -0
- package/lib/index.d.ts +4 -3
- package/lib/index.js +5 -3
- package/lib/rootActions.d.ts +17 -0
- package/lib/rootActions.js +21 -0
- package/lib/view/accountList/accountListReducer.js +6 -0
- package/lib/view/accountMappingView/accountMappingReducer.js +6 -0
- package/lib/view/addressView/addressViewReducer.js +6 -0
- package/lib/view/aiAccountantView/aiAccountantViewReducer.js +4 -0
- package/lib/view/aiAgentPerformance/aggregatedReportViewReducer.js +6 -0
- package/lib/view/aiCfoView/aiCfoViewReducer.js +6 -0
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +6 -0
- package/lib/view/apAgingView/apAgingReport/apAgingReducer.js +6 -0
- package/lib/view/arAgingView/arAgingDetail/arAgingDetailReducer.js +6 -0
- package/lib/view/arAgingView/arAgingReport/arAgingReducer.js +6 -0
- package/lib/view/auditReportView/auditReportViewReducer.js +8 -0
- package/lib/view/authenticationView/authenticationViewReducer.js +7 -0
- package/lib/view/autoComplete/entityAutoCompleteReducer.js +7 -0
- package/lib/view/balanceSheet/balanceSheetReducer.js +6 -0
- package/lib/view/bankAccountView/bankAccountViewReducer.js +6 -0
- package/lib/view/billPayCard/billPayCardReducer.js +6 -0
- package/lib/view/cardBalance/cardBalanceReducer.js +6 -0
- package/lib/view/cardPayment/cardPaymentViewReducer.js +6 -0
- package/lib/view/cashBalance/cashBalanceReducer.js +6 -0
- package/lib/view/cashFlow/cashFlowReducer.js +6 -0
- package/lib/view/cashInCashOut/cashInCashOutReducer.js +6 -0
- package/lib/view/cashPosition/cashPositionReducer.js +6 -0
- package/lib/view/classList/classListReducer.js +6 -0
- package/lib/view/common/recurringViewHelper.d.ts +2 -2
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewReducer.js +6 -0
- package/lib/view/commonVendorView/vendorView/vendorViewReducer.js +6 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.js +6 -0
- package/lib/view/companyConfigView/companyConfigReducer.js +6 -0
- package/lib/view/companyHealthMetricView/companyHealthMetricConfigReducer.js +4 -0
- package/lib/view/companyHealthMetricView/companyHealthMetricViewReducer.js +6 -0
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +6 -0
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.js +6 -0
- package/lib/view/companyView/companyViewReducer.js +6 -0
- package/lib/view/companyView/types/cockpitTypes.d.ts +3 -3
- package/lib/view/createTransferEntry/createTransferEntryReducer.js +7 -1
- package/lib/view/creditAgentView/creditAgentViewReducer.js +4 -0
- package/lib/view/dashboard/dashboardReducer.js +4 -0
- package/lib/view/dashboardLayout/dashboardLayoutReducer.js +6 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +9 -0
- package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +6 -0
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +11 -11
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +6 -0
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +6 -0
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +6 -0
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +6 -0
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +3 -3
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +2 -2
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -2
- package/lib/view/featureNotificationView/featureNotificationViewReducer.js +6 -0
- package/lib/view/fileView/fileViewReducer.js +6 -0
- package/lib/view/financeStatement/financeStatementReducer.js +6 -0
- package/lib/view/forecastList/forecastListReducer.js +6 -0
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer.js +7 -0
- package/lib/view/globalMerchantView/globalMerchantViewReducer.js +6 -0
- package/lib/view/insightsCard/insightsCardReducer.js +6 -0
- package/lib/view/invoicing/auditView/auditViewReducer.js +6 -0
- package/lib/view/invoicing/catalogAction/catalogActionReducer.js +6 -0
- package/lib/view/invoicing/couponView/couponViewReducer.js +6 -0
- package/lib/view/invoicing/createCreditNote/createCreditNoteEpic.js +2 -0
- package/lib/view/invoicing/createCreditNote/createCreditNoteReducer.js +6 -0
- package/lib/view/invoicing/createInvoice/createInvoiceEpic.js +2 -0
- package/lib/view/invoicing/createInvoice/createInvoiceReducer.js +6 -0
- package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodReducer.js +6 -0
- package/lib/view/invoicing/dataImportAction/dataImportActionReducer.js +6 -0
- package/lib/view/invoicing/dataImportView/dataImportViewReducer.js +13 -0
- package/lib/view/invoicing/discountAction/discountActionEpic.js +5 -2
- package/lib/view/invoicing/discountAction/discountActionReducer.js +6 -0
- package/lib/view/invoicing/dunningAction/dunningActionEpic.js +5 -2
- package/lib/view/invoicing/dunningAction/dunningActionReducer.js +6 -0
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewReducer.js +6 -0
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +3 -0
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js +6 -0
- package/lib/view/invoicing/editInvoicingCouponDetailView/saveInvoicingCouponEpic.js +2 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +6 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.js +2 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.js +6 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +2 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionEpic.js +2 -0
- package/lib/view/invoicing/invoiceAction/invoiceActionReducer.js +6 -0
- package/lib/view/invoicing/invoiceDetail/invoiceDetailReducer.js +6 -0
- package/lib/view/invoicing/invoiceList/invoiceListReducer.js +13 -0
- package/lib/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewState.d.ts +1 -1
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingCreditNoteDetailView/invoicingCreditNoteDetailViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewState.d.ts +1 -1
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.d.ts +1 -1
- package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.d.ts +1 -1
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewReducer.js +6 -0
- package/lib/view/invoicing/invoicingQboView/epics/retryInvoicingQboSyncTaskEpic.js +2 -0
- package/lib/view/invoicing/invoicingQboView/epics/startInvoicingQboBackfillEpic.js +2 -0
- package/lib/view/invoicing/invoicingQboView/invoicingQboViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.d.ts +1 -1
- package/lib/view/invoicing/invoicingTransactionDetailView/invoicingTransactionDetailViewReducer.js +6 -0
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer.js +9 -0
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState.d.ts +1 -1
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteEpic.js +2 -0
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteReducer.js +6 -0
- package/lib/view/invoicing/paymentAction/paymentActionReducer.js +6 -0
- package/lib/view/invoicing/promotionalCreditAction/promotionalCreditActionReducer.js +6 -0
- package/lib/view/invoicing/recordPayment/recordPaymentEpic.js +3 -0
- package/lib/view/invoicing/recordPayment/recordPaymentReducer.js +6 -0
- package/lib/view/invoicing/settingsView/settingsViewEpics.js +5 -2
- package/lib/view/invoicing/settingsView/settingsViewReducer.js +6 -0
- package/lib/view/invoicing/settingsView/settingsViewSelector.d.ts +41 -1
- package/lib/view/invoicing/settingsView/settingsViewSelector.js +55 -1
- package/lib/view/invoicing/subscriptionAction/subscriptionActionEpic.js +5 -2
- package/lib/view/invoicing/subscriptionAction/subscriptionActionReducer.js +6 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +6 -0
- package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +6 -0
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +6 -0
- package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewReducer.js +6 -0
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +6 -0
- package/lib/view/notificationPreferencesView/epics/saveNotificationPreferencesEpic.d.ts +3 -3
- package/lib/view/notificationPreferencesView/notificationPreferencesViewReducer.js +25 -0
- package/lib/view/notificationView/notificationViewReducer.d.ts +4 -4
- package/lib/view/notificationView/notificationViewReducer.js +6 -0
- package/lib/view/notificationView/notificationViewState.d.ts +2 -2
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +6 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +4 -0
- package/lib/view/opEx/opExReducer.js +6 -0
- package/lib/view/opExByVendor/opExByVendorReducer.js +6 -0
- package/lib/view/opExByVendor/opExByVendorState.d.ts +1 -1
- package/lib/view/opExClassesView/opExClassesViewReducer.js +6 -0
- package/lib/view/opExProjectView/opExProjectViewReducer.js +6 -0
- package/lib/view/ownerList/ownerListReducer.js +6 -0
- package/lib/view/people/peopleReducer.js +6 -0
- package/lib/view/profitAndLoss/profitAndLossReducer.js +6 -0
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +6 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +6 -0
- package/lib/view/projectList/projectListReducer.js +6 -0
- package/lib/view/recommendation/recommendationReducer.js +6 -0
- package/lib/view/referralView/referralReducer.js +6 -0
- package/lib/view/referralView/referralState.d.ts +1 -1
- package/lib/view/reimbursementCard/reimbursementCardReducer.js +6 -0
- package/lib/view/reportUIOptions/reportUIOptionsReducer.js +6 -0
- package/lib/view/reportsResync/reportsResyncReducer.js +6 -0
- package/lib/view/revenue/revenueReducer.js +6 -0
- package/lib/view/revenueClassesView/revenueClassesViewReducer.js +6 -0
- package/lib/view/revenueProjectView/revenueProjectViewReducer.js +6 -0
- package/lib/view/reviewCompanyView/reviewCompanyViewReducer.js +6 -0
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
- package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
- package/lib/view/scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailReducer.js +6 -0
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +6 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListReducer.js +6 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/settingsView/settingsViewReducer.js +6 -0
- package/lib/view/settingsView/settingsViewState.d.ts +1 -1
- package/lib/view/spendManagement/autotransferRules/autoTransferRulesReducer.js +6 -0
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.js +6 -0
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.js +6 -0
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +6 -0
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewReducer.js +6 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +6 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewReducer.js +6 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.js +6 -0
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +6 -0
- package/lib/view/spendManagement/billPay/internationalWire/internationalWireReducer.js +6 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +6 -0
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewReducer.js +6 -0
- package/lib/view/spendManagement/billPay/previousBills/previousBillsReducer.js +6 -0
- package/lib/view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +4 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/chargeCardStatementList/chargeCardStatementListReducer.js +6 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +6 -0
- package/lib/view/spendManagement/commonHistoryView/commonHistoryReducer.js +6 -0
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +4 -0
- package/lib/view/spendManagement/merchantList/merchantListReducer.js +6 -0
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +6 -0
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalReducer.js +6 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewReducer.js +6 -0
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigReducer.js +6 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer.js +6 -0
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +6 -0
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +4 -4
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +6 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewReducer.js +6 -0
- package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.js +6 -0
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +6 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +6 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer.js +6 -0
- package/lib/view/spendManagement/treasury/treasuryTaxLetterList/treasuryTaxLetterListReducer.js +6 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer.js +6 -0
- package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositReducer.js +6 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailReducer.js +6 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/depositAccountListReducer.js +6 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListReducer.js +6 -0
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPayReducer.js +6 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer.js +6 -0
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailReducer.js +6 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer.js +6 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer.js +6 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +6 -0
- package/lib/view/subscriptionView/subscriptionViewReducer.js +6 -0
- package/lib/view/tagView/tagViewReducer.js +6 -0
- package/lib/view/taskManager/cannedResponsesView/cannedResponsesReducer.js +4 -0
- package/lib/view/taskManager/taskDetailView/taskDetailReducer.js +6 -0
- package/lib/view/taskManager/taskGroupTemplateView/taskGroupTemplateViewReducer.js +6 -0
- package/lib/view/taskManager/taskGroupView/taskGroupViewReducer.js +6 -0
- package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
- package/lib/view/taskManager/taskListView/taskListReducer.js +4 -0
- package/lib/view/tasksCard/tasksCardReducer.js +6 -0
- package/lib/view/topEx/topExReducer.js +6 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewReducer.js +6 -0
- package/lib/view/transactionDetail/journalEntryLinesViewModel.d.ts +1 -1
- package/lib/view/transactionDetail/transactionDetailReducer.js +6 -0
- package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
- package/lib/view/transactionList/transactionListReducer.js +6 -0
- package/lib/view/trend/trendReducer.js +6 -0
- package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +6 -0
- package/lib/view/twoFactorAuthentication/twoFactorAuthenticationReducer.js +6 -0
- package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +6 -0
- package/lib/view/userGroupListView/userGroupListViewReducer.js +6 -0
- package/lib/view/userListView/userListViewReducer.js +6 -0
- package/lib/view/userRoleConfigView/userRoleConfigReducer.js +6 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.js +6 -0
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.js +6 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.js +4 -0
- package/lib/view/vendorList/vendorListReducer.js +6 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +6 -0
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewReducer.js +6 -0
- package/lib/view/vendorTabView/vendorTabViewReducer.js +6 -0
- package/lib/view/vendorTypeList/vendorTypeListReducer.js +6 -0
- package/lib/view/zeniAccStatementList/zeniAccStatementListReducer.js +6 -0
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +6 -0
- package/lib/view/zeniOAuthView/zeniOAuthReducer.js +4 -0
- package/package.json +1 -1
- package/lib/entity/tenant/clearAllEpic.d.ts +0 -287
- package/lib/entity/tenant/clearAllEpic.js +0 -584
- package/lib/esm/entity/tenant/clearAllEpic.js +0 -580
|
@@ -4,6 +4,7 @@ exports.saveInvoicingSettingsEpic = exports.disconnectInvoicingStripeEpic = expo
|
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const addressReducer_1 = require("../../../entity/address/addressReducer");
|
|
7
|
+
const snackbarApiError_1 = require("../../../entity/snackbar/snackbarApiError");
|
|
7
8
|
const snackbarReducer_1 = require("../../../entity/snackbar/snackbarReducer");
|
|
8
9
|
const responsePayload_1 = require("../../../responsePayload");
|
|
9
10
|
const settingsViewReducer_1 = require("./settingsViewReducer");
|
|
@@ -65,13 +66,15 @@ exports.disconnectInvoicingStripeEpic = disconnectInvoicingStripeEpic;
|
|
|
65
66
|
const saveInvoicingSettingsEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(settingsViewReducer_1.saveInvoicingSettings.match), (0, operators_1.mergeMap)((action) => {
|
|
66
67
|
const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/settings`;
|
|
67
68
|
const { settings, snackbarSection } = action.payload;
|
|
68
|
-
|
|
69
|
+
/** `status` surfaces the platform's error text; omit it to keep the generic copy. */
|
|
70
|
+
const snackbar = (messageText, status) => snackbarSection == null
|
|
69
71
|
? []
|
|
70
72
|
: [
|
|
71
73
|
(0, snackbarReducer_1.openSnackbar)({
|
|
72
74
|
messageSection: snackbarSection,
|
|
73
75
|
messageText,
|
|
74
76
|
type: messageText === 'success' ? 'success' : 'error',
|
|
77
|
+
variables: (0, snackbarApiError_1.apiErrorSnackbarVariables)(status),
|
|
75
78
|
}),
|
|
76
79
|
];
|
|
77
80
|
return zeniAPI
|
|
@@ -85,7 +88,7 @@ const saveInvoicingSettingsEpic = (actions$, _state$, zeniAPI) => actions$.pipe(
|
|
|
85
88
|
}
|
|
86
89
|
return (0, rxjs_1.from)([
|
|
87
90
|
(0, settingsViewReducer_1.saveInvoicingSettingsFailure)(response.status),
|
|
88
|
-
...snackbar('failed'),
|
|
91
|
+
...snackbar('failed', response.status),
|
|
89
92
|
]);
|
|
90
93
|
}), (0, operators_1.catchError)((error) => (0, rxjs_1.from)([
|
|
91
94
|
(0, settingsViewReducer_1.saveInvoicingSettingsFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Save settings REST API call errored out ' +
|
|
@@ -3,6 +3,7 @@ var _a;
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.clearInvoicingSettings = exports.invoicingStripeConnectionFailure = exports.updateInvoicingStripeConnection = exports.disconnectInvoicingStripe = exports.connectInvoicingStripe = exports.resetInvoicingBrandingFormDraft = exports.submitInvoicingBrandingForm = exports.updateInvoicingBrandingFormDraft = exports.resetSaveInvoicingSettings = exports.saveInvoicingSettingsFailure = exports.saveInvoicingSettingsSuccess = exports.saveInvoicingSettings = exports.updateInvoicingSettingsFailure = exports.updateInvoicingSettings = exports.fetchInvoicingSettings = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
const rootActions_1 = require("../../../rootActions");
|
|
6
7
|
exports.initialState = {
|
|
7
8
|
fetchState: 'Not-Started',
|
|
8
9
|
error: undefined,
|
|
@@ -85,6 +86,11 @@ const settingsView = (0, toolkit_1.createSlice)({
|
|
|
85
86
|
Object.assign(draft, exports.initialState);
|
|
86
87
|
},
|
|
87
88
|
},
|
|
89
|
+
extraReducers: (builder) => {
|
|
90
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
91
|
+
Object.assign(draft, exports.initialState);
|
|
92
|
+
});
|
|
93
|
+
},
|
|
88
94
|
});
|
|
89
95
|
_a = settingsView.actions, exports.fetchInvoicingSettings = _a.fetchInvoicingSettings, exports.updateInvoicingSettings = _a.updateInvoicingSettings, exports.updateInvoicingSettingsFailure = _a.updateInvoicingSettingsFailure, exports.saveInvoicingSettings = _a.saveInvoicingSettings, exports.saveInvoicingSettingsSuccess = _a.saveInvoicingSettingsSuccess, exports.saveInvoicingSettingsFailure = _a.saveInvoicingSettingsFailure, exports.resetSaveInvoicingSettings = _a.resetSaveInvoicingSettings, exports.updateInvoicingBrandingFormDraft = _a.updateInvoicingBrandingFormDraft, exports.submitInvoicingBrandingForm = _a.submitInvoicingBrandingForm, exports.resetInvoicingBrandingFormDraft = _a.resetInvoicingBrandingFormDraft, exports.connectInvoicingStripe = _a.connectInvoicingStripe, exports.disconnectInvoicingStripe = _a.disconnectInvoicingStripe, exports.updateInvoicingStripeConnection = _a.updateInvoicingStripeConnection, exports.invoicingStripeConnectionFailure = _a.invoicingStripeConnectionFailure, exports.clearInvoicingSettings = _a.clearInvoicingSettings;
|
|
90
96
|
exports.default = settingsView.reducer;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FetchState, FetchStateAndError } from '../../../commonStateTypes/common';
|
|
2
|
-
import { InvoicingNamedOption, InvoicingSettingsPayload } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
2
|
+
import { InvoicingNamedOption, InvoicingQboAccountMappingKindOption, InvoicingSettingsPayload } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
3
3
|
import { RootState } from '../../../reducer';
|
|
4
4
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
5
|
+
import { InvoicingOnboardingStatus } from '../invoicingConfigView/invoicingConfigViewPayload';
|
|
5
6
|
import { InvoicingBrandingFormLocalData } from './invoicingBrandingFormConfig';
|
|
6
7
|
/**
|
|
7
8
|
* Shared primitive: the raw invoicing settings. Consumed internally by other
|
|
@@ -27,6 +28,45 @@ export interface InvoicingSettingsView {
|
|
|
27
28
|
* Stripe-connect fetch state.
|
|
28
29
|
*/
|
|
29
30
|
export declare const getInvoicingSettingsView: (state: RootState) => InvoicingSettingsView;
|
|
31
|
+
export interface InvoicingEnablePrerequisites {
|
|
32
|
+
canEnable: boolean;
|
|
33
|
+
isQboConfigured: boolean;
|
|
34
|
+
isStripeConnected: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Gates the Enable Invoicing action: payments must be able to land (Stripe
|
|
38
|
+
* connected *and* accepting charges) and the QBO accounting step must be
|
|
39
|
+
* finished, so an enabled tenant can always book what it invoices.
|
|
40
|
+
*
|
|
41
|
+
* Deliberately not part of `deriveInvoicingOnboardingStatus`, which routes the
|
|
42
|
+
* module off the config flags alone. Folding these in there would (a) demote a
|
|
43
|
+
* live tenant to the settings tree the moment an integration broke, stranding
|
|
44
|
+
* its existing invoices, and (b) deadlock the route gate, which fetches only the
|
|
45
|
+
* config — never the settings or QBO connection these read.
|
|
46
|
+
*/
|
|
47
|
+
export declare function deriveInvoicingEnablePrerequisites(settings: InvoicingSettingsPayload | undefined, isQboConnected: boolean, qboAccountMappingKindOptions: InvoicingQboAccountMappingKindOption[]): InvoicingEnablePrerequisites;
|
|
48
|
+
export interface InvoicingSettingsHubView {
|
|
49
|
+
canEnableInvoicing: boolean;
|
|
50
|
+
isEnablingInvoicing: boolean;
|
|
51
|
+
isQboConfigured: boolean;
|
|
52
|
+
isStripeConnected: boolean;
|
|
53
|
+
status?: InvoicingOnboardingStatus;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The settings hub's composite of everything it derives from the store: whether
|
|
57
|
+
* to offer Enable Invoicing at all, the in-flight flag for that action, and the
|
|
58
|
+
* two integration prerequisites kept separate so the hub can name the step still
|
|
59
|
+
* outstanding instead of showing a dead button.
|
|
60
|
+
*
|
|
61
|
+
* `canEnableInvoicing` folds in the onboarding step, so the screen does not need
|
|
62
|
+
* to re-check it: the footer is only offered mid-onboarding and only once both
|
|
63
|
+
* integrations are ready.
|
|
64
|
+
*
|
|
65
|
+
* Deliberately not folded into `getInvoicingConfigView`: that selector gates
|
|
66
|
+
* every invoicing route and stays a pure read of the config slice. The settings
|
|
67
|
+
* and QBO slices read here are only fetched once a settings screen is mounted.
|
|
68
|
+
*/
|
|
69
|
+
export declare const getInvoicingSettingsHubView: (state: RootState) => InvoicingSettingsHubView;
|
|
30
70
|
export interface InvoicingBrandingFormView {
|
|
31
71
|
dateFormatOptions: InvoicingNamedOption[];
|
|
32
72
|
localData: InvoicingBrandingFormLocalData;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getInvoicingBrandingFormView = exports.getInvoicingSettingsView = exports.getInvoicingSettingsFetchState = exports.getInvoicingSettings = void 0;
|
|
3
|
+
exports.getInvoicingBrandingFormView = exports.getInvoicingSettingsHubView = exports.getInvoicingSettingsView = exports.getInvoicingSettingsFetchState = exports.getInvoicingSettings = void 0;
|
|
4
|
+
exports.deriveInvoicingEnablePrerequisites = deriveInvoicingEnablePrerequisites;
|
|
5
|
+
const invoicingCommonPayload_1 = require("../../../entity/invoicing/invoicingCommonPayload");
|
|
4
6
|
const addressViewSelector_1 = require("../../addressView/addressViewSelector");
|
|
5
7
|
const invoicingConfigViewSelector_1 = require("../invoicingConfigView/invoicingConfigViewSelector");
|
|
6
8
|
const invoicingBrandingFormConfig_1 = require("./invoicingBrandingFormConfig");
|
|
@@ -36,6 +38,58 @@ const getInvoicingSettingsView = (state) => {
|
|
|
36
38
|
};
|
|
37
39
|
};
|
|
38
40
|
exports.getInvoicingSettingsView = getInvoicingSettingsView;
|
|
41
|
+
/**
|
|
42
|
+
* Gates the Enable Invoicing action: payments must be able to land (Stripe
|
|
43
|
+
* connected *and* accepting charges) and the QBO accounting step must be
|
|
44
|
+
* finished, so an enabled tenant can always book what it invoices.
|
|
45
|
+
*
|
|
46
|
+
* Deliberately not part of `deriveInvoicingOnboardingStatus`, which routes the
|
|
47
|
+
* module off the config flags alone. Folding these in there would (a) demote a
|
|
48
|
+
* live tenant to the settings tree the moment an integration broke, stranding
|
|
49
|
+
* its existing invoices, and (b) deadlock the route gate, which fetches only the
|
|
50
|
+
* config — never the settings or QBO connection these read.
|
|
51
|
+
*/
|
|
52
|
+
function deriveInvoicingEnablePrerequisites(settings, isQboConnected, qboAccountMappingKindOptions) {
|
|
53
|
+
const isStripeConnected = settings?.stripe_connected === true &&
|
|
54
|
+
settings.stripe_account?.charges_enabled === true;
|
|
55
|
+
const accountMappings = settings?.qbo?.account_mappings ?? undefined;
|
|
56
|
+
// An empty option list means the config has not landed yet — treating that as
|
|
57
|
+
// configured would let `every` pass vacuously and unlock the button early.
|
|
58
|
+
const isQboConfigured = isQboConnected &&
|
|
59
|
+
qboAccountMappingKindOptions.length > 0 &&
|
|
60
|
+
qboAccountMappingKindOptions.every((option) => (0, invoicingCommonPayload_1.getInvoicingQboAccountMappingId)(accountMappings, option.code) != null);
|
|
61
|
+
return {
|
|
62
|
+
canEnable: isStripeConnected && isQboConfigured,
|
|
63
|
+
isQboConfigured,
|
|
64
|
+
isStripeConnected,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The settings hub's composite of everything it derives from the store: whether
|
|
69
|
+
* to offer Enable Invoicing at all, the in-flight flag for that action, and the
|
|
70
|
+
* two integration prerequisites kept separate so the hub can name the step still
|
|
71
|
+
* outstanding instead of showing a dead button.
|
|
72
|
+
*
|
|
73
|
+
* `canEnableInvoicing` folds in the onboarding step, so the screen does not need
|
|
74
|
+
* to re-check it: the footer is only offered mid-onboarding and only once both
|
|
75
|
+
* integrations are ready.
|
|
76
|
+
*
|
|
77
|
+
* Deliberately not folded into `getInvoicingConfigView`: that selector gates
|
|
78
|
+
* every invoicing route and stays a pure read of the config slice. The settings
|
|
79
|
+
* and QBO slices read here are only fetched once a settings screen is mounted.
|
|
80
|
+
*/
|
|
81
|
+
const getInvoicingSettingsHubView = (state) => {
|
|
82
|
+
const { enableState, qboAccountMappingKindOptions, status } = (0, invoicingConfigViewSelector_1.getInvoicingConfigView)(state);
|
|
83
|
+
const { canEnable, isQboConfigured, isStripeConnected } = deriveInvoicingEnablePrerequisites(state.invoicingSettingsViewState.settings, state.invoicingQboViewState.connection?.connected === true, qboAccountMappingKindOptions);
|
|
84
|
+
return {
|
|
85
|
+
canEnableInvoicing: status === 'settings' && canEnable,
|
|
86
|
+
isEnablingInvoicing: enableState.fetchState === 'In-Progress',
|
|
87
|
+
isQboConfigured,
|
|
88
|
+
isStripeConnected,
|
|
89
|
+
status,
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
exports.getInvoicingSettingsHubView = getInvoicingSettingsHubView;
|
|
39
93
|
/**
|
|
40
94
|
* Bundled view for the branding settings form: the draft `localData` (seeded
|
|
41
95
|
* from the existing settings until the user edits), the business-address label
|
|
@@ -6,6 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const addressReducer_1 = require("../../../entity/address/addressReducer");
|
|
7
7
|
const invoicingSubscriptionPayload_1 = require("../../../entity/invoicing/invoicingSubscription/invoicingSubscriptionPayload");
|
|
8
8
|
const invoicingSubscriptionReducer_1 = require("../../../entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer");
|
|
9
|
+
const snackbarApiError_1 = require("../../../entity/snackbar/snackbarApiError");
|
|
9
10
|
const snackbarReducer_1 = require("../../../entity/snackbar/snackbarReducer");
|
|
10
11
|
const responsePayload_1 = require("../../../responsePayload");
|
|
11
12
|
const subscriptionActionReducer_1 = require("./subscriptionActionReducer");
|
|
@@ -27,13 +28,15 @@ const runInvoicingSubscriptionActionEpic = (actions$, _state$, zeniAPI) => actio
|
|
|
27
28
|
const { action: kind, body, id } = action.payload;
|
|
28
29
|
const requestBody = { action: kind, ...(body ?? {}) };
|
|
29
30
|
const snackbarSection = SNACKBAR_SECTION_BY_ACTION[kind];
|
|
30
|
-
|
|
31
|
+
/** `status` surfaces the platform's error text; omit it to keep the generic copy. */
|
|
32
|
+
const snackbar = (messageText, status) => snackbarSection == null
|
|
31
33
|
? []
|
|
32
34
|
: [
|
|
33
35
|
(0, snackbarReducer_1.openSnackbar)({
|
|
34
36
|
messageSection: snackbarSection,
|
|
35
37
|
messageText,
|
|
36
38
|
type: messageText === 'success' ? 'success' : 'error',
|
|
39
|
+
variables: (0, snackbarApiError_1.apiErrorSnackbarVariables)(status),
|
|
37
40
|
}),
|
|
38
41
|
];
|
|
39
42
|
const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/subscriptions/${encodeURIComponent(id)}/actions`;
|
|
@@ -53,7 +56,7 @@ const runInvoicingSubscriptionActionEpic = (actions$, _state$, zeniAPI) => actio
|
|
|
53
56
|
error: response.status,
|
|
54
57
|
id,
|
|
55
58
|
}),
|
|
56
|
-
...snackbar('failed'),
|
|
59
|
+
...snackbar('failed', response.status),
|
|
57
60
|
]);
|
|
58
61
|
}), (0, operators_1.catchError)((error) => (0, rxjs_1.from)([
|
|
59
62
|
(0, subscriptionActionReducer_1.runInvoicingSubscriptionActionFailure)({
|
|
@@ -3,6 +3,7 @@ var _a;
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.clearAllInvoicingSubscriptionActions = exports.clearInvoicingSubscriptionAction = exports.runInvoicingSubscriptionActionFailure = exports.runInvoicingSubscriptionActionSuccess = exports.runInvoicingSubscriptionAction = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
const rootActions_1 = require("../../../rootActions");
|
|
6
7
|
exports.initialState = {
|
|
7
8
|
byId: {},
|
|
8
9
|
};
|
|
@@ -35,6 +36,11 @@ const subscriptionAction = (0, toolkit_1.createSlice)({
|
|
|
35
36
|
draft.byId = {};
|
|
36
37
|
},
|
|
37
38
|
},
|
|
39
|
+
extraReducers: (builder) => {
|
|
40
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
41
|
+
draft.byId = {};
|
|
42
|
+
});
|
|
43
|
+
},
|
|
38
44
|
});
|
|
39
45
|
_a = subscriptionAction.actions, exports.runInvoicingSubscriptionAction = _a.runInvoicingSubscriptionAction, exports.runInvoicingSubscriptionActionSuccess = _a.runInvoicingSubscriptionActionSuccess, exports.runInvoicingSubscriptionActionFailure = _a.runInvoicingSubscriptionActionFailure, exports.clearInvoicingSubscriptionAction = _a.clearInvoicingSubscriptionAction, exports.clearAllInvoicingSubscriptionActions = _a.clearAllInvoicingSubscriptionActions;
|
|
40
46
|
exports.default = subscriptionAction.reducer;
|
|
@@ -5,6 +5,7 @@ exports.updateMonthClosePerformanceTrendFetchStatus = exports.updateMonthClosePe
|
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const formatZeniDateFY_1 = require("../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
7
7
|
const timePeriod_1 = require("../../commonStateTypes/timePeriod");
|
|
8
|
+
const rootActions_1 = require("../../rootActions");
|
|
8
9
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
9
10
|
exports.initialState = {
|
|
10
11
|
monthEndCloseChecksViewByTenantId: {},
|
|
@@ -100,6 +101,11 @@ const monthEndCloseChecksView = (0, toolkit_1.createSlice)({
|
|
|
100
101
|
Object.assign(draft, exports.initialState);
|
|
101
102
|
},
|
|
102
103
|
},
|
|
104
|
+
extraReducers: (builder) => {
|
|
105
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
106
|
+
Object.assign(draft, exports.initialState);
|
|
107
|
+
});
|
|
108
|
+
},
|
|
103
109
|
});
|
|
104
110
|
_a = monthEndCloseChecksView.actions, exports.fetchMonthEndCloseChecks = _a.fetchMonthEndCloseChecks, exports.updateMonthEndCloseChecksView = _a.updateMonthEndCloseChecksView, exports.clearAllMonthEndCloseChecksView = _a.clearAllMonthEndCloseChecksView, exports.fetchMonthClosePerformanceTrend = _a.fetchMonthClosePerformanceTrend, exports.updateMonthClosePerformanceTrend = _a.updateMonthClosePerformanceTrend, exports.updateMonthClosePerformanceTrendFetchStatus = _a.updateMonthClosePerformanceTrendFetchStatus;
|
|
105
111
|
exports.default = monthEndCloseChecksView.reducer;
|
|
@@ -9,6 +9,7 @@ const viewAndReportPayloadv2_1 = require("../../commonPayloadTypes/v2/viewAndRep
|
|
|
9
9
|
const dataAvailable_1 = require("../../commonStateTypes/dataAvailable");
|
|
10
10
|
const thisPeriodHelpers_1 = require("../../commonStateTypes/viewAndReport/thisPeriodHelpers");
|
|
11
11
|
const insightSummaryPayload_1 = require("../../entity/insights/insightSummaryPayload");
|
|
12
|
+
const rootActions_1 = require("../../rootActions");
|
|
12
13
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
13
14
|
const getSelectedAndHighlightedRanges_1 = require("../common/getSelectedAndHighlightedRanges");
|
|
14
15
|
exports.defaultPeriods = {
|
|
@@ -338,6 +339,11 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
|
|
|
338
339
|
Object.assign(draft, exports.initialState);
|
|
339
340
|
},
|
|
340
341
|
},
|
|
342
|
+
extraReducers: (builder) => {
|
|
343
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
344
|
+
Object.assign(draft, exports.initialState);
|
|
345
|
+
});
|
|
346
|
+
},
|
|
341
347
|
});
|
|
342
348
|
_a = netBurnOrIncome.actions, exports.fetchNetBurnOrIncome = _a.fetchNetBurnOrIncome, exports.fetchNetBurnOrIncomeForTimeframe = _a.fetchNetBurnOrIncomeForTimeframe, exports.updateNetBurnOrIncomeForTimeframe = _a.updateNetBurnOrIncomeForTimeframe, exports.updateNetBurnOrIncomeForTimeframeFailure = _a.updateNetBurnOrIncomeForTimeframeFailure, exports.clearNetBurnOrIncome = _a.clearNetBurnOrIncome, exports.updateNetBurnOrIncomeThisPeriod = _a.updateNetBurnOrIncomeThisPeriod, exports.updateNetBurnOrIncomeUIState = _a.updateNetBurnOrIncomeUIState, exports.updateNetBurnOrIncomeAdditionalBalancesSelection = _a.updateNetBurnOrIncomeAdditionalBalancesSelection, exports.updateNetBurnOrIncomeCOABalancesRange = _a.updateNetBurnOrIncomeCOABalancesRange, exports.netBurnOrIncomeToggleForecastMode = _a.netBurnOrIncomeToggleForecastMode, exports.updateNetBurnOrIncomeTimeFrame = _a.updateNetBurnOrIncomeTimeFrame, exports.updateNetBurnOrIncomeDownloadState = _a.updateNetBurnOrIncomeDownloadState, exports.fetchNetBurnOrIncomeWithForecast = _a.fetchNetBurnOrIncomeWithForecast, exports.waitForForecastListThenFetchNetBurnOrIncomeWithForecast = _a.waitForForecastListThenFetchNetBurnOrIncomeWithForecast;
|
|
343
349
|
exports.default = netBurnOrIncome.reducer;
|
|
@@ -6,6 +6,7 @@ const toolkit_1 = require("@reduxjs/toolkit");
|
|
|
6
6
|
const viewAndReportPayloadv2_1 = require("../../commonPayloadTypes/v2/viewAndReportPayloadv2");
|
|
7
7
|
const getNestedClassIDHierarchyForReport_1 = require("../../commonStateTypes/classesView/getNestedClassIDHierarchyForReport");
|
|
8
8
|
const classPayload_1 = require("../../entity/class/classPayload");
|
|
9
|
+
const rootActions_1 = require("../../rootActions");
|
|
9
10
|
exports.initialState = {
|
|
10
11
|
classHierarchy: [],
|
|
11
12
|
fetchState: {
|
|
@@ -101,6 +102,11 @@ const netBurnOrIncomeClassesView = (0, toolkit_1.createSlice)({
|
|
|
101
102
|
Object.assign(draft, exports.initialState);
|
|
102
103
|
},
|
|
103
104
|
},
|
|
105
|
+
extraReducers: (builder) => {
|
|
106
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
107
|
+
Object.assign(draft, exports.initialState);
|
|
108
|
+
});
|
|
109
|
+
},
|
|
104
110
|
});
|
|
105
111
|
_a = netBurnOrIncomeClassesView.actions, exports.fetchNetBurnOrIncomeClassesView = _a.fetchNetBurnOrIncomeClassesView, exports.fetchNetBurnOrIncomeForTimeframeClassesView = _a.fetchNetBurnOrIncomeForTimeframeClassesView, exports.updateNetBurnOrIncomeForTimeframeClassesView = _a.updateNetBurnOrIncomeForTimeframeClassesView, exports.updateNetBurnOrIncomeForTimeframeClassesViewFailure = _a.updateNetBurnOrIncomeForTimeframeClassesViewFailure, exports.updateClassesToFilterOut = _a.updateClassesToFilterOut, exports.updateNetBurnOrIncomeClassesViewUIState = _a.updateNetBurnOrIncomeClassesViewUIState, exports.updateAccountViewMode = _a.updateAccountViewMode, exports.clearNetBurnOrIncomeClassesView = _a.clearNetBurnOrIncomeClassesView;
|
|
106
112
|
exports.default = netBurnOrIncomeClassesView.reducer;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.clearNetBurnOrIncomeProjectView = exports.resetProjectNodeCollapseState = exports.updateProjectViewAccountViewMode = exports.updateNetBurnOrIncomeProjectViewUIState = exports.updateProjectsToFilterOut = exports.updateNetBurnOrIncomeForTimeframeProjectViewFailure = exports.updateNetBurnOrIncomeForTimeframeProjectView = exports.fetchNetBurnOrIncomeForTimeframeProjectView = exports.fetchNetBurnOrIncomeProjectView = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const viewAndReportPayloadv2_1 = require("../../commonPayloadTypes/v2/viewAndReportPayloadv2");
|
|
7
|
+
const rootActions_1 = require("../../rootActions");
|
|
7
8
|
exports.initialState = {
|
|
8
9
|
fetchState: {
|
|
9
10
|
month: {
|
|
@@ -99,6 +100,11 @@ const netBurnOrIncomeProjectView = (0, toolkit_1.createSlice)({
|
|
|
99
100
|
Object.assign(draft, exports.initialState);
|
|
100
101
|
},
|
|
101
102
|
},
|
|
103
|
+
extraReducers: (builder) => {
|
|
104
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
105
|
+
Object.assign(draft, exports.initialState);
|
|
106
|
+
});
|
|
107
|
+
},
|
|
102
108
|
});
|
|
103
109
|
_a = netBurnOrIncomeProjectView.actions, exports.fetchNetBurnOrIncomeProjectView = _a.fetchNetBurnOrIncomeProjectView, exports.fetchNetBurnOrIncomeForTimeframeProjectView = _a.fetchNetBurnOrIncomeForTimeframeProjectView, exports.updateNetBurnOrIncomeForTimeframeProjectView = _a.updateNetBurnOrIncomeForTimeframeProjectView, exports.updateNetBurnOrIncomeForTimeframeProjectViewFailure = _a.updateNetBurnOrIncomeForTimeframeProjectViewFailure, exports.updateProjectsToFilterOut = _a.updateProjectsToFilterOut, exports.updateNetBurnOrIncomeProjectViewUIState = _a.updateNetBurnOrIncomeProjectViewUIState, exports.updateProjectViewAccountViewMode = _a.updateProjectViewAccountViewMode, exports.resetProjectNodeCollapseState = _a.resetProjectNodeCollapseState, exports.clearNetBurnOrIncomeProjectView = _a.clearNetBurnOrIncomeProjectView;
|
|
104
110
|
exports.default = netBurnOrIncomeProjectView.reducer;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.clearNetBurnOrIncomeStoryCard = exports.updateNetBurnOrIncomeStoryCardSettingsFailure = exports.updateNetBurnOrIncomeStoryCardSettingsSuccess = exports.updateNetBurnOrIncomeStoryCardSettings = exports.fetchNetBurnOrIncomeStoryCardFailure = exports.fetchNetBurnOrIncomeStoryCardSuccess = exports.fetchNetBurnOrIncomeStoryCard = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const viewAndReportPayload_1 = require("../../commonPayloadTypes/viewAndReportPayload");
|
|
7
|
+
const rootActions_1 = require("../../rootActions");
|
|
7
8
|
const netBurnOrIncomeStoryCardPayload_1 = require("./netBurnOrIncomeStoryCardPayload");
|
|
8
9
|
exports.initialState = {
|
|
9
10
|
fetchState: 'Not-Started',
|
|
@@ -125,6 +126,11 @@ const netBurnOrIncomeStoryCardState = (0, toolkit_1.createSlice)({
|
|
|
125
126
|
Object.assign(draft, exports.initialState);
|
|
126
127
|
},
|
|
127
128
|
},
|
|
129
|
+
extraReducers: (builder) => {
|
|
130
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
131
|
+
Object.assign(draft, exports.initialState);
|
|
132
|
+
});
|
|
133
|
+
},
|
|
128
134
|
});
|
|
129
135
|
_a = netBurnOrIncomeStoryCardState.actions, exports.fetchNetBurnOrIncomeStoryCard = _a.fetchNetBurnOrIncomeStoryCard, exports.fetchNetBurnOrIncomeStoryCardSuccess = _a.fetchNetBurnOrIncomeStoryCardSuccess, exports.fetchNetBurnOrIncomeStoryCardFailure = _a.fetchNetBurnOrIncomeStoryCardFailure, exports.updateNetBurnOrIncomeStoryCardSettings = _a.updateNetBurnOrIncomeStoryCardSettings, exports.updateNetBurnOrIncomeStoryCardSettingsSuccess = _a.updateNetBurnOrIncomeStoryCardSettingsSuccess, exports.updateNetBurnOrIncomeStoryCardSettingsFailure = _a.updateNetBurnOrIncomeStoryCardSettingsFailure, exports.clearNetBurnOrIncomeStoryCard = _a.clearNetBurnOrIncomeStoryCard;
|
|
130
136
|
exports.default = netBurnOrIncomeStoryCardState.reducer;
|
|
@@ -5,9 +5,6 @@ import { ZeniAPI } from '../../../zeniAPI';
|
|
|
5
5
|
import { clearAllNotificationPreferencesView, clearNotificationPreferencesLocalOverrides, saveNotificationPreferences, saveNotificationPreferencesFailure, saveNotificationPreferencesSuccess } from '../notificationPreferencesViewReducer';
|
|
6
6
|
export type ActionType = ReturnType<typeof clearAllNotificationPreferencesView> | ReturnType<typeof clearNotificationPreferencesLocalOverrides> | ReturnType<typeof saveNotificationPreferences> | ReturnType<typeof saveNotificationPreferencesFailure> | ReturnType<typeof saveNotificationPreferencesSuccess> | ReturnType<typeof openSnackbar>;
|
|
7
7
|
export declare const saveNotificationPreferencesEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
8
|
-
payload: undefined;
|
|
9
|
-
type: "notificationPreferencesView/clearAllNotificationPreferencesView";
|
|
10
|
-
} | {
|
|
11
8
|
payload: {
|
|
12
9
|
messageSection: import("../../..").SnackbarMessageSections;
|
|
13
10
|
messageText: import("../../..").SnackbarMessageSectionTexts;
|
|
@@ -19,6 +16,9 @@ export declare const saveNotificationPreferencesEpic: (actions$: ActionsObservab
|
|
|
19
16
|
}[];
|
|
20
17
|
};
|
|
21
18
|
type: "snackbar/openSnackbar";
|
|
19
|
+
} | {
|
|
20
|
+
payload: undefined;
|
|
21
|
+
type: "notificationPreferencesView/clearAllNotificationPreferencesView";
|
|
22
22
|
} | {
|
|
23
23
|
payload: undefined;
|
|
24
24
|
type: "notificationPreferencesView/clearNotificationPreferencesLocalOverrides";
|
|
@@ -3,6 +3,7 @@ var _a;
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.toggleEventChannel = exports.setGroupFrequency = exports.setGroupChannelMaster = exports.saveNotificationPreferencesSuccess = exports.saveNotificationPreferencesFailure = exports.saveNotificationPreferences = exports.fetchNotificationPreferencesSuccess = exports.clearNotificationPreferencesLocalOverrides = exports.clearAllNotificationPreferencesView = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
const rootActions_1 = require("../../rootActions");
|
|
6
7
|
const notificationPreferencesViewPayload_1 = require("./notificationPreferencesViewPayload");
|
|
7
8
|
const notificationPreferencesViewState_1 = require("./notificationPreferencesViewState");
|
|
8
9
|
exports.initialState = {
|
|
@@ -266,6 +267,30 @@ const notificationPreferencesView = (0, toolkit_1.createSlice)({
|
|
|
266
267
|
draft.localOverrides.eventEnabledByChannel[eventId] = eventMap;
|
|
267
268
|
},
|
|
268
269
|
},
|
|
270
|
+
extraReducers: (builder) => {
|
|
271
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
272
|
+
// Reset everything EXCEPT `cancelEpoch`, which must stay monotonic
|
|
273
|
+
// across the lifetime of the app instance. `initialState.cancelEpoch`
|
|
274
|
+
// is `0`; returning `initialState` verbatim would rewind the counter
|
|
275
|
+
// to zero, and any in-flight save whose `cancelEpochAtDispatch` was
|
|
276
|
+
// captured pre-clearAll (>0) would then satisfy the "captured >=
|
|
277
|
+
// current" epoch guard and merge stale edits into fresh preferences.
|
|
278
|
+
// Bumping instead of resetting also invalidates the abandoned save
|
|
279
|
+
// for free — Cursor Bugbot bc7876f1 followup.
|
|
280
|
+
const nextCancelEpoch = draft.cancelEpoch + 1;
|
|
281
|
+
// saveEpoch must also stay monotonic across clearAll for the same
|
|
282
|
+
// reason (Cursor Bugbot 3632510237). Rewinding to 0 would let a
|
|
283
|
+
// stale-in-flight GET whose `saveEpochAtDispatch` was captured >0
|
|
284
|
+
// satisfy the "captured >= current" epoch guard and clobber fresh
|
|
285
|
+
// preferences on any subsequent save.
|
|
286
|
+
const nextSaveEpoch = draft.saveEpoch + 1;
|
|
287
|
+
return {
|
|
288
|
+
...exports.initialState,
|
|
289
|
+
cancelEpoch: nextCancelEpoch,
|
|
290
|
+
saveEpoch: nextSaveEpoch,
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
},
|
|
269
294
|
});
|
|
270
295
|
_a = notificationPreferencesView.actions, exports.clearAllNotificationPreferencesView = _a.clearAllNotificationPreferencesView, exports.clearNotificationPreferencesLocalOverrides = _a.clearNotificationPreferencesLocalOverrides, exports.fetchNotificationPreferencesSuccess = _a.fetchNotificationPreferencesSuccess, exports.saveNotificationPreferences = _a.saveNotificationPreferences, exports.saveNotificationPreferencesFailure = _a.saveNotificationPreferencesFailure, exports.saveNotificationPreferencesSuccess = _a.saveNotificationPreferencesSuccess, exports.setGroupChannelMaster = _a.setGroupChannelMaster, exports.setGroupFrequency = _a.setGroupFrequency, exports.toggleEventChannel = _a.toggleEventChannel;
|
|
271
296
|
exports.default = notificationPreferencesView.reducer;
|
|
@@ -48,11 +48,11 @@ export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCre
|
|
|
48
48
|
}, "notificationView/updateNotificationViewAllNotificationsStatusFailure">, updateNotificationViewTabState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationTabState: Partial<NotificationTabState>, tab: "comments" | "tasks"], {
|
|
49
49
|
notificationTabState: Partial<NotificationTabState>;
|
|
50
50
|
tab: "comments" | "tasks";
|
|
51
|
-
}, "notificationView/updateNotificationViewTabState", never, never>, updateNotificationViewCurrentTabAndSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newTab: "comments" | "tasks", newSubTab?: "
|
|
51
|
+
}, "notificationView/updateNotificationViewTabState", never, never>, updateNotificationViewCurrentTabAndSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newTab: "comments" | "tasks", newSubTab?: "all" | "read" | "unread" | "mentions" | undefined], {
|
|
52
52
|
newTab: "comments" | "tasks";
|
|
53
|
-
newSubTab: "
|
|
54
|
-
}, "notificationView/updateNotificationViewCurrentTabAndSubTab", never, never>, updateNotificationViewSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSubTab: "
|
|
55
|
-
newSubTab: "
|
|
53
|
+
newSubTab: "all" | "read" | "unread" | "mentions" | undefined;
|
|
54
|
+
}, "notificationView/updateNotificationViewCurrentTabAndSubTab", never, never>, updateNotificationViewSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSubTab: "all" | "read" | "unread" | "mentions"], {
|
|
55
|
+
newSubTab: "all" | "read" | "unread" | "mentions";
|
|
56
56
|
}, "notificationView/updateNotificationViewSubTab", never, never>, updateNotificationViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[uiState: Partial<NotificationViewUIState>, tab: "comments" | "tasks"], {
|
|
57
57
|
uiState: Partial<NotificationViewUIState>;
|
|
58
58
|
tab: "comments" | "tasks";
|
|
@@ -3,6 +3,7 @@ var _a;
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.toNotificationTab = exports.clearNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewAllNotificationsStatusFailure = exports.updateNotificationViewAllNotificationsStatusSuccess = exports.updateNotificationViewAllNotificationsStatus = exports.updateNotificationViewNotificationStatusFailure = exports.updateNotificationViewNotificationStatusSuccess = exports.updateNotificationViewNotificationStatus = exports.fetchNotificationUnreadCountFailure = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationViewFailure = exports.fetchNotificationViewSuccess = exports.fetchNotificationView = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
const rootActions_1 = require("../../rootActions");
|
|
6
7
|
const notificationView_helpers_1 = require("./notificationView.helpers");
|
|
7
8
|
exports.initialState = {
|
|
8
9
|
currentTab: 'tasks',
|
|
@@ -366,6 +367,11 @@ const notificationView = (0, toolkit_1.createSlice)({
|
|
|
366
367
|
Object.assign(draft, exports.initialState);
|
|
367
368
|
},
|
|
368
369
|
},
|
|
370
|
+
extraReducers: (builder) => {
|
|
371
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
372
|
+
Object.assign(draft, exports.initialState);
|
|
373
|
+
});
|
|
374
|
+
},
|
|
369
375
|
});
|
|
370
376
|
_a = notificationView.actions, exports.fetchNotificationView = _a.fetchNotificationView, exports.fetchNotificationViewSuccess = _a.fetchNotificationViewSuccess, exports.fetchNotificationViewFailure = _a.fetchNotificationViewFailure, exports.fetchNotificationUnreadCount = _a.fetchNotificationUnreadCount, exports.fetchNotificationUnreadCountSuccess = _a.fetchNotificationUnreadCountSuccess, exports.fetchNotificationUnreadCountFailure = _a.fetchNotificationUnreadCountFailure, exports.updateNotificationViewNotificationStatus = _a.updateNotificationViewNotificationStatus, exports.updateNotificationViewNotificationStatusSuccess = _a.updateNotificationViewNotificationStatusSuccess, exports.updateNotificationViewNotificationStatusFailure = _a.updateNotificationViewNotificationStatusFailure, exports.updateNotificationViewAllNotificationsStatus = _a.updateNotificationViewAllNotificationsStatus, exports.updateNotificationViewAllNotificationsStatusSuccess = _a.updateNotificationViewAllNotificationsStatusSuccess, exports.updateNotificationViewAllNotificationsStatusFailure = _a.updateNotificationViewAllNotificationsStatusFailure, exports.updateNotificationViewTabState = _a.updateNotificationViewTabState, exports.updateNotificationViewCurrentTabAndSubTab = _a.updateNotificationViewCurrentTabAndSubTab, exports.updateNotificationViewSubTab = _a.updateNotificationViewSubTab, exports.updateNotificationViewUIState = _a.updateNotificationViewUIState, exports.clearNotificationView = _a.clearNotificationView;
|
|
371
377
|
exports.default = notificationView.reducer;
|
|
@@ -3,8 +3,8 @@ import { PageToken } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
|
3
3
|
declare const toNotificationTabType: (v: string) => "comments" | "tasks";
|
|
4
4
|
export declare const toNotificationTabTypeStrict: (v: string) => "comments" | "tasks" | undefined;
|
|
5
5
|
export type NotificationTabType = ReturnType<typeof toNotificationTabType>;
|
|
6
|
-
declare const toNotificationSubTabType: (v: string) => "
|
|
7
|
-
export declare const toNotificationSubTabTypeStrict: (v: string) => "
|
|
6
|
+
declare const toNotificationSubTabType: (v: string) => "all" | "read" | "unread" | "mentions";
|
|
7
|
+
export declare const toNotificationSubTabTypeStrict: (v: string) => "all" | "read" | "unread" | "mentions" | undefined;
|
|
8
8
|
export type NotificationSubTabType = ReturnType<typeof toNotificationSubTabType>;
|
|
9
9
|
export interface NotificationViewUIState {
|
|
10
10
|
hasMore: boolean;
|
|
@@ -3,6 +3,7 @@ var _a;
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.updateRetryBankAccountConnectionForOnboardingSuccess = exports.updateRetryBankAccountConnectionForOnboardingFailure = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInviteFailure = exports.sendOnboardingCustomerViewInviteSuccess = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.clearOnboardingCockpitView = exports.updateCustomerLocalStoreInitStateOnFailure = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.updateOnboardingUserInfo = exports.saveOnboardingCustomerNotesOnFailure = exports.saveOnboardingCustomerNotesOnSuccess = exports.saveOnboardingCustomerNotes = exports.updateStatusAfterOnboardingCompleted = exports.updateOnboardingCustomerListUIState = exports.updateOnboardingTenantIdsByCompanyIds = exports.saveOnboardingCustomerCompletedStatusOnFailure = exports.saveOnboardingCustomerCompletedStatusOnSuccess = exports.saveOnboardingCustomerCompletedStatus = exports.updateCustomerCreationStatus = exports.saveOnboardingCustomerViewUpdatesFailure = exports.saveOnboardingCustomerViewUpdatesSuccess = exports.saveOnboardingCustomerViewUpdates = exports.clearOnboardingCustomerViewUpdateData = exports.saveOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.updateOnboardingEmailGroupOnFailure = exports.updateOnboardingEmailGroupOnSuccess = exports.getOnboardingEmailGroup = exports.updateOnboardingCompletedCompaniesOnFailure = exports.updateOnboardingCompletedCompaniesOnSuccess = exports.updateQBOConnectionPoolExternalConnectionOnFailure = exports.updateQBOConnectionPoolExternalConnectionOnSuccess = exports.updateQBOConnectionPoolExternalConnection = exports.updateQBOConnectionPoolOnFailure = exports.updateQBOConnectionPoolOnSuccess = exports.fetchQBOConnectionPool = exports.updateCompanyOnboardingViewOnFailure = exports.updateCompanyOnboardingViewOnSuccess = exports.fetchOnboardingCompletedCompanies = exports.fetchCompanyOnboardingView = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
const rootActions_1 = require("../../../rootActions");
|
|
6
7
|
exports.initialState = {
|
|
7
8
|
emailGroupFetchState: {
|
|
8
9
|
fetchState: 'Not-Started',
|
|
@@ -592,6 +593,11 @@ const onboardingCockpitView = (0, toolkit_1.createSlice)({
|
|
|
592
593
|
Object.assign(draft, exports.initialState);
|
|
593
594
|
},
|
|
594
595
|
},
|
|
596
|
+
extraReducers: (builder) => {
|
|
597
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
598
|
+
Object.assign(draft, exports.initialState);
|
|
599
|
+
});
|
|
600
|
+
},
|
|
595
601
|
});
|
|
596
602
|
_a = onboardingCockpitView.actions, exports.fetchCompanyOnboardingView = _a.fetchCompanyOnboardingView, exports.fetchOnboardingCompletedCompanies = _a.fetchOnboardingCompletedCompanies, exports.updateCompanyOnboardingViewOnSuccess = _a.updateCompanyOnboardingViewOnSuccess, exports.updateCompanyOnboardingViewOnFailure = _a.updateCompanyOnboardingViewOnFailure, exports.fetchQBOConnectionPool = _a.fetchQBOConnectionPool, exports.updateQBOConnectionPoolOnSuccess = _a.updateQBOConnectionPoolOnSuccess, exports.updateQBOConnectionPoolOnFailure = _a.updateQBOConnectionPoolOnFailure, exports.updateQBOConnectionPoolExternalConnection = _a.updateQBOConnectionPoolExternalConnection, exports.updateQBOConnectionPoolExternalConnectionOnSuccess = _a.updateQBOConnectionPoolExternalConnectionOnSuccess, exports.updateQBOConnectionPoolExternalConnectionOnFailure = _a.updateQBOConnectionPoolExternalConnectionOnFailure, exports.updateOnboardingCompletedCompaniesOnSuccess = _a.updateOnboardingCompletedCompaniesOnSuccess, exports.updateOnboardingCompletedCompaniesOnFailure = _a.updateOnboardingCompletedCompaniesOnFailure, exports.getOnboardingEmailGroup = _a.getOnboardingEmailGroup, exports.updateOnboardingEmailGroupOnSuccess = _a.updateOnboardingEmailGroupOnSuccess, exports.updateOnboardingEmailGroupOnFailure = _a.updateOnboardingEmailGroupOnFailure, exports.initializeOnboardingCustomerViewUpdateData = _a.initializeOnboardingCustomerViewUpdateData, exports.saveOnboardingCustomerViewUpdateData = _a.saveOnboardingCustomerViewUpdateData, exports.clearOnboardingCustomerViewUpdateData = _a.clearOnboardingCustomerViewUpdateData, exports.saveOnboardingCustomerViewUpdates = _a.saveOnboardingCustomerViewUpdates, exports.saveOnboardingCustomerViewUpdatesSuccess = _a.saveOnboardingCustomerViewUpdatesSuccess, exports.saveOnboardingCustomerViewUpdatesFailure = _a.saveOnboardingCustomerViewUpdatesFailure, exports.updateCustomerCreationStatus = _a.updateCustomerCreationStatus, exports.saveOnboardingCustomerCompletedStatus = _a.saveOnboardingCustomerCompletedStatus, exports.saveOnboardingCustomerCompletedStatusOnSuccess = _a.saveOnboardingCustomerCompletedStatusOnSuccess, exports.saveOnboardingCustomerCompletedStatusOnFailure = _a.saveOnboardingCustomerCompletedStatusOnFailure, exports.updateOnboardingTenantIdsByCompanyIds = _a.updateOnboardingTenantIdsByCompanyIds, exports.updateOnboardingCustomerListUIState = _a.updateOnboardingCustomerListUIState, exports.updateStatusAfterOnboardingCompleted = _a.updateStatusAfterOnboardingCompleted, exports.saveOnboardingCustomerNotes = _a.saveOnboardingCustomerNotes, exports.saveOnboardingCustomerNotesOnSuccess = _a.saveOnboardingCustomerNotesOnSuccess, exports.saveOnboardingCustomerNotesOnFailure = _a.saveOnboardingCustomerNotesOnFailure, exports.updateOnboardingUserInfo = _a.updateOnboardingUserInfo, exports.saveOnboardingCustomerDataInLocalStore = _a.saveOnboardingCustomerDataInLocalStore, exports.updateOnboardingCustomerDataInLocalStore = _a.updateOnboardingCustomerDataInLocalStore, exports.updateCustomerLocalStoreInitStateOnFailure = _a.updateCustomerLocalStoreInitStateOnFailure, exports.clearOnboardingCockpitView = _a.clearOnboardingCockpitView, exports.resetNewOnboardedCustomerId = _a.resetNewOnboardedCustomerId, exports.sendOnboardingCustomerViewInvite = _a.sendOnboardingCustomerViewInvite, exports.sendOnboardingCustomerViewInviteSuccess = _a.sendOnboardingCustomerViewInviteSuccess, exports.sendOnboardingCustomerViewInviteFailure = _a.sendOnboardingCustomerViewInviteFailure, exports.retryBankAccountConnectionForOnboarding = _a.retryBankAccountConnectionForOnboarding, exports.updateRetryBankAccountConnectionForOnboardingFailure = _a.updateRetryBankAccountConnectionForOnboardingFailure, exports.updateRetryBankAccountConnectionForOnboardingSuccess = _a.updateRetryBankAccountConnectionForOnboardingSuccess;
|
|
597
603
|
exports.default = onboardingCockpitView.reducer;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.verifyOnboardingOfficerOtpSuccess = exports.verifyOnboardingOfficerOtp = exports.resendOnboardingOfficerOtp = exports.sendOnboardingOfficerOtpFailure = exports.sendOnboardingOfficerOtpSuccess = exports.sendOnboardingOfficerOtp = exports.updateOnboardingCustomerViewUIState = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.saveOnboardingCustomerViewDataInLocalStore = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerViewAccountDetails = exports.updateCurrentSubStep = exports.updateCurrentStep = exports.getOnboardingPlaidLinkTokenFailure = exports.getOnboardingPlaidLinkTokenSuccess = exports.getOnboardingPlaidLinkToken = exports.establishOnboardingPlaidConnectionFailure = exports.establishOnboardingPlaidConnectionSuccess = exports.establishOnboardingPlaidConnection = exports.updateOnboardingPaymentAccountLoginStatusFailure = exports.updateOnboardingPaymentAccountLoginStatusSuccess = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingPaymentAccountStatusFailure = exports.updateOnboardingPaymentAccountStatusSuccess = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingCustomerViewFailure = exports.updateOnboardingCustomerViewSuccess = exports.updateOnboardingCustomerView = exports.updateOnboardingCustomerViewDashboardLoadedFailure = exports.updateOnboardingCustomerViewDashboardLoadedSuccess = exports.updateOnboardingCustomerViewDashboardLoaded = exports.aiAgentsActivationPhaseChanged = exports.aiAgentsActivationCountsUpdated = exports.fetchAiAgentsActivationStatusFailure = exports.fetchAiAgentsActivationStatusSuccess = exports.fetchAiAgentsActivationStatus = exports.acknowledgeOnboardingAiActivationViewedFailure = exports.acknowledgeOnboardingAiActivationViewedSuccess = exports.acknowledgeOnboardingAiActivationViewed = exports.acknowledgeOnboardingAiFinanceTeamFailure = exports.acknowledgeOnboardingAiFinanceTeamSuccess = exports.acknowledgeOnboardingAiFinanceTeam = exports.updateOnboardingCustomerViewCompleteStatusFailure = exports.updateOnboardingCustomerViewCompleteStatusSuccess = exports.updateOnboardingCustomerViewCompleteStatus = exports.fetchOnboardingCustomerSetupViewFailure = exports.fetchOnboardingCustomerSetupViewSuccess = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.initialState = void 0;
|
|
5
5
|
exports.clearKycKybAutofillForOnboarding = exports.applyKybDocumentAutofillForOnboarding = exports.applyKycDocumentAutofillForOnboarding = exports.clearOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.verifyOnboardingOfficerOtpFailure = void 0;
|
|
6
6
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
7
|
+
const rootActions_1 = require("../../../rootActions");
|
|
7
8
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
8
9
|
const kycKybAutofillActions_1 = require("../../spendManagement/commonSetup/kycKybAutofillActions");
|
|
9
10
|
const onboardingCustomerViewState_1 = require("./onboardingCustomerViewState");
|
|
@@ -769,6 +770,9 @@ const onboardingCustomerView = (0, toolkit_1.createSlice)({
|
|
|
769
770
|
removeParsingFileId(draft, action.payload.fileId);
|
|
770
771
|
}
|
|
771
772
|
});
|
|
773
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
774
|
+
Object.assign(draft, exports.initialState);
|
|
775
|
+
});
|
|
772
776
|
},
|
|
773
777
|
});
|
|
774
778
|
_a = onboardingCustomerView.actions, exports.fetchOnboardingCustomerView = _a.fetchOnboardingCustomerView, exports.fetchOnboardingCustomerSetupView = _a.fetchOnboardingCustomerSetupView, exports.fetchOnboardingCustomerSetupViewSuccess = _a.fetchOnboardingCustomerSetupViewSuccess, exports.fetchOnboardingCustomerSetupViewFailure = _a.fetchOnboardingCustomerSetupViewFailure, exports.updateOnboardingCustomerViewCompleteStatus = _a.updateOnboardingCustomerViewCompleteStatus, exports.updateOnboardingCustomerViewCompleteStatusSuccess = _a.updateOnboardingCustomerViewCompleteStatusSuccess, exports.updateOnboardingCustomerViewCompleteStatusFailure = _a.updateOnboardingCustomerViewCompleteStatusFailure, exports.acknowledgeOnboardingAiFinanceTeam = _a.acknowledgeOnboardingAiFinanceTeam, exports.acknowledgeOnboardingAiFinanceTeamSuccess = _a.acknowledgeOnboardingAiFinanceTeamSuccess, exports.acknowledgeOnboardingAiFinanceTeamFailure = _a.acknowledgeOnboardingAiFinanceTeamFailure, exports.acknowledgeOnboardingAiActivationViewed = _a.acknowledgeOnboardingAiActivationViewed, exports.acknowledgeOnboardingAiActivationViewedSuccess = _a.acknowledgeOnboardingAiActivationViewedSuccess, exports.acknowledgeOnboardingAiActivationViewedFailure = _a.acknowledgeOnboardingAiActivationViewedFailure, exports.fetchAiAgentsActivationStatus = _a.fetchAiAgentsActivationStatus, exports.fetchAiAgentsActivationStatusSuccess = _a.fetchAiAgentsActivationStatusSuccess, exports.fetchAiAgentsActivationStatusFailure = _a.fetchAiAgentsActivationStatusFailure, exports.aiAgentsActivationCountsUpdated = _a.aiAgentsActivationCountsUpdated, exports.aiAgentsActivationPhaseChanged = _a.aiAgentsActivationPhaseChanged, exports.updateOnboardingCustomerViewDashboardLoaded = _a.updateOnboardingCustomerViewDashboardLoaded, exports.updateOnboardingCustomerViewDashboardLoadedSuccess = _a.updateOnboardingCustomerViewDashboardLoadedSuccess, exports.updateOnboardingCustomerViewDashboardLoadedFailure = _a.updateOnboardingCustomerViewDashboardLoadedFailure, exports.updateOnboardingCustomerView = _a.updateOnboardingCustomerView, exports.updateOnboardingCustomerViewSuccess = _a.updateOnboardingCustomerViewSuccess, exports.updateOnboardingCustomerViewFailure = _a.updateOnboardingCustomerViewFailure, exports.updateOnboardingPaymentAccountStatus = _a.updateOnboardingPaymentAccountStatus, exports.updateOnboardingPaymentAccountStatusSuccess = _a.updateOnboardingPaymentAccountStatusSuccess, exports.updateOnboardingPaymentAccountStatusFailure = _a.updateOnboardingPaymentAccountStatusFailure, exports.updateOnboardingPaymentAccountLoginStatus = _a.updateOnboardingPaymentAccountLoginStatus, exports.updateOnboardingPaymentAccountLoginStatusSuccess = _a.updateOnboardingPaymentAccountLoginStatusSuccess, exports.updateOnboardingPaymentAccountLoginStatusFailure = _a.updateOnboardingPaymentAccountLoginStatusFailure, exports.establishOnboardingPlaidConnection = _a.establishOnboardingPlaidConnection, exports.establishOnboardingPlaidConnectionSuccess = _a.establishOnboardingPlaidConnectionSuccess, exports.establishOnboardingPlaidConnectionFailure = _a.establishOnboardingPlaidConnectionFailure, exports.getOnboardingPlaidLinkToken = _a.getOnboardingPlaidLinkToken, exports.getOnboardingPlaidLinkTokenSuccess = _a.getOnboardingPlaidLinkTokenSuccess, exports.getOnboardingPlaidLinkTokenFailure = _a.getOnboardingPlaidLinkTokenFailure, exports.updateCurrentStep = _a.updateCurrentStep, exports.updateCurrentSubStep = _a.updateCurrentSubStep, exports.updateOnboardingCustomerViewAccountDetails = _a.updateOnboardingCustomerViewAccountDetails, exports.updateOnboardingCustomerViewLocalStoreData = _a.updateOnboardingCustomerViewLocalStoreData, exports.saveOnboardingCustomerViewDataInLocalStore = _a.saveOnboardingCustomerViewDataInLocalStore, exports.saveOnboardingCompnayOfficerPhoneInLocalStore = _a.saveOnboardingCompnayOfficerPhoneInLocalStore, exports.updateOnboardingCustomerViewUIState = _a.updateOnboardingCustomerViewUIState, exports.sendOnboardingOfficerOtp = _a.sendOnboardingOfficerOtp, exports.sendOnboardingOfficerOtpSuccess = _a.sendOnboardingOfficerOtpSuccess, exports.sendOnboardingOfficerOtpFailure = _a.sendOnboardingOfficerOtpFailure, exports.resendOnboardingOfficerOtp = _a.resendOnboardingOfficerOtp, exports.verifyOnboardingOfficerOtp = _a.verifyOnboardingOfficerOtp, exports.verifyOnboardingOfficerOtpSuccess = _a.verifyOnboardingOfficerOtpSuccess, exports.verifyOnboardingOfficerOtpFailure = _a.verifyOnboardingOfficerOtpFailure, exports.clearOnboardingCustomerViewDataInLocalStore = _a.clearOnboardingCustomerViewDataInLocalStore, exports.clearOnboardingCustomerView = _a.clearOnboardingCustomerView, exports.applyKycDocumentAutofillForOnboarding = _a.applyKycDocumentAutofillForOnboarding, exports.applyKybDocumentAutofillForOnboarding = _a.applyKybDocumentAutofillForOnboarding, exports.clearKycKybAutofillForOnboarding = _a.clearKycKybAutofillForOnboarding;
|
|
@@ -9,6 +9,7 @@ const viewAndReportPayloadv2_1 = require("../../commonPayloadTypes/v2/viewAndRep
|
|
|
9
9
|
const dataAvailable_1 = require("../../commonStateTypes/dataAvailable");
|
|
10
10
|
const thisPeriodHelpers_1 = require("../../commonStateTypes/viewAndReport/thisPeriodHelpers");
|
|
11
11
|
const insightSummaryPayload_1 = require("../../entity/insights/insightSummaryPayload");
|
|
12
|
+
const rootActions_1 = require("../../rootActions");
|
|
12
13
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
13
14
|
const getSelectedAndHighlightedRanges_1 = require("../common/getSelectedAndHighlightedRanges");
|
|
14
15
|
exports.defaultPeriods = {
|
|
@@ -337,6 +338,11 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
|
|
|
337
338
|
}
|
|
338
339
|
},
|
|
339
340
|
},
|
|
341
|
+
extraReducers: (builder) => {
|
|
342
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
343
|
+
Object.assign(draft, exports.initialState);
|
|
344
|
+
});
|
|
345
|
+
},
|
|
340
346
|
});
|
|
341
347
|
_a = operatingExpenses.actions, exports.fetchOpEx = _a.fetchOpEx, exports.fetchOpExReportForTimeframe = _a.fetchOpExReportForTimeframe, exports.updateOpExForTimeframe = _a.updateOpExForTimeframe, exports.updateOpExFailureForTimeframe = _a.updateOpExFailureForTimeframe, exports.clearOpEx = _a.clearOpEx, exports.updateOpExCOABalancesRange = _a.updateOpExCOABalancesRange, exports.updateOpExAdditionalBalancesSelection = _a.updateOpExAdditionalBalancesSelection, exports.updateOpExThisPeriod = _a.updateOpExThisPeriod, exports.updateOpExDownloadState = _a.updateOpExDownloadState, exports.updateOpExUIState = _a.updateOpExUIState, exports.opExToggleForecastMode = _a.opExToggleForecastMode, exports.fetchOpExWithForecast = _a.fetchOpExWithForecast, exports.waitForForecastListThenFetchOpExWithForecast = _a.waitForForecastListThenFetchOpExWithForecast, exports.updateOpExTimeFrame = _a.updateOpExTimeFrame;
|
|
342
348
|
exports.default = operatingExpenses.reducer;
|
|
@@ -5,6 +5,7 @@ exports.refreshOpExByVendorReportFailure = exports.refreshOpExByVendorReportSucc
|
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const coaBalancePayload_1 = require("../../commonPayloadTypes/v2/coaBalancePayload");
|
|
7
7
|
const viewAndReportPayload_1 = require("../../commonPayloadTypes/viewAndReportPayload");
|
|
8
|
+
const rootActions_1 = require("../../rootActions");
|
|
8
9
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
9
10
|
const opExByVendorState_1 = require("./opExByVendorState");
|
|
10
11
|
exports.defaultTimeframePeriodsOpExByVendor = {
|
|
@@ -291,6 +292,11 @@ const opexByVendor = (0, toolkit_1.createSlice)({
|
|
|
291
292
|
Object.assign(draft, exports.initialState);
|
|
292
293
|
},
|
|
293
294
|
},
|
|
295
|
+
extraReducers: (builder) => {
|
|
296
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
297
|
+
Object.assign(draft, exports.initialState);
|
|
298
|
+
});
|
|
299
|
+
},
|
|
294
300
|
});
|
|
295
301
|
_a = opexByVendor.actions, exports.fetchOpExByVendor = _a.fetchOpExByVendor, exports.updateOpExByVendorReportGenerated = _a.updateOpExByVendorReportGenerated, exports.fetchOpExByVendorReportForTimeframe = _a.fetchOpExByVendorReportForTimeframe, exports.updateOpExByVendorReportFailureForTimeframe = _a.updateOpExByVendorReportFailureForTimeframe, exports.updateOpExByVendorReportSuccessForTimeframe = _a.updateOpExByVendorReportSuccessForTimeframe, exports.fetchOpExByVendorReportSummary = _a.fetchOpExByVendorReportSummary, exports.updateOpExByVendorReportSummaryFailure = _a.updateOpExByVendorReportSummaryFailure, exports.updateOpExByVendorReportSummarySuccess = _a.updateOpExByVendorReportSummarySuccess, exports.updateOpExByVendorTimeFrame = _a.updateOpExByVendorTimeFrame, exports.updateOpExByVendorUIState = _a.updateOpExByVendorUIState, exports.clearOpExByVendor = _a.clearOpExByVendor, exports.updateOpExByVendorAdditionalBalancesSelection = _a.updateOpExByVendorAdditionalBalancesSelection, exports.updateOpExByVendorSort = _a.updateOpExByVendorSort, exports.updateOpExByVendorSortOrSearchInProgress = _a.updateOpExByVendorSortOrSearchInProgress, exports.updateOpExByVendorPageFetchInProgress = _a.updateOpExByVendorPageFetchInProgress, exports.updateOpExByVendorDownloadState = _a.updateOpExByVendorDownloadState, exports.clearOpExByVendorSearch = _a.clearOpExByVendorSearch, exports.updateOpExByVendorPageLimit = _a.updateOpExByVendorPageLimit, exports.updateOpExByVendorSearchString = _a.updateOpExByVendorSearchString, exports.refreshOpExByVendorReport = _a.refreshOpExByVendorReport, exports.refreshOpExByVendorReportSuccess = _a.refreshOpExByVendorReportSuccess, exports.refreshOpExByVendorReportFailure = _a.refreshOpExByVendorReportFailure;
|
|
296
302
|
exports.default = opexByVendor.reducer;
|
|
@@ -12,7 +12,7 @@ export interface OpExByVendorQuery {
|
|
|
12
12
|
sortOrder: SortOrder;
|
|
13
13
|
pageLimit?: number;
|
|
14
14
|
}
|
|
15
|
-
export declare const toOpexByVendorSortKeyType: (v: string) => "
|
|
15
|
+
export declare const toOpexByVendorSortKeyType: (v: string) => "vendor" | "totals" | "class" | "account";
|
|
16
16
|
export declare type OpexByVendorSortKey = ReturnType<typeof toOpexByVendorSortKeyType>;
|
|
17
17
|
export declare function getOpexVendorKey(vendorId: ID, accountId: ID | undefined, classId: ID | undefined): string;
|
|
18
18
|
export type OpexVendorKey = ReturnType<typeof getOpexVendorKey>;
|
|
@@ -6,6 +6,7 @@ const toolkit_1 = require("@reduxjs/toolkit");
|
|
|
6
6
|
const viewAndReportPayloadv2_1 = require("../../commonPayloadTypes/v2/viewAndReportPayloadv2");
|
|
7
7
|
const getNestedClassIDHierarchyForReport_1 = require("../../commonStateTypes/classesView/getNestedClassIDHierarchyForReport");
|
|
8
8
|
const classPayload_1 = require("../../entity/class/classPayload");
|
|
9
|
+
const rootActions_1 = require("../../rootActions");
|
|
9
10
|
exports.initialState = {
|
|
10
11
|
classHierarchy: [],
|
|
11
12
|
fetchState: {
|
|
@@ -101,6 +102,11 @@ const opExClassesView = (0, toolkit_1.createSlice)({
|
|
|
101
102
|
Object.assign(draft, exports.initialState);
|
|
102
103
|
},
|
|
103
104
|
},
|
|
105
|
+
extraReducers: (builder) => {
|
|
106
|
+
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
107
|
+
Object.assign(draft, exports.initialState);
|
|
108
|
+
});
|
|
109
|
+
},
|
|
104
110
|
});
|
|
105
111
|
_a = opExClassesView.actions, exports.fetchOpExClassesView = _a.fetchOpExClassesView, exports.fetchOpExForTimeframeClassesView = _a.fetchOpExForTimeframeClassesView, exports.updateOpExForTimeframeClassesView = _a.updateOpExForTimeframeClassesView, exports.updateOpExForTimeframeClassesViewFailure = _a.updateOpExForTimeframeClassesViewFailure, exports.updateClassesToFilterOut = _a.updateClassesToFilterOut, exports.updateOpExClassesViewUIState = _a.updateOpExClassesViewUIState, exports.updateAccountViewMode = _a.updateAccountViewMode, exports.clearOpExClassesView = _a.clearOpExClassesView;
|
|
106
112
|
exports.default = opExClassesView.reducer;
|