import{M as r}from"./index-BiWH3VAt.js";const a=r.injectEndpoints({endpoints:n=>({saveEngineerDetails:n.mutation({query:({engineer:e})=>({url:"engineer",method:"POST",body:e})}),updateEngineerDetails:n.mutation({query:({engineer:e})=>({url:"engineer",method:"PUT",body:e})}),getEngineerDetails:n.query({query:()=>"engineer"}),getEngineerDetailsByPage:n.mutation({query:({page:e,size:t,searchByName:i})=>({url:`engineer/search-by-criteria?page=${e}&size=${t}`,method:"POST",body:i})}),getEngineerDetailsBySearch:n.mutation({query:({pagnation:e})=>({url:"engineer/search-by-criteria?page=0&size=25",method:"POST",body:e})}),getEngineerById:n.query({query:({id:e})=>({url:`engineer/${e}`,method:"GET"})}),deleteEngineer:n.mutation({query:({id:e})=>({url:`engineer/${e}`,method:"DELETE"})}),checkDuplicateEngineer:n.mutation({query:({engineer:e})=>({url:"engineer/duplicate",method:"POST",body:e})})}),overrideExisting:!1}),{useSaveEngineerDetailsMutation:s,useCheckDuplicateEngineerMutation:g,useUpdateEngineerDetailsMutation:o,useGetEngineerDetailsQuery:y,useLazyGetEngineerDetailsQuery:E,useGetEngineerDetailsByPageMutation:c,useGetEngineerDetailsBySearchMutation:l,useGetEngineerByIdQuery:d,useLazyGetEngineerByIdQuery:m,useDeleteEngineerMutation:D}=a;export{g as a,c as b,o as c,l as d,s as u};
