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