@skedulo/mex-types 1.18.0 → 1.19.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.
- package/dist/common/CommonTypes.d.ts +28 -1
- package/package.json +1 -1
|
@@ -28,6 +28,16 @@ export type RoutingType = string | RoutingPageDef;
|
|
|
28
28
|
export type RoutingPageDef = {
|
|
29
29
|
ui?: RoutingPageUI;
|
|
30
30
|
routing: Routing[];
|
|
31
|
+
/**
|
|
32
|
+
* @version 1.10.15
|
|
33
|
+
*/
|
|
34
|
+
defaultSourceExpression?: any;
|
|
35
|
+
/**
|
|
36
|
+
* @version 1.10.15
|
|
37
|
+
*/
|
|
38
|
+
events?: {
|
|
39
|
+
onNavigateBack?: FunctionExpressionType;
|
|
40
|
+
};
|
|
31
41
|
};
|
|
32
42
|
export type RoutingPageUI = {
|
|
33
43
|
items: BaseFlatPageViewComponentModel[];
|
|
@@ -38,6 +48,10 @@ export type Routing = {
|
|
|
38
48
|
page: string;
|
|
39
49
|
condition: DataExpressionType;
|
|
40
50
|
transferData?: any;
|
|
51
|
+
/**
|
|
52
|
+
* @version 1.10.15
|
|
53
|
+
*/
|
|
54
|
+
sourceExpression?: any;
|
|
41
55
|
};
|
|
42
56
|
export interface ButtonGroupItemComponentModel {
|
|
43
57
|
/**
|
|
@@ -71,22 +85,35 @@ export interface ButtonGroupItemComponentModel {
|
|
|
71
85
|
icon?: IconName;
|
|
72
86
|
}
|
|
73
87
|
export interface ButtonBehaviorComponentModel {
|
|
74
|
-
type:
|
|
88
|
+
type: ButtonBehaviorType;
|
|
75
89
|
}
|
|
90
|
+
export type ButtonBehaviorType = 'custom' | 'sms' | 'phone' | 'openUrl' | 'email' | 'openSelector' | 'routing';
|
|
76
91
|
export interface CustomFunctionButtonBehaviorComponentModel extends ButtonBehaviorComponentModel {
|
|
77
92
|
functionExpression: DataExpressionType;
|
|
93
|
+
type: 'custom';
|
|
78
94
|
}
|
|
79
95
|
export interface PhoneButtonBehaviorComponentModel extends ButtonBehaviorComponentModel {
|
|
80
96
|
phoneNumberExpression: DataExpressionType;
|
|
97
|
+
type: 'phone';
|
|
81
98
|
}
|
|
82
99
|
export interface SMSButtonBehaviorComponentModel extends ButtonBehaviorComponentModel {
|
|
83
100
|
phoneNumberExpression: DataExpressionType;
|
|
101
|
+
type: 'sms';
|
|
84
102
|
}
|
|
85
103
|
export interface OpenURLButtonBehaviorComponentModel extends ButtonBehaviorComponentModel {
|
|
86
104
|
urlExpression: DataExpressionType;
|
|
105
|
+
type: 'openUrl';
|
|
87
106
|
}
|
|
88
107
|
export interface EmailButtonBehaviorComponentModel extends ButtonBehaviorComponentModel {
|
|
89
108
|
emailExpression: DataExpressionType;
|
|
109
|
+
type: 'email';
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @version: 1.10.15
|
|
113
|
+
*/
|
|
114
|
+
export interface RoutingBehaviorComponentModel extends ButtonBehaviorComponentModel {
|
|
115
|
+
destination: RoutingType;
|
|
116
|
+
type: 'routing';
|
|
90
117
|
}
|
|
91
118
|
export type SelectPageConfig = {
|
|
92
119
|
searchBar: {
|