import{b0 as r}from"./index-DlNZgIG9.js";const o=r.injectEndpoints({endpoints:t=>({saveMasterData:t.mutation({query:({bomData:e})=>({url:"bom",method:"POST",body:e})}),updateMasterData:t.mutation({query:({bomData:e})=>({url:"bom",method:"PUT",body:e,headers:{entityName:"BOM"}})}),getMasterDetails:t.query({query:()=>"bom"}),getMasterById:t.query({query:({id:e})=>({url:`bom/${e}`,method:"GET"})}),checkDuplicateMaster:t.mutation({query:({check:e})=>({url:"bom/duplicate",method:"POST",body:e,headers:{entityName:"BOM"}})}),getMasterDetailsBypage:t.mutation({query:({page:e,size:a,searchByName:s})=>({url:`bom/search-by-criteria?page=${e}&size=${a}`,method:"POST",body:s,headers:{entityName:"BOM"}})}),getMasterDetailsBySearch:t.mutation({query:({searchByName:e})=>({url:"bom/search-by-criteria?page=0&size=25",method:"POST",body:e,headers:{entityName:"BOM"}})}),getMasterByProductName:t.mutation({query:({bomName:e})=>({url:"bom/bom-get",method:"POST",body:{bomName:e},headers:{entityName:"BOM"}})})})}),{useSaveMasterDataMutation:y,useUpdateMasterDataMutation:i,useGetMasterDetailsQuery:m,useLazyGetMasterDetailsQuery:M,useLazyGetMasterByIdQuery:n,useCheckDuplicateMasterMutation:d,useGetMasterDetailsBypageMutation:c,useGetMasterDetailsBySearchMutation:h,useGetMasterByProductNameMutation:p}=o;export{n as a,y as b,i as c,d,p as e,c as u};
