import{O as a,p as g,dU as u,bi as p,T as y,dz as c,A as f,B as l,P as n,Q as m}from"./index-_eM6l4Nf.js";const T=a.injectEndpoints({endpoints:o=>({getFgMonitoringConfigByEntity:o.query({query:({pId:e,fsId:t,fgId:r})=>({url:`
          project/${e}/
          featurestores/${t}/
          featuregroups/${r}/
          featuremonitoring/config/entity/
        `.replace(/\s/g,"")}),providesTags:m.cacheByIdArgProperty(n.ProjectTags.FGMonitoringConfig,"fgId")}),triggerMonitoringJob:o.mutation({query:({pId:e,name:t})=>({url:`project/${e}/jobs/${t}/executions`,headers:{"Content-Type":"text/plain"},method:"POST"}),invalidatesTags:(e,t,{pId:r,name:i})=>[n.ProjectTags.JobExecutions,{type:n.ProjectTags.Job,id:`${r}-${i}`}]}),getFgMonitoringResult:o.query({query:({pId:e,fsId:t,fgId:r,configId:i,query:s})=>({url:u.stringifyUrl({url:`
           project/${e}/
           featurestores/${t}/
           featuregroups/${r}/
           featuremonitoring/result/byconfig/${i}
        `.replace(/\s/g,""),query:s})}),transformResponse:(e,t,{featureName:r})=>g(l([],"items"),c(f("featureName",r)),p(y("monitoringTime")))(e)})})}),{useGetFgMonitoringConfigByEntityQuery:$,useTriggerMonitoringJobMutation:M,useGetFgMonitoringResultQuery:j,endpoints:q,util:b}=T;export{j as a,q as b,M as c,b as f,$ as u};
