import{q as p}from"./index-B1H8BCL7.js";const n=p.injectEndpoints({endpoints:e=>({getDepartmentReportConfigs:e.query({query:()=>({url:"settings/report-templates",method:"GET"}),providesTags:[{type:"DepartmentReportConfig",id:"LIST"}]}),addDepartmentReportConfig:e.mutation({query:t=>({url:"settings/report-templates",method:"POST",body:t}),invalidatesTags:[{type:"DepartmentReportConfig",id:"LIST"}]}),updateDepartmentReportConfig:e.mutation({query:({id:t,body:o})=>({url:`settings/report-templates/${t}`,method:"PUT",body:o}),invalidatesTags:[{type:"DepartmentReportConfig",id:"LIST"}]}),deleteDepartmentReportConfig:e.mutation({query:t=>({url:`settings/report-templates/${t}`,method:"DELETE"}),invalidatesTags:[{type:"DepartmentReportConfig",id:"LIST"}]})})}),{useGetDepartmentReportConfigsQuery:a,useAddDepartmentReportConfigMutation:i,useUpdateDepartmentReportConfigMutation:s,useDeleteDepartmentReportConfigMutation:m}=n;export{s as a,m as b,i as c,a as u};
