@adrekic/zod-fieldsjson 0.0.2-schema-improvements.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/conditions/boolean.d.ts +30 -4
- package/dist/conditions/checkbox-list.d.ts +78 -4
- package/dist/conditions/date.d.ts +114 -6
- package/dist/conditions/index.d.ts +426 -30
- package/dist/conditions/multi-select.d.ts +78 -4
- package/dist/conditions/multi-string.d.ts +78 -4
- package/dist/conditions/number.d.ts +146 -6
- package/dist/conditions/otp.d.ts +62 -4
- package/dist/conditions/pass-fail.d.ts +63 -5
- package/dist/conditions/radio.d.ts +63 -5
- package/dist/conditions/rating.d.ts +146 -6
- package/dist/conditions/scan.d.ts +62 -4
- package/dist/conditions/select.d.ts +63 -5
- package/dist/conditions/string.d.ts +62 -4
- package/dist/conditions/text.d.ts +62 -4
- package/dist/conditions/time.d.ts +114 -6
- package/dist/conditions/upload.d.ts +30 -4
- package/dist/conditions/url.d.ts +62 -4
- package/dist/elements/index.d.ts +426 -30
- package/dist/elements/section.d.ts +856 -64
- package/dist/index.cjs +1 -1
- package/dist/index.js +339 -249
- package/dist/schema.d.ts +426 -30
- package/package.json +2 -2
|
@@ -19,131 +19,527 @@ export * from './upload';
|
|
|
19
19
|
export * from './url';
|
|
20
20
|
export declare const JSONConditionTypeSchema: 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 JSONConditionTypeSchemaType = z.infer<typeof JSONConditionTypeSchema>;
|
|
22
|
-
export declare const JSONConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
+
export declare const JSONConditionSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
type: z.ZodLiteral<"boolean">;
|
|
25
25
|
field: z.ZodString;
|
|
26
26
|
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
27
|
-
modifier: z.ZodLiteral<"equals"
|
|
27
|
+
modifier: z.ZodLiteral<"equals">;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
type: z.ZodLiteral<"boolean">;
|
|
31
|
+
field: z.ZodString;
|
|
32
|
+
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
33
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
34
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
37
|
+
field: z.ZodString;
|
|
38
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
39
|
+
modifier: z.ZodLiteral<"equals">;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
43
|
+
field: z.ZodString;
|
|
44
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
45
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
49
|
+
field: z.ZodString;
|
|
50
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
51
|
+
modifier: z.ZodLiteral<"every">;
|
|
28
52
|
}, z.core.$strip>, z.ZodObject<{
|
|
29
53
|
id: z.ZodString;
|
|
30
54
|
type: z.ZodLiteral<"checkbox-list">;
|
|
31
55
|
field: z.ZodString;
|
|
32
56
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
33
|
-
modifier: z.ZodLiteral<"
|
|
57
|
+
modifier: z.ZodLiteral<"some">;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
61
|
+
field: z.ZodString;
|
|
62
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
63
|
+
modifier: z.ZodLiteral<"none">;
|
|
64
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
type: z.ZodLiteral<"date">;
|
|
67
|
+
field: z.ZodString;
|
|
68
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
69
|
+
modifier: z.ZodLiteral<"equals">;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
type: z.ZodLiteral<"date">;
|
|
73
|
+
field: z.ZodString;
|
|
74
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
75
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
type: z.ZodLiteral<"date">;
|
|
79
|
+
field: z.ZodString;
|
|
80
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
81
|
+
modifier: z.ZodLiteral<"before">;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
type: z.ZodLiteral<"date">;
|
|
85
|
+
field: z.ZodString;
|
|
86
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
87
|
+
modifier: z.ZodLiteral<"after">;
|
|
34
88
|
}, z.core.$strip>, z.ZodObject<{
|
|
35
89
|
id: z.ZodString;
|
|
36
90
|
type: z.ZodLiteral<"date">;
|
|
37
91
|
field: z.ZodString;
|
|
38
|
-
value: z.ZodType<
|
|
92
|
+
value: z.ZodType<{
|
|
39
93
|
from: string | null;
|
|
40
94
|
to: string | null;
|
|
41
|
-
}, unknown, z.core.$ZodTypeInternals<
|
|
95
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
42
96
|
from: string | null;
|
|
43
97
|
to: string | null;
|
|
44
98
|
}, unknown>>;
|
|
45
|
-
modifier: z.ZodLiteral<"
|
|
99
|
+
modifier: z.ZodLiteral<"in">;
|
|
100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
type: z.ZodLiteral<"date">;
|
|
103
|
+
field: z.ZodString;
|
|
104
|
+
value: z.ZodType<{
|
|
105
|
+
from: string | null;
|
|
106
|
+
to: string | null;
|
|
107
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
108
|
+
from: string | null;
|
|
109
|
+
to: string | null;
|
|
110
|
+
}, unknown>>;
|
|
111
|
+
modifier: z.ZodLiteral<"notIn">;
|
|
112
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
type: z.ZodLiteral<"multi-select">;
|
|
115
|
+
field: z.ZodString;
|
|
116
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
117
|
+
modifier: z.ZodLiteral<"equals">;
|
|
46
118
|
}, z.core.$strip>, z.ZodObject<{
|
|
47
119
|
id: z.ZodString;
|
|
48
120
|
type: z.ZodLiteral<"multi-select">;
|
|
49
121
|
field: z.ZodString;
|
|
50
122
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
51
|
-
modifier: z.ZodLiteral<"
|
|
123
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
52
124
|
}, z.core.$strip>, z.ZodObject<{
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
type: z.ZodLiteral<"multi-select">;
|
|
127
|
+
field: z.ZodString;
|
|
128
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
129
|
+
modifier: z.ZodLiteral<"every">;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
id: z.ZodString;
|
|
132
|
+
type: z.ZodLiteral<"multi-select">;
|
|
133
|
+
field: z.ZodString;
|
|
134
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
135
|
+
modifier: z.ZodLiteral<"some">;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
type: z.ZodLiteral<"multi-select">;
|
|
139
|
+
field: z.ZodString;
|
|
140
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
141
|
+
modifier: z.ZodLiteral<"none">;
|
|
142
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
143
|
id: z.ZodString;
|
|
54
144
|
type: z.ZodLiteral<"multi-string">;
|
|
55
145
|
field: z.ZodString;
|
|
56
146
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
57
|
-
modifier: z.ZodLiteral<"equals"
|
|
147
|
+
modifier: z.ZodLiteral<"equals">;
|
|
148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
type: z.ZodLiteral<"multi-string">;
|
|
151
|
+
field: z.ZodString;
|
|
152
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
153
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
154
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
type: z.ZodLiteral<"multi-string">;
|
|
157
|
+
field: z.ZodString;
|
|
158
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
159
|
+
modifier: z.ZodLiteral<"every">;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
type: z.ZodLiteral<"multi-string">;
|
|
163
|
+
field: z.ZodString;
|
|
164
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
165
|
+
modifier: z.ZodLiteral<"some">;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
id: z.ZodString;
|
|
168
|
+
type: z.ZodLiteral<"multi-string">;
|
|
169
|
+
field: z.ZodString;
|
|
170
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
171
|
+
modifier: z.ZodLiteral<"none">;
|
|
172
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
173
|
+
id: z.ZodString;
|
|
174
|
+
type: z.ZodLiteral<"number">;
|
|
175
|
+
field: z.ZodString;
|
|
176
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
177
|
+
modifier: z.ZodLiteral<"equals">;
|
|
58
178
|
}, z.core.$strip>, z.ZodObject<{
|
|
59
179
|
id: z.ZodString;
|
|
60
180
|
type: z.ZodLiteral<"number">;
|
|
61
181
|
field: z.ZodString;
|
|
62
|
-
value: z.ZodType<number
|
|
182
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
183
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
id: z.ZodString;
|
|
186
|
+
type: z.ZodLiteral<"number">;
|
|
187
|
+
field: z.ZodString;
|
|
188
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
189
|
+
modifier: z.ZodLiteral<"lessThan">;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
type: z.ZodLiteral<"number">;
|
|
193
|
+
field: z.ZodString;
|
|
194
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
195
|
+
modifier: z.ZodLiteral<"lessThanOrEquals">;
|
|
196
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
197
|
+
id: z.ZodString;
|
|
198
|
+
type: z.ZodLiteral<"number">;
|
|
199
|
+
field: z.ZodString;
|
|
200
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
201
|
+
modifier: z.ZodLiteral<"greaterThan">;
|
|
202
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
type: z.ZodLiteral<"number">;
|
|
205
|
+
field: z.ZodString;
|
|
206
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
207
|
+
modifier: z.ZodLiteral<"greaterThanOrEquals">;
|
|
208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
type: z.ZodLiteral<"number">;
|
|
211
|
+
field: z.ZodString;
|
|
212
|
+
value: z.ZodType<{
|
|
213
|
+
from: number | null;
|
|
214
|
+
to: number | null;
|
|
215
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
216
|
+
from: number | null;
|
|
217
|
+
to: number | null;
|
|
218
|
+
}, unknown>>;
|
|
219
|
+
modifier: z.ZodLiteral<"inRange">;
|
|
220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
+
id: z.ZodString;
|
|
222
|
+
type: z.ZodLiteral<"number">;
|
|
223
|
+
field: z.ZodString;
|
|
224
|
+
value: z.ZodType<{
|
|
63
225
|
from: number | null;
|
|
64
226
|
to: number | null;
|
|
65
|
-
}, unknown, z.core.$ZodTypeInternals<
|
|
227
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
66
228
|
from: number | null;
|
|
67
229
|
to: number | null;
|
|
68
230
|
}, unknown>>;
|
|
69
|
-
modifier: z.ZodLiteral<"
|
|
231
|
+
modifier: z.ZodLiteral<"notInRange">;
|
|
232
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
233
|
+
id: z.ZodString;
|
|
234
|
+
type: z.ZodLiteral<"otp">;
|
|
235
|
+
field: z.ZodString;
|
|
236
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
237
|
+
modifier: z.ZodLiteral<"equals">;
|
|
238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
239
|
+
id: z.ZodString;
|
|
240
|
+
type: z.ZodLiteral<"otp">;
|
|
241
|
+
field: z.ZodString;
|
|
242
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
243
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
70
244
|
}, z.core.$strip>, z.ZodObject<{
|
|
71
245
|
id: z.ZodString;
|
|
72
246
|
type: z.ZodLiteral<"otp">;
|
|
73
247
|
field: z.ZodString;
|
|
74
248
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
75
|
-
modifier: z.ZodLiteral<"
|
|
249
|
+
modifier: z.ZodLiteral<"includes">;
|
|
250
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
251
|
+
id: z.ZodString;
|
|
252
|
+
type: z.ZodLiteral<"otp">;
|
|
253
|
+
field: z.ZodString;
|
|
254
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
255
|
+
modifier: z.ZodLiteral<"excludes">;
|
|
256
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
257
|
+
id: z.ZodString;
|
|
258
|
+
type: z.ZodLiteral<"pass-fail">;
|
|
259
|
+
field: z.ZodString;
|
|
260
|
+
value: z.ZodType<"pass" | "fail" | "na", unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na", unknown>>;
|
|
261
|
+
modifier: z.ZodLiteral<"equals">;
|
|
262
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
type: z.ZodLiteral<"pass-fail">;
|
|
265
|
+
field: z.ZodString;
|
|
266
|
+
value: z.ZodType<"pass" | "fail" | "na", unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na", unknown>>;
|
|
267
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
76
268
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
269
|
id: z.ZodString;
|
|
78
270
|
type: z.ZodLiteral<"pass-fail">;
|
|
79
271
|
field: z.ZodString;
|
|
80
|
-
value: z.ZodType<
|
|
81
|
-
modifier: z.ZodLiteral<"
|
|
272
|
+
value: z.ZodType<("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<("pass" | "fail" | "na")[], unknown>>;
|
|
273
|
+
modifier: z.ZodLiteral<"includes">;
|
|
82
274
|
}, z.core.$strip>, z.ZodObject<{
|
|
275
|
+
id: z.ZodString;
|
|
276
|
+
type: z.ZodLiteral<"pass-fail">;
|
|
277
|
+
field: z.ZodString;
|
|
278
|
+
value: z.ZodType<("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<("pass" | "fail" | "na")[], unknown>>;
|
|
279
|
+
modifier: z.ZodLiteral<"excludes">;
|
|
280
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
83
281
|
id: z.ZodString;
|
|
84
282
|
type: z.ZodLiteral<"radio">;
|
|
85
283
|
field: z.ZodString;
|
|
86
|
-
value: z.ZodType<string
|
|
87
|
-
modifier: z.ZodLiteral<"equals"
|
|
284
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
285
|
+
modifier: z.ZodLiteral<"equals">;
|
|
88
286
|
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
+
id: z.ZodString;
|
|
288
|
+
type: z.ZodLiteral<"radio">;
|
|
289
|
+
field: z.ZodString;
|
|
290
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
291
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
+
id: z.ZodString;
|
|
294
|
+
type: z.ZodLiteral<"radio">;
|
|
295
|
+
field: z.ZodString;
|
|
296
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
297
|
+
modifier: z.ZodLiteral<"includes">;
|
|
298
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
299
|
+
id: z.ZodString;
|
|
300
|
+
type: z.ZodLiteral<"radio">;
|
|
301
|
+
field: z.ZodString;
|
|
302
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
303
|
+
modifier: z.ZodLiteral<"excludes">;
|
|
304
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
89
305
|
id: z.ZodString;
|
|
90
306
|
type: z.ZodLiteral<"rating">;
|
|
91
307
|
field: z.ZodString;
|
|
92
|
-
value: z.ZodType<number
|
|
308
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
309
|
+
modifier: z.ZodLiteral<"equals">;
|
|
310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
type: z.ZodLiteral<"rating">;
|
|
313
|
+
field: z.ZodString;
|
|
314
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
315
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
316
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
317
|
+
id: z.ZodString;
|
|
318
|
+
type: z.ZodLiteral<"rating">;
|
|
319
|
+
field: z.ZodString;
|
|
320
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
321
|
+
modifier: z.ZodLiteral<"lessThan">;
|
|
322
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
323
|
+
id: z.ZodString;
|
|
324
|
+
type: z.ZodLiteral<"rating">;
|
|
325
|
+
field: z.ZodString;
|
|
326
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
327
|
+
modifier: z.ZodLiteral<"lessThanOrEquals">;
|
|
328
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
type: z.ZodLiteral<"rating">;
|
|
331
|
+
field: z.ZodString;
|
|
332
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
333
|
+
modifier: z.ZodLiteral<"greaterThan">;
|
|
334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
335
|
+
id: z.ZodString;
|
|
336
|
+
type: z.ZodLiteral<"rating">;
|
|
337
|
+
field: z.ZodString;
|
|
338
|
+
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
339
|
+
modifier: z.ZodLiteral<"greaterThanOrEquals">;
|
|
340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
+
id: z.ZodString;
|
|
342
|
+
type: z.ZodLiteral<"rating">;
|
|
343
|
+
field: z.ZodString;
|
|
344
|
+
value: z.ZodType<{
|
|
345
|
+
from: number | null;
|
|
346
|
+
to: number | null;
|
|
347
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
348
|
+
from: number | null;
|
|
349
|
+
to: number | null;
|
|
350
|
+
}, unknown>>;
|
|
351
|
+
modifier: z.ZodLiteral<"inRange">;
|
|
352
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
353
|
+
id: z.ZodString;
|
|
354
|
+
type: z.ZodLiteral<"rating">;
|
|
355
|
+
field: z.ZodString;
|
|
356
|
+
value: z.ZodType<{
|
|
93
357
|
from: number | null;
|
|
94
358
|
to: number | null;
|
|
95
|
-
}, unknown, z.core.$ZodTypeInternals<
|
|
359
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
96
360
|
from: number | null;
|
|
97
361
|
to: number | null;
|
|
98
362
|
}, unknown>>;
|
|
99
|
-
modifier: z.ZodLiteral<"
|
|
363
|
+
modifier: z.ZodLiteral<"notInRange">;
|
|
364
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
365
|
+
id: z.ZodString;
|
|
366
|
+
type: z.ZodLiteral<"qr">;
|
|
367
|
+
field: z.ZodString;
|
|
368
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
369
|
+
modifier: z.ZodLiteral<"equals">;
|
|
370
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
371
|
+
id: z.ZodString;
|
|
372
|
+
type: z.ZodLiteral<"qr">;
|
|
373
|
+
field: z.ZodString;
|
|
374
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
375
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
100
376
|
}, z.core.$strip>, z.ZodObject<{
|
|
101
377
|
id: z.ZodString;
|
|
102
378
|
type: z.ZodLiteral<"qr">;
|
|
103
379
|
field: z.ZodString;
|
|
104
380
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
105
|
-
modifier: z.ZodLiteral<"
|
|
381
|
+
modifier: z.ZodLiteral<"includes">;
|
|
382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
type: z.ZodLiteral<"qr">;
|
|
385
|
+
field: z.ZodString;
|
|
386
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
387
|
+
modifier: z.ZodLiteral<"excludes">;
|
|
388
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
389
|
+
id: z.ZodString;
|
|
390
|
+
type: z.ZodLiteral<"select">;
|
|
391
|
+
field: z.ZodString;
|
|
392
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
393
|
+
modifier: z.ZodLiteral<"equals">;
|
|
394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
395
|
+
id: z.ZodString;
|
|
396
|
+
type: z.ZodLiteral<"select">;
|
|
397
|
+
field: z.ZodString;
|
|
398
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
399
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
401
|
+
id: z.ZodString;
|
|
402
|
+
type: z.ZodLiteral<"select">;
|
|
403
|
+
field: z.ZodString;
|
|
404
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
405
|
+
modifier: z.ZodLiteral<"includes">;
|
|
106
406
|
}, z.core.$strip>, z.ZodObject<{
|
|
107
407
|
id: z.ZodString;
|
|
108
408
|
type: z.ZodLiteral<"select">;
|
|
109
409
|
field: z.ZodString;
|
|
110
|
-
value: z.ZodType<string
|
|
111
|
-
modifier: z.ZodLiteral<"
|
|
410
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
411
|
+
modifier: z.ZodLiteral<"excludes">;
|
|
412
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
413
|
+
id: z.ZodString;
|
|
414
|
+
type: z.ZodLiteral<"string">;
|
|
415
|
+
field: z.ZodString;
|
|
416
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
417
|
+
modifier: z.ZodLiteral<"equals">;
|
|
112
418
|
}, z.core.$strip>, z.ZodObject<{
|
|
113
419
|
id: z.ZodString;
|
|
114
420
|
type: z.ZodLiteral<"string">;
|
|
115
421
|
field: z.ZodString;
|
|
116
422
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
117
|
-
modifier: z.ZodLiteral<"
|
|
423
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
118
424
|
}, z.core.$strip>, z.ZodObject<{
|
|
425
|
+
id: z.ZodString;
|
|
426
|
+
type: z.ZodLiteral<"string">;
|
|
427
|
+
field: z.ZodString;
|
|
428
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
429
|
+
modifier: z.ZodLiteral<"includes">;
|
|
430
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
431
|
+
id: z.ZodString;
|
|
432
|
+
type: z.ZodLiteral<"string">;
|
|
433
|
+
field: z.ZodString;
|
|
434
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
435
|
+
modifier: z.ZodLiteral<"excludes">;
|
|
436
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
119
437
|
id: z.ZodString;
|
|
120
438
|
type: z.ZodLiteral<"text">;
|
|
121
439
|
field: z.ZodString;
|
|
122
440
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
123
|
-
modifier: z.ZodLiteral<"equals"
|
|
441
|
+
modifier: z.ZodLiteral<"equals">;
|
|
124
442
|
}, z.core.$strip>, z.ZodObject<{
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
type: z.ZodLiteral<"text">;
|
|
445
|
+
field: z.ZodString;
|
|
446
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
447
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
448
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
449
|
+
id: z.ZodString;
|
|
450
|
+
type: z.ZodLiteral<"text">;
|
|
451
|
+
field: z.ZodString;
|
|
452
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
453
|
+
modifier: z.ZodLiteral<"includes">;
|
|
454
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
455
|
+
id: z.ZodString;
|
|
456
|
+
type: z.ZodLiteral<"text">;
|
|
457
|
+
field: z.ZodString;
|
|
458
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
459
|
+
modifier: z.ZodLiteral<"excludes">;
|
|
460
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
125
461
|
id: z.ZodString;
|
|
126
462
|
type: z.ZodLiteral<"time">;
|
|
127
463
|
field: z.ZodString;
|
|
128
|
-
value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
|
|
464
|
+
value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown>>;
|
|
465
|
+
modifier: z.ZodLiteral<"equals">;
|
|
466
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
467
|
+
id: z.ZodString;
|
|
468
|
+
type: z.ZodLiteral<"time">;
|
|
469
|
+
field: z.ZodString;
|
|
470
|
+
value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown>>;
|
|
471
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
472
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
473
|
+
id: z.ZodString;
|
|
474
|
+
type: z.ZodLiteral<"time">;
|
|
475
|
+
field: z.ZodString;
|
|
476
|
+
value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown>>;
|
|
477
|
+
modifier: z.ZodLiteral<"before">;
|
|
478
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
479
|
+
id: z.ZodString;
|
|
480
|
+
type: z.ZodLiteral<"time">;
|
|
481
|
+
field: z.ZodString;
|
|
482
|
+
value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`, unknown>>;
|
|
483
|
+
modifier: z.ZodLiteral<"after">;
|
|
484
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
485
|
+
id: z.ZodString;
|
|
486
|
+
type: z.ZodLiteral<"time">;
|
|
487
|
+
field: z.ZodString;
|
|
488
|
+
value: z.ZodType<{
|
|
489
|
+
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
490
|
+
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
491
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
492
|
+
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
493
|
+
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
494
|
+
}, unknown>>;
|
|
495
|
+
modifier: z.ZodLiteral<"in">;
|
|
496
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
497
|
+
id: z.ZodString;
|
|
498
|
+
type: z.ZodLiteral<"time">;
|
|
499
|
+
field: z.ZodString;
|
|
500
|
+
value: z.ZodType<{
|
|
129
501
|
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
130
502
|
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
131
|
-
}, unknown, z.core.$ZodTypeInternals
|
|
503
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
132
504
|
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
133
505
|
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
134
506
|
}, unknown>>;
|
|
135
|
-
modifier: z.ZodLiteral<"
|
|
507
|
+
modifier: z.ZodLiteral<"notIn">;
|
|
508
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
509
|
+
id: z.ZodString;
|
|
510
|
+
type: z.ZodLiteral<"upload">;
|
|
511
|
+
field: z.ZodString;
|
|
512
|
+
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
513
|
+
modifier: z.ZodLiteral<"equals">;
|
|
136
514
|
}, z.core.$strip>, z.ZodObject<{
|
|
137
515
|
id: z.ZodString;
|
|
138
516
|
type: z.ZodLiteral<"upload">;
|
|
139
517
|
field: z.ZodString;
|
|
140
518
|
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
141
|
-
modifier: z.ZodLiteral<"
|
|
519
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
520
|
+
}, z.core.$strip>], "modifier">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
521
|
+
id: z.ZodString;
|
|
522
|
+
type: z.ZodLiteral<"url">;
|
|
523
|
+
field: z.ZodString;
|
|
524
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
525
|
+
modifier: z.ZodLiteral<"equals">;
|
|
526
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
527
|
+
id: z.ZodString;
|
|
528
|
+
type: z.ZodLiteral<"url">;
|
|
529
|
+
field: z.ZodString;
|
|
530
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
531
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
532
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
533
|
+
id: z.ZodString;
|
|
534
|
+
type: z.ZodLiteral<"url">;
|
|
535
|
+
field: z.ZodString;
|
|
536
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
537
|
+
modifier: z.ZodLiteral<"includes">;
|
|
142
538
|
}, z.core.$strip>, z.ZodObject<{
|
|
143
539
|
id: z.ZodString;
|
|
144
540
|
type: z.ZodLiteral<"url">;
|
|
145
541
|
field: z.ZodString;
|
|
146
542
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
147
|
-
modifier: z.ZodLiteral<"
|
|
148
|
-
}, z.core.$strip>], "type">;
|
|
543
|
+
modifier: z.ZodLiteral<"excludes">;
|
|
544
|
+
}, z.core.$strip>], "modifier">], "type">;
|
|
149
545
|
export type JSONConditionSchemaType = z.infer<typeof JSONConditionSchema>;
|
|
@@ -1,13 +1,87 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
export declare const JSONMultiSelectConditionTypeSchema: z.ZodLiteral<"multi-select">;
|
|
3
3
|
export type JSONMultiSelectConditionTypeSchemaType = z.infer<typeof JSONMultiSelectConditionTypeSchema>;
|
|
4
|
-
export declare const
|
|
5
|
-
export type
|
|
6
|
-
export declare const
|
|
4
|
+
export declare const JSONMultiSelectConditionEqualsModifierSchema: z.ZodLiteral<"equals">;
|
|
5
|
+
export type JSONMultiSelectConditionEqualsModifierSchemaType = z.infer<typeof JSONMultiSelectConditionEqualsModifierSchema>;
|
|
6
|
+
export declare const JSONMultiSelectEqualsConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"multi-select">;
|
|
9
|
+
field: z.ZodString;
|
|
10
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONMultiSelectEqualsConditionSchemaType = z.infer<typeof JSONMultiSelectEqualsConditionSchema>;
|
|
14
|
+
export declare const JSONMultiSelectConditionNotEqualsModifierSchema: z.ZodLiteral<"notEquals">;
|
|
15
|
+
export type JSONMultiSelectConditionNotEqualsModifierSchemaType = z.infer<typeof JSONMultiSelectConditionNotEqualsModifierSchema>;
|
|
16
|
+
export declare const JSONMultiSelectNotEqualsConditionSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
type: z.ZodLiteral<"multi-select">;
|
|
19
|
+
field: z.ZodString;
|
|
20
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
21
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type JSONMultiSelectNotEqualsConditionSchemaType = z.infer<typeof JSONMultiSelectNotEqualsConditionSchema>;
|
|
24
|
+
export declare const JSONMultiSelectConditionEveryModifierSchema: z.ZodLiteral<"every">;
|
|
25
|
+
export type JSONMultiSelectConditionEveryModifierSchemaType = z.infer<typeof JSONMultiSelectConditionEveryModifierSchema>;
|
|
26
|
+
export declare const JSONMultiSelectEveryConditionSchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
type: z.ZodLiteral<"multi-select">;
|
|
29
|
+
field: z.ZodString;
|
|
30
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
31
|
+
modifier: z.ZodLiteral<"every">;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type JSONMultiSelectEveryConditionSchemaType = z.infer<typeof JSONMultiSelectEveryConditionSchema>;
|
|
34
|
+
export declare const JSONMultiSelectConditionSomeModifierSchema: z.ZodLiteral<"some">;
|
|
35
|
+
export type JSONMultiSelectConditionSomeModifierSchemaType = z.infer<typeof JSONMultiSelectConditionSomeModifierSchema>;
|
|
36
|
+
export declare const JSONMultiSelectSomeConditionSchema: z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
type: z.ZodLiteral<"multi-select">;
|
|
39
|
+
field: z.ZodString;
|
|
40
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
41
|
+
modifier: z.ZodLiteral<"some">;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type JSONMultiSelectSomeConditionSchemaType = z.infer<typeof JSONMultiSelectSomeConditionSchema>;
|
|
44
|
+
export declare const JSONMultiSelectConditionNoneModifierSchema: z.ZodLiteral<"none">;
|
|
45
|
+
export type JSONMultiSelectConditionNoneModifierSchemaType = z.infer<typeof JSONMultiSelectConditionNoneModifierSchema>;
|
|
46
|
+
export declare const JSONMultiSelectNoneConditionSchema: z.ZodObject<{
|
|
7
47
|
id: z.ZodString;
|
|
8
48
|
type: z.ZodLiteral<"multi-select">;
|
|
9
49
|
field: z.ZodString;
|
|
10
50
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
11
|
-
modifier: z.ZodLiteral<"
|
|
51
|
+
modifier: z.ZodLiteral<"none">;
|
|
12
52
|
}, z.core.$strip>;
|
|
53
|
+
export type JSONMultiSelectNoneConditionSchemaType = z.infer<typeof JSONMultiSelectNoneConditionSchema>;
|
|
54
|
+
export declare const JSONMultiSelectConditionModifierSchema: z.ZodUnion<readonly [z.ZodLiteral<"equals">, z.ZodLiteral<"notEquals">, z.ZodLiteral<"every">, z.ZodLiteral<"some">, z.ZodLiteral<"none">]>;
|
|
55
|
+
export type JSONMultiSelectConditionModifierSchemaType = z.infer<typeof JSONMultiSelectConditionModifierSchema>;
|
|
56
|
+
export declare const JSONMultiSelectConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
type: z.ZodLiteral<"multi-select">;
|
|
59
|
+
field: z.ZodString;
|
|
60
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
61
|
+
modifier: z.ZodLiteral<"equals">;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
type: z.ZodLiteral<"multi-select">;
|
|
65
|
+
field: z.ZodString;
|
|
66
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
67
|
+
modifier: z.ZodLiteral<"notEquals">;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
type: z.ZodLiteral<"multi-select">;
|
|
71
|
+
field: z.ZodString;
|
|
72
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
73
|
+
modifier: z.ZodLiteral<"every">;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
type: z.ZodLiteral<"multi-select">;
|
|
77
|
+
field: z.ZodString;
|
|
78
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
79
|
+
modifier: z.ZodLiteral<"some">;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
type: z.ZodLiteral<"multi-select">;
|
|
83
|
+
field: z.ZodString;
|
|
84
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
85
|
+
modifier: z.ZodLiteral<"none">;
|
|
86
|
+
}, z.core.$strip>], "modifier">;
|
|
13
87
|
export type JSONMultiSelectConditionSchemaType = z.infer<typeof JSONMultiSelectConditionSchema>;
|