import{q as o}from"./index-B1H8BCL7.js";const e=o.injectEndpoints({endpoints:a=>({gethospitalList:a.query({query:()=>"hospital"}),hospitalListByPage:a.mutation({query:t=>({url:"hospital/search",method:"POST",body:t})}),hospitalList:a.mutation({query:t=>({url:"hospital/add/all",method:"POST",body:t})}),deleteHospital:a.mutation({query:t=>({url:`hospital/delete/${t}`,method:"DELETE"})}),hospitalDuplicate:a.mutation({query:t=>({url:"hospital/check-duplicate",method:"POST",body:t})}),grantHospitalAccess:a.mutation({query:({id:t,body:s})=>({url:`hospital/${t}/grant-access`,method:"POST",body:s})})})}),{useHospitalListByPageMutation:l,useHospitalListMutation:p,useDeleteHospitalMutation:u,useHospitalDuplicateMutation:n,useGethospitalListQuery:h,useGrantHospitalAccessMutation:r}=e;export{p as a,h as b,l as c,r as d,n as u};
