@fibery/expression-utils 10.0.2 → 10.0.3
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/context-variables.js +2 -1
- package/lib/index.d.ts +5 -10
- package/package.json +3 -3
package/lib/context-variables.js
CHANGED
|
@@ -98,7 +98,8 @@ const getAutomationTriggersContextVariables = (triggers, typeId, fiberySchema) =
|
|
|
98
98
|
const triggerContextVars = triggers.flatMap((trigger) => {
|
|
99
99
|
return getTriggerContextVariables(trigger, typeId, fiberySchema);
|
|
100
100
|
});
|
|
101
|
-
|
|
101
|
+
const filteredContextVars = triggers.length > 1 ? triggerContextVars.filter((variable) => variable.id !== previousTriggeredEntityContextVariableId) : triggerContextVars;
|
|
102
|
+
return uniqBy(filteredContextVars, (variable) => `${variable.id}_${variable.typeObject.id}`);
|
|
102
103
|
};
|
|
103
104
|
const getEntityQueryVariables = (schema) => {
|
|
104
105
|
const grouped = groupBy(schema.typeObjects.filter((x) => x.isDomain), (typeObject) => typeObject.pluralTitle);
|
package/lib/index.d.ts
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { ContextVariable, context_variables_d_exports } from "./context-variables.js";
|
|
2
2
|
import { Expression, ExpressionVisitor, ExpressionVisitorWithDefault, FieldExpression, FromRootExpression, FunctionCallExpression, MultiFieldAccess, OrderBy, Query, Select, SubQuery } from "./types.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ExpressionToFilterBy, Operator } from "./filter-expression/types.js";
|
|
4
|
+
import { findMatchedFilter } from "./filter-expression/index.js";
|
|
4
5
|
import { operators_d_exports } from "./filter-expression/operators.js";
|
|
6
|
+
import { convertToExpression } from "./filter-expression/pattern-to-expression.js";
|
|
5
7
|
import { params_placeholders_d_exports } from "./params-placeholders.js";
|
|
6
8
|
import { utils_d_exports } from "./utils.js";
|
|
7
9
|
import { visitors_d_exports } from "./visitors.js";
|
|
8
|
-
import "./index.js";
|
|
9
10
|
//#region src/index.d.ts
|
|
10
11
|
declare const filterExpression: {
|
|
11
|
-
findMatchedFilter:
|
|
12
|
-
operator: Operator;
|
|
13
|
-
value: unknown;
|
|
14
|
-
expression: Expression;
|
|
15
|
-
type: string;
|
|
16
|
-
id: string;
|
|
17
|
-
} | null;
|
|
12
|
+
findMatchedFilter: typeof findMatchedFilter;
|
|
18
13
|
operators: typeof operators_d_exports;
|
|
19
|
-
convertToExpression:
|
|
14
|
+
convertToExpression: typeof convertToExpression;
|
|
20
15
|
};
|
|
21
16
|
//#endregion
|
|
22
17
|
export { type ContextVariable, type Expression, type ExpressionToFilterBy, type ExpressionVisitor, type ExpressionVisitorWithDefault, type FieldExpression, type FromRootExpression, type FunctionCallExpression, type MultiFieldAccess, type Operator, type OrderBy, type Query, type Select, type SubQuery, context_variables_d_exports as contextVariables, filterExpression, params_placeholders_d_exports as paramsPlaceholders, utils_d_exports as utils, visitors_d_exports as visitors };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/expression-utils",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.3",
|
|
4
4
|
"description": "utils for working with fibery api expressions",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"files": [
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"lodash": "4.17.21",
|
|
29
29
|
"moment": "2.29.4",
|
|
30
30
|
"uuid": "11.1.0",
|
|
31
|
-
"@fibery/helpers": "3.
|
|
31
|
+
"@fibery/helpers": "3.3.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@fibery/schema": "10.3.
|
|
34
|
+
"@fibery/schema": "10.3.2"
|
|
35
35
|
}
|
|
36
36
|
}
|