import{H as t,Y as s,e0 as c}from"./app-k0jcl5PQ.js";const E={getRestrictions(r){return{key:`restrictions:${r}`,url:s.urlBuilder("{gateway}/v1/objects/restrictions",{id:r})}},addRestriction(r,e){return{type:t.POST,key:`restrictions:${r.objectTypeId}:${r.objectId}:add`,url:"{gateway}/v1/restrictions",data:[r],invalidationKeys:["restrictions",...(e==null?void 0:e.additionalKeys)??[]],dataServices:e==null?void 0:e.dataServices}},deleteRestrictions(r,e){return{url:s.urlBuilder("{gateway}/v1/restrictions",{objectId:r}),key:"restrictions:delete",type:t.DELETE,invalidationKeys:["restrictions",...(e==null?void 0:e.additionalKeys)??[]],dataServices:e==null?void 0:e.dataServices}},getRestrictedObjects(r,e){const y={type:r,"query.video":c.VIDEO_COLLECTION,"query.interactive":c.INTERACTIVE_COLLECTION,"query.clip":c.CLIP_COLLECTION};return e&&(y.cursor=e),{url:s.urlBuilder("{gateway}/v1/restrictions/objects",y),key:`restrictions:objects:${r.sort().join(",")}:${e}`}},approveAll(){return{url:"{gateway}/v1/library-reviews/restrictions",key:"restrictions:approve:all",type:t.DELETE}}};export{E as R};
//# sourceMappingURL=BpIVHcUT.chunk.js.map
