import{c as o}from"./dc0o8kHW.js";import{e as u}from"./92N1comP.js";async function i(a=1,t=20,e){const s={page:String(a),per_page:String(t)},r=await o.getFullBody("/groups",s),p=r.data??[],n=r.meta?.pagination??{};return{groups:p,total:n.total??p.length,page:n.page??a,perPage:n.per_page??t,totalPages:n.total_pages??1}}async function d(a){const{data:t,headers:e}=await o.requestRaw("GET",`/groups/${a}`);return{group:t,etag:u(e)}}async function l(a){return o.post("/groups",a)}async function f(a,t,e){const s={};e&&(s["If-Match"]=`"${e}"`);const r=await o.requestRaw("PATCH",`/groups/${a}`,{body:t,headers:s});return{group:r.data,etag:u(r.headers)}}async function y(a){await o.delete(`/groups/${a}`)}export{i as a,l as c,y as d,d as g,f as u};
