@fibery/expression-utils 13.0.0 → 14.0.0

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.
@@ -1,4 +1,4 @@
1
- import { Schema, TypeObject } from "@fibery/schema";
1
+ import { Schema, TypeId, TypeObject } from "@fibery/schema";
2
2
  declare namespace context_variables_d_exports {
3
3
  export { ContextVariable, currentUserContextVariableId, getAutomationButtonContextVariables, getAutomationTriggersContextVariables, getEntityQueryVariables, getTriggerCollectionFieldObject, previousTriggeredEntityContextVariableId, triggeredCollectionItemContextVariableId, triggeredEntityContextVariableId };
4
4
  }
@@ -13,12 +13,12 @@ declare const triggeredEntityContextVariableId = "triggeredEntity";
13
13
  declare const previousTriggeredEntityContextVariableId = "previousTriggeredEntity";
14
14
  declare const currentUserContextVariableId = "currentUser";
15
15
  declare const triggeredCollectionItemContextVariableId = "triggered-collection-item";
16
- declare const getAutomationButtonContextVariables: (typeId: string, fiberySchema: Schema) => Array<ContextVariable>;
17
- declare const getTriggerCollectionFieldObject: (typeId: string, collectionFieldId: string, fiberySchema: Schema) => import("@fibery/schema").FieldObject | null;
16
+ declare const getAutomationButtonContextVariables: (typeId: TypeId, fiberySchema: Schema) => Array<ContextVariable>;
17
+ declare const getTriggerCollectionFieldObject: (typeId: TypeId, collectionFieldId: string, fiberySchema: Schema) => import("@fibery/schema").FieldObject | null;
18
18
  declare const getAutomationTriggersContextVariables: (triggers: Array<{
19
19
  trigger: string;
20
20
  args: Record<string, unknown>;
21
- }>, typeId: string, fiberySchema: Schema) => Array<ContextVariable>;
21
+ }>, typeId: TypeId, fiberySchema: Schema) => Array<ContextVariable>;
22
22
  declare const getEntityQueryVariables: (schema: Schema) => {
23
23
  typeObject: TypeObject;
24
24
  id: string;
package/lib/visitors.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { Expression, ExpressionVisitor, FieldExpression } from "./types.js";
2
2
  import { fieldAccessVisitorTypeAware } from "./field-expression-visitor-type-aware.js";
3
- import { TypeObject } from "@fibery/schema";
3
+ import { FieldId, TypeObject } from "@fibery/schema";
4
4
  declare namespace visitors_d_exports {
5
5
  export { UNKNOWN_EXPRESSION_TYPE, deleteExpressionsWithNotFoundFieldsVisitor, deleteExpressionsWithParamsVisitor, expressionContainsAggregation, fieldAccessVisitorTypeAware, getExpressionType, getReferencedParamNames, replaceIdsWithNamesVisitor, replaceNamesWithIdsVisitor };
6
6
  }
7
7
  type OnFieldNotFoundInNamesTerms = (params: {
8
8
  fieldExpressionInNamesTerms: FieldExpression;
9
- fieldId: string;
9
+ fieldId: FieldId;
10
10
  currentTypeObject: TypeObject | null;
11
11
  expression: FieldExpression;
12
12
  }) => {
@@ -40,7 +40,7 @@ declare const getExpressionType: ({ expression, typeObject, functionsMeta, onFie
40
40
  }>;
41
41
  onFieldNotFound?: ({ currentTypeObject, fieldId }: {
42
42
  currentTypeObject: TypeObject | null;
43
- fieldId: string;
43
+ fieldId: FieldId;
44
44
  }) => {
45
45
  currentTypeObject: TypeObject | null;
46
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/expression-utils",
3
- "version": "13.0.0",
3
+ "version": "14.0.0",
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.3.1"
31
+ "@fibery/helpers": "3.4.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@fibery/schema": "11.2.0"
34
+ "@fibery/schema": "11.3.0"
35
35
  }
36
36
  }