@dev-crew-berlin/enter-js-utils 0.6.0 → 0.6.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/models/field-group.d.ts +16 -48
- package/dist/models/field.d.ts +12 -36
- package/dist/models/field.js +5 -5
- package/package.json +1 -1
|
@@ -60,9 +60,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
60
60
|
}> | import("fefe").ObjectResult<{
|
|
61
61
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
62
62
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
63
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
64
|
-
optional: true;
|
|
65
|
-
};
|
|
63
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
66
64
|
}>[], import("fefe").FefeError>;
|
|
67
65
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
68
66
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -83,9 +81,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
83
81
|
}> | import("fefe").ObjectResult<{
|
|
84
82
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
85
83
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
86
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
87
|
-
optional: true;
|
|
88
|
-
};
|
|
84
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
89
85
|
}>[], import("fefe").FefeError>;
|
|
90
86
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
91
87
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -95,9 +91,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
95
91
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
96
92
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
97
93
|
}> | import("fefe").ObjectResult<{
|
|
98
|
-
itemval: import("fefe").Validator<string, import("fefe").FefeError
|
|
99
|
-
optional: true;
|
|
100
|
-
};
|
|
94
|
+
itemval: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
101
95
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
102
96
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
103
97
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -108,9 +102,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
108
102
|
}> | import("fefe").ObjectResult<{
|
|
109
103
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
110
104
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
111
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
112
|
-
optional: true;
|
|
113
|
-
};
|
|
105
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
114
106
|
}>[], import("fefe").FefeError>;
|
|
115
107
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
116
108
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -177,9 +169,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
177
169
|
}> | import("fefe").ObjectResult<{
|
|
178
170
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
179
171
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
180
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
181
|
-
optional: true;
|
|
182
|
-
};
|
|
172
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
183
173
|
}>[], import("fefe").FefeError>;
|
|
184
174
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
185
175
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -200,9 +190,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
200
190
|
}> | import("fefe").ObjectResult<{
|
|
201
191
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
202
192
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
203
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
204
|
-
optional: true;
|
|
205
|
-
};
|
|
193
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
206
194
|
}>[], import("fefe").FefeError>;
|
|
207
195
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
208
196
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -212,9 +200,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
212
200
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
213
201
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
214
202
|
}> | import("fefe").ObjectResult<{
|
|
215
|
-
itemval: import("fefe").Validator<string, import("fefe").FefeError
|
|
216
|
-
optional: true;
|
|
217
|
-
};
|
|
203
|
+
itemval: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
218
204
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
219
205
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
220
206
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -225,9 +211,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
225
211
|
}> | import("fefe").ObjectResult<{
|
|
226
212
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
227
213
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
228
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
229
|
-
optional: true;
|
|
230
|
-
};
|
|
214
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
231
215
|
}>[], import("fefe").FefeError>;
|
|
232
216
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
233
217
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -294,9 +278,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
294
278
|
}> | import("fefe").ObjectResult<{
|
|
295
279
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
296
280
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
297
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
298
|
-
optional: true;
|
|
299
|
-
};
|
|
281
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
300
282
|
}>[], import("fefe").FefeError>;
|
|
301
283
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
302
284
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -317,9 +299,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
317
299
|
}> | import("fefe").ObjectResult<{
|
|
318
300
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
319
301
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
320
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
321
|
-
optional: true;
|
|
322
|
-
};
|
|
302
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
323
303
|
}>[], import("fefe").FefeError>;
|
|
324
304
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
325
305
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -329,9 +309,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
329
309
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
330
310
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
331
311
|
}> | import("fefe").ObjectResult<{
|
|
332
|
-
itemval: import("fefe").Validator<string, import("fefe").FefeError
|
|
333
|
-
optional: true;
|
|
334
|
-
};
|
|
312
|
+
itemval: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
335
313
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
336
314
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
337
315
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -342,9 +320,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
342
320
|
}> | import("fefe").ObjectResult<{
|
|
343
321
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
344
322
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
345
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
346
|
-
optional: true;
|
|
347
|
-
};
|
|
323
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
348
324
|
}>[], import("fefe").FefeError>;
|
|
349
325
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
350
326
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -411,9 +387,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
411
387
|
}> | import("fefe").ObjectResult<{
|
|
412
388
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
413
389
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
414
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
415
|
-
optional: true;
|
|
416
|
-
};
|
|
390
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
417
391
|
}>[], import("fefe").FefeError>;
|
|
418
392
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
419
393
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -434,9 +408,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
434
408
|
}> | import("fefe").ObjectResult<{
|
|
435
409
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
436
410
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
437
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
438
|
-
optional: true;
|
|
439
|
-
};
|
|
411
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
440
412
|
}>[], import("fefe").FefeError>;
|
|
441
413
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
442
414
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -446,9 +418,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
446
418
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
447
419
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
448
420
|
}> | import("fefe").ObjectResult<{
|
|
449
|
-
itemval: import("fefe").Validator<string, import("fefe").FefeError
|
|
450
|
-
optional: true;
|
|
451
|
-
};
|
|
421
|
+
itemval: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
452
422
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
453
423
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
454
424
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -459,9 +429,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
459
429
|
}> | import("fefe").ObjectResult<{
|
|
460
430
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
461
431
|
name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
|
|
462
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
463
|
-
optional: true;
|
|
464
|
-
};
|
|
432
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
465
433
|
}>[], import("fefe").FefeError>;
|
|
466
434
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
467
435
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
package/dist/models/field.d.ts
CHANGED
|
@@ -38,9 +38,7 @@ declare const numberField: import("fefe").Validator<import("fefe").ObjectResult<
|
|
|
38
38
|
declare const checkboxField: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
39
39
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
40
40
|
name: import("fefe").Validator<string | import("./_helpers").Dictionary<string>, import("fefe").LeafError>;
|
|
41
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
42
|
-
optional: true;
|
|
43
|
-
};
|
|
41
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
44
42
|
}>[], import("fefe").FefeError>;
|
|
45
43
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
46
44
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -63,9 +61,7 @@ declare const singleCheckboxField: import("fefe").Validator<import("fefe").Objec
|
|
|
63
61
|
declare const radioField: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
64
62
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
65
63
|
name: import("fefe").Validator<string | import("./_helpers").Dictionary<string>, import("fefe").LeafError>;
|
|
66
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
67
|
-
optional: true;
|
|
68
|
-
};
|
|
64
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
69
65
|
}>[], import("fefe").FefeError>;
|
|
70
66
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
71
67
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -76,9 +72,7 @@ declare const radioField: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
|
76
72
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
77
73
|
}>, import("fefe").FefeError>;
|
|
78
74
|
declare const singleRadioField: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
79
|
-
itemval: import("fefe").Validator<string, import("fefe").FefeError
|
|
80
|
-
optional: true;
|
|
81
|
-
};
|
|
75
|
+
itemval: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
82
76
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
83
77
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
84
78
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -90,9 +84,7 @@ declare const singleRadioField: import("fefe").Validator<import("fefe").ObjectRe
|
|
|
90
84
|
declare const selectField: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
91
85
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
92
86
|
name: import("fefe").Validator<string | import("./_helpers").Dictionary<string>, import("fefe").LeafError>;
|
|
93
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
94
|
-
optional: true;
|
|
95
|
-
};
|
|
87
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
96
88
|
}>[], import("fefe").FefeError>;
|
|
97
89
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
98
90
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -145,9 +137,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
145
137
|
}> | import("fefe").ObjectResult<{
|
|
146
138
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
147
139
|
name: import("fefe").Validator<string | import("./_helpers").Dictionary<string>, import("fefe").LeafError>;
|
|
148
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
149
|
-
optional: true;
|
|
150
|
-
};
|
|
140
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
151
141
|
}>[], import("fefe").FefeError>;
|
|
152
142
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
153
143
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -168,9 +158,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
168
158
|
}> | import("fefe").ObjectResult<{
|
|
169
159
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
170
160
|
name: import("fefe").Validator<string | import("./_helpers").Dictionary<string>, import("fefe").LeafError>;
|
|
171
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
172
|
-
optional: true;
|
|
173
|
-
};
|
|
161
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
174
162
|
}>[], import("fefe").FefeError>;
|
|
175
163
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
176
164
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -180,9 +168,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
180
168
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
181
169
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
182
170
|
}> | import("fefe").ObjectResult<{
|
|
183
|
-
itemval: import("fefe").Validator<string, import("fefe").FefeError
|
|
184
|
-
optional: true;
|
|
185
|
-
};
|
|
171
|
+
itemval: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
186
172
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
187
173
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
188
174
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -193,9 +179,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
193
179
|
}> | import("fefe").ObjectResult<{
|
|
194
180
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
195
181
|
name: import("fefe").Validator<string | import("./_helpers").Dictionary<string>, import("fefe").LeafError>;
|
|
196
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
197
|
-
optional: true;
|
|
198
|
-
};
|
|
182
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
199
183
|
}>[], import("fefe").FefeError>;
|
|
200
184
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
201
185
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -248,9 +232,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
248
232
|
}> | import("fefe").ObjectResult<{
|
|
249
233
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
250
234
|
name: import("fefe").Validator<string | import("./_helpers").Dictionary<string>, import("fefe").LeafError>;
|
|
251
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
252
|
-
optional: true;
|
|
253
|
-
};
|
|
235
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
254
236
|
}>[], import("fefe").FefeError>;
|
|
255
237
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
256
238
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -271,9 +253,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
271
253
|
}> | import("fefe").ObjectResult<{
|
|
272
254
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
273
255
|
name: import("fefe").Validator<string | import("./_helpers").Dictionary<string>, import("fefe").LeafError>;
|
|
274
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
275
|
-
optional: true;
|
|
276
|
-
};
|
|
256
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
277
257
|
}>[], import("fefe").FefeError>;
|
|
278
258
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
279
259
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -283,9 +263,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
283
263
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
284
264
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
285
265
|
}> | import("fefe").ObjectResult<{
|
|
286
|
-
itemval: import("fefe").Validator<string, import("fefe").FefeError
|
|
287
|
-
optional: true;
|
|
288
|
-
};
|
|
266
|
+
itemval: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
289
267
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
290
268
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
291
269
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
@@ -296,9 +274,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
296
274
|
}> | import("fefe").ObjectResult<{
|
|
297
275
|
items: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
298
276
|
name: import("fefe").Validator<string | import("./_helpers").Dictionary<string>, import("fefe").LeafError>;
|
|
299
|
-
value: import("fefe").Validator<string, import("fefe").FefeError
|
|
300
|
-
optional: true;
|
|
301
|
-
};
|
|
277
|
+
value: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
302
278
|
}>[], import("fefe").FefeError>;
|
|
303
279
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
304
280
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
package/dist/models/field.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { array, object, string,
|
|
1
|
+
import { array, object, string, enumerate, boolean, defaultTo, union, number } from 'fefe';
|
|
2
2
|
import { apiValidator } from '../lib';
|
|
3
3
|
import { dictionary, maybe } from './_helpers';
|
|
4
4
|
const basicFieldProps = {
|
|
@@ -46,7 +46,7 @@ const checkboxField = object({
|
|
|
46
46
|
...basicFieldProps,
|
|
47
47
|
items: array(object({
|
|
48
48
|
name: union(string(), dictionary(string())),
|
|
49
|
-
value:
|
|
49
|
+
value: defaultTo(maybe(string()), null)
|
|
50
50
|
}))
|
|
51
51
|
}, {
|
|
52
52
|
allowExcessProperties: true
|
|
@@ -63,7 +63,7 @@ const radioField = object({
|
|
|
63
63
|
...basicFieldProps,
|
|
64
64
|
items: array(object({
|
|
65
65
|
name: union(string(), dictionary(string())),
|
|
66
|
-
value:
|
|
66
|
+
value: defaultTo(maybe(string()), null)
|
|
67
67
|
}))
|
|
68
68
|
}, {
|
|
69
69
|
allowExcessProperties: true
|
|
@@ -71,7 +71,7 @@ const radioField = object({
|
|
|
71
71
|
const singleRadioField = object({
|
|
72
72
|
type: enumerate('radiobutton'),
|
|
73
73
|
...basicFieldProps,
|
|
74
|
-
itemval:
|
|
74
|
+
itemval: defaultTo(maybe(string()), null)
|
|
75
75
|
}, {
|
|
76
76
|
allowExcessProperties: true
|
|
77
77
|
});
|
|
@@ -80,7 +80,7 @@ const selectField = object({
|
|
|
80
80
|
...basicFieldProps,
|
|
81
81
|
items: array(object({
|
|
82
82
|
name: union(string(), dictionary(string())),
|
|
83
|
-
value:
|
|
83
|
+
value: defaultTo(maybe(string()), null)
|
|
84
84
|
}))
|
|
85
85
|
}, {
|
|
86
86
|
allowExcessProperties: true
|