@skedulo/mex-types 1.24.0 → 1.24.1
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,13 +1,20 @@
|
|
|
1
1
|
import { DataExpressionType, LocalizedKey, OnlineFetchDataQuery } from '../common';
|
|
2
2
|
export interface BaseValidatorModel {
|
|
3
|
-
type: 'expression' | 'customFunction';
|
|
3
|
+
type: 'expression' | 'customFunction' | 'asyncExpression';
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface AsyncExpressionValidatorModel extends BaseValidatorModel {
|
|
6
|
+
type: 'asyncExpression';
|
|
6
7
|
errorMessage: LocalizedKey;
|
|
7
8
|
expression: DataExpressionType;
|
|
8
9
|
query: OnlineFetchDataQuery;
|
|
9
10
|
}
|
|
11
|
+
export interface ExpressionValidatorModel extends BaseValidatorModel {
|
|
12
|
+
type: 'expression';
|
|
13
|
+
errorMessage: LocalizedKey;
|
|
14
|
+
expression: DataExpressionType;
|
|
15
|
+
}
|
|
10
16
|
export interface CustomFunctionValidatorModel extends BaseValidatorModel {
|
|
17
|
+
type: 'customFunction';
|
|
11
18
|
functionName: string;
|
|
12
19
|
}
|
|
13
20
|
export type ValidatorDefinitionModel = BaseValidatorModel[] | BaseValidatorModel;
|