@adrekic/zod-fieldsjson 0.0.1-schemas.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/conditions/base.d.ts +9 -0
  2. package/dist/conditions/boolean.d.ts +13 -0
  3. package/dist/conditions/checkbox-list.d.ts +13 -0
  4. package/dist/conditions/date.d.ts +19 -0
  5. package/dist/conditions/index.d.ts +149 -0
  6. package/dist/conditions/multi-select.d.ts +13 -0
  7. package/dist/conditions/multi-string.d.ts +13 -0
  8. package/dist/conditions/number.d.ts +19 -0
  9. package/dist/conditions/otp.d.ts +13 -0
  10. package/dist/conditions/pass-fail.d.ts +13 -0
  11. package/dist/conditions/radio.d.ts +13 -0
  12. package/dist/conditions/rating.d.ts +19 -0
  13. package/dist/conditions/scan.d.ts +13 -0
  14. package/dist/conditions/select.d.ts +13 -0
  15. package/dist/conditions/string.d.ts +13 -0
  16. package/dist/conditions/text.d.ts +13 -0
  17. package/dist/conditions/time.d.ts +19 -0
  18. package/dist/conditions/upload.d.ts +13 -0
  19. package/dist/conditions/url.d.ts +13 -0
  20. package/dist/elements/base.d.ts +6 -0
  21. package/dist/elements/index.d.ts +422 -0
  22. package/dist/elements/section.d.ts +407 -0
  23. package/dist/fields/base.d.ts +32 -0
  24. package/dist/fields/boolean.d.ts +13 -0
  25. package/dist/fields/checkbox-list.d.ts +17 -0
  26. package/dist/fields/date.d.ts +13 -0
  27. package/dist/fields/index.d.ts +176 -0
  28. package/dist/fields/multi-select.d.ts +18 -0
  29. package/dist/fields/multi-string.d.ts +16 -0
  30. package/dist/fields/number.d.ts +17 -0
  31. package/dist/fields/otp.d.ts +17 -0
  32. package/dist/fields/pass-fail.d.ts +20 -0
  33. package/dist/fields/radio.d.ts +17 -0
  34. package/dist/fields/rating.d.ts +14 -0
  35. package/dist/fields/scan.d.ts +13 -0
  36. package/dist/fields/select.d.ts +18 -0
  37. package/dist/fields/string.d.ts +16 -0
  38. package/dist/fields/text.d.ts +16 -0
  39. package/dist/fields/time.d.ts +13 -0
  40. package/dist/fields/upload.d.ts +16 -0
  41. package/dist/fields/url.d.ts +14 -0
  42. package/dist/index.cjs +1 -0
  43. package/dist/index.d.ts +5 -0
  44. package/dist/index.js +277 -0
  45. package/dist/misc.d.ts +29 -0
  46. package/dist/schema.d.ts +277 -0
  47. package/package.json +52 -0
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONMultiSelectFieldTypeSchema: z.ZodLiteral<"multi-select">;
3
+ export type JSONMultiSelectFieldTypeSchemaType = z.infer<typeof JSONMultiSelectFieldTypeSchema>;
4
+ export declare const JSONMultiSelectFieldSchema: z.ZodObject<{
5
+ placeholder: z.ZodOptional<z.ZodString>;
6
+ options: z.ZodArray<z.ZodObject<{
7
+ value: z.ZodString;
8
+ label: z.ZodString;
9
+ }, z.core.$strip>>;
10
+ label: z.ZodString;
11
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ required: z.ZodBoolean;
13
+ identifier: z.ZodString;
14
+ type: z.ZodLiteral<"multi-select">;
15
+ }, z.core.$strip>;
16
+ export type JSONMultiSelectFieldSchemaType = z.infer<typeof JSONMultiSelectFieldSchema>;
17
+ export declare const JSONMultiSelectFieldValueSchema: z.ZodArray<z.ZodString>;
18
+ export type JSONMultiSelectFieldValueSchemaType = z.infer<typeof JSONMultiSelectFieldValueSchema>;
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONMultiStringFieldTypeSchema: z.ZodLiteral<"multi-string">;
3
+ export type JSONMultiStringFieldTypeSchemaType = z.infer<typeof JSONMultiStringFieldTypeSchema>;
4
+ export declare const JSONMultiStringFieldSchema: z.ZodObject<{
5
+ minimum_length: z.ZodOptional<z.ZodNumber>;
6
+ maximum_length: z.ZodNumber;
7
+ placeholder: z.ZodOptional<z.ZodString>;
8
+ label: z.ZodString;
9
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ required: z.ZodBoolean;
11
+ identifier: z.ZodString;
12
+ type: z.ZodLiteral<"multi-string">;
13
+ }, z.core.$strip>;
14
+ export type JSONMultiStringFieldSchemaType = z.infer<typeof JSONMultiStringFieldSchema>;
15
+ export declare const JSONMultiStringFieldValueSchema: z.ZodArray<z.ZodString>;
16
+ export type JSONMultiStringFieldValueSchemaType = z.infer<typeof JSONMultiStringFieldValueSchema>;
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONNumberFieldTypeSchema: z.ZodLiteral<"number">;
3
+ export type JSONNumberFieldTypeSchemaType = z.infer<typeof JSONNumberFieldTypeSchema>;
4
+ export declare const JSONNumberFieldSchema: z.ZodObject<{
5
+ minimum: z.ZodOptional<z.ZodNumber>;
6
+ maximum: z.ZodOptional<z.ZodNumber>;
7
+ integers: z.ZodBoolean;
8
+ placeholder: z.ZodOptional<z.ZodString>;
9
+ label: z.ZodString;
10
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ required: z.ZodBoolean;
12
+ identifier: z.ZodString;
13
+ type: z.ZodLiteral<"number">;
14
+ }, z.core.$strip>;
15
+ export type JSONNumberFieldSchemaType = z.infer<typeof JSONNumberFieldSchema>;
16
+ export declare const JSONNumberFieldValueSchema: z.ZodNullable<z.ZodNumber>;
17
+ export type JSONNumberFieldValueSchemaType = z.infer<typeof JSONNumberFieldValueSchema>;
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ export declare const OTPFieldValidationTypeSchema: z.ZodLiteral<"none" | "alpha" | "numeric" | "alphanumeric">;
3
+ export type OTPFieldValidationTypeSchemaType = z.infer<typeof OTPFieldValidationTypeSchema>;
4
+ export declare const JSONOTPFieldTypeSchema: z.ZodLiteral<"otp">;
5
+ export type JSONOTPFieldTypeSchemaType = z.infer<typeof JSONOTPFieldTypeSchema>;
6
+ export declare const JSONOTPFieldSchema: z.ZodObject<{
7
+ length: z.ZodNumber;
8
+ validationType: z.ZodLiteral<"none" | "alpha" | "numeric" | "alphanumeric">;
9
+ label: z.ZodString;
10
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ required: z.ZodBoolean;
12
+ identifier: z.ZodString;
13
+ type: z.ZodLiteral<"otp">;
14
+ }, z.core.$strip>;
15
+ export type JSONOTPFieldSchemaType = z.infer<typeof JSONOTPFieldSchema>;
16
+ export declare const JSONOTPFieldValueSchema: z.ZodString;
17
+ export type JSONOTPFieldValueSchemaType = z.infer<typeof JSONOTPFieldValueSchema>;
@@ -0,0 +1,20 @@
1
+ import * as z from "zod/v4";
2
+ export declare const PassFailFieldStatusSchema: z.ZodLiteral<"pass" | "fail" | "na">;
3
+ export type PassFailFieldStatusSchemaType = z.infer<typeof PassFailFieldStatusSchema>;
4
+ export declare const JSONPassFailFieldTypeSchema: z.ZodLiteral<"pass-fail">;
5
+ export type JSONPassFailFieldTypeSchemaType = z.infer<typeof JSONPassFailFieldTypeSchema>;
6
+ export declare const JSONPassFailFieldSchema: z.ZodObject<{
7
+ showNotesAndFilesOn: z.ZodArray<z.ZodLiteral<"pass" | "fail" | "na">>;
8
+ label: z.ZodString;
9
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ required: z.ZodBoolean;
11
+ identifier: z.ZodString;
12
+ type: z.ZodLiteral<"pass-fail">;
13
+ }, z.core.$strip>;
14
+ export type JSONPassFailFieldSchemaType = z.infer<typeof JSONPassFailFieldSchema>;
15
+ export declare const JSONPassFailFieldValueSchema: z.ZodObject<{
16
+ status: z.ZodNullable<z.ZodLiteral<"pass" | "fail" | "na">>;
17
+ notes: z.ZodString;
18
+ files: z.ZodTuple<[], null>;
19
+ }, z.core.$strip>;
20
+ export type JSONPassFailFieldValueSchemaType = z.infer<typeof JSONPassFailFieldValueSchema>;
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONRadioFieldTypeSchema: z.ZodLiteral<"radio">;
3
+ export type JSONRadioFieldTypeSchemaType = z.infer<typeof JSONRadioFieldTypeSchema>;
4
+ export declare const JSONRadioFieldSchema: z.ZodObject<{
5
+ options: z.ZodArray<z.ZodObject<{
6
+ value: z.ZodString;
7
+ label: z.ZodString;
8
+ }, z.core.$strip>>;
9
+ label: z.ZodString;
10
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ required: z.ZodBoolean;
12
+ identifier: z.ZodString;
13
+ type: z.ZodLiteral<"radio">;
14
+ }, z.core.$strip>;
15
+ export type JSONRadioFieldSchemaType = z.infer<typeof JSONRadioFieldSchema>;
16
+ export declare const JSONRadioFieldValueSchema: z.ZodNullable<z.ZodString>;
17
+ export type JSONRadioFieldValueSchemaType = z.infer<typeof JSONRadioFieldValueSchema>;
@@ -0,0 +1,14 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONRatingFieldTypeSchema: z.ZodLiteral<"rating">;
3
+ export type JSONRatingFieldTypeSchemaType = z.infer<typeof JSONRatingFieldTypeSchema>;
4
+ export declare const JSONRatingFieldSchema: z.ZodObject<{
5
+ maxRating: z.ZodNumber;
6
+ label: z.ZodString;
7
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ required: z.ZodBoolean;
9
+ identifier: z.ZodString;
10
+ type: z.ZodLiteral<"rating">;
11
+ }, z.core.$strip>;
12
+ export type JSONRatingFieldSchemaType = z.infer<typeof JSONRatingFieldSchema>;
13
+ export declare const JSONRatingFieldValueSchema: z.ZodNullable<z.ZodNumber>;
14
+ export type JSONRatingFieldValueSchemaType = z.infer<typeof JSONRatingFieldValueSchema>;
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONScanFieldTypeSchema: z.ZodLiteral<"qr">;
3
+ export type JSONScanFieldTypeSchemaType = z.infer<typeof JSONScanFieldTypeSchema>;
4
+ export declare const JSONScanFieldSchema: z.ZodObject<{
5
+ label: z.ZodString;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ required: z.ZodBoolean;
8
+ identifier: z.ZodString;
9
+ type: z.ZodLiteral<"qr">;
10
+ }, z.core.$strip>;
11
+ export type JSONScanFieldSchemaType = z.infer<typeof JSONScanFieldSchema>;
12
+ export declare const JSONScanFieldValueSchema: z.ZodString;
13
+ export type JSONScanFieldValueSchemaType = z.infer<typeof JSONScanFieldValueSchema>;
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONSelectFieldTypeSchema: z.ZodLiteral<"select">;
3
+ export type JSONSelectFieldTypeSchemaType = z.infer<typeof JSONSelectFieldTypeSchema>;
4
+ export declare const JSONSelectFieldSchema: z.ZodObject<{
5
+ placeholder: z.ZodOptional<z.ZodString>;
6
+ options: z.ZodArray<z.ZodObject<{
7
+ value: z.ZodString;
8
+ label: z.ZodString;
9
+ }, z.core.$strip>>;
10
+ label: z.ZodString;
11
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ required: z.ZodBoolean;
13
+ identifier: z.ZodString;
14
+ type: z.ZodLiteral<"select">;
15
+ }, z.core.$strip>;
16
+ export type JSONSelectFieldSchemaType = z.infer<typeof JSONSelectFieldSchema>;
17
+ export declare const JSONSelectFieldValueSchema: z.ZodNullable<z.ZodString>;
18
+ export type JSONSelectFieldValueSchemaType = z.infer<typeof JSONSelectFieldValueSchema>;
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONStringFieldTypeSchema: z.ZodLiteral<"string">;
3
+ export type JSONStringFieldTypeSchemaType = z.infer<typeof JSONStringFieldTypeSchema>;
4
+ export declare const JSONStringFieldSchema: z.ZodObject<{
5
+ minimum_length: z.ZodOptional<z.ZodNumber>;
6
+ maximum_length: z.ZodNumber;
7
+ placeholder: z.ZodOptional<z.ZodString>;
8
+ label: z.ZodString;
9
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ required: z.ZodBoolean;
11
+ identifier: z.ZodString;
12
+ type: z.ZodLiteral<"string">;
13
+ }, z.core.$strip>;
14
+ export type JSONStringFieldSchemaType = z.infer<typeof JSONStringFieldSchema>;
15
+ export declare const JSONStringFieldValueSchema: z.ZodString;
16
+ export type JSONStringFieldValueSchemaType = z.infer<typeof JSONStringFieldValueSchema>;
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONTextFieldTypeSchema: z.ZodLiteral<"text">;
3
+ export type JSONTextFieldTypeSchemaType = z.infer<typeof JSONTextFieldTypeSchema>;
4
+ export declare const JSONTextFieldSchema: z.ZodObject<{
5
+ minimum_length: z.ZodOptional<z.ZodNumber>;
6
+ maximum_length: z.ZodNumber;
7
+ placeholder: z.ZodOptional<z.ZodString>;
8
+ label: z.ZodString;
9
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ required: z.ZodBoolean;
11
+ identifier: z.ZodString;
12
+ type: z.ZodLiteral<"text">;
13
+ }, z.core.$strip>;
14
+ export type JSONTextFieldSchemaType = z.infer<typeof JSONTextFieldSchema>;
15
+ export declare const JSONTextFieldValueSchema: z.ZodString;
16
+ export type JSONTextFieldValueSchemaType = z.infer<typeof JSONTextFieldValueSchema>;
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONTimeFieldTypeSchema: z.ZodLiteral<"time">;
3
+ export type JSONTimeFieldTypeSchemaType = z.infer<typeof JSONTimeFieldTypeSchema>;
4
+ export declare const JSONTimeFieldSchema: z.ZodObject<{
5
+ label: z.ZodString;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ required: z.ZodBoolean;
8
+ identifier: z.ZodString;
9
+ type: z.ZodLiteral<"time">;
10
+ }, z.core.$strip>;
11
+ export type JSONTimeFieldSchemaType = z.infer<typeof JSONTimeFieldSchema>;
12
+ export declare const JSONTimeFieldValueSchema: z.ZodNullable<z.ZodTemplateLiteral<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`>>;
13
+ export type JSONTimeFieldValueSchemaType = z.infer<typeof JSONTimeFieldValueSchema>;
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONUploadFieldTypeSchema: z.ZodLiteral<"upload">;
3
+ export type JSONUploadFieldTypeSchemaType = z.infer<typeof JSONUploadFieldTypeSchema>;
4
+ export declare const JSONUploadFieldSchema: z.ZodObject<{
5
+ extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ maximum_size: z.ZodOptional<z.ZodNumber>;
7
+ maximum_files: z.ZodOptional<z.ZodNumber>;
8
+ label: z.ZodString;
9
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ required: z.ZodBoolean;
11
+ identifier: z.ZodString;
12
+ type: z.ZodLiteral<"upload">;
13
+ }, z.core.$strip>;
14
+ export type JSONUploadFieldSchemaType = z.infer<typeof JSONUploadFieldSchema>;
15
+ export declare const JSONUploadFieldValueSchema: z.ZodTuple<[], null>;
16
+ export type JSONUploadFieldValueSchemaType = z.infer<typeof JSONUploadFieldValueSchema>;
@@ -0,0 +1,14 @@
1
+ import * as z from "zod/v4";
2
+ export declare const JSONURLFieldTypeSchema: z.ZodLiteral<"url">;
3
+ export type JSONURLFieldTypeSchemaType = z.infer<typeof JSONURLFieldTypeSchema>;
4
+ export declare const JSONURLFieldSchema: z.ZodObject<{
5
+ placeholder: z.ZodOptional<z.ZodString>;
6
+ label: z.ZodString;
7
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ required: z.ZodBoolean;
9
+ identifier: z.ZodString;
10
+ type: z.ZodLiteral<"url">;
11
+ }, z.core.$strip>;
12
+ export type JSONURLFieldSchemaType = z.infer<typeof JSONURLFieldSchema>;
13
+ export declare const JSONURLFieldValueSchema: z.ZodNullable<z.ZodString>;
14
+ export type JSONURLFieldValueSchemaType = z.infer<typeof JSONURLFieldValueSchema>;
package/dist/index.cjs ADDED
@@ -0,0 +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;
@@ -0,0 +1,5 @@
1
+ export * from './conditions';
2
+ export * from './elements';
3
+ export * from './fields';
4
+ export * from './misc';
5
+ export * from './schema';
package/dist/index.js ADDED
@@ -0,0 +1,277 @@
1
+ import * as e from "zod/v4";
2
+ //#region src/conditions/base.ts
3
+ var t = (t, n, r) => e.object({
4
+ id: e.string(),
5
+ type: t,
6
+ fieldId: e.string(),
7
+ conditionValue: n,
8
+ conditionModifier: r
9
+ }), n = e.literal("boolean"), r = e.literal(["equals", "notEquals"]), ee = t(n, e.boolean(), r), i = e.literal("checkbox-list"), te = e.literal([
10
+ "equals",
11
+ "notEquals",
12
+ "every",
13
+ "some",
14
+ "none"
15
+ ]), ne = t(i, e.array(e.string()), te), re = e.object({
16
+ value: e.string(),
17
+ label: e.string()
18
+ }), a = e.object({
19
+ from: e.number().nullable(),
20
+ to: e.number().nullable()
21
+ }), ie = e.literal(["+", "-"]), o = e.templateLiteral([
22
+ e.string(),
23
+ ":",
24
+ e.string()
25
+ ]), ae = e.templateLiteral([ie, o]), s = e.templateLiteral([
26
+ "T",
27
+ o,
28
+ ":00",
29
+ ae
30
+ ]), oe = e.object({
31
+ from: s.nullable(),
32
+ to: s.nullable()
33
+ }), se = e.object({
34
+ from: e.string().nullable(),
35
+ to: e.string().nullable()
36
+ }), c = e.literal("date"), ce = e.literal([
37
+ "equals",
38
+ "notEquals",
39
+ "before",
40
+ "after",
41
+ "in",
42
+ "notIn"
43
+ ]), le = t(c, e.union([e.string(), se]), ce), l = e.literal("multi-select"), ue = e.literal([
44
+ "equals",
45
+ "notEquals",
46
+ "every",
47
+ "some",
48
+ "none"
49
+ ]), de = t(l, e.array(e.string()), ue), u = e.literal("multi-string"), d = e.literal([
50
+ "equals",
51
+ "notEquals",
52
+ "every",
53
+ "some",
54
+ "none"
55
+ ]), f = t(u, e.array(e.string()), d), p = e.literal("number"), fe = e.literal([
56
+ "equals",
57
+ "notEquals",
58
+ "lessThan",
59
+ "lessThanOrEquals",
60
+ "greaterThan",
61
+ "greaterThanOrEquals",
62
+ "inRange",
63
+ "notInRange"
64
+ ]), pe = t(p, e.union([e.number(), a]), fe), m = e.literal("otp"), me = e.literal([
65
+ "equals",
66
+ "notEquals",
67
+ "includes",
68
+ "excludes"
69
+ ]), he = t(m, e.string(), me), h = (t) => e.object({
70
+ identifier: e.string(),
71
+ type: t
72
+ }), g = (t) => e.object({
73
+ ...h(t).shape,
74
+ label: e.string(),
75
+ description: e.string().nullable().optional(),
76
+ required: e.boolean()
77
+ }), _ = (t) => e.object({
78
+ ...g(t).shape,
79
+ options: e.array(re)
80
+ }), v = (t) => e.object({
81
+ ...g(t).shape,
82
+ minimum_length: e.number().optional(),
83
+ maximum_length: e.number(),
84
+ placeholder: e.string().optional()
85
+ }), y = e.literal([
86
+ "pass",
87
+ "fail",
88
+ "na"
89
+ ]), b = e.literal("pass-fail"), ge = e.object({
90
+ ...g(b).shape,
91
+ showNotesAndFilesOn: e.array(y)
92
+ }), _e = e.object({
93
+ status: y.nullable(),
94
+ notes: e.string(),
95
+ files: e.tuple([])
96
+ }), x = e.literal("pass-fail"), ve = e.literal([
97
+ "equals",
98
+ "notEquals",
99
+ "includes",
100
+ "excludes"
101
+ ]), ye = t(x, e.union([y, e.array(y)]), ve), S = e.literal("radio"), be = e.literal([
102
+ "equals",
103
+ "notEquals",
104
+ "includes",
105
+ "excludes"
106
+ ]), xe = t(S, e.union([e.string(), e.array(e.string())]), be), C = e.literal("rating"), Se = e.literal([
107
+ "equals",
108
+ "notEquals",
109
+ "lessThan",
110
+ "lessThanOrEquals",
111
+ "greaterThan",
112
+ "greaterThanOrEquals",
113
+ "inRange",
114
+ "notInRange"
115
+ ]), Ce = t(C, e.union([e.number(), a]), Se), w = e.literal("qr"), we = e.literal([
116
+ "equals",
117
+ "notEquals",
118
+ "includes",
119
+ "excludes"
120
+ ]), T = t(w, e.string(), we), E = e.literal("select"), D = e.literal([
121
+ "equals",
122
+ "notEquals",
123
+ "includes",
124
+ "excludes"
125
+ ]), O = t(E, e.union([e.string(), e.array(e.string())]), D), k = e.literal("string"), Te = e.literal([
126
+ "equals",
127
+ "notEquals",
128
+ "includes",
129
+ "excludes"
130
+ ]), Ee = t(k, e.string(), Te), A = e.literal("text"), De = e.literal([
131
+ "equals",
132
+ "notEquals",
133
+ "includes",
134
+ "excludes"
135
+ ]), Oe = t(A, e.string(), De), j = e.literal("time"), ke = e.literal([
136
+ "equals",
137
+ "notEquals",
138
+ "before",
139
+ "after",
140
+ "in",
141
+ "notIn"
142
+ ]), Ae = t(j, e.union([s, oe]), ke), M = e.literal("upload"), je = e.literal(["equals", "notEquals"]), Me = t(M, e.boolean(), je), N = e.literal("url"), Ne = e.literal([
143
+ "equals",
144
+ "notEquals",
145
+ "includes",
146
+ "excludes"
147
+ ]), Pe = t(N, e.string(), Ne), Fe = e.union([
148
+ n,
149
+ i,
150
+ c,
151
+ l,
152
+ u,
153
+ p,
154
+ m,
155
+ x,
156
+ S,
157
+ C,
158
+ w,
159
+ E,
160
+ k,
161
+ A,
162
+ j,
163
+ M,
164
+ N
165
+ ]), Ie = e.discriminatedUnion("type", [
166
+ ee,
167
+ ne,
168
+ le,
169
+ de,
170
+ f,
171
+ pe,
172
+ he,
173
+ ye,
174
+ xe,
175
+ Ce,
176
+ T,
177
+ O,
178
+ Ee,
179
+ Oe,
180
+ Ae,
181
+ Me,
182
+ Pe
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
+ ..._(R).shape,
185
+ placeholder: e.string().optional()
186
+ }), Ue = e.array(e.string()), z = e.literal("multi-string"), We = v(z), Ge = e.array(e.string()), B = e.literal("number"), Ke = e.object({
187
+ ...g(B).shape,
188
+ minimum: e.number().optional(),
189
+ maximum: e.number().optional(),
190
+ integers: e.boolean(),
191
+ placeholder: e.string().optional()
192
+ }), qe = e.number().nullable(), Je = e.literal([
193
+ "alpha",
194
+ "numeric",
195
+ "alphanumeric",
196
+ "none"
197
+ ]), V = e.literal("otp"), Ye = e.object({
198
+ ...g(V).shape,
199
+ length: e.number(),
200
+ validationType: Je
201
+ }), Xe = e.string(), H = e.literal("radio"), Ze = _(H), Qe = e.string().nullable(), U = e.literal("rating"), $e = e.object({
202
+ ...g(U).shape,
203
+ maxRating: e.number()
204
+ }), et = e.number().nullable(), W = e.literal("qr"), tt = g(W), nt = e.string(), G = e.literal("select"), rt = e.object({
205
+ ..._(G).shape,
206
+ placeholder: e.string().optional()
207
+ }), it = e.string().nullable(), K = e.literal("string"), at = v(K), ot = e.string(), q = e.literal("text"), st = v(q), ct = e.string(), J = e.literal("time"), lt = g(J), ut = s.nullable(), Y = e.literal("upload"), dt = e.object({
208
+ ...g(Y).shape,
209
+ extensions: e.array(e.string()).optional(),
210
+ maximum_size: e.number().optional(),
211
+ maximum_files: e.number().optional()
212
+ }), ft = e.tuple([]), X = e.literal("url"), pt = e.object({
213
+ ...g(X).shape,
214
+ placeholder: e.string().optional()
215
+ }), mt = e.string().nullable(), ht = e.union([
216
+ P,
217
+ I,
218
+ L,
219
+ R,
220
+ z,
221
+ B,
222
+ V,
223
+ b,
224
+ H,
225
+ U,
226
+ W,
227
+ G,
228
+ K,
229
+ q,
230
+ J,
231
+ Y,
232
+ X
233
+ ]), Z = e.discriminatedUnion("type", [
234
+ F,
235
+ Re,
236
+ Be,
237
+ He,
238
+ We,
239
+ Ke,
240
+ Ye,
241
+ ge,
242
+ Ze,
243
+ $e,
244
+ tt,
245
+ rt,
246
+ at,
247
+ st,
248
+ lt,
249
+ dt,
250
+ pt
251
+ ]), gt = e.union([
252
+ Le,
253
+ ze,
254
+ Ve,
255
+ Ue,
256
+ Ge,
257
+ qe,
258
+ Xe,
259
+ _e,
260
+ Qe,
261
+ et,
262
+ nt,
263
+ it,
264
+ ot,
265
+ ct,
266
+ ut,
267
+ ft,
268
+ mt
269
+ ]), _t = e.record(e.string(), gt), Q = e.literal("section"), vt = e.record(e.string(), e.array(Ie)), $ = e.object({
270
+ ...h(Q).shape,
271
+ label: e.string().nullable(),
272
+ description: e.string().nullable().optional(),
273
+ conditions: vt,
274
+ fields: e.array(Z)
275
+ }), yt = e.union([ht, Q]), bt = e.discriminatedUnion("type", [$, Z]), xt = e.array($);
276
+ //#endregion
277
+ export { t as BaseJSONConditionSchema, h as BaseJSONFieldElementSchema, g as BaseJSONFieldSchema, _ as BaseJSONOptionsFieldSchema, v as BaseJSONStringFieldSchema, r as JSONBooleanConditionModifierSchema, ee as JSONBooleanConditionSchema, n as JSONBooleanConditionTypeSchema, F as JSONBooleanFieldSchema, P as JSONBooleanFieldTypeSchema, Le as JSONBooleanFieldValueSchema, te as JSONCheckboxListConditionModifierSchema, ne as JSONCheckboxListConditionSchema, i as JSONCheckboxListConditionTypeSchema, Re as JSONCheckboxListFieldSchema, I as JSONCheckboxListFieldTypeSchema, ze as JSONCheckboxListFieldValueSchema, Ie as JSONConditionSchema, Fe as JSONConditionTypeSchema, ce as JSONDateConditionModifierSchema, le as JSONDateConditionSchema, c as JSONDateConditionTypeSchema, Be as JSONDateFieldSchema, L as JSONDateFieldTypeSchema, Ve as JSONDateFieldValueSchema, se as JSONDateRangeSchema, bt as JSONFieldElementSchema, yt as JSONFieldElementTypeSchema, Z as JSONFieldSchema, xt as JSONFieldSchemaSchema, vt as JSONFieldSectionConditionsSchema, $ as JSONFieldSectionSchema, Q as JSONFieldSectionTypeSchema, ht as JSONFieldTypeSchema, gt as JSONFieldValueSchema, _t as JSONFieldValuesSchema, ue as JSONMultiSelectConditionModifierSchema, de as JSONMultiSelectConditionSchema, l as JSONMultiSelectConditionTypeSchema, He as JSONMultiSelectFieldSchema, R as JSONMultiSelectFieldTypeSchema, Ue as JSONMultiSelectFieldValueSchema, d as JSONMultiStringConditionModifierSchema, f as JSONMultiStringConditionSchema, u as JSONMultiStringConditionTypeSchema, We as JSONMultiStringFieldSchema, z as JSONMultiStringFieldTypeSchema, Ge as JSONMultiStringFieldValueSchema, fe as JSONNumberConditionModifierSchema, pe as JSONNumberConditionSchema, p as JSONNumberConditionTypeSchema, Ke as JSONNumberFieldSchema, B as JSONNumberFieldTypeSchema, qe as JSONNumberFieldValueSchema, me as JSONOTPConditionModifierSchema, he as JSONOTPConditionSchema, m as JSONOTPConditionTypeSchema, Ye as JSONOTPFieldSchema, V as JSONOTPFieldTypeSchema, Xe as JSONOTPFieldValueSchema, x as JSONPassFailConditionTypeSchema, ve as JSONPassFailFieldConditionModifierSchema, ye as JSONPassFailFieldConditionSchema, ge as JSONPassFailFieldSchema, b as JSONPassFailFieldTypeSchema, _e as JSONPassFailFieldValueSchema, be as JSONRadioConditionModifierSchema, xe as JSONRadioConditionSchema, S as JSONRadioConditionTypeSchema, Ze as JSONRadioFieldSchema, H as JSONRadioFieldTypeSchema, Qe as JSONRadioFieldValueSchema, Se as JSONRatingConditionModifierSchema, Ce as JSONRatingConditionSchema, C as JSONRatingConditionTypeSchema, $e as JSONRatingFieldSchema, U as JSONRatingFieldTypeSchema, et as JSONRatingFieldValueSchema, we as JSONScanConditionModifierSchema, T as JSONScanConditionSchema, w as JSONScanConditionTypeSchema, tt as JSONScanFieldSchema, W as JSONScanFieldTypeSchema, nt as JSONScanFieldValueSchema, D as JSONSelectConditionModifierSchema, O as JSONSelectConditionSchema, E as JSONSelectConditionTypeSchema, rt as JSONSelectFieldSchema, G as JSONSelectFieldTypeSchema, it as JSONSelectFieldValueSchema, Te as JSONStringConditionModifierSchema, Ee as JSONStringConditionSchema, k as JSONStringConditionTypeSchema, at as JSONStringFieldSchema, K as JSONStringFieldTypeSchema, ot as JSONStringFieldValueSchema, De as JSONTextConditionModifierSchema, Oe as JSONTextConditionSchema, A as JSONTextConditionTypeSchema, st as JSONTextFieldSchema, q as JSONTextFieldTypeSchema, ct as JSONTextFieldValueSchema, ke as JSONTimeConditionModifierSchema, Ae as JSONTimeConditionSchema, j as JSONTimeConditionTypeSchema, lt as JSONTimeFieldSchema, J as JSONTimeFieldTypeSchema, ut as JSONTimeFieldValueSchema, Ne as JSONURLConditionModifierSchema, Pe as JSONURLConditionSchema, N as JSONURLConditionTypeSchema, pt as JSONURLFieldSchema, X as JSONURLFieldTypeSchema, mt as JSONURLFieldValueSchema, je as JSONUploadConditionModifierSchema, Me as JSONUploadConditionSchema, M as JSONUploadConditionTypeSchema, dt as JSONUploadFieldSchema, Y as JSONUploadFieldTypeSchema, ft as JSONUploadFieldValueSchema, a as NumberRangeSchema, Je as OTPFieldValidationTypeSchema, y as PassFailFieldStatusSchema, re as SelectFieldOptionSchema, oe as TimeRangeSchema, s as TimeSchema, ae as UTCOffsetSchema, ie as UTCOffsetSignSchema, o as UTCOffsetTimeSchema };
package/dist/misc.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ import * as z from "zod/v4";
2
+ export declare const SelectFieldOptionSchema: z.ZodObject<{
3
+ value: z.ZodString;
4
+ label: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type SelectFieldOptionSchemaType = z.infer<typeof SelectFieldOptionSchema>;
7
+ export declare const NumberRangeSchema: z.ZodObject<{
8
+ from: z.ZodNullable<z.ZodNumber>;
9
+ to: z.ZodNullable<z.ZodNumber>;
10
+ }, z.core.$strip>;
11
+ export type NumberRangeSchemaType = z.infer<typeof NumberRangeSchema>;
12
+ export declare const UTCOffsetSignSchema: z.ZodLiteral<"+" | "-">;
13
+ export type UTCOffsetSignSchemaType = z.infer<typeof UTCOffsetSignSchema>;
14
+ export declare const UTCOffsetTimeSchema: z.ZodTemplateLiteral<`${string}:${string}`>;
15
+ export type UTCOffsetTimeSchemaType = z.infer<typeof UTCOffsetTimeSchema>;
16
+ export declare const UTCOffsetSchema: z.ZodTemplateLiteral<`+${string}:${string}` | `-${string}:${string}`>;
17
+ export type UTCOffsetSchemaType = z.infer<typeof UTCOffsetSchema>;
18
+ export declare const TimeSchema: z.ZodTemplateLiteral<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`>;
19
+ export type TimeSchemaType = z.infer<typeof TimeSchema>;
20
+ export declare const TimeRangeSchema: z.ZodObject<{
21
+ from: z.ZodNullable<z.ZodTemplateLiteral<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`>>;
22
+ to: z.ZodNullable<z.ZodTemplateLiteral<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}`>>;
23
+ }, z.core.$strip>;
24
+ export type TimeRangeSchemaType = z.infer<typeof TimeRangeSchema>;
25
+ export declare const JSONDateRangeSchema: z.ZodObject<{
26
+ from: z.ZodNullable<z.ZodString>;
27
+ to: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ export type JSONDateRangeSchemaType = z.infer<typeof JSONDateRangeSchema>;