@zeniai/client-epic-state 5.0.64-betaAR1 → 5.0.64-betaAR2
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/esm/view/expenseAutomationView/transactionFilterHelpers.js +3 -3
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/lib/view/expenseAutomationView/transactionFilterHelpers.d.ts +1 -1
- package/lib/view/expenseAutomationView/transactionFilterHelpers.js +3 -3
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ export interface TransactionFilterCategoryDropdownOption {
|
|
|
27
27
|
}
|
|
28
28
|
export declare const TRANSACTION_FILTER_CATEGORIES: TransactionFilterCategoryDropdownOption[];
|
|
29
29
|
/** Amount filter operators for transaction_categorization. */
|
|
30
|
-
export type TransactionFilterAmountMatchingOperator = 'equal' | 'not-equal' | '
|
|
30
|
+
export type TransactionFilterAmountMatchingOperator = 'equal' | 'not-equal' | 'less_than' | 'greater_than' | 'in_between';
|
|
31
31
|
export interface TransactionFilterCategory {
|
|
32
32
|
field: TransactionFilterCategoryField;
|
|
33
33
|
matchingOperator: TransactionFilterAmountMatchingOperator;
|
|
@@ -120,19 +120,19 @@ const matchAmount = (amount, category) => {
|
|
|
120
120
|
const op = category.matchingOperator;
|
|
121
121
|
const values = category.values;
|
|
122
122
|
let matched = false;
|
|
123
|
-
if (op === '
|
|
123
|
+
if (op === 'in_between') {
|
|
124
124
|
if (values.length >= 2) {
|
|
125
125
|
const min = Number(values[0]);
|
|
126
126
|
const max = Number(values[1]);
|
|
127
127
|
matched = amount >= min && amount <= max;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
else if (op === '
|
|
130
|
+
else if (op === 'less_than') {
|
|
131
131
|
if (values.length >= 1) {
|
|
132
132
|
matched = amount < Number(values[0]);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
else if (op === '
|
|
135
|
+
else if (op === 'greater_than') {
|
|
136
136
|
if (values.length >= 1) {
|
|
137
137
|
matched = amount > Number(values[0]);
|
|
138
138
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.0.64-
|
|
3
|
+
"version": "5.0.64-betaAR2",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|