import{a7 as u,ce as i}from"./index-dNe6i2rS.js";const n=u.injectEndpoints({endpoints:o=>({getLastCommit:o.query({query:({pId:e,fsId:r,fgId:s})=>{const t=i.stringify({offset:0,limit:1,sort_by:"committed_on:desc"});return{url:`/project/${e}/featurestores/${r}/featuregroups/${s}/commits?${t}`}},transformResponse:e=>e!=null&&e.items?e==null?void 0:e.items[0]:void 0,extraOptions:{skipError:!0}}),getFGCommits:o.query({query:({pId:e,fsId:r,fgId:s,limit:t})=>{const m=i.stringify({offset:0,limit:t,sort_by:"committed_on:desc"});return{url:`/project/${e}/featurestores/${r}/featuregroups/${s}/commits?${m}`}},transformResponse:e=>e==null?void 0:e.items,extraOptions:{skipError:!0}})})}),{useGetLastCommitQuery:c,useGetFGCommitsQuery:y}=n;export{y as a,c as u};
