import{K as c,M as o,O as a}from"./index-CK33qGU_.js";const m=c.injectEndpoints({endpoints:t=>({getMembers:t.query({query:({id:e})=>({url:`project/${e}/projectMembers`})}),addMembers:t.mutation({query:({id:e,data:r})=>({url:`project/${e}/projectMembers`,method:"post",data:r}),invalidatesTags:o.cacheByIdArgProperty(a.ProjectTags.Project)}),deleteMember:t.mutation({query:({id:e,email:r})=>({url:`project/${e}/projectMembers/${r}`,method:"delete"}),invalidatesTags:o.cacheByIdArgProperty(a.ProjectTags.Project)}),editMemberRole:t.mutation({query:({id:e,email:r,role:s})=>({url:`project/${e}/projectMembers/${r}`,method:"post",data:new URLSearchParams({role:s}).toString()}),invalidatesTags:o.cacheByIdArgProperty(a.ProjectTags.Project)})})}),{useGetMembersQuery:u,useAddMembersMutation:i,useDeleteMemberMutation:n,useEditMemberRoleMutation:d}=m;export{n as a,d as b,i as u};
