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