@adrekic/zod-fieldsjson 0.0.1-schemas.0 → 0.0.1-schemas.2
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/elements/index.d.ts +8 -8
- package/dist/elements/section.d.ts +4 -4
- package/dist/fields/base.d.ts +1 -1
- package/dist/fields/index.d.ts +4 -4
- package/dist/fields/multi-string.d.ts +1 -1
- package/dist/fields/number.d.ts +1 -1
- package/dist/fields/string.d.ts +1 -1
- package/dist/fields/text.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +8 -3
- package/dist/schema.d.ts +4 -4
- package/package.json +2 -2
package/dist/elements/index.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ export declare const JSONFieldElementSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
168
168
|
type: z.ZodLiteral<"multi-select">;
|
|
169
169
|
}, z.core.$strip>, z.ZodObject<{
|
|
170
170
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
171
|
-
maximum_length: z.ZodNumber
|
|
171
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
172
172
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
173
173
|
label: z.ZodString;
|
|
174
174
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -178,7 +178,7 @@ export declare const JSONFieldElementSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
178
178
|
}, z.core.$strip>, z.ZodObject<{
|
|
179
179
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
180
180
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
181
|
-
integers: z.ZodBoolean
|
|
181
|
+
integers: z.ZodOptional<z.ZodBoolean>;
|
|
182
182
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
183
183
|
label: z.ZodString;
|
|
184
184
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -236,7 +236,7 @@ export declare const JSONFieldElementSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
236
236
|
type: z.ZodLiteral<"select">;
|
|
237
237
|
}, z.core.$strip>, z.ZodObject<{
|
|
238
238
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
239
|
-
maximum_length: z.ZodNumber
|
|
239
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
240
240
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
241
241
|
label: z.ZodString;
|
|
242
242
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -245,7 +245,7 @@ export declare const JSONFieldElementSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
245
245
|
type: z.ZodLiteral<"string">;
|
|
246
246
|
}, z.core.$strip>, z.ZodObject<{
|
|
247
247
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
248
|
-
maximum_length: z.ZodNumber
|
|
248
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
249
249
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
250
250
|
label: z.ZodString;
|
|
251
251
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -312,7 +312,7 @@ export declare const JSONFieldElementSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
312
312
|
type: z.ZodLiteral<"multi-select">;
|
|
313
313
|
}, z.core.$strip>, z.ZodObject<{
|
|
314
314
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
315
|
-
maximum_length: z.ZodNumber
|
|
315
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
316
316
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
317
317
|
label: z.ZodString;
|
|
318
318
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -322,7 +322,7 @@ export declare const JSONFieldElementSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
322
322
|
}, z.core.$strip>, z.ZodObject<{
|
|
323
323
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
324
324
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
325
|
-
integers: z.ZodBoolean
|
|
325
|
+
integers: z.ZodOptional<z.ZodBoolean>;
|
|
326
326
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
327
327
|
label: z.ZodString;
|
|
328
328
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -380,7 +380,7 @@ export declare const JSONFieldElementSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
380
380
|
type: z.ZodLiteral<"select">;
|
|
381
381
|
}, z.core.$strip>, z.ZodObject<{
|
|
382
382
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
383
|
-
maximum_length: z.ZodNumber
|
|
383
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
384
384
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
385
385
|
label: z.ZodString;
|
|
386
386
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -389,7 +389,7 @@ export declare const JSONFieldElementSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
389
389
|
type: z.ZodLiteral<"string">;
|
|
390
390
|
}, z.core.$strip>, z.ZodObject<{
|
|
391
391
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
392
|
-
maximum_length: z.ZodNumber
|
|
392
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
393
393
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
394
394
|
label: z.ZodString;
|
|
395
395
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -294,7 +294,7 @@ export declare const JSONFieldSectionSchema: z.ZodObject<{
|
|
|
294
294
|
type: z.ZodLiteral<"multi-select">;
|
|
295
295
|
}, z.core.$strip>, z.ZodObject<{
|
|
296
296
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
297
|
-
maximum_length: z.ZodNumber
|
|
297
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
298
298
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
299
299
|
label: z.ZodString;
|
|
300
300
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -304,7 +304,7 @@ export declare const JSONFieldSectionSchema: z.ZodObject<{
|
|
|
304
304
|
}, z.core.$strip>, z.ZodObject<{
|
|
305
305
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
306
306
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
307
|
-
integers: z.ZodBoolean
|
|
307
|
+
integers: z.ZodOptional<z.ZodBoolean>;
|
|
308
308
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
309
309
|
label: z.ZodString;
|
|
310
310
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -362,7 +362,7 @@ export declare const JSONFieldSectionSchema: z.ZodObject<{
|
|
|
362
362
|
type: z.ZodLiteral<"select">;
|
|
363
363
|
}, z.core.$strip>, z.ZodObject<{
|
|
364
364
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
365
|
-
maximum_length: z.ZodNumber
|
|
365
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
366
366
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
367
367
|
label: z.ZodString;
|
|
368
368
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -371,7 +371,7 @@ export declare const JSONFieldSectionSchema: z.ZodObject<{
|
|
|
371
371
|
type: z.ZodLiteral<"string">;
|
|
372
372
|
}, z.core.$strip>, z.ZodObject<{
|
|
373
373
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
374
|
-
maximum_length: z.ZodNumber
|
|
374
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
375
375
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
376
376
|
label: z.ZodString;
|
|
377
377
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
package/dist/fields/base.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const BaseJSONOptionsFieldSchema: <TType extends string>(typeSche
|
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
export declare const BaseJSONStringFieldSchema: <TType extends string>(typeSchema: z.ZodLiteral<TType>) => z.ZodObject<{
|
|
21
21
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
22
|
-
maximum_length: z.ZodNumber
|
|
22
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
23
23
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
24
24
|
label: z.ZodString;
|
|
25
25
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
package/dist/fields/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare const JSONFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
54
54
|
type: z.ZodLiteral<"multi-select">;
|
|
55
55
|
}, z.core.$strip>, z.ZodObject<{
|
|
56
56
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
maximum_length: z.ZodNumber
|
|
57
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
58
58
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
59
59
|
label: z.ZodString;
|
|
60
60
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -64,7 +64,7 @@ export declare const JSONFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
64
64
|
}, z.core.$strip>, z.ZodObject<{
|
|
65
65
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
66
66
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
integers: z.ZodBoolean
|
|
67
|
+
integers: z.ZodOptional<z.ZodBoolean>;
|
|
68
68
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
69
69
|
label: z.ZodString;
|
|
70
70
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -122,7 +122,7 @@ export declare const JSONFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
122
122
|
type: z.ZodLiteral<"select">;
|
|
123
123
|
}, z.core.$strip>, z.ZodObject<{
|
|
124
124
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
125
|
-
maximum_length: z.ZodNumber
|
|
125
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
126
126
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
127
127
|
label: z.ZodString;
|
|
128
128
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -131,7 +131,7 @@ export declare const JSONFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
131
131
|
type: z.ZodLiteral<"string">;
|
|
132
132
|
}, z.core.$strip>, z.ZodObject<{
|
|
133
133
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
134
|
-
maximum_length: z.ZodNumber
|
|
134
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
135
135
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
136
136
|
label: z.ZodString;
|
|
137
137
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3,7 +3,7 @@ export declare const JSONMultiStringFieldTypeSchema: z.ZodLiteral<"multi-string"
|
|
|
3
3
|
export type JSONMultiStringFieldTypeSchemaType = z.infer<typeof JSONMultiStringFieldTypeSchema>;
|
|
4
4
|
export declare const JSONMultiStringFieldSchema: z.ZodObject<{
|
|
5
5
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
maximum_length: z.ZodNumber
|
|
6
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
7
7
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
8
8
|
label: z.ZodString;
|
|
9
9
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
package/dist/fields/number.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type JSONNumberFieldTypeSchemaType = z.infer<typeof JSONNumberFieldTypeSc
|
|
|
4
4
|
export declare const JSONNumberFieldSchema: z.ZodObject<{
|
|
5
5
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
6
6
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
integers: z.ZodBoolean
|
|
7
|
+
integers: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
9
9
|
label: z.ZodString;
|
|
10
10
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
package/dist/fields/string.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const JSONStringFieldTypeSchema: z.ZodLiteral<"string">;
|
|
|
3
3
|
export type JSONStringFieldTypeSchemaType = z.infer<typeof JSONStringFieldTypeSchema>;
|
|
4
4
|
export declare const JSONStringFieldSchema: z.ZodObject<{
|
|
5
5
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
maximum_length: z.ZodNumber
|
|
6
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
7
7
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
8
8
|
label: z.ZodString;
|
|
9
9
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
package/dist/fields/text.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const JSONTextFieldTypeSchema: z.ZodLiteral<"text">;
|
|
|
3
3
|
export type JSONTextFieldTypeSchemaType = z.infer<typeof JSONTextFieldTypeSchema>;
|
|
4
4
|
export declare const JSONTextFieldSchema: z.ZodObject<{
|
|
5
5
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
maximum_length: z.ZodNumber
|
|
6
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
7
7
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
8
8
|
label: z.ZodString;
|
|
9
9
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,ee=Object.getOwnPropertyNames,r=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,ne=(e,r,ne,i)=>{if(r&&typeof r==`object`||typeof r==`function`)for(var a=ee(r),o=0,s=a.length,c;o<s;o++)c=a[o],!te.call(e,c)&&c!==ne&&t(e,c,{get:(e=>r[e]).bind(null,c),enumerable:!(i=n(r,c))||i.enumerable});return e},i=(n,ee,i)=>(i=n==null?{}:e(r(n)),ne(ee||!n||!n.__esModule||!te.call(n,`default`)?t(i,`default`,{value:n,enumerable:!0}):i,n));let a=require("zod/v4");a=i(a,1);var o=(e,t,n)=>a.object({id:a.string(),type:e,fieldId:a.string(),conditionValue:t,conditionModifier:n}),s=a.literal(`boolean`),c=a.literal([`equals`,`notEquals`]),re=o(s,a.boolean(),c),l=a.literal(`checkbox-list`),ie=a.literal([`equals`,`notEquals`,`every`,`some`,`none`]),ae=o(l,a.array(a.string()),ie),oe=a.object({value:a.string(),label:a.string()}),u=a.object({from:a.number().nullable(),to:a.number().nullable()}),se=a.literal([`+`,`-`]),d=a.templateLiteral([a.string(),`:`,a.string()]),ce=a.templateLiteral([se,d]),f=a.templateLiteral([`T`,d,`:00`,ce]),le=a.object({from:f.nullable(),to:f.nullable()}),ue=a.object({from:a.string().nullable(),to:a.string().nullable()}),p=a.literal(`date`),de=a.literal([`equals`,`notEquals`,`before`,`after`,`in`,`notIn`]),fe=o(p,a.union([a.string(),ue]),de),m=a.literal(`multi-select`),pe=a.literal([`equals`,`notEquals`,`every`,`some`,`none`]),me=o(m,a.array(a.string()),pe),h=a.literal(`multi-string`),he=a.literal([`equals`,`notEquals`,`every`,`some`,`none`]),ge=o(h,a.array(a.string()),he),g=a.literal(`number`),_e=a.literal([`equals`,`notEquals`,`lessThan`,`lessThanOrEquals`,`greaterThan`,`greaterThanOrEquals`,`inRange`,`notInRange`]),ve=o(g,a.union([a.number(),u]),_e),_=a.literal(`otp`),ye=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),be=o(_,a.string(),ye),v=e=>a.object({identifier:a.string(),type:e}),y=e=>a.object({...v(e).shape,label:a.string(),description:a.string().nullable().optional(),required:a.boolean()}),b=e=>a.object({...y(e).shape,options:a.array(oe)}),x=e=>a.object({...y(e).shape,minimum_length:a.number().optional(),maximum_length:a.number(),placeholder:a.string().optional()}),S=a.literal([`pass`,`fail`,`na`]),C=a.literal(`pass-fail`),xe=a.object({...y(C).shape,showNotesAndFilesOn:a.array(S)}),Se=a.object({status:S.nullable(),notes:a.string(),files:a.tuple([])}),w=a.literal(`pass-fail`),Ce=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),we=o(w,a.union([S,a.array(S)]),Ce),T=a.literal(`radio`),Te=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),Ee=o(T,a.union([a.string(),a.array(a.string())]),Te),E=a.literal(`rating`),De=a.literal([`equals`,`notEquals`,`lessThan`,`lessThanOrEquals`,`greaterThan`,`greaterThanOrEquals`,`inRange`,`notInRange`]),Oe=o(E,a.union([a.number(),u]),De),D=a.literal(`qr`),ke=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),Ae=o(D,a.string(),ke),O=a.literal(`select`),je=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),Me=o(O,a.union([a.string(),a.array(a.string())]),je),k=a.literal(`string`),Ne=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),Pe=o(k,a.string(),Ne),A=a.literal(`text`),Fe=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),Ie=o(A,a.string(),Fe),j=a.literal(`time`),Le=a.literal([`equals`,`notEquals`,`before`,`after`,`in`,`notIn`]),Re=o(j,a.union([f,le]),Le),M=a.literal(`upload`),ze=a.literal([`equals`,`notEquals`]),Be=o(M,a.boolean(),ze),N=a.literal(`url`),Ve=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),He=o(N,a.string(),Ve),Ue=a.union([s,l,p,m,h,g,_,w,T,E,D,O,k,A,j,M,N]),We=a.discriminatedUnion(`type`,[re,ae,fe,me,ge,ve,be,we,Ee,Oe,Ae,Me,Pe,Ie,Re,Be,He]),P=a.literal(`boolean`),Ge=y(P),F=a.boolean(),I=a.literal(`checkbox-list`),Ke=b(I),qe=a.array(a.string()),L=a.literal(`date`),Je=y(L),Ye=a.string().nullable(),R=a.literal(`multi-select`),Xe=a.object({...b(R).shape,placeholder:a.string().optional()}),Ze=a.array(a.string()),z=a.literal(`multi-string`),Qe=x(z),$e=a.array(a.string()),B=a.literal(`number`),et=a.object({...y(B).shape,minimum:a.number().optional(),maximum:a.number().optional(),integers:a.boolean(),placeholder:a.string().optional()}),tt=a.number().nullable(),nt=a.literal([`alpha`,`numeric`,`alphanumeric`,`none`]),V=a.literal(`otp`),rt=a.object({...y(V).shape,length:a.number(),validationType:nt}),it=a.string(),H=a.literal(`radio`),at=b(H),ot=a.string().nullable(),U=a.literal(`rating`),st=a.object({...y(U).shape,maxRating:a.number()}),ct=a.number().nullable(),W=a.literal(`qr`),lt=y(W),ut=a.string(),G=a.literal(`select`),dt=a.object({...b(G).shape,placeholder:a.string().optional()}),ft=a.string().nullable(),K=a.literal(`string`),pt=x(K),mt=a.string(),q=a.literal(`text`),ht=x(q),gt=a.string(),J=a.literal(`time`),_t=y(J),vt=f.nullable(),Y=a.literal(`upload`),yt=a.object({...y(Y).shape,extensions:a.array(a.string()).optional(),maximum_size:a.number().optional(),maximum_files:a.number().optional()}),bt=a.tuple([]),X=a.literal(`url`),xt=a.object({...y(X).shape,placeholder:a.string().optional()}),St=a.string().nullable(),Ct=a.union([P,I,L,R,z,B,V,C,H,U,W,G,K,q,J,Y,X]),Z=a.discriminatedUnion(`type`,[Ge,Ke,Je,Xe,Qe,et,rt,xe,at,st,lt,dt,pt,ht,_t,yt,xt]),wt=a.union([F,qe,Ye,Ze,$e,tt,it,Se,ot,ct,ut,ft,mt,gt,vt,bt,St]),Tt=a.record(a.string(),wt),Q=a.literal(`section`),Et=a.record(a.string(),a.array(We)),$=a.object({...v(Q).shape,label:a.string().nullable(),description:a.string().nullable().optional(),conditions:Et,fields:a.array(Z)}),Dt=a.union([Ct,Q]),Ot=a.discriminatedUnion(`type`,[$,Z]),kt=a.array($);exports.BaseJSONConditionSchema=o,exports.BaseJSONFieldElementSchema=v,exports.BaseJSONFieldSchema=y,exports.BaseJSONOptionsFieldSchema=b,exports.BaseJSONStringFieldSchema=x,exports.JSONBooleanConditionModifierSchema=c,exports.JSONBooleanConditionSchema=re,exports.JSONBooleanConditionTypeSchema=s,exports.JSONBooleanFieldSchema=Ge,exports.JSONBooleanFieldTypeSchema=P,exports.JSONBooleanFieldValueSchema=F,exports.JSONCheckboxListConditionModifierSchema=ie,exports.JSONCheckboxListConditionSchema=ae,exports.JSONCheckboxListConditionTypeSchema=l,exports.JSONCheckboxListFieldSchema=Ke,exports.JSONCheckboxListFieldTypeSchema=I,exports.JSONCheckboxListFieldValueSchema=qe,exports.JSONConditionSchema=We,exports.JSONConditionTypeSchema=Ue,exports.JSONDateConditionModifierSchema=de,exports.JSONDateConditionSchema=fe,exports.JSONDateConditionTypeSchema=p,exports.JSONDateFieldSchema=Je,exports.JSONDateFieldTypeSchema=L,exports.JSONDateFieldValueSchema=Ye,exports.JSONDateRangeSchema=ue,exports.JSONFieldElementSchema=Ot,exports.JSONFieldElementTypeSchema=Dt,exports.JSONFieldSchema=Z,exports.JSONFieldSchemaSchema=kt,exports.JSONFieldSectionConditionsSchema=Et,exports.JSONFieldSectionSchema=$,exports.JSONFieldSectionTypeSchema=Q,exports.JSONFieldTypeSchema=Ct,exports.JSONFieldValueSchema=wt,exports.JSONFieldValuesSchema=Tt,exports.JSONMultiSelectConditionModifierSchema=pe,exports.JSONMultiSelectConditionSchema=me,exports.JSONMultiSelectConditionTypeSchema=m,exports.JSONMultiSelectFieldSchema=Xe,exports.JSONMultiSelectFieldTypeSchema=R,exports.JSONMultiSelectFieldValueSchema=Ze,exports.JSONMultiStringConditionModifierSchema=he,exports.JSONMultiStringConditionSchema=ge,exports.JSONMultiStringConditionTypeSchema=h,exports.JSONMultiStringFieldSchema=Qe,exports.JSONMultiStringFieldTypeSchema=z,exports.JSONMultiStringFieldValueSchema=$e,exports.JSONNumberConditionModifierSchema=_e,exports.JSONNumberConditionSchema=ve,exports.JSONNumberConditionTypeSchema=g,exports.JSONNumberFieldSchema=et,exports.JSONNumberFieldTypeSchema=B,exports.JSONNumberFieldValueSchema=tt,exports.JSONOTPConditionModifierSchema=ye,exports.JSONOTPConditionSchema=be,exports.JSONOTPConditionTypeSchema=_,exports.JSONOTPFieldSchema=rt,exports.JSONOTPFieldTypeSchema=V,exports.JSONOTPFieldValueSchema=it,exports.JSONPassFailConditionTypeSchema=w,exports.JSONPassFailFieldConditionModifierSchema=Ce,exports.JSONPassFailFieldConditionSchema=we,exports.JSONPassFailFieldSchema=xe,exports.JSONPassFailFieldTypeSchema=C,exports.JSONPassFailFieldValueSchema=Se,exports.JSONRadioConditionModifierSchema=Te,exports.JSONRadioConditionSchema=Ee,exports.JSONRadioConditionTypeSchema=T,exports.JSONRadioFieldSchema=at,exports.JSONRadioFieldTypeSchema=H,exports.JSONRadioFieldValueSchema=ot,exports.JSONRatingConditionModifierSchema=De,exports.JSONRatingConditionSchema=Oe,exports.JSONRatingConditionTypeSchema=E,exports.JSONRatingFieldSchema=st,exports.JSONRatingFieldTypeSchema=U,exports.JSONRatingFieldValueSchema=ct,exports.JSONScanConditionModifierSchema=ke,exports.JSONScanConditionSchema=Ae,exports.JSONScanConditionTypeSchema=D,exports.JSONScanFieldSchema=lt,exports.JSONScanFieldTypeSchema=W,exports.JSONScanFieldValueSchema=ut,exports.JSONSelectConditionModifierSchema=je,exports.JSONSelectConditionSchema=Me,exports.JSONSelectConditionTypeSchema=O,exports.JSONSelectFieldSchema=dt,exports.JSONSelectFieldTypeSchema=G,exports.JSONSelectFieldValueSchema=ft,exports.JSONStringConditionModifierSchema=Ne,exports.JSONStringConditionSchema=Pe,exports.JSONStringConditionTypeSchema=k,exports.JSONStringFieldSchema=pt,exports.JSONStringFieldTypeSchema=K,exports.JSONStringFieldValueSchema=mt,exports.JSONTextConditionModifierSchema=Fe,exports.JSONTextConditionSchema=Ie,exports.JSONTextConditionTypeSchema=A,exports.JSONTextFieldSchema=ht,exports.JSONTextFieldTypeSchema=q,exports.JSONTextFieldValueSchema=gt,exports.JSONTimeConditionModifierSchema=Le,exports.JSONTimeConditionSchema=Re,exports.JSONTimeConditionTypeSchema=j,exports.JSONTimeFieldSchema=_t,exports.JSONTimeFieldTypeSchema=J,exports.JSONTimeFieldValueSchema=vt,exports.JSONURLConditionModifierSchema=Ve,exports.JSONURLConditionSchema=He,exports.JSONURLConditionTypeSchema=N,exports.JSONURLFieldSchema=xt,exports.JSONURLFieldTypeSchema=X,exports.JSONURLFieldValueSchema=St,exports.JSONUploadConditionModifierSchema=ze,exports.JSONUploadConditionSchema=Be,exports.JSONUploadConditionTypeSchema=M,exports.JSONUploadFieldSchema=yt,exports.JSONUploadFieldTypeSchema=Y,exports.JSONUploadFieldValueSchema=bt,exports.NumberRangeSchema=u,exports.OTPFieldValidationTypeSchema=nt,exports.PassFailFieldStatusSchema=S,exports.SelectFieldOptionSchema=oe,exports.TimeRangeSchema=le,exports.TimeSchema=f,exports.UTCOffsetSchema=ce,exports.UTCOffsetSignSchema=se,exports.UTCOffsetTimeSchema=d;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,ee=Object.getOwnPropertyNames,r=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,ne=(e,r,ne,i)=>{if(r&&typeof r==`object`||typeof r==`function`)for(var a=ee(r),o=0,s=a.length,c;o<s;o++)c=a[o],!te.call(e,c)&&c!==ne&&t(e,c,{get:(e=>r[e]).bind(null,c),enumerable:!(i=n(r,c))||i.enumerable});return e},i=(n,ee,i)=>(i=n==null?{}:e(r(n)),ne(ee||!n||!n.__esModule||!te.call(n,`default`)?t(i,`default`,{value:n,enumerable:!0}):i,n));let a=require("zod/v4");a=i(a,1);var o=(e,t,n)=>a.object({id:a.string(),type:e,fieldId:a.string(),conditionValue:t,conditionModifier:n}),s=a.literal(`boolean`),c=a.literal([`equals`,`notEquals`]),re=o(s,a.boolean(),c),l=a.literal(`checkbox-list`),ie=a.literal([`equals`,`notEquals`,`every`,`some`,`none`]),ae=o(l,a.array(a.string()),ie),oe=a.object({value:a.string(),label:a.string()}),u=a.object({from:a.number().nullable(),to:a.number().nullable()}),se=a.literal([`+`,`-`]),d=a.templateLiteral([a.string(),`:`,a.string()]),ce=a.templateLiteral([se,d]),f=a.templateLiteral([`T`,d,`:00`,ce]),le=a.object({from:f.nullable(),to:f.nullable()}),ue=a.object({from:a.string().nullable(),to:a.string().nullable()}),p=a.literal(`date`),de=a.literal([`equals`,`notEquals`,`before`,`after`,`in`,`notIn`]),fe=o(p,a.union([a.string(),ue]),de),m=a.literal(`multi-select`),pe=a.literal([`equals`,`notEquals`,`every`,`some`,`none`]),me=o(m,a.array(a.string()),pe),h=a.literal(`multi-string`),he=a.literal([`equals`,`notEquals`,`every`,`some`,`none`]),ge=o(h,a.array(a.string()),he),g=a.literal(`number`),_e=a.literal([`equals`,`notEquals`,`lessThan`,`lessThanOrEquals`,`greaterThan`,`greaterThanOrEquals`,`inRange`,`notInRange`]),ve=o(g,a.union([a.number(),u]),_e),_=a.literal(`otp`),ye=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),be=o(_,a.string(),ye),v=e=>a.object({identifier:a.string(),type:e}),y=e=>a.object({...v(e).shape,label:a.string(),description:a.string().nullable().optional(),required:a.boolean()}),b=e=>a.object({...y(e).shape,options:a.array(oe)}),x=e=>a.object({...y(e).shape,minimum_length:a.number().optional(),maximum_length:a.number().optional(),placeholder:a.string().optional()}),S=a.literal([`pass`,`fail`,`na`]),C=a.literal(`pass-fail`),xe=a.object({...y(C).shape,showNotesAndFilesOn:a.array(S)}),Se=a.object({status:S.nullable(),notes:a.string(),files:a.tuple([])}),w=a.literal(`pass-fail`),Ce=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),we=o(w,a.union([S,a.array(S)]),Ce),T=a.literal(`radio`),Te=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),Ee=o(T,a.union([a.string(),a.array(a.string())]),Te),E=a.literal(`rating`),De=a.literal([`equals`,`notEquals`,`lessThan`,`lessThanOrEquals`,`greaterThan`,`greaterThanOrEquals`,`inRange`,`notInRange`]),Oe=o(E,a.union([a.number(),u]),De),D=a.literal(`qr`),ke=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),Ae=o(D,a.string(),ke),O=a.literal(`select`),je=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),Me=o(O,a.union([a.string(),a.array(a.string())]),je),k=a.literal(`string`),Ne=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),Pe=o(k,a.string(),Ne),A=a.literal(`text`),Fe=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),Ie=o(A,a.string(),Fe),j=a.literal(`time`),Le=a.literal([`equals`,`notEquals`,`before`,`after`,`in`,`notIn`]),Re=o(j,a.union([f,le]),Le),M=a.literal(`upload`),ze=a.literal([`equals`,`notEquals`]),Be=o(M,a.boolean(),ze),N=a.literal(`url`),Ve=a.literal([`equals`,`notEquals`,`includes`,`excludes`]),He=o(N,a.string(),Ve),Ue=a.union([s,l,p,m,h,g,_,w,T,E,D,O,k,A,j,M,N]),We=a.discriminatedUnion(`type`,[re,ae,fe,me,ge,ve,be,we,Ee,Oe,Ae,Me,Pe,Ie,Re,Be,He]),P=a.literal(`boolean`),Ge=y(P),Ke=a.boolean(),F=a.literal(`checkbox-list`),qe=b(F),Je=a.array(a.string()),I=a.literal(`date`),Ye=y(I),Xe=a.string().nullable(),L=a.literal(`multi-select`),Ze=a.object({...b(L).shape,placeholder:a.string().optional()}),Qe=a.array(a.string()),R=a.literal(`multi-string`),$e=a.object({...y(R).shape,minimum_length:a.number().optional(),maximum_length:a.number().optional(),placeholder:a.string().optional()}),et=a.array(a.string()),z=a.literal(`number`),tt=a.object({...y(z).shape,minimum:a.number().optional(),maximum:a.number().optional(),integers:a.boolean().optional(),placeholder:a.string().optional()}),nt=a.number().nullable(),B=a.literal([`alpha`,`numeric`,`alphanumeric`,`none`]),V=a.literal(`otp`),rt=a.object({...y(V).shape,length:a.number(),validationType:B}),it=a.string(),H=a.literal(`radio`),at=b(H),ot=a.string().nullable(),U=a.literal(`rating`),st=a.object({...y(U).shape,maxRating:a.number()}),ct=a.number().nullable(),W=a.literal(`qr`),lt=y(W),ut=a.string(),G=a.literal(`select`),dt=a.object({...b(G).shape,placeholder:a.string().optional()}),ft=a.string().nullable(),K=a.literal(`string`),pt=x(K),mt=a.string(),q=a.literal(`text`),ht=x(q),gt=a.string(),J=a.literal(`time`),_t=y(J),vt=f.nullable(),Y=a.literal(`upload`),yt=a.object({...y(Y).shape,extensions:a.array(a.string()).optional(),maximum_size:a.number().optional(),maximum_files:a.number().optional()}),bt=a.tuple([]),X=a.literal(`url`),xt=a.object({...y(X).shape,placeholder:a.string().optional()}),St=a.string().nullable(),Ct=a.union([P,F,I,L,R,z,V,C,H,U,W,G,K,q,J,Y,X]),Z=a.discriminatedUnion(`type`,[Ge,qe,Ye,Ze,$e,tt,rt,xe,at,st,lt,dt,pt,ht,_t,yt,xt]),wt=a.union([Ke,Je,Xe,Qe,et,nt,it,Se,ot,ct,ut,ft,mt,gt,vt,bt,St]),Tt=a.record(a.string(),wt),Q=a.literal(`section`),Et=a.record(a.string(),a.array(We)),$=a.object({...v(Q).shape,label:a.string().nullable(),description:a.string().nullable().optional(),conditions:Et,fields:a.array(Z)}),Dt=a.union([Ct,Q]),Ot=a.discriminatedUnion(`type`,[$,Z]),kt=a.array($);exports.BaseJSONConditionSchema=o,exports.BaseJSONFieldElementSchema=v,exports.BaseJSONFieldSchema=y,exports.BaseJSONOptionsFieldSchema=b,exports.BaseJSONStringFieldSchema=x,exports.JSONBooleanConditionModifierSchema=c,exports.JSONBooleanConditionSchema=re,exports.JSONBooleanConditionTypeSchema=s,exports.JSONBooleanFieldSchema=Ge,exports.JSONBooleanFieldTypeSchema=P,exports.JSONBooleanFieldValueSchema=Ke,exports.JSONCheckboxListConditionModifierSchema=ie,exports.JSONCheckboxListConditionSchema=ae,exports.JSONCheckboxListConditionTypeSchema=l,exports.JSONCheckboxListFieldSchema=qe,exports.JSONCheckboxListFieldTypeSchema=F,exports.JSONCheckboxListFieldValueSchema=Je,exports.JSONConditionSchema=We,exports.JSONConditionTypeSchema=Ue,exports.JSONDateConditionModifierSchema=de,exports.JSONDateConditionSchema=fe,exports.JSONDateConditionTypeSchema=p,exports.JSONDateFieldSchema=Ye,exports.JSONDateFieldTypeSchema=I,exports.JSONDateFieldValueSchema=Xe,exports.JSONDateRangeSchema=ue,exports.JSONFieldElementSchema=Ot,exports.JSONFieldElementTypeSchema=Dt,exports.JSONFieldSchema=Z,exports.JSONFieldSchemaSchema=kt,exports.JSONFieldSectionConditionsSchema=Et,exports.JSONFieldSectionSchema=$,exports.JSONFieldSectionTypeSchema=Q,exports.JSONFieldTypeSchema=Ct,exports.JSONFieldValueSchema=wt,exports.JSONFieldValuesSchema=Tt,exports.JSONMultiSelectConditionModifierSchema=pe,exports.JSONMultiSelectConditionSchema=me,exports.JSONMultiSelectConditionTypeSchema=m,exports.JSONMultiSelectFieldSchema=Ze,exports.JSONMultiSelectFieldTypeSchema=L,exports.JSONMultiSelectFieldValueSchema=Qe,exports.JSONMultiStringConditionModifierSchema=he,exports.JSONMultiStringConditionSchema=ge,exports.JSONMultiStringConditionTypeSchema=h,exports.JSONMultiStringFieldSchema=$e,exports.JSONMultiStringFieldTypeSchema=R,exports.JSONMultiStringFieldValueSchema=et,exports.JSONNumberConditionModifierSchema=_e,exports.JSONNumberConditionSchema=ve,exports.JSONNumberConditionTypeSchema=g,exports.JSONNumberFieldSchema=tt,exports.JSONNumberFieldTypeSchema=z,exports.JSONNumberFieldValueSchema=nt,exports.JSONOTPConditionModifierSchema=ye,exports.JSONOTPConditionSchema=be,exports.JSONOTPConditionTypeSchema=_,exports.JSONOTPFieldSchema=rt,exports.JSONOTPFieldTypeSchema=V,exports.JSONOTPFieldValueSchema=it,exports.JSONPassFailConditionTypeSchema=w,exports.JSONPassFailFieldConditionModifierSchema=Ce,exports.JSONPassFailFieldConditionSchema=we,exports.JSONPassFailFieldSchema=xe,exports.JSONPassFailFieldTypeSchema=C,exports.JSONPassFailFieldValueSchema=Se,exports.JSONRadioConditionModifierSchema=Te,exports.JSONRadioConditionSchema=Ee,exports.JSONRadioConditionTypeSchema=T,exports.JSONRadioFieldSchema=at,exports.JSONRadioFieldTypeSchema=H,exports.JSONRadioFieldValueSchema=ot,exports.JSONRatingConditionModifierSchema=De,exports.JSONRatingConditionSchema=Oe,exports.JSONRatingConditionTypeSchema=E,exports.JSONRatingFieldSchema=st,exports.JSONRatingFieldTypeSchema=U,exports.JSONRatingFieldValueSchema=ct,exports.JSONScanConditionModifierSchema=ke,exports.JSONScanConditionSchema=Ae,exports.JSONScanConditionTypeSchema=D,exports.JSONScanFieldSchema=lt,exports.JSONScanFieldTypeSchema=W,exports.JSONScanFieldValueSchema=ut,exports.JSONSelectConditionModifierSchema=je,exports.JSONSelectConditionSchema=Me,exports.JSONSelectConditionTypeSchema=O,exports.JSONSelectFieldSchema=dt,exports.JSONSelectFieldTypeSchema=G,exports.JSONSelectFieldValueSchema=ft,exports.JSONStringConditionModifierSchema=Ne,exports.JSONStringConditionSchema=Pe,exports.JSONStringConditionTypeSchema=k,exports.JSONStringFieldSchema=pt,exports.JSONStringFieldTypeSchema=K,exports.JSONStringFieldValueSchema=mt,exports.JSONTextConditionModifierSchema=Fe,exports.JSONTextConditionSchema=Ie,exports.JSONTextConditionTypeSchema=A,exports.JSONTextFieldSchema=ht,exports.JSONTextFieldTypeSchema=q,exports.JSONTextFieldValueSchema=gt,exports.JSONTimeConditionModifierSchema=Le,exports.JSONTimeConditionSchema=Re,exports.JSONTimeConditionTypeSchema=j,exports.JSONTimeFieldSchema=_t,exports.JSONTimeFieldTypeSchema=J,exports.JSONTimeFieldValueSchema=vt,exports.JSONURLConditionModifierSchema=Ve,exports.JSONURLConditionSchema=He,exports.JSONURLConditionTypeSchema=N,exports.JSONURLFieldSchema=xt,exports.JSONURLFieldTypeSchema=X,exports.JSONURLFieldValueSchema=St,exports.JSONUploadConditionModifierSchema=ze,exports.JSONUploadConditionSchema=Be,exports.JSONUploadConditionTypeSchema=M,exports.JSONUploadFieldSchema=yt,exports.JSONUploadFieldTypeSchema=Y,exports.JSONUploadFieldValueSchema=bt,exports.NumberRangeSchema=u,exports.OTPFieldValidationTypeSchema=B,exports.PassFailFieldStatusSchema=S,exports.SelectFieldOptionSchema=oe,exports.TimeRangeSchema=le,exports.TimeSchema=f,exports.UTCOffsetSchema=ce,exports.UTCOffsetSignSchema=se,exports.UTCOffsetTimeSchema=d;
|
package/dist/index.js
CHANGED
|
@@ -80,7 +80,7 @@ var t = (t, n, r) => e.object({
|
|
|
80
80
|
}), v = (t) => e.object({
|
|
81
81
|
...g(t).shape,
|
|
82
82
|
minimum_length: e.number().optional(),
|
|
83
|
-
maximum_length: e.number(),
|
|
83
|
+
maximum_length: e.number().optional(),
|
|
84
84
|
placeholder: e.string().optional()
|
|
85
85
|
}), y = e.literal([
|
|
86
86
|
"pass",
|
|
@@ -183,11 +183,16 @@ var t = (t, n, r) => e.object({
|
|
|
183
183
|
]), P = e.literal("boolean"), F = g(P), Le = e.boolean(), I = e.literal("checkbox-list"), Re = _(I), ze = e.array(e.string()), L = e.literal("date"), Be = g(L), Ve = e.string().nullable(), R = e.literal("multi-select"), He = e.object({
|
|
184
184
|
..._(R).shape,
|
|
185
185
|
placeholder: e.string().optional()
|
|
186
|
-
}), Ue = e.array(e.string()), z = e.literal("multi-string"), We =
|
|
186
|
+
}), Ue = e.array(e.string()), z = e.literal("multi-string"), We = e.object({
|
|
187
|
+
...g(z).shape,
|
|
188
|
+
minimum_length: e.number().optional(),
|
|
189
|
+
maximum_length: e.number().optional(),
|
|
190
|
+
placeholder: e.string().optional()
|
|
191
|
+
}), Ge = e.array(e.string()), B = e.literal("number"), Ke = e.object({
|
|
187
192
|
...g(B).shape,
|
|
188
193
|
minimum: e.number().optional(),
|
|
189
194
|
maximum: e.number().optional(),
|
|
190
|
-
integers: e.boolean(),
|
|
195
|
+
integers: e.boolean().optional(),
|
|
191
196
|
placeholder: e.string().optional()
|
|
192
197
|
}), qe = e.number().nullable(), Je = e.literal([
|
|
193
198
|
"alpha",
|
package/dist/schema.d.ts
CHANGED
|
@@ -164,7 +164,7 @@ export declare const JSONFieldSchemaSchema: z.ZodArray<z.ZodObject<{
|
|
|
164
164
|
type: z.ZodLiteral<"multi-select">;
|
|
165
165
|
}, z.core.$strip>, z.ZodObject<{
|
|
166
166
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
167
|
-
maximum_length: z.ZodNumber
|
|
167
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
168
168
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
169
169
|
label: z.ZodString;
|
|
170
170
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -174,7 +174,7 @@ export declare const JSONFieldSchemaSchema: z.ZodArray<z.ZodObject<{
|
|
|
174
174
|
}, z.core.$strip>, z.ZodObject<{
|
|
175
175
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
176
176
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
177
|
-
integers: z.ZodBoolean
|
|
177
|
+
integers: z.ZodOptional<z.ZodBoolean>;
|
|
178
178
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
179
179
|
label: z.ZodString;
|
|
180
180
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -232,7 +232,7 @@ export declare const JSONFieldSchemaSchema: z.ZodArray<z.ZodObject<{
|
|
|
232
232
|
type: z.ZodLiteral<"select">;
|
|
233
233
|
}, z.core.$strip>, z.ZodObject<{
|
|
234
234
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
235
|
-
maximum_length: z.ZodNumber
|
|
235
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
236
236
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
237
237
|
label: z.ZodString;
|
|
238
238
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -241,7 +241,7 @@ export declare const JSONFieldSchemaSchema: z.ZodArray<z.ZodObject<{
|
|
|
241
241
|
type: z.ZodLiteral<"string">;
|
|
242
242
|
}, z.core.$strip>, z.ZodObject<{
|
|
243
243
|
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
244
|
-
maximum_length: z.ZodNumber
|
|
244
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
245
245
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
246
246
|
label: z.ZodString;
|
|
247
247
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adrekic/zod-fieldsjson",
|
|
3
|
-
"version": "0.0.1-schemas.
|
|
3
|
+
"version": "0.0.1-schemas.2",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "vitest --typecheck --config ./vitest.config.ts"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@adrekic/fieldsjson": "0.0.2-types.
|
|
34
|
+
"@adrekic/fieldsjson": "0.0.2-types.3",
|
|
35
35
|
"@types/node": "24.1.0",
|
|
36
36
|
"oxfmt": "0.61.0",
|
|
37
37
|
"oxlint": "1.76.0",
|