node-ovh-ts
Version:
OVH API wrapper library for TypeScript
2 lines • 1.17 kB
JavaScript
var t=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var m=(r,e)=>{for(var i in e)t(r,i,{get:e[i],enumerable:!0})},S=(r,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of c(e))!u.call(r,s)&&s!==i&&t(r,s,{get:()=>e[s],enumerable:!(n=v(e,s))||n.enumerable});return r};var h=r=>S(t({},"__esModule",{value:!0}),r);var d={};m(d,{ServiceHandler:()=>o});module.exports=h(d);var o=class{constructor(e){this.list=()=>this.ovh.request("GET","/service");this.getByServiceId=e=>this.ovh.request("GET",`/service/${e}`);this.updateByServiceId=(e,i)=>this.ovh.request("PUT",`/service/${e}`,i);this.listRenewByServiceId=e=>this.ovh.request("GET",`/service/${e}/renew`);this.createRenewByServiceId=(e,i)=>this.ovh.request("POST",`/service/${e}/renew`,i);this.postReopenByServiceId=e=>this.ovh.request("POST",`/service/${e}/reopen`);this.postSuspendByServiceId=e=>this.ovh.request("POST",`/service/${e}/suspend`);this.postTerminateByServiceId=e=>this.ovh.request("POST",`/service/${e}/terminate`);this.ovh=e}};0&&(module.exports={ServiceHandler});
//# sourceMappingURL=Service.js.map