import{e as s}from"./index-CWZVsN2l.js";const o=s.injectEndpoints({endpoints:t=>({saveTermsAndConditions:t.mutation({query:e=>({url:"terms-and-condition",method:"POST",body:e})}),updateTemrsAndConditions:t.mutation({query:e=>({url:"terms-and-condition",method:"PUT",body:e})}),getTermsAndCondition:t.query({query:()=>({url:"terms-and-condition",method:"GET"})}),getDefaultTerms:t.query({query:e=>`terms-and-condition/defaults?documentType=${e}`}),getTermsByDocumentType:t.query({query:e=>`terms-and-condition/by-document-type?documentType=${e}`}),checkDisplayOrderExists:t.query({query:({displayOrder:e,excludeId:n})=>({url:`terms-and-condition/check-display-order?displayOrder=${e}${n?`&excludeId=${n}`:""}`,method:"GET"})})})}),{useSaveTermsAndConditionsMutation:u,useUpdateTemrsAndConditionsMutation:d,useLazyGetTermsAndConditionQuery:i,useGetDefaultTermsQuery:m,useLazyGetDefaultTermsQuery:y,useGetTermsByDocumentTypeQuery:a,useLazyGetTermsByDocumentTypeQuery:c,useLazyCheckDisplayOrderExistsQuery:T}=o;export{u as a,d as b,i as c,T as d,c as u};
