@zeniai/client-epic-state 4.15.15 → 4.15.17
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/commonStateTypes/timePeriod.d.ts +1 -1
- package/lib/commonStateTypes/timePeriod.js +2 -2
- 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/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/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +35 -0
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +53 -0
- 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 +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.js +1 -0
- 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 +2 -0
- 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 +12 -4
- package/lib/index.js +50 -26
- package/lib/init.js +1 -1
- package/lib/reducer.d.ts +7 -1
- package/lib/reducer.js +6 -0
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -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/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -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 +9 -0
- 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/expenseAutomationViewReducer.d.ts +2 -2
- 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/payload/reconciliationPayload.d.ts +25 -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 +375 -0
- 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 +50 -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 +249 -0
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +102 -0
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +38 -0
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -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/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
- package/lib/zeniAPI.d.ts +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toRecommendedReviewTransactionPayload = exports.toRecommendedReviewTransaction = exports.toAccountReconciliationData = exports.toTransactionsToReviewPayload = exports.toTransactionsToReview = void 0;
|
|
4
|
+
const amount_1 = require("../../commonStateTypes/amount");
|
|
5
|
+
const formatZeniDateFY_1 = require("../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
6
|
+
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
7
|
+
const reconciliationTransaction_1 = require("../transaction/stateTypes/reconciliationTransaction");
|
|
8
|
+
const accountReconState_1 = require("./accountReconState");
|
|
9
|
+
const toTransactionsToReview = (payload, currencyPayload) => {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
return {
|
|
12
|
+
transactionId: payload.transaction_id,
|
|
13
|
+
transactionDirection: (0, reconciliationTransaction_1.toTransactionDirectionType)(payload.transaction_direction),
|
|
14
|
+
amount: {
|
|
15
|
+
amount: payload.amount,
|
|
16
|
+
currencyCode: currencyPayload.currency_code,
|
|
17
|
+
currencySymbol: currencyPayload.currency_symbol,
|
|
18
|
+
},
|
|
19
|
+
status: payload.status,
|
|
20
|
+
transactionDate: (0, zeniDayJS_1.date)(payload.transaction_date),
|
|
21
|
+
memo: payload.transaction_memo,
|
|
22
|
+
merchantId: (_a = payload.merchant_id) !== null && _a !== void 0 ? _a : undefined,
|
|
23
|
+
merchantName: (_b = payload.merchant_name) !== null && _b !== void 0 ? _b : undefined,
|
|
24
|
+
merchantType: payload.merchant_type != null
|
|
25
|
+
? (0, reconciliationTransaction_1.toMerchantType)(payload.merchant_type)
|
|
26
|
+
: undefined,
|
|
27
|
+
recommendedAction: {
|
|
28
|
+
action: (0, accountReconState_1.toRecommendedActionCodeType)(payload.recommended_action.recommended_actions),
|
|
29
|
+
reason: payload.recommended_action.recommended_action_description,
|
|
30
|
+
recommendedTransactions: payload.recommended_action.recommended_transactions.map((transaction) => (0, exports.toRecommendedReviewTransaction)(transaction, currencyPayload)),
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
exports.toTransactionsToReview = toTransactionsToReview;
|
|
35
|
+
const toTransactionsToReviewPayload = (payload) => {
|
|
36
|
+
return {
|
|
37
|
+
transaction_id: payload.transactionId,
|
|
38
|
+
transaction_direction: (0, reconciliationTransaction_1.toTransactionDirectionType)(payload.transactionDirection),
|
|
39
|
+
amount: payload.amount.amount,
|
|
40
|
+
status: payload.status,
|
|
41
|
+
transaction_date: payload.transactionDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT),
|
|
42
|
+
transaction_memo: payload.memo,
|
|
43
|
+
recommended_action: {
|
|
44
|
+
recommended_actions: (0, accountReconState_1.toRecommendedActionCodeType)(payload.recommendedAction.action),
|
|
45
|
+
recommended_action_description: payload.recommendedAction.reason,
|
|
46
|
+
recommended_transactions: payload.recommendedAction.recommendedTransactions.map((transaction) => (0, exports.toRecommendedReviewTransactionPayload)(transaction)),
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
exports.toTransactionsToReviewPayload = toTransactionsToReviewPayload;
|
|
51
|
+
const toAccountReconciliationData = (payload) => {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
const variance = payload.bank_balance != null && payload.cleared_balance != null
|
|
54
|
+
? (0, amount_1.toAmount)(payload.cleared_balance - payload.bank_balance, payload.currency.currency_code, payload.currency.currency_symbol)
|
|
55
|
+
: undefined;
|
|
56
|
+
const variancePercentage = variance != null && payload.bank_balance != null
|
|
57
|
+
? (variance.amount / payload.bank_balance) * 100
|
|
58
|
+
: undefined;
|
|
59
|
+
return {
|
|
60
|
+
reconciliationId: (_a = payload.reconciliation_id) !== null && _a !== void 0 ? _a : undefined,
|
|
61
|
+
accountId: payload.account_id,
|
|
62
|
+
reconciliationStatus: payload.reconciliation_status
|
|
63
|
+
? {
|
|
64
|
+
code: (0, accountReconState_1.toReconciliationStatusCodeType)(payload.reconciliation_status.code),
|
|
65
|
+
label: payload.reconciliation_status.label,
|
|
66
|
+
}
|
|
67
|
+
: undefined,
|
|
68
|
+
currency: {
|
|
69
|
+
currencyCode: payload.currency.currency_code,
|
|
70
|
+
currencySymbol: payload.currency.currency_symbol,
|
|
71
|
+
},
|
|
72
|
+
transactionsToReview: payload.transactions.review.map((transaction) => (0, exports.toTransactionsToReview)(transaction, payload.currency)),
|
|
73
|
+
transactionsToReconcile: payload.transactions.reconcile.map((transaction) => transaction.transaction_id),
|
|
74
|
+
userId: (_b = payload.user_id) !== null && _b !== void 0 ? _b : undefined,
|
|
75
|
+
variance: variance,
|
|
76
|
+
variancePercentage: variancePercentage,
|
|
77
|
+
bankBalance: payload.bank_balance != null
|
|
78
|
+
? (0, amount_1.toAmount)(payload.bank_balance, payload.currency.currency_code, payload.currency.currency_symbol)
|
|
79
|
+
: undefined,
|
|
80
|
+
clearedBalance: payload.cleared_balance != null
|
|
81
|
+
? (0, amount_1.toAmount)(payload.cleared_balance, payload.currency.currency_code, payload.currency.currency_symbol)
|
|
82
|
+
: undefined,
|
|
83
|
+
initialClearedBalance: payload.initial_cleared_balance != null
|
|
84
|
+
? (0, amount_1.toAmount)(payload.initial_cleared_balance, payload.currency.currency_code, payload.currency.currency_symbol)
|
|
85
|
+
: undefined,
|
|
86
|
+
startDate: (0, zeniDayJS_1.date)(payload.start_date),
|
|
87
|
+
endDate: (0, zeniDayJS_1.date)(payload.end_date),
|
|
88
|
+
accountUpdatedAt: payload.payment_account_updated_at != null
|
|
89
|
+
? (0, zeniDayJS_1.date)(payload.payment_account_updated_at)
|
|
90
|
+
: undefined,
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
exports.toAccountReconciliationData = toAccountReconciliationData;
|
|
94
|
+
const toRecommendedReviewTransaction = (payload, currencyPayload) => {
|
|
95
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
96
|
+
return {
|
|
97
|
+
transactionId: (_a = payload.transaction_id) !== null && _a !== void 0 ? _a : undefined,
|
|
98
|
+
merchantId: (_b = payload.merchant_id) !== null && _b !== void 0 ? _b : undefined,
|
|
99
|
+
merchantName: (_c = payload.merchant_name) !== null && _c !== void 0 ? _c : undefined,
|
|
100
|
+
merchantType: payload.merchant_type != null
|
|
101
|
+
? (0, reconciliationTransaction_1.toMerchantType)(payload.merchant_type)
|
|
102
|
+
: undefined,
|
|
103
|
+
classId: (_d = payload.class_id) !== null && _d !== void 0 ? _d : undefined,
|
|
104
|
+
accountId: (_e = payload.account_id) !== null && _e !== void 0 ? _e : undefined,
|
|
105
|
+
date: (0, zeniDayJS_1.date)(payload.transaction_date),
|
|
106
|
+
amount: (0, amount_1.toAmount)(payload.amount, currencyPayload.currency_code, currencyPayload.currency_symbol),
|
|
107
|
+
memo: (_f = payload.transaction_memo) !== null && _f !== void 0 ? _f : undefined,
|
|
108
|
+
confidenceScore: payload.confidence_score,
|
|
109
|
+
recommendedReasons: payload.recommendation_reasons,
|
|
110
|
+
booksTransactionId: (_g = payload.books_transaction_id) !== null && _g !== void 0 ? _g : undefined,
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
exports.toRecommendedReviewTransaction = toRecommendedReviewTransaction;
|
|
114
|
+
const toRecommendedReviewTransactionPayload = (payload) => {
|
|
115
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ transaction_date: payload.date.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT), confidence_score: payload.confidenceScore, transaction_memo: payload.memo, recommendation_reasons: payload.recommendedReasons, amount: payload.amount.amount }, (payload.transactionId != null
|
|
116
|
+
? { transaction_id: payload.transactionId }
|
|
117
|
+
: {})), (payload.merchantId != null ? { merchant_id: payload.merchantId } : {})), (payload.merchantName != null
|
|
118
|
+
? { merchant_name: payload.merchantName }
|
|
119
|
+
: {})), (payload.merchantType != null
|
|
120
|
+
? { merchant_type: (0, reconciliationTransaction_1.toMerchantType)(payload.merchantType) }
|
|
121
|
+
: {})), (payload.classId != null ? { class_id: payload.classId } : {})), (payload.accountId != null ? { account_id: payload.accountId } : {})), (payload.booksTransactionId != null
|
|
122
|
+
? { books_transaction_id: payload.booksTransactionId }
|
|
123
|
+
: {}));
|
|
124
|
+
};
|
|
125
|
+
exports.toRecommendedReviewTransactionPayload = toRecommendedReviewTransactionPayload;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
|
|
2
|
+
import { ReconciliationDataPayload } from './accountReconPayload';
|
|
3
|
+
import { AccountReconState } from './accountReconState';
|
|
4
|
+
export declare const initialState: AccountReconState;
|
|
5
|
+
export declare const updateAccountRecon: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedPeriod: MonthYearPeriod, accountReconDataPayload: ReconciliationDataPayload[]], {
|
|
6
|
+
selectedPeriod: MonthYearPeriod;
|
|
7
|
+
accountReconDataPayload: ReconciliationDataPayload[];
|
|
8
|
+
}, "accountRecon/updateAccountRecon", never, never>, excludeReconReviewTransaction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountReconKey: string, excludedTransactionId: string], {
|
|
9
|
+
accountReconKey: string;
|
|
10
|
+
excludedTransactionId: string;
|
|
11
|
+
}, "accountRecon/excludeReconReviewTransaction", never, never>, clearAllAccountRecon: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"accountRecon/clearAllAccountRecon">, addTransactionToReconcileList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountReconKey: string, transactionId: string], {
|
|
12
|
+
accountReconKey: string;
|
|
13
|
+
transactionId: string;
|
|
14
|
+
}, "accountRecon/addTransactionToReconcileList", never, never>;
|
|
15
|
+
declare const _default: import("redux").Reducer<AccountReconState>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.addTransactionToReconcileList = exports.clearAllAccountRecon = exports.excludeReconReviewTransaction = exports.updateAccountRecon = exports.initialState = void 0;
|
|
5
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
const accountReconPayload_1 = require("./accountReconPayload");
|
|
7
|
+
const accountReconState_1 = require("./accountReconState");
|
|
8
|
+
exports.initialState = {
|
|
9
|
+
accountReconByAccountReconKey: {},
|
|
10
|
+
};
|
|
11
|
+
const accountRecon = (0, toolkit_1.createSlice)({
|
|
12
|
+
name: 'accountRecon',
|
|
13
|
+
initialState: exports.initialState,
|
|
14
|
+
reducers: {
|
|
15
|
+
updateAccountRecon: {
|
|
16
|
+
prepare(selectedPeriod, accountReconDataPayload) {
|
|
17
|
+
return {
|
|
18
|
+
payload: {
|
|
19
|
+
selectedPeriod,
|
|
20
|
+
accountReconDataPayload,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
reducer(draft, action) {
|
|
25
|
+
doUpdateAccountRecon(draft, action.payload.selectedPeriod, action.payload.accountReconDataPayload);
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
excludeReconReviewTransaction: {
|
|
29
|
+
prepare(accountReconKey, excludedTransactionId) {
|
|
30
|
+
return {
|
|
31
|
+
payload: {
|
|
32
|
+
accountReconKey,
|
|
33
|
+
excludedTransactionId,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
reducer(draft, action) {
|
|
38
|
+
const { accountReconKey, excludedTransactionId } = action.payload;
|
|
39
|
+
draft.accountReconByAccountReconKey[accountReconKey] = Object.assign(Object.assign({}, draft.accountReconByAccountReconKey[accountReconKey]), { transactionsToReview: draft.accountReconByAccountReconKey[accountReconKey].transactionsToReview.filter((txn) => txn.transactionId !== excludedTransactionId) });
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
addTransactionToReconcileList: {
|
|
43
|
+
prepare(accountReconKey, transactionId) {
|
|
44
|
+
return {
|
|
45
|
+
payload: {
|
|
46
|
+
accountReconKey,
|
|
47
|
+
transactionId,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
reducer(draft, action) {
|
|
52
|
+
const { accountReconKey, transactionId } = action.payload;
|
|
53
|
+
draft.accountReconByAccountReconKey[accountReconKey] = Object.assign(Object.assign({}, draft.accountReconByAccountReconKey[accountReconKey]), { transactionsToReconcile: [
|
|
54
|
+
...draft.accountReconByAccountReconKey[accountReconKey]
|
|
55
|
+
.transactionsToReconcile,
|
|
56
|
+
transactionId,
|
|
57
|
+
] });
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
clearAllAccountRecon(draft) {
|
|
61
|
+
Object.assign(draft, exports.initialState);
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
_a = accountRecon.actions, exports.updateAccountRecon = _a.updateAccountRecon, exports.excludeReconReviewTransaction = _a.excludeReconReviewTransaction, exports.clearAllAccountRecon = _a.clearAllAccountRecon, exports.addTransactionToReconcileList = _a.addTransactionToReconcileList;
|
|
66
|
+
exports.default = accountRecon.reducer;
|
|
67
|
+
const doUpdateAccountRecon = (draft, selectedPeriod, accountReconDataPayload) => {
|
|
68
|
+
accountReconDataPayload.forEach((accountReconData) => {
|
|
69
|
+
draft.accountReconByAccountReconKey[(0, accountReconState_1.toAccountReconKey)(accountReconData.account_id, selectedPeriod)] = (0, accountReconPayload_1.toAccountReconciliationData)(accountReconData);
|
|
70
|
+
});
|
|
71
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Amount, Currency } from '../../commonStateTypes/amount';
|
|
2
|
+
import { ID } from '../../commonStateTypes/common';
|
|
3
|
+
import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
|
|
4
|
+
import { RootState } from '../../reducer';
|
|
5
|
+
import { ZeniDate } from '../../zeniDayJS';
|
|
6
|
+
import { AccountBase } from '../account/accountState';
|
|
7
|
+
import { MatchedTransaction } from '../transaction/stateTypes/reconciliationTransaction';
|
|
8
|
+
import { User } from '../user/userState';
|
|
9
|
+
import { ReconciliationStatusCodeType, TransactionsToReview } from './accountReconState';
|
|
10
|
+
export interface AccountReconciliationEntity {
|
|
11
|
+
account: AccountBase;
|
|
12
|
+
transactionsToReview: TransactionsToReview[];
|
|
13
|
+
transactionsToReconcile: MatchedTransaction[];
|
|
14
|
+
currency: Currency;
|
|
15
|
+
reconciliationId?: ID;
|
|
16
|
+
user?: User;
|
|
17
|
+
balance?: Amount;
|
|
18
|
+
clearedBalance?: Amount;
|
|
19
|
+
initialClearedBalance?: Amount;
|
|
20
|
+
variance?: Amount;
|
|
21
|
+
variancePercentage?: number;
|
|
22
|
+
reconciliationStatus?: {
|
|
23
|
+
code: ReconciliationStatusCodeType;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
accountUpdatedAt?: ZeniDate;
|
|
27
|
+
}
|
|
28
|
+
export declare const getAccountReconByAccountIdAndSelectedPeriod: (state: RootState, accountId: ID, selectedPeriod: MonthYearPeriod) => AccountReconciliationEntity | undefined;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAccountReconByAccountIdAndSelectedPeriod = void 0;
|
|
4
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
+
const accountSelector_1 = require("../account/accountSelector");
|
|
6
|
+
const transactionSelector_1 = require("../transaction/transactionSelector");
|
|
7
|
+
const userSelector_1 = require("../user/userSelector");
|
|
8
|
+
const accountReconState_1 = require("./accountReconState");
|
|
9
|
+
exports.getAccountReconByAccountIdAndSelectedPeriod = (0, toolkit_1.createSelector)((state) => state.accountState, (state) => state.userState, (state) => state.transactionState, (state) => state.accountReconState, (_state, accountId) => accountId, (_state, _accountId, selectedPeriod) => selectedPeriod, (accountState, userState, transactionState, accountReconState, accountId, selectedPeriod) => {
|
|
10
|
+
const accountReconKey = (0, accountReconState_1.toAccountReconKey)(accountId, selectedPeriod);
|
|
11
|
+
const accountRecon = accountReconState.accountReconByAccountReconKey[accountReconKey];
|
|
12
|
+
if (accountRecon == null) {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
const account = (0, accountSelector_1.getAccountBase)(accountState, accountRecon.accountId, 'account_reconciliation');
|
|
16
|
+
if (!account) {
|
|
17
|
+
throw new Error(`Account not found for: ${accountRecon.accountId}`);
|
|
18
|
+
}
|
|
19
|
+
const user = accountRecon.userId != null
|
|
20
|
+
? (0, userSelector_1.getUserByUserId)(userState, accountRecon.userId)
|
|
21
|
+
: undefined;
|
|
22
|
+
const transactionsToReconcile = accountRecon.transactionsToReconcile.map((transactionId) => {
|
|
23
|
+
const matchedTransaction = (0, transactionSelector_1.getMatchedTransactionById)(transactionState, transactionId);
|
|
24
|
+
if (!matchedTransaction) {
|
|
25
|
+
throw new Error(`Transaction not found for: ${transactionId}`);
|
|
26
|
+
}
|
|
27
|
+
return matchedTransaction;
|
|
28
|
+
});
|
|
29
|
+
return {
|
|
30
|
+
account,
|
|
31
|
+
currency: accountRecon.currency,
|
|
32
|
+
balance: accountRecon.bankBalance,
|
|
33
|
+
variance: accountRecon.variance,
|
|
34
|
+
clearedBalance: accountRecon.clearedBalance,
|
|
35
|
+
initialClearedBalance: accountRecon.initialClearedBalance,
|
|
36
|
+
reconciliationId: accountRecon.reconciliationId,
|
|
37
|
+
user,
|
|
38
|
+
transactionsToReview: accountRecon.transactionsToReview,
|
|
39
|
+
transactionsToReconcile,
|
|
40
|
+
reconciliationStatus: accountRecon.reconciliationStatus,
|
|
41
|
+
variancePercentage: accountRecon.variancePercentage,
|
|
42
|
+
accountUpdatedAt: accountRecon.accountUpdatedAt,
|
|
43
|
+
};
|
|
44
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Amount, Currency } from '../../commonStateTypes/amount';
|
|
2
|
+
import { ID } from '../../commonStateTypes/common';
|
|
3
|
+
import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
|
|
4
|
+
import { ZeniDate } from '../../zeniDayJS';
|
|
5
|
+
import { MerchantType, TransactionDirectionType } from '../transaction/stateTypes/reconciliationTransaction';
|
|
6
|
+
import { TransactionType } from '../transaction/stateTypes/transactionType';
|
|
7
|
+
export declare const toRecommendedActionCodeType: (v: string) => "record_expense" | "record_deposit" | "record_transfer" | "record_bill_payment" | "record_cc_payment" | "record_cc_credit";
|
|
8
|
+
export type RecommendedActionCodeType = ReturnType<typeof toRecommendedActionCodeType>;
|
|
9
|
+
export declare const toReconciliationStatusCodeType: (v: string) => "failed" | "completed" | "pending" | "in_progress";
|
|
10
|
+
export type ReconciliationStatusCodeType = ReturnType<typeof toReconciliationStatusCodeType>;
|
|
11
|
+
export declare const toBankStatusCodeType: (v: string) => "connected" | "not_connected" | "reconnect";
|
|
12
|
+
export type BankStatusCodeType = ReturnType<typeof toBankStatusCodeType>;
|
|
13
|
+
export declare const toAccountReconKey: (accountId: ID, selectedPeriod: MonthYearPeriod) => string;
|
|
14
|
+
export type AccountReconKey = ReturnType<typeof toAccountReconKey>;
|
|
15
|
+
export interface AccountReconState {
|
|
16
|
+
accountReconByAccountReconKey: Record<AccountReconKey, AccountReconciliationData>;
|
|
17
|
+
}
|
|
18
|
+
export interface AccountReconciliationData {
|
|
19
|
+
accountId: ID;
|
|
20
|
+
startDate: ZeniDate;
|
|
21
|
+
endDate: ZeniDate;
|
|
22
|
+
transactionsToReview: TransactionsToReview[];
|
|
23
|
+
transactionsToReconcile: ID[];
|
|
24
|
+
currency: Currency;
|
|
25
|
+
reconciliationId?: ID;
|
|
26
|
+
variance?: Amount;
|
|
27
|
+
variancePercentage?: number;
|
|
28
|
+
bankBalance?: Amount;
|
|
29
|
+
clearedBalance?: Amount;
|
|
30
|
+
initialClearedBalance?: Amount;
|
|
31
|
+
userId?: ID;
|
|
32
|
+
reconciliationStatus?: {
|
|
33
|
+
code: ReconciliationStatusCodeType;
|
|
34
|
+
label: string;
|
|
35
|
+
};
|
|
36
|
+
accountUpdatedAt?: ZeniDate;
|
|
37
|
+
}
|
|
38
|
+
export interface TransactionsToReview {
|
|
39
|
+
transactionId: ID;
|
|
40
|
+
amount: Amount;
|
|
41
|
+
status: string;
|
|
42
|
+
transactionDate: ZeniDate;
|
|
43
|
+
memo: string;
|
|
44
|
+
transactionDirection: TransactionDirectionType;
|
|
45
|
+
recommendedAction: RecommendedAction;
|
|
46
|
+
merchantId?: ID;
|
|
47
|
+
merchantName?: string;
|
|
48
|
+
merchantType?: MerchantType;
|
|
49
|
+
}
|
|
50
|
+
export interface RecommendedAction {
|
|
51
|
+
action: RecommendedActionCodeType;
|
|
52
|
+
reason: string;
|
|
53
|
+
recommendedTransactions: RecommendedReviewTransaction[];
|
|
54
|
+
}
|
|
55
|
+
export interface RecommendedReviewTransaction {
|
|
56
|
+
confidenceScore: number;
|
|
57
|
+
recommendedReasons: string[];
|
|
58
|
+
date: ZeniDate;
|
|
59
|
+
memo: string;
|
|
60
|
+
amount: Amount;
|
|
61
|
+
transactionId?: ID;
|
|
62
|
+
booksTransactionId?: ID;
|
|
63
|
+
transactionType?: TransactionType;
|
|
64
|
+
typeName?: string;
|
|
65
|
+
accountId?: ID;
|
|
66
|
+
merchantId?: ID;
|
|
67
|
+
merchantName?: string;
|
|
68
|
+
merchantType?: MerchantType;
|
|
69
|
+
classId?: ID;
|
|
70
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toAccountReconKey = exports.toBankStatusCodeType = exports.toReconciliationStatusCodeType = exports.toRecommendedActionCodeType = void 0;
|
|
4
|
+
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
|
+
const timePeriod_1 = require("../../commonStateTypes/timePeriod");
|
|
6
|
+
const RECOMMENDED_ACTION_CODE = [
|
|
7
|
+
'record_expense', // Categorize
|
|
8
|
+
'record_deposit', // Categorize // Income - no match
|
|
9
|
+
'record_transfer', // Categorize
|
|
10
|
+
'record_bill_payment', // Match
|
|
11
|
+
'record_cc_payment', // Categorize
|
|
12
|
+
'record_cc_credit', // Categorize
|
|
13
|
+
];
|
|
14
|
+
const toRecommendedActionCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, RECOMMENDED_ACTION_CODE);
|
|
15
|
+
exports.toRecommendedActionCodeType = toRecommendedActionCodeType;
|
|
16
|
+
const RECONCILIATION_STATUS_CODE = [
|
|
17
|
+
'pending',
|
|
18
|
+
'in_progress',
|
|
19
|
+
'completed',
|
|
20
|
+
'failed',
|
|
21
|
+
];
|
|
22
|
+
const toReconciliationStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, RECONCILIATION_STATUS_CODE);
|
|
23
|
+
exports.toReconciliationStatusCodeType = toReconciliationStatusCodeType;
|
|
24
|
+
const BANK_STATUS_CODE = ['connected', 'not_connected', 'reconnect'];
|
|
25
|
+
const toBankStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, BANK_STATUS_CODE);
|
|
26
|
+
exports.toBankStatusCodeType = toBankStatusCodeType;
|
|
27
|
+
const toAccountReconKey = (accountId, selectedPeriod) => `${accountId}-${(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)}`;
|
|
28
|
+
exports.toAccountReconKey = toAccountReconKey;
|
|
@@ -5,15 +5,15 @@ import { UpdateType } from '../../commonStateTypes/common';
|
|
|
5
5
|
import { ClassBasePayload } from './classPayload';
|
|
6
6
|
import { ClassBase, ClassState } from './classState';
|
|
7
7
|
export declare const initialState: ClassState;
|
|
8
|
-
export declare const updateClasses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[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", payload: ClassBasePayload[], classesViewParentId?: ClassesViewParentID | undefined, updateType?: UpdateType | undefined], ClassBasePayload[], "class/updateClasses", never, {
|
|
9
|
-
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";
|
|
8
|
+
export declare const updateClasses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[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", payload: ClassBasePayload[], classesViewParentId?: ClassesViewParentID | undefined, updateType?: UpdateType | undefined], ClassBasePayload[], "class/updateClasses", never, {
|
|
9
|
+
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";
|
|
10
10
|
classesViewParentId: ClassesViewParentID | undefined;
|
|
11
11
|
updateType: UpdateType;
|
|
12
|
-
}>, updateClassesWithBalancesV2: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[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", timeframe: "month" | "year" | "quarter", sectionId: string, classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[], currencyPayload: CurrencyPayload], {
|
|
12
|
+
}>, updateClassesWithBalancesV2: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[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", timeframe: "month" | "year" | "quarter", sectionId: string, classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[], currencyPayload: CurrencyPayload], {
|
|
13
13
|
classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[];
|
|
14
14
|
currencyPayload: CurrencyPayload;
|
|
15
15
|
}, "class/updateClassesWithBalancesV2", never, {
|
|
16
|
-
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";
|
|
16
|
+
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";
|
|
17
17
|
sectionId: string;
|
|
18
18
|
timeframe: "month" | "year" | "quarter";
|
|
19
19
|
}>, clearAllClasses: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"class/clearAllClasses">;
|
|
@@ -25,7 +25,7 @@ export interface Class extends ClassBase {
|
|
|
25
25
|
balancesByPeriod?: COABalanceGroupedByPeriod;
|
|
26
26
|
nestedAccountIds?: NestedAccountIDHierarchy[];
|
|
27
27
|
}
|
|
28
|
-
export declare function getClassKey(reportId: ReportID, classId: ID, parentId?: ClassesViewParentID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense`;
|
|
28
|
+
export declare function getClassKey(reportId: ReportID, classId: ID, parentId?: ClassesViewParentID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation`;
|
|
29
29
|
export type ClassKey = ReturnType<typeof getClassKey>;
|
|
30
30
|
export interface ClassState {
|
|
31
31
|
classesByKey: Record<ClassKey, Class>;
|
|
@@ -3,7 +3,7 @@ import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
|
|
|
3
3
|
import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
4
|
import { ZeniDate } from '../../zeniDayJS';
|
|
5
5
|
export type ForecastType = ReportID;
|
|
6
|
-
export declare const toForecastType: (v: string) => "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";
|
|
6
|
+
export declare const toForecastType: (v: string) => "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";
|
|
7
7
|
export interface Forecast {
|
|
8
8
|
id: ID;
|
|
9
9
|
type: ForecastType;
|
|
@@ -10,5 +10,5 @@ export interface SectionAccountsView {
|
|
|
10
10
|
nestedAccountIds: NestedAccountIDHierarchy[];
|
|
11
11
|
accountGroupKeys: AccountGroupKey[];
|
|
12
12
|
}
|
|
13
|
-
export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense` | `${string}-billing+${string}` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-charge_cards+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-flux_analysis_operating_expense+${string}`;
|
|
13
|
+
export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-billing+${string}` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-charge_cards+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}`;
|
|
14
14
|
export type SectionAccountKey = ReturnType<typeof getSectionAccountViewKey>;
|
|
@@ -8,5 +8,5 @@ export interface SectionClassesView {
|
|
|
8
8
|
nestedClassesIds: NestedClassIDHierarchy[];
|
|
9
9
|
balancesByPeriod?: COABalanceGroupedByPeriod;
|
|
10
10
|
}
|
|
11
|
-
export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense`;
|
|
11
|
+
export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation`;
|
|
12
12
|
export type SectionClassesKey = ReturnType<typeof getSectionClassesViewKey>;
|
|
@@ -4,9 +4,9 @@ import { AccountMetadataPayload } from '../account/accountPayload';
|
|
|
4
4
|
import { ClassMetadataPayload } from '../class/classPayload';
|
|
5
5
|
import { SectionClassesViewStateV2 } from './sectionClassesViewState';
|
|
6
6
|
export declare const initialState: SectionClassesViewStateV2;
|
|
7
|
-
export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, 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", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
|
|
7
|
+
export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, 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", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
|
|
8
8
|
timeframe: "month" | "year" | "quarter";
|
|
9
|
-
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";
|
|
9
|
+
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";
|
|
10
10
|
sectionId: string;
|
|
11
11
|
sectionPayload: SectionByClassCOABalanceGroupedPayloadV2;
|
|
12
12
|
classesMetadataPayload: ClassMetadataPayload[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit";
|
|
1
|
+
export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_creation";
|
|
2
2
|
export type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
|
|
3
3
|
export declare const toSnackbarMessageSectionTexts: (v: string) => "failed" | "success" | "notification";
|
|
4
4
|
export type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
|
|
@@ -146,6 +146,10 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
|
|
|
146
146
|
'receipts_upload',
|
|
147
147
|
'billing_address_view',
|
|
148
148
|
'express_pay_submit',
|
|
149
|
+
'exclude_transaction',
|
|
150
|
+
'reconcile',
|
|
151
|
+
'save_reconcile_for_later',
|
|
152
|
+
'recon_transaction_creation',
|
|
149
153
|
];
|
|
150
154
|
const toSnackbarMessageSection = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
|
|
151
155
|
exports.toSnackbarMessageSection = toSnackbarMessageSection;
|
|
@@ -41,7 +41,7 @@ export declare const toPriorityCodeType: (v: string) => "normal" | "high" | "low
|
|
|
41
41
|
export declare const toPriorityCodeTypeStrict: (v?: string) => "normal" | "high" | "low" | "medium" | "urgent" | undefined;
|
|
42
42
|
export type PriorityCodeType = ReturnType<typeof toPriorityCodeType>;
|
|
43
43
|
export declare const ALL_TASK_STATUS_CODE: readonly ["todo", "in_progress", "on_hold", "done", "resolved"];
|
|
44
|
-
export declare const toTaskStatusCodeType: (v: string) => "done" | "resolved" | "
|
|
44
|
+
export declare const toTaskStatusCodeType: (v: string) => "done" | "resolved" | "in_progress" | "todo" | "on_hold";
|
|
45
45
|
export type TaskStatusCodeType = ReturnType<typeof toTaskStatusCodeType>;
|
|
46
46
|
export declare const toTaskCodeType: (v: string) => "one_time" | "recurring";
|
|
47
47
|
export type TaskCodeType = NonNullable<ReturnType<typeof toTaskCodeType>>;
|