@skedulo/mex-types 0.0.4 → 0.1.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.
|
@@ -2,6 +2,7 @@ import { BaseFlatPageViewComponentModel, SkedButtonTheme } from '../view/FlatPag
|
|
|
2
2
|
export type DataExpressionType = string;
|
|
3
3
|
export type ValueExpressionType = string | ValueExpressionLogic[];
|
|
4
4
|
export type LocalizedKey = string;
|
|
5
|
+
export type OneLevelBindingObject = any;
|
|
5
6
|
export type ValueExpressionLogic = {
|
|
6
7
|
condition?: DataExpressionType;
|
|
7
8
|
value: ValueExpressionType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonGroupItemComponentModel, DataExpressionType, ListPageAddNewDefaultDataType, LocalizedKey, RoutingType } from '../common/CommonTypes';
|
|
1
|
+
import { ButtonGroupItemComponentModel, DataExpressionType, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, RoutingType } from '../common/CommonTypes';
|
|
2
2
|
import { BaseListPageViewComponentModel } from '../view/ListPageViewComponentModel';
|
|
3
3
|
import { BaseComponentModel } from '../common/BaseComponentModel';
|
|
4
4
|
import { BaseFlatPageViewComponentModel } from '../view/FlatPageViewComponentModel';
|
|
@@ -16,7 +16,7 @@ export interface BasePageComponentModel extends BaseComponentModel {
|
|
|
16
16
|
}
|
|
17
17
|
export type DefaultPageData = {
|
|
18
18
|
objectName: string | undefined;
|
|
19
|
-
data:
|
|
19
|
+
data: OneLevelBindingObject;
|
|
20
20
|
};
|
|
21
21
|
export type AddNewButtonData = {
|
|
22
22
|
text: string;
|
|
@@ -78,7 +78,7 @@ export interface FlatPageComponentModel extends BasePageComponentModel {
|
|
|
78
78
|
insertTitle: LocalizedKey;
|
|
79
79
|
updateTitle: LocalizedKey;
|
|
80
80
|
insertButtonText: LocalizedKey;
|
|
81
|
-
defaultDataForNewObject:
|
|
81
|
+
defaultDataForNewObject: OneLevelBindingObject;
|
|
82
82
|
validator: ValidatorDefinitionModel | undefined;
|
|
83
83
|
readonly: DataExpressionType | boolean;
|
|
84
84
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseComponentModel } from '../common/BaseComponentModel';
|
|
2
|
-
import { ButtonGroupItemComponentModel, DataExpressionType, ListPageAddNewDefaultDataType, LocalizedKey, RoutingType } from '../common/CommonTypes';
|
|
2
|
+
import { ButtonGroupItemComponentModel, DataExpressionType, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, RoutingType } from '../common/CommonTypes';
|
|
3
3
|
import { SelectPageSearchBarConfig } from './SearchPage';
|
|
4
4
|
import { ValidatorDefinitionModel } from '../validator/ValidatorModel';
|
|
5
5
|
export interface BaseFlatPageViewComponentModel extends BaseComponentModel {
|
|
@@ -112,7 +112,7 @@ export interface MultiSelectEditorViewComponentModel extends CommonEditorViewCom
|
|
|
112
112
|
validator: ValidatorDefinitionModel;
|
|
113
113
|
}
|
|
114
114
|
export interface ConstructResultObject {
|
|
115
|
-
data:
|
|
115
|
+
data: OneLevelBindingObject;
|
|
116
116
|
objectName: string;
|
|
117
117
|
compareProperty: string;
|
|
118
118
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataExpressionType, LocalizedKey } from '../common/CommonTypes';
|
|
1
|
+
import { DataExpressionType, LocalizedKey, OneLevelBindingObject } from '../common/CommonTypes';
|
|
2
2
|
export type SelectPageConfig = {
|
|
3
3
|
searchBar: {
|
|
4
4
|
filterOnProperties: string[] | undefined;
|
|
@@ -17,6 +17,11 @@ export type SelectPageConfig = {
|
|
|
17
17
|
title: LocalizedKey;
|
|
18
18
|
hasClearBtn: boolean;
|
|
19
19
|
};
|
|
20
|
+
onlineSource?: SelectPageOnlineSource;
|
|
21
|
+
};
|
|
22
|
+
export type SelectPageOnlineSource = {
|
|
23
|
+
key: DataExpressionType;
|
|
24
|
+
variables: OneLevelBindingObject;
|
|
20
25
|
};
|
|
21
26
|
export type SelectPageSearchBarConfig = {
|
|
22
27
|
filterOnProperties: string[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skedulo/mex-types",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "A central repository store for all the interfaces, type definitions of MEX engine",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
5
7
|
"scripts": {
|
|
6
8
|
"bootstrap": "rm -rf node_modules && yarn install --pure-lockfile --peer",
|
|
7
9
|
"lint": "tslint 'src/**/*.ts'",
|
|
@@ -9,13 +11,6 @@
|
|
|
9
11
|
"build": "npm run compile",
|
|
10
12
|
"clean": "rm -rf tsconfig.tsbuildinfo dist coverage"
|
|
11
13
|
},
|
|
12
|
-
"exports": {
|
|
13
|
-
".": "./dist/index.js",
|
|
14
|
-
"./page": "./dist/page/index.js",
|
|
15
|
-
"./view": "./dist/view/index.js",
|
|
16
|
-
"./common": "./dist/common/index.js",
|
|
17
|
-
"./validator": "./dist/validator/index.js"
|
|
18
|
-
},
|
|
19
14
|
"files": [
|
|
20
15
|
"dist/",
|
|
21
16
|
"package.json",
|