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