@zeniai/client-epic-state 4.15.34 → 4.15.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonPayloadTypes/recommendationPayload.d.ts +1 -0
- package/lib/commonStateTypes/timePeriod.d.ts +1 -1
- package/lib/commonStateTypes/timePeriod.js +2 -2
- 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/accountState.d.ts +1 -1
- 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/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/forecast/forecastState.d.ts +1 -1
- 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 +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +4 -0
- package/lib/entity/task/taskState.d.ts +1 -1
- package/lib/entity/tenant/clearAllEpic.d.ts +4 -2
- package/lib/entity/tenant/clearAllEpic.js +4 -0
- 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 +23 -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/auditReportViewState.d.ts +1 -1
- package/lib/view/balanceSheet/balanceSheetReducer.js +1 -6
- package/lib/view/bankAccountView/bankAccountViewReducer.js +0 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashFlow/cashFlowReducer.js +1 -4
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionReducer.js +0 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +1 -3
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/companyView/companyViewReducer.js +1 -10
- 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 +32 -5
- 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 +111 -35
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +84 -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/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/reconciliationViewSelector.d.ts +5 -0
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +250 -0
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +103 -0
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +38 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +10 -0
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementReducer.js +1 -4
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- 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/onboardingView/cockpitView/onboardingCockpitViewReducer.js +0 -3
- 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/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/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- 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/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/settingsView/settingsViewReducer.js +0 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.js +0 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +5 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +0 -6
- 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/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +11 -3
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +2 -1
- 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.js +0 -1
- 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/tasksCard/fetchTasksCardEpic.js +1 -2
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.js +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +45 -15
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +22 -4
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +69 -13
- package/lib/view/transactionDetail/transactionDetailReducer.d.ts +11 -2
- package/lib/view/transactionDetail/transactionDetailReducer.js +51 -21
- package/lib/view/transactionDetail/transactionDetailState.d.ts +1 -0
- 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/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
- package/lib/zeniAPI.d.ts +1 -0
- package/package.json +9 -3
|
@@ -55,21 +55,30 @@ export interface TransactionCategorizationLineItemData extends TransactionLineBa
|
|
|
55
55
|
lineEntity?: Entity;
|
|
56
56
|
isCategoryMiscategorized: boolean;
|
|
57
57
|
isClassMiscategorized: boolean;
|
|
58
|
+
selectedEntityLine?: Entity;
|
|
58
59
|
}
|
|
59
60
|
export interface TransactionReviewLocalData {
|
|
60
61
|
lineItemById: Record<ID, TransactionCategorizationLineItemData>;
|
|
61
62
|
sortedLineItems: ID[];
|
|
62
63
|
vendor?: VendorBase;
|
|
64
|
+
customer?: CustomerBase;
|
|
63
65
|
memo?: string;
|
|
64
66
|
vendorDetails?: {
|
|
65
67
|
id: ID;
|
|
66
68
|
qboId: string;
|
|
67
69
|
name: string;
|
|
68
70
|
};
|
|
71
|
+
customerDetails?: {
|
|
72
|
+
id: ID;
|
|
73
|
+
qboId: string;
|
|
74
|
+
name: string;
|
|
75
|
+
};
|
|
69
76
|
transactionDate?: ZeniDate;
|
|
70
77
|
transactionType?: TransactionType;
|
|
71
78
|
transactionTypeName?: string;
|
|
72
79
|
vendorUpdates?: TransactionVendorUpdates;
|
|
80
|
+
customerUpdates?: TransactionVendorUpdates;
|
|
81
|
+
selectedEntity?: Entity;
|
|
73
82
|
}
|
|
74
83
|
export interface SupportedTransactionCategorization {
|
|
75
84
|
transactionReviewLocalData: TransactionReviewLocalData;
|
|
@@ -103,6 +112,7 @@ export interface TransactionUpdates {
|
|
|
103
112
|
memo?: string;
|
|
104
113
|
updatesByLineId: Record<ID, TransactionLineUpdates>;
|
|
105
114
|
vendorId?: ID;
|
|
115
|
+
customerId?: ID;
|
|
106
116
|
}
|
|
107
117
|
export interface EntityRelatedRecommendationUpdates {
|
|
108
118
|
entityId: ID;
|
|
@@ -17,7 +17,7 @@ export declare const fetchFinanceStatement: import("@reduxjs/toolkit").ActionCre
|
|
|
17
17
|
thisPeriod: TimeframeTick;
|
|
18
18
|
coaBalances: COABalance[];
|
|
19
19
|
maxNumOfPeriodsToHighlight: number;
|
|
20
|
-
}, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"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", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
20
|
+
}, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"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" | "account_reconciliation", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
21
21
|
firstMonthOfFY: Month;
|
|
22
22
|
isCompareModeOn: boolean;
|
|
23
23
|
additionalBalances: COABalanceType[];
|
|
@@ -29,10 +29,7 @@ const financeStatement = (0, toolkit_1.createSlice)({
|
|
|
29
29
|
reducer(draft) {
|
|
30
30
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
31
31
|
},
|
|
32
|
-
prepare(userId, fetchSelectedTab = true,
|
|
33
|
-
fetchFullReport = false, // eslint-disable-line @typescript-eslint/no-inferrable-types,
|
|
34
|
-
cacheOverride = false // eslint-disable-line @typescript-eslint/no-inferrable-types
|
|
35
|
-
) {
|
|
32
|
+
prepare(userId, fetchSelectedTab = true, fetchFullReport = false, cacheOverride = false) {
|
|
36
33
|
return {
|
|
37
34
|
payload: { userId, fetchSelectedTab, fetchFullReport, cacheOverride },
|
|
38
35
|
};
|
|
@@ -3,9 +3,9 @@ import { ZeniAPIStatus } from '../../responsePayload';
|
|
|
3
3
|
import { VendorReviewViewAllRecommendationsPayload } from '../vendorReviewView/common/payload/commonTypes';
|
|
4
4
|
import { GlobalMerchantViewState, GlobalRecommendationFetchSource, NewGlobalMerchantCurrentSelection } from './globalMerchantViewState';
|
|
5
5
|
export declare const initialState: GlobalMerchantViewState;
|
|
6
|
-
export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "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" | undefined], {
|
|
6
|
+
export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "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" | "account_reconciliation" | undefined], {
|
|
7
7
|
merchantId: string | undefined;
|
|
8
|
-
context: "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" | undefined;
|
|
8
|
+
context: "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" | "account_reconciliation" | undefined;
|
|
9
9
|
}, "globalMerchantView/createGlobalMerchant", never, never>, createGlobalMerchantSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
10
10
|
merchantId: ID;
|
|
11
11
|
}, "globalMerchantView/createGlobalMerchantSuccess">, createGlobalMerchantFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -72,8 +72,7 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
|
|
|
72
72
|
reducer(draft) {
|
|
73
73
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
74
74
|
},
|
|
75
|
-
prepare(cacheOverride = false,
|
|
76
|
-
forecastId) {
|
|
75
|
+
prepare(cacheOverride = false, forecastId) {
|
|
77
76
|
return {
|
|
78
77
|
payload: {
|
|
79
78
|
cacheOverride,
|
|
@@ -86,8 +85,7 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
|
|
|
86
85
|
reducer(draft) {
|
|
87
86
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
88
87
|
},
|
|
89
|
-
prepare(cacheOverride = false,
|
|
90
|
-
forecastId) {
|
|
88
|
+
prepare(cacheOverride = false, forecastId) {
|
|
91
89
|
return {
|
|
92
90
|
payload: {
|
|
93
91
|
cacheOverride,
|
|
@@ -97,7 +95,6 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
|
|
|
97
95
|
},
|
|
98
96
|
},
|
|
99
97
|
fetchNetBurnOrIncome: {
|
|
100
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
101
98
|
prepare(fetchFullReport = false, forecastId, cacheOverride = false) {
|
|
102
99
|
return { payload: { fetchFullReport, forecastId, cacheOverride } };
|
|
103
100
|
},
|
|
@@ -110,11 +107,7 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
|
|
|
110
107
|
},
|
|
111
108
|
},
|
|
112
109
|
fetchNetBurnOrIncomeForTimeframe: {
|
|
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) {
|
|
110
|
+
prepare(timeframe, forecastId, fetchFullReport = true, cacheOverride = false) {
|
|
118
111
|
return {
|
|
119
112
|
payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
|
|
120
113
|
};
|
|
@@ -37,7 +37,6 @@ 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
|
|
41
40
|
prepare(cacheOverride = false) {
|
|
42
41
|
return { payload: { cacheOverride } };
|
|
43
42
|
},
|
|
@@ -50,11 +49,7 @@ const netBurnOrIncomeClassesView = (0, toolkit_1.createSlice)({
|
|
|
50
49
|
},
|
|
51
50
|
},
|
|
52
51
|
fetchNetBurnOrIncomeForTimeframeClassesView: {
|
|
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) {
|
|
52
|
+
prepare(timeframe, fetchFullReport = true, cacheOverride = false) {
|
|
58
53
|
return { payload: { timeframe, fetchFullReport, cacheOverride } };
|
|
59
54
|
},
|
|
60
55
|
reducer(draft, action) {
|
|
@@ -47,7 +47,6 @@ 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
|
|
51
50
|
prepare(fetchFullReport = false) {
|
|
52
51
|
return { payload: { fetchFullReport } };
|
|
53
52
|
},
|
|
@@ -167,7 +167,6 @@ const onboardingCockpitView = (0, toolkit_1.createSlice)({
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
saveOnboardingCustomerViewUpdates: {
|
|
170
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
171
170
|
reducer(draft, action) {
|
|
172
171
|
if (draft.onboardingCustomerLocalData != null) {
|
|
173
172
|
const { sendInvite } = action.payload;
|
|
@@ -183,7 +182,6 @@ const onboardingCockpitView = (0, toolkit_1.createSlice)({
|
|
|
183
182
|
draft.emailGroupFetchState.error = undefined;
|
|
184
183
|
}
|
|
185
184
|
},
|
|
186
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
187
185
|
prepare(sendInvite, skipSnackbarOnSuccess = false) {
|
|
188
186
|
return {
|
|
189
187
|
payload: { sendInvite, skipSnackbarOnSuccess },
|
|
@@ -274,7 +272,6 @@ const onboardingCockpitView = (0, toolkit_1.createSlice)({
|
|
|
274
272
|
draft.customerCreationStatus = exports.initialState.customerCreationStatus;
|
|
275
273
|
},
|
|
276
274
|
fetchCompanyOnboardingView: {
|
|
277
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
278
275
|
prepare(fetchFullResponse = false) {
|
|
279
276
|
return { payload: { fetchFullResponse } };
|
|
280
277
|
},
|
|
@@ -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,
|
|
36
36
|
}));
|
|
37
37
|
if (action.payload.forecastId == null &&
|
|
38
38
|
action.payload.timeframe === 'month') {
|
|
@@ -81,11 +81,7 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
|
|
|
81
81
|
},
|
|
82
82
|
},
|
|
83
83
|
fetchOpExReportForTimeframe: {
|
|
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) {
|
|
84
|
+
prepare(timeframe, forecastId, fetchFullReport = true, cacheOverride = false) {
|
|
89
85
|
return {
|
|
90
86
|
payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
|
|
91
87
|
};
|
|
@@ -105,8 +101,7 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
|
|
|
105
101
|
reducer(draft) {
|
|
106
102
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
107
103
|
},
|
|
108
|
-
prepare(cacheOverride = false,
|
|
109
|
-
forecastId) {
|
|
104
|
+
prepare(cacheOverride = false, forecastId) {
|
|
110
105
|
return {
|
|
111
106
|
payload: {
|
|
112
107
|
cacheOverride,
|
|
@@ -119,8 +114,7 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
|
|
|
119
114
|
reducer(draft) {
|
|
120
115
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
121
116
|
},
|
|
122
|
-
prepare(cacheOverride = false,
|
|
123
|
-
forecastId) {
|
|
117
|
+
prepare(cacheOverride = false, forecastId) {
|
|
124
118
|
return {
|
|
125
119
|
payload: {
|
|
126
120
|
cacheOverride,
|
|
@@ -156,11 +150,7 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
|
|
|
156
150
|
clearOpEx(draft) {
|
|
157
151
|
Object.assign(draft, exports.initialState);
|
|
158
152
|
},
|
|
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) {
|
|
153
|
+
updateOpExAdditionalBalancesSelection(draft, action) {
|
|
164
154
|
var _a, _b, _c;
|
|
165
155
|
const opExReport = getState(draft, draft.uiState.isForecastModeOn, (_a = draft.uiState.selectedForecast) === null || _a === void 0 ? void 0 : _a.id);
|
|
166
156
|
const { opExBalancesByTimeframe, dataAvailable } = opExReport;
|
|
@@ -165,9 +165,7 @@ const opexByVendor = (0, toolkit_1.createSlice)({
|
|
|
165
165
|
draft.opExByVendorReportGenerated = action.payload;
|
|
166
166
|
},
|
|
167
167
|
fetchOpExByVendorReportSummary: {
|
|
168
|
-
prepare(
|
|
169
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
170
|
-
cacheOverride = false) {
|
|
168
|
+
prepare(cacheOverride = false) {
|
|
171
169
|
return {
|
|
172
170
|
payload: { cacheOverride },
|
|
173
171
|
};
|
|
@@ -37,7 +37,6 @@ 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
|
|
41
40
|
prepare(cacheOverride = false) {
|
|
42
41
|
return { payload: { cacheOverride } };
|
|
43
42
|
},
|
|
@@ -50,11 +49,7 @@ const opExClassesView = (0, toolkit_1.createSlice)({
|
|
|
50
49
|
},
|
|
51
50
|
},
|
|
52
51
|
fetchOpExForTimeframeClassesView: {
|
|
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) {
|
|
52
|
+
prepare(timeframe, fetchFullReport = true, cacheOverride = false) {
|
|
58
53
|
return { payload: { timeframe, fetchFullReport, cacheOverride } };
|
|
59
54
|
},
|
|
60
55
|
reducer(draft, action) {
|
|
@@ -19,9 +19,7 @@ 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 : []), // 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
|
|
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 : []), (0, userReducer_1.updateAllUsers)({ users: (_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.users) !== null && _d !== void 0 ? _d : [] }), (0, peopleReducer_1.updatePersonUserIds)(response.data) // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
25
23
|
);
|
|
26
24
|
}
|
|
27
25
|
else {
|
|
@@ -21,9 +21,7 @@ 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 : []), // 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
|
|
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 : []), (0, userReducer_1.updateAllUsers)({ users: (_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.users) !== null && _f !== void 0 ? _f : [] }), (0, peopleReducer_1.invitePeopleSuccess)(response.data), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
27
25
|
(0, snackbarReducer_1.openSnackbar)({
|
|
28
26
|
messageSection: invitePayload.invites.length > 1
|
|
29
27
|
? 'people_invite_multiple_people'
|
|
@@ -21,9 +21,7 @@ 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 : []), // 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
|
|
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 : []), (0, userReducer_1.updateAllUsers)({ users: (_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.users) !== null && _f !== void 0 ? _f : [] }), (0, peopleReducer_1.invitePeopleSuccess)(response.data), // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
27
25
|
(0, snackbarReducer_1.openSnackbar)({
|
|
28
26
|
messageSection: invitePayload.users.length > 1
|
|
29
27
|
? 'people_invite_multiple_people'
|
|
@@ -201,7 +201,6 @@ 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
|
|
205
204
|
prepare(companyId, shouldFetchClassList) {
|
|
206
205
|
return { payload: { companyId, shouldFetchClassList } };
|
|
207
206
|
},
|
|
@@ -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 : []),
|
|
24
24
|
(0, peopleReducer_1.peopleSaveUpdatesSuccess)(),
|
|
25
25
|
(0, snackbarReducer_1.openSnackbar)({
|
|
26
26
|
messageSection: 'people_update_person',
|
|
@@ -41,7 +41,6 @@ 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
|
|
45
44
|
prepare(forecastId, cacheOverride = false) {
|
|
46
45
|
return { payload: { forecastId, cacheOverride } };
|
|
47
46
|
},
|
|
@@ -54,11 +53,7 @@ const profitAndLoss = (0, toolkit_1.createSlice)({
|
|
|
54
53
|
},
|
|
55
54
|
},
|
|
56
55
|
fetchProfitAndLossForTimeframe: {
|
|
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) {
|
|
56
|
+
prepare(timeframe, forecastId, fetchFullReport = true, cacheOverride = false) {
|
|
62
57
|
return {
|
|
63
58
|
payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
|
|
64
59
|
};
|
|
@@ -38,7 +38,6 @@ 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
|
|
42
41
|
prepare(cacheOverride = false) {
|
|
43
42
|
return { payload: { cacheOverride } };
|
|
44
43
|
},
|
|
@@ -51,11 +50,7 @@ const profitAndLossClassesView = (0, toolkit_1.createSlice)({
|
|
|
51
50
|
},
|
|
52
51
|
},
|
|
53
52
|
fetchProfitAndLossForTimeframeClassesView: {
|
|
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) {
|
|
53
|
+
prepare(timeframe, fetchFullReport = true, cacheOverride = false) {
|
|
59
54
|
return { payload: { timeframe, fetchFullReport, cacheOverride } };
|
|
60
55
|
},
|
|
61
56
|
reducer(draft, action) {
|
|
@@ -12,9 +12,7 @@ const recommendation = (0, toolkit_1.createSlice)({
|
|
|
12
12
|
initialState: exports.initialState,
|
|
13
13
|
reducers: {
|
|
14
14
|
fetchEntityRecommendationsByTransactionId: {
|
|
15
|
-
reducer(draft,
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17
|
-
action) {
|
|
15
|
+
reducer(draft, action) {
|
|
18
16
|
const { entity } = action.payload;
|
|
19
17
|
const key = (0, recommendationState_1.getEntityRecommendationKey)(entity.type, entity.id);
|
|
20
18
|
const existingRecommendation = draft.recommendationByEntity[key];
|
|
@@ -75,7 +73,6 @@ const recommendation = (0, toolkit_1.createSlice)({
|
|
|
75
73
|
updateRecommendationForEntity(draft, action) {
|
|
76
74
|
doUpdateRecommendationForEntity(draft.recommendationByEntity, action.payload.entityId, action.payload.entityType, action.payload.recommendations);
|
|
77
75
|
},
|
|
78
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
79
76
|
updateRecommendationForEntityFailure(draft, action) {
|
|
80
77
|
const { entityId, entityType, status } = action.payload;
|
|
81
78
|
const key = (0, recommendationState_1.getEntityRecommendationKey)(entityType, entityId);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getReimbursementCardReport: (state: RootState) => {
|
|
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";
|
|
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" | "account_reconciliation";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
fetchState: import("../..").FetchState;
|
|
@@ -24,9 +24,7 @@ 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:
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
29
|
-
(_a = action.payload.maxNumOfPeriodsToSelect) !== null && _a !== void 0 ? _a : financeStatementReducer_1.initialFinanceStatementState.maxNumOfPeriodsToHighlight,
|
|
27
|
+
maxNumOfPeriodsToHighlight: (_a = action.payload.maxNumOfPeriodsToSelect) !== null && _a !== void 0 ? _a : financeStatementReducer_1.initialFinanceStatementState.maxNumOfPeriodsToHighlight,
|
|
30
28
|
}));
|
|
31
29
|
}));
|
|
32
30
|
exports.updateReportUIOptionThisPeriodEpic = updateReportUIOptionThisPeriodEpic;
|
|
@@ -72,7 +72,6 @@ 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
|
|
76
75
|
prepare(fetchFullReport = false, forecastId, cacheOverride = false) {
|
|
77
76
|
return { payload: { fetchFullReport, forecastId, cacheOverride } };
|
|
78
77
|
},
|
|
@@ -85,11 +84,7 @@ const revenue = (0, toolkit_1.createSlice)({
|
|
|
85
84
|
},
|
|
86
85
|
},
|
|
87
86
|
fetchRevenueForTimeframe: {
|
|
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) {
|
|
87
|
+
prepare(timeframe, forecastId, fetchFullReport = true, cacheOverride = false) {
|
|
93
88
|
return {
|
|
94
89
|
payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
|
|
95
90
|
};
|
|
@@ -109,8 +104,7 @@ const revenue = (0, toolkit_1.createSlice)({
|
|
|
109
104
|
reducer(draft) {
|
|
110
105
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
111
106
|
},
|
|
112
|
-
prepare(cacheOverride = false,
|
|
113
|
-
forecastId) {
|
|
107
|
+
prepare(cacheOverride = false, forecastId) {
|
|
114
108
|
return {
|
|
115
109
|
payload: {
|
|
116
110
|
cacheOverride,
|
|
@@ -123,8 +117,7 @@ const revenue = (0, toolkit_1.createSlice)({
|
|
|
123
117
|
reducer(draft) {
|
|
124
118
|
draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
|
|
125
119
|
},
|
|
126
|
-
prepare(cacheOverride = false,
|
|
127
|
-
forecastId) {
|
|
120
|
+
prepare(cacheOverride = false, forecastId) {
|
|
128
121
|
return {
|
|
129
122
|
payload: {
|
|
130
123
|
cacheOverride,
|
|
@@ -37,7 +37,6 @@ 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
|
|
41
40
|
prepare(cacheOverride = false) {
|
|
42
41
|
return { payload: { cacheOverride } };
|
|
43
42
|
},
|
|
@@ -50,11 +49,7 @@ const revenueClassesView = (0, toolkit_1.createSlice)({
|
|
|
50
49
|
},
|
|
51
50
|
},
|
|
52
51
|
fetchRevenueForTimeframeClassesView: {
|
|
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) {
|
|
52
|
+
prepare(timeframe, fetchFullReport = true, cacheOverride = false) {
|
|
58
53
|
return { payload: { timeframe, fetchFullReport, cacheOverride } };
|
|
59
54
|
},
|
|
60
55
|
reducer(draft, action) {
|
|
@@ -7,7 +7,7 @@ export declare const getScheduleListKey: (selectedCategory: ID, selectedTimefram
|
|
|
7
7
|
export type ScheduleListKey = ReturnType<typeof getScheduleListKey>;
|
|
8
8
|
export declare const toScheduleSubTabType: (v: string) => "all" | "new" | "completed" | "ongoing";
|
|
9
9
|
export type ScheduleSubTabType = ReturnType<typeof toScheduleSubTabType>;
|
|
10
|
-
declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "class" | "vendor" | "amount" | "createTime" | "balanceAsOfToday" | "memo" | "assetId" | "
|
|
10
|
+
declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "class" | "vendor" | "amount" | "createTime" | "balanceAsOfToday" | "memo" | "assetId" | "transactionDate" | "transactionType" | "accruedExpenseCategory" | "scheduleCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "startMonth" | "endMonth";
|
|
11
11
|
export declare type ScheduleListSortKey = ReturnType<typeof toScheduleSortKeyType>;
|
|
12
12
|
export interface DownloadJEScheduleTabOptions {
|
|
13
13
|
timezone: string;
|
|
@@ -93,7 +93,6 @@ const settings = (0, toolkit_1.createSlice)({
|
|
|
93
93
|
reducer() {
|
|
94
94
|
// Do nothing.
|
|
95
95
|
},
|
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
97
96
|
prepare(companyId, shouldFetchClassList) {
|
|
98
97
|
return { payload: { companyId, shouldFetchClassList } };
|
|
99
98
|
},
|
|
@@ -163,7 +163,6 @@ function doUpdateBillList(draft, payload, tab) {
|
|
|
163
163
|
const pendingApprovalTransactionIDs = payload.pending_approval_transaction_ids_for_user;
|
|
164
164
|
const start = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.start_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
165
165
|
const end = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.end_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
166
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
167
166
|
const key = (0, billListState_1.getBillListKey)({ start, end }, tab);
|
|
168
167
|
draft[key] = Object.assign(Object.assign({}, billListState_1.billListInitialState), { uiState: draft[key] != null ? draft[key].uiState : billListState_1.billListInitialState.uiState, fetchState: 'Completed', error: undefined, transactionIDs,
|
|
169
168
|
pendingApprovalTransactionIDs });
|
|
@@ -3,7 +3,7 @@ import { Currency } from '../../../../commonStateTypes/amount';
|
|
|
3
3
|
import { AccountBasePayload } from '../../../../entity/account/accountPayload';
|
|
4
4
|
import { ClassBasePayload } from '../../../../entity/class/classPayload';
|
|
5
5
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
6
|
-
import { AccType, AccountTypeSubConfigCodeKeyType, BillPayConfig, BillPaymentConfigCodeType, BillPaymentOutsideZeniSubConfigCodeType, BillPaymentSubConfigCodeKeyType, BillPaymentSubConfigCodeType, BillPaymentWireSubConfigCodeKeyType, BillPaymentWireSubConfigCodeType, InternationalSubConfigCodeKeyType, InternationalSubConfigCodeType, InternationalWireMethodCodeKeyType, InternationalWireMethodCodeType, PaymentAchSubConfigCodeKeyType, PaymentAchSubConfigCodeType, VendorCurrency } from './billPayConfigState';
|
|
6
|
+
import { AccType, AccountTypeSubConfigCodeKeyType, BillPayConfig, BillPaymentConfigCodeType, BillPaymentOutsideZeniSubConfigCodeType, BillPaymentSubConfigCodeKeyType, BillPaymentSubConfigCodeType, BillPaymentWireSubConfigCodeKeyType, BillPaymentWireSubConfigCodeType, ConfigPeriod, InternationalSubConfigCodeKeyType, InternationalSubConfigCodeType, InternationalWireMethodCodeKeyType, InternationalWireMethodCodeType, PaymentAchSubConfigCodeKeyType, PaymentAchSubConfigCodeType, VendorCurrency } from './billPayConfigState';
|
|
7
7
|
export interface BillPayConfigPayload {
|
|
8
8
|
bill_pay_bot_email: string;
|
|
9
9
|
is_us_domestic_wire_enabled: boolean;
|
|
@@ -106,6 +106,10 @@ export declare const getBillPaymentWireSubConfigCodeKey: (subCode: BillPaymentWi
|
|
|
106
106
|
export declare const getInternationalSubConfigCodeKey: (subCode: InternationalSubConfigCodeType) => InternationalSubConfigCodeKeyType;
|
|
107
107
|
export declare const getInternationalWireMethodCodeKey: (subCode: InternationalWireMethodCodeType) => InternationalWireMethodCodeKeyType;
|
|
108
108
|
export declare const getAccountTypeSubConfigCodeKey: (subCode: AccType) => AccountTypeSubConfigCodeKeyType;
|
|
109
|
+
export interface TimelineDetail {
|
|
110
|
+
minPeriod: ConfigPeriod;
|
|
111
|
+
maxPeriod: ConfigPeriod;
|
|
112
|
+
}
|
|
109
113
|
export declare const mapBillPayConfigPayloadToBillPayConfig: (paymentProcessor: BillPayConfigPaymentProcessorPayload, isEnabled: boolean, isVerified: boolean, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType, accType?: AccType, internationalMethod?: InternationalWireMethodCodeType, internationalSubMethod?: InternationalSubConfigCodeType) => BillPayConfig;
|
|
110
114
|
export declare const mapBillPayVendorConfigPayloadToBillPayVendorConfig: (payload: BillPayConfigPayload, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType) => Currency[];
|
|
111
115
|
export declare const toVendorCurrency: (payload: VendorCurrencyPayload) => VendorCurrency;
|
|
@@ -30,11 +30,9 @@ exports.BILL_PAYMENT_METHOD_CODE = [
|
|
|
30
30
|
'wire',
|
|
31
31
|
'outside-zeni',
|
|
32
32
|
];
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
34
33
|
const toBillPaymentMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_METHOD_CODE);
|
|
35
34
|
exports.toBillPaymentMethodCodeType = toBillPaymentMethodCodeType;
|
|
36
35
|
exports.PAYMENT_ACH_SUB_CODES = ['standard', 'same-day'];
|
|
37
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
38
36
|
const toPaymentAchSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.PAYMENT_ACH_SUB_CODES);
|
|
39
37
|
exports.toPaymentAchSubMethodCodeType = toPaymentAchSubMethodCodeType;
|
|
40
38
|
const PAYMENT_ACH_SUB_CODES_KEYS = ['standard', 'sameDay'];
|
|
@@ -44,7 +42,6 @@ exports.BILL_PAYMENT_WIRE_SUB_CODES = [
|
|
|
44
42
|
'us-domestic',
|
|
45
43
|
'international',
|
|
46
44
|
];
|
|
47
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
45
|
const toBillPaymentWireSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_WIRE_SUB_CODES);
|
|
49
46
|
exports.toBillPaymentWireSubMethodCodeType = toBillPaymentWireSubMethodCodeType;
|
|
50
47
|
const BILL_PAYMENT_WIRE_SUB_CODES_KEYS = [
|
|
@@ -54,7 +51,6 @@ const BILL_PAYMENT_WIRE_SUB_CODES_KEYS = [
|
|
|
54
51
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
52
|
const toBillPaymentWireSubMethodCodeKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_PAYMENT_WIRE_SUB_CODES_KEYS);
|
|
56
53
|
exports.BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES = ['outside-zeni'];
|
|
57
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58
54
|
const toBillPaymentOutsideZeniSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES);
|
|
59
55
|
exports.toBillPaymentOutsideZeniSubMethodCodeType = toBillPaymentOutsideZeniSubMethodCodeType;
|
|
60
56
|
const BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES_KEYS = ['outsideZeni'];
|
|
@@ -91,14 +87,12 @@ exports.ACCOUNT_TYPE_CODES = [
|
|
|
91
87
|
'deposit_account',
|
|
92
88
|
'payment_account',
|
|
93
89
|
];
|
|
94
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
95
90
|
const toAccType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ACCOUNT_TYPE_CODES);
|
|
96
91
|
exports.toAccType = toAccType;
|
|
97
92
|
const ACCOUNT_TYPE_SUB_CODES_KEYS = [
|
|
98
93
|
'depositAccount',
|
|
99
94
|
'paymentAccount',
|
|
100
95
|
];
|
|
101
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
102
96
|
const toAccountTypeSubConfigCodeKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ACCOUNT_TYPE_SUB_CODES_KEYS);
|
|
103
97
|
exports.toAccountTypeSubConfigCodeKeyType = toAccountTypeSubConfigCodeKeyType;
|
|
104
98
|
//These const are used in web-components
|
package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js
CHANGED
|
@@ -8,11 +8,12 @@ const billsBulkActionViewReducer_1 = require("../billsBulkActionViewReducer");
|
|
|
8
8
|
const validateBillsBulkActionEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(billsBulkActionViewReducer_1.validateBillsBulkAction.match), (0, operators_1.mergeMap)(() => {
|
|
9
9
|
const { billsBulkActionViewState } = state$.value;
|
|
10
10
|
const { billsSelectedForBulkAction: transactionIds, bulkOperationTypeSelected, } = billsBulkActionViewState;
|
|
11
|
+
const validationValue = bulkOperationTypeSelected === 'send_for_approval'
|
|
12
|
+
? 'all'
|
|
13
|
+
: 'sufficient_funds';
|
|
11
14
|
const queryParam = {
|
|
12
15
|
entity_ids: transactionIds,
|
|
13
|
-
validations:
|
|
14
|
-
? 'all'
|
|
15
|
-
: 'sufficient_funds',
|
|
16
|
+
validations: [validationValue],
|
|
16
17
|
};
|
|
17
18
|
return zeniAPI
|
|
18
19
|
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bulk/bills/transactions/validate?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
|