@docupace/ihub-config 1.0.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.
- package/README.md +82 -0
- package/dist/config/config-injector.d.ts +24 -0
- package/dist/config/config-injector.d.ts.map +1 -0
- package/dist/config/config-injector.js +28 -0
- package/dist/config/config-injector.js.map +1 -0
- package/dist/config/template-processor.d.ts +25 -0
- package/dist/config/template-processor.d.ts.map +1 -0
- package/dist/config/template-processor.js +154 -0
- package/dist/config/template-processor.js.map +1 -0
- package/dist/config-extension.d.ts +11 -0
- package/dist/config-extension.d.ts.map +1 -0
- package/dist/config-extension.js +42 -0
- package/dist/config-extension.js.map +1 -0
- package/dist/config-providers/base-config.d.ts +8 -0
- package/dist/config-providers/base-config.d.ts.map +1 -0
- package/dist/config-providers/base-config.js +2 -0
- package/dist/config-providers/base-config.js.map +1 -0
- package/dist/config-providers/index.d.ts +5 -0
- package/dist/config-providers/index.d.ts.map +1 -0
- package/dist/config-providers/index.js +8 -0
- package/dist/config-providers/index.js.map +1 -0
- package/dist/config-resolvers/index.d.ts +15 -0
- package/dist/config-resolvers/index.d.ts.map +1 -0
- package/dist/config-resolvers/index.js +24 -0
- package/dist/config-resolvers/index.js.map +1 -0
- package/dist/config-service.d.ts +63 -0
- package/dist/config-service.d.ts.map +1 -0
- package/dist/config-service.js +515 -0
- package/dist/config-service.js.map +1 -0
- package/dist/env.d.ts +2 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +3 -0
- package/dist/env.js.map +1 -0
- package/dist/globals.d.ts +30 -0
- package/dist/globals.d.ts.map +1 -0
- package/dist/globals.js +95 -0
- package/dist/globals.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/instance-config.d.ts +21 -0
- package/dist/instance-config.d.ts.map +1 -0
- package/dist/instance-config.js +74 -0
- package/dist/instance-config.js.map +1 -0
- package/dist/lib/file-system.d.ts +2 -0
- package/dist/lib/file-system.d.ts.map +1 -0
- package/dist/lib/file-system.js +11 -0
- package/dist/lib/file-system.js.map +1 -0
- package/dist/lib/filters.d.ts +7 -0
- package/dist/lib/filters.d.ts.map +1 -0
- package/dist/lib/filters.js +123 -0
- package/dist/lib/filters.js.map +1 -0
- package/dist/lib/param-helpers.d.ts +11 -0
- package/dist/lib/param-helpers.d.ts.map +1 -0
- package/dist/lib/param-helpers.js +54 -0
- package/dist/lib/param-helpers.js.map +1 -0
- package/dist/lib/replace-dots-outside-expressions.d.ts +2 -0
- package/dist/lib/replace-dots-outside-expressions.d.ts.map +1 -0
- package/dist/lib/replace-dots-outside-expressions.js +10 -0
- package/dist/lib/replace-dots-outside-expressions.js.map +1 -0
- package/dist/lib/sort.d.ts +2 -0
- package/dist/lib/sort.d.ts.map +1 -0
- package/dist/lib/sort.js +25 -0
- package/dist/lib/sort.js.map +1 -0
- package/dist/mappers/config-mapper.d.ts +8 -0
- package/dist/mappers/config-mapper.d.ts.map +1 -0
- package/dist/mappers/config-mapper.js +17 -0
- package/dist/mappers/config-mapper.js.map +1 -0
- package/dist/model/graphs/config/common.graphql +8 -0
- package/dist/model/graphs/config/fields.graphql +338 -0
- package/dist/model/graphs/config/menu.graphql +40 -0
- package/dist/model/graphs/config/mutation.graphql +30 -0
- package/dist/model/graphs/config/page.graphql +227 -0
- package/dist/model/graphs/config/panel.graphql +30 -0
- package/dist/model/graphs/config/query.graphql +55 -0
- package/dist/model/graphs/config/selectOptions.graphql +47 -0
- package/dist/model/graphs/config/table.graphql +97 -0
- package/dist/model/graphs/config/tests.graphql +16 -0
- package/dist/model/graphs/config/theme.graphql +41 -0
- package/dist/model/graphs/config/ui-components.graphql +11 -0
- package/dist/model/graphs/domains/scalars.graphql +3 -0
- package/dist/model/graphs/filter.graphql +5 -0
- package/dist/model/graphs/schema.graphql +7 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +34 -0
- package/dist/server.js.map +1 -0
- package/dist/types/filter-types.d.ts +62 -0
- package/dist/types/filter-types.d.ts.map +1 -0
- package/dist/types/filter-types.js +28 -0
- package/dist/types/filter-types.js.map +1 -0
- package/dist/types/graphql.d.ts +74630 -0
- package/dist/types/graphql.d.ts.map +1 -0
- package/dist/types/graphql.js +94 -0
- package/dist/types/graphql.js.map +1 -0
- package/dist/types/types.d.ts +13 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/types.js +2 -0
- package/dist/types/types.js.map +1 -0
- package/model/graphs/config/common.graphql +8 -0
- package/model/graphs/config/fields.graphql +338 -0
- package/model/graphs/config/menu.graphql +40 -0
- package/model/graphs/config/mutation.graphql +30 -0
- package/model/graphs/config/page.graphql +227 -0
- package/model/graphs/config/panel.graphql +30 -0
- package/model/graphs/config/query.graphql +55 -0
- package/model/graphs/config/selectOptions.graphql +47 -0
- package/model/graphs/config/table.graphql +97 -0
- package/model/graphs/config/tests.graphql +16 -0
- package/model/graphs/config/theme.graphql +41 -0
- package/model/graphs/config/ui-components.graphql +11 -0
- package/model/graphs/domains/scalars.graphql +3 -0
- package/model/graphs/filter.graphql +5 -0
- package/model/graphs/schema.graphql +7 -0
- package/package.json +63 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
interface IField {
|
|
2
|
+
defaultValue: String
|
|
3
|
+
hidden: Boolean
|
|
4
|
+
label: String
|
|
5
|
+
name: String!
|
|
6
|
+
path: String!
|
|
7
|
+
readonly: Boolean
|
|
8
|
+
required: Boolean
|
|
9
|
+
requiredCondition: String
|
|
10
|
+
skipQuery: Boolean
|
|
11
|
+
excludeFromQueryInput: Boolean
|
|
12
|
+
visibilityCondition: String
|
|
13
|
+
disabledCondition: String
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface IDateRangeField {
|
|
17
|
+
defaultValue: [String] # [startDate, endDate]
|
|
18
|
+
defaultValueExpressions: [String] # [startDate, endDate]
|
|
19
|
+
format: String
|
|
20
|
+
hidden: Boolean
|
|
21
|
+
label: String
|
|
22
|
+
name: String!
|
|
23
|
+
paths: [String!]!
|
|
24
|
+
readonly: Boolean
|
|
25
|
+
required: Boolean
|
|
26
|
+
requiredCondition: String
|
|
27
|
+
skipQuery: Boolean
|
|
28
|
+
excludeFromQueryInput: Boolean
|
|
29
|
+
visibilityCondition: String
|
|
30
|
+
disabledCondition: String
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type InputField implements IField & IRowElement & IElement {
|
|
34
|
+
cols: Int
|
|
35
|
+
defaultValue: String
|
|
36
|
+
helperText: String
|
|
37
|
+
hidden: Boolean
|
|
38
|
+
label: String
|
|
39
|
+
masking: FieldMasking
|
|
40
|
+
maxLength: Int
|
|
41
|
+
minLength: Int
|
|
42
|
+
name: String!
|
|
43
|
+
path: String!
|
|
44
|
+
placeholder: String
|
|
45
|
+
readonly: Boolean
|
|
46
|
+
required: Boolean
|
|
47
|
+
requiredCondition: String
|
|
48
|
+
skipQuery: Boolean
|
|
49
|
+
excludeFromQueryInput: Boolean
|
|
50
|
+
startAdornment: String
|
|
51
|
+
type: FieldValueType
|
|
52
|
+
validation: InputValidation
|
|
53
|
+
visibilityCondition: String
|
|
54
|
+
disabledCondition: String
|
|
55
|
+
skipDirtyCheck: Boolean
|
|
56
|
+
# Start of text area configuration, see https://mui.com/material-ui/react-text-field/#multiline
|
|
57
|
+
multiline: Boolean # optional if at least one other text area parameter is provided
|
|
58
|
+
rows: Int
|
|
59
|
+
maxRows: Int
|
|
60
|
+
minRows: Int
|
|
61
|
+
# End of text area configuration
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type CustomValidator implements IRowElement & IElement {
|
|
65
|
+
validationRule: String
|
|
66
|
+
errorMessage: String
|
|
67
|
+
paths: [String!]!
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
union Fields = InputField | PhoneField | DateField | DateRangeField | SelectField | ToggleField | BooleanField | TextElement
|
|
71
|
+
|
|
72
|
+
type ItemValidation {
|
|
73
|
+
type: String!
|
|
74
|
+
fields: [String!]!
|
|
75
|
+
errorMessage: String
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
type RepeaterField implements IRowElement & IElement {
|
|
79
|
+
path: String!
|
|
80
|
+
title: String
|
|
81
|
+
label: String
|
|
82
|
+
buttonLabel: String
|
|
83
|
+
required: Boolean
|
|
84
|
+
skipId: Boolean
|
|
85
|
+
fields: [Fields!]!
|
|
86
|
+
visibilityCondition: String
|
|
87
|
+
maxFields: String
|
|
88
|
+
validateUnique: Boolean
|
|
89
|
+
duplicateMessage: String
|
|
90
|
+
itemValidation: ItemValidation
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
type ControlGroup implements IRowElement & IElement {
|
|
94
|
+
path: String!
|
|
95
|
+
title: String
|
|
96
|
+
skipId: Boolean
|
|
97
|
+
controlOptions: ISelectOptions!
|
|
98
|
+
fields: [Fields!]!
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
type PhoneField implements IField & IRowElement & IElement {
|
|
102
|
+
cols: Int
|
|
103
|
+
defaultValue: String
|
|
104
|
+
hidden: Boolean
|
|
105
|
+
label: String
|
|
106
|
+
name: String!
|
|
107
|
+
path: String!
|
|
108
|
+
placeholder: String
|
|
109
|
+
readonly: Boolean
|
|
110
|
+
required: Boolean
|
|
111
|
+
requiredCondition: String
|
|
112
|
+
skipQuery: Boolean
|
|
113
|
+
excludeFromQueryInput: Boolean
|
|
114
|
+
visibilityCondition: String
|
|
115
|
+
disabledCondition: String
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
type DateField implements IField & IRowElement & IElement {
|
|
119
|
+
cols: Int
|
|
120
|
+
defaultValue: String
|
|
121
|
+
hidden: Boolean
|
|
122
|
+
label: String
|
|
123
|
+
name: String!
|
|
124
|
+
path: String!
|
|
125
|
+
readonly: Boolean
|
|
126
|
+
required: Boolean
|
|
127
|
+
requiredCondition: String
|
|
128
|
+
skipQuery: Boolean
|
|
129
|
+
excludeFromQueryInput: Boolean
|
|
130
|
+
visibilityCondition: String
|
|
131
|
+
disabledCondition: String
|
|
132
|
+
minDate: String # e.q. "now" or "2025-03-20"
|
|
133
|
+
maxDate: String # e.q. "now" or "2025-03-20"
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
type DateRangeField implements IDateRangeField & IRowElement & IElement {
|
|
137
|
+
cols: Int
|
|
138
|
+
defaultValue: [String!] # [startDate, endDate]
|
|
139
|
+
defaultValueExpressions: [String!] # [startDate, endDate]
|
|
140
|
+
format: String
|
|
141
|
+
hidden: Boolean
|
|
142
|
+
label: String
|
|
143
|
+
name: String!
|
|
144
|
+
paths: [String!]!
|
|
145
|
+
readonly: Boolean
|
|
146
|
+
required: Boolean
|
|
147
|
+
requiredCondition: String
|
|
148
|
+
skipQuery: Boolean
|
|
149
|
+
excludeFromQueryInput: Boolean
|
|
150
|
+
visibilityCondition: String
|
|
151
|
+
disabledCondition: String
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
type SelectField implements IField & IRowElement & IElement {
|
|
155
|
+
cols: Int
|
|
156
|
+
defaultValue: String
|
|
157
|
+
defaultValuePath: String
|
|
158
|
+
disableClearable: Boolean
|
|
159
|
+
hidden: Boolean
|
|
160
|
+
label: String
|
|
161
|
+
multiple: Boolean
|
|
162
|
+
name: String!
|
|
163
|
+
path: String!
|
|
164
|
+
placeholder: String
|
|
165
|
+
readonly: Boolean
|
|
166
|
+
required: Boolean
|
|
167
|
+
requiredCondition: String
|
|
168
|
+
selectOptions: ISelectOptions!
|
|
169
|
+
skipQuery: Boolean
|
|
170
|
+
excludeFromQueryInput: Boolean
|
|
171
|
+
visibilityCondition: String
|
|
172
|
+
disabledCondition: String
|
|
173
|
+
excludeId: Boolean
|
|
174
|
+
helperText: String
|
|
175
|
+
autoSelectSingleOption: Boolean
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
type ToggleField implements IField & IRowElement & IElement {
|
|
179
|
+
cols: Int
|
|
180
|
+
defaultValue: String
|
|
181
|
+
disableClearable: Boolean
|
|
182
|
+
hidden: Boolean
|
|
183
|
+
label: String
|
|
184
|
+
multiple: Boolean
|
|
185
|
+
name: String!
|
|
186
|
+
path: String!
|
|
187
|
+
readonly: Boolean
|
|
188
|
+
required: Boolean
|
|
189
|
+
requiredCondition: String
|
|
190
|
+
selectOptions: ISelectOptions!
|
|
191
|
+
size: String # see https://mui.com/material-ui/react-toggle-button/#size
|
|
192
|
+
skipQuery: Boolean
|
|
193
|
+
excludeFromQueryInput: Boolean
|
|
194
|
+
visibilityCondition: String
|
|
195
|
+
disabledCondition: String
|
|
196
|
+
linkedFields: [String!]
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
type BooleanField implements IField & IRowElement & IElement {
|
|
200
|
+
cols: Int
|
|
201
|
+
defaultValue: String
|
|
202
|
+
hidden: Boolean
|
|
203
|
+
label: String
|
|
204
|
+
name: String!
|
|
205
|
+
path: String!
|
|
206
|
+
readonly: Boolean
|
|
207
|
+
required: Boolean
|
|
208
|
+
requiredCondition: String
|
|
209
|
+
skipQuery: Boolean
|
|
210
|
+
excludeFromQueryInput: Boolean
|
|
211
|
+
visibilityCondition: String
|
|
212
|
+
disabledCondition: String
|
|
213
|
+
linkedFields: [String!]
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
type ChipSelectWithInputField implements IField & IRowElement & IElement {
|
|
217
|
+
cols: Int
|
|
218
|
+
defaultValue: String
|
|
219
|
+
defaultValuePath: String
|
|
220
|
+
hidden: Boolean
|
|
221
|
+
input: InputField
|
|
222
|
+
label: String
|
|
223
|
+
name: String!
|
|
224
|
+
path: String!
|
|
225
|
+
labelPath: String
|
|
226
|
+
readonly: Boolean
|
|
227
|
+
multiple: Boolean
|
|
228
|
+
required: Boolean
|
|
229
|
+
requiredCondition: String
|
|
230
|
+
selectOptions: ISelectOptions!
|
|
231
|
+
skipQuery: Boolean
|
|
232
|
+
excludeFromQueryInput: Boolean
|
|
233
|
+
subTitle: String
|
|
234
|
+
title: String
|
|
235
|
+
visibilityCondition: String
|
|
236
|
+
disabledCondition: String
|
|
237
|
+
linkedFields: [String!]
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
type CustomField implements IField & IRowElement & IElement {
|
|
241
|
+
cols: Int
|
|
242
|
+
component: String!
|
|
243
|
+
config: JSON
|
|
244
|
+
defaultValue: String
|
|
245
|
+
hidden: Boolean
|
|
246
|
+
label: String
|
|
247
|
+
name: String!
|
|
248
|
+
path: String!
|
|
249
|
+
readonly: Boolean
|
|
250
|
+
required: Boolean
|
|
251
|
+
requiredCondition: String
|
|
252
|
+
skipQuery: Boolean
|
|
253
|
+
excludeFromQueryInput: Boolean
|
|
254
|
+
visibilityCondition: String
|
|
255
|
+
disabledCondition: String
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
type StatusChipField implements IField & IRowElement & IElement {
|
|
259
|
+
align: String
|
|
260
|
+
cols: Int
|
|
261
|
+
label: String
|
|
262
|
+
name: String!
|
|
263
|
+
path: String!
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
type CheckboxGroupValue {
|
|
267
|
+
label: String!
|
|
268
|
+
path: String!
|
|
269
|
+
skipQuery: Boolean
|
|
270
|
+
excludeFromQueryInput: Boolean
|
|
271
|
+
value: JSON!
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
type CheckboxGroup implements IRowElement & IElement {
|
|
275
|
+
cols: Int
|
|
276
|
+
name: String!
|
|
277
|
+
required: Boolean
|
|
278
|
+
requiredCondition: String
|
|
279
|
+
subTitle: String
|
|
280
|
+
title: String
|
|
281
|
+
values: [CheckboxGroupValue!]!
|
|
282
|
+
visibilityCondition: String
|
|
283
|
+
disabledCondition: String
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
enum FieldValueType {
|
|
287
|
+
Int
|
|
288
|
+
Float
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
type StringValidationRule {
|
|
292
|
+
message: String
|
|
293
|
+
value: String
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
type IntValidationRule {
|
|
297
|
+
message: String
|
|
298
|
+
value: Int
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
type FloatValidationRule {
|
|
302
|
+
message: String
|
|
303
|
+
value: Float
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
type FormatValidationRule {
|
|
307
|
+
name: String
|
|
308
|
+
description: String
|
|
309
|
+
message: String
|
|
310
|
+
expression: String
|
|
311
|
+
condition: String
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
type InputValidation {
|
|
315
|
+
email: StringValidationRule
|
|
316
|
+
length: IntValidationRule
|
|
317
|
+
format: [FormatValidationRule!]
|
|
318
|
+
min: FloatValidationRule
|
|
319
|
+
max: FloatValidationRule
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
# see more https://s-yadav.github.io/react-number-format/docs/props
|
|
323
|
+
type PatternMasking {
|
|
324
|
+
dynamic: Boolean
|
|
325
|
+
format: String!
|
|
326
|
+
mask: String
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
# see more https://s-yadav.github.io/react-number-format/docs/props
|
|
330
|
+
type NumericMasking {
|
|
331
|
+
thousandSeparator: String
|
|
332
|
+
decimalSeparator: String
|
|
333
|
+
decimalScale: Number
|
|
334
|
+
fixedDecimalScale: Boolean
|
|
335
|
+
allowNegative: Boolean
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
union FieldMasking = PatternMasking | NumericMasking
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface IMenuItem {
|
|
2
|
+
name: String!
|
|
3
|
+
label: String!
|
|
4
|
+
icon: String
|
|
5
|
+
url: String
|
|
6
|
+
color: String
|
|
7
|
+
action: String
|
|
8
|
+
component: String
|
|
9
|
+
description: String
|
|
10
|
+
visibilityCondition: String
|
|
11
|
+
config: JSON
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type MenuItem implements IMenuItem {
|
|
15
|
+
name: String!
|
|
16
|
+
label: String!
|
|
17
|
+
icon: String
|
|
18
|
+
url: String
|
|
19
|
+
color: String
|
|
20
|
+
action: String
|
|
21
|
+
component: String
|
|
22
|
+
tooltip: String
|
|
23
|
+
description: String
|
|
24
|
+
visibilityCondition: String
|
|
25
|
+
config: JSON
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type ActionButton implements IMenuItem {
|
|
29
|
+
name: String!
|
|
30
|
+
label: String!
|
|
31
|
+
icon: String
|
|
32
|
+
url: String
|
|
33
|
+
color: String
|
|
34
|
+
component: String
|
|
35
|
+
action: String
|
|
36
|
+
disabled: Boolean
|
|
37
|
+
menuItems: [MenuItem!]
|
|
38
|
+
visibilityCondition: String
|
|
39
|
+
description: String
|
|
40
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
input WidgetInput {
|
|
3
|
+
name : String
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
input DashboardRowInput {
|
|
7
|
+
title : String
|
|
8
|
+
name: String
|
|
9
|
+
hidden: Boolean
|
|
10
|
+
layout: Number
|
|
11
|
+
elements : [WidgetInput!]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
input DashboardPanelInput {
|
|
15
|
+
rows : [DashboardRowInput]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
input DashboardPageInput {
|
|
19
|
+
title: String
|
|
20
|
+
panel : DashboardPanelInput
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type PageMutation {
|
|
24
|
+
updateDashboard(input: DashboardPageInput) : DashboardPage
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type ConfigMutation {
|
|
28
|
+
refresh: Boolean
|
|
29
|
+
pages: PageMutation
|
|
30
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
interface Page {
|
|
2
|
+
title: String
|
|
3
|
+
description: String
|
|
4
|
+
config: JSON
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type OverviewPage implements Page {
|
|
8
|
+
title: String
|
|
9
|
+
description: String
|
|
10
|
+
domain: String
|
|
11
|
+
cards: [Card]
|
|
12
|
+
menuItems: [MenuItem]
|
|
13
|
+
config: JSON
|
|
14
|
+
tables: [Table]
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type TablePage implements Page {
|
|
18
|
+
title: String
|
|
19
|
+
component: String
|
|
20
|
+
description: String
|
|
21
|
+
actionButton: ActionButton
|
|
22
|
+
table: AnyTable!
|
|
23
|
+
panel: Panel
|
|
24
|
+
config: JSON
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type ComponentPage implements Page {
|
|
28
|
+
title: String
|
|
29
|
+
description: String
|
|
30
|
+
component: String
|
|
31
|
+
panel: Panel
|
|
32
|
+
config: JSON
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
type TabbedPage implements Page {
|
|
36
|
+
title: String
|
|
37
|
+
description: String
|
|
38
|
+
tabs: [Tab!]!
|
|
39
|
+
config: JSON
|
|
40
|
+
gqlQuery: GQLQuery
|
|
41
|
+
# TODO: Replace `mutations` (currently a JSON object used as { [mutationName: String]: GQLQuery }) with a properly typed map.
|
|
42
|
+
mutations: JSON
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type DetailsPage implements Page {
|
|
46
|
+
title: String
|
|
47
|
+
description: String
|
|
48
|
+
panel: Panel
|
|
49
|
+
config: JSON
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type DomainRecordTemplate implements Page {
|
|
53
|
+
title: String
|
|
54
|
+
description: String
|
|
55
|
+
sideMenu: SideMenu
|
|
56
|
+
viewer: Viewer
|
|
57
|
+
config: JSON
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
type PageLayout implements Page {
|
|
61
|
+
title: String
|
|
62
|
+
description: String
|
|
63
|
+
sideMenu: SideMenu
|
|
64
|
+
widgets: [ExternalWidget]
|
|
65
|
+
config: JSON
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
type DashboardPage implements Page {
|
|
69
|
+
panel: DashboardPanel
|
|
70
|
+
title: String
|
|
71
|
+
description: String
|
|
72
|
+
config: JSON
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
type ReportPage implements Page {
|
|
76
|
+
title: String
|
|
77
|
+
description: String
|
|
78
|
+
controlPanel: Panel
|
|
79
|
+
dashboardPanel: DashboardPanel
|
|
80
|
+
config: JSON
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
type AnyPage implements Page {
|
|
84
|
+
title: String
|
|
85
|
+
description: String
|
|
86
|
+
tables: [NamedTable!]
|
|
87
|
+
panels: [Panel!]
|
|
88
|
+
tabbedPages: [TabbedPage!]
|
|
89
|
+
config: JSON
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
type WizardPage implements Page {
|
|
93
|
+
description: String
|
|
94
|
+
title : String
|
|
95
|
+
dataSource: String
|
|
96
|
+
steps: [Step!]!
|
|
97
|
+
loadWizardByCustodian: [LoadWizardByCustodian]
|
|
98
|
+
defaultWizard: String
|
|
99
|
+
# TODO: Replace `mutations` (currently a JSON object used as { [mutationName: String]: GQLQuery }) with a properly typed map.
|
|
100
|
+
mutations: JSON
|
|
101
|
+
config: JSON
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
type LoadWizardByCustodian {
|
|
105
|
+
custodian: String
|
|
106
|
+
wizard: String
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
type Step {
|
|
110
|
+
id : String!
|
|
111
|
+
label : String!
|
|
112
|
+
icon: String
|
|
113
|
+
page : Page
|
|
114
|
+
visibilityCondition: String
|
|
115
|
+
pathUrl: String
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
type SideMenu {
|
|
119
|
+
headerCard: Card
|
|
120
|
+
menuItems: [MenuItem!]
|
|
121
|
+
dataCard: Card
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
type CardView {
|
|
125
|
+
queryName: String
|
|
126
|
+
card: Card!
|
|
127
|
+
groups: CardGroups
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
type CardGroups {
|
|
131
|
+
queryName: String!
|
|
132
|
+
titlePath: String!
|
|
133
|
+
configKeyPath: String!
|
|
134
|
+
dataKeyPath: String!
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
type Tab {
|
|
138
|
+
name: String!
|
|
139
|
+
label: String!
|
|
140
|
+
page: Page!
|
|
141
|
+
visibilityCondition: String
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
type DashboardPanel implements IPanel {
|
|
145
|
+
name: String
|
|
146
|
+
rows: [DashboardPanelRow!]
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
type DashboardPanelRow implements IPanelRow {
|
|
150
|
+
name: String!
|
|
151
|
+
title: String
|
|
152
|
+
titleVariant: String
|
|
153
|
+
layout: Number
|
|
154
|
+
hidden: Boolean
|
|
155
|
+
visibilityCondition: String
|
|
156
|
+
elements: [Widget!]
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
type Preview {
|
|
160
|
+
headerCard: Card
|
|
161
|
+
panel: Panel
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
interface ICard implements IElement {
|
|
165
|
+
name: String
|
|
166
|
+
component: String
|
|
167
|
+
config: JSON
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
interface QuickApp {
|
|
171
|
+
url: String
|
|
172
|
+
appPreference: String
|
|
173
|
+
target: Boolean
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
type CardRow {
|
|
177
|
+
name: String
|
|
178
|
+
paths: [String!]
|
|
179
|
+
expression: String
|
|
180
|
+
icon: String
|
|
181
|
+
component: String
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
type Card implements ICard & IRowElement & IElement {
|
|
185
|
+
name: String
|
|
186
|
+
component: String!
|
|
187
|
+
config: JSON
|
|
188
|
+
cols: Int
|
|
189
|
+
title: String
|
|
190
|
+
rows: [CardRow]
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
type Widget implements ICard & IRowElement & IElement & QuickApp {
|
|
194
|
+
id: String!
|
|
195
|
+
name: String
|
|
196
|
+
title: String
|
|
197
|
+
description: String
|
|
198
|
+
component: String
|
|
199
|
+
config: JSON
|
|
200
|
+
cols: Int
|
|
201
|
+
table: AnyTable
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
type ExternalWidget {
|
|
205
|
+
id: String
|
|
206
|
+
name: String
|
|
207
|
+
description: String
|
|
208
|
+
visibilityCondition: String
|
|
209
|
+
config: JSON
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
type ViewerOptions {
|
|
213
|
+
thumbnails: Boolean
|
|
214
|
+
pageNavigation: Boolean
|
|
215
|
+
lazyLoading: Boolean
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
type ViewerToolbar {
|
|
219
|
+
menuItems: [MenuItem!]!
|
|
220
|
+
actionButton: ActionButton
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
type Viewer {
|
|
224
|
+
documentActions: [MenuItem!]
|
|
225
|
+
options: ViewerOptions
|
|
226
|
+
toolbar: ViewerToolbar
|
|
227
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface IPanel {
|
|
2
|
+
name: String
|
|
3
|
+
rows: [IPanelRow!]
|
|
4
|
+
dataType: String
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface IPanelRow {
|
|
8
|
+
elements: [IRowElement!]
|
|
9
|
+
name: String
|
|
10
|
+
title: String
|
|
11
|
+
titleVariant: String
|
|
12
|
+
visibilityCondition: String
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
type Panel implements IPanel {
|
|
16
|
+
columns: Int
|
|
17
|
+
isGrouped: Boolean
|
|
18
|
+
name: String
|
|
19
|
+
rows: [PanelRow!]!
|
|
20
|
+
dataType: String
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type PanelRow implements IPanelRow {
|
|
24
|
+
elements: [IRowElement!]
|
|
25
|
+
hasDivider: Boolean
|
|
26
|
+
name: String
|
|
27
|
+
title: String
|
|
28
|
+
titleVariant: String
|
|
29
|
+
visibilityCondition: String
|
|
30
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
type PageQuery {
|
|
3
|
+
getPageConfig(path : String) : Page
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
type WidgetQuery {
|
|
7
|
+
list(search: String) : [Widget!]
|
|
8
|
+
get(path : String) : Widget
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type ThemeQuery {
|
|
12
|
+
get(path: String): Theme
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
type ConfigQuery {
|
|
16
|
+
pages : PageQuery
|
|
17
|
+
widgets : WidgetQuery
|
|
18
|
+
tests: TestQuery
|
|
19
|
+
themes: ThemeQuery
|
|
20
|
+
data : DataQuery
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type DataQuery {
|
|
24
|
+
get(path : String) : [DataResult!]
|
|
25
|
+
list(path : String) : [String]
|
|
26
|
+
getSeedConfig(path: String): SeedConfigResult
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type DataResult {
|
|
30
|
+
config: DataConfig
|
|
31
|
+
data: JSON!
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type DataConfig {
|
|
35
|
+
severity: String
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
type SeedConfigResult {
|
|
39
|
+
typeName: String!
|
|
40
|
+
updateMethod: String
|
|
41
|
+
updateInputType: String
|
|
42
|
+
createMethod: String
|
|
43
|
+
createInputType: String
|
|
44
|
+
referenceByIdPaths: [String]
|
|
45
|
+
referencePaths: [String]
|
|
46
|
+
doNotUpdate: Boolean
|
|
47
|
+
doNotDelete: Boolean
|
|
48
|
+
uniqueColumns: [String]
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
type GQLQuery {
|
|
52
|
+
queryName: String
|
|
53
|
+
operationName: String
|
|
54
|
+
variableDefinitions: JSON
|
|
55
|
+
}
|