UNPKG

dnsimple

Version:

A Node.JS client for the DNSimple API.

29 lines (28 loc) 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DomainsResearch = void 0; class DomainsResearch { constructor(_client) { this._client = _client; /** * Research a domain name for availability and registration status information. * * This endpoint provides information about a domain's availability status, including whether it's available for registration, already registered, or has other restrictions that prevent registration. * * Note: This endpoint is part of a Private Beta. During the beta period, changes to the endpoint may occur at any time. If interested in using this endpoint, reach out to support@dnsimple.com. * * GET /{account}/domains/research/status * * @see https://developer.dnsimple.com/v2/domains/research/#getDomainsResearchStatus * * @param account The account id * @param domain The domain name to research * @param params Query parameters */ this.getDomainResearchStatus = (() => { const method = (account, domain, params = {}) => this._client.request("GET", `/${account}/domains/research/status`, null, Object.assign(Object.assign({}, params), { domain })); return method; })(); } } exports.DomainsResearch = DomainsResearch;