@skedulo/mex-types 1.21.0 → 1.23.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.
|
@@ -174,11 +174,41 @@ export interface BaseOnlineDataQuery {
|
|
|
174
174
|
type: 'default' | 'custom';
|
|
175
175
|
requestKey: string;
|
|
176
176
|
}
|
|
177
|
-
export interface
|
|
177
|
+
export interface BaseDefaultOnlineDataQuery extends BaseOnlineDataQuery {
|
|
178
178
|
type: 'default';
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @version 1.23.0
|
|
182
|
+
*/
|
|
183
|
+
export interface DefaultFetchListOnlineDataQuery extends BaseDefaultOnlineDataQuery {
|
|
184
|
+
fields: OnlineModeFields;
|
|
185
|
+
objectName: string;
|
|
186
|
+
filter?: OnlineModeFilter;
|
|
187
|
+
orderBy?: string;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @version 1.23.0
|
|
191
|
+
*/
|
|
192
|
+
export interface DefaultFetchOnlineDataQuery extends BaseDefaultOnlineDataQuery {
|
|
179
193
|
fields: OnlineModeFields;
|
|
180
194
|
objectName: string;
|
|
181
|
-
filter
|
|
195
|
+
filter?: OnlineModeFilter;
|
|
196
|
+
orderBy?: string;
|
|
197
|
+
isSingle: boolean;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @version 1.23.0
|
|
201
|
+
*/
|
|
202
|
+
export interface DefaultUpsertOnlineDataQuery extends BaseDefaultOnlineDataQuery {
|
|
203
|
+
fields: OnlineModeFields;
|
|
204
|
+
objectExpression: string;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @version 1.23.0
|
|
208
|
+
*/
|
|
209
|
+
export interface DefaultDeleteOnlineDataQuery extends BaseDefaultOnlineDataQuery {
|
|
210
|
+
objectExpression: string;
|
|
211
|
+
relatedObjects: string[];
|
|
182
212
|
}
|
|
183
213
|
/**
|
|
184
214
|
* @version 1.10.0
|
|
@@ -188,6 +218,22 @@ export interface CustomOnlineDataQuery extends BaseOnlineDataQuery {
|
|
|
188
218
|
function: DataExpressionType;
|
|
189
219
|
}
|
|
190
220
|
/**
|
|
191
|
-
* @version 1.
|
|
221
|
+
* @version 1.23.0
|
|
222
|
+
*/
|
|
223
|
+
export type OnlineDataQuery = BaseDefaultOnlineDataQuery | CustomOnlineDataQuery;
|
|
224
|
+
/**
|
|
225
|
+
* @version 1.23.0
|
|
226
|
+
*/
|
|
227
|
+
export type OnlineFetchListDataQuery = DefaultFetchListOnlineDataQuery | CustomOnlineDataQuery;
|
|
228
|
+
/**
|
|
229
|
+
* @version 1.23.0
|
|
230
|
+
*/
|
|
231
|
+
export type OnlineFetchDataQuery = DefaultFetchOnlineDataQuery | CustomOnlineDataQuery;
|
|
232
|
+
/**
|
|
233
|
+
* @version 1.23.0
|
|
234
|
+
*/
|
|
235
|
+
export type OnlineUpsertDataQuery = DefaultUpsertOnlineDataQuery | CustomOnlineDataQuery;
|
|
236
|
+
/**
|
|
237
|
+
* @version 1.23.0
|
|
192
238
|
*/
|
|
193
|
-
export type
|
|
239
|
+
export type OnlineDeleteDataQuery = DefaultDeleteOnlineDataQuery | CustomOnlineDataQuery;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonGroupItemComponentModel, DataExpressionType, FunctionExpressionType, GroupByFeatureModel, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject,
|
|
1
|
+
import { ButtonGroupItemComponentModel, DataExpressionType, FunctionExpressionType, GroupByFeatureModel, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, OnlineDeleteDataQuery, OnlineFetchDataQuery, OnlineFetchListDataQuery, OnlineUpsertDataQuery, OrderByModel, RoutingType, ValueExpressionType } from '../common/CommonTypes';
|
|
2
2
|
import { BaseListPageViewComponentModel } from '../view/ListPageViewComponentModel';
|
|
3
3
|
import { BaseComponentModel } from '../common/BaseComponentModel';
|
|
4
4
|
import { BaseFlatPageViewComponentModel } from '../view/FlatPageViewComponentModel';
|
|
@@ -84,7 +84,7 @@ export interface BaseDataObserverObjectRequest {
|
|
|
84
84
|
* @version: 1.10.0
|
|
85
85
|
*/
|
|
86
86
|
export interface OnlineDataObserverObjectHandler extends BaseDataObserverObjectRequest {
|
|
87
|
-
query:
|
|
87
|
+
query: OnlineFetchDataQuery;
|
|
88
88
|
type: 'online';
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
@@ -117,7 +117,7 @@ export interface LocalAdvancedPageDataExpressionRequest extends BaseAdvancedPage
|
|
|
117
117
|
*/
|
|
118
118
|
export interface OnlineAdvancedPageDataExpressionRequest extends BaseAdvancedPageDataExpressionRequest {
|
|
119
119
|
type: 'online';
|
|
120
|
-
query:
|
|
120
|
+
query: OnlineFetchDataQuery;
|
|
121
121
|
}
|
|
122
122
|
export type DefaultPageData = {
|
|
123
123
|
/**
|
|
@@ -236,11 +236,11 @@ export interface ListPageOnlineModeModel {
|
|
|
236
236
|
/**
|
|
237
237
|
* @label List query to get list
|
|
238
238
|
*/
|
|
239
|
-
list:
|
|
239
|
+
list: OnlineFetchListDataQuery;
|
|
240
240
|
/**
|
|
241
241
|
* @label Item query to get an item
|
|
242
242
|
*/
|
|
243
|
-
item:
|
|
243
|
+
item: OnlineFetchListDataQuery;
|
|
244
244
|
/**
|
|
245
245
|
* @label Reload requests when user pull to refresh
|
|
246
246
|
*/
|
|
@@ -360,7 +360,7 @@ export interface FlatPageComponentModel extends BasePageComponentModel {
|
|
|
360
360
|
* @version 1.10.0
|
|
361
361
|
*/
|
|
362
362
|
export type CrudRequestOnlineMode = {
|
|
363
|
-
query:
|
|
363
|
+
query: OnlineUpsertDataQuery | OnlineDeleteDataQuery;
|
|
364
364
|
reloadRequests: ReloadRequest[];
|
|
365
365
|
};
|
|
366
366
|
/**
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { DataExpressionType, LocalizedKey } from '../common
|
|
1
|
+
import { DataExpressionType, LocalizedKey, OnlineFetchDataQuery } from '../common';
|
|
2
2
|
export interface BaseValidatorModel {
|
|
3
3
|
type: 'expression' | 'customFunction';
|
|
4
4
|
}
|
|
5
5
|
export interface ExpressionValidatorModel extends BaseValidatorModel {
|
|
6
6
|
errorMessage: LocalizedKey;
|
|
7
7
|
expression: DataExpressionType;
|
|
8
|
+
query: OnlineFetchDataQuery;
|
|
8
9
|
}
|
|
9
10
|
export interface CustomFunctionValidatorModel extends BaseValidatorModel {
|
|
10
11
|
functionName: string;
|
|
@@ -14,7 +14,7 @@ export interface BaseFlatPageViewComponentModel extends BaseComponentModel {
|
|
|
14
14
|
* @value textView
|
|
15
15
|
* @description Content for users to read
|
|
16
16
|
* @label Read-only
|
|
17
|
-
* @fieldOrders ['title', 'text', 'showIfExpression']
|
|
17
|
+
* @fieldOrders ['title', 'caption', 'text', 'showIfExpression']
|
|
18
18
|
*/
|
|
19
19
|
export interface TextViewComponentModel extends BaseFlatPageViewComponentModel {
|
|
20
20
|
/**
|
|
@@ -55,6 +55,12 @@ export interface CommonEditorViewComponentModel extends BaseFlatPageViewComponen
|
|
|
55
55
|
* @label Editor events
|
|
56
56
|
*/
|
|
57
57
|
editorEvents?: CommonEditorEvents;
|
|
58
|
+
/**
|
|
59
|
+
* @label Caption
|
|
60
|
+
* @typeAdhoc textarea
|
|
61
|
+
* @maxLength 1000
|
|
62
|
+
* @tooltip Enter a description or guideline to provide more context. This text will display under the component label
|
|
63
|
+
*/
|
|
58
64
|
caption?: LocalizedKey;
|
|
59
65
|
}
|
|
60
66
|
export interface CommonEditorEvents {
|
|
@@ -76,7 +82,7 @@ export interface CommonEditorWithPlaceholder {
|
|
|
76
82
|
* @value textEditor
|
|
77
83
|
* @description Enable users to input data from mobile app
|
|
78
84
|
* @label Text input
|
|
79
|
-
* @fieldOrders ['title', 'keyboardType', 'placeholder', 'mandatory', 'multiline', 'showIfExpression']
|
|
85
|
+
* @fieldOrders ['title', 'caption', 'keyboardType', 'placeholder', 'mandatory', 'multiline', 'showIfExpression']
|
|
80
86
|
*/
|
|
81
87
|
export interface TextEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
82
88
|
/**
|
|
@@ -122,7 +128,7 @@ export interface TextEditorFeaturesModel {
|
|
|
122
128
|
* @value readonlyTextView
|
|
123
129
|
* @description Content for users to read
|
|
124
130
|
* @label Read-only label
|
|
125
|
-
* @fieldOrders ['title', 'text', 'showIfExpression']
|
|
131
|
+
* @fieldOrders ['title', 'text', 'caption', 'showIfExpression']
|
|
126
132
|
*/
|
|
127
133
|
export interface ReadonlyTextViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
128
134
|
/**
|
|
@@ -185,7 +191,7 @@ export interface SubListEditorViewComponentModel extends CommonEditorViewCompone
|
|
|
185
191
|
* @value attachmentsEditor
|
|
186
192
|
* @description Add a file or photo from a mobile device
|
|
187
193
|
* @label Attachment
|
|
188
|
-
* @fieldOrders ['title', 'mandatory', 'showIfExpression']
|
|
194
|
+
* @fieldOrders ['title', 'caption', 'mandatory', 'showIfExpression']
|
|
189
195
|
*/
|
|
190
196
|
export interface AttachmentsEditorViewComponentModel extends CommonEditorViewComponentModel {
|
|
191
197
|
/**
|
|
@@ -231,7 +237,7 @@ export interface BodyMapViewComponentModel extends CommonEditorViewComponentMode
|
|
|
231
237
|
* @value signatureEditor
|
|
232
238
|
* @description Capture a signature on a mobile device
|
|
233
239
|
* @label Signature
|
|
234
|
-
* @fieldOrders ['title', 'mandatory', 'enableFullName', 'showIfExpression']
|
|
240
|
+
* @fieldOrders ['title', 'caption', 'mandatory', 'enableFullName', 'showIfExpression']
|
|
235
241
|
*/
|
|
236
242
|
export interface SignatureEditorViewComponentModel extends CommonEditorViewComponentModel {
|
|
237
243
|
/**
|
|
@@ -259,7 +265,7 @@ export interface SignatureEditorViewComponentModel extends CommonEditorViewCompo
|
|
|
259
265
|
* @value toggleEditor
|
|
260
266
|
* @description Switch between two opposing states
|
|
261
267
|
* @label Toggle
|
|
262
|
-
* @fieldOrders ['showIfExpression']
|
|
268
|
+
* @fieldOrders ['caption', 'showIfExpression']
|
|
263
269
|
*/
|
|
264
270
|
export interface ToggleEditorViewComponentModel extends CommonEditorViewComponentModel {
|
|
265
271
|
/**
|
|
@@ -304,7 +310,7 @@ export interface ToggleEditorItemModel {
|
|
|
304
310
|
* @value dateTimeEditor
|
|
305
311
|
* @description Allow selecting date and time
|
|
306
312
|
* @label Date & time
|
|
307
|
-
* @fieldOrders ['title' ,'mandatory', 'showIfExpression']
|
|
313
|
+
* @fieldOrders ['title', 'caption', 'mandatory', 'showIfExpression']
|
|
308
314
|
*/
|
|
309
315
|
export interface DateTimePickerViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
310
316
|
/**
|
|
@@ -357,6 +363,9 @@ export interface SectionViewComponentModel extends BaseFlatPageViewComponentMode
|
|
|
357
363
|
body: LocalizedKey;
|
|
358
364
|
/**
|
|
359
365
|
* @label Caption
|
|
366
|
+
* @typeAdhoc textarea
|
|
367
|
+
* @maxLength 1000
|
|
368
|
+
* @tooltip Enter a description or guideline to provide more context. This text will display under the component label
|
|
360
369
|
*/
|
|
361
370
|
caption: LocalizedKey;
|
|
362
371
|
/**
|
|
@@ -380,6 +389,9 @@ export interface MenuListItem extends BaseFlatPageViewComponentModel {
|
|
|
380
389
|
text: LocalizedKey;
|
|
381
390
|
/**
|
|
382
391
|
* @label Caption
|
|
392
|
+
* @typeAdhoc textarea
|
|
393
|
+
* @maxLength 1000
|
|
394
|
+
* @tooltip Enter a description or guideline to provide more context. This text will display under the component label
|
|
383
395
|
*/
|
|
384
396
|
caption: LocalizedKey;
|
|
385
397
|
/**
|
|
@@ -472,7 +484,7 @@ export interface BaseSelectEditor {
|
|
|
472
484
|
* @value selectEditor
|
|
473
485
|
* @description Select a single item from a list
|
|
474
486
|
* @label Drop-down
|
|
475
|
-
* @fieldOrders ['title', 'placeholder', 'mandatory', 'options', 'showIfExpression']
|
|
487
|
+
* @fieldOrders ['title', 'caption', 'placeholder', 'mandatory', 'options', 'showIfExpression']
|
|
476
488
|
*/
|
|
477
489
|
export interface SelectEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder, BaseSelectEditor {
|
|
478
490
|
/**
|
|
@@ -496,7 +508,7 @@ export interface SelectEditorViewComponentModel extends CommonEditorViewComponen
|
|
|
496
508
|
* @value multiSelectEditor
|
|
497
509
|
* @description Select one or more items from a list
|
|
498
510
|
* @label Multi-select drop-down
|
|
499
|
-
* @fieldOrders ['title', 'placeholder', 'mandatory', 'options', 'showIfExpression']
|
|
511
|
+
* @fieldOrders ['title', 'caption', 'placeholder', 'mandatory', 'options', 'showIfExpression']
|
|
500
512
|
*/
|
|
501
513
|
export interface MultiSelectEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder, BaseSelectEditor {
|
|
502
514
|
/**
|
|
@@ -521,7 +533,7 @@ export interface MultiSelectEditorViewComponentModel extends CommonEditorViewCom
|
|
|
521
533
|
* @value numberEditor
|
|
522
534
|
* @description Standard number input field
|
|
523
535
|
* @label Number input
|
|
524
|
-
* @fieldOrders ['title', 'placeholder', 'mandatory', 'showIfExpression']
|
|
536
|
+
* @fieldOrders ['title', 'caption', 'placeholder', 'mandatory', 'showIfExpression']
|
|
525
537
|
*/
|
|
526
538
|
export interface NumberEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
527
539
|
/**
|
|
@@ -554,6 +566,9 @@ export interface ContactDetailsLayoutComponentModel extends BaseFlatPageViewComp
|
|
|
554
566
|
title: LocalizedKey;
|
|
555
567
|
/**
|
|
556
568
|
* @label Caption
|
|
569
|
+
* @typeAdhoc textarea
|
|
570
|
+
* @maxLength 1000
|
|
571
|
+
* @tooltip Enter a description or guideline to provide more context. This text will display under the component label
|
|
557
572
|
*/
|
|
558
573
|
caption: LocalizedKey;
|
|
559
574
|
/**
|