UNPKG

node-ovh-ts

Version:

OVH API wrapper library for TypeScript

2 lines 2.4 kB
var t=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var f=(i,e)=>{for(var r in e)t(i,r,{get:e[r],enumerable:!0})},h=(i,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of m(e))!c.call(i,o)&&o!==r&&t(i,o,{get:()=>e[o],enumerable:!(a=n(e,o))||a.enumerable});return i};var v=i=>h(t({},"__esModule",{value:!0}),i);var u={};f(u,{FreefaxHandler:()=>s});module.exports=v(u);var s=class{constructor(e){this.list=()=>this.ovh.request("GET","/freefax");this.getCredits=()=>this.ovh.request("GET","/freefax/credits");this.getByServiceName=e=>this.ovh.request("GET",`/freefax/${e}`);this.updateByServiceName=(e,r)=>this.ovh.request("PUT",`/freefax/${e}`,r);this.postChangePasswordByServiceName=e=>this.ovh.request("POST",`/freefax/${e}/changePassword`);this.getDirectoryByServiceName=e=>this.ovh.request("GET",`/freefax/${e}/directory`);this.updateDirectoryByServiceName=(e,r)=>this.ovh.request("PUT",`/freefax/${e}/directory`,r);this.postDirectoryFetchEntrepriseInformationsByServiceName=(e,r)=>this.ovh.request("POST",`/freefax/${e}/directory/fetchEntrepriseInformations`,r);this.getDirectoryGetDirectoryServiceCodeByServiceName=e=>this.ovh.request("GET",`/freefax/${e}/directory/getDirectoryServiceCode`);this.getDirectoryGetWayTypesByServiceName=e=>this.ovh.request("GET",`/freefax/${e}/directory/getWayTypes`);this.getMainServiceByServiceName=e=>this.ovh.request("GET",`/freefax/${e}/mainService`);this.getServiceInfosByServiceName=e=>this.ovh.request("GET",`/freefax/${e}/serviceInfos`);this.updateServiceInfosByServiceName=(e,r)=>this.ovh.request("PUT",`/freefax/${e}/serviceInfos`,r);this.getVoicemailByServiceName=e=>this.ovh.request("GET",`/freefax/${e}/voicemail`);this.updateVoicemailByServiceName=(e,r)=>this.ovh.request("PUT",`/freefax/${e}/voicemail`,r);this.updateVoicemailPasswordByServiceName=(e,r)=>this.ovh.request("POST",`/freefax/${e}/voicemail/changePassword`,r);this.disableVoicemailChangeRoutingByServiceName=(e,r)=>this.ovh.request("POST",`/freefax/${e}/voicemail/changeRouting`,r);this.getVoicemailRoutingByServiceName=e=>this.ovh.request("GET",`/freefax/${e}/voicemail/routing`);this.getVoicemailVoicemailNumbersByServiceName=e=>this.ovh.request("GET",`/freefax/${e}/voicemail/voicemailNumbers`);this.ovh=e}};0&&(module.exports={FreefaxHandler}); //# sourceMappingURL=Freefax.js.map