@skedulo/mex-types 1.46.0 → 1.47.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.
|
@@ -244,9 +244,37 @@ export interface ImageAnnotationEditorViewComponentModel extends CommonEditorVie
|
|
|
244
244
|
type: 'imageAnnotationEditor';
|
|
245
245
|
templateImages: StaticResourceImage[];
|
|
246
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* Only one of the following approaches should be defined to indicate the parent context:
|
|
249
|
+
* - `sourceExpression`
|
|
250
|
+
* - `source.parentObjectExpression`
|
|
251
|
+
* - `source.parentIdExpression`
|
|
252
|
+
*/
|
|
247
253
|
export interface WithHasAttachments {
|
|
248
|
-
sourceExpression
|
|
254
|
+
sourceExpression?: DataExpressionType;
|
|
249
255
|
attachmentCategoryName?: string;
|
|
256
|
+
/**
|
|
257
|
+
* @version 1.23.x
|
|
258
|
+
*/
|
|
259
|
+
source?: {
|
|
260
|
+
/**
|
|
261
|
+
* If `sourceExpression` or `source.parentObjectExpression` is defined, it is treated as a full parent object.
|
|
262
|
+
* If `source.parentIdExpression` is defined, it is treated as a UID reference to an existing parent object.
|
|
263
|
+
*/
|
|
264
|
+
parentIdExpression?: DataExpressionType;
|
|
265
|
+
parentObjectExpression?: DataExpressionType;
|
|
266
|
+
/**
|
|
267
|
+
* A handler function used to apply custom filtering logic to the list of attachments.
|
|
268
|
+
* Must be defined together with `onNewAttachmentsHandler`.
|
|
269
|
+
*/
|
|
270
|
+
filterHandler?: FunctionExpressionType;
|
|
271
|
+
/**
|
|
272
|
+
* A handler function triggered when new attachments are added
|
|
273
|
+
* form builder can mutate the attachment metadata (ex: fileName) before uploading to server
|
|
274
|
+
* Must be defined together with `filterHandler`.
|
|
275
|
+
*/
|
|
276
|
+
onNewAttachmentsHandler?: FunctionExpressionType;
|
|
277
|
+
};
|
|
250
278
|
}
|
|
251
279
|
/**
|
|
252
280
|
* @version 1.10.0
|