node-beget
Version:
Client library for accessing Beget API
34 lines (33 loc) • 832 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DnsEndpoint = void 0;
// /**
// * DnsEndpoint
// * @category Endpoints
// */
class DnsEndpoint {
constructor(client) {
this.client = client;
}
/**
* @private
*/
method(method, data) {
return this.client.api('dns', method, data);
}
/**
* Method returns information about domain from DNS server.
*/
getData(params) {
return this.method('getData', params);
}
/**
* // TODO: change records to overloading
* Method changes DNS records for given domain.
* @returns Returns property of successful or unsuccessful execution.
*/
changeRecords(params) {
return this.method('changeRecords', params);
}
}
exports.DnsEndpoint = DnsEndpoint;