@adrekic/zod-fieldsjson 0.0.2-schema-improvements.0 → 1.0.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 +1 -1
  2. package/dist/conditions/boolean.d.ts +31 -5
  3. package/dist/conditions/checkbox-list.d.ts +79 -5
  4. package/dist/conditions/date.d.ts +115 -7
  5. package/dist/conditions/index.d.ts +443 -47
  6. package/dist/conditions/multi-select.d.ts +79 -5
  7. package/dist/conditions/multi-string.d.ts +79 -5
  8. package/dist/conditions/number.d.ts +147 -7
  9. package/dist/conditions/otp.d.ts +63 -5
  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 +63 -5
  14. package/dist/conditions/select.d.ts +64 -6
  15. package/dist/conditions/string.d.ts +63 -5
  16. package/dist/conditions/text.d.ts +63 -5
  17. package/dist/conditions/time.d.ts +115 -7
  18. package/dist/conditions/upload.d.ts +31 -5
  19. package/dist/conditions/url.d.ts +63 -5
  20. package/dist/elements/base.d.ts +1 -1
  21. package/dist/elements/index.d.ts +494 -98
  22. package/dist/elements/section.d.ts +912 -120
  23. package/dist/fields/base.d.ts +5 -5
  24. package/dist/fields/boolean.d.ts +1 -1
  25. package/dist/fields/checkbox-list.d.ts +1 -1
  26. package/dist/fields/date.d.ts +1 -1
  27. package/dist/fields/index.d.ts +25 -25
  28. package/dist/fields/multi-select.d.ts +1 -1
  29. package/dist/fields/multi-string.d.ts +3 -3
  30. package/dist/fields/number.d.ts +1 -1
  31. package/dist/fields/otp.d.ts +1 -1
  32. package/dist/fields/pass-fail.d.ts +1 -1
  33. package/dist/fields/radio.d.ts +1 -1
  34. package/dist/fields/rating.d.ts +1 -1
  35. package/dist/fields/scan.d.ts +1 -1
  36. package/dist/fields/select.d.ts +1 -1
  37. package/dist/fields/string.d.ts +3 -3
  38. package/dist/fields/text.d.ts +3 -3
  39. package/dist/fields/time.d.ts +1 -1
  40. package/dist/fields/upload.d.ts +3 -3
  41. package/dist/fields/url.d.ts +1 -1
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.js +347 -257
  44. package/dist/schema.d.ts +469 -73
  45. package/package.json +3 -3
package/dist/schema.d.ts CHANGED
@@ -2,138 +2,534 @@ import * as z from "zod/v4";
2
2
  export declare const JSONFieldSchemaSchema: z.ZodArray<z.ZodObject<{
3
3
  label: z.ZodOptional<z.ZodString>;
4
4
  description: z.ZodOptional<z.ZodString>;
5
- conditions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
5
+ conditions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
6
6
  id: z.ZodString;
7
7
  type: z.ZodLiteral<"boolean">;
8
- fieldId: z.ZodString;
8
+ field: z.ZodString;
9
9
  value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
10
- modifier: z.ZodLiteral<"equals" | "notEquals">;
10
+ modifier: z.ZodLiteral<"equals">;
11
+ }, z.core.$strip>, z.ZodObject<{
12
+ id: z.ZodString;
13
+ type: z.ZodLiteral<"boolean">;
14
+ field: z.ZodString;
15
+ value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
16
+ modifier: z.ZodLiteral<"notEquals">;
17
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
18
+ id: z.ZodString;
19
+ type: z.ZodLiteral<"checkbox-list">;
20
+ field: z.ZodString;
21
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
22
+ modifier: z.ZodLiteral<"equals">;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ id: z.ZodString;
25
+ type: z.ZodLiteral<"checkbox-list">;
26
+ field: z.ZodString;
27
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
28
+ modifier: z.ZodLiteral<"notEquals">;
29
+ }, z.core.$strip>, z.ZodObject<{
30
+ id: z.ZodString;
31
+ type: z.ZodLiteral<"checkbox-list">;
32
+ field: z.ZodString;
33
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
34
+ modifier: z.ZodLiteral<"every">;
11
35
  }, z.core.$strip>, z.ZodObject<{
12
36
  id: z.ZodString;
13
37
  type: z.ZodLiteral<"checkbox-list">;
14
- fieldId: z.ZodString;
38
+ field: z.ZodString;
15
39
  value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
16
- modifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
40
+ modifier: z.ZodLiteral<"some">;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ id: z.ZodString;
43
+ type: z.ZodLiteral<"checkbox-list">;
44
+ field: z.ZodString;
45
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
46
+ modifier: z.ZodLiteral<"none">;
47
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
48
+ id: z.ZodString;
49
+ type: z.ZodLiteral<"date">;
50
+ field: z.ZodString;
51
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
52
+ modifier: z.ZodLiteral<"equals">;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ id: z.ZodString;
55
+ type: z.ZodLiteral<"date">;
56
+ field: z.ZodString;
57
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
58
+ modifier: z.ZodLiteral<"notEquals">;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ id: z.ZodString;
61
+ type: z.ZodLiteral<"date">;
62
+ field: z.ZodString;
63
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
64
+ modifier: z.ZodLiteral<"before">;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ id: z.ZodString;
67
+ type: z.ZodLiteral<"date">;
68
+ field: z.ZodString;
69
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
70
+ modifier: z.ZodLiteral<"after">;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ id: z.ZodString;
73
+ type: z.ZodLiteral<"date">;
74
+ field: z.ZodString;
75
+ value: z.ZodType<{
76
+ from: string | null;
77
+ to: string | null;
78
+ }, unknown, z.core.$ZodTypeInternals<{
79
+ from: string | null;
80
+ to: string | null;
81
+ }, unknown>>;
82
+ modifier: z.ZodLiteral<"in">;
17
83
  }, z.core.$strip>, z.ZodObject<{
18
84
  id: z.ZodString;
19
85
  type: z.ZodLiteral<"date">;
20
- fieldId: z.ZodString;
21
- value: z.ZodType<string | {
86
+ field: z.ZodString;
87
+ value: z.ZodType<{
22
88
  from: string | null;
23
89
  to: string | null;
24
- }, unknown, z.core.$ZodTypeInternals<string | {
90
+ }, unknown, z.core.$ZodTypeInternals<{
25
91
  from: string | null;
26
92
  to: string | null;
27
93
  }, unknown>>;
28
- modifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
94
+ modifier: z.ZodLiteral<"notIn">;
95
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
96
+ id: z.ZodString;
97
+ type: z.ZodLiteral<"multi-select">;
98
+ field: z.ZodString;
99
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
100
+ modifier: z.ZodLiteral<"equals">;
29
101
  }, z.core.$strip>, z.ZodObject<{
30
102
  id: z.ZodString;
31
103
  type: z.ZodLiteral<"multi-select">;
32
- fieldId: z.ZodString;
104
+ field: z.ZodString;
105
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
106
+ modifier: z.ZodLiteral<"notEquals">;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ id: z.ZodString;
109
+ type: z.ZodLiteral<"multi-select">;
110
+ field: z.ZodString;
111
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
112
+ modifier: z.ZodLiteral<"every">;
113
+ }, z.core.$strip>, z.ZodObject<{
114
+ id: z.ZodString;
115
+ type: z.ZodLiteral<"multi-select">;
116
+ field: z.ZodString;
117
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
118
+ modifier: z.ZodLiteral<"some">;
119
+ }, z.core.$strip>, z.ZodObject<{
120
+ id: z.ZodString;
121
+ type: z.ZodLiteral<"multi-select">;
122
+ field: z.ZodString;
123
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
124
+ modifier: z.ZodLiteral<"none">;
125
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
126
+ id: z.ZodString;
127
+ type: z.ZodLiteral<"multi-string">;
128
+ field: z.ZodString;
129
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
130
+ modifier: z.ZodLiteral<"equals">;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ id: z.ZodString;
133
+ type: z.ZodLiteral<"multi-string">;
134
+ field: z.ZodString;
135
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
136
+ modifier: z.ZodLiteral<"notEquals">;
137
+ }, z.core.$strip>, z.ZodObject<{
138
+ id: z.ZodString;
139
+ type: z.ZodLiteral<"multi-string">;
140
+ field: z.ZodString;
141
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
142
+ modifier: z.ZodLiteral<"every">;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ id: z.ZodString;
145
+ type: z.ZodLiteral<"multi-string">;
146
+ field: z.ZodString;
33
147
  value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
34
- modifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
148
+ modifier: z.ZodLiteral<"some">;
35
149
  }, z.core.$strip>, z.ZodObject<{
36
150
  id: z.ZodString;
37
151
  type: z.ZodLiteral<"multi-string">;
38
- fieldId: z.ZodString;
152
+ field: z.ZodString;
39
153
  value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
40
- modifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
154
+ modifier: z.ZodLiteral<"none">;
155
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
156
+ id: z.ZodString;
157
+ type: z.ZodLiteral<"number">;
158
+ field: z.ZodString;
159
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
160
+ modifier: z.ZodLiteral<"equals">;
161
+ }, z.core.$strip>, z.ZodObject<{
162
+ id: z.ZodString;
163
+ type: z.ZodLiteral<"number">;
164
+ field: z.ZodString;
165
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
166
+ modifier: z.ZodLiteral<"notEquals">;
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ id: z.ZodString;
169
+ type: z.ZodLiteral<"number">;
170
+ field: z.ZodString;
171
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
172
+ modifier: z.ZodLiteral<"lessThan">;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ id: z.ZodString;
175
+ type: z.ZodLiteral<"number">;
176
+ field: z.ZodString;
177
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
178
+ modifier: z.ZodLiteral<"lessThanOrEquals">;
179
+ }, z.core.$strip>, z.ZodObject<{
180
+ id: z.ZodString;
181
+ type: z.ZodLiteral<"number">;
182
+ field: z.ZodString;
183
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
184
+ modifier: z.ZodLiteral<"greaterThan">;
185
+ }, z.core.$strip>, z.ZodObject<{
186
+ id: z.ZodString;
187
+ type: z.ZodLiteral<"number">;
188
+ field: z.ZodString;
189
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
190
+ modifier: z.ZodLiteral<"greaterThanOrEquals">;
191
+ }, z.core.$strip>, z.ZodObject<{
192
+ id: z.ZodString;
193
+ type: z.ZodLiteral<"number">;
194
+ field: z.ZodString;
195
+ value: z.ZodType<{
196
+ from: number | null;
197
+ to: number | null;
198
+ }, unknown, z.core.$ZodTypeInternals<{
199
+ from: number | null;
200
+ to: number | null;
201
+ }, unknown>>;
202
+ modifier: z.ZodLiteral<"inRange">;
41
203
  }, z.core.$strip>, z.ZodObject<{
42
204
  id: z.ZodString;
43
205
  type: z.ZodLiteral<"number">;
44
- fieldId: z.ZodString;
45
- value: z.ZodType<number | {
206
+ field: z.ZodString;
207
+ value: z.ZodType<{
46
208
  from: number | null;
47
209
  to: number | null;
48
- }, unknown, z.core.$ZodTypeInternals<number | {
210
+ }, unknown, z.core.$ZodTypeInternals<{
49
211
  from: number | null;
50
212
  to: number | null;
51
213
  }, unknown>>;
52
- modifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
214
+ modifier: z.ZodLiteral<"notInRange">;
215
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
216
+ id: z.ZodString;
217
+ type: z.ZodLiteral<"otp">;
218
+ field: z.ZodString;
219
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
220
+ modifier: z.ZodLiteral<"equals">;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ id: z.ZodString;
223
+ type: z.ZodLiteral<"otp">;
224
+ field: z.ZodString;
225
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
226
+ modifier: z.ZodLiteral<"notEquals">;
53
227
  }, z.core.$strip>, z.ZodObject<{
54
228
  id: z.ZodString;
55
229
  type: z.ZodLiteral<"otp">;
56
- fieldId: z.ZodString;
230
+ field: z.ZodString;
57
231
  value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
58
- modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
232
+ modifier: z.ZodLiteral<"includes">;
59
233
  }, z.core.$strip>, z.ZodObject<{
234
+ id: z.ZodString;
235
+ type: z.ZodLiteral<"otp">;
236
+ field: z.ZodString;
237
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
238
+ modifier: z.ZodLiteral<"excludes">;
239
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
60
240
  id: z.ZodString;
61
241
  type: z.ZodLiteral<"pass-fail">;
62
- fieldId: z.ZodString;
63
- value: z.ZodType<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown>>;
64
- modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
242
+ field: z.ZodString;
243
+ value: z.ZodType<"pass" | "fail" | "na", unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na", unknown>>;
244
+ modifier: z.ZodLiteral<"equals">;
245
+ }, z.core.$strip>, z.ZodObject<{
246
+ id: z.ZodString;
247
+ type: z.ZodLiteral<"pass-fail">;
248
+ field: z.ZodString;
249
+ value: z.ZodType<"pass" | "fail" | "na", unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na", unknown>>;
250
+ modifier: z.ZodLiteral<"notEquals">;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ id: z.ZodString;
253
+ type: z.ZodLiteral<"pass-fail">;
254
+ field: z.ZodString;
255
+ value: z.ZodType<("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<("pass" | "fail" | "na")[], unknown>>;
256
+ modifier: z.ZodLiteral<"includes">;
257
+ }, z.core.$strip>, z.ZodObject<{
258
+ id: z.ZodString;
259
+ type: z.ZodLiteral<"pass-fail">;
260
+ field: z.ZodString;
261
+ value: z.ZodType<("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<("pass" | "fail" | "na")[], unknown>>;
262
+ modifier: z.ZodLiteral<"excludes">;
263
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
264
+ id: z.ZodString;
265
+ type: z.ZodLiteral<"radio">;
266
+ field: z.ZodString;
267
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
268
+ modifier: z.ZodLiteral<"equals">;
269
+ }, z.core.$strip>, z.ZodObject<{
270
+ id: z.ZodString;
271
+ type: z.ZodLiteral<"radio">;
272
+ field: z.ZodString;
273
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
274
+ modifier: z.ZodLiteral<"notEquals">;
275
+ }, z.core.$strip>, z.ZodObject<{
276
+ id: z.ZodString;
277
+ type: z.ZodLiteral<"radio">;
278
+ field: z.ZodString;
279
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
280
+ modifier: z.ZodLiteral<"includes">;
65
281
  }, z.core.$strip>, z.ZodObject<{
66
282
  id: z.ZodString;
67
283
  type: z.ZodLiteral<"radio">;
68
- fieldId: z.ZodString;
69
- value: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
70
- modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
284
+ field: z.ZodString;
285
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
286
+ modifier: z.ZodLiteral<"excludes">;
287
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
288
+ id: z.ZodString;
289
+ type: z.ZodLiteral<"rating">;
290
+ field: z.ZodString;
291
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
292
+ modifier: z.ZodLiteral<"equals">;
293
+ }, z.core.$strip>, z.ZodObject<{
294
+ id: z.ZodString;
295
+ type: z.ZodLiteral<"rating">;
296
+ field: z.ZodString;
297
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
298
+ modifier: z.ZodLiteral<"notEquals">;
299
+ }, z.core.$strip>, z.ZodObject<{
300
+ id: z.ZodString;
301
+ type: z.ZodLiteral<"rating">;
302
+ field: z.ZodString;
303
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
304
+ modifier: z.ZodLiteral<"lessThan">;
71
305
  }, z.core.$strip>, z.ZodObject<{
72
306
  id: z.ZodString;
73
307
  type: z.ZodLiteral<"rating">;
74
- fieldId: z.ZodString;
75
- value: z.ZodType<number | {
308
+ field: z.ZodString;
309
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
310
+ modifier: z.ZodLiteral<"lessThanOrEquals">;
311
+ }, z.core.$strip>, z.ZodObject<{
312
+ id: z.ZodString;
313
+ type: z.ZodLiteral<"rating">;
314
+ field: z.ZodString;
315
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
316
+ modifier: z.ZodLiteral<"greaterThan">;
317
+ }, z.core.$strip>, z.ZodObject<{
318
+ id: z.ZodString;
319
+ type: z.ZodLiteral<"rating">;
320
+ field: z.ZodString;
321
+ value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
322
+ modifier: z.ZodLiteral<"greaterThanOrEquals">;
323
+ }, z.core.$strip>, z.ZodObject<{
324
+ id: z.ZodString;
325
+ type: z.ZodLiteral<"rating">;
326
+ field: z.ZodString;
327
+ value: z.ZodType<{
76
328
  from: number | null;
77
329
  to: number | null;
78
- }, unknown, z.core.$ZodTypeInternals<number | {
330
+ }, unknown, z.core.$ZodTypeInternals<{
79
331
  from: number | null;
80
332
  to: number | null;
81
333
  }, unknown>>;
82
- modifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
334
+ modifier: z.ZodLiteral<"inRange">;
335
+ }, z.core.$strip>, z.ZodObject<{
336
+ id: z.ZodString;
337
+ type: z.ZodLiteral<"rating">;
338
+ field: z.ZodString;
339
+ value: z.ZodType<{
340
+ from: number | null;
341
+ to: number | null;
342
+ }, unknown, z.core.$ZodTypeInternals<{
343
+ from: number | null;
344
+ to: number | null;
345
+ }, unknown>>;
346
+ modifier: z.ZodLiteral<"notInRange">;
347
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
348
+ id: z.ZodString;
349
+ type: z.ZodLiteral<"qr">;
350
+ field: z.ZodString;
351
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
352
+ modifier: z.ZodLiteral<"equals">;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ id: z.ZodString;
355
+ type: z.ZodLiteral<"qr">;
356
+ field: z.ZodString;
357
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
358
+ modifier: z.ZodLiteral<"notEquals">;
359
+ }, z.core.$strip>, z.ZodObject<{
360
+ id: z.ZodString;
361
+ type: z.ZodLiteral<"qr">;
362
+ field: z.ZodString;
363
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
364
+ modifier: z.ZodLiteral<"includes">;
83
365
  }, z.core.$strip>, z.ZodObject<{
84
366
  id: z.ZodString;
85
367
  type: z.ZodLiteral<"qr">;
86
- fieldId: z.ZodString;
368
+ field: z.ZodString;
369
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
370
+ modifier: z.ZodLiteral<"excludes">;
371
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
372
+ id: z.ZodString;
373
+ type: z.ZodLiteral<"select">;
374
+ field: z.ZodString;
375
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
376
+ modifier: z.ZodLiteral<"equals">;
377
+ }, z.core.$strip>, z.ZodObject<{
378
+ id: z.ZodString;
379
+ type: z.ZodLiteral<"select">;
380
+ field: z.ZodString;
87
381
  value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
88
- modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
382
+ modifier: z.ZodLiteral<"notEquals">;
89
383
  }, z.core.$strip>, z.ZodObject<{
90
384
  id: z.ZodString;
91
385
  type: z.ZodLiteral<"select">;
92
- fieldId: z.ZodString;
93
- value: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
94
- modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
386
+ field: z.ZodString;
387
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
388
+ modifier: z.ZodLiteral<"includes">;
389
+ }, z.core.$strip>, z.ZodObject<{
390
+ id: z.ZodString;
391
+ type: z.ZodLiteral<"select">;
392
+ field: z.ZodString;
393
+ value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
394
+ modifier: z.ZodLiteral<"excludes">;
395
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
396
+ id: z.ZodString;
397
+ type: z.ZodLiteral<"string">;
398
+ field: z.ZodString;
399
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
400
+ modifier: z.ZodLiteral<"equals">;
401
+ }, z.core.$strip>, z.ZodObject<{
402
+ id: z.ZodString;
403
+ type: z.ZodLiteral<"string">;
404
+ field: z.ZodString;
405
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
406
+ modifier: z.ZodLiteral<"notEquals">;
407
+ }, z.core.$strip>, z.ZodObject<{
408
+ id: z.ZodString;
409
+ type: z.ZodLiteral<"string">;
410
+ field: z.ZodString;
411
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
412
+ modifier: z.ZodLiteral<"includes">;
95
413
  }, z.core.$strip>, z.ZodObject<{
96
414
  id: z.ZodString;
97
415
  type: z.ZodLiteral<"string">;
98
- fieldId: z.ZodString;
416
+ field: z.ZodString;
417
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
418
+ modifier: z.ZodLiteral<"excludes">;
419
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
420
+ id: z.ZodString;
421
+ type: z.ZodLiteral<"text">;
422
+ field: z.ZodString;
423
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
424
+ modifier: z.ZodLiteral<"equals">;
425
+ }, z.core.$strip>, z.ZodObject<{
426
+ id: z.ZodString;
427
+ type: z.ZodLiteral<"text">;
428
+ field: z.ZodString;
99
429
  value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
100
- modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
430
+ modifier: z.ZodLiteral<"notEquals">;
101
431
  }, z.core.$strip>, z.ZodObject<{
102
432
  id: z.ZodString;
103
433
  type: z.ZodLiteral<"text">;
104
- fieldId: z.ZodString;
434
+ field: z.ZodString;
105
435
  value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
106
- modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
436
+ modifier: z.ZodLiteral<"includes">;
437
+ }, z.core.$strip>, z.ZodObject<{
438
+ id: z.ZodString;
439
+ type: z.ZodLiteral<"text">;
440
+ field: z.ZodString;
441
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
442
+ modifier: z.ZodLiteral<"excludes">;
443
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
444
+ id: z.ZodString;
445
+ type: z.ZodLiteral<"time">;
446
+ field: z.ZodString;
447
+ 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>>;
448
+ modifier: z.ZodLiteral<"equals">;
449
+ }, z.core.$strip>, z.ZodObject<{
450
+ id: z.ZodString;
451
+ type: z.ZodLiteral<"time">;
452
+ field: z.ZodString;
453
+ 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>>;
454
+ modifier: z.ZodLiteral<"notEquals">;
455
+ }, z.core.$strip>, z.ZodObject<{
456
+ id: z.ZodString;
457
+ type: z.ZodLiteral<"time">;
458
+ field: z.ZodString;
459
+ 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>>;
460
+ modifier: z.ZodLiteral<"before">;
461
+ }, z.core.$strip>, z.ZodObject<{
462
+ id: z.ZodString;
463
+ type: z.ZodLiteral<"time">;
464
+ field: z.ZodString;
465
+ 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>>;
466
+ modifier: z.ZodLiteral<"after">;
467
+ }, z.core.$strip>, z.ZodObject<{
468
+ id: z.ZodString;
469
+ type: z.ZodLiteral<"time">;
470
+ field: z.ZodString;
471
+ value: z.ZodType<{
472
+ from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
473
+ to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
474
+ }, unknown, z.core.$ZodTypeInternals<{
475
+ from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
476
+ to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
477
+ }, unknown>>;
478
+ modifier: z.ZodLiteral<"in">;
107
479
  }, z.core.$strip>, z.ZodObject<{
108
480
  id: z.ZodString;
109
481
  type: z.ZodLiteral<"time">;
110
- fieldId: z.ZodString;
111
- value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
482
+ field: z.ZodString;
483
+ value: z.ZodType<{
112
484
  from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
113
485
  to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
114
- }, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
486
+ }, unknown, z.core.$ZodTypeInternals<{
115
487
  from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
116
488
  to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
117
489
  }, unknown>>;
118
- modifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
490
+ modifier: z.ZodLiteral<"notIn">;
491
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
492
+ id: z.ZodString;
493
+ type: z.ZodLiteral<"upload">;
494
+ field: z.ZodString;
495
+ value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
496
+ modifier: z.ZodLiteral<"equals">;
119
497
  }, z.core.$strip>, z.ZodObject<{
120
498
  id: z.ZodString;
121
499
  type: z.ZodLiteral<"upload">;
122
- fieldId: z.ZodString;
500
+ field: z.ZodString;
123
501
  value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
124
- modifier: z.ZodLiteral<"equals" | "notEquals">;
502
+ modifier: z.ZodLiteral<"notEquals">;
503
+ }, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
504
+ id: z.ZodString;
505
+ type: z.ZodLiteral<"url">;
506
+ field: z.ZodString;
507
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
508
+ modifier: z.ZodLiteral<"equals">;
509
+ }, z.core.$strip>, z.ZodObject<{
510
+ id: z.ZodString;
511
+ type: z.ZodLiteral<"url">;
512
+ field: z.ZodString;
513
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
514
+ modifier: z.ZodLiteral<"notEquals">;
515
+ }, z.core.$strip>, z.ZodObject<{
516
+ id: z.ZodString;
517
+ type: z.ZodLiteral<"url">;
518
+ field: z.ZodString;
519
+ value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
520
+ modifier: z.ZodLiteral<"includes">;
125
521
  }, z.core.$strip>, z.ZodObject<{
126
522
  id: z.ZodString;
127
523
  type: z.ZodLiteral<"url">;
128
- fieldId: z.ZodString;
524
+ field: z.ZodString;
129
525
  value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
130
- modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
131
- }, z.core.$strip>], "type">>>>;
526
+ modifier: z.ZodLiteral<"excludes">;
527
+ }, z.core.$strip>], "modifier">], "type">>>>;
132
528
  fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
133
529
  label: z.ZodOptional<z.ZodString>;
134
530
  description: z.ZodOptional<z.ZodString>;
135
531
  required: z.ZodOptional<z.ZodBoolean>;
136
- identifier: z.ZodString;
532
+ id: z.ZodString;
137
533
  type: z.ZodLiteral<"boolean">;
138
534
  }, z.core.$strip>, z.ZodObject<{
139
535
  options: z.ZodArray<z.ZodObject<{
@@ -143,13 +539,13 @@ export declare const JSONFieldSchemaSchema: z.ZodArray<z.ZodObject<{
143
539
  label: z.ZodOptional<z.ZodString>;
144
540
  description: z.ZodOptional<z.ZodString>;
145
541
  required: z.ZodOptional<z.ZodBoolean>;
146
- identifier: z.ZodString;
542
+ id: z.ZodString;
147
543
  type: z.ZodLiteral<"checkbox-list">;
148
544
  }, z.core.$strip>, z.ZodObject<{
149
545
  label: z.ZodOptional<z.ZodString>;
150
546
  description: z.ZodOptional<z.ZodString>;
151
547
  required: z.ZodOptional<z.ZodBoolean>;
152
- identifier: z.ZodString;
548
+ id: z.ZodString;
153
549
  type: z.ZodLiteral<"date">;
154
550
  }, z.core.$strip>, z.ZodObject<{
155
551
  placeholder: z.ZodOptional<z.ZodString>;
@@ -160,16 +556,16 @@ export declare const JSONFieldSchemaSchema: z.ZodArray<z.ZodObject<{
160
556
  label: z.ZodOptional<z.ZodString>;
161
557
  description: z.ZodOptional<z.ZodString>;
162
558
  required: z.ZodOptional<z.ZodBoolean>;
163
- identifier: z.ZodString;
559
+ id: z.ZodString;
164
560
  type: z.ZodLiteral<"multi-select">;
165
561
  }, z.core.$strip>, z.ZodObject<{
166
- minimum_length: z.ZodOptional<z.ZodInt>;
167
- maximum_length: z.ZodOptional<z.ZodInt>;
562
+ minLength: z.ZodOptional<z.ZodInt>;
563
+ maxLength: z.ZodOptional<z.ZodInt>;
168
564
  placeholder: z.ZodOptional<z.ZodString>;
169
565
  label: z.ZodOptional<z.ZodString>;
170
566
  description: z.ZodOptional<z.ZodString>;
171
567
  required: z.ZodOptional<z.ZodBoolean>;
172
- identifier: z.ZodString;
568
+ id: z.ZodString;
173
569
  type: z.ZodLiteral<"multi-string">;
174
570
  }, z.core.$strip>, z.ZodObject<{
175
571
  minimum: z.ZodOptional<z.ZodNumber>;
@@ -179,21 +575,21 @@ export declare const JSONFieldSchemaSchema: z.ZodArray<z.ZodObject<{
179
575
  label: z.ZodOptional<z.ZodString>;
180
576
  description: z.ZodOptional<z.ZodString>;
181
577
  required: z.ZodOptional<z.ZodBoolean>;
182
- identifier: z.ZodString;
578
+ id: z.ZodString;
183
579
  type: z.ZodLiteral<"number">;
184
580
  }, z.core.$strip>, z.ZodObject<{
185
581
  length: z.ZodInt;
186
582
  label: z.ZodOptional<z.ZodString>;
187
583
  description: z.ZodOptional<z.ZodString>;
188
584
  required: z.ZodOptional<z.ZodBoolean>;
189
- identifier: z.ZodString;
585
+ id: z.ZodString;
190
586
  type: z.ZodLiteral<"otp">;
191
587
  }, z.core.$strip>, z.ZodObject<{
192
588
  showNotesAndFilesOn: z.ZodArray<z.ZodLiteral<"pass" | "fail" | "na">>;
193
589
  label: z.ZodOptional<z.ZodString>;
194
590
  description: z.ZodOptional<z.ZodString>;
195
591
  required: z.ZodOptional<z.ZodBoolean>;
196
- identifier: z.ZodString;
592
+ id: z.ZodString;
197
593
  type: z.ZodLiteral<"pass-fail">;
198
594
  }, z.core.$strip>, z.ZodObject<{
199
595
  options: z.ZodArray<z.ZodObject<{
@@ -203,20 +599,20 @@ export declare const JSONFieldSchemaSchema: z.ZodArray<z.ZodObject<{
203
599
  label: z.ZodOptional<z.ZodString>;
204
600
  description: z.ZodOptional<z.ZodString>;
205
601
  required: z.ZodOptional<z.ZodBoolean>;
206
- identifier: z.ZodString;
602
+ id: z.ZodString;
207
603
  type: z.ZodLiteral<"radio">;
208
604
  }, z.core.$strip>, z.ZodObject<{
209
605
  maxRating: z.ZodInt;
210
606
  label: z.ZodOptional<z.ZodString>;
211
607
  description: z.ZodOptional<z.ZodString>;
212
608
  required: z.ZodOptional<z.ZodBoolean>;
213
- identifier: z.ZodString;
609
+ id: z.ZodString;
214
610
  type: z.ZodLiteral<"rating">;
215
611
  }, z.core.$strip>, z.ZodObject<{
216
612
  label: z.ZodOptional<z.ZodString>;
217
613
  description: z.ZodOptional<z.ZodString>;
218
614
  required: z.ZodOptional<z.ZodBoolean>;
219
- identifier: z.ZodString;
615
+ id: z.ZodString;
220
616
  type: z.ZodLiteral<"qr">;
221
617
  }, z.core.$strip>, z.ZodObject<{
222
618
  placeholder: z.ZodOptional<z.ZodString>;
@@ -227,50 +623,50 @@ export declare const JSONFieldSchemaSchema: z.ZodArray<z.ZodObject<{
227
623
  label: z.ZodOptional<z.ZodString>;
228
624
  description: z.ZodOptional<z.ZodString>;
229
625
  required: z.ZodOptional<z.ZodBoolean>;
230
- identifier: z.ZodString;
626
+ id: z.ZodString;
231
627
  type: z.ZodLiteral<"select">;
232
628
  }, z.core.$strip>, z.ZodObject<{
233
- minimum_length: z.ZodOptional<z.ZodInt>;
234
- maximum_length: z.ZodOptional<z.ZodInt>;
629
+ minLength: z.ZodOptional<z.ZodInt>;
630
+ maxLength: z.ZodOptional<z.ZodInt>;
235
631
  placeholder: z.ZodOptional<z.ZodString>;
236
632
  label: z.ZodOptional<z.ZodString>;
237
633
  description: z.ZodOptional<z.ZodString>;
238
634
  required: z.ZodOptional<z.ZodBoolean>;
239
- identifier: z.ZodString;
635
+ id: z.ZodString;
240
636
  type: z.ZodLiteral<"string">;
241
637
  }, z.core.$strip>, z.ZodObject<{
242
- minimum_length: z.ZodOptional<z.ZodInt>;
243
- maximum_length: z.ZodOptional<z.ZodInt>;
638
+ minLength: z.ZodOptional<z.ZodInt>;
639
+ maxLength: z.ZodOptional<z.ZodInt>;
244
640
  placeholder: z.ZodOptional<z.ZodString>;
245
641
  label: z.ZodOptional<z.ZodString>;
246
642
  description: z.ZodOptional<z.ZodString>;
247
643
  required: z.ZodOptional<z.ZodBoolean>;
248
- identifier: z.ZodString;
644
+ id: z.ZodString;
249
645
  type: z.ZodLiteral<"text">;
250
646
  }, z.core.$strip>, z.ZodObject<{
251
647
  label: z.ZodOptional<z.ZodString>;
252
648
  description: z.ZodOptional<z.ZodString>;
253
649
  required: z.ZodOptional<z.ZodBoolean>;
254
- identifier: z.ZodString;
650
+ id: z.ZodString;
255
651
  type: z.ZodLiteral<"time">;
256
652
  }, z.core.$strip>, z.ZodObject<{
257
653
  extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
258
- maximum_size: z.ZodOptional<z.ZodInt>;
259
- maximum_files: z.ZodOptional<z.ZodInt>;
654
+ maxSize: z.ZodOptional<z.ZodInt>;
655
+ maxFiles: z.ZodOptional<z.ZodInt>;
260
656
  label: z.ZodOptional<z.ZodString>;
261
657
  description: z.ZodOptional<z.ZodString>;
262
658
  required: z.ZodOptional<z.ZodBoolean>;
263
- identifier: z.ZodString;
659
+ id: z.ZodString;
264
660
  type: z.ZodLiteral<"upload">;
265
661
  }, z.core.$strip>, z.ZodObject<{
266
662
  placeholder: z.ZodOptional<z.ZodString>;
267
663
  label: z.ZodOptional<z.ZodString>;
268
664
  description: z.ZodOptional<z.ZodString>;
269
665
  required: z.ZodOptional<z.ZodBoolean>;
270
- identifier: z.ZodString;
666
+ id: z.ZodString;
271
667
  type: z.ZodLiteral<"url">;
272
668
  }, z.core.$strip>], "type">>;
273
- identifier: z.ZodString;
669
+ id: z.ZodString;
274
670
  type: z.ZodLiteral<"section">;
275
671
  }, z.core.$strip>>;
276
672
  export type JSONFieldSchemaSchemaType = z.infer<typeof JSONFieldSchemaSchema>;