import{a7 as c,a4 as r,aQ as a,aT as o}from"./index-dNe6i2rS.js";const u=c.injectEndpoints({endpoints:t=>({getProjects:t.query({query:()=>({url:o.stringifyUrl({url:"/admin/projects",query:{expand:["creator"]}})}),transformResponse:e=>e.items,providesTags:a.providesList(r.ProjectTags.Project)}),getQuotaForProject:t.query({query:({id:e})=>({url:o.stringifyUrl({url:`/admin/projects/${e}`,query:{expand:["quotas"]}})}),providesTags:a.cacheByIdArgProperty(r.ProjectTags.Project)}),updateQuota:t.mutation({query:({id:e,quota:s})=>({url:`/admin/projects/${e}`,method:"PUT",data:{paymentType:"NOLIMIT",projectQuotas:s}}),invalidatesTags:a.cacheByIdArgProperty(r.ProjectTags.Project)}),forceDeleteProject:t.mutation({query:({id:e})=>({url:`/admin/projects/${e}?force=true`,method:"delete"}),invalidatesTags:[{type:r.ProjectTags.Project,id:"LIST"}]})})}),{useGetProjectsQuery:n,useGetQuotaForProjectQuery:p,useUpdateQuotaMutation:d,useForceDeleteProjectMutation:y}=u;export{p as a,d as b,y as c,n as u};
