@zeniai/client-epic-state 4.15.41 → 4.15.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -19
- package/lib/commonPayloadTypes/recommendationPayload.d.ts +0 -1
- package/lib/commonStateTypes/common.d.ts +1 -1
- package/lib/commonStateTypes/fiscalYearHelpers/getFYMonths.d.ts +2 -2
- package/lib/commonStateTypes/fiscalYearHelpers/getFYQuarterAndYear.d.ts +2 -2
- package/lib/commonStateTypes/timePeriod.d.ts +7 -7
- package/lib/commonStateTypes/timePeriod.js +2 -2
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +1 -1
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +1 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
- package/lib/configureStore.js +1 -2
- package/lib/entity/account/accountSelector.d.ts +3 -3
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -22
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/approvalRule/approvalRuleState.d.ts +2 -2
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +4 -4
- package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/company/companyReducer.js +1 -0
- package/lib/entity/customer/customerPayload.d.ts +1 -1
- package/lib/entity/customer/customerPayload.js +6 -16
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
- package/lib/entity/file/fileState.d.ts +3 -3
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -2
- package/lib/entity/notification/types/notificationTypes.d.ts +2 -2
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.js +0 -4
- package/lib/entity/task/taskState.d.ts +3 -3
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -4
- package/lib/entity/tenant/clearAllEpic.js +0 -4
- package/lib/entity/tenant/tenantReducer.d.ts +2 -2
- package/lib/entity/tenant/tenantReducer.js +1 -0
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
- package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +6 -9
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -24
- package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -2
- package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.js +1 -1
- package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
- package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
- package/lib/entity/transaction/toSupportedTransaction.js +1 -6
- package/lib/entity/transaction/transactionReducer.d.ts +0 -17
- package/lib/entity/transaction/transactionReducer.js +2 -47
- package/lib/entity/transaction/transactionSelector.d.ts +0 -2
- package/lib/entity/transaction/transactionSelector.js +0 -5
- package/lib/entity/transaction/transactionState.d.ts +4 -6
- package/lib/entity/vendorExpense/vendorExpenseReducer.js +1 -0
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/epic.d.ts +1 -6
- package/lib/epic.js +1 -6
- package/lib/index.d.ts +12 -20
- package/lib/index.js +27 -56
- package/lib/init.d.ts +1 -2
- package/lib/init.js +2 -9
- package/lib/reducer.d.ts +1 -7
- package/lib/reducer.js +0 -6
- package/lib/view/accountList/accountListReducer.js +3 -1
- package/lib/view/accountMappingView/accountMappingReducer.js +1 -0
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +2 -1
- package/lib/view/auditReportView/auditReportViewReducer.d.ts +2 -2
- package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
- package/lib/view/balanceSheet/balanceSheetReducer.js +6 -1
- package/lib/view/bankAccountView/bankAccountViewReducer.js +1 -0
- package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +3 -3
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +3 -3
- package/lib/view/cashFlow/cashFlowReducer.js +4 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
- package/lib/view/cashPosition/cashPositionReducer.js +1 -0
- package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
- package/lib/view/common/reportsHelpers.d.ts +1 -1
- package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +0 -7
- package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +3 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
- package/lib/view/companyView/companyViewReducer.d.ts +1 -1
- package/lib/view/companyView/companyViewReducer.js +10 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +3 -3
- package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +1 -1
- package/lib/view/dashboard/dashboardEpic.js +2 -0
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +1 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +10 -24
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +1 -2
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -14
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +7 -30
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +5 -1
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +2 -17
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
- package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +42 -98
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +10 -86
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +11 -11
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -12
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +7 -66
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -2
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +2 -5
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -12
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementReducer.js +4 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +4 -4
- package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +10 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +6 -1
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +1 -0
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +1 -1
- package/lib/view/notificationView/notificationViewReducer.d.ts +8 -8
- package/lib/view/notificationView/notificationViewState.d.ts +2 -2
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +3 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -2
- package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
- package/lib/view/opEx/opExReducer.js +14 -4
- package/lib/view/opExByVendor/opExByVendorReducer.js +3 -1
- package/lib/view/opExByVendor/opExByVendorState.d.ts +1 -1
- package/lib/view/opExClassesView/opExClassesViewReducer.js +6 -1
- package/lib/view/people/fetchPeopleEpic.js +3 -1
- package/lib/view/people/invitePeopleEpic.js +3 -1
- package/lib/view/people/inviteZeniPeopleEpic.js +3 -1
- package/lib/view/people/peopleReducer.js +1 -0
- package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
- package/lib/view/profitAndLoss/profitAndLossReducer.js +6 -1
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +6 -1
- package/lib/view/recommendation/recommendationReducer.js +4 -1
- package/lib/view/referralView/referralState.d.ts +1 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
- package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
- package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +3 -1
- package/lib/view/revenue/revenueReducer.js +10 -3
- package/lib/view/revenueClassesView/revenueClassesViewReducer.js +6 -1
- package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -2
- package/lib/view/settingsView/settingsViewReducer.js +1 -0
- package/lib/view/settingsView/settingsViewState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.js +1 -0
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +6 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +3 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +2 -2
- package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +7 -7
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -1
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -11
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +6 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +3 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +1 -0
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +4 -4
- package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.d.ts +2 -2
- package/lib/view/subscriptionView/subscriptionViewReducer.js +1 -0
- package/lib/view/subscriptionView/types/subscriptionTypes.js +1 -0
- package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +3 -1
- package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
- package/lib/view/taskManager/taskListView/taskListSelector.d.ts +1 -1
- package/lib/view/tasksCard/fetchTasksCardEpic.js +2 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
- package/lib/view/tasksCard/tasksCardSelector.js +1 -1
- package/lib/view/topEx/topExSelector.d.ts +3 -3
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +52 -45
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +4 -22
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +13 -66
- package/lib/view/transactionDetail/transactionDetailReducer.d.ts +4 -13
- package/lib/view/transactionDetail/transactionDetailReducer.js +21 -51
- package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -3
- package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -8
- package/lib/view/transactionList/transactionListByEntitySelector.js +2 -0
- package/lib/view/transactionList/transactionListReducer.js +6 -4
- package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +1 -0
- package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +3 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
- package/lib/zeniAPI.d.ts +0 -1
- package/lib/zeniUrl.d.ts +1 -1
- package/package.json +12 -13
- package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -70
- package/lib/entity/accountRecon/accountReconPayload.js +0 -125
- package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
- package/lib/entity/accountRecon/accountReconReducer.js +0 -71
- package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -28
- package/lib/entity/accountRecon/accountReconSelector.js +0 -44
- package/lib/entity/accountRecon/accountReconState.d.ts +0 -70
- package/lib/entity/accountRecon/accountReconState.js +0 -28
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -169
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -28
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -384
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -51
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -254
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -103
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -37
|
@@ -72,7 +72,8 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
|
|
|
72
72
|
reducer(draft) {
|
|
73
73
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
74
74
|
},
|
|
75
|
-
prepare(cacheOverride = false,
|
|
75
|
+
prepare(cacheOverride = false, // eslint-disable-line @typescript-eslint/no-inferrable-types
|
|
76
|
+
forecastId) {
|
|
76
77
|
return {
|
|
77
78
|
payload: {
|
|
78
79
|
cacheOverride,
|
|
@@ -85,7 +86,8 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
|
|
|
85
86
|
reducer(draft) {
|
|
86
87
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
87
88
|
},
|
|
88
|
-
prepare(cacheOverride = false,
|
|
89
|
+
prepare(cacheOverride = false, // eslint-disable-line @typescript-eslint/no-inferrable-types
|
|
90
|
+
forecastId) {
|
|
89
91
|
return {
|
|
90
92
|
payload: {
|
|
91
93
|
cacheOverride,
|
|
@@ -95,6 +97,7 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
|
|
|
95
97
|
},
|
|
96
98
|
},
|
|
97
99
|
fetchNetBurnOrIncome: {
|
|
100
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
98
101
|
prepare(fetchFullReport = false, forecastId, cacheOverride = false) {
|
|
99
102
|
return { payload: { fetchFullReport, forecastId, cacheOverride } };
|
|
100
103
|
},
|
|
@@ -107,7 +110,11 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
|
|
|
107
110
|
},
|
|
108
111
|
},
|
|
109
112
|
fetchNetBurnOrIncomeForTimeframe: {
|
|
110
|
-
prepare(timeframe, forecastId,
|
|
113
|
+
prepare(timeframe, forecastId,
|
|
114
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
115
|
+
fetchFullReport = true,
|
|
116
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
117
|
+
cacheOverride = false) {
|
|
111
118
|
return {
|
|
112
119
|
payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
|
|
113
120
|
};
|
|
@@ -37,6 +37,7 @@ const netBurnOrIncomeClassesView = (0, toolkit_1.createSlice)({
|
|
|
37
37
|
initialState: exports.initialState,
|
|
38
38
|
reducers: {
|
|
39
39
|
fetchNetBurnOrIncomeClassesView: {
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
40
41
|
prepare(cacheOverride = false) {
|
|
41
42
|
return { payload: { cacheOverride } };
|
|
42
43
|
},
|
|
@@ -49,7 +50,11 @@ const netBurnOrIncomeClassesView = (0, toolkit_1.createSlice)({
|
|
|
49
50
|
},
|
|
50
51
|
},
|
|
51
52
|
fetchNetBurnOrIncomeForTimeframeClassesView: {
|
|
52
|
-
prepare(timeframe,
|
|
53
|
+
prepare(timeframe,
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
55
|
+
fetchFullReport = true,
|
|
56
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
57
|
+
cacheOverride = false) {
|
|
53
58
|
return { payload: { timeframe, fetchFullReport, cacheOverride } };
|
|
54
59
|
},
|
|
55
60
|
reducer(draft, action) {
|
|
@@ -47,6 +47,7 @@ const netBurnOrIncomeStoryCardState = (0, toolkit_1.createSlice)({
|
|
|
47
47
|
initialState: exports.initialState,
|
|
48
48
|
reducers: {
|
|
49
49
|
fetchNetBurnOrIncomeStoryCard: {
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
50
51
|
prepare(fetchFullReport = false) {
|
|
51
52
|
return { payload: { fetchFullReport } };
|
|
52
53
|
},
|
|
@@ -5,7 +5,7 @@ import { ZeniDate } from '../../zeniDayJS';
|
|
|
5
5
|
export declare const ALL_TIME_SPAN_IDS_FOR_AVERAGE: readonly ["last_month", "last_completed_month", "average_of_last_2_months", "average_of_last_3_months"];
|
|
6
6
|
export declare const toTimeSpanIdForAverage: (v: string) => "last_month" | "last_completed_month" | "average_of_last_2_months" | "average_of_last_3_months";
|
|
7
7
|
export type TimeSpanIdForAverage = ReturnType<typeof toTimeSpanIdForAverage>;
|
|
8
|
-
export declare const toNumberOfMonthForAverage: (n: number) =>
|
|
8
|
+
export declare const toNumberOfMonthForAverage: (n: number) => 2 | 1 | 3;
|
|
9
9
|
export type AverageMonthsCount = ReturnType<typeof toNumberOfMonthForAverage>;
|
|
10
10
|
export interface NetBurnOrIncomeRunway {
|
|
11
11
|
cashZeroDate: ZeniDate;
|
|
@@ -4,9 +4,9 @@ import { NotificationGroup } from '../../entity/notification/types/notificationT
|
|
|
4
4
|
import { ZeniAPIStatus } from '../../responsePayload';
|
|
5
5
|
import { NotificationTabState, NotificationTabType, NotificationViewState, NotificationViewUIState } from './notificationViewState';
|
|
6
6
|
export declare const initialState: NotificationViewState;
|
|
7
|
-
export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", mode?: "
|
|
7
|
+
export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", mode?: "email" | "dashboard" | undefined, status?: ("read" | "unread")[] | undefined, isNewNotificationFetch?: boolean | undefined], {
|
|
8
8
|
notificationGroup: "task_manager";
|
|
9
|
-
mode: "
|
|
9
|
+
mode: "email" | "dashboard";
|
|
10
10
|
status: ("read" | "unread")[];
|
|
11
11
|
isNewNotificationFetch: boolean;
|
|
12
12
|
}, "notificationView/fetchNotificationView", never, never>, fetchNotificationViewSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notifications: NotificationPayload[], totalCount: number, notificationGroup: "task_manager", pageToken: PageToken], {
|
|
@@ -17,9 +17,9 @@ export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCre
|
|
|
17
17
|
}, "notificationView/fetchNotificationViewSuccess", never, never>, fetchNotificationViewFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
18
18
|
status: ZeniAPIStatus;
|
|
19
19
|
notificationGroup: NotificationGroup;
|
|
20
|
-
}, "notificationView/fetchNotificationViewFailure">, fetchNotificationUnreadCount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", mode?: "
|
|
20
|
+
}, "notificationView/fetchNotificationViewFailure">, fetchNotificationUnreadCount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", mode?: "email" | "dashboard" | undefined], {
|
|
21
21
|
notificationGroup: "task_manager";
|
|
22
|
-
mode: "
|
|
22
|
+
mode: "email" | "dashboard";
|
|
23
23
|
}, "notificationView/fetchNotificationUnreadCount", never, never>, fetchNotificationUnreadCountSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[unreadCount: number, notificationGroup: "task_manager"], {
|
|
24
24
|
unreadCount: number;
|
|
25
25
|
notificationGroup: "task_manager";
|
|
@@ -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,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
|
pageToken: PageToken;
|
|
@@ -167,6 +167,7 @@ const onboardingCockpitView = (0, toolkit_1.createSlice)({
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
saveOnboardingCustomerViewUpdates: {
|
|
170
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
170
171
|
reducer(draft, action) {
|
|
171
172
|
if (draft.onboardingCustomerLocalData != null) {
|
|
172
173
|
const { sendInvite } = action.payload;
|
|
@@ -182,6 +183,7 @@ const onboardingCockpitView = (0, toolkit_1.createSlice)({
|
|
|
182
183
|
draft.emailGroupFetchState.error = undefined;
|
|
183
184
|
}
|
|
184
185
|
},
|
|
186
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
185
187
|
prepare(sendInvite, skipSnackbarOnSuccess = false) {
|
|
186
188
|
return {
|
|
187
189
|
payload: { sendInvite, skipSnackbarOnSuccess },
|
|
@@ -272,6 +274,7 @@ const onboardingCockpitView = (0, toolkit_1.createSlice)({
|
|
|
272
274
|
draft.customerCreationStatus = exports.initialState.customerCreationStatus;
|
|
273
275
|
},
|
|
274
276
|
fetchCompanyOnboardingView: {
|
|
277
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
275
278
|
prepare(fetchFullResponse = false) {
|
|
276
279
|
return { payload: { fetchFullResponse } };
|
|
277
280
|
},
|
|
@@ -16,12 +16,12 @@ export declare const fetchOnboardingCustomerView: import("@reduxjs/toolkit").Act
|
|
|
16
16
|
companyId: string;
|
|
17
17
|
checkOnboardingComplete: boolean;
|
|
18
18
|
productSuitePage: boolean;
|
|
19
|
-
}, "onboardingCustomerView/updateOnboardingCustomerViewCompleteStatus", never, never>, updateOnboardingCustomerViewCompleteStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"onboardingCustomerView/updateOnboardingCustomerViewCompleteStatusSuccess">, updateOnboardingCustomerViewCompleteStatusFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "onboardingCustomerView/updateOnboardingCustomerViewCompleteStatusFailure", never, never>, updateOnboardingCustomerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, sendForVerification: boolean, reCalculateCurrentStep?: boolean | undefined, isBillingAddressUpdate?: boolean | undefined, officerType?: "
|
|
19
|
+
}, "onboardingCustomerView/updateOnboardingCustomerViewCompleteStatus", never, never>, updateOnboardingCustomerViewCompleteStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"onboardingCustomerView/updateOnboardingCustomerViewCompleteStatusSuccess">, updateOnboardingCustomerViewCompleteStatusFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "onboardingCustomerView/updateOnboardingCustomerViewCompleteStatusFailure", never, never>, updateOnboardingCustomerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, sendForVerification: boolean, reCalculateCurrentStep?: boolean | undefined, isBillingAddressUpdate?: boolean | undefined, officerType?: "Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9" | undefined], {
|
|
20
20
|
companyId: string;
|
|
21
21
|
sendForVerification: boolean;
|
|
22
22
|
reCalculateCurrentStep: boolean | undefined;
|
|
23
23
|
isBillingAddressUpdate: boolean | undefined;
|
|
24
|
-
officerType: "
|
|
24
|
+
officerType: "Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9" | undefined;
|
|
25
25
|
}, "onboardingCustomerView/updateOnboardingCustomerView", never, never>, updateOnboardingCustomerViewSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"onboardingCustomerView/updateOnboardingCustomerViewSuccess">, updateOnboardingCustomerViewFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "onboardingCustomerView/updateOnboardingCustomerViewFailure", never, never>, updateOnboardingPaymentAccountStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[verificationStatusCode: string, paymentAccountId: string, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
26
26
|
verificationStatusCode: string;
|
|
27
27
|
paymentAccountId: string;
|
|
@@ -32,7 +32,7 @@ const fetchOpExReportForTimeframeEpic = (actions$, state, zeniAPI) => actions$.p
|
|
|
32
32
|
actions.push((0, opExReducer_1.updateOpExForTimeframe)({
|
|
33
33
|
timeframe: action.payload.timeframe,
|
|
34
34
|
forecastId: action.payload.forecastId,
|
|
35
|
-
report: response.data,
|
|
35
|
+
report: response.data, // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
36
36
|
}));
|
|
37
37
|
if (action.payload.forecastId == null &&
|
|
38
38
|
action.payload.timeframe === 'month') {
|
|
@@ -81,7 +81,11 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
|
|
|
81
81
|
},
|
|
82
82
|
},
|
|
83
83
|
fetchOpExReportForTimeframe: {
|
|
84
|
-
prepare(timeframe, forecastId,
|
|
84
|
+
prepare(timeframe, forecastId,
|
|
85
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
86
|
+
fetchFullReport = true,
|
|
87
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
88
|
+
cacheOverride = false) {
|
|
85
89
|
return {
|
|
86
90
|
payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
|
|
87
91
|
};
|
|
@@ -101,7 +105,8 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
|
|
|
101
105
|
reducer(draft) {
|
|
102
106
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
103
107
|
},
|
|
104
|
-
prepare(cacheOverride = false,
|
|
108
|
+
prepare(cacheOverride = false, // eslint-disable-line @typescript-eslint/no-inferrable-types
|
|
109
|
+
forecastId) {
|
|
105
110
|
return {
|
|
106
111
|
payload: {
|
|
107
112
|
cacheOverride,
|
|
@@ -114,7 +119,8 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
|
|
|
114
119
|
reducer(draft) {
|
|
115
120
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
116
121
|
},
|
|
117
|
-
prepare(cacheOverride = false,
|
|
122
|
+
prepare(cacheOverride = false, // eslint-disable-line @typescript-eslint/no-inferrable-types
|
|
123
|
+
forecastId) {
|
|
118
124
|
return {
|
|
119
125
|
payload: {
|
|
120
126
|
cacheOverride,
|
|
@@ -150,7 +156,11 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
|
|
|
150
156
|
clearOpEx(draft) {
|
|
151
157
|
Object.assign(draft, exports.initialState);
|
|
152
158
|
},
|
|
153
|
-
updateOpExAdditionalBalancesSelection(
|
|
159
|
+
updateOpExAdditionalBalancesSelection(
|
|
160
|
+
//eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
161
|
+
draft,
|
|
162
|
+
//eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
163
|
+
action) {
|
|
154
164
|
var _a, _b, _c;
|
|
155
165
|
const opExReport = getState(draft, draft.uiState.isForecastModeOn, (_a = draft.uiState.selectedForecast) === null || _a === void 0 ? void 0 : _a.id);
|
|
156
166
|
const { opExBalancesByTimeframe, dataAvailable } = opExReport;
|
|
@@ -165,7 +165,9 @@ const opexByVendor = (0, toolkit_1.createSlice)({
|
|
|
165
165
|
draft.opExByVendorReportGenerated = action.payload;
|
|
166
166
|
},
|
|
167
167
|
fetchOpExByVendorReportSummary: {
|
|
168
|
-
prepare(
|
|
168
|
+
prepare(
|
|
169
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
170
|
+
cacheOverride = false) {
|
|
169
171
|
return {
|
|
170
172
|
payload: { cacheOverride },
|
|
171
173
|
};
|
|
@@ -12,7 +12,7 @@ export interface OpExByVendorQuery {
|
|
|
12
12
|
pageLimit?: number;
|
|
13
13
|
fetchNextPage: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare const toOpexByVendorSortKeyType: (v: string) => "
|
|
15
|
+
export declare const toOpexByVendorSortKeyType: (v: string) => "class" | "vendor" | "totals" | "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>;
|
|
@@ -37,6 +37,7 @@ const opExClassesView = (0, toolkit_1.createSlice)({
|
|
|
37
37
|
initialState: exports.initialState,
|
|
38
38
|
reducers: {
|
|
39
39
|
fetchOpExClassesView: {
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
40
41
|
prepare(cacheOverride = false) {
|
|
41
42
|
return { payload: { cacheOverride } };
|
|
42
43
|
},
|
|
@@ -49,7 +50,11 @@ const opExClassesView = (0, toolkit_1.createSlice)({
|
|
|
49
50
|
},
|
|
50
51
|
},
|
|
51
52
|
fetchOpExForTimeframeClassesView: {
|
|
52
|
-
prepare(timeframe,
|
|
53
|
+
prepare(timeframe,
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
55
|
+
fetchFullReport = true,
|
|
56
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
57
|
+
cacheOverride = false) {
|
|
53
58
|
return { payload: { timeframe, fetchFullReport, cacheOverride } };
|
|
54
59
|
},
|
|
55
60
|
reducer(draft, action) {
|
|
@@ -19,7 +19,9 @@ const fetchPeopleEpic = (actions$, state, zeniAPI) => actions$.pipe((0, operator
|
|
|
19
19
|
return zeniAPI.getJSON(URL).pipe((0, operators_1.mergeMap)((response) => {
|
|
20
20
|
var _a, _b, _c, _d;
|
|
21
21
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
22
|
-
return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) !== null && _b !== void 0 ? _b : []),
|
|
22
|
+
return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) !== null && _b !== void 0 ? _b : []), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
23
|
+
(0, userReducer_1.updateAllUsers)({ users: (_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.users) !== null && _d !== void 0 ? _d : [] }), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
24
|
+
(0, peopleReducer_1.updatePersonUserIds)(response.data) // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
23
25
|
);
|
|
24
26
|
}
|
|
25
27
|
else {
|
|
@@ -21,7 +21,9 @@ const invitePeopleEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operat
|
|
|
21
21
|
if (Boolean((_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) === true) {
|
|
22
22
|
(0, updateManagersListOnRoleChange_1.updateManagersListOnRoleChange)(actions, (_b = response.data) === null || _b === void 0 ? void 0 : _b.user_roles[0], false);
|
|
23
23
|
}
|
|
24
|
-
return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.user_roles) !== null && _d !== void 0 ? _d : []),
|
|
24
|
+
return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.user_roles) !== null && _d !== void 0 ? _d : []), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
25
|
+
(0, userReducer_1.updateAllUsers)({ users: (_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.users) !== null && _f !== void 0 ? _f : [] }), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
26
|
+
(0, peopleReducer_1.invitePeopleSuccess)(response.data), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
25
27
|
(0, snackbarReducer_1.openSnackbar)({
|
|
26
28
|
messageSection: invitePayload.invites.length > 1
|
|
27
29
|
? 'people_invite_multiple_people'
|
|
@@ -21,7 +21,9 @@ const inviteZeniPeopleEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, op
|
|
|
21
21
|
if (Boolean((_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) === true) {
|
|
22
22
|
(0, updateManagersListOnRoleChange_1.updateManagersListOnRoleChange)(actions, (_b = response.data) === null || _b === void 0 ? void 0 : _b.user_roles[0], true);
|
|
23
23
|
}
|
|
24
|
-
return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.user_roles) !== null && _d !== void 0 ? _d : []),
|
|
24
|
+
return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.user_roles) !== null && _d !== void 0 ? _d : []), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
25
|
+
(0, userReducer_1.updateAllUsers)({ users: (_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.users) !== null && _f !== void 0 ? _f : [] }), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
26
|
+
(0, peopleReducer_1.invitePeopleSuccess)(response.data), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
25
27
|
(0, snackbarReducer_1.openSnackbar)({
|
|
26
28
|
messageSection: invitePayload.users.length > 1
|
|
27
29
|
? 'people_invite_multiple_people'
|
|
@@ -201,6 +201,7 @@ const people = (0, toolkit_1.createSlice)({
|
|
|
201
201
|
reducer() {
|
|
202
202
|
// Do nothing.
|
|
203
203
|
},
|
|
204
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
204
205
|
prepare(companyId, shouldFetchClassList) {
|
|
205
206
|
return { payload: { companyId, shouldFetchClassList } };
|
|
206
207
|
},
|
|
@@ -20,7 +20,7 @@ const peopleSaveUpdatesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, o
|
|
|
20
20
|
var _a, _b, _c, _d;
|
|
21
21
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
22
22
|
const actions = [
|
|
23
|
-
(0, userRoleReducer_1.updateUserRoles)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) !== null && _b !== void 0 ? _b : []),
|
|
23
|
+
(0, userRoleReducer_1.updateUserRoles)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) !== null && _b !== void 0 ? _b : []), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
24
24
|
(0, peopleReducer_1.peopleSaveUpdatesSuccess)(),
|
|
25
25
|
(0, snackbarReducer_1.openSnackbar)({
|
|
26
26
|
messageSection: 'people_update_person',
|
|
@@ -41,6 +41,7 @@ const profitAndLoss = (0, toolkit_1.createSlice)({
|
|
|
41
41
|
initialState: exports.initialState,
|
|
42
42
|
reducers: {
|
|
43
43
|
fetchProfitAndLoss: {
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
44
45
|
prepare(forecastId, cacheOverride = false) {
|
|
45
46
|
return { payload: { forecastId, cacheOverride } };
|
|
46
47
|
},
|
|
@@ -53,7 +54,11 @@ const profitAndLoss = (0, toolkit_1.createSlice)({
|
|
|
53
54
|
},
|
|
54
55
|
},
|
|
55
56
|
fetchProfitAndLossForTimeframe: {
|
|
56
|
-
prepare(timeframe, forecastId,
|
|
57
|
+
prepare(timeframe, forecastId,
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
59
|
+
fetchFullReport = true,
|
|
60
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
61
|
+
cacheOverride = false) {
|
|
57
62
|
return {
|
|
58
63
|
payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
|
|
59
64
|
};
|
|
@@ -38,6 +38,7 @@ const profitAndLossClassesView = (0, toolkit_1.createSlice)({
|
|
|
38
38
|
initialState: exports.initialState,
|
|
39
39
|
reducers: {
|
|
40
40
|
fetchProfitAndLossClassesView: {
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
41
42
|
prepare(cacheOverride = false) {
|
|
42
43
|
return { payload: { cacheOverride } };
|
|
43
44
|
},
|
|
@@ -50,7 +51,11 @@ const profitAndLossClassesView = (0, toolkit_1.createSlice)({
|
|
|
50
51
|
},
|
|
51
52
|
},
|
|
52
53
|
fetchProfitAndLossForTimeframeClassesView: {
|
|
53
|
-
prepare(timeframe,
|
|
54
|
+
prepare(timeframe,
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
56
|
+
fetchFullReport = true,
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
58
|
+
cacheOverride = false) {
|
|
54
59
|
return { payload: { timeframe, fetchFullReport, cacheOverride } };
|
|
55
60
|
},
|
|
56
61
|
reducer(draft, action) {
|
|
@@ -12,7 +12,9 @@ const recommendation = (0, toolkit_1.createSlice)({
|
|
|
12
12
|
initialState: exports.initialState,
|
|
13
13
|
reducers: {
|
|
14
14
|
fetchEntityRecommendationsByTransactionId: {
|
|
15
|
-
reducer(draft,
|
|
15
|
+
reducer(draft,
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17
|
+
action) {
|
|
16
18
|
const { entity } = action.payload;
|
|
17
19
|
const key = (0, recommendationState_1.getEntityRecommendationKey)(entity.type, entity.id);
|
|
18
20
|
const existingRecommendation = draft.recommendationByEntity[key];
|
|
@@ -73,6 +75,7 @@ const recommendation = (0, toolkit_1.createSlice)({
|
|
|
73
75
|
updateRecommendationForEntity(draft, action) {
|
|
74
76
|
doUpdateRecommendationForEntity(draft.recommendationByEntity, action.payload.entityId, action.payload.entityType, action.payload.recommendations);
|
|
75
77
|
},
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
76
79
|
updateRecommendationForEntityFailure(draft, action) {
|
|
77
80
|
const { entityId, entityType, status } = action.payload;
|
|
78
81
|
const key = (0, recommendationState_1.getEntityRecommendationKey)(entityType, entityId);
|
|
@@ -50,7 +50,7 @@ export declare type SupportedRewardPlans = ReturnType<typeof toSupportedRewardPl
|
|
|
50
50
|
export declare const REFERRAL_LIST_VIEW_SORT_KEYS: readonly ["invitee_email", "amount", "status", "referral_date"];
|
|
51
51
|
export declare const toReferralListViewSortKeyType: (v: string) => "status" | "amount" | "invitee_email" | "referral_date";
|
|
52
52
|
export declare type ReferralListViewSortKey = ReturnType<typeof toReferralListViewSortKeyType>;
|
|
53
|
-
declare const toReferralStatusType: (v: string) => "
|
|
53
|
+
declare const toReferralStatusType: (v: string) => "active" | "onboarding" | "declined" | "invite_processing" | "invite_sent" | "resend_invite" | "reward_sent";
|
|
54
54
|
export declare type ReferralStatus = ReturnType<typeof toReferralStatusType>;
|
|
55
55
|
export declare const StatusTypes: Record<ReferralStatus, string>;
|
|
56
56
|
declare const toReferralAmountStatusType: (v: string) => "received" | "to_be_received";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getReimbursementCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "
|
|
3
|
+
reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
fetchState: import("../..").FetchState;
|
|
7
7
|
reimbursementAmountByKey: Record<string, import("../..").Amount>;
|
|
8
8
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
9
9
|
transactionCount: number;
|
|
10
|
-
firstMonthOfFY:
|
|
10
|
+
firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
|
|
11
11
|
};
|
|
12
12
|
export type ReimbursementCardReport = ReturnType<typeof getReimbursementCardReport>;
|
|
@@ -4,31 +4,31 @@ import { ID } from '../../commonStateTypes/common';
|
|
|
4
4
|
import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
|
|
5
5
|
import { ReportUIOptionsState } from './reportUIOptionsState';
|
|
6
6
|
export declare const initialState: ReportUIOptionsState;
|
|
7
|
-
export declare const updateReportUIOptionTimeframe: import("@reduxjs/toolkit").ActionCreatorWithPayload<"month" | "year" | "quarter", "report_ui_options/updateReportUIOptionTimeframe">, updateReportUIOptionThisPeriod: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[firstMonthOfFY:
|
|
8
|
-
firstMonthOfFY:
|
|
7
|
+
export declare const updateReportUIOptionTimeframe: import("@reduxjs/toolkit").ActionCreatorWithPayload<"month" | "year" | "quarter", "report_ui_options/updateReportUIOptionTimeframe">, updateReportUIOptionThisPeriod: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9, thisPeriod: TimeframeTick, maxNumOfPeriodsToSelect?: number | undefined], {
|
|
8
|
+
firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
|
|
9
9
|
thisPeriod: TimeframeTick;
|
|
10
10
|
maxNumOfPeriodsToSelect: number | undefined;
|
|
11
11
|
}, "report_ui_options/updateReportUIOptionThisPeriod", never, never>, updateReportUIOptionCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedCOABalancesRange: COABalancesRange, highlightedCOABalancesRange?: COABalancesRangeWithThisPeriod | undefined], {
|
|
12
12
|
selectedCOABalancesRange: COABalancesRange;
|
|
13
13
|
highlightedCOABalancesRange: COABalancesRangeWithThisPeriod | undefined;
|
|
14
|
-
}, "report_ui_options/updateReportUIOptionCOABalancesRange", never, never>, updateReportUIOptionIsCompareModeOn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[firstMonthOfFY:
|
|
15
|
-
firstMonthOfFY:
|
|
14
|
+
}, "report_ui_options/updateReportUIOptionCOABalancesRange", never, never>, updateReportUIOptionIsCompareModeOn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9, isCompareModeOn: boolean, maxNumOfPeriodsToHighlight: any, additionalBalances: COABalanceType[]], {
|
|
15
|
+
firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
|
|
16
16
|
isCompareModeOn: boolean;
|
|
17
17
|
maxNumOfPeriodsToHighlight: any;
|
|
18
18
|
additionalBalances: COABalanceType[];
|
|
19
|
-
}, "report_ui_options/updateReportUIOptionIsCompareModeOn", never, never>, updateReportUIOptionCompareMode: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[firstMonthOfFY:
|
|
20
|
-
firstMonthOfFY:
|
|
19
|
+
}, "report_ui_options/updateReportUIOptionIsCompareModeOn", never, never>, updateReportUIOptionCompareMode: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9, compareMode: "compare_mode_percent" | "compare_mode_amount", maxNumOfPeriodsToHighlight: any, additionalBalances: COABalanceType[]], {
|
|
20
|
+
firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
|
|
21
21
|
compareMode: "compare_mode_percent" | "compare_mode_amount";
|
|
22
22
|
maxNumOfPeriodsToHighlight: any;
|
|
23
23
|
additionalBalances: COABalanceType[];
|
|
24
24
|
}, "report_ui_options/updateReportUIOptionCompareMode", never, never>, updateReportUIOptionIsForecastVsActualOn: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "report_ui_options/updateReportUIOptionIsForecastVsActualOn">, updateReportUIOptionSelectedForecast: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[id: string, index: number], {
|
|
25
25
|
id: string;
|
|
26
26
|
index: number;
|
|
27
|
-
}, "report_ui_options/updateReportUIOptionSelectedForecast", never, never>, toggleReportUIOptionForecastMode: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[firstMonthOfFY:
|
|
27
|
+
}, "report_ui_options/updateReportUIOptionSelectedForecast", never, never>, toggleReportUIOptionForecastMode: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9, isForecastModeOn: boolean, maxNumOfPeriodsToHighlightWithForecast?: any, selectedForecast?: {
|
|
28
28
|
id: ID;
|
|
29
29
|
index: number;
|
|
30
30
|
} | undefined], {
|
|
31
|
-
firstMonthOfFY:
|
|
31
|
+
firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
|
|
32
32
|
isForecastModeOn: boolean;
|
|
33
33
|
maxNumOfPeriodsToHighlightWithForecast: any;
|
|
34
34
|
selectedForecast: {
|
|
@@ -24,7 +24,9 @@ const updateReportUIOptionThisPeriodEpic = (actions$, state) => actions$.pipe((0
|
|
|
24
24
|
firstMonthOfFY: action.payload.firstMonthOfFY,
|
|
25
25
|
thisPeriod: action.payload.thisPeriod,
|
|
26
26
|
coaBalances: financeStatementState.balancesInTimeframe,
|
|
27
|
-
maxNumOfPeriodsToHighlight:
|
|
27
|
+
maxNumOfPeriodsToHighlight:
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
29
|
+
(_a = action.payload.maxNumOfPeriodsToSelect) !== null && _a !== void 0 ? _a : financeStatementReducer_1.initialFinanceStatementState.maxNumOfPeriodsToHighlight,
|
|
28
30
|
}));
|
|
29
31
|
}));
|
|
30
32
|
exports.updateReportUIOptionThisPeriodEpic = updateReportUIOptionThisPeriodEpic;
|
|
@@ -72,6 +72,7 @@ const revenue = (0, toolkit_1.createSlice)({
|
|
|
72
72
|
initialState: exports.initialState,
|
|
73
73
|
reducers: {
|
|
74
74
|
fetchRevenue: {
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
75
76
|
prepare(fetchFullReport = false, forecastId, cacheOverride = false) {
|
|
76
77
|
return { payload: { fetchFullReport, forecastId, cacheOverride } };
|
|
77
78
|
},
|
|
@@ -84,7 +85,11 @@ const revenue = (0, toolkit_1.createSlice)({
|
|
|
84
85
|
},
|
|
85
86
|
},
|
|
86
87
|
fetchRevenueForTimeframe: {
|
|
87
|
-
prepare(timeframe, forecastId,
|
|
88
|
+
prepare(timeframe, forecastId,
|
|
89
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
90
|
+
fetchFullReport = true,
|
|
91
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
+
cacheOverride = false) {
|
|
88
93
|
return {
|
|
89
94
|
payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
|
|
90
95
|
};
|
|
@@ -104,7 +109,8 @@ const revenue = (0, toolkit_1.createSlice)({
|
|
|
104
109
|
reducer(draft) {
|
|
105
110
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
106
111
|
},
|
|
107
|
-
prepare(cacheOverride = false,
|
|
112
|
+
prepare(cacheOverride = false, // eslint-disable-line @typescript-eslint/no-inferrable-types
|
|
113
|
+
forecastId) {
|
|
108
114
|
return {
|
|
109
115
|
payload: {
|
|
110
116
|
cacheOverride,
|
|
@@ -117,7 +123,8 @@ const revenue = (0, toolkit_1.createSlice)({
|
|
|
117
123
|
reducer(draft) {
|
|
118
124
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
119
125
|
},
|
|
120
|
-
prepare(cacheOverride = false,
|
|
126
|
+
prepare(cacheOverride = false, // eslint-disable-line @typescript-eslint/no-inferrable-types
|
|
127
|
+
forecastId) {
|
|
121
128
|
return {
|
|
122
129
|
payload: {
|
|
123
130
|
cacheOverride,
|
|
@@ -37,6 +37,7 @@ const revenueClassesView = (0, toolkit_1.createSlice)({
|
|
|
37
37
|
initialState: exports.initialState,
|
|
38
38
|
reducers: {
|
|
39
39
|
fetchRevenueClassesView: {
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
40
41
|
prepare(cacheOverride = false) {
|
|
41
42
|
return { payload: { cacheOverride } };
|
|
42
43
|
},
|
|
@@ -49,7 +50,11 @@ const revenueClassesView = (0, toolkit_1.createSlice)({
|
|
|
49
50
|
},
|
|
50
51
|
},
|
|
51
52
|
fetchRevenueForTimeframeClassesView: {
|
|
52
|
-
prepare(timeframe,
|
|
53
|
+
prepare(timeframe,
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
55
|
+
fetchFullReport = true,
|
|
56
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
57
|
+
cacheOverride = false) {
|
|
53
58
|
return { payload: { timeframe, fetchFullReport, cacheOverride } };
|
|
54
59
|
},
|
|
55
60
|
reducer(draft, action) {
|
package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const toLinkBillExpenseKeysType: (v: string) => "
|
|
1
|
+
declare const toLinkBillExpenseKeysType: (v: string) => "name" | "attachment" | "amount" | "memo" | "transactionType" | "creationDate";
|
|
2
2
|
export declare type LinkBillExpenseKey = ReturnType<typeof toLinkBillExpenseKeysType>;
|
|
3
3
|
export {};
|
|
@@ -36,9 +36,9 @@ export declare const createNewSchedules: import("@reduxjs/toolkit").ActionCreato
|
|
|
36
36
|
}, "scheduleDetailView/updateDeletedScheduleDetail", never, never>, deleteScheduleDetailSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[fetchState: FetchState, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
|
|
37
37
|
fetchState: FetchState;
|
|
38
38
|
error: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
39
|
-
}, "scheduleDetailView/deleteScheduleDetailSuccessOrFailure", never, never>, initializeScheduleDetailLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", selectedJEScheduleKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}
|
|
39
|
+
}, "scheduleDetailView/deleteScheduleDetailSuccessOrFailure", never, never>, initializeScheduleDetailLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", selectedJEScheduleKey: `${string}_transfer` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`, selectedJeScheduleDetailId?: string | undefined], {
|
|
40
40
|
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
41
|
-
selectedJEScheduleKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}
|
|
41
|
+
selectedJEScheduleKey: `${string}_transfer` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
42
42
|
selectedJeScheduleDetailId: string | undefined;
|
|
43
43
|
}, "scheduleDetailView/initializeScheduleDetailLocalData", never, never>, updateScheduleDetailsLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
44
44
|
scheduleType: ScheduleTypes;
|
|
@@ -66,9 +66,9 @@ export declare const createNewSchedules: import("@reduxjs/toolkit").ActionCreato
|
|
|
66
66
|
jeScheduleDetailId: ID;
|
|
67
67
|
rowId: number;
|
|
68
68
|
originalScheduledJE: ScheduledJournalEntry;
|
|
69
|
-
}, "scheduleDetailView/resetJELinkInLocalData">, markAsCompleteScheduleDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", jeScheduleKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}
|
|
69
|
+
}, "scheduleDetailView/resetJELinkInLocalData">, markAsCompleteScheduleDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", jeScheduleKey: `${string}_transfer` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
|
|
70
70
|
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
71
|
-
jeScheduleKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}
|
|
71
|
+
jeScheduleKey: `${string}_transfer` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
72
72
|
}, "scheduleDetailView/markAsCompleteScheduleDetail", never, never>, markAsCompleteScheduleDetailSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[fetchState: FetchState, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
|
|
73
73
|
fetchState: FetchState;
|
|
74
74
|
error: ZeniAPIStatus<Record<string, unknown>> | undefined;
|