import{H as o,dV as c,Y as a}from"./app-k0jcl5PQ.js";const n={resource(e){return{url:`{gateway}/v1/objects/${e}`,key:`resources:${e}`}},videoResources(e){return{url:`{gateway}/v1/objects/${e}/resources?query=customer`,key:`videos:${e}:resources`}},videoResourcesAndLinks(e,r){const s="(resources[thumbnail,pdf]|links)";return{url:a.urlBuilder(`{gateway}/v1/objects/${e}/members`,{query:s,cursor:r}),publicUrl:a.urlBuilder(`/api/objects/${e}/members`,{query:s,cursor:r}),key:`videos:${e}:resources:links${r}`}},addResource(e,r,s,t,u){return{url:`{gateway}/v1/objects/${e}/resources`,key:`create:resource:${r.fileId||c.getRandomInt()}`,data:r,type:o.POST,invalidationKeys:[`videos:${e}:resources`,`videos:${e}`],success:s,error:t,always:u}},updateResource(e,r,s,t,u){return{url:`{gateway}/v1/objects/${e}`,key:`update:resource:${e}`,data:r,type:o.PUT,success:s,error:t,always:u}},deleteResource(e,r,s,t,u){return{url:`{gateway}/v1/objects/${e}`,key:`delete:resource:${e}`,type:o.DELETE,invalidationKeys:[`videos:${r}:resources`,`videos:${r}`],success:s,error:t,always:u}}};export{n as R};
//# sourceMappingURL=DDerB2uY.chunk.js.map
