import{validateArray as e}from"./validateArray.mjs";import{findProjects as t}from"../../services/project.service.mjs";const n=[`projectIds`],r=async(r,i=n)=>{let a={},o=new Set(i),s=JSON.parse(JSON.stringify(r)),c=await t({_id:r.projectIds});for(let t of o){let n=s[t];if(a[t]=[],t===`projectIds`){let t=e(n,`Project`,`string`,e=>{let n=[];return typeof e!=`string`&&n.push(`Project id must be a string`),e||n.push(`Project id is required`),c||n.push(`Project not found`),t})}a[t].length===0&&delete a[t]}return a};export{r as validateDictionary};
//# sourceMappingURL=validateDictionary.mjs.map