@skedulo/mex-types 1.22.0 → 1.23.1
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.
|
@@ -170,15 +170,51 @@ export type OnlineModeFilter = DollarExpressionType;
|
|
|
170
170
|
* @version 1.10.0
|
|
171
171
|
*/
|
|
172
172
|
export type OnlineModeFields = string[];
|
|
173
|
+
/**
|
|
174
|
+
* @version 1.23.1
|
|
175
|
+
*/
|
|
173
176
|
export interface BaseOnlineDataQuery {
|
|
174
|
-
type: '
|
|
177
|
+
type: 'standard' | 'custom';
|
|
175
178
|
requestKey: string;
|
|
176
179
|
}
|
|
177
|
-
|
|
178
|
-
|
|
180
|
+
/**
|
|
181
|
+
* @version 1.23.1
|
|
182
|
+
*/
|
|
183
|
+
export interface BaseStandardOnlineDataQuery extends BaseOnlineDataQuery {
|
|
184
|
+
type: 'standard';
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* @version 1.23.1
|
|
188
|
+
*/
|
|
189
|
+
export interface StandardFetchListOnlineDataQuery extends BaseStandardOnlineDataQuery {
|
|
190
|
+
fields: OnlineModeFields;
|
|
191
|
+
objectName: string;
|
|
192
|
+
filter?: OnlineModeFilter;
|
|
193
|
+
orderBy?: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* @version 1.23.1
|
|
197
|
+
*/
|
|
198
|
+
export interface StandardFetchOnlineDataQuery extends BaseStandardOnlineDataQuery {
|
|
179
199
|
fields: OnlineModeFields;
|
|
180
200
|
objectName: string;
|
|
181
|
-
filter
|
|
201
|
+
filter?: OnlineModeFilter;
|
|
202
|
+
orderBy?: string;
|
|
203
|
+
isSingle: boolean;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @version 1.23.1
|
|
207
|
+
*/
|
|
208
|
+
export interface StandardUpsertOnlineDataQuery extends BaseStandardOnlineDataQuery {
|
|
209
|
+
fields: OnlineModeFields;
|
|
210
|
+
objectExpression: string;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @version 1.23.1
|
|
214
|
+
*/
|
|
215
|
+
export interface StandardDeleteOnlineDataQuery extends BaseStandardOnlineDataQuery {
|
|
216
|
+
objectExpression: string;
|
|
217
|
+
relatedObjects: string[];
|
|
182
218
|
}
|
|
183
219
|
/**
|
|
184
220
|
* @version 1.10.0
|
|
@@ -188,6 +224,22 @@ export interface CustomOnlineDataQuery extends BaseOnlineDataQuery {
|
|
|
188
224
|
function: DataExpressionType;
|
|
189
225
|
}
|
|
190
226
|
/**
|
|
191
|
-
* @version 1.
|
|
227
|
+
* @version 1.23.1
|
|
228
|
+
*/
|
|
229
|
+
export type OnlineFetchListDataQuery = StandardFetchListOnlineDataQuery | CustomOnlineDataQuery;
|
|
230
|
+
/**
|
|
231
|
+
* @version 1.23.1
|
|
232
|
+
*/
|
|
233
|
+
export type OnlineFetchDataQuery = StandardFetchOnlineDataQuery | CustomOnlineDataQuery;
|
|
234
|
+
/**
|
|
235
|
+
* @version 1.23.1
|
|
236
|
+
*/
|
|
237
|
+
export type OnlineUpsertDataQuery = StandardUpsertOnlineDataQuery | CustomOnlineDataQuery;
|
|
238
|
+
/**
|
|
239
|
+
* @version 1.23.1
|
|
240
|
+
*/
|
|
241
|
+
export type OnlineDeleteDataQuery = StandardDeleteOnlineDataQuery | CustomOnlineDataQuery;
|
|
242
|
+
/**
|
|
243
|
+
* @version 1.23.1
|
|
192
244
|
*/
|
|
193
|
-
export type OnlineDataQuery =
|
|
245
|
+
export type OnlineDataQuery = BaseStandardOnlineDataQuery | 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;
|