@dev-crew-berlin/enter-js-utils 0.5.4 → 0.6.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.
@@ -0,0 +1,484 @@
1
+ import { ValidatorReturnType } from 'fefe';
2
+ import { APIResult } from '../lib';
3
+ import { Dictionary } from './_helpers';
4
+ declare type FieldTitle = string | Dictionary<string>;
5
+ export declare type FieldLabels = Record<string, FieldTitle | null>;
6
+ export declare class FieldGroups {
7
+ groups: FieldGroup[];
8
+ constructor(rawFieldGroupList: RawFieldGroupList);
9
+ toJSON(): FieldGroup[];
10
+ getFieldLabels(): FieldLabels;
11
+ getLabelForField(fieldKey: string, language: string): string;
12
+ }
13
+ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectResult<{
14
+ title: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
15
+ optional: true;
16
+ };
17
+ class: import("fefe").Validator<string, import("fefe").FefeError> & {
18
+ optional: true;
19
+ };
20
+ questions: import("fefe").Validator<(import("fefe").ObjectResult<{
21
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
22
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
23
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
24
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
25
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
26
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
27
+ type: import("fefe").Validator<"static", import("fefe").LeafError>;
28
+ }> | import("fefe").ObjectResult<{
29
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
30
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
31
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
32
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
33
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
34
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
35
+ type: import("fefe").Validator<"text", import("fefe").LeafError>;
36
+ }> | import("fefe").ObjectResult<{
37
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
38
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
39
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
40
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
41
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
42
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
43
+ type: import("fefe").Validator<"longtext", import("fefe").LeafError>;
44
+ }> | import("fefe").ObjectResult<{
45
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
46
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
47
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
48
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
49
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
50
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
51
+ type: import("fefe").Validator<"email", import("fefe").LeafError>;
52
+ }> | import("fefe").ObjectResult<{
53
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
54
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
55
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
56
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
57
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
58
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
59
+ type: import("fefe").Validator<"number", import("fefe").LeafError>;
60
+ }> | import("fefe").ObjectResult<{
61
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
62
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
63
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
64
+ optional: true;
65
+ };
66
+ }>[], import("fefe").FefeError>;
67
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
68
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
69
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
70
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
71
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
72
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
73
+ type: import("fefe").Validator<"check", import("fefe").LeafError>;
74
+ }> | import("fefe").ObjectResult<{
75
+ value: import("fefe").Validator<number, import("fefe").FefeError>;
76
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
77
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
78
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
79
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
80
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
81
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
82
+ type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
83
+ }> | import("fefe").ObjectResult<{
84
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
85
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
86
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
87
+ optional: true;
88
+ };
89
+ }>[], import("fefe").FefeError>;
90
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
91
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
92
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
93
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
94
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
95
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
96
+ type: import("fefe").Validator<"radio", import("fefe").LeafError>;
97
+ }> | import("fefe").ObjectResult<{
98
+ itemval: import("fefe").Validator<string, import("fefe").FefeError> & {
99
+ optional: true;
100
+ };
101
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
102
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
103
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
104
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
105
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
106
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
107
+ type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
108
+ }> | import("fefe").ObjectResult<{
109
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
110
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
111
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
112
+ optional: true;
113
+ };
114
+ }>[], import("fefe").FefeError>;
115
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
116
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
117
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
118
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
119
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
120
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
121
+ type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
122
+ }>)[], import("fefe").FefeError>;
123
+ info: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
124
+ optional: true;
125
+ };
126
+ if: import("fefe").Validator<string, import("fefe").FefeError> & {
127
+ optional: true;
128
+ };
129
+ }>, import("fefe").FefeError>;
130
+ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectResult<{
131
+ title: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
132
+ optional: true;
133
+ };
134
+ class: import("fefe").Validator<string, import("fefe").FefeError> & {
135
+ optional: true;
136
+ };
137
+ questions: import("fefe").Validator<(import("fefe").ObjectResult<{
138
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
139
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
140
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
141
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
142
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
143
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
144
+ type: import("fefe").Validator<"static", import("fefe").LeafError>;
145
+ }> | import("fefe").ObjectResult<{
146
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
147
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
148
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
149
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
150
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
151
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
152
+ type: import("fefe").Validator<"text", import("fefe").LeafError>;
153
+ }> | import("fefe").ObjectResult<{
154
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
155
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
156
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
157
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
158
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
159
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
160
+ type: import("fefe").Validator<"longtext", import("fefe").LeafError>;
161
+ }> | import("fefe").ObjectResult<{
162
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
163
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
164
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
165
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
166
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
167
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
168
+ type: import("fefe").Validator<"email", import("fefe").LeafError>;
169
+ }> | import("fefe").ObjectResult<{
170
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
171
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
172
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
173
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
174
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
175
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
176
+ type: import("fefe").Validator<"number", import("fefe").LeafError>;
177
+ }> | import("fefe").ObjectResult<{
178
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
179
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
180
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
181
+ optional: true;
182
+ };
183
+ }>[], import("fefe").FefeError>;
184
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
185
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
186
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
187
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
188
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
189
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
190
+ type: import("fefe").Validator<"check", import("fefe").LeafError>;
191
+ }> | import("fefe").ObjectResult<{
192
+ value: import("fefe").Validator<number, import("fefe").FefeError>;
193
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
194
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
195
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
196
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
197
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
198
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
199
+ type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
200
+ }> | import("fefe").ObjectResult<{
201
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
202
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
203
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
204
+ optional: true;
205
+ };
206
+ }>[], import("fefe").FefeError>;
207
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
208
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
209
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
210
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
211
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
212
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
213
+ type: import("fefe").Validator<"radio", import("fefe").LeafError>;
214
+ }> | import("fefe").ObjectResult<{
215
+ itemval: import("fefe").Validator<string, import("fefe").FefeError> & {
216
+ optional: true;
217
+ };
218
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
219
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
220
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
221
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
222
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
223
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
224
+ type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
225
+ }> | import("fefe").ObjectResult<{
226
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
227
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
228
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
229
+ optional: true;
230
+ };
231
+ }>[], import("fefe").FefeError>;
232
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
233
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
234
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
235
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
236
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
237
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
238
+ type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
239
+ }>)[], import("fefe").FefeError>;
240
+ info: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
241
+ optional: true;
242
+ };
243
+ if: import("fefe").Validator<string, import("fefe").FefeError> & {
244
+ optional: true;
245
+ };
246
+ }>[], import("fefe").FefeError>;
247
+ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe").ObjectResult<{
248
+ title: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
249
+ optional: true;
250
+ };
251
+ class: import("fefe").Validator<string, import("fefe").FefeError> & {
252
+ optional: true;
253
+ };
254
+ questions: import("fefe").Validator<(import("fefe").ObjectResult<{
255
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
256
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
257
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
258
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
259
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
260
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
261
+ type: import("fefe").Validator<"static", import("fefe").LeafError>;
262
+ }> | import("fefe").ObjectResult<{
263
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
264
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
265
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
266
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
267
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
268
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
269
+ type: import("fefe").Validator<"text", import("fefe").LeafError>;
270
+ }> | import("fefe").ObjectResult<{
271
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
272
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
273
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
274
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
275
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
276
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
277
+ type: import("fefe").Validator<"longtext", import("fefe").LeafError>;
278
+ }> | import("fefe").ObjectResult<{
279
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
280
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
281
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
282
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
283
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
284
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
285
+ type: import("fefe").Validator<"email", import("fefe").LeafError>;
286
+ }> | import("fefe").ObjectResult<{
287
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
288
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
289
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
290
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
291
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
292
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
293
+ type: import("fefe").Validator<"number", import("fefe").LeafError>;
294
+ }> | import("fefe").ObjectResult<{
295
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
296
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
297
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
298
+ optional: true;
299
+ };
300
+ }>[], import("fefe").FefeError>;
301
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
302
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
303
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
304
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
305
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
306
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
307
+ type: import("fefe").Validator<"check", import("fefe").LeafError>;
308
+ }> | import("fefe").ObjectResult<{
309
+ value: import("fefe").Validator<number, import("fefe").FefeError>;
310
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
311
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
312
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
313
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
314
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
315
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
316
+ type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
317
+ }> | import("fefe").ObjectResult<{
318
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
319
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
320
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
321
+ optional: true;
322
+ };
323
+ }>[], import("fefe").FefeError>;
324
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
325
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
326
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
327
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
328
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
329
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
330
+ type: import("fefe").Validator<"radio", import("fefe").LeafError>;
331
+ }> | import("fefe").ObjectResult<{
332
+ itemval: import("fefe").Validator<string, import("fefe").FefeError> & {
333
+ optional: true;
334
+ };
335
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
336
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
337
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
338
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
339
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
340
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
341
+ type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
342
+ }> | import("fefe").ObjectResult<{
343
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
344
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
345
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
346
+ optional: true;
347
+ };
348
+ }>[], import("fefe").FefeError>;
349
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
350
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
351
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
352
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
353
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
354
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
355
+ type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
356
+ }>)[], import("fefe").FefeError>;
357
+ info: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
358
+ optional: true;
359
+ };
360
+ if: import("fefe").Validator<string, import("fefe").FefeError> & {
361
+ optional: true;
362
+ };
363
+ }>>;
364
+ export declare const parseRawFieldGroupList: import("../lib").APIValidator<import("fefe").ObjectResult<{
365
+ title: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
366
+ optional: true;
367
+ };
368
+ class: import("fefe").Validator<string, import("fefe").FefeError> & {
369
+ optional: true;
370
+ };
371
+ questions: import("fefe").Validator<(import("fefe").ObjectResult<{
372
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
373
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
374
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
375
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
376
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
377
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
378
+ type: import("fefe").Validator<"static", import("fefe").LeafError>;
379
+ }> | import("fefe").ObjectResult<{
380
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
381
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
382
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
383
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
384
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
385
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
386
+ type: import("fefe").Validator<"text", import("fefe").LeafError>;
387
+ }> | import("fefe").ObjectResult<{
388
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
389
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
390
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
391
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
392
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
393
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
394
+ type: import("fefe").Validator<"longtext", import("fefe").LeafError>;
395
+ }> | import("fefe").ObjectResult<{
396
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
397
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
398
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
399
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
400
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
401
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
402
+ type: import("fefe").Validator<"email", import("fefe").LeafError>;
403
+ }> | import("fefe").ObjectResult<{
404
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
405
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
406
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
407
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
408
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
409
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
410
+ type: import("fefe").Validator<"number", import("fefe").LeafError>;
411
+ }> | import("fefe").ObjectResult<{
412
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
413
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
414
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
415
+ optional: true;
416
+ };
417
+ }>[], import("fefe").FefeError>;
418
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
419
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
420
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
421
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
422
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
423
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
424
+ type: import("fefe").Validator<"check", import("fefe").LeafError>;
425
+ }> | import("fefe").ObjectResult<{
426
+ value: import("fefe").Validator<number, import("fefe").FefeError>;
427
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
428
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
429
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
430
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
431
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
432
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
433
+ type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
434
+ }> | import("fefe").ObjectResult<{
435
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
436
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
437
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
438
+ optional: true;
439
+ };
440
+ }>[], import("fefe").FefeError>;
441
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
442
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
443
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
444
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
445
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
446
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
447
+ type: import("fefe").Validator<"radio", import("fefe").LeafError>;
448
+ }> | import("fefe").ObjectResult<{
449
+ itemval: import("fefe").Validator<string, import("fefe").FefeError> & {
450
+ optional: true;
451
+ };
452
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
453
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
454
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
455
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
456
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
457
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
458
+ type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
459
+ }> | import("fefe").ObjectResult<{
460
+ items: import("fefe").Validator<import("fefe").ObjectResult<{
461
+ name: import("fefe").Validator<string | Dictionary<string>, import("fefe").LeafError>;
462
+ value: import("fefe").Validator<string, import("fefe").FefeError> & {
463
+ optional: true;
464
+ };
465
+ }>[], import("fefe").FefeError>;
466
+ name: import("fefe").Validator<string, import("fefe").LeafError>;
467
+ title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
468
+ info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
469
+ required: import("fefe").Validator<boolean, import("fefe").FefeError>;
470
+ if: import("fefe").Validator<string | null, import("fefe").FefeError>;
471
+ class: import("fefe").Validator<string | null, import("fefe").FefeError>;
472
+ type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
473
+ }>)[], import("fefe").FefeError>;
474
+ info: import("fefe").Validator<string | Dictionary<string>, import("fefe").FefeError> & {
475
+ optional: true;
476
+ };
477
+ if: import("fefe").Validator<string, import("fefe").FefeError> & {
478
+ optional: true;
479
+ };
480
+ }>[]>;
481
+ export declare type RawFieldGroupList = ValidatorReturnType<typeof rawFieldGroupList>;
482
+ export declare type FieldGroup = ValidatorReturnType<typeof fieldGroup>;
483
+ export declare const parseFieldGroups: (value: unknown) => APIResult<FieldGroups>;
484
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare type FieldValue = string | number | string[] | null;
2
+ export declare const rawFieldValue: import("fefe").Validator<string | number | string[] | null, import("fefe").FefeError>;