import{b8 as a}from"./index-BiWH3VAt.js";const u="machine-setup-production-process",n=a.injectEndpoints({endpoints:t=>({saveMachineSetupProductionDetails:t.mutation({query:({setup:e})=>({url:u,method:"POST",body:e})}),updateMachineSetupProductionDetails:t.mutation({query:({edit:e})=>({url:u,method:"PUT",body:e})}),getMachineSetupProductionById:t.query({query:({id:e})=>({url:`${u}/${e}`,method:"GET"})}),deleteMachineSetupProductionDetails:t.mutation({query:({id:e})=>({url:`${u}/${e}`,method:"DELETE"})}),checkDuplicateMachineSetupProduction:t.mutation({query:({check:e})=>({url:`${u}/duplicate`,method:"POST",body:e})}),getMachineSetupProductionDetailsBypage:t.mutation({query:({page:e,size:o,searchByName:i})=>({url:`${u}/search-by-criteria?page=${e}&size=${o}`,method:"POST",body:i})}),getMachineSetupProductionDetailsBySearch:t.mutation({query:({searchByName:e})=>({url:`${u}/search-by-criteria?page=0&size=25`,method:"POST",body:e})}),getMachineSetupProductionDetails:t.query({query:()=>({url:u,method:"GET"})})})}),{useSaveMachineSetupProductionDetailsMutation:r,useUpdateMachineSetupProductionDetailsMutation:s,useLazyGetMachineSetupProductionByIdQuery:p,useGetMachineSetupProductionByIdQuery:d,useDeleteMachineSetupProductionDetailsMutation:h,useCheckDuplicateMachineSetupProductionMutation:y,useGetMachineSetupProductionDetailsBypageMutation:S,useGetMachineSetupProductionDetailsBySearchMutation:P,useGetMachineSetupProductionDetailsQuery:M,useLazyGetMachineSetupProductionDetailsQuery:l}=n;export{r as a,s as b,y as c,S as d,p as e,h as f,l as u};
