@dev-crew-berlin/enter-js-utils 0.16.0 → 0.17.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.
|
@@ -118,6 +118,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
118
118
|
if: import("fefe").Validator<string, import("fefe").FefeError> & {
|
|
119
119
|
optional: true;
|
|
120
120
|
};
|
|
121
|
+
isMetaGroup: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
121
122
|
}>, import("fefe").FefeError>;
|
|
122
123
|
declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
123
124
|
title: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
|
|
@@ -227,6 +228,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
227
228
|
if: import("fefe").Validator<string, import("fefe").FefeError> & {
|
|
228
229
|
optional: true;
|
|
229
230
|
};
|
|
231
|
+
isMetaGroup: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
230
232
|
}>[], import("fefe").FefeError>;
|
|
231
233
|
export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe").ObjectResult<{
|
|
232
234
|
title: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
|
|
@@ -336,6 +338,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
336
338
|
if: import("fefe").Validator<string, import("fefe").FefeError> & {
|
|
337
339
|
optional: true;
|
|
338
340
|
};
|
|
341
|
+
isMetaGroup: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
339
342
|
}>>;
|
|
340
343
|
export declare const parseRawFieldGroupList: import("../lib").APIValidator<import("fefe").ObjectResult<{
|
|
341
344
|
title: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
|
|
@@ -445,6 +448,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
445
448
|
if: import("fefe").Validator<string, import("fefe").FefeError> & {
|
|
446
449
|
optional: true;
|
|
447
450
|
};
|
|
451
|
+
isMetaGroup: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
448
452
|
}>[]>;
|
|
449
453
|
export declare type RawFieldGroupList = ValidatorReturnType<typeof rawFieldGroupList>;
|
|
450
454
|
export declare type FieldGroup = ValidatorReturnType<typeof fieldGroup>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { array, object, string, optional, union } from 'fefe';
|
|
1
|
+
import { array, object, string, optional, union, boolean } from 'fefe';
|
|
2
2
|
import { apiValidator, success } from '../lib';
|
|
3
3
|
import { field } from './field';
|
|
4
4
|
import { dictionary } from './_helpers';
|
|
@@ -32,7 +32,8 @@ export const fieldGroup = object({
|
|
|
32
32
|
class: optional(string()),
|
|
33
33
|
questions: array(field),
|
|
34
34
|
info: optional(union(string(), dictionary(string()))),
|
|
35
|
-
if: optional(string())
|
|
35
|
+
if: optional(string()),
|
|
36
|
+
isMetaGroup: boolean()
|
|
36
37
|
}, {
|
|
37
38
|
allowExcessProperties: true
|
|
38
39
|
});
|