@skedulo/mex-types 1.61.0 → 1.62.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.
@@ -80,8 +80,31 @@ type MexBaseMetadata = {
80
80
  * @dataType radio-input
81
81
  */
82
82
  submissionOption?: string;
83
+ /**
84
+ * @label Data flow version
85
+ * @form-builder-hidden true
86
+ * @tooltip "2" opts the form into the V2 data structure (shared resources + changesets). Absent or "1" keeps the legacy instance/static data flow.
87
+ */
88
+ useDataFlowVersion?: string;
89
+ /**
90
+ * @label Shared resources
91
+ * @form-builder-hidden true
92
+ * @tooltip The shared resources this form reads (V2 data structure only). Each entry names a resource served by a shared function and its scope.
93
+ */
94
+ sharedResources?: MexSharedResourceRef[];
83
95
  [key: string]: any;
84
96
  };
97
+ /**
98
+ * One shared resource a V2-data-structure form reads. `name` is the
99
+ * tenant-unique resource name registered by a shared function provider;
100
+ * `scope` is how it is keyed on the device:
101
+ * - "Instance" — per context record (the resource doc carries the form's contextObjectId)
102
+ * - "Static" — tenant-wide, no context record
103
+ */
104
+ export type MexSharedResourceRef = {
105
+ name: string;
106
+ scope: 'Instance' | 'Static';
107
+ };
85
108
  /**
86
109
  * @area Metadata
87
110
  * @fieldOrders ['contextObject', 'submissionOption', 'showIf', 'mandatoryIf', 'summary', 'displayOrder']
@@ -1 +1 @@
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"}
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;AAwRD,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.61.0",
3
+ "version": "1.62.0",
4
4
  "description": "A central repository store for all the interfaces, type definitions of MEX engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",