@adrekic/zod-fieldsjson 0.0.1 → 0.0.2-schema-improvements.1

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 +3 -3
  3. package/dist/conditions/checkbox-list.d.ts +3 -3
  4. package/dist/conditions/date.d.ts +3 -3
  5. package/dist/conditions/index.d.ts +51 -51
  6. package/dist/conditions/multi-select.d.ts +3 -3
  7. package/dist/conditions/multi-string.d.ts +3 -3
  8. package/dist/conditions/number.d.ts +3 -3
  9. package/dist/conditions/otp.d.ts +3 -3
  10. package/dist/conditions/pass-fail.d.ts +3 -3
  11. package/dist/conditions/radio.d.ts +3 -3
  12. package/dist/conditions/rating.d.ts +3 -3
  13. package/dist/conditions/scan.d.ts +3 -3
  14. package/dist/conditions/select.d.ts +3 -3
  15. package/dist/conditions/string.d.ts +3 -3
  16. package/dist/conditions/text.d.ts +3 -3
  17. package/dist/conditions/time.d.ts +3 -3
  18. package/dist/conditions/upload.d.ts +3 -3
  19. package/dist/conditions/url.d.ts +3 -3
  20. package/dist/elements/base.d.ts +1 -1
  21. package/dist/elements/index.d.ts +212 -214
  22. package/dist/elements/section.d.ts +185 -186
  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 +60 -69
  44. package/dist/schema.d.ts +134 -135
  45. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
1
  import * as z from "zod/v4";
2
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;
3
+ label: z.ZodOptional<z.ZodString>;
4
+ description: z.ZodOptional<z.ZodString>;
5
+ required: z.ZodOptional<z.ZodBoolean>;
6
+ id: z.ZodString;
7
7
  type: z.ZodLiteral<TType>;
8
8
  }, z.core.$strip>;
9
9
  export declare const BaseJSONOptionsFieldSchema: <TType extends string>(typeSchema: z.ZodLiteral<TType>) => z.ZodObject<{
@@ -11,20 +11,20 @@ export declare const BaseJSONOptionsFieldSchema: <TType extends string>(typeSche
11
11
  value: z.ZodString;
12
12
  label: z.ZodString;
13
13
  }, z.core.$strip>>;
14
- label: z.ZodString;
15
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- required: z.ZodBoolean;
17
- identifier: z.ZodString;
14
+ label: z.ZodOptional<z.ZodString>;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ required: z.ZodOptional<z.ZodBoolean>;
17
+ id: z.ZodString;
18
18
  type: z.ZodLiteral<TType>;
19
19
  }, z.core.$strip>;
20
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.ZodOptional<z.ZodNumber>;
21
+ minLength: z.ZodOptional<z.ZodInt>;
22
+ maxLength: z.ZodOptional<z.ZodInt>;
23
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;
24
+ label: z.ZodOptional<z.ZodString>;
25
+ description: z.ZodOptional<z.ZodString>;
26
+ required: z.ZodOptional<z.ZodBoolean>;
27
+ id: z.ZodString;
28
28
  type: z.ZodLiteral<TType>;
29
29
  }, z.core.$strip>;
30
30
  export type BaseJSONFieldSchemaType<TType extends string> = z.infer<ReturnType<typeof BaseJSONFieldSchema<TType>>>;
@@ -2,10 +2,10 @@ import * as z from "zod/v4";
2
2
  export declare const JSONBooleanFieldTypeSchema: z.ZodLiteral<"boolean">;
3
3
  export type JSONBooleanFieldTypeSchemaType = z.infer<typeof JSONBooleanFieldTypeSchema>;
4
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;
5
+ label: z.ZodOptional<z.ZodString>;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ required: z.ZodOptional<z.ZodBoolean>;
8
+ id: z.ZodString;
9
9
  type: z.ZodLiteral<"boolean">;
10
10
  }, z.core.$strip>;
11
11
  export type JSONBooleanFieldSchemaType = z.infer<typeof JSONBooleanFieldSchema>;
@@ -6,10 +6,10 @@ export declare const JSONCheckboxListFieldSchema: z.ZodObject<{
6
6
  value: z.ZodString;
7
7
  label: z.ZodString;
8
8
  }, z.core.$strip>>;
9
- label: z.ZodString;
10
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- required: z.ZodBoolean;
12
- identifier: z.ZodString;
9
+ label: z.ZodOptional<z.ZodString>;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ required: z.ZodOptional<z.ZodBoolean>;
12
+ id: z.ZodString;
13
13
  type: z.ZodLiteral<"checkbox-list">;
14
14
  }, z.core.$strip>;
15
15
  export type JSONCheckboxListFieldSchemaType = z.infer<typeof JSONCheckboxListFieldSchema>;
@@ -2,10 +2,10 @@ import * as z from "zod/v4";
2
2
  export declare const JSONDateFieldTypeSchema: z.ZodLiteral<"date">;
3
3
  export type JSONDateFieldTypeSchemaType = z.infer<typeof JSONDateFieldTypeSchema>;
4
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;
5
+ label: z.ZodOptional<z.ZodString>;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ required: z.ZodOptional<z.ZodBoolean>;
8
+ id: z.ZodString;
9
9
  type: z.ZodLiteral<"date">;
10
10
  }, z.core.$strip>;
11
11
  export type JSONDateFieldSchemaType = z.infer<typeof JSONDateFieldSchema>;
@@ -20,26 +20,26 @@ export * from './url';
20
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
21
  export type JSONFieldTypeSchemaType = z.infer<typeof JSONFieldTypeSchema>;
22
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;
23
+ label: z.ZodOptional<z.ZodString>;
24
+ description: z.ZodOptional<z.ZodString>;
25
+ required: z.ZodOptional<z.ZodBoolean>;
26
+ id: z.ZodString;
27
27
  type: z.ZodLiteral<"boolean">;
28
28
  }, z.core.$strip>, z.ZodObject<{
29
29
  options: z.ZodArray<z.ZodObject<{
30
30
  value: z.ZodString;
31
31
  label: z.ZodString;
32
32
  }, z.core.$strip>>;
33
- label: z.ZodString;
34
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
- required: z.ZodBoolean;
36
- identifier: z.ZodString;
33
+ label: z.ZodOptional<z.ZodString>;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ required: z.ZodOptional<z.ZodBoolean>;
36
+ id: z.ZodString;
37
37
  type: z.ZodLiteral<"checkbox-list">;
38
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;
39
+ label: z.ZodOptional<z.ZodString>;
40
+ description: z.ZodOptional<z.ZodString>;
41
+ required: z.ZodOptional<z.ZodBoolean>;
42
+ id: z.ZodString;
43
43
  type: z.ZodLiteral<"date">;
44
44
  }, z.core.$strip>, z.ZodObject<{
45
45
  placeholder: z.ZodOptional<z.ZodString>;
@@ -47,67 +47,66 @@ export declare const JSONFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
47
47
  value: z.ZodString;
48
48
  label: z.ZodString;
49
49
  }, z.core.$strip>>;
50
- label: z.ZodString;
51
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
- required: z.ZodBoolean;
53
- identifier: z.ZodString;
50
+ label: z.ZodOptional<z.ZodString>;
51
+ description: z.ZodOptional<z.ZodString>;
52
+ required: z.ZodOptional<z.ZodBoolean>;
53
+ id: z.ZodString;
54
54
  type: z.ZodLiteral<"multi-select">;
55
55
  }, z.core.$strip>, z.ZodObject<{
56
- minimum_length: z.ZodOptional<z.ZodNumber>;
57
- maximum_length: z.ZodOptional<z.ZodNumber>;
56
+ minLength: z.ZodOptional<z.ZodInt>;
57
+ maxLength: z.ZodOptional<z.ZodInt>;
58
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;
59
+ label: z.ZodOptional<z.ZodString>;
60
+ description: z.ZodOptional<z.ZodString>;
61
+ required: z.ZodOptional<z.ZodBoolean>;
62
+ id: z.ZodString;
63
63
  type: z.ZodLiteral<"multi-string">;
64
64
  }, z.core.$strip>, z.ZodObject<{
65
65
  minimum: z.ZodOptional<z.ZodNumber>;
66
66
  maximum: z.ZodOptional<z.ZodNumber>;
67
67
  integers: z.ZodOptional<z.ZodBoolean>;
68
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;
69
+ label: z.ZodOptional<z.ZodString>;
70
+ description: z.ZodOptional<z.ZodString>;
71
+ required: z.ZodOptional<z.ZodBoolean>;
72
+ id: z.ZodString;
73
73
  type: z.ZodLiteral<"number">;
74
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;
75
+ length: z.ZodInt;
76
+ label: z.ZodOptional<z.ZodString>;
77
+ description: z.ZodOptional<z.ZodString>;
78
+ required: z.ZodOptional<z.ZodBoolean>;
79
+ id: z.ZodString;
81
80
  type: z.ZodLiteral<"otp">;
82
81
  }, z.core.$strip>, z.ZodObject<{
83
82
  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;
83
+ label: z.ZodOptional<z.ZodString>;
84
+ description: z.ZodOptional<z.ZodString>;
85
+ required: z.ZodOptional<z.ZodBoolean>;
86
+ id: z.ZodString;
88
87
  type: z.ZodLiteral<"pass-fail">;
89
88
  }, z.core.$strip>, z.ZodObject<{
90
89
  options: z.ZodArray<z.ZodObject<{
91
90
  value: z.ZodString;
92
91
  label: z.ZodString;
93
92
  }, z.core.$strip>>;
94
- label: z.ZodString;
95
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
- required: z.ZodBoolean;
97
- identifier: z.ZodString;
93
+ label: z.ZodOptional<z.ZodString>;
94
+ description: z.ZodOptional<z.ZodString>;
95
+ required: z.ZodOptional<z.ZodBoolean>;
96
+ id: z.ZodString;
98
97
  type: z.ZodLiteral<"radio">;
99
98
  }, 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;
99
+ maxRating: z.ZodInt;
100
+ label: z.ZodOptional<z.ZodString>;
101
+ description: z.ZodOptional<z.ZodString>;
102
+ required: z.ZodOptional<z.ZodBoolean>;
103
+ id: z.ZodString;
105
104
  type: z.ZodLiteral<"rating">;
106
105
  }, 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;
106
+ label: z.ZodOptional<z.ZodString>;
107
+ description: z.ZodOptional<z.ZodString>;
108
+ required: z.ZodOptional<z.ZodBoolean>;
109
+ id: z.ZodString;
111
110
  type: z.ZodLiteral<"qr">;
112
111
  }, z.core.$strip>, z.ZodObject<{
113
112
  placeholder: z.ZodOptional<z.ZodString>;
@@ -115,50 +114,50 @@ export declare const JSONFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
114
  value: z.ZodString;
116
115
  label: z.ZodString;
117
116
  }, z.core.$strip>>;
118
- label: z.ZodString;
119
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
- required: z.ZodBoolean;
121
- identifier: z.ZodString;
117
+ label: z.ZodOptional<z.ZodString>;
118
+ description: z.ZodOptional<z.ZodString>;
119
+ required: z.ZodOptional<z.ZodBoolean>;
120
+ id: z.ZodString;
122
121
  type: z.ZodLiteral<"select">;
123
122
  }, z.core.$strip>, z.ZodObject<{
124
- minimum_length: z.ZodOptional<z.ZodNumber>;
125
- maximum_length: z.ZodOptional<z.ZodNumber>;
123
+ minLength: z.ZodOptional<z.ZodInt>;
124
+ maxLength: z.ZodOptional<z.ZodInt>;
126
125
  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;
126
+ label: z.ZodOptional<z.ZodString>;
127
+ description: z.ZodOptional<z.ZodString>;
128
+ required: z.ZodOptional<z.ZodBoolean>;
129
+ id: z.ZodString;
131
130
  type: z.ZodLiteral<"string">;
132
131
  }, z.core.$strip>, z.ZodObject<{
133
- minimum_length: z.ZodOptional<z.ZodNumber>;
134
- maximum_length: z.ZodOptional<z.ZodNumber>;
132
+ minLength: z.ZodOptional<z.ZodInt>;
133
+ maxLength: z.ZodOptional<z.ZodInt>;
135
134
  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;
135
+ label: z.ZodOptional<z.ZodString>;
136
+ description: z.ZodOptional<z.ZodString>;
137
+ required: z.ZodOptional<z.ZodBoolean>;
138
+ id: z.ZodString;
140
139
  type: z.ZodLiteral<"text">;
141
140
  }, 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;
141
+ label: z.ZodOptional<z.ZodString>;
142
+ description: z.ZodOptional<z.ZodString>;
143
+ required: z.ZodOptional<z.ZodBoolean>;
144
+ id: z.ZodString;
146
145
  type: z.ZodLiteral<"time">;
147
146
  }, z.core.$strip>, z.ZodObject<{
148
147
  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;
148
+ maxSize: z.ZodOptional<z.ZodInt>;
149
+ maxFiles: z.ZodOptional<z.ZodInt>;
150
+ label: z.ZodOptional<z.ZodString>;
151
+ description: z.ZodOptional<z.ZodString>;
152
+ required: z.ZodOptional<z.ZodBoolean>;
153
+ id: z.ZodString;
155
154
  type: z.ZodLiteral<"upload">;
156
155
  }, z.core.$strip>, z.ZodObject<{
157
156
  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;
157
+ label: z.ZodOptional<z.ZodString>;
158
+ description: z.ZodOptional<z.ZodString>;
159
+ required: z.ZodOptional<z.ZodBoolean>;
160
+ id: z.ZodString;
162
161
  type: z.ZodLiteral<"url">;
163
162
  }, z.core.$strip>], "type">;
164
163
  export type JSONFieldSchemaType = z.infer<typeof JSONFieldSchema>;
@@ -7,10 +7,10 @@ export declare const JSONMultiSelectFieldSchema: z.ZodObject<{
7
7
  value: z.ZodString;
8
8
  label: z.ZodString;
9
9
  }, z.core.$strip>>;
10
- label: z.ZodString;
11
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- required: z.ZodBoolean;
13
- identifier: z.ZodString;
10
+ label: z.ZodOptional<z.ZodString>;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ required: z.ZodOptional<z.ZodBoolean>;
13
+ id: z.ZodString;
14
14
  type: z.ZodLiteral<"multi-select">;
15
15
  }, z.core.$strip>;
16
16
  export type JSONMultiSelectFieldSchemaType = z.infer<typeof JSONMultiSelectFieldSchema>;
@@ -2,13 +2,13 @@ import * as z from "zod/v4";
2
2
  export declare const JSONMultiStringFieldTypeSchema: z.ZodLiteral<"multi-string">;
3
3
  export type JSONMultiStringFieldTypeSchemaType = z.infer<typeof JSONMultiStringFieldTypeSchema>;
4
4
  export declare const JSONMultiStringFieldSchema: z.ZodObject<{
5
- minimum_length: z.ZodOptional<z.ZodNumber>;
6
- maximum_length: z.ZodOptional<z.ZodNumber>;
5
+ minLength: z.ZodOptional<z.ZodInt>;
6
+ maxLength: z.ZodOptional<z.ZodInt>;
7
7
  placeholder: z.ZodOptional<z.ZodString>;
8
- label: z.ZodString;
9
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- required: z.ZodBoolean;
11
- identifier: z.ZodString;
8
+ label: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ required: z.ZodOptional<z.ZodBoolean>;
11
+ id: z.ZodString;
12
12
  type: z.ZodLiteral<"multi-string">;
13
13
  }, z.core.$strip>;
14
14
  export type JSONMultiStringFieldSchemaType = z.infer<typeof JSONMultiStringFieldSchema>;
@@ -6,10 +6,10 @@ export declare const JSONNumberFieldSchema: z.ZodObject<{
6
6
  maximum: z.ZodOptional<z.ZodNumber>;
7
7
  integers: z.ZodOptional<z.ZodBoolean>;
8
8
  placeholder: z.ZodOptional<z.ZodString>;
9
- label: z.ZodString;
10
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- required: z.ZodBoolean;
12
- identifier: z.ZodString;
9
+ label: z.ZodOptional<z.ZodString>;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ required: z.ZodOptional<z.ZodBoolean>;
12
+ id: z.ZodString;
13
13
  type: z.ZodLiteral<"number">;
14
14
  }, z.core.$strip>;
15
15
  export type JSONNumberFieldSchemaType = z.infer<typeof JSONNumberFieldSchema>;
@@ -1,15 +1,12 @@
1
1
  import * as z from "zod/v4";
2
- export declare const OTPFieldValidationTypeSchema: z.ZodLiteral<"none" | "alpha" | "numeric" | "alphanumeric">;
3
- export type OTPFieldValidationTypeSchemaType = z.infer<typeof OTPFieldValidationTypeSchema>;
4
2
  export declare const JSONOTPFieldTypeSchema: z.ZodLiteral<"otp">;
5
3
  export type JSONOTPFieldTypeSchemaType = z.infer<typeof JSONOTPFieldTypeSchema>;
6
4
  export declare const JSONOTPFieldSchema: z.ZodObject<{
7
- length: z.ZodNumber;
8
- validationType: z.ZodLiteral<"none" | "alpha" | "numeric" | "alphanumeric">;
9
- label: z.ZodString;
10
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- required: z.ZodBoolean;
12
- identifier: z.ZodString;
5
+ length: z.ZodInt;
6
+ label: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ required: z.ZodOptional<z.ZodBoolean>;
9
+ id: z.ZodString;
13
10
  type: z.ZodLiteral<"otp">;
14
11
  }, z.core.$strip>;
15
12
  export type JSONOTPFieldSchemaType = z.infer<typeof JSONOTPFieldSchema>;
@@ -5,10 +5,10 @@ export declare const JSONPassFailFieldTypeSchema: z.ZodLiteral<"pass-fail">;
5
5
  export type JSONPassFailFieldTypeSchemaType = z.infer<typeof JSONPassFailFieldTypeSchema>;
6
6
  export declare const JSONPassFailFieldSchema: z.ZodObject<{
7
7
  showNotesAndFilesOn: z.ZodArray<z.ZodLiteral<"pass" | "fail" | "na">>;
8
- label: z.ZodString;
9
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- required: z.ZodBoolean;
11
- identifier: z.ZodString;
8
+ label: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ required: z.ZodOptional<z.ZodBoolean>;
11
+ id: z.ZodString;
12
12
  type: z.ZodLiteral<"pass-fail">;
13
13
  }, z.core.$strip>;
14
14
  export type JSONPassFailFieldSchemaType = z.infer<typeof JSONPassFailFieldSchema>;
@@ -6,10 +6,10 @@ export declare const JSONRadioFieldSchema: z.ZodObject<{
6
6
  value: z.ZodString;
7
7
  label: z.ZodString;
8
8
  }, z.core.$strip>>;
9
- label: z.ZodString;
10
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- required: z.ZodBoolean;
12
- identifier: z.ZodString;
9
+ label: z.ZodOptional<z.ZodString>;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ required: z.ZodOptional<z.ZodBoolean>;
12
+ id: z.ZodString;
13
13
  type: z.ZodLiteral<"radio">;
14
14
  }, z.core.$strip>;
15
15
  export type JSONRadioFieldSchemaType = z.infer<typeof JSONRadioFieldSchema>;
@@ -2,11 +2,11 @@ import * as z from "zod/v4";
2
2
  export declare const JSONRatingFieldTypeSchema: z.ZodLiteral<"rating">;
3
3
  export type JSONRatingFieldTypeSchemaType = z.infer<typeof JSONRatingFieldTypeSchema>;
4
4
  export declare const JSONRatingFieldSchema: z.ZodObject<{
5
- maxRating: z.ZodNumber;
6
- label: z.ZodString;
7
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- required: z.ZodBoolean;
9
- identifier: z.ZodString;
5
+ maxRating: z.ZodInt;
6
+ label: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ required: z.ZodOptional<z.ZodBoolean>;
9
+ id: z.ZodString;
10
10
  type: z.ZodLiteral<"rating">;
11
11
  }, z.core.$strip>;
12
12
  export type JSONRatingFieldSchemaType = z.infer<typeof JSONRatingFieldSchema>;
@@ -2,10 +2,10 @@ import * as z from "zod/v4";
2
2
  export declare const JSONScanFieldTypeSchema: z.ZodLiteral<"qr">;
3
3
  export type JSONScanFieldTypeSchemaType = z.infer<typeof JSONScanFieldTypeSchema>;
4
4
  export declare const JSONScanFieldSchema: z.ZodObject<{
5
- label: z.ZodString;
6
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- required: z.ZodBoolean;
8
- identifier: z.ZodString;
5
+ label: z.ZodOptional<z.ZodString>;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ required: z.ZodOptional<z.ZodBoolean>;
8
+ id: z.ZodString;
9
9
  type: z.ZodLiteral<"qr">;
10
10
  }, z.core.$strip>;
11
11
  export type JSONScanFieldSchemaType = z.infer<typeof JSONScanFieldSchema>;
@@ -7,10 +7,10 @@ export declare const JSONSelectFieldSchema: z.ZodObject<{
7
7
  value: z.ZodString;
8
8
  label: z.ZodString;
9
9
  }, z.core.$strip>>;
10
- label: z.ZodString;
11
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- required: z.ZodBoolean;
13
- identifier: z.ZodString;
10
+ label: z.ZodOptional<z.ZodString>;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ required: z.ZodOptional<z.ZodBoolean>;
13
+ id: z.ZodString;
14
14
  type: z.ZodLiteral<"select">;
15
15
  }, z.core.$strip>;
16
16
  export type JSONSelectFieldSchemaType = z.infer<typeof JSONSelectFieldSchema>;
@@ -2,13 +2,13 @@ import * as z from "zod/v4";
2
2
  export declare const JSONStringFieldTypeSchema: z.ZodLiteral<"string">;
3
3
  export type JSONStringFieldTypeSchemaType = z.infer<typeof JSONStringFieldTypeSchema>;
4
4
  export declare const JSONStringFieldSchema: z.ZodObject<{
5
- minimum_length: z.ZodOptional<z.ZodNumber>;
6
- maximum_length: z.ZodOptional<z.ZodNumber>;
5
+ minLength: z.ZodOptional<z.ZodInt>;
6
+ maxLength: z.ZodOptional<z.ZodInt>;
7
7
  placeholder: z.ZodOptional<z.ZodString>;
8
- label: z.ZodString;
9
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- required: z.ZodBoolean;
11
- identifier: z.ZodString;
8
+ label: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ required: z.ZodOptional<z.ZodBoolean>;
11
+ id: z.ZodString;
12
12
  type: z.ZodLiteral<"string">;
13
13
  }, z.core.$strip>;
14
14
  export type JSONStringFieldSchemaType = z.infer<typeof JSONStringFieldSchema>;
@@ -2,13 +2,13 @@ import * as z from "zod/v4";
2
2
  export declare const JSONTextFieldTypeSchema: z.ZodLiteral<"text">;
3
3
  export type JSONTextFieldTypeSchemaType = z.infer<typeof JSONTextFieldTypeSchema>;
4
4
  export declare const JSONTextFieldSchema: z.ZodObject<{
5
- minimum_length: z.ZodOptional<z.ZodNumber>;
6
- maximum_length: z.ZodOptional<z.ZodNumber>;
5
+ minLength: z.ZodOptional<z.ZodInt>;
6
+ maxLength: z.ZodOptional<z.ZodInt>;
7
7
  placeholder: z.ZodOptional<z.ZodString>;
8
- label: z.ZodString;
9
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- required: z.ZodBoolean;
11
- identifier: z.ZodString;
8
+ label: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ required: z.ZodOptional<z.ZodBoolean>;
11
+ id: z.ZodString;
12
12
  type: z.ZodLiteral<"text">;
13
13
  }, z.core.$strip>;
14
14
  export type JSONTextFieldSchemaType = z.infer<typeof JSONTextFieldSchema>;
@@ -2,10 +2,10 @@ import * as z from "zod/v4";
2
2
  export declare const JSONTimeFieldTypeSchema: z.ZodLiteral<"time">;
3
3
  export type JSONTimeFieldTypeSchemaType = z.infer<typeof JSONTimeFieldTypeSchema>;
4
4
  export declare const JSONTimeFieldSchema: z.ZodObject<{
5
- label: z.ZodString;
6
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- required: z.ZodBoolean;
8
- identifier: z.ZodString;
5
+ label: z.ZodOptional<z.ZodString>;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ required: z.ZodOptional<z.ZodBoolean>;
8
+ id: z.ZodString;
9
9
  type: z.ZodLiteral<"time">;
10
10
  }, z.core.$strip>;
11
11
  export type JSONTimeFieldSchemaType = z.infer<typeof JSONTimeFieldSchema>;
@@ -3,12 +3,12 @@ export declare const JSONUploadFieldTypeSchema: z.ZodLiteral<"upload">;
3
3
  export type JSONUploadFieldTypeSchemaType = z.infer<typeof JSONUploadFieldTypeSchema>;
4
4
  export declare const JSONUploadFieldSchema: z.ZodObject<{
5
5
  extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
- maximum_size: z.ZodOptional<z.ZodNumber>;
7
- maximum_files: z.ZodOptional<z.ZodNumber>;
8
- label: z.ZodString;
9
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- required: z.ZodBoolean;
11
- identifier: z.ZodString;
6
+ maxSize: z.ZodOptional<z.ZodInt>;
7
+ maxFiles: z.ZodOptional<z.ZodInt>;
8
+ label: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ required: z.ZodOptional<z.ZodBoolean>;
11
+ id: z.ZodString;
12
12
  type: z.ZodLiteral<"upload">;
13
13
  }, z.core.$strip>;
14
14
  export type JSONUploadFieldSchemaType = z.infer<typeof JSONUploadFieldSchema>;
@@ -3,10 +3,10 @@ export declare const JSONURLFieldTypeSchema: z.ZodLiteral<"url">;
3
3
  export type JSONURLFieldTypeSchemaType = z.infer<typeof JSONURLFieldTypeSchema>;
4
4
  export declare const JSONURLFieldSchema: z.ZodObject<{
5
5
  placeholder: z.ZodOptional<z.ZodString>;
6
- label: z.ZodString;
7
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- required: z.ZodBoolean;
9
- identifier: z.ZodString;
6
+ label: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ required: z.ZodOptional<z.ZodBoolean>;
9
+ id: z.ZodString;
10
10
  type: z.ZodLiteral<"url">;
11
11
  }, z.core.$strip>;
12
12
  export type JSONURLFieldSchemaType = z.infer<typeof JSONURLFieldSchema>;