@docupace/ihub-config 1.1.19 → 1.1.20-alpha.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.
|
@@ -28,6 +28,8 @@ interface IDateRangeField {
|
|
|
28
28
|
excludeFromQueryInput: Boolean
|
|
29
29
|
visibilityCondition: String
|
|
30
30
|
disabledCondition: String
|
|
31
|
+
validation: GenericFieldValidation
|
|
32
|
+
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
type InputField implements IField & IRowElement & IElement {
|
|
@@ -113,7 +115,7 @@ type PhoneField implements IField & IRowElement & IElement {
|
|
|
113
115
|
excludeFromQueryInput: Boolean
|
|
114
116
|
visibilityCondition: String
|
|
115
117
|
disabledCondition: String
|
|
116
|
-
validation:
|
|
118
|
+
validation: GenericFieldValidation
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
type DateField implements IField & IRowElement & IElement {
|
|
@@ -132,7 +134,7 @@ type DateField implements IField & IRowElement & IElement {
|
|
|
132
134
|
disabledCondition: String
|
|
133
135
|
minDate: String # e.q. "now" or "2025-03-20"
|
|
134
136
|
maxDate: String # e.q. "now" or "2025-03-20"
|
|
135
|
-
validation:
|
|
137
|
+
validation: GenericFieldValidation
|
|
136
138
|
}
|
|
137
139
|
|
|
138
140
|
type DateRangeField implements IDateRangeField & IRowElement & IElement {
|
|
@@ -151,6 +153,7 @@ type DateRangeField implements IDateRangeField & IRowElement & IElement {
|
|
|
151
153
|
excludeFromQueryInput: Boolean
|
|
152
154
|
visibilityCondition: String
|
|
153
155
|
disabledCondition: String
|
|
156
|
+
validation: GenericFieldValidation
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
type SelectField implements IField & IRowElement & IElement {
|
|
@@ -175,7 +178,7 @@ type SelectField implements IField & IRowElement & IElement {
|
|
|
175
178
|
excludeId: Boolean
|
|
176
179
|
helperText: String
|
|
177
180
|
autoSelectSingleOption: Boolean
|
|
178
|
-
validation:
|
|
181
|
+
validation: GenericFieldValidation
|
|
179
182
|
}
|
|
180
183
|
|
|
181
184
|
type ToggleField implements IField & IRowElement & IElement {
|
|
@@ -197,7 +200,7 @@ type ToggleField implements IField & IRowElement & IElement {
|
|
|
197
200
|
visibilityCondition: String
|
|
198
201
|
disabledCondition: String
|
|
199
202
|
linkedFields: [String!]
|
|
200
|
-
validation:
|
|
203
|
+
validation: GenericFieldValidation
|
|
201
204
|
}
|
|
202
205
|
|
|
203
206
|
type BooleanField implements IField & IRowElement & IElement {
|
|
@@ -215,7 +218,7 @@ type BooleanField implements IField & IRowElement & IElement {
|
|
|
215
218
|
visibilityCondition: String
|
|
216
219
|
disabledCondition: String
|
|
217
220
|
linkedFields: [String!]
|
|
218
|
-
validation:
|
|
221
|
+
validation: GenericFieldValidation
|
|
219
222
|
}
|
|
220
223
|
|
|
221
224
|
type ChipSelectWithInputField implements IField & IRowElement & IElement {
|
|
@@ -259,7 +262,7 @@ type CustomField implements IField & IRowElement & IElement {
|
|
|
259
262
|
excludeFromQueryInput: Boolean
|
|
260
263
|
visibilityCondition: String
|
|
261
264
|
disabledCondition: String
|
|
262
|
-
validation:
|
|
265
|
+
validation: GenericFieldValidation
|
|
263
266
|
}
|
|
264
267
|
|
|
265
268
|
type StatusChipField implements IField & IRowElement & IElement {
|
|
@@ -268,7 +271,7 @@ type StatusChipField implements IField & IRowElement & IElement {
|
|
|
268
271
|
label: String
|
|
269
272
|
name: String!
|
|
270
273
|
path: String!
|
|
271
|
-
validation:
|
|
274
|
+
validation: GenericFieldValidation
|
|
272
275
|
}
|
|
273
276
|
|
|
274
277
|
type CheckboxGroupValue {
|
|
@@ -296,9 +299,19 @@ enum FieldValueType {
|
|
|
296
299
|
Float
|
|
297
300
|
}
|
|
298
301
|
|
|
299
|
-
type
|
|
302
|
+
type GenericFieldValidation {
|
|
303
|
+
custom : CustomFieldValidation
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
type CustomFieldValidation {
|
|
300
307
|
expression: String
|
|
301
308
|
message: String
|
|
309
|
+
"""
|
|
310
|
+
Paths of other fields this expression reads. When one of these fields changes, this
|
|
311
|
+
field's validation is re-triggered so its error state stays in sync without requiring
|
|
312
|
+
the user to re-touch this field directly.
|
|
313
|
+
"""
|
|
314
|
+
dependentPaths: [String!]
|
|
302
315
|
}
|
|
303
316
|
|
|
304
317
|
type StringValidationRule {
|
|
@@ -330,11 +343,13 @@ type InputValidation {
|
|
|
330
343
|
format: [FormatValidationRule!]
|
|
331
344
|
min: FloatValidationRule
|
|
332
345
|
max: FloatValidationRule
|
|
346
|
+
custom: CustomFieldValidation
|
|
333
347
|
}
|
|
334
348
|
|
|
335
349
|
type ChipSelectValidation {
|
|
336
350
|
compatibleWith: CompatibleWithRule
|
|
337
351
|
uniqueInList: UniqueInListRule
|
|
352
|
+
custom : CustomFieldValidation
|
|
338
353
|
}
|
|
339
354
|
|
|
340
355
|
type CompatibleWithRule {
|
|
@@ -32,7 +32,7 @@ type ListFieldRule implements IFieldRule {
|
|
|
32
32
|
requiredCondition: String
|
|
33
33
|
availabilityCondition: String # maps to visibilityCondition on UI
|
|
34
34
|
validationRules: [ValidationRule!]
|
|
35
|
-
validation:
|
|
35
|
+
validation: GenericFieldValidation
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
type ValidationRule {
|
|
@@ -76,5 +76,5 @@ type DateFieldRule implements IFieldRule {
|
|
|
76
76
|
availabilityCondition: String # maps to visibilityCondition on UI
|
|
77
77
|
minDate: String # e.q. "now" or "2025-03-20"
|
|
78
78
|
maxDate: String # e.q. "now" or "2025-03-20"
|
|
79
|
-
validation:
|
|
79
|
+
validation: GenericFieldValidation
|
|
80
80
|
}
|
|
@@ -28,6 +28,8 @@ interface IDateRangeField {
|
|
|
28
28
|
excludeFromQueryInput: Boolean
|
|
29
29
|
visibilityCondition: String
|
|
30
30
|
disabledCondition: String
|
|
31
|
+
validation: GenericFieldValidation
|
|
32
|
+
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
type InputField implements IField & IRowElement & IElement {
|
|
@@ -113,7 +115,7 @@ type PhoneField implements IField & IRowElement & IElement {
|
|
|
113
115
|
excludeFromQueryInput: Boolean
|
|
114
116
|
visibilityCondition: String
|
|
115
117
|
disabledCondition: String
|
|
116
|
-
validation:
|
|
118
|
+
validation: GenericFieldValidation
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
type DateField implements IField & IRowElement & IElement {
|
|
@@ -132,7 +134,7 @@ type DateField implements IField & IRowElement & IElement {
|
|
|
132
134
|
disabledCondition: String
|
|
133
135
|
minDate: String # e.q. "now" or "2025-03-20"
|
|
134
136
|
maxDate: String # e.q. "now" or "2025-03-20"
|
|
135
|
-
validation:
|
|
137
|
+
validation: GenericFieldValidation
|
|
136
138
|
}
|
|
137
139
|
|
|
138
140
|
type DateRangeField implements IDateRangeField & IRowElement & IElement {
|
|
@@ -151,6 +153,7 @@ type DateRangeField implements IDateRangeField & IRowElement & IElement {
|
|
|
151
153
|
excludeFromQueryInput: Boolean
|
|
152
154
|
visibilityCondition: String
|
|
153
155
|
disabledCondition: String
|
|
156
|
+
validation: GenericFieldValidation
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
type SelectField implements IField & IRowElement & IElement {
|
|
@@ -175,7 +178,7 @@ type SelectField implements IField & IRowElement & IElement {
|
|
|
175
178
|
excludeId: Boolean
|
|
176
179
|
helperText: String
|
|
177
180
|
autoSelectSingleOption: Boolean
|
|
178
|
-
validation:
|
|
181
|
+
validation: GenericFieldValidation
|
|
179
182
|
}
|
|
180
183
|
|
|
181
184
|
type ToggleField implements IField & IRowElement & IElement {
|
|
@@ -197,7 +200,7 @@ type ToggleField implements IField & IRowElement & IElement {
|
|
|
197
200
|
visibilityCondition: String
|
|
198
201
|
disabledCondition: String
|
|
199
202
|
linkedFields: [String!]
|
|
200
|
-
validation:
|
|
203
|
+
validation: GenericFieldValidation
|
|
201
204
|
}
|
|
202
205
|
|
|
203
206
|
type BooleanField implements IField & IRowElement & IElement {
|
|
@@ -215,7 +218,7 @@ type BooleanField implements IField & IRowElement & IElement {
|
|
|
215
218
|
visibilityCondition: String
|
|
216
219
|
disabledCondition: String
|
|
217
220
|
linkedFields: [String!]
|
|
218
|
-
validation:
|
|
221
|
+
validation: GenericFieldValidation
|
|
219
222
|
}
|
|
220
223
|
|
|
221
224
|
type ChipSelectWithInputField implements IField & IRowElement & IElement {
|
|
@@ -259,7 +262,7 @@ type CustomField implements IField & IRowElement & IElement {
|
|
|
259
262
|
excludeFromQueryInput: Boolean
|
|
260
263
|
visibilityCondition: String
|
|
261
264
|
disabledCondition: String
|
|
262
|
-
validation:
|
|
265
|
+
validation: GenericFieldValidation
|
|
263
266
|
}
|
|
264
267
|
|
|
265
268
|
type StatusChipField implements IField & IRowElement & IElement {
|
|
@@ -268,7 +271,7 @@ type StatusChipField implements IField & IRowElement & IElement {
|
|
|
268
271
|
label: String
|
|
269
272
|
name: String!
|
|
270
273
|
path: String!
|
|
271
|
-
validation:
|
|
274
|
+
validation: GenericFieldValidation
|
|
272
275
|
}
|
|
273
276
|
|
|
274
277
|
type CheckboxGroupValue {
|
|
@@ -296,9 +299,19 @@ enum FieldValueType {
|
|
|
296
299
|
Float
|
|
297
300
|
}
|
|
298
301
|
|
|
299
|
-
type
|
|
302
|
+
type GenericFieldValidation {
|
|
303
|
+
custom : CustomFieldValidation
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
type CustomFieldValidation {
|
|
300
307
|
expression: String
|
|
301
308
|
message: String
|
|
309
|
+
"""
|
|
310
|
+
Paths of other fields this expression reads. When one of these fields changes, this
|
|
311
|
+
field's validation is re-triggered so its error state stays in sync without requiring
|
|
312
|
+
the user to re-touch this field directly.
|
|
313
|
+
"""
|
|
314
|
+
dependentPaths: [String!]
|
|
302
315
|
}
|
|
303
316
|
|
|
304
317
|
type StringValidationRule {
|
|
@@ -330,11 +343,13 @@ type InputValidation {
|
|
|
330
343
|
format: [FormatValidationRule!]
|
|
331
344
|
min: FloatValidationRule
|
|
332
345
|
max: FloatValidationRule
|
|
346
|
+
custom: CustomFieldValidation
|
|
333
347
|
}
|
|
334
348
|
|
|
335
349
|
type ChipSelectValidation {
|
|
336
350
|
compatibleWith: CompatibleWithRule
|
|
337
351
|
uniqueInList: UniqueInListRule
|
|
352
|
+
custom : CustomFieldValidation
|
|
338
353
|
}
|
|
339
354
|
|
|
340
355
|
type CompatibleWithRule {
|
|
@@ -32,7 +32,7 @@ type ListFieldRule implements IFieldRule {
|
|
|
32
32
|
requiredCondition: String
|
|
33
33
|
availabilityCondition: String # maps to visibilityCondition on UI
|
|
34
34
|
validationRules: [ValidationRule!]
|
|
35
|
-
validation:
|
|
35
|
+
validation: GenericFieldValidation
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
type ValidationRule {
|
|
@@ -76,5 +76,5 @@ type DateFieldRule implements IFieldRule {
|
|
|
76
76
|
availabilityCondition: String # maps to visibilityCondition on UI
|
|
77
77
|
minDate: String # e.q. "now" or "2025-03-20"
|
|
78
78
|
maxDate: String # e.q. "now" or "2025-03-20"
|
|
79
|
-
validation:
|
|
79
|
+
validation: GenericFieldValidation
|
|
80
80
|
}
|