import{b0 as s}from"./index-DlNZgIG9.js";const u=s.injectEndpoints({endpoints:e=>({saveallShiftDetails:e.mutation({query:({shift:t})=>({url:"shift",method:"POST",body:t})}),updateShiftDetails:e.mutation({query:({edit:t})=>({url:"shift",method:"PUT",body:t})}),getShiftById:e.query({query:({id:t})=>({url:`shift/${t}`,method:"GET"})}),deleteShiftDetails:e.mutation({query:({id:t})=>({url:`shift/${t}`,method:"DELETE"})}),checkDuplicateShift:e.mutation({query:({check:t})=>({url:"shift/duplicate",method:"POST",body:t})}),validateShiftTime:e.mutation({query:({check:t})=>({url:"shift/validate-time",method:"POST",body:t})}),getShiftDetailsBypage:e.mutation({query:({page:t,size:i,searchByName:a})=>({url:`shift/search-by-criteria?page=${t}&size=${i}`,method:"POST",body:a})}),getShiftDetailsBySearch:e.mutation({query:({searchByName:t})=>({url:"shift/search-by-criteria?page=0&size=25",method:"POST",body:t})}),getShiftDetails:e.query({query:()=>({url:"shift",method:"GET"})})})}),{useUpdateShiftDetailsMutation:o,useGetShiftDetailsQuery:f,useSaveallShiftDetailsMutation:y,useCheckDuplicateShiftMutation:r,useValidateShiftTimeMutation:S,useLazyGetShiftDetailsQuery:l,useGetShiftDetailsBypageMutation:n,useGetShiftDetailsBySearchMutation:m,useLazyGetShiftByIdQuery:d,useDeleteShiftDetailsMutation:c}=u;export{y as a,o as b,r as c,S as d,d as e,n as f,c as g,f as u};
