import{H as l}from"./app-k0jcl5PQ.js";const i={getConsumers(){return{url:"{gateway}/v1/lti/consumers",key:"lti:consumers",normalize:!1}},getPlatforms(){return{url:"{gateway}/v1/lti/platforms",key:"lti:platforms",formatData:e=>e.map(t=>(t.publicJwk=JSON.stringify(t.publicJwk),t)),normalize:!1}},getConsumer(e){return{url:`{gateway}/v1/lti/consumers/${e}`,key:`lti:consumer:${e}`,normalize:!1}},getPlatform(e){return{url:`{gateway}/v1/lti/platforms/${e}`,key:`lti:platform:${e}`,formatData:t=>(t.publicJwk=JSON.stringify(t.publicJwk),t),normalize:!1}},createConsumer(e,t,r){return{url:"{gateway}/v1/lti/consumers",key:"create:consumer",type:l.POST,invalidationKeys:["lti:consumers"],data:e,success:t,error:r}},createPlatform(e,t,r){return{url:"{gateway}/v1/lti/platforms",key:"create:platform",type:l.POST,invalidationKeys:["lti:platforms"],data:e,success:t,error:r}},updateConsumer(e,t,r){return{url:`{gateway}/v1/lti/consumers/${e.key}`,key:"update:consumer",type:l.PUT,invalidationKeys:["lti:consumers",`lti:consumer:${e.key}`],data:e,success:t,error:r}},updatePlatform(e,t,r){return{url:`{gateway}/v1/lti/platforms/${e.id}`,key:"update:platform",type:l.PUT,invalidationKeys:["lti:platforms",`lti:platform:${e.id}`],data:e,success:t,error:r}},deleteConsumer(e,t,r){return{url:`{gateway}/v1/lti/consumers/${e}`,key:"delete:consumer",type:l.DELETE,invalidationKeys:"lti:consumers",success:t,error:r}},deletePlatform(e,t,r){return{url:`{gateway}/v1/lti/platforms/${e}`,key:"delete:platform",type:l.DELETE,invalidationKeys:"lti:platforms",success:t,error:r}}};export{i as L};
//# sourceMappingURL=uC6ielRn.chunk.js.map
