import{b8 as y}from"./index-BiWH3VAt.js";const i=y.injectEndpoints({endpoints:t=>({saveEmployeeDetails:t.mutation({query:({employee:e})=>({url:"employee-registration",method:"POST",body:e})}),updateEmployeeDetails:t.mutation({query:({edit:e})=>({url:"employee-registration",method:"PUT",body:e})}),getEmployeeById:t.query({query:({id:e})=>({url:`employee-registration/${e}`,method:"GET"})}),checkDuplicateEmployee:t.mutation({query:({check:e})=>({url:"employee-registration/duplicate",method:"POST",body:e})}),getEmployeeDetailsBypage:t.mutation({query:({page:e,size:o,searchByName:a})=>({url:`employee-registration/search-by-criteria?page=${e}&size=${o}`,method:"POST",body:a})}),getEmployeeDetailsBySearch:t.mutation({query:({searchByName:e})=>({url:"employee-registration/search-by-criteria?page=0&size=25",method:"POST",body:e})}),getEmployeeDetails:t.query({query:()=>({url:"employee-registration",method:"GET"})})})}),{useUpdateEmployeeDetailsMutation:s,useGetEmployeeDetailsQuery:m,useSaveEmployeeDetailsMutation:p,useCheckDuplicateEmployeeMutation:u,useLazyGetEmployeeDetailsQuery:l,useGetEmployeeDetailsBypageMutation:n,useGetEmployeeDetailsBySearchMutation:c,useLazyGetEmployeeByIdQuery:E}=i;export{s as a,u as b,n as c,m as d,p as u};
