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