@zeniai/client-epic-state 4.15.42 → 4.15.44
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 +19 -1
- package/lib/commonPayloadTypes/recommendationPayload.d.ts +1 -0
- 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 +1 -0
- package/lib/configureStore.js +2 -1
- 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/accountRecon/accountReconPayload.d.ts +70 -0
- package/lib/entity/accountRecon/accountReconPayload.js +125 -0
- package/lib/entity/accountRecon/accountReconReducer.d.ts +16 -0
- package/lib/entity/accountRecon/accountReconReducer.js +71 -0
- package/lib/entity/accountRecon/accountReconSelector.d.ts +28 -0
- package/lib/entity/accountRecon/accountReconSelector.js +44 -0
- package/lib/entity/accountRecon/accountReconState.d.ts +70 -0
- package/lib/entity/accountRecon/accountReconState.js +28 -0
- 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 +0 -1
- package/lib/entity/customer/customerPayload.d.ts +1 -1
- package/lib/entity/customer/customerPayload.js +16 -6
- 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 +4 -0
- package/lib/entity/task/taskState.d.ts +3 -3
- package/lib/entity/tenant/clearAllEpic.d.ts +4 -2
- package/lib/entity/tenant/clearAllEpic.js +4 -0
- package/lib/entity/tenant/tenantReducer.d.ts +2 -2
- package/lib/entity/tenant/tenantReducer.js +0 -1
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +1 -2
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +35 -0
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +53 -0
- package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +2 -0
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +9 -6
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +9 -1
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +24 -2
- package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -2
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +32 -0
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +10 -0
- package/lib/entity/transaction/stateTypes/transaction.d.ts +3 -1
- 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 +5 -0
- package/lib/entity/transaction/stateTypes/vendorTransaction.js +5 -1
- package/lib/entity/transaction/toSupportedTransaction.js +6 -1
- package/lib/entity/transaction/transactionReducer.d.ts +17 -0
- package/lib/entity/transaction/transactionReducer.js +47 -2
- package/lib/entity/transaction/transactionSelector.d.ts +2 -0
- package/lib/entity/transaction/transactionSelector.js +5 -0
- package/lib/entity/transaction/transactionState.d.ts +6 -4
- package/lib/entity/vendorExpense/vendorExpenseReducer.js +0 -1
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/epic.d.ts +6 -1
- package/lib/epic.js +6 -1
- package/lib/index.d.ts +22 -13
- package/lib/index.js +56 -27
- package/lib/init.d.ts +2 -1
- package/lib/init.js +9 -2
- package/lib/reducer.d.ts +7 -1
- package/lib/reducer.js +6 -0
- package/lib/view/accountList/accountListReducer.js +1 -3
- package/lib/view/accountMappingView/accountMappingReducer.js +0 -1
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +1 -2
- package/lib/view/auditReportView/auditReportViewReducer.d.ts +2 -2
- package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
- package/lib/view/balanceSheet/balanceSheetReducer.js +1 -6
- package/lib/view/bankAccountView/bankAccountViewReducer.js +0 -1
- 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 +1 -4
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
- package/lib/view/cashPosition/cashPositionReducer.js +0 -1
- 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 +7 -0
- package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +1 -3
- 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 +1 -10
- 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 +0 -2
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +15 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +118 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +10 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +49 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +14 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +169 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +9 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +154 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +6 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +110 -0
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +24 -10
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +14 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +30 -7
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +1 -5
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +17 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +7 -0
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +18 -0
- package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +98 -42
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +86 -10
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +28 -0
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +51 -0
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +11 -11
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +66 -0
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +384 -0
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +12 -1
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +66 -7
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +2 -0
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +51 -0
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +7 -0
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +5 -2
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +5 -0
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +254 -0
- 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/reconciliationViewState.d.ts +103 -0
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +37 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +12 -2
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementReducer.js +1 -4
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +4 -4
- package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +3 -10
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +1 -6
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +0 -1
- 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 +0 -3
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -2
- package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
- package/lib/view/opEx/opExReducer.js +4 -14
- package/lib/view/opExByVendor/opExByVendorReducer.js +1 -3
- package/lib/view/opExByVendor/opExByVendorState.d.ts +1 -1
- package/lib/view/opExClassesView/opExClassesViewReducer.js +1 -6
- package/lib/view/people/fetchPeopleEpic.js +1 -3
- package/lib/view/people/invitePeopleEpic.js +1 -3
- package/lib/view/people/inviteZeniPeopleEpic.js +1 -3
- package/lib/view/people/peopleReducer.js +0 -1
- package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
- package/lib/view/profitAndLoss/profitAndLossReducer.js +1 -6
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +1 -6
- package/lib/view/recommendation/recommendationReducer.js +1 -4
- 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 +1 -3
- package/lib/view/revenue/revenueReducer.js +3 -10
- package/lib/view/revenueClassesView/revenueClassesViewReducer.js +1 -6
- 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 +0 -1
- 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 +0 -1
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +5 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +0 -6
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +4 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +1 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +2 -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 +11 -3
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +11 -10
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +3 -1
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +2 -6
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +1 -3
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +0 -1
- 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/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.js +7 -7
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.js +5 -4
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPayState.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +14 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +78 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +3 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +2 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +9 -0
- package/lib/view/subscriptionView/subscriptionViewReducer.js +0 -1
- package/lib/view/subscriptionView/types/subscriptionTypes.js +0 -1
- package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +1 -3
- 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 +1 -2
- 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 +30 -52
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +22 -4
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +66 -13
- package/lib/view/transactionDetail/transactionDetailReducer.d.ts +13 -4
- package/lib/view/transactionDetail/transactionDetailReducer.js +51 -21
- package/lib/view/transactionDetail/transactionDetailState.d.ts +3 -2
- package/lib/view/transactionDetail/transactionDetailTypes.d.ts +8 -0
- package/lib/view/transactionList/transactionListByEntitySelector.js +0 -2
- package/lib/view/transactionList/transactionListReducer.js +4 -6
- package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +0 -1
- package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +1 -3
- 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 +1 -0
- package/lib/zeniUrl.d.ts +1 -1
- package/package.json +14 -12
|
@@ -41,9 +41,7 @@ const accountList = (0, toolkit_1.createSlice)({
|
|
|
41
41
|
initialState: exports.initialState,
|
|
42
42
|
reducers: {
|
|
43
43
|
fetchAccountList: {
|
|
44
|
-
reducer(draft,
|
|
45
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46
|
-
action) {
|
|
44
|
+
reducer(draft, action) {
|
|
47
45
|
const existingData = draft.byReportId[action.payload.accountListKey];
|
|
48
46
|
draft.byReportId[action.payload.accountListKey] = Object.assign(Object.assign({}, existingData), { fetchState: 'In-Progress', error: undefined });
|
|
49
47
|
},
|
|
@@ -71,7 +71,6 @@ const accountMapping = (0, toolkit_1.createSlice)({
|
|
|
71
71
|
name: 'accountMapping',
|
|
72
72
|
initialState: exports.initialState,
|
|
73
73
|
reducers: {
|
|
74
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
75
74
|
initializeAccountMappingView(draft) {
|
|
76
75
|
draft.data = exports.initialState.data;
|
|
77
76
|
},
|
|
@@ -29,8 +29,7 @@ const apAgingDetail = (0, toolkit_1.createSlice)({
|
|
|
29
29
|
const entityKey = (0, agingReportStateTypes_1.getAgingDetailReportEntityKey)(vendorId, reportDate);
|
|
30
30
|
draft.apAgingDetailByVendorId[entityKey] = Object.assign(Object.assign({}, draft.apAgingDetailByVendorId[entityKey]), { fetchState: 'In-Progress', error: undefined, invoices: [] });
|
|
31
31
|
},
|
|
32
|
-
prepare(vendorId, reportDate, cacheOverride = false
|
|
33
|
-
) {
|
|
32
|
+
prepare(vendorId, reportDate, cacheOverride = false) {
|
|
34
33
|
return {
|
|
35
34
|
payload: {
|
|
36
35
|
cacheOverride,
|
|
@@ -9,9 +9,9 @@ export declare const fetchAuditRuleGroupView: import("@reduxjs/toolkit").ActionC
|
|
|
9
9
|
auditRuleGroups: AuditRuleGroupPayload[];
|
|
10
10
|
}, "auditReportView/updateAuditRuleGroupViewOnSuccess", never, never>, updateAuditRuleGroupViewOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
11
11
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
12
|
-
}, "auditReportView/updateAuditRuleGroupViewOnFailure", never, never>, fetchAuditReportGroupView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, fetchAction: "
|
|
12
|
+
}, "auditReportView/updateAuditRuleGroupViewOnFailure", never, never>, fetchAuditReportGroupView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, fetchAction: "generate" | "view", reportGroupId: string], {
|
|
13
13
|
companyId: string;
|
|
14
|
-
fetchAction: "
|
|
14
|
+
fetchAction: "generate" | "view";
|
|
15
15
|
reportGroupId: string;
|
|
16
16
|
}, "auditReportView/fetchAuditReportGroupView", never, never>, updateAuditReportGroupViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, reportGroupId: string, auditReportGroupPayload: AuditReportGroupPayload], {
|
|
17
17
|
companyId: string;
|
|
@@ -5,12 +5,12 @@ import { ZeniDate } from '../../zeniDayJS';
|
|
|
5
5
|
import { AuditSummary } from '../reviewCompanyView/reviewCompanyViewState';
|
|
6
6
|
export declare const toAuditRuleEntityType: (v: string) => "dashboard" | "reports" | "transactions";
|
|
7
7
|
export type AuditRuleEntityType = ReturnType<typeof toAuditRuleEntityType>;
|
|
8
|
-
declare const toAuditRuleEntityIdType: (v: string) => "
|
|
8
|
+
declare const toAuditRuleEntityIdType: (v: string) => "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "uncategorized-expense" | "uncategorized-income";
|
|
9
9
|
export type AuditRuleEntityIdType = ReturnType<typeof toAuditRuleEntityIdType>;
|
|
10
10
|
export declare const toAuditRuleTypeIdType: (v: string) => "accounting" | "business";
|
|
11
11
|
type AuditRuleTypeIdType = ReturnType<typeof toAuditRuleTypeIdType>;
|
|
12
12
|
export declare const AUDIT_REPORT_ACTION_TYPES: readonly ["generate", "view"];
|
|
13
|
-
export declare const toAuditReportActionType: (v: string) => "
|
|
13
|
+
export declare const toAuditReportActionType: (v: string) => "generate" | "view";
|
|
14
14
|
export type AuditReportActionType = ReturnType<typeof toAuditReportActionType>;
|
|
15
15
|
interface AuditRuleGroupBase {
|
|
16
16
|
auditRuleGroupId: ID;
|
|
@@ -36,7 +36,6 @@ const balanceSheet = (0, toolkit_1.createSlice)({
|
|
|
36
36
|
initialState: exports.initialState,
|
|
37
37
|
reducers: {
|
|
38
38
|
fetchBalanceSheet: {
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
40
39
|
prepare(cacheOverride = false) {
|
|
41
40
|
return { payload: { cacheOverride } };
|
|
42
41
|
},
|
|
@@ -49,11 +48,7 @@ const balanceSheet = (0, toolkit_1.createSlice)({
|
|
|
49
48
|
},
|
|
50
49
|
},
|
|
51
50
|
fetchBalanceSheetForTimeframe: {
|
|
52
|
-
prepare(timeframe,
|
|
53
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
54
|
-
fetchFullReport = true,
|
|
55
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
56
|
-
cacheOverride = false) {
|
|
51
|
+
prepare(timeframe, fetchFullReport = true, cacheOverride = false) {
|
|
57
52
|
return {
|
|
58
53
|
payload: { timeframe, fetchFullReport, cacheOverride },
|
|
59
54
|
};
|
|
@@ -45,7 +45,6 @@ const bankAccountView = (0, toolkit_1.createSlice)({
|
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
createInternationalBankAccount: {
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
48
|
reducer(draft) {
|
|
50
49
|
draft.createInternationalBankAccountDetails.createStatus.fetchState =
|
|
51
50
|
'In-Progress';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getBillPayCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "
|
|
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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
fetchState: import("../..").FetchState;
|
|
7
7
|
billPayAmountByKey: Record<string, import("../..").Amount>;
|
|
8
8
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
9
9
|
transactionCount: number;
|
|
10
|
-
firstMonthOfFY:
|
|
10
|
+
firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
11
11
|
};
|
|
12
12
|
export type BillPayCardReport = ReturnType<typeof getBillPayCardReport>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getCardBalance: (state: RootState) => {
|
|
3
|
-
reportId: "
|
|
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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const getCardBalance: (state: RootState) => {
|
|
|
12
12
|
accountSubType: string | undefined;
|
|
13
13
|
accountDescription: string;
|
|
14
14
|
last4Digits: string | undefined;
|
|
15
|
-
logo: import("url-parse")<string
|
|
15
|
+
logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
|
|
16
16
|
status: import("../..").Status | undefined;
|
|
17
17
|
balance: import("../..").Balance | undefined;
|
|
18
18
|
statementCloseDay: import("../..").StatementCloseDay | undefined;
|
|
@@ -23,7 +23,7 @@ export declare const getCardBalance: (state: RootState) => {
|
|
|
23
23
|
labels: ("prepaid_expenses" | "fixed_assets" | "uncategorized_income" | "uncategorized_expense" | "bank_charges_and_fees" | "travel_transportation" | "accrued_expenses")[];
|
|
24
24
|
}[];
|
|
25
25
|
balance: import("../..").Balance | undefined;
|
|
26
|
-
firstMonthOfFY:
|
|
26
|
+
firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
27
27
|
dataAvailable: import("../..").TimeframeTick | undefined;
|
|
28
28
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
29
29
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getCashBalance: (state: RootState) => {
|
|
3
|
-
reportId: "
|
|
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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const getCashBalance: (state: RootState) => {
|
|
|
12
12
|
accountSubType: string | undefined;
|
|
13
13
|
accountDescription: string;
|
|
14
14
|
last4Digits: string | undefined;
|
|
15
|
-
logo: import("url-parse")<string
|
|
15
|
+
logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
|
|
16
16
|
status: import("../..").Status | undefined;
|
|
17
17
|
balance: import("../..").Balance | undefined;
|
|
18
18
|
statementCloseDay: import("../..").StatementCloseDay | undefined;
|
|
@@ -23,7 +23,7 @@ export declare const getCashBalance: (state: RootState) => {
|
|
|
23
23
|
labels: ("prepaid_expenses" | "fixed_assets" | "uncategorized_income" | "uncategorized_expense" | "bank_charges_and_fees" | "travel_transportation" | "accrued_expenses")[];
|
|
24
24
|
}[];
|
|
25
25
|
balance: import("../..").Balance | undefined;
|
|
26
|
-
firstMonthOfFY:
|
|
26
|
+
firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
27
27
|
dataAvailable: import("../..").TimeframeTick | undefined;
|
|
28
28
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
29
29
|
};
|
|
@@ -37,7 +37,6 @@ const cashFlow = (0, toolkit_1.createSlice)({
|
|
|
37
37
|
initialState: exports.initialState,
|
|
38
38
|
reducers: {
|
|
39
39
|
fetchCashFlow: {
|
|
40
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
41
40
|
prepare(fetchFullReport = false, cacheOverride = true) {
|
|
42
41
|
return { payload: { fetchFullReport, cacheOverride } };
|
|
43
42
|
},
|
|
@@ -47,9 +46,7 @@ const cashFlow = (0, toolkit_1.createSlice)({
|
|
|
47
46
|
},
|
|
48
47
|
},
|
|
49
48
|
fetchCashFlowForTimeframe: {
|
|
50
|
-
prepare(timeframe,
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
52
|
-
fetchFullReport = true) {
|
|
49
|
+
prepare(timeframe, fetchFullReport = true) {
|
|
53
50
|
return {
|
|
54
51
|
payload: { timeframe, fetchFullReport },
|
|
55
52
|
};
|
|
@@ -12,10 +12,10 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
|
|
|
12
12
|
cashOut: Section;
|
|
13
13
|
netCashFlow: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
|
|
14
14
|
allTimeframeTicks: TimeframeTickWithMetaData[];
|
|
15
|
-
firstMonthOfFY:
|
|
15
|
+
firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
16
16
|
dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
|
|
17
17
|
availableNumberOfPeriods: number | undefined;
|
|
18
|
-
reportId: "
|
|
18
|
+
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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
|
|
19
19
|
reportTitle: string;
|
|
20
20
|
version: string | number | undefined;
|
|
21
21
|
status: import("../..").Status | undefined;
|
|
@@ -48,7 +48,6 @@ const cashPosition = (0, toolkit_1.createSlice)({
|
|
|
48
48
|
initialState: exports.initialState,
|
|
49
49
|
reducers: {
|
|
50
50
|
fetchCashPosition: {
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
52
51
|
prepare(fetchFullReport = false) {
|
|
53
52
|
return { payload: { fetchFullReport } };
|
|
54
53
|
},
|
|
@@ -9,10 +9,10 @@ export declare const getCashPosition: (accountState: AccountState, cashPositionS
|
|
|
9
9
|
filter: COABalancesFilter;
|
|
10
10
|
cashPosition: SectionWithAccountOnly;
|
|
11
11
|
allTimeframeTicks: TimeframeTickWithMetaData[];
|
|
12
|
-
firstMonthOfFY:
|
|
12
|
+
firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
13
13
|
dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
|
|
14
14
|
availableNumberOfPeriods: number | undefined;
|
|
15
|
-
reportId: "
|
|
15
|
+
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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
|
|
16
16
|
reportTitle: string;
|
|
17
17
|
version: string | number | undefined;
|
|
18
18
|
status: import("../..").Status | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { COABalanceGroupedByPeriod } from '../../commonStateTypes/coaBalance/coaBalance';
|
|
2
|
-
export declare const getTimeSeriesGroup: (timeframe: "week" | "month" | "quarter" | "year") => "
|
|
2
|
+
export declare const getTimeSeriesGroup: (timeframe: "week" | "month" | "quarter" | "year") => "months" | "years" | "quarters" | "weeks";
|
|
3
3
|
export declare const isCOABalanceGroupedByPeriodEmptyForTimeframe: (coaBalanceGrouped: COABalanceGroupedByPeriod, timeframe: "week" | "month" | "quarter" | "year") => boolean;
|
|
@@ -63,6 +63,13 @@ const saveTransactionVendorEpic = (actions$, state$, zeniAPI) => actions$.pipe((
|
|
|
63
63
|
name: response.data.vendors[0].vendor_name,
|
|
64
64
|
id: response.data.vendors[0].vendor_id,
|
|
65
65
|
},
|
|
66
|
+
selectedEntity: {
|
|
67
|
+
name: response.data.vendors[0].vendor_name,
|
|
68
|
+
id: response.data.vendors[0].vendor_id,
|
|
69
|
+
type: 'vendor',
|
|
70
|
+
zeniId: response.data.vendors[0].vendor_id,
|
|
71
|
+
qboId: response.data.vendors[0].qbo_id,
|
|
72
|
+
},
|
|
66
73
|
}));
|
|
67
74
|
}
|
|
68
75
|
}
|
package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js
CHANGED
|
@@ -45,9 +45,7 @@ const fetchAndUpdateVendorRecommendationsEpic = (actions$, state$) => actions$.p
|
|
|
45
45
|
}));
|
|
46
46
|
exports.fetchAndUpdateVendorRecommendationsEpic = fetchAndUpdateVendorRecommendationsEpic;
|
|
47
47
|
// just updates the local state with new data
|
|
48
|
-
const waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic = (actions$,
|
|
49
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
50
|
-
state$) => actions$.pipe((0, operators_1.filter)(vendorViewReducer_1.waitForVendorRecommendationAndUpdatedRecommendationByLineId.match
|
|
48
|
+
const waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(vendorViewReducer_1.waitForVendorRecommendationAndUpdatedRecommendationByLineId.match
|
|
51
49
|
// Wait For vendor recommendation and updated recommendation by line id
|
|
52
50
|
), (0, operators_1.switchMap)((action) => {
|
|
53
51
|
const { vendorName } = action.payload;
|
|
@@ -36,8 +36,8 @@ export declare const fetchVendorsTabVendorDetails: import("@reduxjs/toolkit").Ac
|
|
|
36
36
|
}, "vendorsTabVendorView/fetchVendorsTabVendorDetailPageView", never, never>, updateVendorsTabVendorAllTransactionsTabData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
37
|
timePeriod: TimePeriod;
|
|
38
38
|
numberOfQuartersFetched: number;
|
|
39
|
-
}, "vendorsTabVendorView/updateVendorsTabVendorAllTransactionsTabData">, resetSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"vendorsTabVendorView/resetSelectedTabType">, updateSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithPayload<"spend_transactions" | "all_transactions", "vendorsTabVendorView/updateSelectedTabType">, updateVendorSpendTrendFilterTabValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorSpendTrendfilterTabValue: "last_month" | "
|
|
40
|
-
vendorSpendTrendfilterTabValue: "last_month" | "
|
|
39
|
+
}, "vendorsTabVendorView/updateVendorsTabVendorAllTransactionsTabData">, resetSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"vendorsTabVendorView/resetSelectedTabType">, updateSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithPayload<"spend_transactions" | "all_transactions", "vendorsTabVendorView/updateSelectedTabType">, updateVendorSpendTrendFilterTabValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorSpendTrendfilterTabValue: "last_month" | "variance" | "last_30_days" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year"], {
|
|
40
|
+
vendorSpendTrendfilterTabValue: "last_month" | "variance" | "last_30_days" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year";
|
|
41
41
|
}, "vendorsTabVendorView/updateVendorSpendTrendFilterTabValue", never, never>, resetVendorsTabVendorAllTransactionsTabData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"vendorsTabVendorView/resetVendorsTabVendorAllTransactionsTabData">, updateContactsInVendorTabDetailLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
42
42
|
vendorId: ID;
|
|
43
43
|
localData?: Partial<VendorsTabVendorDetailLocalData>;
|
|
@@ -4,10 +4,10 @@ import { CompanyTaskManagerViewPayload } from './companyTaskManagerViewPayload';
|
|
|
4
4
|
import { CompanyTaskManagerViewState, CompanyTaskManagerViewUIState } from './companyTaskManagerViewState';
|
|
5
5
|
export declare const initialUIState: CompanyTaskManagerViewUIState;
|
|
6
6
|
export declare const initialState: CompanyTaskManagerViewState;
|
|
7
|
-
export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pageToken: PageToken, sortKey: "
|
|
7
|
+
export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pageToken: PageToken, sortKey: "status" | "name" | "dueDate" | "tags" | "createdBy" | "priority" | "taskName" | "assignee", sortOrder: "ascending" | "descending", keepExistingListItems?: any, searchString?: string | undefined], {
|
|
8
8
|
pageToken: PageToken;
|
|
9
9
|
searchString: string | undefined;
|
|
10
|
-
sortKey: "
|
|
10
|
+
sortKey: "status" | "name" | "dueDate" | "tags" | "createdBy" | "priority" | "taskName" | "assignee";
|
|
11
11
|
sortOrder: "ascending" | "descending";
|
|
12
12
|
keepExistingListItems: any;
|
|
13
13
|
}, "companyTaskManagerView/fetchCompanyTaskManagerView", never, never>, updateCompanyTaskManagerViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -55,7 +55,7 @@ export declare const fetchCompanyPassportView: import("@reduxjs/toolkit").Action
|
|
|
55
55
|
fetchFullResponse: boolean;
|
|
56
56
|
}, "companyView/fetchCompanyPortfolioView", never, never>, fetchZeniUsers: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyView/fetchZeniUsers">, updateZeniUsersOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userIds: string[]], {
|
|
57
57
|
userIds: string[];
|
|
58
|
-
}, "companyView/updateZeniUsersOnSuccess", never, never>, updateZeniUsersOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "companyView/updateZeniUsersOnFailure">, clearCompanyView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyView/clearCompanyView">, updateCompanyPortfolioUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<PortfolioUIState>, "companyView/updateCompanyPortfolioUIState">, updateCompanyManagementUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<ManagementUIState>, "companyView/updateCompanyManagementUIState">, companyPassportSaveDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<CompanyPassportLocalData>, "companyView/companyPassportSaveDataInLocalStore">, deleteCompanyOfficerInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<"
|
|
58
|
+
}, "companyView/updateZeniUsersOnSuccess", never, never>, updateZeniUsersOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "companyView/updateZeniUsersOnFailure">, clearCompanyView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyView/clearCompanyView">, updateCompanyPortfolioUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<PortfolioUIState>, "companyView/updateCompanyPortfolioUIState">, updateCompanyManagementUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<ManagementUIState>, "companyView/updateCompanyManagementUIState">, companyPassportSaveDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<CompanyPassportLocalData>, "companyView/companyPassportSaveDataInLocalStore">, deleteCompanyOfficerInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<"Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10", "companyView/deleteCompanyOfficerInLocalStore">, companyPassportClearDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyView/companyPassportClearDataInLocalStore">, companyPassportUpdateCompanyDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, companyDetails: CompanyDetailsLocalData], {
|
|
59
59
|
companyId: string;
|
|
60
60
|
companyDetails: CompanyDetailsLocalData;
|
|
61
61
|
}, "companyView/companyPassportUpdateCompanyDetails", never, never>, companyPassportUpdateCompanyDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
|
|
@@ -49,7 +49,6 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
49
49
|
reducer() {
|
|
50
50
|
// Do nothing.
|
|
51
51
|
},
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
53
52
|
prepare(cacheOverride = false) {
|
|
54
53
|
return { payload: { cacheOverride } };
|
|
55
54
|
},
|
|
@@ -58,7 +57,6 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
58
57
|
reducer() {
|
|
59
58
|
// Do nothing.
|
|
60
59
|
},
|
|
61
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
62
60
|
prepare(cacheOverride = false) {
|
|
63
61
|
return { payload: { cacheOverride } };
|
|
64
62
|
},
|
|
@@ -67,9 +65,7 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
67
65
|
reducer() {
|
|
68
66
|
// Do nothing.
|
|
69
67
|
},
|
|
70
|
-
prepare(
|
|
71
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
72
|
-
cacheOverride = false, fetchFullResponse, companyId) {
|
|
68
|
+
prepare(cacheOverride = false, fetchFullResponse, companyId) {
|
|
73
69
|
return { payload: { cacheOverride, fetchFullResponse, companyId } };
|
|
74
70
|
},
|
|
75
71
|
},
|
|
@@ -77,7 +73,6 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
77
73
|
reducer() {
|
|
78
74
|
// Do nothing.
|
|
79
75
|
},
|
|
80
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
81
76
|
prepare(cacheOverride = false, fetchFullResponse) {
|
|
82
77
|
return { payload: { cacheOverride, fetchFullResponse } };
|
|
83
78
|
},
|
|
@@ -86,13 +81,11 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
86
81
|
reducer() {
|
|
87
82
|
// Do nothing.
|
|
88
83
|
},
|
|
89
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
90
84
|
prepare(cacheOverride = false, fetchFullResponse) {
|
|
91
85
|
return { payload: { cacheOverride, fetchFullResponse } };
|
|
92
86
|
},
|
|
93
87
|
},
|
|
94
88
|
fetchCompanyManagementView: {
|
|
95
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
96
89
|
prepare(fetchFullResponse = false, companyParentId) {
|
|
97
90
|
return { payload: { fetchFullResponse, companyParentId } };
|
|
98
91
|
},
|
|
@@ -105,7 +98,6 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
105
98
|
},
|
|
106
99
|
},
|
|
107
100
|
fetchParentSubsidiaryManagementView: {
|
|
108
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
109
101
|
prepare(fetchFullResponse = false, companyParentId) {
|
|
110
102
|
return { payload: { fetchFullResponse, companyParentId } };
|
|
111
103
|
},
|
|
@@ -469,7 +461,6 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
469
461
|
},
|
|
470
462
|
},
|
|
471
463
|
fetchCompanyPortfolioView: {
|
|
472
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
473
464
|
prepare(fetchFullResponse = false) {
|
|
474
465
|
return { payload: { fetchFullResponse } };
|
|
475
466
|
},
|
|
@@ -4,10 +4,10 @@ import { SubscriptionViewSortKey } from '../../subscriptionView/types/subscripti
|
|
|
4
4
|
import { FilterCategoryValueType } from '../helpers/cockpitHelpers';
|
|
5
5
|
import { CockpitDownloadTabsID, CockpitTabsFileType } from './cockpitTabsID';
|
|
6
6
|
export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "companyName" | "cashBalance" | "revenues" | "netIncome";
|
|
7
|
-
export declare const toManagementSortKeyType: (v: string) => "status" | "
|
|
7
|
+
export declare const toManagementSortKeyType: (v: string) => "status" | "bookCloseDate" | "taxStatus" | "controller" | "preparer" | "reviewer" | "annualRecurringRevenue" | "monthlyRecurringRevenue" | "companyName" | "group" | "task" | "notes" | "plans" | "customerSuccessManager" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
|
|
8
8
|
export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "identityVerified" | "businessVerified" | "bankAccountLinked" | "qboLinked" | "groupCreated" | "customerCreated" | "notes" | "enroller" | "invite" | "latestCreated";
|
|
9
|
-
export declare const toHealthSortKeyType: (v: string) => "
|
|
10
|
-
export declare const toTaskManagerSortKeyType: (v: string) => "
|
|
9
|
+
export declare const toHealthSortKeyType: (v: string) => "runway" | "controller" | "monthlyRecurringRevenue" | "companyName" | "group" | "companyEngagementMetricsUpdatedAt" | "netPromoterScore" | "customerSatisfactionScore" | "externalProductServiceExposure" | "customerSuccessManager" | "lastReportSent" | "issues" | "productVerticals" | "churnProbability" | "subscriptionDate" | "renewalDate" | "dashboardLastSeen" | "lastEngagement";
|
|
10
|
+
export declare const toTaskManagerSortKeyType: (v: string) => "status" | "name" | "dueDate" | "tags" | "createdBy" | "priority" | "taskName" | "assignee";
|
|
11
11
|
export type PortfolioViewSortKey = ReturnType<typeof toPortfolioSortKeyType>;
|
|
12
12
|
export type ManagementViewSortKey = ReturnType<typeof toManagementSortKeyType>;
|
|
13
13
|
export type OnboardingViewSortKey = ReturnType<typeof toOnboardingSortKeyType>;
|
|
@@ -7,7 +7,7 @@ export interface PrimaryContactLocalData {
|
|
|
7
7
|
email: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const ALL_OFFICERS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
10
|
-
declare const toOfficerType: (n: number) =>
|
|
10
|
+
declare const toOfficerType: (n: number) => 1 | 3 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
11
11
|
export type OfficerType = ReturnType<typeof toOfficerType>;
|
|
12
12
|
export type CompanyOfficerType = `Officer_${OfficerType}`;
|
|
13
13
|
export declare const AllCompanyPassportAddressTypes: AddressType[];
|
|
@@ -109,7 +109,6 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
|
|
|
109
109
|
opExState.fetchState !== 'Completed') {
|
|
110
110
|
fetchActions.push((0, opExReducer_1.fetchOpEx)(fetchFullReport));
|
|
111
111
|
}
|
|
112
|
-
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
113
112
|
if (revenueState.fetchState !== 'In-Progress' &&
|
|
114
113
|
revenueState.fetchState !== 'Completed') {
|
|
115
114
|
fetchActions.push((0, revenueReducer_1.fetchRevenue)(fetchFullReport));
|
|
@@ -169,7 +168,6 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
|
|
|
169
168
|
fetchActions.push((0, billPayCardReducer_1.fetchBillPayCard)());
|
|
170
169
|
}
|
|
171
170
|
if (state.reimbursementCardState.fetchState !== 'In-Progress' &&
|
|
172
|
-
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
173
171
|
!state.reimbursementCardState.hasValidState() &&
|
|
174
172
|
isReimbursementFeatureEnabled === true &&
|
|
175
173
|
isAdmin) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { DashboardState } from './dashboardState';
|
|
2
2
|
export declare const initialState: DashboardState;
|
|
3
|
-
export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("
|
|
3
|
+
export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation")[] | undefined], {
|
|
4
4
|
userId: string;
|
|
5
5
|
companyId: string;
|
|
6
6
|
tenantId: string;
|
|
7
7
|
fetchFullReport: any;
|
|
8
8
|
cacheOverride: any;
|
|
9
|
-
excludeResources: ("
|
|
9
|
+
excludeResources: ("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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation")[];
|
|
10
10
|
}, "dashboard/fetchDashboard", never, never>, clearDashboard: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"dashboard/clearDashboard">;
|
|
11
11
|
declare const _default: import("redux").Reducer<DashboardState>;
|
|
12
12
|
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ID } from '../../../../commonStateTypes/common';
|
|
4
|
+
import { updateAccounts } from '../../../../entity/account/accountReducer';
|
|
5
|
+
import { TransactionsToReviewPayload } from '../../../../entity/accountRecon/accountReconPayload';
|
|
6
|
+
import { updateAccountRecon } from '../../../../entity/accountRecon/accountReconReducer';
|
|
7
|
+
import { updateMultipleReconcileTransactions } from '../../../../entity/transaction/transactionReducer';
|
|
8
|
+
import { updateAllUsers } from '../../../../entity/user/userReducer';
|
|
9
|
+
import { RootState } from '../../../../reducer';
|
|
10
|
+
import { ZeniAPI } from '../../../../zeniAPI';
|
|
11
|
+
import { fetchReconciliation, fetchReconciliationFailure, fetchReconciliationSuccess, initialiseLocalDataForSelectedAccountId, initializeReconciliationReviewTabLocalData, updateReconcileTabLocalData } from '../../reducers/reconciliationViewReducer';
|
|
12
|
+
import { ReconciliationReviewTabLocalData } from '../../types/reconciliationViewState';
|
|
13
|
+
export type ActionType = ReturnType<typeof fetchReconciliation> | ReturnType<typeof fetchReconciliationFailure> | ReturnType<typeof fetchReconciliationSuccess> | ReturnType<typeof initialiseLocalDataForSelectedAccountId> | ReturnType<typeof initializeReconciliationReviewTabLocalData> | ReturnType<typeof updateAccountRecon> | ReturnType<typeof updateAccounts> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateMultipleReconcileTransactions> | ReturnType<typeof updateReconcileTabLocalData>;
|
|
14
|
+
export declare const fetchReconciliationViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
15
|
+
export declare const prepareReviewTabLocalData: (transactionsToReview: TransactionsToReviewPayload[]) => Record<ID, ReconciliationReviewTabLocalData>;
|