|
|
|
|
`).is("parent_id",null);return t},d=async e=>{await s.fetch("collections","insert",{data:e})},l=async e=>{const{data:t,error:a}=await r.rpc("get_collection_descendants",{start_id:e});if(a)throw a;return t.map(c=>c.id)},u=async(e,t)=>s.fetch("collections","update",{data:t,field:"id",value:e}),p=async e=>s.fetch("collections","delete",{field:"id",value:e});export{l as a,o as b,d as c,p as d,i as g,u};
|