@abyss-project/console 1.0.31 → 1.0.33

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,5 +1,5 @@
1
1
  export { DataSourceType, OPERATOR_PRECEDENCE } from './types';
2
- export type { ParsedExpression, PathExpression, FunctionExpression, BinaryExpression, UnaryExpression, TernaryExpression, LiteralExpression, GroupExpression, BuiltInFunction, FunctionCategory, FunctionArg, PipeOperation, OperationCategory, WorkflowContext, StepExecution, WorkflowStep, ValidationResult, ValidationError, ValidationWarning, ExpressionToken, WorkflowResourceMapping, } from './types';
2
+ export type { ParsedExpression, PathExpression, FunctionExpression, BinaryExpression, UnaryExpression, TernaryExpression, LiteralExpression, GroupExpression, BuiltInFunction, FunctionCategory, FunctionArg, PipeOperation, OperationCategory, WorkflowContext, StepExecution, WorkflowStep, TriggerInfo, ValidationResult, ValidationError, ValidationWarning, ExpressionToken, WorkflowResourceMapping, } from './types';
3
3
  export { parseExpression, detectDataSource, parsePathSegments, tokenizeTemplate } from './parser';
4
4
  export { buildResolverContext, resolvePathValue, evaluateExpression, interpolateString, resolveExpression, } from './resolver';
5
5
  export { BUILT_IN_FUNCTIONS, executeFunction, getFunctionsByCategory, getFunctionNames, hasFunction, getFunction, } from './functions';
@@ -1,4 +1,5 @@
1
1
  import type { ResourceMapping as GenericResourceMapping } from '../expressions/types';
2
+ import type { WorkflowTriggerType } from '../types/enum/workflow.enum';
2
3
  export declare enum DataSourceType {
3
4
  WORKFLOW_TRIGGER = "trigger",
4
5
  WORKFLOW_STEPS = "steps",
@@ -10,7 +11,15 @@ export declare enum DataSourceType {
10
11
  PROJECT = "project",
11
12
  ENV = "env",
12
13
  ABYSS_CONFIG = "abyss",
13
- FUNCTIONS = "fn"
14
+ FUNCTIONS = "fn",
15
+ OPERATORS = "op"
16
+ }
17
+ export interface TriggerInfo {
18
+ id: string;
19
+ name: string;
20
+ type: WorkflowTriggerType;
21
+ variableName: string;
22
+ isActive: boolean;
14
23
  }
15
24
  export declare const OPERATOR_PRECEDENCE: Record<string, number>;
16
25
  export type ParsedExpression = PathExpression | FunctionExpression | BinaryExpression | UnaryExpression | TernaryExpression | LiteralExpression | GroupExpression;
@@ -14,6 +14,7 @@ var DataSourceType;
14
14
  DataSourceType["ENV"] = "env";
15
15
  DataSourceType["ABYSS_CONFIG"] = "abyss";
16
16
  DataSourceType["FUNCTIONS"] = "fn";
17
+ DataSourceType["OPERATORS"] = "op";
17
18
  })(DataSourceType || (exports.DataSourceType = DataSourceType = {}));
18
19
  exports.OPERATOR_PRECEDENCE = {
19
20
  '||': 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/console",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "Core package to interact with AbyssConsole",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",