import{v as f,dX as p}from"./index-d6499a22.js";const c=f.injectEndpoints({endpoints:n=>({disableOrEnsableMonitoringConfig:n.mutation({query:({pId:e,fgId:r,fsId:t,featureName:o})=>({url:`
          project/${e}/
          featurestores/${t}/
          featuregroups/${r}/
          featuremonitoring/config/feature/${o}
        `.replace(/\s/g,""),method:"PUT"})}),getFgMonitoringConfig:n.query({query:({pId:e,fsId:r,fgId:t,featureName:o})=>({url:`
          project/${e}/
          featurestores/${r}/
          featuregroups/${t}/
          featuremonitoring/config/feature/${o}
        `.replace(/\s/g,"")})}),pauseOrResumeFgMonitoring:n.mutation({query:({pId:e,fsId:r,fgId:t,configId:o,enable:i})=>({url:`
          project/${e}/
          featurestores/${r}/
          featuregroups/${t}/
          featuremonitoring/config/${o}/
          enabled/${i?"resume":"pause"}
        `.replace(/\s/g,""),method:"PUT"})}),triggerMonitoringJob:n.mutation({query:({pId:e,fsId:r,fgId:t,configId:o})=>({url:`
          project/${e}/
          featurestores/${r}/
          featuregroups/${t}/
          featuremonitoring/config/${o}/
          trigger
        `.replace(/\s/g,""),method:"POST"})}),getFgMonitoringResult:n.query({query:({pId:e,fsId:r,fgId:t,configId:o,query:i})=>({url:p.stringifyUrl({url:`
           project/${e}/
           featurestores/${r}/
           featuregroups/${t}/
           featuremonitoring/result/byconfig/${o}
        `.replace(/\s/g,""),query:i})})}),createFGMonitoringConfig:n.mutation({async queryFn({pId:e,fgId:r,fsId:t,data:o},i,$,a){var s;try{const u=await a({url:`
              project/${e}/
              featurestores/${t}/
              featuregroups/${r}/
              featuremonitoring/config/setup/${o.name}
            `.replace(/\s/g,""),method:"POST"}),g={...o,jobId:(s=u.data)==null?void 0:s.id};return{data:await a({url:`
              project/${e}/
              featurestores/${t}/
              featuregroups/${r}/
              featuremonitoring/config
            `.replace(/\s/g,""),method:"POST",data:g})}}catch(u){return{error:u}}}})})}),{useDisableOrEnsableMonitoringConfigMutation:M,useGetFgMonitoringConfigQuery:y,useCreateFGMonitoringConfigMutation:d,usePauseOrResumeFgMonitoringMutation:j,useTriggerMonitoringJobMutation:q,useGetFgMonitoringResultQuery:C,endpoints:F}=c;export{y as a,j as b,q as c,F as f,C as u};
