@skedulo/mex-types 1.28.4 → 1.29.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 { BaseFlatPageViewComponentModel, SkedButtonTheme } from '../view/FlatPageViewComponentModel';
1
+ import { BaseFlatPageViewComponentModel, SkedButtonTheme } from '../view';
2
2
  import { SelectPageOnlineSource } from '../view';
3
3
  export type DollarExpressionType = string;
4
4
  export type DataExpressionType = string;
@@ -6,6 +6,16 @@ export type ValueExpressionType = string | ValueExpressionLogic[];
6
6
  export type LocalizedKey = string;
7
7
  export type OneLevelBindingObject = any;
8
8
  export type FunctionExpressionType = string;
9
+ /**
10
+ * @version 1.24.0
11
+ * @description online mode only
12
+ * Call the API using the query prop, then execute the expression with the data context and response from that API
13
+ * Used in mandatoryExpression
14
+ */
15
+ export type AsyncExpressionType = {
16
+ expression: DataExpressionType;
17
+ query: OnlineFetchDataQuery;
18
+ };
9
19
  export type TimezoneType = 'none' | 'job' | 'local';
10
20
  export type ValueExpressionLogic = {
11
21
  condition?: DataExpressionType;
@@ -1,4 +1,5 @@
1
1
  import { UIDefinition } from 'src/page';
2
+ import { AsyncExpressionType } from './CommonTypes';
2
3
  /**
3
4
  * Form definition status.
4
5
  * State flow:
@@ -109,7 +110,7 @@ interface MexMetadataForJob extends MexBaseMetadata {
109
110
  * @tooltip Job types where this form will be mandatory
110
111
  * @hidden true
111
112
  */
112
- mandatoryExpression?: string;
113
+ mandatoryExpression?: string | AsyncExpressionType;
113
114
  }
114
115
  /**
115
116
  * @area Metadata
@@ -1 +1 @@
1
- {"version":3,"file":"MexDefs.js","sourceRoot":"","sources":["../../src/common/MexDefs.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAIjD;;;;;GAKG;AACH,IAAY,SA6BX;AA7BD,WAAY,SAAS;IACnB;;OAEG;IACH,4BAAe,CAAA;IACf;;OAEG;IACH,oCAAuB,CAAA;IACvB;;OAEG;IACH,oCAAuB,CAAA;IACvB;;OAEG;IACH,wCAA2B,CAAA;IAC3B;;OAEG;IACH,gDAAmC,CAAA;IACnC;;OAEG;IACH,oDAAuC,CAAA;IACvC;;OAEG;IACH,8BAAiB,CAAA;AACnB,CAAC,EA7BW,SAAS,yBAAT,SAAS,QA6BpB;AAgQD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACnB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
1
+ {"version":3,"file":"MexDefs.js","sourceRoot":"","sources":["../../src/common/MexDefs.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAKjD;;;;;GAKG;AACH,IAAY,SA6BX;AA7BD,WAAY,SAAS;IACnB;;OAEG;IACH,4BAAe,CAAA;IACf;;OAEG;IACH,oCAAuB,CAAA;IACvB;;OAEG;IACH,oCAAuB,CAAA;IACvB;;OAEG;IACH,wCAA2B,CAAA;IAC3B;;OAEG;IACH,gDAAmC,CAAA;IACnC;;OAEG;IACH,oDAAuC,CAAA;IACvC;;OAEG;IACH,8BAAiB,CAAA;AACnB,CAAC,EA7BW,SAAS,yBAAT,SAAS,QA6BpB;AAgQD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACnB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/mex-types",
3
- "version": "1.28.4",
3
+ "version": "1.29.0",
4
4
  "engines": {
5
5
  "node": "18"
6
6
  },