@adrekic/zod-fieldsjson 1.0.0 → 1.0.1-compound-conditions.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.
@@ -1,816 +1,12 @@
1
+ import { JSONFieldSchema } from '../fields';
2
+ import { JSONFieldSectionSchema } from './section';
1
3
  import * as z from "zod/v4";
2
4
  export * from './base';
3
5
  export * from './section';
4
6
  export declare const JSONFieldElementTypeSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"boolean">, z.ZodLiteral<"checkbox-list">, z.ZodLiteral<"date">, z.ZodLiteral<"multi-select">, z.ZodLiteral<"multi-string">, z.ZodLiteral<"number">, z.ZodLiteral<"otp">, z.ZodLiteral<"pass-fail">, z.ZodLiteral<"radio">, z.ZodLiteral<"rating">, z.ZodLiteral<"qr">, z.ZodLiteral<"select">, z.ZodLiteral<"string">, z.ZodLiteral<"text">, z.ZodLiteral<"time">, z.ZodLiteral<"upload">, z.ZodLiteral<"url">]>, z.ZodLiteral<"section">]>;
5
7
  export type JSONFieldElementTypeSchemaType = z.infer<typeof JSONFieldElementTypeSchema>;
6
- export declare const JSONFieldElementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
- label: z.ZodOptional<z.ZodString>;
8
- description: z.ZodOptional<z.ZodString>;
9
- conditions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
10
- id: z.ZodString;
11
- type: z.ZodLiteral<"boolean">;
12
- field: z.ZodString;
13
- value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
14
- modifier: z.ZodLiteral<"equals">;
15
- }, z.core.$strip>, z.ZodObject<{
16
- id: z.ZodString;
17
- type: z.ZodLiteral<"boolean">;
18
- field: z.ZodString;
19
- value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
20
- modifier: z.ZodLiteral<"notEquals">;
21
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
22
- id: z.ZodString;
23
- type: z.ZodLiteral<"checkbox-list">;
24
- field: z.ZodString;
25
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
26
- modifier: z.ZodLiteral<"equals">;
27
- }, z.core.$strip>, z.ZodObject<{
28
- id: z.ZodString;
29
- type: z.ZodLiteral<"checkbox-list">;
30
- field: z.ZodString;
31
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
32
- modifier: z.ZodLiteral<"notEquals">;
33
- }, z.core.$strip>, z.ZodObject<{
34
- id: z.ZodString;
35
- type: z.ZodLiteral<"checkbox-list">;
36
- field: z.ZodString;
37
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
38
- modifier: z.ZodLiteral<"every">;
39
- }, z.core.$strip>, z.ZodObject<{
40
- id: z.ZodString;
41
- type: z.ZodLiteral<"checkbox-list">;
42
- field: z.ZodString;
43
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
44
- modifier: z.ZodLiteral<"some">;
45
- }, z.core.$strip>, z.ZodObject<{
46
- id: z.ZodString;
47
- type: z.ZodLiteral<"checkbox-list">;
48
- field: z.ZodString;
49
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
50
- modifier: z.ZodLiteral<"none">;
51
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
52
- id: z.ZodString;
53
- type: z.ZodLiteral<"date">;
54
- field: z.ZodString;
55
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
56
- modifier: z.ZodLiteral<"equals">;
57
- }, z.core.$strip>, z.ZodObject<{
58
- id: z.ZodString;
59
- type: z.ZodLiteral<"date">;
60
- field: z.ZodString;
61
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
62
- modifier: z.ZodLiteral<"notEquals">;
63
- }, z.core.$strip>, z.ZodObject<{
64
- id: z.ZodString;
65
- type: z.ZodLiteral<"date">;
66
- field: z.ZodString;
67
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
68
- modifier: z.ZodLiteral<"before">;
69
- }, z.core.$strip>, z.ZodObject<{
70
- id: z.ZodString;
71
- type: z.ZodLiteral<"date">;
72
- field: z.ZodString;
73
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
74
- modifier: z.ZodLiteral<"after">;
75
- }, z.core.$strip>, z.ZodObject<{
76
- id: z.ZodString;
77
- type: z.ZodLiteral<"date">;
78
- field: z.ZodString;
79
- value: z.ZodType<{
80
- from: string | null;
81
- to: string | null;
82
- }, unknown, z.core.$ZodTypeInternals<{
83
- from: string | null;
84
- to: string | null;
85
- }, unknown>>;
86
- modifier: z.ZodLiteral<"in">;
87
- }, z.core.$strip>, z.ZodObject<{
88
- id: z.ZodString;
89
- type: z.ZodLiteral<"date">;
90
- field: z.ZodString;
91
- value: z.ZodType<{
92
- from: string | null;
93
- to: string | null;
94
- }, unknown, z.core.$ZodTypeInternals<{
95
- from: string | null;
96
- to: string | null;
97
- }, unknown>>;
98
- modifier: z.ZodLiteral<"notIn">;
99
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
100
- id: z.ZodString;
101
- type: z.ZodLiteral<"multi-select">;
102
- field: z.ZodString;
103
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
104
- modifier: z.ZodLiteral<"equals">;
105
- }, z.core.$strip>, z.ZodObject<{
106
- id: z.ZodString;
107
- type: z.ZodLiteral<"multi-select">;
108
- field: z.ZodString;
109
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
110
- modifier: z.ZodLiteral<"notEquals">;
111
- }, z.core.$strip>, z.ZodObject<{
112
- id: z.ZodString;
113
- type: z.ZodLiteral<"multi-select">;
114
- field: z.ZodString;
115
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
116
- modifier: z.ZodLiteral<"every">;
117
- }, z.core.$strip>, z.ZodObject<{
118
- id: z.ZodString;
119
- type: z.ZodLiteral<"multi-select">;
120
- field: z.ZodString;
121
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
122
- modifier: z.ZodLiteral<"some">;
123
- }, z.core.$strip>, z.ZodObject<{
124
- id: z.ZodString;
125
- type: z.ZodLiteral<"multi-select">;
126
- field: z.ZodString;
127
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
128
- modifier: z.ZodLiteral<"none">;
129
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
130
- id: z.ZodString;
131
- type: z.ZodLiteral<"multi-string">;
132
- field: z.ZodString;
133
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
134
- modifier: z.ZodLiteral<"equals">;
135
- }, z.core.$strip>, z.ZodObject<{
136
- id: z.ZodString;
137
- type: z.ZodLiteral<"multi-string">;
138
- field: z.ZodString;
139
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
140
- modifier: z.ZodLiteral<"notEquals">;
141
- }, z.core.$strip>, z.ZodObject<{
142
- id: z.ZodString;
143
- type: z.ZodLiteral<"multi-string">;
144
- field: z.ZodString;
145
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
146
- modifier: z.ZodLiteral<"every">;
147
- }, z.core.$strip>, z.ZodObject<{
148
- id: z.ZodString;
149
- type: z.ZodLiteral<"multi-string">;
150
- field: z.ZodString;
151
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
152
- modifier: z.ZodLiteral<"some">;
153
- }, z.core.$strip>, z.ZodObject<{
154
- id: z.ZodString;
155
- type: z.ZodLiteral<"multi-string">;
156
- field: z.ZodString;
157
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
158
- modifier: z.ZodLiteral<"none">;
159
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
160
- id: z.ZodString;
161
- type: z.ZodLiteral<"number">;
162
- field: z.ZodString;
163
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
164
- modifier: z.ZodLiteral<"equals">;
165
- }, z.core.$strip>, z.ZodObject<{
166
- id: z.ZodString;
167
- type: z.ZodLiteral<"number">;
168
- field: z.ZodString;
169
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
170
- modifier: z.ZodLiteral<"notEquals">;
171
- }, z.core.$strip>, z.ZodObject<{
172
- id: z.ZodString;
173
- type: z.ZodLiteral<"number">;
174
- field: z.ZodString;
175
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
176
- modifier: z.ZodLiteral<"lessThan">;
177
- }, z.core.$strip>, z.ZodObject<{
178
- id: z.ZodString;
179
- type: z.ZodLiteral<"number">;
180
- field: z.ZodString;
181
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
182
- modifier: z.ZodLiteral<"lessThanOrEquals">;
183
- }, z.core.$strip>, z.ZodObject<{
184
- id: z.ZodString;
185
- type: z.ZodLiteral<"number">;
186
- field: z.ZodString;
187
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
188
- modifier: z.ZodLiteral<"greaterThan">;
189
- }, z.core.$strip>, z.ZodObject<{
190
- id: z.ZodString;
191
- type: z.ZodLiteral<"number">;
192
- field: z.ZodString;
193
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
194
- modifier: z.ZodLiteral<"greaterThanOrEquals">;
195
- }, z.core.$strip>, z.ZodObject<{
196
- id: z.ZodString;
197
- type: z.ZodLiteral<"number">;
198
- field: z.ZodString;
199
- value: z.ZodType<{
200
- from: number | null;
201
- to: number | null;
202
- }, unknown, z.core.$ZodTypeInternals<{
203
- from: number | null;
204
- to: number | null;
205
- }, unknown>>;
206
- modifier: z.ZodLiteral<"inRange">;
207
- }, z.core.$strip>, z.ZodObject<{
208
- id: z.ZodString;
209
- type: z.ZodLiteral<"number">;
210
- field: z.ZodString;
211
- value: z.ZodType<{
212
- from: number | null;
213
- to: number | null;
214
- }, unknown, z.core.$ZodTypeInternals<{
215
- from: number | null;
216
- to: number | null;
217
- }, unknown>>;
218
- modifier: z.ZodLiteral<"notInRange">;
219
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
220
- id: z.ZodString;
221
- type: z.ZodLiteral<"otp">;
222
- field: z.ZodString;
223
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
224
- modifier: z.ZodLiteral<"equals">;
225
- }, z.core.$strip>, z.ZodObject<{
226
- id: z.ZodString;
227
- type: z.ZodLiteral<"otp">;
228
- field: z.ZodString;
229
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
230
- modifier: z.ZodLiteral<"notEquals">;
231
- }, z.core.$strip>, z.ZodObject<{
232
- id: z.ZodString;
233
- type: z.ZodLiteral<"otp">;
234
- field: z.ZodString;
235
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
236
- modifier: z.ZodLiteral<"includes">;
237
- }, z.core.$strip>, z.ZodObject<{
238
- id: z.ZodString;
239
- type: z.ZodLiteral<"otp">;
240
- field: z.ZodString;
241
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
242
- modifier: z.ZodLiteral<"excludes">;
243
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
244
- id: z.ZodString;
245
- type: z.ZodLiteral<"pass-fail">;
246
- field: z.ZodString;
247
- value: z.ZodType<"pass" | "fail" | "na", unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na", unknown>>;
248
- modifier: z.ZodLiteral<"equals">;
249
- }, z.core.$strip>, z.ZodObject<{
250
- id: z.ZodString;
251
- type: z.ZodLiteral<"pass-fail">;
252
- field: z.ZodString;
253
- value: z.ZodType<"pass" | "fail" | "na", unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na", unknown>>;
254
- modifier: z.ZodLiteral<"notEquals">;
255
- }, z.core.$strip>, z.ZodObject<{
256
- id: z.ZodString;
257
- type: z.ZodLiteral<"pass-fail">;
258
- field: z.ZodString;
259
- value: z.ZodType<("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<("pass" | "fail" | "na")[], unknown>>;
260
- modifier: z.ZodLiteral<"includes">;
261
- }, z.core.$strip>, z.ZodObject<{
262
- id: z.ZodString;
263
- type: z.ZodLiteral<"pass-fail">;
264
- field: z.ZodString;
265
- value: z.ZodType<("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<("pass" | "fail" | "na")[], unknown>>;
266
- modifier: z.ZodLiteral<"excludes">;
267
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
268
- id: z.ZodString;
269
- type: z.ZodLiteral<"radio">;
270
- field: z.ZodString;
271
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
272
- modifier: z.ZodLiteral<"equals">;
273
- }, z.core.$strip>, z.ZodObject<{
274
- id: z.ZodString;
275
- type: z.ZodLiteral<"radio">;
276
- field: z.ZodString;
277
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
278
- modifier: z.ZodLiteral<"notEquals">;
279
- }, z.core.$strip>, z.ZodObject<{
280
- id: z.ZodString;
281
- type: z.ZodLiteral<"radio">;
282
- field: z.ZodString;
283
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
284
- modifier: z.ZodLiteral<"includes">;
285
- }, z.core.$strip>, z.ZodObject<{
286
- id: z.ZodString;
287
- type: z.ZodLiteral<"radio">;
288
- field: z.ZodString;
289
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
290
- modifier: z.ZodLiteral<"excludes">;
291
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
292
- id: z.ZodString;
293
- type: z.ZodLiteral<"rating">;
294
- field: z.ZodString;
295
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
296
- modifier: z.ZodLiteral<"equals">;
297
- }, z.core.$strip>, z.ZodObject<{
298
- id: z.ZodString;
299
- type: z.ZodLiteral<"rating">;
300
- field: z.ZodString;
301
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
302
- modifier: z.ZodLiteral<"notEquals">;
303
- }, z.core.$strip>, z.ZodObject<{
304
- id: z.ZodString;
305
- type: z.ZodLiteral<"rating">;
306
- field: z.ZodString;
307
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
308
- modifier: z.ZodLiteral<"lessThan">;
309
- }, z.core.$strip>, z.ZodObject<{
310
- id: z.ZodString;
311
- type: z.ZodLiteral<"rating">;
312
- field: z.ZodString;
313
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
314
- modifier: z.ZodLiteral<"lessThanOrEquals">;
315
- }, z.core.$strip>, z.ZodObject<{
316
- id: z.ZodString;
317
- type: z.ZodLiteral<"rating">;
318
- field: z.ZodString;
319
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
320
- modifier: z.ZodLiteral<"greaterThan">;
321
- }, z.core.$strip>, z.ZodObject<{
322
- id: z.ZodString;
323
- type: z.ZodLiteral<"rating">;
324
- field: z.ZodString;
325
- value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
326
- modifier: z.ZodLiteral<"greaterThanOrEquals">;
327
- }, z.core.$strip>, z.ZodObject<{
328
- id: z.ZodString;
329
- type: z.ZodLiteral<"rating">;
330
- field: z.ZodString;
331
- value: z.ZodType<{
332
- from: number | null;
333
- to: number | null;
334
- }, unknown, z.core.$ZodTypeInternals<{
335
- from: number | null;
336
- to: number | null;
337
- }, unknown>>;
338
- modifier: z.ZodLiteral<"inRange">;
339
- }, z.core.$strip>, z.ZodObject<{
340
- id: z.ZodString;
341
- type: z.ZodLiteral<"rating">;
342
- field: z.ZodString;
343
- value: z.ZodType<{
344
- from: number | null;
345
- to: number | null;
346
- }, unknown, z.core.$ZodTypeInternals<{
347
- from: number | null;
348
- to: number | null;
349
- }, unknown>>;
350
- modifier: z.ZodLiteral<"notInRange">;
351
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
352
- id: z.ZodString;
353
- type: z.ZodLiteral<"qr">;
354
- field: z.ZodString;
355
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
356
- modifier: z.ZodLiteral<"equals">;
357
- }, z.core.$strip>, z.ZodObject<{
358
- id: z.ZodString;
359
- type: z.ZodLiteral<"qr">;
360
- field: z.ZodString;
361
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
362
- modifier: z.ZodLiteral<"notEquals">;
363
- }, z.core.$strip>, z.ZodObject<{
364
- id: z.ZodString;
365
- type: z.ZodLiteral<"qr">;
366
- field: z.ZodString;
367
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
368
- modifier: z.ZodLiteral<"includes">;
369
- }, z.core.$strip>, z.ZodObject<{
370
- id: z.ZodString;
371
- type: z.ZodLiteral<"qr">;
372
- field: z.ZodString;
373
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
374
- modifier: z.ZodLiteral<"excludes">;
375
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
376
- id: z.ZodString;
377
- type: z.ZodLiteral<"select">;
378
- field: z.ZodString;
379
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
380
- modifier: z.ZodLiteral<"equals">;
381
- }, z.core.$strip>, z.ZodObject<{
382
- id: z.ZodString;
383
- type: z.ZodLiteral<"select">;
384
- field: z.ZodString;
385
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
386
- modifier: z.ZodLiteral<"notEquals">;
387
- }, z.core.$strip>, z.ZodObject<{
388
- id: z.ZodString;
389
- type: z.ZodLiteral<"select">;
390
- field: z.ZodString;
391
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
392
- modifier: z.ZodLiteral<"includes">;
393
- }, z.core.$strip>, z.ZodObject<{
394
- id: z.ZodString;
395
- type: z.ZodLiteral<"select">;
396
- field: z.ZodString;
397
- value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
398
- modifier: z.ZodLiteral<"excludes">;
399
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
400
- id: z.ZodString;
401
- type: z.ZodLiteral<"string">;
402
- field: z.ZodString;
403
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
404
- modifier: z.ZodLiteral<"equals">;
405
- }, z.core.$strip>, z.ZodObject<{
406
- id: z.ZodString;
407
- type: z.ZodLiteral<"string">;
408
- field: z.ZodString;
409
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
410
- modifier: z.ZodLiteral<"notEquals">;
411
- }, z.core.$strip>, z.ZodObject<{
412
- id: z.ZodString;
413
- type: z.ZodLiteral<"string">;
414
- field: z.ZodString;
415
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
416
- modifier: z.ZodLiteral<"includes">;
417
- }, z.core.$strip>, z.ZodObject<{
418
- id: z.ZodString;
419
- type: z.ZodLiteral<"string">;
420
- field: z.ZodString;
421
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
422
- modifier: z.ZodLiteral<"excludes">;
423
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
424
- id: z.ZodString;
425
- type: z.ZodLiteral<"text">;
426
- field: z.ZodString;
427
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
428
- modifier: z.ZodLiteral<"equals">;
429
- }, z.core.$strip>, z.ZodObject<{
430
- id: z.ZodString;
431
- type: z.ZodLiteral<"text">;
432
- field: z.ZodString;
433
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
434
- modifier: z.ZodLiteral<"notEquals">;
435
- }, z.core.$strip>, z.ZodObject<{
436
- id: z.ZodString;
437
- type: z.ZodLiteral<"text">;
438
- field: z.ZodString;
439
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
440
- modifier: z.ZodLiteral<"includes">;
441
- }, z.core.$strip>, z.ZodObject<{
442
- id: z.ZodString;
443
- type: z.ZodLiteral<"text">;
444
- field: z.ZodString;
445
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
446
- modifier: z.ZodLiteral<"excludes">;
447
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
448
- id: z.ZodString;
449
- type: z.ZodLiteral<"time">;
450
- field: z.ZodString;
451
- value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown>>;
452
- modifier: z.ZodLiteral<"equals">;
453
- }, z.core.$strip>, z.ZodObject<{
454
- id: z.ZodString;
455
- type: z.ZodLiteral<"time">;
456
- field: z.ZodString;
457
- value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown>>;
458
- modifier: z.ZodLiteral<"notEquals">;
459
- }, z.core.$strip>, z.ZodObject<{
460
- id: z.ZodString;
461
- type: z.ZodLiteral<"time">;
462
- field: z.ZodString;
463
- value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown>>;
464
- modifier: z.ZodLiteral<"before">;
465
- }, z.core.$strip>, z.ZodObject<{
466
- id: z.ZodString;
467
- type: z.ZodLiteral<"time">;
468
- field: z.ZodString;
469
- value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown>>;
470
- modifier: z.ZodLiteral<"after">;
471
- }, z.core.$strip>, z.ZodObject<{
472
- id: z.ZodString;
473
- type: z.ZodLiteral<"time">;
474
- field: z.ZodString;
475
- value: z.ZodType<{
476
- from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
477
- to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
478
- }, unknown, z.core.$ZodTypeInternals<{
479
- from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
480
- to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
481
- }, unknown>>;
482
- modifier: z.ZodLiteral<"in">;
483
- }, z.core.$strip>, z.ZodObject<{
484
- id: z.ZodString;
485
- type: z.ZodLiteral<"time">;
486
- field: z.ZodString;
487
- value: z.ZodType<{
488
- from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
489
- to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
490
- }, unknown, z.core.$ZodTypeInternals<{
491
- from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
492
- to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
493
- }, unknown>>;
494
- modifier: z.ZodLiteral<"notIn">;
495
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
496
- id: z.ZodString;
497
- type: z.ZodLiteral<"upload">;
498
- field: z.ZodString;
499
- value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
500
- modifier: z.ZodLiteral<"equals">;
501
- }, z.core.$strip>, z.ZodObject<{
502
- id: z.ZodString;
503
- type: z.ZodLiteral<"upload">;
504
- field: z.ZodString;
505
- value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
506
- modifier: z.ZodLiteral<"notEquals">;
507
- }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
508
- id: z.ZodString;
509
- type: z.ZodLiteral<"url">;
510
- field: z.ZodString;
511
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
512
- modifier: z.ZodLiteral<"equals">;
513
- }, z.core.$strip>, z.ZodObject<{
514
- id: z.ZodString;
515
- type: z.ZodLiteral<"url">;
516
- field: z.ZodString;
517
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
518
- modifier: z.ZodLiteral<"notEquals">;
519
- }, z.core.$strip>, z.ZodObject<{
520
- id: z.ZodString;
521
- type: z.ZodLiteral<"url">;
522
- field: z.ZodString;
523
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
524
- modifier: z.ZodLiteral<"includes">;
525
- }, z.core.$strip>, z.ZodObject<{
526
- id: z.ZodString;
527
- type: z.ZodLiteral<"url">;
528
- field: z.ZodString;
529
- value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
530
- modifier: z.ZodLiteral<"excludes">;
531
- }, z.core.$strip>], "modifier">], "type">>>>;
532
- fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
533
- label: z.ZodOptional<z.ZodString>;
534
- description: z.ZodOptional<z.ZodString>;
535
- required: z.ZodOptional<z.ZodBoolean>;
536
- id: z.ZodString;
537
- type: z.ZodLiteral<"boolean">;
538
- }, z.core.$strip>, z.ZodObject<{
539
- options: z.ZodArray<z.ZodObject<{
540
- value: z.ZodString;
541
- label: z.ZodString;
542
- }, z.core.$strip>>;
543
- label: z.ZodOptional<z.ZodString>;
544
- description: z.ZodOptional<z.ZodString>;
545
- required: z.ZodOptional<z.ZodBoolean>;
546
- id: z.ZodString;
547
- type: z.ZodLiteral<"checkbox-list">;
548
- }, z.core.$strip>, z.ZodObject<{
549
- label: z.ZodOptional<z.ZodString>;
550
- description: z.ZodOptional<z.ZodString>;
551
- required: z.ZodOptional<z.ZodBoolean>;
552
- id: z.ZodString;
553
- type: z.ZodLiteral<"date">;
554
- }, z.core.$strip>, z.ZodObject<{
555
- placeholder: z.ZodOptional<z.ZodString>;
556
- options: z.ZodArray<z.ZodObject<{
557
- value: z.ZodString;
558
- label: z.ZodString;
559
- }, z.core.$strip>>;
560
- label: z.ZodOptional<z.ZodString>;
561
- description: z.ZodOptional<z.ZodString>;
562
- required: z.ZodOptional<z.ZodBoolean>;
563
- id: z.ZodString;
564
- type: z.ZodLiteral<"multi-select">;
565
- }, z.core.$strip>, z.ZodObject<{
566
- minLength: z.ZodOptional<z.ZodInt>;
567
- maxLength: z.ZodOptional<z.ZodInt>;
568
- placeholder: z.ZodOptional<z.ZodString>;
569
- label: z.ZodOptional<z.ZodString>;
570
- description: z.ZodOptional<z.ZodString>;
571
- required: z.ZodOptional<z.ZodBoolean>;
572
- id: z.ZodString;
573
- type: z.ZodLiteral<"multi-string">;
574
- }, z.core.$strip>, z.ZodObject<{
575
- minimum: z.ZodOptional<z.ZodNumber>;
576
- maximum: z.ZodOptional<z.ZodNumber>;
577
- integers: z.ZodOptional<z.ZodBoolean>;
578
- placeholder: z.ZodOptional<z.ZodString>;
579
- label: z.ZodOptional<z.ZodString>;
580
- description: z.ZodOptional<z.ZodString>;
581
- required: z.ZodOptional<z.ZodBoolean>;
582
- id: z.ZodString;
583
- type: z.ZodLiteral<"number">;
584
- }, z.core.$strip>, z.ZodObject<{
585
- length: z.ZodInt;
586
- label: z.ZodOptional<z.ZodString>;
587
- description: z.ZodOptional<z.ZodString>;
588
- required: z.ZodOptional<z.ZodBoolean>;
589
- id: z.ZodString;
590
- type: z.ZodLiteral<"otp">;
591
- }, z.core.$strip>, z.ZodObject<{
592
- showNotesAndFilesOn: z.ZodArray<z.ZodLiteral<"pass" | "fail" | "na">>;
593
- label: z.ZodOptional<z.ZodString>;
594
- description: z.ZodOptional<z.ZodString>;
595
- required: z.ZodOptional<z.ZodBoolean>;
596
- id: z.ZodString;
597
- type: z.ZodLiteral<"pass-fail">;
598
- }, z.core.$strip>, z.ZodObject<{
599
- options: z.ZodArray<z.ZodObject<{
600
- value: z.ZodString;
601
- label: z.ZodString;
602
- }, z.core.$strip>>;
603
- label: z.ZodOptional<z.ZodString>;
604
- description: z.ZodOptional<z.ZodString>;
605
- required: z.ZodOptional<z.ZodBoolean>;
606
- id: z.ZodString;
607
- type: z.ZodLiteral<"radio">;
608
- }, z.core.$strip>, z.ZodObject<{
609
- maxRating: z.ZodInt;
610
- label: z.ZodOptional<z.ZodString>;
611
- description: z.ZodOptional<z.ZodString>;
612
- required: z.ZodOptional<z.ZodBoolean>;
613
- id: z.ZodString;
614
- type: z.ZodLiteral<"rating">;
615
- }, z.core.$strip>, z.ZodObject<{
616
- label: z.ZodOptional<z.ZodString>;
617
- description: z.ZodOptional<z.ZodString>;
618
- required: z.ZodOptional<z.ZodBoolean>;
619
- id: z.ZodString;
620
- type: z.ZodLiteral<"qr">;
621
- }, z.core.$strip>, z.ZodObject<{
622
- placeholder: z.ZodOptional<z.ZodString>;
623
- options: z.ZodArray<z.ZodObject<{
624
- value: z.ZodString;
625
- label: z.ZodString;
626
- }, z.core.$strip>>;
627
- label: z.ZodOptional<z.ZodString>;
628
- description: z.ZodOptional<z.ZodString>;
629
- required: z.ZodOptional<z.ZodBoolean>;
630
- id: z.ZodString;
631
- type: z.ZodLiteral<"select">;
632
- }, z.core.$strip>, z.ZodObject<{
633
- minLength: z.ZodOptional<z.ZodInt>;
634
- maxLength: z.ZodOptional<z.ZodInt>;
635
- placeholder: z.ZodOptional<z.ZodString>;
636
- label: z.ZodOptional<z.ZodString>;
637
- description: z.ZodOptional<z.ZodString>;
638
- required: z.ZodOptional<z.ZodBoolean>;
639
- id: z.ZodString;
640
- type: z.ZodLiteral<"string">;
641
- }, z.core.$strip>, z.ZodObject<{
642
- minLength: z.ZodOptional<z.ZodInt>;
643
- maxLength: z.ZodOptional<z.ZodInt>;
644
- placeholder: z.ZodOptional<z.ZodString>;
645
- label: z.ZodOptional<z.ZodString>;
646
- description: z.ZodOptional<z.ZodString>;
647
- required: z.ZodOptional<z.ZodBoolean>;
648
- id: z.ZodString;
649
- type: z.ZodLiteral<"text">;
650
- }, z.core.$strip>, z.ZodObject<{
651
- label: z.ZodOptional<z.ZodString>;
652
- description: z.ZodOptional<z.ZodString>;
653
- required: z.ZodOptional<z.ZodBoolean>;
654
- id: z.ZodString;
655
- type: z.ZodLiteral<"time">;
656
- }, z.core.$strip>, z.ZodObject<{
657
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
658
- maxSize: z.ZodOptional<z.ZodInt>;
659
- maxFiles: z.ZodOptional<z.ZodInt>;
660
- label: z.ZodOptional<z.ZodString>;
661
- description: z.ZodOptional<z.ZodString>;
662
- required: z.ZodOptional<z.ZodBoolean>;
663
- id: z.ZodString;
664
- type: z.ZodLiteral<"upload">;
665
- }, z.core.$strip>, z.ZodObject<{
666
- placeholder: z.ZodOptional<z.ZodString>;
667
- label: z.ZodOptional<z.ZodString>;
668
- description: z.ZodOptional<z.ZodString>;
669
- required: z.ZodOptional<z.ZodBoolean>;
670
- id: z.ZodString;
671
- type: z.ZodLiteral<"url">;
672
- }, z.core.$strip>], "type">>;
673
- id: z.ZodString;
674
- type: z.ZodLiteral<"section">;
675
- }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
676
- label: z.ZodOptional<z.ZodString>;
677
- description: z.ZodOptional<z.ZodString>;
678
- required: z.ZodOptional<z.ZodBoolean>;
679
- id: z.ZodString;
680
- type: z.ZodLiteral<"boolean">;
681
- }, z.core.$strip>, z.ZodObject<{
682
- options: z.ZodArray<z.ZodObject<{
683
- value: z.ZodString;
684
- label: z.ZodString;
685
- }, z.core.$strip>>;
686
- label: z.ZodOptional<z.ZodString>;
687
- description: z.ZodOptional<z.ZodString>;
688
- required: z.ZodOptional<z.ZodBoolean>;
689
- id: z.ZodString;
690
- type: z.ZodLiteral<"checkbox-list">;
691
- }, z.core.$strip>, z.ZodObject<{
692
- label: z.ZodOptional<z.ZodString>;
693
- description: z.ZodOptional<z.ZodString>;
694
- required: z.ZodOptional<z.ZodBoolean>;
695
- id: z.ZodString;
696
- type: z.ZodLiteral<"date">;
697
- }, z.core.$strip>, z.ZodObject<{
698
- placeholder: z.ZodOptional<z.ZodString>;
699
- options: z.ZodArray<z.ZodObject<{
700
- value: z.ZodString;
701
- label: z.ZodString;
702
- }, z.core.$strip>>;
703
- label: z.ZodOptional<z.ZodString>;
704
- description: z.ZodOptional<z.ZodString>;
705
- required: z.ZodOptional<z.ZodBoolean>;
706
- id: z.ZodString;
707
- type: z.ZodLiteral<"multi-select">;
708
- }, z.core.$strip>, z.ZodObject<{
709
- minLength: z.ZodOptional<z.ZodInt>;
710
- maxLength: z.ZodOptional<z.ZodInt>;
711
- placeholder: z.ZodOptional<z.ZodString>;
712
- label: z.ZodOptional<z.ZodString>;
713
- description: z.ZodOptional<z.ZodString>;
714
- required: z.ZodOptional<z.ZodBoolean>;
715
- id: z.ZodString;
716
- type: z.ZodLiteral<"multi-string">;
717
- }, z.core.$strip>, z.ZodObject<{
718
- minimum: z.ZodOptional<z.ZodNumber>;
719
- maximum: z.ZodOptional<z.ZodNumber>;
720
- integers: z.ZodOptional<z.ZodBoolean>;
721
- placeholder: z.ZodOptional<z.ZodString>;
722
- label: z.ZodOptional<z.ZodString>;
723
- description: z.ZodOptional<z.ZodString>;
724
- required: z.ZodOptional<z.ZodBoolean>;
725
- id: z.ZodString;
726
- type: z.ZodLiteral<"number">;
727
- }, z.core.$strip>, z.ZodObject<{
728
- length: z.ZodInt;
729
- label: z.ZodOptional<z.ZodString>;
730
- description: z.ZodOptional<z.ZodString>;
731
- required: z.ZodOptional<z.ZodBoolean>;
732
- id: z.ZodString;
733
- type: z.ZodLiteral<"otp">;
734
- }, z.core.$strip>, z.ZodObject<{
735
- showNotesAndFilesOn: z.ZodArray<z.ZodLiteral<"pass" | "fail" | "na">>;
736
- label: z.ZodOptional<z.ZodString>;
737
- description: z.ZodOptional<z.ZodString>;
738
- required: z.ZodOptional<z.ZodBoolean>;
739
- id: z.ZodString;
740
- type: z.ZodLiteral<"pass-fail">;
741
- }, z.core.$strip>, z.ZodObject<{
742
- options: z.ZodArray<z.ZodObject<{
743
- value: z.ZodString;
744
- label: z.ZodString;
745
- }, z.core.$strip>>;
746
- label: z.ZodOptional<z.ZodString>;
747
- description: z.ZodOptional<z.ZodString>;
748
- required: z.ZodOptional<z.ZodBoolean>;
749
- id: z.ZodString;
750
- type: z.ZodLiteral<"radio">;
751
- }, z.core.$strip>, z.ZodObject<{
752
- maxRating: z.ZodInt;
753
- label: z.ZodOptional<z.ZodString>;
754
- description: z.ZodOptional<z.ZodString>;
755
- required: z.ZodOptional<z.ZodBoolean>;
756
- id: z.ZodString;
757
- type: z.ZodLiteral<"rating">;
758
- }, z.core.$strip>, z.ZodObject<{
759
- label: z.ZodOptional<z.ZodString>;
760
- description: z.ZodOptional<z.ZodString>;
761
- required: z.ZodOptional<z.ZodBoolean>;
762
- id: z.ZodString;
763
- type: z.ZodLiteral<"qr">;
764
- }, z.core.$strip>, z.ZodObject<{
765
- placeholder: z.ZodOptional<z.ZodString>;
766
- options: z.ZodArray<z.ZodObject<{
767
- value: z.ZodString;
768
- label: z.ZodString;
769
- }, z.core.$strip>>;
770
- label: z.ZodOptional<z.ZodString>;
771
- description: z.ZodOptional<z.ZodString>;
772
- required: z.ZodOptional<z.ZodBoolean>;
773
- id: z.ZodString;
774
- type: z.ZodLiteral<"select">;
775
- }, z.core.$strip>, z.ZodObject<{
776
- minLength: z.ZodOptional<z.ZodInt>;
777
- maxLength: z.ZodOptional<z.ZodInt>;
778
- placeholder: z.ZodOptional<z.ZodString>;
779
- label: z.ZodOptional<z.ZodString>;
780
- description: z.ZodOptional<z.ZodString>;
781
- required: z.ZodOptional<z.ZodBoolean>;
782
- id: z.ZodString;
783
- type: z.ZodLiteral<"string">;
784
- }, z.core.$strip>, z.ZodObject<{
785
- minLength: z.ZodOptional<z.ZodInt>;
786
- maxLength: z.ZodOptional<z.ZodInt>;
787
- placeholder: z.ZodOptional<z.ZodString>;
788
- label: z.ZodOptional<z.ZodString>;
789
- description: z.ZodOptional<z.ZodString>;
790
- required: z.ZodOptional<z.ZodBoolean>;
791
- id: z.ZodString;
792
- type: z.ZodLiteral<"text">;
793
- }, z.core.$strip>, z.ZodObject<{
794
- label: z.ZodOptional<z.ZodString>;
795
- description: z.ZodOptional<z.ZodString>;
796
- required: z.ZodOptional<z.ZodBoolean>;
797
- id: z.ZodString;
798
- type: z.ZodLiteral<"time">;
799
- }, z.core.$strip>, z.ZodObject<{
800
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
801
- maxSize: z.ZodOptional<z.ZodInt>;
802
- maxFiles: z.ZodOptional<z.ZodInt>;
803
- label: z.ZodOptional<z.ZodString>;
804
- description: z.ZodOptional<z.ZodString>;
805
- required: z.ZodOptional<z.ZodBoolean>;
806
- id: z.ZodString;
807
- type: z.ZodLiteral<"upload">;
808
- }, z.core.$strip>, z.ZodObject<{
809
- placeholder: z.ZodOptional<z.ZodString>;
810
- label: z.ZodOptional<z.ZodString>;
811
- description: z.ZodOptional<z.ZodString>;
812
- required: z.ZodOptional<z.ZodBoolean>;
813
- id: z.ZodString;
814
- type: z.ZodLiteral<"url">;
815
- }, z.core.$strip>], "type">], "type">;
8
+ export declare const JSONFieldElementSchema: z.ZodDiscriminatedUnion<[
9
+ typeof JSONFieldSectionSchema,
10
+ typeof JSONFieldSchema
11
+ ], "type">;
816
12
  export type JSONFieldElementSchemaType = z.infer<typeof JSONFieldElementSchema>;