import{P as c,T as s,Q as n,dI as g}from"./index-46ma1THH.js";const u=c.injectEndpoints({endpoints:r=>({getStorageConnectors:r.query({query:({pId:e,fsId:t,params:o={}})=>({url:`/project/${e}/featurestores/${t}/storageconnectors?${g.stringify(o)}`}),providesTags:s.providesListItems(n.ProjectTags.FSStorageConnectors,"name")}),getEnabledStorageConnectorTypes:r.query({query:({pId:e,fsId:t})=>({url:`/project/${e}/featurestores/${t}/storageconnectors/types`})}),getStorageConnector:r.query({query:({pId:e,fsId:t,id:o})=>({url:`/project/${e}/featurestores/${t}/storageconnectors/${o}`}),providesTags:s.cacheByIdArgProperty(n.ProjectTags.FSStorageConnectors)}),createStorageConnector:r.mutation({query:({pId:e,fsId:t,data:o})=>({url:`/project/${e}/featurestores/${t}/storageconnectors`,method:"post",data:o}),invalidatesTags:s.invalidatesList(n.ProjectTags.FSStorageConnectors)}),editStorageConnector:r.mutation({query:({pId:e,fsId:t,id:o,data:a})=>({url:`/project/${e}/featurestores/${t}/storageconnectors/${o}`,method:"put",data:a}),invalidatesTags:s.cacheByIdArgProperty(n.ProjectTags.FSStorageConnectors)}),deleteStorageConnector:r.mutation({query:({pId:e,fsId:t,id:o})=>({url:`/project/${e}/featurestores/${t}/storageconnectors/${o}`,method:"delete"}),invalidatesTags:s.invalidatesList(n.ProjectTags.FSStorageConnectors)}),testStorageConnection:r.mutation({query:({pId:e,fsId:t,data:o})=>({url:`/project/${e}/featurestores/${t}/storageconnectors/testConnection`,method:"post",data:o})})})}),{useGetStorageConnectorsQuery:p,useGetEnabledStorageConnectorTypesQuery:S,useGetStorageConnectorQuery:y,useCreateStorageConnectorMutation:C,useEditStorageConnectorMutation:d,useDeleteStorageConnectorMutation:$,useTestStorageConnectionMutation:T}=u;export{S as a,C as b,T as c,d,$ as e,y as f,p as u};
