import{z as e}from"zod";const t=[`name`,`membersIds`,`adminsIds`],n=4,r=100,i=1,a=e.object({name:e.string({message:`Name must be a string.`}).min(4,`Name must be at least 4 characters long.`).max(100,`Name must be at most 100 characters long.`),membersIds:e.array(e.string({message:`Members must contain only string elements.`})).min(1,`Members must be at least 1 items long.`),adminsIds:e.array(e.string({message:`Members must contain only string elements.`})).min(1,`Members must be at least 1 items long.`)}),o=(e,n=t)=>{let r=n.reduce((e,t)=>(e[t]=!0,e),{}),i=a.pick(r).safeParse(e);return i.success?{}:i.error.flatten().fieldErrors};export{i as MEMBERS_MIN_LENGTH,r as NAME_MAX_LENGTH,n as NAME_MIN_LENGTH,o as validateOrganization};
//# sourceMappingURL=validateOrganization.mjs.map