@skedulo/mex-types 1.3.10 → 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,10 +36,30 @@ 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
|
};
|
|
@@ -47,53 +67,105 @@ type MexBaseMetadata = {
|
|
|
47
67
|
* @area Metadata
|
|
48
68
|
*/
|
|
49
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
|
+
*/
|
|
50
77
|
contextObject: 'Jobs';
|
|
78
|
+
/**
|
|
79
|
+
* @label ShowIf expression
|
|
80
|
+
*/
|
|
51
81
|
showIf?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @label MandatoryIf
|
|
84
|
+
*/
|
|
52
85
|
mandatoryIf?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @label Mandatory expression
|
|
88
|
+
*/
|
|
53
89
|
mandatoryExpression?: string;
|
|
54
90
|
}
|
|
55
91
|
/**
|
|
56
92
|
* @area Metadata
|
|
57
93
|
*/
|
|
58
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
|
+
*/
|
|
59
102
|
contextObject: 'Resources';
|
|
60
103
|
}
|
|
61
104
|
export interface MexMetadataFormBuilder extends MexBaseMetadata {
|
|
62
105
|
/**
|
|
63
|
-
* @
|
|
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
|
|
64
109
|
* @dataType singleselect
|
|
110
|
+
* @readonly true
|
|
65
111
|
*/
|
|
66
112
|
contextObject: 'Jobs' | 'Resources';
|
|
67
113
|
}
|
|
68
114
|
export type MexMetadataPayload = MexMetadataForJob | MexMetadataForResource;
|
|
69
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
|
|
70
134
|
* @area MexDef
|
|
71
135
|
* @outputType object
|
|
72
136
|
*/
|
|
73
137
|
export interface MexDef {
|
|
74
138
|
/**
|
|
75
139
|
* Auto generated UID
|
|
140
|
+
* @hidden true
|
|
76
141
|
*/
|
|
77
142
|
uid: string;
|
|
78
143
|
/**
|
|
79
|
-
*
|
|
144
|
+
* @hidden true
|
|
80
145
|
*/
|
|
81
146
|
tenantId: string;
|
|
82
147
|
/**
|
|
83
148
|
* Form definition name
|
|
149
|
+
* @label Form name
|
|
150
|
+
* @minLength 0
|
|
151
|
+
* @maxLength 999
|
|
84
152
|
*/
|
|
85
153
|
name: string;
|
|
86
154
|
/**
|
|
87
155
|
* The definition id, will be generated for the first time.
|
|
88
156
|
* It is used for definition update action
|
|
157
|
+
* @label Form ID
|
|
158
|
+
* @readonly true
|
|
89
159
|
*/
|
|
90
160
|
defId: string;
|
|
91
161
|
/**
|
|
92
162
|
* A long number version value, [defId - version] is unique pair
|
|
163
|
+
* @hidden true
|
|
93
164
|
*/
|
|
94
165
|
version: number;
|
|
95
166
|
/**
|
|
96
167
|
* Semver version of compatible engine version
|
|
168
|
+
* @hidden true
|
|
97
169
|
*/
|
|
98
170
|
engineVersion: string;
|
|
99
171
|
/**
|
|
@@ -107,12 +179,14 @@ export interface MexDef {
|
|
|
107
179
|
/**
|
|
108
180
|
* Similar to formdef, but it stores the formdef value after validating, for example:
|
|
109
181
|
* a customFunctionMetadata should be an aws lambda arn instead of a pure js function
|
|
182
|
+
* @hidden true
|
|
110
183
|
*/
|
|
111
184
|
internalMetadata?: InternalFormDef;
|
|
112
185
|
/**
|
|
113
186
|
* Form definition status
|
|
187
|
+
* @readonly true
|
|
114
188
|
* @options [
|
|
115
|
-
* {label: '
|
|
189
|
+
* {label: 'Draft', value: 'Draft'},
|
|
116
190
|
* {label: 'Validated', value: 'Validated'},
|
|
117
191
|
* {label: 'Installed', value: 'Installed'},
|
|
118
192
|
* {label: 'Deactivated', value: 'Deactivated'},
|
|
@@ -120,31 +194,36 @@ export interface MexDef {
|
|
|
120
194
|
* {label: 'InstallInProgress', value: 'InstallInProgress'},
|
|
121
195
|
* {label: 'Failed', value: 'Failed'}
|
|
122
196
|
* ]
|
|
123
|
-
*
|
|
197
|
+
* @label Status
|
|
124
198
|
* @dataType singleselect
|
|
125
199
|
*/
|
|
126
200
|
status: DefStatus;
|
|
127
201
|
/**
|
|
128
202
|
* Form uploaded timestamp
|
|
129
203
|
* @dataType datetime
|
|
204
|
+
* @hidden true
|
|
130
205
|
*/
|
|
131
206
|
uploadedAt: Date;
|
|
132
207
|
/**
|
|
133
208
|
* Form installed timestamp
|
|
134
209
|
* @dataType datetime
|
|
210
|
+
* @hidden true
|
|
135
211
|
*/
|
|
136
212
|
installedAt?: Date;
|
|
137
213
|
/**
|
|
138
214
|
* Form built timestamp
|
|
139
215
|
* @dataType datetime
|
|
216
|
+
* @hidden true
|
|
140
217
|
*/
|
|
141
218
|
builtAt?: Date;
|
|
142
219
|
/**
|
|
143
220
|
* This form definition has been uploaded by
|
|
221
|
+
* @hidden true
|
|
144
222
|
*/
|
|
145
223
|
uploadedBy: string;
|
|
146
224
|
/**
|
|
147
225
|
* This form definition has been installed by
|
|
226
|
+
* @hidden true
|
|
148
227
|
*/
|
|
149
228
|
installedBy?: string;
|
|
150
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
|
},
|