@skedulo/mex-types 1.3.9 → 1.3.11
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.
package/dist/common/MexDefs.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare enum DefStatus {
|
|
|
9
9
|
/**
|
|
10
10
|
* Just uploaded, not in use
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
Draft = "Draft",
|
|
13
13
|
/**
|
|
14
14
|
* Build succed
|
|
15
15
|
*/
|
|
@@ -36,58 +36,136 @@ export declare enum DefStatus {
|
|
|
36
36
|
Failed = "Failed"
|
|
37
37
|
}
|
|
38
38
|
type MexBaseMetadata = {
|
|
39
|
+
/**
|
|
40
|
+
* @label Summary
|
|
41
|
+
*/
|
|
39
42
|
summary?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @label Email
|
|
45
|
+
* @hidden true
|
|
46
|
+
*/
|
|
40
47
|
email?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @label Mobile display order
|
|
50
|
+
* @tooltip Please choose a number to determine the display priority of the form within the mobile app. A higher number will result in a lower display position for the form in the mobile app
|
|
51
|
+
* @hidden true
|
|
52
|
+
*/
|
|
41
53
|
displayOrder: number;
|
|
54
|
+
/**
|
|
55
|
+
* @label Attachment destination
|
|
56
|
+
* @placeholder Enter object name
|
|
57
|
+
* @tooltip Provide the name of the object where you intend to store attachments when using the Attachments component in this form
|
|
58
|
+
*/
|
|
42
59
|
hasAttachments?: string[];
|
|
60
|
+
/**
|
|
61
|
+
* @label Static resources
|
|
62
|
+
*/
|
|
43
63
|
staticResourcesId?: string;
|
|
44
64
|
[key: string]: any;
|
|
45
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* @area Metadata
|
|
68
|
+
*/
|
|
46
69
|
interface MexMetadataForJob extends MexBaseMetadata {
|
|
70
|
+
/**
|
|
71
|
+
* @label Form type
|
|
72
|
+
* @options [{label: 'Jobs', value: 'Jobs'}, {label: 'Global', value: 'Resources'}]
|
|
73
|
+
* @tooltip A global form will display in the user profile page
|
|
74
|
+
* @dataType singleselect
|
|
75
|
+
* @readonly true
|
|
76
|
+
*/
|
|
47
77
|
contextObject: 'Jobs';
|
|
78
|
+
/**
|
|
79
|
+
* @label ShowIf expression
|
|
80
|
+
*/
|
|
48
81
|
showIf?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @label MandatoryIf
|
|
84
|
+
*/
|
|
49
85
|
mandatoryIf?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @label Mandatory expression
|
|
88
|
+
*/
|
|
50
89
|
mandatoryExpression?: string;
|
|
51
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* @area Metadata
|
|
93
|
+
*/
|
|
52
94
|
interface MexMetadataForResource extends MexBaseMetadata {
|
|
95
|
+
/**
|
|
96
|
+
* @label Form type
|
|
97
|
+
* @options [{label: 'Jobs', value: 'Jobs'}, {label: 'Global', value: 'Resources'}]
|
|
98
|
+
* @tooltip A global form will display in the user profile page
|
|
99
|
+
* @dataType singleselect
|
|
100
|
+
* @readonly true
|
|
101
|
+
*/
|
|
53
102
|
contextObject: 'Resources';
|
|
54
103
|
}
|
|
55
104
|
export interface MexMetadataFormBuilder extends MexBaseMetadata {
|
|
56
105
|
/**
|
|
57
|
-
* @
|
|
106
|
+
* @label Form type
|
|
107
|
+
* @options [{label: 'Jobs', value: 'Jobs'}, {label: 'Global', value: 'Resources'}]
|
|
108
|
+
* @tooltip A global form will display in the user profile page
|
|
58
109
|
* @dataType singleselect
|
|
110
|
+
* @readonly true
|
|
59
111
|
*/
|
|
60
112
|
contextObject: 'Jobs' | 'Resources';
|
|
61
113
|
}
|
|
62
114
|
export type MexMetadataPayload = MexMetadataForJob | MexMetadataForResource;
|
|
63
115
|
/**
|
|
116
|
+
* @area area
|
|
117
|
+
* @label UID
|
|
118
|
+
* @readonly true
|
|
119
|
+
* @requried true
|
|
120
|
+
* @options [{label: 'UID', value: 'uid'}]
|
|
121
|
+
* @placeholder Please input the value
|
|
122
|
+
* @tooltip Explain more details for this field
|
|
123
|
+
* @hidden true
|
|
124
|
+
* @readonly true
|
|
125
|
+
* @min 0
|
|
126
|
+
* @max 999
|
|
127
|
+
* @minLength 0
|
|
128
|
+
* @maxLength 20
|
|
129
|
+
* @limitItems 10
|
|
130
|
+
* @typeAdhoc singleselect
|
|
131
|
+
*/
|
|
132
|
+
/**
|
|
133
|
+
* MexDef
|
|
64
134
|
* @area MexDef
|
|
65
135
|
* @outputType object
|
|
66
136
|
*/
|
|
67
137
|
export interface MexDef {
|
|
68
138
|
/**
|
|
69
139
|
* Auto generated UID
|
|
140
|
+
* @hidden true
|
|
70
141
|
*/
|
|
71
142
|
uid: string;
|
|
72
143
|
/**
|
|
73
|
-
*
|
|
144
|
+
* @hidden true
|
|
74
145
|
*/
|
|
75
146
|
tenantId: string;
|
|
76
147
|
/**
|
|
77
148
|
* Form definition name
|
|
149
|
+
* @label Form name
|
|
150
|
+
* @minLength 0
|
|
151
|
+
* @maxLength 999
|
|
78
152
|
*/
|
|
79
153
|
name: string;
|
|
80
154
|
/**
|
|
81
155
|
* The definition id, will be generated for the first time.
|
|
82
156
|
* It is used for definition update action
|
|
157
|
+
* @label Form ID
|
|
158
|
+
* @readonly true
|
|
83
159
|
*/
|
|
84
160
|
defId: string;
|
|
85
161
|
/**
|
|
86
162
|
* A long number version value, [defId - version] is unique pair
|
|
163
|
+
* @hidden true
|
|
87
164
|
*/
|
|
88
165
|
version: number;
|
|
89
166
|
/**
|
|
90
167
|
* Semver version of compatible engine version
|
|
168
|
+
* @hidden true
|
|
91
169
|
*/
|
|
92
170
|
engineVersion: string;
|
|
93
171
|
/**
|
|
@@ -101,12 +179,14 @@ export interface MexDef {
|
|
|
101
179
|
/**
|
|
102
180
|
* Similar to formdef, but it stores the formdef value after validating, for example:
|
|
103
181
|
* a customFunctionMetadata should be an aws lambda arn instead of a pure js function
|
|
182
|
+
* @hidden true
|
|
104
183
|
*/
|
|
105
184
|
internalMetadata?: InternalFormDef;
|
|
106
185
|
/**
|
|
107
186
|
* Form definition status
|
|
187
|
+
* @readonly true
|
|
108
188
|
* @options [
|
|
109
|
-
* {label: '
|
|
189
|
+
* {label: 'Draft', value: 'Draft'},
|
|
110
190
|
* {label: 'Validated', value: 'Validated'},
|
|
111
191
|
* {label: 'Installed', value: 'Installed'},
|
|
112
192
|
* {label: 'Deactivated', value: 'Deactivated'},
|
|
@@ -114,31 +194,36 @@ export interface MexDef {
|
|
|
114
194
|
* {label: 'InstallInProgress', value: 'InstallInProgress'},
|
|
115
195
|
* {label: 'Failed', value: 'Failed'}
|
|
116
196
|
* ]
|
|
117
|
-
*
|
|
197
|
+
* @label Status
|
|
118
198
|
* @dataType singleselect
|
|
119
199
|
*/
|
|
120
200
|
status: DefStatus;
|
|
121
201
|
/**
|
|
122
202
|
* Form uploaded timestamp
|
|
123
203
|
* @dataType datetime
|
|
204
|
+
* @hidden true
|
|
124
205
|
*/
|
|
125
206
|
uploadedAt: Date;
|
|
126
207
|
/**
|
|
127
208
|
* Form installed timestamp
|
|
128
209
|
* @dataType datetime
|
|
210
|
+
* @hidden true
|
|
129
211
|
*/
|
|
130
212
|
installedAt?: Date;
|
|
131
213
|
/**
|
|
132
214
|
* Form built timestamp
|
|
133
215
|
* @dataType datetime
|
|
216
|
+
* @hidden true
|
|
134
217
|
*/
|
|
135
218
|
builtAt?: Date;
|
|
136
219
|
/**
|
|
137
220
|
* This form definition has been uploaded by
|
|
221
|
+
* @hidden true
|
|
138
222
|
*/
|
|
139
223
|
uploadedBy: string;
|
|
140
224
|
/**
|
|
141
225
|
* This form definition has been installed by
|
|
226
|
+
* @hidden true
|
|
142
227
|
*/
|
|
143
228
|
installedBy?: string;
|
|
144
229
|
}
|
package/dist/common/MexDefs.js
CHANGED
|
@@ -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,
|
|
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;AAgOD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACnB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
|
|
@@ -7,7 +7,16 @@ import { ValidatorDefinitionModel } from '../validator/ValidatorModel';
|
|
|
7
7
|
* @area formProperties
|
|
8
8
|
*/
|
|
9
9
|
export type UIDefinition = {
|
|
10
|
+
/**
|
|
11
|
+
* @label First page
|
|
12
|
+
* @placeholder Enter a page name
|
|
13
|
+
* @tooltip Enter the name of the page you want to set as the initial page for the form
|
|
14
|
+
*/
|
|
10
15
|
firstPage: string;
|
|
16
|
+
/**
|
|
17
|
+
* @label Readonly
|
|
18
|
+
* @tooltip If true, the entire form will be shown in read-only mode within the mobile app
|
|
19
|
+
*/
|
|
11
20
|
readonly?: boolean;
|
|
12
21
|
pages: AllPageComponentModel[];
|
|
13
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skedulo/mex-types",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": "18"
|
|
6
6
|
},
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"run-parser": "ts-node-dev --transpile-only scripts/type-defs-parser.ts",
|
|
19
19
|
"run-references-resolver": "ts-node-dev scripts/references-resolver.ts",
|
|
20
20
|
"run-transform": "ts-node-dev scripts/transform.ts",
|
|
21
|
+
"build-json": "yarn run-parser && yarn run-references-resolver && yarn run-transform",
|
|
21
22
|
"get-semver": "ts-node-dev scripts/get-semver.ts",
|
|
22
23
|
"save-parser": "ts-node-dev scripts/save-parser-to-backend.ts"
|
|
23
24
|
},
|