@zeniai/client-epic-state 5.0.69-beta2RJ → 5.0.69-betaAR1
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/entity/account/accountSelector.d.ts +26 -0
- package/lib/entity/account/accountSelector.js +47 -1
- package/lib/entity/account/accountState.d.ts +5 -0
- package/lib/entity/account/accountState.js +11 -4
- package/lib/entity/class/classSelector.d.ts +35 -0
- package/lib/entity/class/classSelector.js +50 -0
- package/lib/epic.d.ts +1 -2
- package/lib/epic.js +1 -2
- package/lib/esm/entity/account/accountSelector.js +46 -1
- package/lib/esm/entity/account/accountState.js +7 -1
- package/lib/esm/entity/class/classSelector.js +48 -0
- package/lib/esm/epic.js +1 -2
- package/lib/esm/index.js +10 -6
- package/lib/esm/reducer.js +0 -6
- package/lib/esm/view/companyHealthMetricView/companyHealthMetricViewSelector.js +1 -1
- package/lib/esm/view/companyView/helpers/cockpitHelpers.js +1 -1
- package/lib/esm/view/companyView/selector/companyManagementViewSelector.js +1 -1
- package/lib/esm/view/companyView/selector/companyPortfolioViewSelector.js +1 -1
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +11 -1
- package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +69 -12
- package/lib/esm/view/expenseAutomationView/transactionFilterHelpers.js +228 -0
- package/lib/esm/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +0 -4
- package/lib/esm/view/spendManagement/spendManagementFilterHelpers.js +4 -2
- package/lib/esm/view/subscriptionView/subscriptionViewSelector.js +1 -1
- package/lib/esm/view/taskManager/taskListView/taskListReducer.js +1 -1
- package/lib/index.d.ts +7 -9
- package/lib/index.js +41 -37
- package/lib/reducer.d.ts +0 -6
- package/lib/reducer.js +0 -6
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +1 -1
- package/lib/view/companyView/helpers/cockpitHelpers.js +1 -1
- package/lib/view/companyView/selector/companyManagementViewSelector.js +1 -1
- package/lib/view/companyView/selector/companyPortfolioViewSelector.js +1 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +1 -1
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +5 -1
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +12 -2
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +4 -1
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +71 -12
- package/lib/view/expenseAutomationView/transactionFilterHelpers.d.ts +65 -0
- package/lib/view/expenseAutomationView/transactionFilterHelpers.js +232 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.d.ts +1 -2
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +0 -4
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistory.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +1 -1
- package/lib/view/spendManagement/spendManagementFilterHelpers.d.ts +1 -1
- package/lib/view/spendManagement/spendManagementFilterHelpers.js +4 -2
- package/lib/view/subscriptionView/subscriptionViewSelector.js +1 -1
- package/lib/view/taskManager/taskListView/taskList.d.ts +1 -1
- package/lib/view/taskManager/taskListView/taskListReducer.js +1 -1
- package/package.json +1 -1
- package/lib/entity/scheduleActivityLog/scheduleActivityLogPayload.d.ts +0 -68
- package/lib/entity/scheduleActivityLog/scheduleActivityLogPayload.js +0 -132
- package/lib/entity/scheduleActivityLog/scheduleActivityLogReducer.d.ts +0 -6
- package/lib/entity/scheduleActivityLog/scheduleActivityLogReducer.js +0 -27
- package/lib/entity/scheduleActivityLog/scheduleActivityLogSelector.d.ts +0 -4
- package/lib/entity/scheduleActivityLog/scheduleActivityLogSelector.js +0 -17
- package/lib/entity/scheduleActivityLog/scheduleActivityLogState.d.ts +0 -67
- package/lib/entity/scheduleActivityLog/scheduleActivityLogState.js +0 -39
- package/lib/esm/entity/scheduleActivityLog/scheduleActivityLogPayload.js +0 -126
- package/lib/esm/entity/scheduleActivityLog/scheduleActivityLogReducer.js +0 -23
- package/lib/esm/entity/scheduleActivityLog/scheduleActivityLogSelector.js +0 -10
- package/lib/esm/entity/scheduleActivityLog/scheduleActivityLogState.js +0 -35
- package/lib/esm/view/scheduleActivityLogView/fetchScheduleActivityLogEpic.js +0 -67
- package/lib/esm/view/scheduleActivityLogView/scheduleActivityLogViewPayload.js +0 -1
- package/lib/esm/view/scheduleActivityLogView/scheduleActivityLogViewReducer.js +0 -50
- package/lib/esm/view/scheduleActivityLogView/scheduleActivityLogViewSelector.js +0 -33
- package/lib/esm/view/scheduleActivityLogView/scheduleActivityLogViewState.js +0 -1
- package/lib/view/scheduleActivityLogView/fetchScheduleActivityLogEpic.d.ts +0 -11
- package/lib/view/scheduleActivityLogView/fetchScheduleActivityLogEpic.js +0 -72
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewPayload.d.ts +0 -8
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewPayload.js +0 -2
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewReducer.d.ts +0 -17
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewReducer.js +0 -54
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewSelector.d.ts +0 -8
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewSelector.js +0 -36
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewState.d.ts +0 -5
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewState.js +0 -2
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Narrowing type-guard for "has a non-empty string here". Used in place of
|
|
3
|
+
* raw `if (foo)` truthiness checks on `string | null | undefined` values so
|
|
4
|
+
* the `@typescript-eslint/strict-boolean-expressions` lint stays clean —
|
|
5
|
+
* empty strings should explicitly fall through to the next candidate
|
|
6
|
+
* (vendorName → customerName → localData.vendor.name → ...) rather than
|
|
7
|
+
* being implicitly coerced to falsy.
|
|
8
|
+
*/
|
|
9
|
+
const isNonEmptyString = (s) => s != null && s !== '';
|
|
10
|
+
export const TRANSACTION_FILTER_CATEGORIES = [
|
|
11
|
+
{ value: 'payment_account_name', type: 'dropdown' },
|
|
12
|
+
{ value: 'payment_account_type', type: 'dropdown' },
|
|
13
|
+
{ value: 'payee', type: 'searchAutocomplete' },
|
|
14
|
+
{ value: 'category', type: 'dropdown' },
|
|
15
|
+
{ value: 'class', type: 'dropdown' },
|
|
16
|
+
{ value: 'amount', type: 'numberRange' },
|
|
17
|
+
];
|
|
18
|
+
/**
|
|
19
|
+
* Resolve the comparable value for a transaction against a given filter field.
|
|
20
|
+
* Returns undefined when the transaction doesn't carry the field — callers
|
|
21
|
+
* decide whether absence counts as a match (for 'not_equal' it does).
|
|
22
|
+
*/
|
|
23
|
+
const getCategoryValueForTransaction = (key, transaction) => {
|
|
24
|
+
switch (key) {
|
|
25
|
+
case 'amount': {
|
|
26
|
+
// Prefer transactionLocalData line items (sum). Fall back to lines on
|
|
27
|
+
// the transaction itself. Final fallback: transaction-level amount.
|
|
28
|
+
const localDataForAmount = transaction.transactionLocalData?.transactionReviewLocalData;
|
|
29
|
+
if (localDataForAmount?.lineItemById) {
|
|
30
|
+
const lineItems = Object.values(localDataForAmount.lineItemById);
|
|
31
|
+
if (lineItems.length > 0) {
|
|
32
|
+
return lineItems.reduce((sum, lineItem) => sum + (lineItem.amount?.amount ?? 0), 0);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (transaction.transaction.lines &&
|
|
36
|
+
transaction.transaction.lines.length > 0) {
|
|
37
|
+
return transaction.transaction.lines.reduce((sum, line) => sum + (line.amount?.amount ?? 0), 0);
|
|
38
|
+
}
|
|
39
|
+
return transaction.amount.amount;
|
|
40
|
+
}
|
|
41
|
+
case 'payee': {
|
|
42
|
+
if (isNonEmptyString(transaction.vendorName)) {
|
|
43
|
+
return transaction.vendorName;
|
|
44
|
+
}
|
|
45
|
+
if (isNonEmptyString(transaction.customerName)) {
|
|
46
|
+
return transaction.customerName;
|
|
47
|
+
}
|
|
48
|
+
const localData = transaction.transactionLocalData?.transactionReviewLocalData;
|
|
49
|
+
const vendorName = localData?.vendor?.name;
|
|
50
|
+
if (isNonEmptyString(vendorName)) {
|
|
51
|
+
return vendorName;
|
|
52
|
+
}
|
|
53
|
+
const customerName = localData?.customer?.name;
|
|
54
|
+
if (isNonEmptyString(customerName)) {
|
|
55
|
+
return customerName;
|
|
56
|
+
}
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
case 'payment_account_name': {
|
|
60
|
+
// Match what TransactionCategorizationListRow renders for the cell.
|
|
61
|
+
return transaction.transaction.account?.accountName;
|
|
62
|
+
}
|
|
63
|
+
case 'payment_account_type': {
|
|
64
|
+
// Raw `paymentType` enum ("credit_card" / "check" / "cash"). Dropdown
|
|
65
|
+
// option values use the same enum; row uses `paymentTypeName` for the
|
|
66
|
+
// human label.
|
|
67
|
+
return transaction.transaction.paymentType;
|
|
68
|
+
}
|
|
69
|
+
case 'category': {
|
|
70
|
+
const localDataForCategory = transaction.transactionLocalData?.transactionReviewLocalData;
|
|
71
|
+
if (localDataForCategory != null) {
|
|
72
|
+
const firstLineItem = Object.values(localDataForCategory.lineItemById)[0];
|
|
73
|
+
const accountId = firstLineItem?.account?.accountId;
|
|
74
|
+
if (isNonEmptyString(accountId)) {
|
|
75
|
+
return accountId;
|
|
76
|
+
}
|
|
77
|
+
const qboId = firstLineItem?.account?.qboId;
|
|
78
|
+
if (isNonEmptyString(qboId)) {
|
|
79
|
+
return qboId;
|
|
80
|
+
}
|
|
81
|
+
const accountName = firstLineItem?.account?.accountName;
|
|
82
|
+
if (isNonEmptyString(accountName)) {
|
|
83
|
+
return accountName;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const firstLineForCategory = transaction.transaction.lines?.[0];
|
|
87
|
+
if (firstLineForCategory?.type ===
|
|
88
|
+
'transaction_with_account_and_class_line' ||
|
|
89
|
+
firstLineForCategory?.type ===
|
|
90
|
+
'transaction_with_product_or_service_line' ||
|
|
91
|
+
firstLineForCategory?.type === 'journal_entry_transaction_line') {
|
|
92
|
+
const account = firstLineForCategory.account;
|
|
93
|
+
return account?.accountId ?? account?.qboId ?? account?.accountName;
|
|
94
|
+
}
|
|
95
|
+
return undefined;
|
|
96
|
+
}
|
|
97
|
+
case 'class': {
|
|
98
|
+
const localDataForClass = transaction.transactionLocalData?.transactionReviewLocalData;
|
|
99
|
+
if (localDataForClass != null) {
|
|
100
|
+
const firstLineItemForClass = Object.values(localDataForClass.lineItemById)[0];
|
|
101
|
+
const classId = firstLineItemForClass?.class?.classId;
|
|
102
|
+
if (isNonEmptyString(classId)) {
|
|
103
|
+
return classId;
|
|
104
|
+
}
|
|
105
|
+
const qboId = firstLineItemForClass?.class?.qboId;
|
|
106
|
+
if (isNonEmptyString(qboId)) {
|
|
107
|
+
return qboId;
|
|
108
|
+
}
|
|
109
|
+
const className = firstLineItemForClass?.class?.className;
|
|
110
|
+
if (isNonEmptyString(className)) {
|
|
111
|
+
return className;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const firstLineForClass = transaction.transaction.lines?.[0];
|
|
115
|
+
if (firstLineForClass?.type === 'transaction_with_account_and_class_line' ||
|
|
116
|
+
firstLineForClass?.type ===
|
|
117
|
+
'transaction_with_product_or_service_line' ||
|
|
118
|
+
firstLineForClass?.type === 'journal_entry_transaction_line') {
|
|
119
|
+
const classData = firstLineForClass.class;
|
|
120
|
+
return classData?.classId ?? classData?.qboId ?? classData?.className;
|
|
121
|
+
}
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
default:
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* TC-only amount matcher. Supports all five operators TC defines, including
|
|
130
|
+
* the legacy "1000<->5000" range-string form (kept for backward compatibility
|
|
131
|
+
* with persisted filter state that may still contain that encoding).
|
|
132
|
+
*
|
|
133
|
+
* The `'equal' | 'not_equal'` branch matches if `amount` equals ANY of the
|
|
134
|
+
* configured values (consistent with how non-amount filters interpret a
|
|
135
|
+
* multi-value `values` array). `.some()` over the values array also makes
|
|
136
|
+
* the empty-values case behave correctly — empty array → `matched = false`
|
|
137
|
+
* — though in practice `applyTransactionFilters` strips empty-values
|
|
138
|
+
* categories before they reach this matcher. The trailing
|
|
139
|
+
* `op === 'not_equal' ? !matched : matched` line inverts for `not_equal`.
|
|
140
|
+
*/
|
|
141
|
+
const matchAmount = (amount, category) => {
|
|
142
|
+
const op = category.matchingOperator;
|
|
143
|
+
const values = category.values;
|
|
144
|
+
let matched = false;
|
|
145
|
+
if (op === 'in_between') {
|
|
146
|
+
if (values.length >= 2) {
|
|
147
|
+
const min = Number(values[0]);
|
|
148
|
+
const max = Number(values[1]);
|
|
149
|
+
matched = amount >= min && amount <= max;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
else if (op === 'less_than') {
|
|
153
|
+
if (values.length >= 1) {
|
|
154
|
+
matched = amount < Number(values[0]);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
else if (op === 'greater_than') {
|
|
158
|
+
if (values.length >= 1) {
|
|
159
|
+
matched = amount > Number(values[0]);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
else if (op === 'equal' || op === 'not_equal') {
|
|
163
|
+
matched = values.some((v) => {
|
|
164
|
+
const s = String(v);
|
|
165
|
+
// Backward compatibility: legacy "low<->high" range-string form
|
|
166
|
+
// persisted under `matchingOperator: 'equal'`.
|
|
167
|
+
if (s.includes('<->')) {
|
|
168
|
+
const parts = s.split('<->');
|
|
169
|
+
return (amount >= Number(parts[0] ?? '') && amount <= Number(parts[1] ?? ''));
|
|
170
|
+
}
|
|
171
|
+
return amount === Number(v);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return op === 'not_equal' ? !matched : matched;
|
|
175
|
+
};
|
|
176
|
+
const transactionMatchesCategory = (transaction, category) => {
|
|
177
|
+
const value = getCategoryValueForTransaction(category.field, transaction);
|
|
178
|
+
if (value == null) {
|
|
179
|
+
// Absent values count as a match only under 'not_equal'.
|
|
180
|
+
return category.matchingOperator === 'not_equal';
|
|
181
|
+
}
|
|
182
|
+
if (category.field === 'amount') {
|
|
183
|
+
return matchAmount(Number(value), category);
|
|
184
|
+
}
|
|
185
|
+
const valueStr = value.toString();
|
|
186
|
+
const valueInList = category.values.some((v) => v.toString() === valueStr);
|
|
187
|
+
return category.matchingOperator === 'not_equal' ? !valueInList : valueInList;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* TC-only equivalent of `applyAdvancedFiltersOnList`. Filters a list of
|
|
191
|
+
* `TransactionView` items against a `TransactionFilters` object using the
|
|
192
|
+
* AND/OR combination semantics from `categoryCombinationOperator`.
|
|
193
|
+
*
|
|
194
|
+
* Independent of `view/spendManagement` — keeps the TC filter pipeline cleanly
|
|
195
|
+
* inside the Expense Automation feature group.
|
|
196
|
+
*/
|
|
197
|
+
export const applyTransactionFilters = (transactions, filters) => {
|
|
198
|
+
if (filters?.categories == null || filters.categories.length === 0) {
|
|
199
|
+
return transactions;
|
|
200
|
+
}
|
|
201
|
+
// Mirrors the predicate used by `getTransactionAppliedFiltersCount` on the
|
|
202
|
+
// webc side. A half-filled category — e.g. `in_between` with only the
|
|
203
|
+
// `min` typed — would otherwise survive the filter pass and produce zero
|
|
204
|
+
// matches because `Number("")` collapses to `0`, artificially emptying
|
|
205
|
+
// the list while editing. Skipping such categories keeps the filtered
|
|
206
|
+
// view stable while the user finishes typing.
|
|
207
|
+
const activeCategories = filters.categories.filter((c) => {
|
|
208
|
+
if (c.field == null || c.values.length === 0) {
|
|
209
|
+
return false;
|
|
210
|
+
}
|
|
211
|
+
if (c.field === 'amount' && c.matchingOperator === 'in_between') {
|
|
212
|
+
return (c.values.length >= 2 &&
|
|
213
|
+
String(c.values[0] ?? '').trim() !== '' &&
|
|
214
|
+
String(c.values[1] ?? '').trim() !== '');
|
|
215
|
+
}
|
|
216
|
+
return String(c.values[0] ?? '').trim() !== '';
|
|
217
|
+
});
|
|
218
|
+
if (activeCategories.length === 0) {
|
|
219
|
+
return transactions;
|
|
220
|
+
}
|
|
221
|
+
const op = filters.categoryCombinationOperator;
|
|
222
|
+
return transactions.filter((txn) => {
|
|
223
|
+
if (op === 'AND') {
|
|
224
|
+
return activeCategories.every((cat) => transactionMatchesCategory(txn, cat));
|
|
225
|
+
}
|
|
226
|
+
return activeCategories.some((cat) => transactionMatchesCategory(txn, cat));
|
|
227
|
+
});
|
|
228
|
+
};
|
|
@@ -2,7 +2,6 @@ import { concat, from } from 'rxjs';
|
|
|
2
2
|
import { filter, mergeMap } from 'rxjs/operators';
|
|
3
3
|
import { fetchAccountList } from '../../../accountList/accountListReducer';
|
|
4
4
|
import { fetchClassList } from '../../../classList/classListReducer';
|
|
5
|
-
import { fetchScheduleActivityLog } from '../../../scheduleActivityLogView/scheduleActivityLogViewReducer';
|
|
6
5
|
import { getAccountsTypesForScheduleEpics } from '../../scheduleListView/scheduleListHelper';
|
|
7
6
|
import { fetchScheduleDetails, fetchScheduleDetailsPage, } from '../scheduleDetailReducer';
|
|
8
7
|
export const fetchScheduleDetailsPageEpic = (actions$, state$) => actions$.pipe(filter(fetchScheduleDetailsPage.match), mergeMap((action) => {
|
|
@@ -20,9 +19,6 @@ export const fetchScheduleDetailsPageEpic = (actions$, state$) => actions$.pipe(
|
|
|
20
19
|
}
|
|
21
20
|
if (action.payload.selectedJeScheduleDetailId != null) {
|
|
22
21
|
scheduleDetailsActions.push(fetchScheduleDetails(action.payload.scheduleType, action.payload.selectedJeScheduleDetailId, action.payload.cacheOverride));
|
|
23
|
-
// Prefetch the schedule activity log alongside the detail page so the
|
|
24
|
-
// side panel renders instantly when the user taps the navbar icon.
|
|
25
|
-
scheduleDetailsActions.push(fetchScheduleActivityLog(action.payload.selectedJeScheduleDetailId));
|
|
26
22
|
}
|
|
27
23
|
return concat(from(scheduleDetailsActions));
|
|
28
24
|
}));
|
|
@@ -8,6 +8,8 @@ import { getActualPaymentDate } from './helpers';
|
|
|
8
8
|
import { getApproversOrRejectors as getApproversOrRejectorsForReimbursement, } from './reimbursement/remiListView/remiListSelector';
|
|
9
9
|
import { ALL_REMI_TABS, getRemiListKey, } from './reimbursement/remiListView/remiListState';
|
|
10
10
|
//filters items against filter values representing a range. ex: date (from-to), amount(1k<-->5k)
|
|
11
|
+
// Spend Management uses only equal/not_equal — TC amount operators
|
|
12
|
+
// (inBetween, lessThan, greaterThan) live in the TC filter pipeline.
|
|
11
13
|
const filterItemOnRangeCategoryType = (valueForItem, currentFilter) => {
|
|
12
14
|
let doesItemFallInValueRange = false;
|
|
13
15
|
const filterField = currentFilter.field;
|
|
@@ -41,7 +43,7 @@ const filterItemOnCategoriesWithSingleValue = (categoryValue, currentFilter, ran
|
|
|
41
43
|
return filterItemOnRangeCategoryType(categoryValue, currentFilter);
|
|
42
44
|
}
|
|
43
45
|
// if filter category is not rangeType
|
|
44
|
-
if (currentFilter.matchingOperator === '
|
|
46
|
+
if (currentFilter.matchingOperator === 'not_equal') {
|
|
45
47
|
return currentFilter.values.indexOf(categoryValue.toString()) === -1;
|
|
46
48
|
}
|
|
47
49
|
return currentFilter.values.indexOf(categoryValue.toString()) > -1;
|
|
@@ -115,7 +117,7 @@ export const applyAdvancedFiltersOnList = (entity, allItems, filters, filteredIt
|
|
|
115
117
|
? getCategoryValueForTaskList(key, item)
|
|
116
118
|
: getCategoryValueForPaymentHistory(key, item);
|
|
117
119
|
if (categoryValue == null) {
|
|
118
|
-
if (currentFilter.matchingOperator === '
|
|
120
|
+
if (currentFilter.matchingOperator === 'not_equal') {
|
|
119
121
|
return true;
|
|
120
122
|
}
|
|
121
123
|
return false;
|
|
@@ -208,7 +208,7 @@ const applyAdvancedFiltersOnCompaniesList = (allCompanies, filters, filteredComp
|
|
|
208
208
|
const key = currentFilter.field;
|
|
209
209
|
const categoryValue = getCategoryValueForCompany(key, company);
|
|
210
210
|
if (categoryValue == null) {
|
|
211
|
-
if (currentFilter.matchingOperator === '
|
|
211
|
+
if (currentFilter.matchingOperator === 'not_equal') {
|
|
212
212
|
return true;
|
|
213
213
|
}
|
|
214
214
|
return false;
|
package/lib/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ import { AgingDateSelectionType, AgingDetailReportInvoice, AgingDetailReportUISt
|
|
|
39
39
|
import { isAgingReport, isCashFlowOrBalanceSheetReport, isDashboardClassesViewReport, isDashboardReport, isFluxAnalysisOpExReport, isOpExByVendorReport, isPAndLClassesViewReport, isPAndLProjectViewReport, isPAndLReport } from './commonStateTypes/viewAndReport/reportIDHelper';
|
|
40
40
|
import { PageToken, Report, ReportFormat, ReportID, ReportIDPlusForecastID, SelectorReport, SelectorView, View, toReportFormatStrict, toReportID } from './commonStateTypes/viewAndReport/viewAndReport';
|
|
41
41
|
import { PAYMENT_BUSINESS_DAYS, filterDays, getNextNthWorkingDay, getPreviousNthWorkingDay, getYearsList, holidaysFormatted, isHoliday, isHolidayToday } from './commonStateTypes/workingDayHelper';
|
|
42
|
-
import { AccountReport, AccountWithBalanceReport } from './entity/account/accountSelector';
|
|
42
|
+
import { AccountFilterOption, AccountReport, AccountWithBalanceReport, getAllAccounts, getTransactionFilterAccountOptions } from './entity/account/accountSelector';
|
|
43
43
|
import { Account, AccountBase, AccountType, RecommendedAccountBase, ReconciliationAccountSourceType, StatementCloseDay, toAccountType, toReconciliationAccountSource } from './entity/account/accountState';
|
|
44
44
|
import { NestedAccountReport } from './entity/account/subAccountSelector';
|
|
45
45
|
import { AccountGroupReport } from './entity/accountGroup/accountGroupSelector';
|
|
@@ -274,7 +274,7 @@ import { clearExpenseAutomationFluxAnalysisView, fetchFluxAnalysisView, reviewFl
|
|
|
274
274
|
import { clearJeScheduleLocalData as clearExpenseAutomationJEScheduleLocalData, clearExpenseAutomationJESchedulesView, fetchJeSchedulesPage as fetchExpenseAutomationJESchedulesPage, ignoreRecommendedJeSchedule as ignoreExpenseAutomationJESchedule, initializeAccountSettingsView as initializeJeAccountSettingsView, initializeJeScheduleLocalData, removeJeScheduleTransactionKey, retryJeSchedule as retryExpenseAutomationJESchedule, saveAccountSettings as saveJeAccountSettings, saveAccountSettingsLocalData as saveJeAccountSettingsLocalData, updateJESchedulesUIState as updateExpenseAutomationJESchedulesUIState, updateJeScheduleLocalDataById, updateJeScheduleTransactionKeys } from './view/expenseAutomationView/reducers/jeSchedulesViewReducer';
|
|
275
275
|
import { acknowledgeBulkUploadConfirmMatchComplete, bulkUploadAutomatchingTimedOut, bulkUploadReceipts, bulkUploadReceiptsFailure, bulkUploadReceiptsSuccess, clearBulkUpload, clearManualSearchResults, clearMissingReceiptsTabNavigation, confirmBulkUploadMatch, confirmBulkUploadMatchFailure, confirmBulkUploadMatchSuccess, fetchBulkUploadBatchDetails, fetchBulkUploadBatchDetailsFailure, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatches, fetchBulkUploadBatchesFailure, fetchBulkUploadBatchesSuccess, fetchCompletedTransactions, fetchCompletedTransactionsFailure, fetchCompletedTransactionsSuccess, fetchMissingReceipts as fetchExpenseAutomationMissingReceipts, fetchMoreBatchDetails, fetchMoreBatchDetailsComplete, fetchMoreBatchDetailsFailure, markMissingReceiptAsDone as markExpenseAutomationMissingReceiptAsDone, pusherBatchStatusUpdate, requestMissingReceiptsTabNavigation, restoreBulkUploadAutomatchingOnMount, restoreBulkUploadMatchingState, searchTransactionsForManualMatch, searchTransactionsForManualMatchFailure, searchTransactionsForManualMatchSuccess, setBulkUploadCompletedSubTab, setBulkUploadResultsTab, setBulkUploadSortConfig, setBulkUploadUploadedFileCount, storeBatchDetails, updateBulkUploadProgress, updateMissingReceiptUploadState as updateExpenseAutomationMissingReceiptUploadState, updateMissingReceiptsUIState as updateExpenseAutomationMissingReceiptsUIState, uploadMissingReceiptSuccess as uploadExpenseAutomationMissingReceiptSuccess } from './view/expenseAutomationView/reducers/missingReceiptsViewReducer';
|
|
276
276
|
import { deleteAccountStatement, excludeAccountFromReconciliation, fetchReconciliation as fetchReconciliationView, includeAccountInReconciliation, saveReconciliationDetail as saveExpenseAutomationReconciliationDetail, saveReconciliationReview as saveExpenseAutomationReconciliationReview, setConnectionInProgressForAccount as setConnectionInProgressForAccountReconciliation, setStatementParseInProgress, updateAccountReconciliationLocalData as updateExpenseAutomationAccountReconciliationLocalData, updateSelectedAccountId as updateExpenseAutomationAccountReconciliationSelectedAccountId, updateSelectedTab as updateExpenseAutomationAccountReconciliationSelectedTab, updateReconListScrollPosition as updateExpenseAutomationReconListScrollPosition, updateReviewTabSortState as updateExpenseAutomationReconReviewTabListSortState, updateReviewTabLocalData as updateExpenseAutomationReconReviewTabLocalData, updateReconcileTabListScrollState as updateExpenseAutomationReconcileTabListScrollState, updateReconcileTabListSortState as updateExpenseAutomationReconcileTabListSortState, updateReconcileTabLocalData as updateExpenseAutomationReconcileTabLocalData, updateSelectedDrawerAccountId as updateExpenseAutomationSelectedDrawerAccountId, updateNodeCollapseState, updateStatementUploadChosen, uploadAccountStatement } from './view/expenseAutomationView/reducers/reconciliationViewReducer';
|
|
277
|
-
import { backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, fetchTransactionCategorization, fetchTransactionCategorizationFailure, fetchTransactionCategorizationView, initializeTransactionCategorizationViewLocalData, markTransactionAsNotMiscategorized, saveTransactionCategorization, saveTransactionCategorizationLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, setEntityRecommendationForLineIdsForCategorization, syncTransactionCategorizationFromDetailSave, updateCurrentSelectedTransactionCategorizationTab, updateSelectedCheckboxTransactionIds, updateSelectedCustomerForTransaction, updateSelectedTransactionId, updateSelectedVendorForTransaction, updateTransactionCategorization, updateTransactionCategorizationCompletedSubTab, updateTransactionCategorizationSaveStatus, updateTransactionCategorizationUIState, updateTransactionCategorizationUploadReceiptState, uploadTransactionCategorizationReceiptSuccess } from './view/expenseAutomationView/reducers/transactionsViewReducer';
|
|
277
|
+
import { backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, fetchTransactionCategorization, fetchTransactionCategorizationFailure, fetchTransactionCategorizationView, initializeTransactionCategorizationViewLocalData, markTransactionAsNotMiscategorized, saveTransactionCategorization, saveTransactionCategorizationLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, setEntityRecommendationForLineIdsForCategorization, syncTransactionCategorizationFromDetailSave, updateCurrentSelectedTransactionCategorizationTab, updateSelectedCheckboxTransactionIds, updateSelectedCustomerForTransaction, updateSelectedTransactionId, updateSelectedVendorForTransaction, updateTransactionCategorization, updateTransactionCategorizationCompletedSubTab, updateTransactionCategorizationSaveStatus, updateTransactionCategorizationUIState, updateTransactionCategorizationUploadReceiptState, updateTransactionFilters, uploadTransactionCategorizationReceiptSuccess } from './view/expenseAutomationView/reducers/transactionsViewReducer';
|
|
278
278
|
import { ExpenseAutomationStepDetails, ExpenseAutomationViewSelector } from './view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes';
|
|
279
279
|
import { ExpenseAutomationFluxAnalysisViewSelector, FluxAnalysisOperatingExpenseView, FluxAnalysisSectionType, FluxAnalysisVendorView, FluxAnalysisViewSectionReport, FluxVendorAccountsAndClassesView } from './view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes';
|
|
280
280
|
import { JEAccountSettingsView } from './view/expenseAutomationView/selectorTypes/jeAccountSettingsViewSelectorTypes';
|
|
@@ -508,6 +508,7 @@ import { MileageDenomination, MileageDetailsLocalData, RemiSetupViewLocalData, R
|
|
|
508
508
|
import { approveOrRejectRemisBulkAction, autoReviewPendingApprovalRemis, cancelOrDeleteRemisBulkAction, clearAllRemisFromBulkActionList, clearRemiBulkActionView, incrementRemiBulkActionProcessedCount, removeRemiFromBulkActionList, reviewDraftRemisBulkAction, submitDraftRemisBulkAction, updateRemisBulkActionList } from './view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer';
|
|
509
509
|
import { RemisBulkReviewView, getRemisBulkOperationProgress, getRemisBulkReviewView } from './view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewSelector';
|
|
510
510
|
import { BillPayFilterCategoryDropdownOption, CategoryCombinationOperator, FilterCategoryType, MatchingOperatorDropdownOption, ReimbursementFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, SpendManagementFilterEntityType, SpendManagementFiltersType, TaskFilterCategoryDropdownOption, hideCreatedByFilter } from './view/spendManagement/spendManagementFilterHelpers';
|
|
511
|
+
import { TRANSACTION_FILTER_CATEGORIES, TransactionFilterCategory, TransactionFilterCategoryDropdownOption, TransactionFilterCategoryField, TransactionFilterEntityType, TransactionFilters, applyTransactionFilters } from './view/expenseAutomationView/transactionFilterHelpers';
|
|
511
512
|
import { acceptTreasuryTerms, clearTreasurySetupView, fetchPortfolioAllocation, fetchTreasuryFunds, fetchTreasurySetupView, updateFundAllocationLocalData, updatePortfolioAllocation, updateTreasuryVideoViewed } from './view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer';
|
|
512
513
|
import { TreasuryBusinessVerificationDetails, TreasurySetupView, getTreasuryBusinessVerificationDetails, getTreasurySetupViewDetails } from './view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector';
|
|
513
514
|
import { FundAllocationOption, FundComposition, FundData, getTreasuryFundsMaximumYield } from './view/spendManagement/treasury/treasurySetUp/treasurySetupViewState';
|
|
@@ -663,16 +664,16 @@ export { fetchMonthEndCloseChecks, fetchMonthClosePerformanceTrend, MonthClosePe
|
|
|
663
664
|
export { ExpenseAutomationViewSelector, ExpenseAutomationStepDetails, ExpenseAutomationViewType, ExpenseAutomationMissingReceiptsViewSelector, BulkUploadSelectorData, ExpenseAutomationFluxAnalysisViewSelector, FluxAnalysisVendorView, FluxAnalysisViewSectionReport, FluxVendorAccountsAndClassesView, ExpenseAutomationMissingReceiptsViewUIState, ExpenseAutomationMissingReceiptsViewState, ExpenseAutomationViewState, ExpenseAutomationTransactionsTab, ExpenseAutomationMissingReceiptsSortKey, BATCH_FILE_STATUSES, BatchDetails, BatchFile, BatchFileStatus, BatchListItem, isUnmatchedTabFileStatus, BatchStatus, BatchStatusValue, BatchSummary, BulkUploadPhase, BulkUploadResultsTab, BulkUploadSortKey, BulkUploadState, CandidateRef, CompletedSubTab, CompletedTransactionsSelectorData, DEFAULT_COMPLETED_SUB_TAB, MatchCandidate, MatchSource, MissingReceiptsTab, toBatchFileStatus, toBatchStatusValue, toBulkUploadPhase, toBulkUploadResultsTab, toBulkUploadSortKey, toCompletedSubTab, toMatchSource, toMissingReceiptsTab, ResolvedBatchFile, ResolvedBatchDetails, ResolvedCandidate, ExpenseAutomationJEScheduleMainTab, ExpenseAutomationJEScheduleSortKey, ExpenseAutomationJESchedulesViewUIState, toExpenseAutomationJEScheduleMainTab, toExpenseAutomationJEScheduleSortKey, getExpenseAutomationView, toExpenseAutomationMissingReceiptsSortKey, toExpenseAutomationTransactionsTabKey, toExpenseAutomationViewType, uploadExpenseAutomationMissingReceiptSuccess, markExpenseAutomationMissingReceiptAsDone, fetchAllExpenseAutomationTabs, refreshExpenseAutomationCurrentTab, updateCurrentSelectedTransactionCategorizationTab, updateTransactionCategorizationCompletedSubTab, fetchExpenseAutomationMissingReceipts, bulkUploadReceipts, bulkUploadAutomatchingTimedOut, bulkUploadReceiptsSuccess, bulkUploadReceiptsFailure, restoreBulkUploadAutomatchingOnMount, restoreBulkUploadMatchingState, updateBulkUploadProgress, pusherBatchStatusUpdate, requestMissingReceiptsTabNavigation, clearMissingReceiptsTabNavigation, fetchBulkUploadBatchDetails, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatchDetailsFailure, storeBatchDetails, fetchMoreBatchDetails, fetchMoreBatchDetailsComplete, fetchMoreBatchDetailsFailure, fetchBulkUploadBatches, fetchBulkUploadBatchesSuccess, fetchBulkUploadBatchesFailure, confirmBulkUploadMatch, confirmBulkUploadMatchSuccess, confirmBulkUploadMatchFailure, setBulkUploadResultsTab, setBulkUploadCompletedSubTab, setBulkUploadSortConfig, setBulkUploadUploadedFileCount, clearBulkUpload, searchTransactionsForManualMatch, searchTransactionsForManualMatchSuccess, searchTransactionsForManualMatchFailure, clearManualSearchResults, acknowledgeBulkUploadConfirmMatchComplete, fetchCompletedTransactions, fetchCompletedTransactionsSuccess, fetchCompletedTransactionsFailure, fetchFluxAnalysisView, clearExpenseAutomationFluxAnalysisView, updateOperatingExpensesIdsForReview as updateFluxOperatingExpensesIdsForReview, updateSelectedSectionIdsForReview as updateFluxAnalysisSelectedSectionIdsForReview, reviewFluxAnalysisView, updateExpenseAutomationMissingReceiptUploadState, updateExpenseAutomationMissingReceiptsUIState, updateTransactionCategorizationUploadReceiptState, uploadTransactionCategorizationReceiptSuccess, FluxAnalysisOperatingExpenseView, FluxAnalysisSectionType, getExpenseAutomationFluxAnalysisView, FluxAnalysisSortKey, FluxAnalysisActionType, FluxBalancesByMonth, updateCurrentSelectedView, updateCurrentSelectedPeriod, getExpenseAutomationTransactionView, ReconReconcileSortKey, ReconciliationReconcileTabLocalData, FluxAnalysisReviewStatus, updateFluxAnalysisViewUIState, FluxAnalysisViewUIState, updateFluxAnalysisViewPageMetaData, MAX_SELECTION_LIMIT, checkIfAllLineItemsAreCategoryClassFilled, getLineItemsByTransactionIdsFromLocalData, isAnyItemWithUncategorizedExpenseAccount, SaveExpenseAutomationReconciliationActionType, ExcludeAccountFromReconciliationPayload, excludeAccountFromReconciliation, includeAccountInReconciliation, saveExpenseAutomationReconciliationDetail, updateExpenseAutomationReconcileTabListScrollState, updateExpenseAutomationReconReviewTabListSortState, updateExpenseAutomationReconcileTabListSortState, updateExpenseAutomationReconcileTabLocalData, updateExpenseAutomationAccountReconciliationSelectedTab, updateExpenseAutomationAccountReconciliationSelectedAccountId, ExpenseAutomationReconciliationViewSelector, getExpenseAutomationReconciliationView, AccountReconciliationBySection, fetchReconciliationView, uploadAccountStatementIntoDocumentAI, UploadStatementDocumentAIResponse, updateExpenseAutomationReconListScrollPosition, setConnectionInProgressForAccountReconciliation, AccountReconciliationByAccount, AccountReconciliationEntity, getAccountReconByAccountIdAndSelectedPeriod, ExpenseAutomationReconciliationViewTab, toReconciliationTabsType, isAccountReconReport, ReconReviewSortKey, AccountReconSectionID, ReconciliationReviewTabLocalData, TransactionsToReview, RecommendedActionCodeType, ReconciliationStatusCodeType, BalanceDataStatusCodeType, updateExpenseAutomationReconReviewTabLocalData, updateExpenseAutomationSelectedDrawerAccountId, saveExpenseAutomationReconciliationReview, updateExpenseAutomationAccountReconciliationLocalData, BankStatusCodeType, ReconciliationAccountSourceType, toReconciliationAccountSource, StatementStatusCodeType, AccountReconciliationLocalData, StatementDataStatusCodeType, deleteAccountStatement, uploadAccountStatement, updateNodeCollapseState, UploadStatementDocumentAIPayload, updateStatementUploadChosen, isReviewTransactionBankTransferType, isReviewTransactionBillPaymentType, isReviewTransactionCreditCardPaymentType, isReviewTransactionDepositType, isReviewTransactionExpenseType, isReviewTransactionCreditCardCreditType, setStatementParseInProgress, };
|
|
664
665
|
export { JEScheduleLocalData };
|
|
665
666
|
export { ExpenseAutomationJESchedulesViewSelector, JEAccountSettingsView, JEScheduledTransactionWithFailedEntries, };
|
|
666
|
-
export { fetchTransactionCategorization, fetchTransactionCategorizationView, updateTransactionCategorizationUIState, updateSelectedCheckboxTransactionIds, setEntityRecommendationForLineIdsForCategorization, initializeTransactionCategorizationViewLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, saveTransactionCategorizationLocalData, fetchTransactionCategorizationFailure, saveTransactionCategorization, updateTransactionCategorization, updateTransactionCategorizationSaveStatus, markTransactionAsNotMiscategorized, updateSelectedVendorForTransaction, updateSelectedCustomerForTransaction, updateSelectedTransactionId, syncTransactionCategorizationFromDetailSave, backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, TransactionsSortKey, toTransactionsSortKey, TransactionsTab, TransactionCategorizationLineItemData, TransactionReviewLocalData, SupportedTransactionCategorization, ExpenseAutomationTransactionsViewState, ExpenseAutomationTransactionsViewUIState, ExpenseAutomationTransactionViewSelector, TransactionReviewLocalDataSelectorView, };
|
|
667
|
+
export { fetchTransactionCategorization, fetchTransactionCategorizationView, updateTransactionCategorizationUIState, updateTransactionFilters, updateSelectedCheckboxTransactionIds, setEntityRecommendationForLineIdsForCategorization, initializeTransactionCategorizationViewLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, saveTransactionCategorizationLocalData, fetchTransactionCategorizationFailure, saveTransactionCategorization, updateTransactionCategorization, updateTransactionCategorizationSaveStatus, markTransactionAsNotMiscategorized, updateSelectedVendorForTransaction, updateSelectedCustomerForTransaction, updateSelectedTransactionId, syncTransactionCategorizationFromDetailSave, backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, TransactionsSortKey, toTransactionsSortKey, TransactionsTab, TransactionCategorizationLineItemData, TransactionReviewLocalData, SupportedTransactionCategorization, ExpenseAutomationTransactionsViewState, ExpenseAutomationTransactionsViewUIState, ExpenseAutomationTransactionViewSelector, TransactionReviewLocalDataSelectorView, };
|
|
667
668
|
export { TopExpense, TopExTimePeriod, TOP_EX_TIME_PERIODS };
|
|
668
669
|
export { TimeframeTick, TimeframeTickWithMetaData, toTimeframeTick, mapTimePeriodtoTimeframeTick, toTimePeriod, toAbsoluteDay, toMonthYearPeriodId, convertToPeriod, MonthYearPeriod, };
|
|
669
670
|
export { VendorSpendTrendFilterTabType, toVendorSpendTrendFilterTabsTypeStrict, } from './entity/vendorExpense/vendorExpenseSelector';
|
|
670
671
|
export { getNumberOfPeriods };
|
|
671
672
|
export { SCHEDULE_DAYS_OF_MONTH, ScheduleDaysOfMonth, toScheduleDaysOfMonth, Day, Month, toMonth, toMonthStrict, Quarter, toQuarter, toQuarterStrict, AbsoluteDay, TimePeriod, };
|
|
672
673
|
export { Tenant, TenantView, LoggedInUser, TenantBaseView, CurrentTenant, TenantProductSettings, getTenantBaseById, getCurrentTenant, getIsAccountingClassesEnabled, getIsAccountingProjectsEnabled, getTenantsByCheckInDateSelector, getTenantsBaseByCheckInDateSelector, getTenantsCoreDetailsByCheckInDateSelector, toTenantCoreDetailsView, getTenantBaseViewForTenantView, getTenantBaseViewForTenantId, isZeniDomainTenant, isTenantUsingZeniCOA, TenantsBaseOrdered, TenantsOrdered, TenantCoreDetailsView, fetchActiveTenant, fetchAllTenants, updateCurrentTenant, clearAll, doMagicLinkSignIn, verifyDeviceWithTwoFA, resendVerifyDeviceOTP, sendEmailMagicLinkToUser, doSignIn, updateSignInState, DoSignInPayload, doSignOut, sendSessionHeartbeat, resetSignInState, RoleResource, Connection, fetchExcludedResourcesForTenant, fetchExternalConnectionsForTenant, saveExternalConnectionForTenant, deleteConnection, saveAPIKeyConnection, saveConnectorCredentials, saveOAuthConnection, toExternalIntegrationType, toExternalSupportedTool, fetchSubscriptionSummaryForTenant, isTenantBankingOnly, isTenantCardsOnly, isTenantBookkeepingEnabled, isOtherProductsEnabledForTenant, };
|
|
673
|
-
export { Account, AccountType, AccountBase, StatementCloseDay, toAccountType, AccountReport, NestedAccountReport, AccountWithBalanceReport, AccountGroup, AccountGroupReportV2, AccountGroupType, toAccountGroupType, AccountGroupReport, getAccountGroupKey, AccountGroupKey, RecommendedAccountBase, };
|
|
674
|
+
export { Account, AccountType, AccountBase, StatementCloseDay, toAccountType, AccountReport, NestedAccountReport, AccountWithBalanceReport, AccountGroup, AccountGroupReportV2, AccountGroupType, toAccountGroupType, AccountGroupReport, getAccountGroupKey, AccountGroupKey, RecommendedAccountBase, AccountFilterOption, getAllAccounts, getTransactionFilterAccountOptions, };
|
|
674
675
|
export { Class, ClassBase, RecommendedClassBase, } from './entity/class/classState';
|
|
675
|
-
export { getClassById } from './entity/class/classSelector';
|
|
676
|
+
export { ClassFilterOption, getAllClasses, getClassById, getClassFilterOptions, } from './entity/class/classSelector';
|
|
676
677
|
export { ClassReport } from './entity/class/classSelectorTypes';
|
|
677
678
|
export type { Forecast, ForecastType, toForecastType, } from './entity/forecast/forecastState';
|
|
678
679
|
export { getForecast };
|
|
@@ -798,6 +799,7 @@ export { MilageReimbursementLine, OutofPocketReimbursementLine, ReimbursementLin
|
|
|
798
799
|
export { AccountListSelectorView, ClassListSelectorView, getClassList, fetchClassList, ProjectListSelectorView, getProjectList, fetchProjectList, };
|
|
799
800
|
export { BillTab, BillsSubTabType, SaveBillStageCode, BillPayReviewSelectorView, DuplicateBillsSelectorView, EditBillDetailSelectorView, LineItemRecommendationsLocalData, EditBillInitialDetails, BillableStatus, PaymentDetailsSection, BillListReport, BillListDownloadReport, WhatForSection, fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, retryOrRefundBill, getBillList, getBillDownloadList, BillDetailViewSelector, ActorActivityWithUser, BillActivity, StepWithStatus, getBillDetailView, checkApproveRejectBtnShowForBill, BillDetailView, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, EditBillDetail, EditBillDetailViewState, getEditBillDetail, getReviewPageBillDetail, BillDetailLocalData, PaymentDetailsSectionView, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, BillPaymentStatus, BillPaymentStatusCodeType, BillPaymentRefundStatus, BillPaymentRefundStatusCodeType, BillStatus, BillStatusCodeType, BillApprovalType, updateBillListUIState, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, resetVendorSaveStatus, updateContactsInVendorDetailLocalData, updateVendorTabDetailUIState, updateContactsInVendorTabDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, fetchUserDetails, verifyUser, updateVendorContact, PaymentToOption, toPaymentToOption, convertAmountToHomeCurrency, RecurringBillInstance, RecurringBillConfigLocalData, EditRecurringBillType, fetchVendorAndUpdateBillLocalData, markBillForRetry, updateWithdrawFromAccountId, removeBillFileFromLocalStore, replaceBillFileInLocalStore, updateShouldReplaceBillData, };
|
|
800
801
|
export { SpendManagementFiltersType, SpendManagementFilterEntityType, FilterCategoryType, BillPayFilterCategoryDropdownOption, ReimbursementFilterCategoryDropdownOption, TaskFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, MatchingOperatorDropdownOption, CategoryCombinationOperator, hideCreatedByFilter, };
|
|
802
|
+
export { TRANSACTION_FILTER_CATEGORIES, TransactionFilterCategory, TransactionFilterCategoryDropdownOption, TransactionFilterCategoryField, TransactionFilterEntityType, TransactionFilters, applyTransactionFilters, };
|
|
801
803
|
export { BillPaySetupViewState, ZeniAccountSetupViewState, BillPaySetupViewLocalData, ZeniAccountSetupViewLocalData, PlaidAccountState, fetchBillPaySetupView, fetchZeniAccountSetupView, enableSetup, getPaymentAccounts, getPlaidLinkToken, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, establishPlaidConnection, updateMappedCashAccount, updatePrimaryFundingAccount, acceptBillPayTerms, acceptZeniAccountTerms, acceptBillPayUpdatedTerms, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearBillPaySetupView, clearZeniAccountSetupView, sendOtp, resendOtp, verifyOtp, CompanyDetails, CompanyOfficersDetails, BillPaySetupView, ZeniAccountSetupView, BillPayBusinessVerificationDetails, ZeniAccountBusinessVerificationDetails, TreasuryBusinessVerificationDetails, SetupViewState, SetupViewLocalData, SetupView, BusinessVerificationDetails, getBillPaySetupViewDetails, getPlaidAccountDetails, getZeniAccountSetupViewDetails, getBusinessVerificationDetails, getBillPayBusinessVerificationDetails, getZeniAccountBusinessVerificationDetails, getTreasuryBusinessVerificationDetails, getCommonSetupViewDetails, PlaidConnectionDetails, PlaidLinkTokenType, PlaidAccountKeyType, Token, FundingAccount, getTwoFactorAuthenticationView, getTwoFactorAuthenticationViewForCardUserOnboarding, getTwoFactorAuthenticationViewForChargeCardHolder, TwoFactorAuthenticationView, };
|
|
802
804
|
export { BankConnectionsSetupView, IntegrationsView, getApprovalRuleViewDetails, getBankConnectionsSetupViewDetails, getIntegrationsView, };
|
|
803
805
|
export { fetchUserFinancialAccount };
|
|
@@ -929,10 +931,6 @@ export type { TransactionActivityLog } from './entity/transactionActivityLog/tra
|
|
|
929
931
|
export { BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS, BULK_UPLOAD_BAR_COMPLETE_HOLD_MS, } from './view/expenseAutomationView/helpers/bulkUploadTiming';
|
|
930
932
|
export { fetchTransactionActivityLog } from './view/transactionActivityLogView/transactionActivityLogViewReducer';
|
|
931
933
|
export { TransactionActivityLogViewSelectorView, getTransactionActivityLogView, } from './view/transactionActivityLogView/transactionActivityLogViewSelector';
|
|
932
|
-
export type { ScheduleActivityLog } from './entity/scheduleActivityLog/scheduleActivityLogState';
|
|
933
|
-
export type { ScheduleActivityAISummary, ScheduleActivityInferenceParam, ScheduleActivityLineNode, ScheduleActivityLogData, ScheduleActivityScheduleNode, ScheduleActivityTransactionNode, } from './entity/scheduleActivityLog/scheduleActivityLogState';
|
|
934
|
-
export { fetchScheduleActivityLog, clearScheduleActivityLogView, } from './view/scheduleActivityLogView/scheduleActivityLogViewReducer';
|
|
935
|
-
export { ScheduleActivityLogViewSelectorView, getScheduleActivityLogView, } from './view/scheduleActivityLogView/scheduleActivityLogViewSelector';
|
|
936
934
|
export { UserGroup } from './entity/userGroups/userGroupsState';
|
|
937
935
|
export { SessionManager } from './entity/tenant/SessionManager';
|
|
938
936
|
export type { SessionCallbacks, SessionConfig, } from './entity/tenant/sessionTypes';
|