import{a7 as o,a4 as r,aQ as e}from"./index-BKr2rJhV.js";const d=o.injectEndpoints({endpoints:t=>({getClusterMandatoryTags:t.query({query:()=>({url:"/mandatorytags"}),providesTags:[r.AdminTags.ClusterMandatoryTags]}),getProjectMandatoryTags:t.query({query:({projectId:a})=>({url:`/admin/projects/${a}/mandatorytags/project`}),providesTags:e.cacheByIdArgProperty(r.AdminTags.ProjectMandatoryTags,"projectId")}),updateProjectMandatoryTags:t.mutation({query:({projectId:a,tags:s})=>({url:`/admin/projects/${a}/mandatorytags/project`,method:"POST",data:{items:s}}),invalidatesTags:e.cacheByIdArgProperty(r.AdminTags.ProjectMandatoryTags,"projectId")}),updateClusterMandatoryTags:t.mutation({query:a=>({url:"/mandatorytags",method:"POST",data:{items:a}}),invalidatesTags:[r.AdminTags.ClusterMandatoryTags]})})}),{useGetClusterMandatoryTagsQuery:y,useGetProjectMandatoryTagsQuery:g,useUpdateProjectMandatoryTagsMutation:u,useUpdateClusterMandatoryTagsMutation:T}=d;export{g as a,u as b,T as c,y as u};
