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