UNPKG

node-ovh-ts

Version:

OVH API wrapper library for TypeScript

2 lines 1.05 kB
var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var a=(r,e)=>{for(var o in e)s(r,o,{get:e[o],enumerable:!0})},c=(r,e,o,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of n(e))!v.call(r,i)&&i!==o&&s(r,i,{get:()=>e[i],enumerable:!(m=l(e,i))||m.enumerable});return r};var D=r=>c(s({},"__esModule",{value:!0}),r);var h={};a(h,{AllDomHandler:()=>t});module.exports=D(h);var t=class{constructor(e){this.list=()=>this.ovh.request("GET","/allDom");this.getByServiceName=e=>this.ovh.request("GET",`/allDom/${e}`);this.getDomainByServiceName=e=>this.ovh.request("GET",`/allDom/${e}/domain`);this.getDomainByServiceNameAndDomain=(e,o)=>this.ovh.request("GET",`/allDom/${o}/domain/${e}`);this.getServiceInfosByServiceName=e=>this.ovh.request("GET",`/allDom/${e}/serviceInfos`);this.updateServiceInfosByServiceName=(e,o)=>this.ovh.request("PUT",`/allDom/${e}/serviceInfos`,o);this.ovh=e}};0&&(module.exports={AllDomHandler}); //# sourceMappingURL=AllDom.js.map