@adrekic/zod-fieldsjson 0.0.1-schemas.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 (47) hide show
  1. package/dist/conditions/base.d.ts +9 -0
  2. package/dist/conditions/boolean.d.ts +13 -0
  3. package/dist/conditions/checkbox-list.d.ts +13 -0
  4. package/dist/conditions/date.d.ts +19 -0
  5. package/dist/conditions/index.d.ts +149 -0
  6. package/dist/conditions/multi-select.d.ts +13 -0
  7. package/dist/conditions/multi-string.d.ts +13 -0
  8. package/dist/conditions/number.d.ts +19 -0
  9. package/dist/conditions/otp.d.ts +13 -0
  10. package/dist/conditions/pass-fail.d.ts +13 -0
  11. package/dist/conditions/radio.d.ts +13 -0
  12. package/dist/conditions/rating.d.ts +19 -0
  13. package/dist/conditions/scan.d.ts +13 -0
  14. package/dist/conditions/select.d.ts +13 -0
  15. package/dist/conditions/string.d.ts +13 -0
  16. package/dist/conditions/text.d.ts +13 -0
  17. package/dist/conditions/time.d.ts +19 -0
  18. package/dist/conditions/upload.d.ts +13 -0
  19. package/dist/conditions/url.d.ts +13 -0
  20. package/dist/elements/base.d.ts +6 -0
  21. package/dist/elements/index.d.ts +422 -0
  22. package/dist/elements/section.d.ts +407 -0
  23. package/dist/fields/base.d.ts +32 -0
  24. package/dist/fields/boolean.d.ts +13 -0
  25. package/dist/fields/checkbox-list.d.ts +17 -0
  26. package/dist/fields/date.d.ts +13 -0
  27. package/dist/fields/index.d.ts +176 -0
  28. package/dist/fields/multi-select.d.ts +18 -0
  29. package/dist/fields/multi-string.d.ts +16 -0
  30. package/dist/fields/number.d.ts +17 -0
  31. package/dist/fields/otp.d.ts +17 -0
  32. package/dist/fields/pass-fail.d.ts +20 -0
  33. package/dist/fields/radio.d.ts +17 -0
  34. package/dist/fields/rating.d.ts +14 -0
  35. package/dist/fields/scan.d.ts +13 -0
  36. package/dist/fields/select.d.ts +18 -0
  37. package/dist/fields/string.d.ts +16 -0
  38. package/dist/fields/text.d.ts +16 -0
  39. package/dist/fields/time.d.ts +13 -0
  40. package/dist/fields/upload.d.ts +16 -0
  41. package/dist/fields/url.d.ts +14 -0
  42. package/dist/index.cjs +1 -0
  43. package/dist/index.d.ts +5 -0
  44. package/dist/index.js +277 -0
  45. package/dist/misc.d.ts +29 -0
  46. package/dist/schema.d.ts +277 -0
  47. package/package.json +52 -0
@@ -0,0 +1,407 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONFieldSectionTypeSchema: z.ZodLiteral<"section">;
3
+ export type JSONFieldSectionTypeSchemaType = z.infer<typeof JSONFieldSectionTypeSchema>;
4
+ export declare const JSONFieldSectionConditionsSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
5
+ id: z.ZodString;
6
+ type: z.ZodLiteral<"boolean">;
7
+ fieldId: z.ZodString;
8
+ conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
9
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ id: z.ZodString;
12
+ type: z.ZodLiteral<"checkbox-list">;
13
+ fieldId: z.ZodString;
14
+ conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
15
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ id: z.ZodString;
18
+ type: z.ZodLiteral<"date">;
19
+ fieldId: z.ZodString;
20
+ conditionValue: z.ZodType<string | {
21
+ from: string | null;
22
+ to: string | null;
23
+ }, unknown, z.core.$ZodTypeInternals<string | {
24
+ from: string | null;
25
+ to: string | null;
26
+ }, unknown>>;
27
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ id: z.ZodString;
30
+ type: z.ZodLiteral<"multi-select">;
31
+ fieldId: z.ZodString;
32
+ conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
33
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ id: z.ZodString;
36
+ type: z.ZodLiteral<"multi-string">;
37
+ fieldId: z.ZodString;
38
+ conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
39
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ id: z.ZodString;
42
+ type: z.ZodLiteral<"number">;
43
+ fieldId: z.ZodString;
44
+ conditionValue: z.ZodType<number | {
45
+ from: number | null;
46
+ to: number | null;
47
+ }, unknown, z.core.$ZodTypeInternals<number | {
48
+ from: number | null;
49
+ to: number | null;
50
+ }, unknown>>;
51
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ id: z.ZodString;
54
+ type: z.ZodLiteral<"otp">;
55
+ fieldId: z.ZodString;
56
+ conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
57
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ id: z.ZodString;
60
+ type: z.ZodLiteral<"pass-fail">;
61
+ fieldId: z.ZodString;
62
+ conditionValue: z.ZodType<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown>>;
63
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ id: z.ZodString;
66
+ type: z.ZodLiteral<"radio">;
67
+ fieldId: z.ZodString;
68
+ conditionValue: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
69
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ id: z.ZodString;
72
+ type: z.ZodLiteral<"rating">;
73
+ fieldId: z.ZodString;
74
+ conditionValue: z.ZodType<number | {
75
+ from: number | null;
76
+ to: number | null;
77
+ }, unknown, z.core.$ZodTypeInternals<number | {
78
+ from: number | null;
79
+ to: number | null;
80
+ }, unknown>>;
81
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ id: z.ZodString;
84
+ type: z.ZodLiteral<"qr">;
85
+ fieldId: z.ZodString;
86
+ conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
87
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ id: z.ZodString;
90
+ type: z.ZodLiteral<"select">;
91
+ fieldId: z.ZodString;
92
+ conditionValue: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
93
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ id: z.ZodString;
96
+ type: z.ZodLiteral<"string">;
97
+ fieldId: z.ZodString;
98
+ conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
99
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
100
+ }, z.core.$strip>, z.ZodObject<{
101
+ id: z.ZodString;
102
+ type: z.ZodLiteral<"text">;
103
+ fieldId: z.ZodString;
104
+ conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
105
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
106
+ }, z.core.$strip>, z.ZodObject<{
107
+ id: z.ZodString;
108
+ type: z.ZodLiteral<"time">;
109
+ fieldId: z.ZodString;
110
+ conditionValue: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
111
+ from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
112
+ to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
113
+ }, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
114
+ from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
115
+ to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
116
+ }, unknown>>;
117
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
118
+ }, z.core.$strip>, z.ZodObject<{
119
+ id: z.ZodString;
120
+ type: z.ZodLiteral<"upload">;
121
+ fieldId: z.ZodString;
122
+ conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
123
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
124
+ }, z.core.$strip>, z.ZodObject<{
125
+ id: z.ZodString;
126
+ type: z.ZodLiteral<"url">;
127
+ fieldId: z.ZodString;
128
+ conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
129
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
130
+ }, z.core.$strip>], "type">>>;
131
+ export type JSONFieldSectionConditionsSchemaType = z.infer<typeof JSONFieldSectionConditionsSchema>;
132
+ export declare const JSONFieldSectionSchema: z.ZodObject<{
133
+ label: z.ZodNullable<z.ZodString>;
134
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ conditions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
136
+ id: z.ZodString;
137
+ type: z.ZodLiteral<"boolean">;
138
+ fieldId: z.ZodString;
139
+ conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
140
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
141
+ }, z.core.$strip>, z.ZodObject<{
142
+ id: z.ZodString;
143
+ type: z.ZodLiteral<"checkbox-list">;
144
+ fieldId: z.ZodString;
145
+ conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
146
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ id: z.ZodString;
149
+ type: z.ZodLiteral<"date">;
150
+ fieldId: z.ZodString;
151
+ conditionValue: z.ZodType<string | {
152
+ from: string | null;
153
+ to: string | null;
154
+ }, unknown, z.core.$ZodTypeInternals<string | {
155
+ from: string | null;
156
+ to: string | null;
157
+ }, unknown>>;
158
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ id: z.ZodString;
161
+ type: z.ZodLiteral<"multi-select">;
162
+ fieldId: z.ZodString;
163
+ conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
164
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
165
+ }, z.core.$strip>, z.ZodObject<{
166
+ id: z.ZodString;
167
+ type: z.ZodLiteral<"multi-string">;
168
+ fieldId: z.ZodString;
169
+ conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
170
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
171
+ }, z.core.$strip>, z.ZodObject<{
172
+ id: z.ZodString;
173
+ type: z.ZodLiteral<"number">;
174
+ fieldId: z.ZodString;
175
+ conditionValue: z.ZodType<number | {
176
+ from: number | null;
177
+ to: number | null;
178
+ }, unknown, z.core.$ZodTypeInternals<number | {
179
+ from: number | null;
180
+ to: number | null;
181
+ }, unknown>>;
182
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ id: z.ZodString;
185
+ type: z.ZodLiteral<"otp">;
186
+ fieldId: z.ZodString;
187
+ conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
188
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ id: z.ZodString;
191
+ type: z.ZodLiteral<"pass-fail">;
192
+ fieldId: z.ZodString;
193
+ conditionValue: z.ZodType<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown>>;
194
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
195
+ }, z.core.$strip>, z.ZodObject<{
196
+ id: z.ZodString;
197
+ type: z.ZodLiteral<"radio">;
198
+ fieldId: z.ZodString;
199
+ conditionValue: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
200
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
201
+ }, z.core.$strip>, z.ZodObject<{
202
+ id: z.ZodString;
203
+ type: z.ZodLiteral<"rating">;
204
+ fieldId: z.ZodString;
205
+ conditionValue: z.ZodType<number | {
206
+ from: number | null;
207
+ to: number | null;
208
+ }, unknown, z.core.$ZodTypeInternals<number | {
209
+ from: number | null;
210
+ to: number | null;
211
+ }, unknown>>;
212
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ id: z.ZodString;
215
+ type: z.ZodLiteral<"qr">;
216
+ fieldId: z.ZodString;
217
+ conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
218
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
219
+ }, z.core.$strip>, z.ZodObject<{
220
+ id: z.ZodString;
221
+ type: z.ZodLiteral<"select">;
222
+ fieldId: z.ZodString;
223
+ conditionValue: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
224
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ id: z.ZodString;
227
+ type: z.ZodLiteral<"string">;
228
+ fieldId: z.ZodString;
229
+ conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
230
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
231
+ }, z.core.$strip>, z.ZodObject<{
232
+ id: z.ZodString;
233
+ type: z.ZodLiteral<"text">;
234
+ fieldId: z.ZodString;
235
+ conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
236
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ id: z.ZodString;
239
+ type: z.ZodLiteral<"time">;
240
+ fieldId: z.ZodString;
241
+ conditionValue: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
242
+ from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
243
+ to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
244
+ }, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
245
+ from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
246
+ to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
247
+ }, unknown>>;
248
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ id: z.ZodString;
251
+ type: z.ZodLiteral<"upload">;
252
+ fieldId: z.ZodString;
253
+ conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
254
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
255
+ }, z.core.$strip>, z.ZodObject<{
256
+ id: z.ZodString;
257
+ type: z.ZodLiteral<"url">;
258
+ fieldId: z.ZodString;
259
+ conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
260
+ conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
261
+ }, z.core.$strip>], "type">>>;
262
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
263
+ label: z.ZodString;
264
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
+ required: z.ZodBoolean;
266
+ identifier: z.ZodString;
267
+ type: z.ZodLiteral<"boolean">;
268
+ }, z.core.$strip>, z.ZodObject<{
269
+ options: z.ZodArray<z.ZodObject<{
270
+ value: z.ZodString;
271
+ label: z.ZodString;
272
+ }, z.core.$strip>>;
273
+ label: z.ZodString;
274
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
+ required: z.ZodBoolean;
276
+ identifier: z.ZodString;
277
+ type: z.ZodLiteral<"checkbox-list">;
278
+ }, z.core.$strip>, z.ZodObject<{
279
+ label: z.ZodString;
280
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
+ required: z.ZodBoolean;
282
+ identifier: z.ZodString;
283
+ type: z.ZodLiteral<"date">;
284
+ }, z.core.$strip>, z.ZodObject<{
285
+ placeholder: z.ZodOptional<z.ZodString>;
286
+ options: z.ZodArray<z.ZodObject<{
287
+ value: z.ZodString;
288
+ label: z.ZodString;
289
+ }, z.core.$strip>>;
290
+ label: z.ZodString;
291
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
+ required: z.ZodBoolean;
293
+ identifier: z.ZodString;
294
+ type: z.ZodLiteral<"multi-select">;
295
+ }, z.core.$strip>, z.ZodObject<{
296
+ minimum_length: z.ZodOptional<z.ZodNumber>;
297
+ maximum_length: z.ZodNumber;
298
+ placeholder: z.ZodOptional<z.ZodString>;
299
+ label: z.ZodString;
300
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ required: z.ZodBoolean;
302
+ identifier: z.ZodString;
303
+ type: z.ZodLiteral<"multi-string">;
304
+ }, z.core.$strip>, z.ZodObject<{
305
+ minimum: z.ZodOptional<z.ZodNumber>;
306
+ maximum: z.ZodOptional<z.ZodNumber>;
307
+ integers: z.ZodBoolean;
308
+ placeholder: z.ZodOptional<z.ZodString>;
309
+ label: z.ZodString;
310
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ required: z.ZodBoolean;
312
+ identifier: z.ZodString;
313
+ type: z.ZodLiteral<"number">;
314
+ }, z.core.$strip>, z.ZodObject<{
315
+ length: z.ZodNumber;
316
+ validationType: z.ZodLiteral<"none" | "alpha" | "numeric" | "alphanumeric">;
317
+ label: z.ZodString;
318
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ required: z.ZodBoolean;
320
+ identifier: z.ZodString;
321
+ type: z.ZodLiteral<"otp">;
322
+ }, z.core.$strip>, z.ZodObject<{
323
+ showNotesAndFilesOn: z.ZodArray<z.ZodLiteral<"pass" | "fail" | "na">>;
324
+ label: z.ZodString;
325
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
+ required: z.ZodBoolean;
327
+ identifier: z.ZodString;
328
+ type: z.ZodLiteral<"pass-fail">;
329
+ }, z.core.$strip>, z.ZodObject<{
330
+ options: z.ZodArray<z.ZodObject<{
331
+ value: z.ZodString;
332
+ label: z.ZodString;
333
+ }, z.core.$strip>>;
334
+ label: z.ZodString;
335
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
336
+ required: z.ZodBoolean;
337
+ identifier: z.ZodString;
338
+ type: z.ZodLiteral<"radio">;
339
+ }, z.core.$strip>, z.ZodObject<{
340
+ maxRating: z.ZodNumber;
341
+ label: z.ZodString;
342
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ required: z.ZodBoolean;
344
+ identifier: z.ZodString;
345
+ type: z.ZodLiteral<"rating">;
346
+ }, z.core.$strip>, z.ZodObject<{
347
+ label: z.ZodString;
348
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
+ required: z.ZodBoolean;
350
+ identifier: z.ZodString;
351
+ type: z.ZodLiteral<"qr">;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ placeholder: z.ZodOptional<z.ZodString>;
354
+ options: z.ZodArray<z.ZodObject<{
355
+ value: z.ZodString;
356
+ label: z.ZodString;
357
+ }, z.core.$strip>>;
358
+ label: z.ZodString;
359
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
360
+ required: z.ZodBoolean;
361
+ identifier: z.ZodString;
362
+ type: z.ZodLiteral<"select">;
363
+ }, z.core.$strip>, z.ZodObject<{
364
+ minimum_length: z.ZodOptional<z.ZodNumber>;
365
+ maximum_length: z.ZodNumber;
366
+ placeholder: z.ZodOptional<z.ZodString>;
367
+ label: z.ZodString;
368
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
+ required: z.ZodBoolean;
370
+ identifier: z.ZodString;
371
+ type: z.ZodLiteral<"string">;
372
+ }, z.core.$strip>, z.ZodObject<{
373
+ minimum_length: z.ZodOptional<z.ZodNumber>;
374
+ maximum_length: z.ZodNumber;
375
+ placeholder: z.ZodOptional<z.ZodString>;
376
+ label: z.ZodString;
377
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
+ required: z.ZodBoolean;
379
+ identifier: z.ZodString;
380
+ type: z.ZodLiteral<"text">;
381
+ }, z.core.$strip>, z.ZodObject<{
382
+ label: z.ZodString;
383
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ required: z.ZodBoolean;
385
+ identifier: z.ZodString;
386
+ type: z.ZodLiteral<"time">;
387
+ }, z.core.$strip>, z.ZodObject<{
388
+ extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
389
+ maximum_size: z.ZodOptional<z.ZodNumber>;
390
+ maximum_files: z.ZodOptional<z.ZodNumber>;
391
+ label: z.ZodString;
392
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
393
+ required: z.ZodBoolean;
394
+ identifier: z.ZodString;
395
+ type: z.ZodLiteral<"upload">;
396
+ }, z.core.$strip>, z.ZodObject<{
397
+ placeholder: z.ZodOptional<z.ZodString>;
398
+ label: z.ZodString;
399
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
+ required: z.ZodBoolean;
401
+ identifier: z.ZodString;
402
+ type: z.ZodLiteral<"url">;
403
+ }, z.core.$strip>], "type">>;
404
+ identifier: z.ZodString;
405
+ type: z.ZodLiteral<"section">;
406
+ }, z.core.$strip>;
407
+ export type JSONFieldSectionSchemaType = z.infer<typeof JSONFieldSectionSchema>;
@@ -0,0 +1,32 @@
1
+ import * as z from "zod/v4";
2
+ export declare const BaseJSONFieldSchema: <TType extends string>(typeSchema: z.ZodLiteral<TType>) => z.ZodObject<{
3
+ label: z.ZodString;
4
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ required: z.ZodBoolean;
6
+ identifier: z.ZodString;
7
+ type: z.ZodLiteral<TType>;
8
+ }, z.core.$strip>;
9
+ export declare const BaseJSONOptionsFieldSchema: <TType extends string>(typeSchema: z.ZodLiteral<TType>) => z.ZodObject<{
10
+ options: z.ZodArray<z.ZodObject<{
11
+ value: z.ZodString;
12
+ label: z.ZodString;
13
+ }, z.core.$strip>>;
14
+ label: z.ZodString;
15
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ required: z.ZodBoolean;
17
+ identifier: z.ZodString;
18
+ type: z.ZodLiteral<TType>;
19
+ }, z.core.$strip>;
20
+ export declare const BaseJSONStringFieldSchema: <TType extends string>(typeSchema: z.ZodLiteral<TType>) => z.ZodObject<{
21
+ minimum_length: z.ZodOptional<z.ZodNumber>;
22
+ maximum_length: z.ZodNumber;
23
+ placeholder: z.ZodOptional<z.ZodString>;
24
+ label: z.ZodString;
25
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ required: z.ZodBoolean;
27
+ identifier: z.ZodString;
28
+ type: z.ZodLiteral<TType>;
29
+ }, z.core.$strip>;
30
+ export type BaseJSONFieldSchemaType<TType extends string> = z.infer<ReturnType<typeof BaseJSONFieldSchema<TType>>>;
31
+ export type BaseJSONOptionsFieldSchemaType<TType extends string> = z.infer<ReturnType<typeof BaseJSONOptionsFieldSchema<TType>>>;
32
+ export type BaseJSONStringFieldSchemaType<TType extends string> = z.infer<ReturnType<typeof BaseJSONStringFieldSchema<TType>>>;
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONBooleanFieldTypeSchema: z.ZodLiteral<"boolean">;
3
+ export type JSONBooleanFieldTypeSchemaType = z.infer<typeof JSONBooleanFieldTypeSchema>;
4
+ export declare const JSONBooleanFieldSchema: z.ZodObject<{
5
+ label: z.ZodString;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ required: z.ZodBoolean;
8
+ identifier: z.ZodString;
9
+ type: z.ZodLiteral<"boolean">;
10
+ }, z.core.$strip>;
11
+ export type JSONBooleanFieldSchemaType = z.infer<typeof JSONBooleanFieldSchema>;
12
+ export declare const JSONBooleanFieldValueSchema: z.ZodBoolean;
13
+ export type JSONBooleanFieldValueSchemaType = z.infer<typeof JSONBooleanFieldValueSchema>;
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONCheckboxListFieldTypeSchema: z.ZodLiteral<"checkbox-list">;
3
+ export type JSONCheckboxListFieldTypeSchemaType = z.infer<typeof JSONCheckboxListFieldTypeSchema>;
4
+ export declare const JSONCheckboxListFieldSchema: z.ZodObject<{
5
+ options: z.ZodArray<z.ZodObject<{
6
+ value: z.ZodString;
7
+ label: z.ZodString;
8
+ }, z.core.$strip>>;
9
+ label: z.ZodString;
10
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ required: z.ZodBoolean;
12
+ identifier: z.ZodString;
13
+ type: z.ZodLiteral<"checkbox-list">;
14
+ }, z.core.$strip>;
15
+ export type JSONCheckboxListFieldSchemaType = z.infer<typeof JSONCheckboxListFieldSchema>;
16
+ export declare const JSONCheckboxListFieldValueSchema: z.ZodArray<z.ZodString>;
17
+ export type JSONCheckboxListFieldValueSchemaType = z.infer<typeof JSONCheckboxListFieldValueSchema>;
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONDateFieldTypeSchema: z.ZodLiteral<"date">;
3
+ export type JSONDateFieldTypeSchemaType = z.infer<typeof JSONDateFieldTypeSchema>;
4
+ export declare const JSONDateFieldSchema: z.ZodObject<{
5
+ label: z.ZodString;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ required: z.ZodBoolean;
8
+ identifier: z.ZodString;
9
+ type: z.ZodLiteral<"date">;
10
+ }, z.core.$strip>;
11
+ export type JSONDateFieldSchemaType = z.infer<typeof JSONDateFieldSchema>;
12
+ export declare const JSONDateFieldValueSchema: z.ZodNullable<z.ZodString>;
13
+ export type JSONDateFieldValueSchemaType = z.infer<typeof JSONDateFieldValueSchema>;
@@ -0,0 +1,176 @@
1
+ import * as z from "zod/v4";
2
+ export * from './base';
3
+ export * from './boolean';
4
+ export * from './checkbox-list';
5
+ export * from './date';
6
+ export * from './multi-select';
7
+ export * from './multi-string';
8
+ export * from './number';
9
+ export * from './otp';
10
+ export * from './pass-fail';
11
+ export * from './radio';
12
+ export * from './rating';
13
+ export * from './scan';
14
+ export * from './select';
15
+ export * from './string';
16
+ export * from './text';
17
+ export * from './time';
18
+ export * from './upload';
19
+ export * from './url';
20
+ export declare const JSONFieldTypeSchema: 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">]>;
21
+ export type JSONFieldTypeSchemaType = z.infer<typeof JSONFieldTypeSchema>;
22
+ export declare const JSONFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
23
+ label: z.ZodString;
24
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ required: z.ZodBoolean;
26
+ identifier: z.ZodString;
27
+ type: z.ZodLiteral<"boolean">;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ options: z.ZodArray<z.ZodObject<{
30
+ value: z.ZodString;
31
+ label: z.ZodString;
32
+ }, z.core.$strip>>;
33
+ label: z.ZodString;
34
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ required: z.ZodBoolean;
36
+ identifier: z.ZodString;
37
+ type: z.ZodLiteral<"checkbox-list">;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ label: z.ZodString;
40
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ required: z.ZodBoolean;
42
+ identifier: z.ZodString;
43
+ type: z.ZodLiteral<"date">;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ placeholder: z.ZodOptional<z.ZodString>;
46
+ options: z.ZodArray<z.ZodObject<{
47
+ value: z.ZodString;
48
+ label: z.ZodString;
49
+ }, z.core.$strip>>;
50
+ label: z.ZodString;
51
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ required: z.ZodBoolean;
53
+ identifier: z.ZodString;
54
+ type: z.ZodLiteral<"multi-select">;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ minimum_length: z.ZodOptional<z.ZodNumber>;
57
+ maximum_length: z.ZodNumber;
58
+ placeholder: z.ZodOptional<z.ZodString>;
59
+ label: z.ZodString;
60
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ required: z.ZodBoolean;
62
+ identifier: z.ZodString;
63
+ type: z.ZodLiteral<"multi-string">;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ minimum: z.ZodOptional<z.ZodNumber>;
66
+ maximum: z.ZodOptional<z.ZodNumber>;
67
+ integers: z.ZodBoolean;
68
+ placeholder: z.ZodOptional<z.ZodString>;
69
+ label: z.ZodString;
70
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ required: z.ZodBoolean;
72
+ identifier: z.ZodString;
73
+ type: z.ZodLiteral<"number">;
74
+ }, z.core.$strip>, z.ZodObject<{
75
+ length: z.ZodNumber;
76
+ validationType: z.ZodLiteral<"none" | "alpha" | "numeric" | "alphanumeric">;
77
+ label: z.ZodString;
78
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ required: z.ZodBoolean;
80
+ identifier: z.ZodString;
81
+ type: z.ZodLiteral<"otp">;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ showNotesAndFilesOn: z.ZodArray<z.ZodLiteral<"pass" | "fail" | "na">>;
84
+ label: z.ZodString;
85
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ required: z.ZodBoolean;
87
+ identifier: z.ZodString;
88
+ type: z.ZodLiteral<"pass-fail">;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ options: z.ZodArray<z.ZodObject<{
91
+ value: z.ZodString;
92
+ label: z.ZodString;
93
+ }, z.core.$strip>>;
94
+ label: z.ZodString;
95
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ required: z.ZodBoolean;
97
+ identifier: z.ZodString;
98
+ type: z.ZodLiteral<"radio">;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ maxRating: z.ZodNumber;
101
+ label: z.ZodString;
102
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ required: z.ZodBoolean;
104
+ identifier: z.ZodString;
105
+ type: z.ZodLiteral<"rating">;
106
+ }, z.core.$strip>, z.ZodObject<{
107
+ label: z.ZodString;
108
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ required: z.ZodBoolean;
110
+ identifier: z.ZodString;
111
+ type: z.ZodLiteral<"qr">;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ placeholder: z.ZodOptional<z.ZodString>;
114
+ options: z.ZodArray<z.ZodObject<{
115
+ value: z.ZodString;
116
+ label: z.ZodString;
117
+ }, z.core.$strip>>;
118
+ label: z.ZodString;
119
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ required: z.ZodBoolean;
121
+ identifier: z.ZodString;
122
+ type: z.ZodLiteral<"select">;
123
+ }, z.core.$strip>, z.ZodObject<{
124
+ minimum_length: z.ZodOptional<z.ZodNumber>;
125
+ maximum_length: z.ZodNumber;
126
+ placeholder: z.ZodOptional<z.ZodString>;
127
+ label: z.ZodString;
128
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ required: z.ZodBoolean;
130
+ identifier: z.ZodString;
131
+ type: z.ZodLiteral<"string">;
132
+ }, z.core.$strip>, z.ZodObject<{
133
+ minimum_length: z.ZodOptional<z.ZodNumber>;
134
+ maximum_length: z.ZodNumber;
135
+ placeholder: z.ZodOptional<z.ZodString>;
136
+ label: z.ZodString;
137
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ required: z.ZodBoolean;
139
+ identifier: z.ZodString;
140
+ type: z.ZodLiteral<"text">;
141
+ }, z.core.$strip>, z.ZodObject<{
142
+ label: z.ZodString;
143
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ required: z.ZodBoolean;
145
+ identifier: z.ZodString;
146
+ type: z.ZodLiteral<"time">;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
149
+ maximum_size: z.ZodOptional<z.ZodNumber>;
150
+ maximum_files: z.ZodOptional<z.ZodNumber>;
151
+ label: z.ZodString;
152
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ required: z.ZodBoolean;
154
+ identifier: z.ZodString;
155
+ type: z.ZodLiteral<"upload">;
156
+ }, z.core.$strip>, z.ZodObject<{
157
+ placeholder: z.ZodOptional<z.ZodString>;
158
+ label: z.ZodString;
159
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ required: z.ZodBoolean;
161
+ identifier: z.ZodString;
162
+ type: z.ZodLiteral<"url">;
163
+ }, z.core.$strip>], "type">;
164
+ export type JSONFieldSchemaType = z.infer<typeof JSONFieldSchema>;
165
+ export declare const JSONFieldValueSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodString, z.ZodObject<{
166
+ status: z.ZodNullable<z.ZodLiteral<"pass" | "fail" | "na">>;
167
+ notes: z.ZodString;
168
+ files: z.ZodTuple<[], null>;
169
+ }, z.core.$strip>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodString, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodString, z.ZodNullable<z.ZodTemplateLiteral<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`>>, z.ZodTuple<[], null>, z.ZodNullable<z.ZodString>]>;
170
+ export type JSONFieldValueSchemaType = z.infer<typeof JSONFieldValueSchema>;
171
+ export declare const JSONFieldValuesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodString, z.ZodObject<{
172
+ status: z.ZodNullable<z.ZodLiteral<"pass" | "fail" | "na">>;
173
+ notes: z.ZodString;
174
+ files: z.ZodTuple<[], null>;
175
+ }, z.core.$strip>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodString, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodString, z.ZodNullable<z.ZodTemplateLiteral<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`>>, z.ZodTuple<[], null>, z.ZodNullable<z.ZodString>]>>;
176
+ export type JSONFieldValuesSchemaType = z.infer<typeof JSONFieldValuesSchema>;