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