node-ovh-ts
Version:
OVH API wrapper library for TypeScript
2 lines • 13.3 kB
JavaScript
var o=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(a,i)=>{for(var e in i)o(a,e,{get:i[e],enumerable:!0})},d=(a,i,e,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let t of l(i))!c.call(a,t)&&t!==e&&o(a,t,{get:()=>i[t],enumerable:!(n=s(i,t))||n.enumerable});return a};var g=a=>d(o({},"__esModule",{value:!0}),a);var D={};u(D,{EmailDomainHandler:()=>r});module.exports=g(D);var r=class{constructor(i){this.listDomain=()=>this.ovh.request("GET","/email/domain");this.getDomainDelegatedAccount=()=>this.ovh.request("GET","/email/domain/delegatedAccount");this.getDomainDelegatedAccountByEmail=i=>this.ovh.request("GET",`/email/domain/delegatedAccount/${i}`);this.updateDomainDelegatedAccountByEmail=(i,e)=>this.ovh.request("PUT",`/email/domain/delegatedAccount/${i}`,e);this.updateDomainDelegatedAccountPasswordByEmail=(i,e)=>this.ovh.request("POST",`/email/domain/delegatedAccount/${i}/changePassword`,e);this.getDomainDelegatedAccountFilterByEmail=i=>this.ovh.request("GET",`/email/domain/delegatedAccount/${i}/filter`);this.createDomainDelegatedAccountFilterByEmail=(i,e)=>this.ovh.request("POST",`/email/domain/delegatedAccount/${i}/filter`,e);this.deleteDomainDelegatedAccountFilterByEmailAndName=(i,e)=>this.ovh.request("DELETE",`/email/domain/delegatedAccount/${i}/filter/${e}`);this.getDomainDelegatedAccountFilterByEmailAndName=(i,e)=>this.ovh.request("GET",`/email/domain/delegatedAccount/${i}/filter/${e}`);this.updateDomainDelegatedAccountFilterActivityByEmailAndName=(i,e,n)=>this.ovh.request("POST",`/email/domain/delegatedAccount/${i}/filter/${e}/changeActivity`,n);this.updateDomainDelegatedAccountFilterPriorityByEmailAndName=(i,e,n)=>this.ovh.request("POST",`/email/domain/delegatedAccount/${i}/filter/${e}/changePriority`,n);this.getDomainDelegatedAccountFilterRuleByEmailAndName=(i,e)=>this.ovh.request("GET",`/email/domain/delegatedAccount/${i}/filter/${e}/rule`);this.createDomainDelegatedAccountFilterRuleByEmailAndName=(i,e,n)=>this.ovh.request("POST",`/email/domain/delegatedAccount/${i}/filter/${e}/rule`,n);this.deleteDomainDelegatedAccountFilterRuleByEmailAndNameAndId=(i,e,n)=>this.ovh.request("DELETE",`/email/domain/delegatedAccount/${i}/filter/${n}/rule/${e}`);this.getDomainDelegatedAccountFilterRuleByEmailAndNameAndId=(i,e,n)=>this.ovh.request("GET",`/email/domain/delegatedAccount/${i}/filter/${n}/rule/${e}`);this.deleteDomainDelegatedAccountResponderByEmail=i=>this.ovh.request("DELETE",`/email/domain/delegatedAccount/${i}/responder`);this.getDomainDelegatedAccountResponderByEmail=i=>this.ovh.request("GET",`/email/domain/delegatedAccount/${i}/responder`);this.createDomainDelegatedAccountResponderByEmail=(i,e)=>this.ovh.request("POST",`/email/domain/delegatedAccount/${i}/responder`,e);this.updateDomainDelegatedAccountResponderByEmail=(i,e)=>this.ovh.request("PUT",`/email/domain/delegatedAccount/${i}/responder`,e);this.updateDomainDelegatedAccountUsageByEmail=i=>this.ovh.request("POST",`/email/domain/delegatedAccount/${i}/updateUsage`);this.postDomainDelegatedAccountUsageByEmail=i=>this.ovh.request("POST",`/email/domain/delegatedAccount/${i}/usage`);this.getDomainMailingListLimits=()=>this.ovh.request("GET","/email/domain/mailingListLimits");this.getDomainByDomain=i=>this.ovh.request("GET",`/email/domain/${i}`);this.getDomainAccountByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/account`);this.createDomainAccountByDomain=(i,e)=>this.ovh.request("POST",`/email/domain/${i}/account`,e);this.deleteDomainAccountByDomainAndAccountName=(i,e)=>this.ovh.request("DELETE",`/email/domain/${e}/account/${i}`);this.getDomainAccountByDomainAndAccountName=(i,e)=>this.ovh.request("GET",`/email/domain/${e}/account/${i}`);this.updateDomainAccountByDomainAndAccountName=(i,e,n)=>this.ovh.request("PUT",`/email/domain/${e}/account/${i}`,n);this.updateDomainAccountPasswordByDomainAndAccountName=(i,e,n)=>this.ovh.request("POST",`/email/domain/${e}/account/${i}/changePassword`,n);this.getDomainAccountDelegationByDomainAndAccountName=(i,e)=>this.ovh.request("GET",`/email/domain/${e}/account/${i}/delegation`);this.createDomainAccountDelegationByDomainAndAccountName=(i,e,n)=>this.ovh.request("POST",`/email/domain/${e}/account/${i}/delegation`,n);this.deleteDomainAccountDelegationByDomainAndAccountNameAndAccountId=(i,e,n)=>this.ovh.request("DELETE",`/email/domain/${n}/account/${e}/delegation/${i}`);this.getDomainAccountDelegationByDomainAndAccountNameAndAccountId=(i,e,n)=>this.ovh.request("GET",`/email/domain/${n}/account/${e}/delegation/${i}`);this.getDomainAccountFilterByDomainAndAccountName=(i,e)=>this.ovh.request("GET",`/email/domain/${e}/account/${i}/filter`);this.createDomainAccountFilterByDomainAndAccountName=(i,e,n)=>this.ovh.request("POST",`/email/domain/${e}/account/${i}/filter`,n);this.deleteDomainAccountFilterByDomainAndAccountNameAndName=(i,e,n)=>this.ovh.request("DELETE",`/email/domain/${e}/account/${i}/filter/${n}`);this.getDomainAccountFilterByDomainAndAccountNameAndName=(i,e,n)=>this.ovh.request("GET",`/email/domain/${e}/account/${i}/filter/${n}`);this.updateDomainAccountFilterActivityByDomainAndAccountNameAndName=(i,e,n,t)=>this.ovh.request("POST",`/email/domain/${e}/account/${i}/filter/${n}/changeActivity`,t);this.updateDomainAccountFilterPriorityByDomainAndAccountNameAndName=(i,e,n,t)=>this.ovh.request("POST",`/email/domain/${e}/account/${i}/filter/${n}/changePriority`,t);this.getDomainAccountFilterRuleByDomainAndAccountNameAndName=(i,e,n)=>this.ovh.request("GET",`/email/domain/${e}/account/${i}/filter/${n}/rule`);this.createDomainAccountFilterRuleByDomainAndAccountNameAndName=(i,e,n,t)=>this.ovh.request("POST",`/email/domain/${e}/account/${i}/filter/${n}/rule`,t);this.deleteDomainAccountFilterRuleByDomainAndAccountNameAndNameAndId=(i,e,n,t)=>this.ovh.request("DELETE",`/email/domain/${e}/account/${i}/filter/${t}/rule/${n}`);this.getDomainAccountFilterRuleByDomainAndAccountNameAndNameAndId=(i,e,n,t)=>this.ovh.request("GET",`/email/domain/${e}/account/${i}/filter/${t}/rule/${n}`);this.getDomainAccountMigrateByDomainAndAccountName=(i,e)=>this.ovh.request("GET",`/email/domain/${e}/account/${i}/migrate`);this.getDomainAccountMigrateByDomainAndAccountNameAndDestinationServiceName=(i,e,n)=>this.ovh.request("GET",`/email/domain/${n}/account/${i}/migrate/${e}`);this.listDomainAccountMigrateDestinationEmailAddressByDomainAndAccountNameAndDestinationServiceName=(i,e,n)=>this.ovh.request("GET",`/email/domain/${n}/account/${i}/migrate/${e}/destinationEmailAddress`);this.getDomainAccountMigrateDestinationEmailAddressByDomainAndAccountNameAndDestinationServiceNameAndDestinationEmailAddress=(i,e,n,t)=>this.ovh.request("GET",`/email/domain/${t}/account/${i}/migrate/${n}/destinationEmailAddress/${e}`);this.checkDomainAccountMigrateDestinationEmailAddressMigrateByDomainAndAccountNameAndDestinationServiceNameAndDestinationEmailAddress=(i,e,n,t)=>this.ovh.request("GET",`/email/domain/${t}/account/${i}/migrate/${n}/destinationEmailAddress/${e}/checkMigrate`);this.postDomainAccountMigrateDestinationEmailAddressMigrateByDomainAndAccountNameAndDestinationServiceNameAndDestinationEmailAddress=(i,e,n,t,m)=>this.ovh.request("POST",`/email/domain/${t}/account/${i}/migrate/${n}/destinationEmailAddress/${e}/migrate`,m);this.updateDomainAccountUsageByDomainAndAccountName=(i,e)=>this.ovh.request("POST",`/email/domain/${e}/account/${i}/updateUsage`);this.getDomainAccountUsageByDomainAndAccountName=(i,e)=>this.ovh.request("GET",`/email/domain/${e}/account/${i}/usage`);this.getDomainAclByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/acl`);this.createDomainAclByDomain=(i,e)=>this.ovh.request("POST",`/email/domain/${i}/acl`,e);this.deleteDomainAclByDomainAndAccountId=(i,e)=>this.ovh.request("DELETE",`/email/domain/${e}/acl/${i}`);this.getDomainAclByDomainAndAccountId=(i,e)=>this.ovh.request("GET",`/email/domain/${e}/acl/${i}`);this.launchDomainChangeContactByDomain=(i,e)=>this.ovh.request("POST",`/email/domain/${i}/changeContact`,e);this.updateDomainDnsMXFilterByDomain=(i,e)=>this.ovh.request("POST",`/email/domain/${i}/changeDnsMXFilter`,e);this.confirmDomainTerminationByDomain=(i,e)=>this.ovh.request("POST",`/email/domain/${i}/confirmTermination`,e);this.getDomainDnsMXFilterByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/dnsMXFilter`);this.getDomainDnsMXRecordsByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/dnsMXRecords`);this.getDomainMailingListByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/mailingList`);this.createDomainMailingListByDomain=(i,e)=>this.ovh.request("POST",`/email/domain/${i}/mailingList`,e);this.deleteDomainMailingListByDomainAndName=(i,e)=>this.ovh.request("DELETE",`/email/domain/${i}/mailingList/${e}`);this.getDomainMailingListByDomainAndName=(i,e)=>this.ovh.request("GET",`/email/domain/${i}/mailingList/${e}`);this.updateDomainMailingListByDomainAndName=(i,e,n)=>this.ovh.request("PUT",`/email/domain/${i}/mailingList/${e}`,n);this.updateDomainMailingListOptionsByDomainAndName=(i,e,n)=>this.ovh.request("POST",`/email/domain/${i}/mailingList/${e}/changeOptions`,n);this.listDomainMailingModeratorByDomainAndName=(i,e)=>this.ovh.request("GET",`/email/domain/${i}/mailingList/${e}/moderator`);this.addDomainMailingListModeratorByDomainAndName=(i,e,n)=>this.ovh.request("POST",`/email/domain/${i}/mailingList/${e}/moderator`,n);this.deleteDomainMailingListModeratorByDomainAndNameAndEmail=(i,e,n)=>this.ovh.request("DELETE",`/email/domain/${i}/mailingList/${n}/moderator/${e}`);this.getDomainMailingListModeratorByDomainAndNameAndEmail=(i,e,n)=>this.ovh.request("GET",`/email/domain/${i}/mailingList/${n}/moderator/${e}`);this.sendDomainMailingListListByEmailByDomainAndName=(i,e,n)=>this.ovh.request("POST",`/email/domain/${i}/mailingList/${e}/sendListByEmail`,n);this.listDomainMailingSubscriberByDomainAndName=(i,e)=>this.ovh.request("GET",`/email/domain/${i}/mailingList/${e}/subscriber`);this.addDomainMailingListSubscriberByDomainAndName=(i,e,n)=>this.ovh.request("POST",`/email/domain/${i}/mailingList/${e}/subscriber`,n);this.deleteDomainMailingListSubscriberByDomainAndNameAndEmail=(i,e,n)=>this.ovh.request("DELETE",`/email/domain/${i}/mailingList/${n}/subscriber/${e}`);this.getDomainMailingListSubscriberByDomainAndNameAndEmail=(i,e,n)=>this.ovh.request("GET",`/email/domain/${i}/mailingList/${n}/subscriber/${e}`);this.createDomainMigrateDelegationV3toV6ByDomain=i=>this.ovh.request("POST",`/email/domain/${i}/migrateDelegationV3toV6`);this.listDomainQuotaByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/quota`);this.getDomainRecommendedDNSRecordsByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/recommendedDNSRecords`);this.getDomainRedirectionByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/redirection`);this.createDomainRedirectionByDomain=(i,e)=>this.ovh.request("POST",`/email/domain/${i}/redirection`,e);this.deleteDomainRedirectionByDomainAndId=(i,e)=>this.ovh.request("DELETE",`/email/domain/${i}/redirection/${e}`);this.getDomainRedirectionByDomainAndId=(i,e)=>this.ovh.request("GET",`/email/domain/${i}/redirection/${e}`);this.updateDomainRedirectionRedirectionByDomainAndId=(i,e,n)=>this.ovh.request("POST",`/email/domain/${i}/redirection/${e}/changeRedirection`,n);this.getDomainResponderByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/responder`);this.createDomainResponderByDomain=(i,e)=>this.ovh.request("POST",`/email/domain/${i}/responder`,e);this.deleteDomainResponderByDomainAndAccount=(i,e)=>this.ovh.request("DELETE",`/email/domain/${e}/responder/${i}`);this.getDomainResponderByDomainAndAccount=(i,e)=>this.ovh.request("GET",`/email/domain/${e}/responder/${i}`);this.updateDomainResponderByDomainAndAccount=(i,e,n)=>this.ovh.request("PUT",`/email/domain/${e}/responder/${i}`,n);this.getDomainServiceInfosByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/serviceInfos`);this.updateDomainServiceInfosByDomain=(i,e)=>this.ovh.request("PUT",`/email/domain/${i}/serviceInfos`,e);this.getDomainSummaryByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/summary`);this.getDomainTaskAccountByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/task/account`);this.getDomainTaskAccountByDomainAndId=(i,e)=>this.ovh.request("GET",`/email/domain/${i}/task/account/${e}`);this.getDomainTaskFilterByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/task/filter`);this.getDomainTaskFilterByDomainAndId=(i,e)=>this.ovh.request("GET",`/email/domain/${i}/task/filter/${e}`);this.getDomainTaskMailinglistByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/task/mailinglist`);this.getDomainTaskMailinglistByDomainAndId=(i,e)=>this.ovh.request("GET",`/email/domain/${i}/task/mailinglist/${e}`);this.getDomainTaskRedirectionByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/task/redirection`);this.getDomainTaskRedirectionByDomainAndId=(i,e)=>this.ovh.request("GET",`/email/domain/${i}/task/redirection/${e}`);this.getDomainTaskResponderByDomain=i=>this.ovh.request("GET",`/email/domain/${i}/task/responder`);this.getDomainTaskResponderByDomainAndId=(i,e)=>this.ovh.request("GET",`/email/domain/${i}/task/responder/${e}`);this.postDomainTerminateByDomain=i=>this.ovh.request("POST",`/email/domain/${i}/terminate`);this.ovh=i}};0&&(module.exports={EmailDomainHandler});
//# sourceMappingURL=EmailDomain.js.map