@ws-ui/shared 1.8.4-rc1 → 1.8.4-rc3
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/components/Checkbox/index.d.ts +15 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/declarations/datasources/methods.d.ts +96 -96
- package/dist/declarations/index.d.ts +11 -11
- package/dist/declarations/webform/webform.d.ts +287 -287
- package/dist/index.cjs.js +85 -85
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5973 -6338
- package/dist/index.es.js.map +1 -1
- package/dist/shared.css +1 -1
- package/package.json +3 -2
|
@@ -1,287 +1,287 @@
|
|
|
1
|
-
declare namespace webforms {
|
|
2
|
-
type ReactCSSProperties = import('react').CSSProperties;
|
|
3
|
-
type CraftComponent = import('@ws-ui/craftjs-core').SerializedNode;
|
|
4
|
-
|
|
5
|
-
type ComponentProps<CSSProperties = ReactCSSProperties> = {
|
|
6
|
-
readonly?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
moveable?: boolean;
|
|
9
|
-
deletable?: boolean;
|
|
10
|
-
className?: string;
|
|
11
|
-
role?: string;
|
|
12
|
-
/**
|
|
13
|
-
* A reference used to perform server side actions on the element based on a server call response.
|
|
14
|
-
*/
|
|
15
|
-
serverSideRef?: string;
|
|
16
|
-
/**
|
|
17
|
-
* list of css properties that will be applied to the element by the user.
|
|
18
|
-
*/
|
|
19
|
-
style?: CSSProperties;
|
|
20
|
-
/**
|
|
21
|
-
* Contains the list of events listeners that will be applied to the element during the runtime.
|
|
22
|
-
*/
|
|
23
|
-
events?: WEvent[];
|
|
24
|
-
/**
|
|
25
|
-
* Contains list of classnames that have been applied to the element by the user
|
|
26
|
-
*/
|
|
27
|
-
classNames?: string[];
|
|
28
|
-
/**
|
|
29
|
-
* Represants the main datasource for the component.
|
|
30
|
-
*
|
|
31
|
-
* It can contain multiple datasources paths separated by commas.
|
|
32
|
-
*
|
|
33
|
-
* Datasource Paths syntax: _`namespace`_ __:__ _`datasource.attribute1....attributeN`_
|
|
34
|
-
*/
|
|
35
|
-
datasource?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Represants the current element datasource for the component.
|
|
38
|
-
*
|
|
39
|
-
* It is usually used for items dealing with a list of items.
|
|
40
|
-
*
|
|
41
|
-
* It can only contain a single datasource path.
|
|
42
|
-
*
|
|
43
|
-
* Datasource Paths syntax: _`namespace`_ __:__ _`datasource.attribute1....attributeN`_
|
|
44
|
-
*/
|
|
45
|
-
currentElement?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Defines if the component is iterable.
|
|
48
|
-
*
|
|
49
|
-
* An iterable component must use the 'iterator' property.
|
|
50
|
-
*/
|
|
51
|
-
iterable?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated
|
|
54
|
-
* Defines if the component is loopable.
|
|
55
|
-
*
|
|
56
|
-
* Used on Datatable component (which does not support the iterator property yet).
|
|
57
|
-
*/
|
|
58
|
-
loopable?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Represants the iterator key for the component.
|
|
61
|
-
*
|
|
62
|
-
* Used on components like Matrix & Select Box.
|
|
63
|
-
*/
|
|
64
|
-
iterator?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Defines if the component can be iterable as child.
|
|
67
|
-
*
|
|
68
|
-
* Used on sub-components of iterable components like Matrix & Select Box.
|
|
69
|
-
*/
|
|
70
|
-
iterableChild?: boolean;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
type Info = {
|
|
74
|
-
displayName: string;
|
|
75
|
-
icon?: React.FC;
|
|
76
|
-
exposed?: boolean;
|
|
77
|
-
isCanvas?: boolean;
|
|
78
|
-
events: EventMeta[];
|
|
79
|
-
iconName?: string;
|
|
80
|
-
tipKey?: string;
|
|
81
|
-
kind?: 'user' | 'basic' | 'template';
|
|
82
|
-
sanityCheck?: {
|
|
83
|
-
keys: {
|
|
84
|
-
name: string | Array<ISanityCheckElement>;
|
|
85
|
-
isDatasource: boolean;
|
|
86
|
-
require: boolean;
|
|
87
|
-
}[];
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
type StyleClass = {
|
|
92
|
-
/**
|
|
93
|
-
* Unique id for the class.
|
|
94
|
-
*/
|
|
95
|
-
id: string;
|
|
96
|
-
/**
|
|
97
|
-
* Scope of the classe.
|
|
98
|
-
* values: 'shared', 'theme', 'local'
|
|
99
|
-
*/
|
|
100
|
-
scope: 'shared' | 'theme' | 'local';
|
|
101
|
-
/**
|
|
102
|
-
* Name of the class
|
|
103
|
-
*/
|
|
104
|
-
name: string;
|
|
105
|
-
/**
|
|
106
|
-
* content of the class.
|
|
107
|
-
*/
|
|
108
|
-
content: string;
|
|
109
|
-
/**
|
|
110
|
-
* an id of the parent class. should be null if the class is not associated with any other class.
|
|
111
|
-
*/
|
|
112
|
-
parentId: string | null;
|
|
113
|
-
/**
|
|
114
|
-
* An object of linked style classes.
|
|
115
|
-
*
|
|
116
|
-
* onDrop of the class on a component, if the component has a linked node,
|
|
117
|
-
* it will be assigned a style class if it's type is declared in this object.
|
|
118
|
-
*
|
|
119
|
-
* key: represents the type of component to be associated with style class on drop.
|
|
120
|
-
*
|
|
121
|
-
* value: id of the associated style class.
|
|
122
|
-
*/
|
|
123
|
-
children?: {
|
|
124
|
-
[key: string]: string;
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* defines the origin of the style class from which it was exported.
|
|
128
|
-
*/
|
|
129
|
-
origin?: string;
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
type Datasources = datasources.ICreateDataSource[];
|
|
133
|
-
|
|
134
|
-
type Metadata = Partial<{
|
|
135
|
-
v: string;
|
|
136
|
-
datasources: Datasources;
|
|
137
|
-
styles: StyleClass[];
|
|
138
|
-
title: string;
|
|
139
|
-
}>;
|
|
140
|
-
|
|
141
|
-
type Content = {
|
|
142
|
-
components: Record<string, CraftComponent>;
|
|
143
|
-
metadata?: Metadata;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
// ------------------ EVENTS --------------------------
|
|
147
|
-
type WEvent =
|
|
148
|
-
| MemberFunctionEvent
|
|
149
|
-
| NavigationEvent
|
|
150
|
-
| SimpleActionEvent
|
|
151
|
-
| DialogActionEvent
|
|
152
|
-
| QodlyProActionEvent;
|
|
153
|
-
|
|
154
|
-
type EventExtra = {
|
|
155
|
-
shortcuts?: {
|
|
156
|
-
[event: string]: string[];
|
|
157
|
-
};
|
|
158
|
-
minutes?: number;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
interface BaseEvent {
|
|
162
|
-
id: string;
|
|
163
|
-
events: string[];
|
|
164
|
-
type:
|
|
165
|
-
| 'method'
|
|
166
|
-
| 'navigation'
|
|
167
|
-
| 'simple-action'
|
|
168
|
-
| 'dialog'
|
|
169
|
-
| 'qodly-pro-action';
|
|
170
|
-
disabled?: boolean;
|
|
171
|
-
extra?: EventExtra;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
type MemberFunctionEvent = BaseEvent & {
|
|
175
|
-
type: 'method';
|
|
176
|
-
params: MethodParam[];
|
|
177
|
-
} & Partial<{
|
|
178
|
-
method: string;
|
|
179
|
-
dataclass: string;
|
|
180
|
-
returns: Omit<MethodParam, 'id'>;
|
|
181
|
-
namespace: string;
|
|
182
|
-
code: string;
|
|
183
|
-
feedback: boolean;
|
|
184
|
-
datasource: string;
|
|
185
|
-
variadicType: string;
|
|
186
|
-
methodType?: 'dataclass' | 'singleton';
|
|
187
|
-
openIn: string;
|
|
188
|
-
allowedOnHTTPGET?: boolean;
|
|
189
|
-
}>;
|
|
190
|
-
|
|
191
|
-
type WebformStateActionType = 'add' | 'delete' | 'clear';
|
|
192
|
-
|
|
193
|
-
interface SimpleActionEvent extends BaseEvent {
|
|
194
|
-
type: 'simple-action';
|
|
195
|
-
datasource: {
|
|
196
|
-
name: string;
|
|
197
|
-
type?: datasources.ICreateDataSource['type'] | 'unknown';
|
|
198
|
-
dataType?: datasources.ICreateDataSource['dataType'];
|
|
199
|
-
namespace?: string;
|
|
200
|
-
from?: string;
|
|
201
|
-
target?: string;
|
|
202
|
-
targetNamespace?: string;
|
|
203
|
-
targetType?: string;
|
|
204
|
-
iteratorDatasource?: ISplitDatasource;
|
|
205
|
-
set?: {
|
|
206
|
-
value?: string;
|
|
207
|
-
type?: string;
|
|
208
|
-
};
|
|
209
|
-
step?: number;
|
|
210
|
-
};
|
|
211
|
-
state?: Partial<{
|
|
212
|
-
action: WebformStateActionType;
|
|
213
|
-
states: string[];
|
|
214
|
-
override: boolean;
|
|
215
|
-
}>;
|
|
216
|
-
action: string;
|
|
217
|
-
actionType?: 'state' | 'datasource' | 'auth';
|
|
218
|
-
query?: QueryString;
|
|
219
|
-
orderBy?: OrderBy[];
|
|
220
|
-
feedback?: {
|
|
221
|
-
enabled?: boolean;
|
|
222
|
-
messages?: { onSuccess?: string; onFail?: string };
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
interface DialogActionEvent extends BaseEvent {
|
|
227
|
-
type: 'dialog';
|
|
228
|
-
actionType: 'open' | 'close';
|
|
229
|
-
targetDialog: string;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
type QodlyProActionEvent = BaseEvent & {
|
|
233
|
-
type: 'qodly-pro-action';
|
|
234
|
-
actionType: '4d-method' | 'auth';
|
|
235
|
-
} & Partial<{
|
|
236
|
-
action: string;
|
|
237
|
-
method: string;
|
|
238
|
-
params: MethodParam[];
|
|
239
|
-
returns: Omit<MethodParam, 'id'>;
|
|
240
|
-
variadicType: string;
|
|
241
|
-
}>;
|
|
242
|
-
|
|
243
|
-
interface NavigationEvent extends BaseEvent {
|
|
244
|
-
type: 'navigation';
|
|
245
|
-
parent: string;
|
|
246
|
-
loader: string;
|
|
247
|
-
target: string;
|
|
248
|
-
externalLink: boolean;
|
|
249
|
-
isHardCoded?: boolean;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
interface EventMeta {
|
|
253
|
-
label: string;
|
|
254
|
-
value: string;
|
|
255
|
-
}
|
|
256
|
-
type HardCodedType =
|
|
257
|
-
| 'date'
|
|
258
|
-
| 'string'
|
|
259
|
-
| 'object'
|
|
260
|
-
| 'number'
|
|
261
|
-
| 'bool'
|
|
262
|
-
| 'array';
|
|
263
|
-
type MethodParam = {
|
|
264
|
-
id: string;
|
|
265
|
-
name?: string;
|
|
266
|
-
datasource?: string;
|
|
267
|
-
type?: string;
|
|
268
|
-
isHardCoded?: boolean;
|
|
269
|
-
hardCodedType?: HardCodedTypes;
|
|
270
|
-
hardCodedValue?: string;
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
type MethodReturn = Omit<MethodParam, 'name'>;
|
|
274
|
-
|
|
275
|
-
interface QueryParam extends MethodParam {}
|
|
276
|
-
|
|
277
|
-
interface OrderBy {
|
|
278
|
-
name: string; // replace with attribute
|
|
279
|
-
order: 'asc' | 'desc';
|
|
280
|
-
id: string;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
interface QueryString {
|
|
284
|
-
query?: string; // query
|
|
285
|
-
params?: QueryParam[];
|
|
286
|
-
}
|
|
287
|
-
}
|
|
1
|
+
declare namespace webforms {
|
|
2
|
+
type ReactCSSProperties = import('react').CSSProperties;
|
|
3
|
+
type CraftComponent = import('@ws-ui/craftjs-core').SerializedNode;
|
|
4
|
+
|
|
5
|
+
type ComponentProps<CSSProperties = ReactCSSProperties> = {
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
moveable?: boolean;
|
|
9
|
+
deletable?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
role?: string;
|
|
12
|
+
/**
|
|
13
|
+
* A reference used to perform server side actions on the element based on a server call response.
|
|
14
|
+
*/
|
|
15
|
+
serverSideRef?: string;
|
|
16
|
+
/**
|
|
17
|
+
* list of css properties that will be applied to the element by the user.
|
|
18
|
+
*/
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
/**
|
|
21
|
+
* Contains the list of events listeners that will be applied to the element during the runtime.
|
|
22
|
+
*/
|
|
23
|
+
events?: WEvent[];
|
|
24
|
+
/**
|
|
25
|
+
* Contains list of classnames that have been applied to the element by the user
|
|
26
|
+
*/
|
|
27
|
+
classNames?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* Represants the main datasource for the component.
|
|
30
|
+
*
|
|
31
|
+
* It can contain multiple datasources paths separated by commas.
|
|
32
|
+
*
|
|
33
|
+
* Datasource Paths syntax: _`namespace`_ __:__ _`datasource.attribute1....attributeN`_
|
|
34
|
+
*/
|
|
35
|
+
datasource?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Represants the current element datasource for the component.
|
|
38
|
+
*
|
|
39
|
+
* It is usually used for items dealing with a list of items.
|
|
40
|
+
*
|
|
41
|
+
* It can only contain a single datasource path.
|
|
42
|
+
*
|
|
43
|
+
* Datasource Paths syntax: _`namespace`_ __:__ _`datasource.attribute1....attributeN`_
|
|
44
|
+
*/
|
|
45
|
+
currentElement?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Defines if the component is iterable.
|
|
48
|
+
*
|
|
49
|
+
* An iterable component must use the 'iterator' property.
|
|
50
|
+
*/
|
|
51
|
+
iterable?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated
|
|
54
|
+
* Defines if the component is loopable.
|
|
55
|
+
*
|
|
56
|
+
* Used on Datatable component (which does not support the iterator property yet).
|
|
57
|
+
*/
|
|
58
|
+
loopable?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Represants the iterator key for the component.
|
|
61
|
+
*
|
|
62
|
+
* Used on components like Matrix & Select Box.
|
|
63
|
+
*/
|
|
64
|
+
iterator?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Defines if the component can be iterable as child.
|
|
67
|
+
*
|
|
68
|
+
* Used on sub-components of iterable components like Matrix & Select Box.
|
|
69
|
+
*/
|
|
70
|
+
iterableChild?: boolean;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
type Info = {
|
|
74
|
+
displayName: string;
|
|
75
|
+
icon?: React.FC;
|
|
76
|
+
exposed?: boolean;
|
|
77
|
+
isCanvas?: boolean;
|
|
78
|
+
events: EventMeta[];
|
|
79
|
+
iconName?: string;
|
|
80
|
+
tipKey?: string;
|
|
81
|
+
kind?: 'user' | 'basic' | 'template';
|
|
82
|
+
sanityCheck?: {
|
|
83
|
+
keys: {
|
|
84
|
+
name: string | Array<ISanityCheckElement>;
|
|
85
|
+
isDatasource: boolean;
|
|
86
|
+
require: boolean;
|
|
87
|
+
}[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
type StyleClass = {
|
|
92
|
+
/**
|
|
93
|
+
* Unique id for the class.
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* Scope of the classe.
|
|
98
|
+
* values: 'shared', 'theme', 'local'
|
|
99
|
+
*/
|
|
100
|
+
scope: 'shared' | 'theme' | 'local';
|
|
101
|
+
/**
|
|
102
|
+
* Name of the class
|
|
103
|
+
*/
|
|
104
|
+
name: string;
|
|
105
|
+
/**
|
|
106
|
+
* content of the class.
|
|
107
|
+
*/
|
|
108
|
+
content: string;
|
|
109
|
+
/**
|
|
110
|
+
* an id of the parent class. should be null if the class is not associated with any other class.
|
|
111
|
+
*/
|
|
112
|
+
parentId: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* An object of linked style classes.
|
|
115
|
+
*
|
|
116
|
+
* onDrop of the class on a component, if the component has a linked node,
|
|
117
|
+
* it will be assigned a style class if it's type is declared in this object.
|
|
118
|
+
*
|
|
119
|
+
* key: represents the type of component to be associated with style class on drop.
|
|
120
|
+
*
|
|
121
|
+
* value: id of the associated style class.
|
|
122
|
+
*/
|
|
123
|
+
children?: {
|
|
124
|
+
[key: string]: string;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* defines the origin of the style class from which it was exported.
|
|
128
|
+
*/
|
|
129
|
+
origin?: string;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
type Datasources = datasources.ICreateDataSource[];
|
|
133
|
+
|
|
134
|
+
type Metadata = Partial<{
|
|
135
|
+
v: string;
|
|
136
|
+
datasources: Datasources;
|
|
137
|
+
styles: StyleClass[];
|
|
138
|
+
title: string;
|
|
139
|
+
}>;
|
|
140
|
+
|
|
141
|
+
type Content = {
|
|
142
|
+
components: Record<string, CraftComponent>;
|
|
143
|
+
metadata?: Metadata;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
// ------------------ EVENTS --------------------------
|
|
147
|
+
type WEvent =
|
|
148
|
+
| MemberFunctionEvent
|
|
149
|
+
| NavigationEvent
|
|
150
|
+
| SimpleActionEvent
|
|
151
|
+
| DialogActionEvent
|
|
152
|
+
| QodlyProActionEvent;
|
|
153
|
+
|
|
154
|
+
type EventExtra = {
|
|
155
|
+
shortcuts?: {
|
|
156
|
+
[event: string]: string[];
|
|
157
|
+
};
|
|
158
|
+
minutes?: number;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
interface BaseEvent {
|
|
162
|
+
id: string;
|
|
163
|
+
events: string[];
|
|
164
|
+
type:
|
|
165
|
+
| 'method'
|
|
166
|
+
| 'navigation'
|
|
167
|
+
| 'simple-action'
|
|
168
|
+
| 'dialog'
|
|
169
|
+
| 'qodly-pro-action';
|
|
170
|
+
disabled?: boolean;
|
|
171
|
+
extra?: EventExtra;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
type MemberFunctionEvent = BaseEvent & {
|
|
175
|
+
type: 'method';
|
|
176
|
+
params: MethodParam[];
|
|
177
|
+
} & Partial<{
|
|
178
|
+
method: string;
|
|
179
|
+
dataclass: string;
|
|
180
|
+
returns: Omit<MethodParam, 'id'>;
|
|
181
|
+
namespace: string;
|
|
182
|
+
code: string;
|
|
183
|
+
feedback: boolean;
|
|
184
|
+
datasource: string;
|
|
185
|
+
variadicType: string;
|
|
186
|
+
methodType?: 'dataclass' | 'singleton';
|
|
187
|
+
openIn: string;
|
|
188
|
+
allowedOnHTTPGET?: boolean;
|
|
189
|
+
}>;
|
|
190
|
+
|
|
191
|
+
type WebformStateActionType = 'add' | 'delete' | 'clear';
|
|
192
|
+
|
|
193
|
+
interface SimpleActionEvent extends BaseEvent {
|
|
194
|
+
type: 'simple-action';
|
|
195
|
+
datasource: {
|
|
196
|
+
name: string;
|
|
197
|
+
type?: datasources.ICreateDataSource['type'] | 'unknown';
|
|
198
|
+
dataType?: datasources.ICreateDataSource['dataType'];
|
|
199
|
+
namespace?: string;
|
|
200
|
+
from?: string;
|
|
201
|
+
target?: string;
|
|
202
|
+
targetNamespace?: string;
|
|
203
|
+
targetType?: string;
|
|
204
|
+
iteratorDatasource?: ISplitDatasource;
|
|
205
|
+
set?: {
|
|
206
|
+
value?: string;
|
|
207
|
+
type?: string;
|
|
208
|
+
};
|
|
209
|
+
step?: number;
|
|
210
|
+
};
|
|
211
|
+
state?: Partial<{
|
|
212
|
+
action: WebformStateActionType;
|
|
213
|
+
states: string[];
|
|
214
|
+
override: boolean;
|
|
215
|
+
}>;
|
|
216
|
+
action: string;
|
|
217
|
+
actionType?: 'state' | 'datasource' | 'auth';
|
|
218
|
+
query?: QueryString;
|
|
219
|
+
orderBy?: OrderBy[];
|
|
220
|
+
feedback?: {
|
|
221
|
+
enabled?: boolean;
|
|
222
|
+
messages?: { onSuccess?: string; onFail?: string };
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
interface DialogActionEvent extends BaseEvent {
|
|
227
|
+
type: 'dialog';
|
|
228
|
+
actionType: 'open' | 'close';
|
|
229
|
+
targetDialog: string;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
type QodlyProActionEvent = BaseEvent & {
|
|
233
|
+
type: 'qodly-pro-action';
|
|
234
|
+
actionType: '4d-method' | 'auth';
|
|
235
|
+
} & Partial<{
|
|
236
|
+
action: string;
|
|
237
|
+
method: string;
|
|
238
|
+
params: MethodParam[];
|
|
239
|
+
returns: Omit<MethodParam, 'id'>;
|
|
240
|
+
variadicType: string;
|
|
241
|
+
}>;
|
|
242
|
+
|
|
243
|
+
interface NavigationEvent extends BaseEvent {
|
|
244
|
+
type: 'navigation';
|
|
245
|
+
parent: string;
|
|
246
|
+
loader: string;
|
|
247
|
+
target: string;
|
|
248
|
+
externalLink: boolean;
|
|
249
|
+
isHardCoded?: boolean;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
interface EventMeta {
|
|
253
|
+
label: string;
|
|
254
|
+
value: string;
|
|
255
|
+
}
|
|
256
|
+
type HardCodedType =
|
|
257
|
+
| 'date'
|
|
258
|
+
| 'string'
|
|
259
|
+
| 'object'
|
|
260
|
+
| 'number'
|
|
261
|
+
| 'bool'
|
|
262
|
+
| 'array';
|
|
263
|
+
type MethodParam = {
|
|
264
|
+
id: string;
|
|
265
|
+
name?: string;
|
|
266
|
+
datasource?: string;
|
|
267
|
+
type?: string;
|
|
268
|
+
isHardCoded?: boolean;
|
|
269
|
+
hardCodedType?: HardCodedTypes;
|
|
270
|
+
hardCodedValue?: string;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
type MethodReturn = Omit<MethodParam, 'name'>;
|
|
274
|
+
|
|
275
|
+
interface QueryParam extends MethodParam {}
|
|
276
|
+
|
|
277
|
+
interface OrderBy {
|
|
278
|
+
name: string; // replace with attribute
|
|
279
|
+
order: 'asc' | 'desc';
|
|
280
|
+
id: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
interface QueryString {
|
|
284
|
+
query?: string; // query
|
|
285
|
+
params?: QueryParam[];
|
|
286
|
+
}
|
|
287
|
+
}
|