cloudflare
Version:
The official TypeScript library for the Cloudflare API
40 lines • 1.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DNS = exports.BaseDNS = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../core/resource.js");
const pagination_1 = require("../../../core/pagination.js");
const path_1 = require("../../../internal/utils/path.js");
var BaseDNS = /* @__PURE__ */ (() => {
class BaseDNS extends resource_1.APIResource {
/**
* Returns the expected DNS records for a sending subdomain.
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const dnsRecord of client.emailSending.subdomains.dns.get(
* 'aabbccdd11223344aabbccdd11223344',
* { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* )) {
* // ...
* }
* ```
*/
get(subdomainID, params, options) {
const { zone_id } = params;
return this._client.getAPIList((0, path_1.path) `/zones/${zone_id}/email/sending/subdomains/${subdomainID}/dns`, (pagination_1.SinglePage), options);
}
}
BaseDNS._key = Object.freeze([
'emailSending',
'subdomains',
'dns',
]);
return BaseDNS;
})();
exports.BaseDNS = BaseDNS;
class DNS extends BaseDNS {
}
exports.DNS = DNS;
//# sourceMappingURL=dns.js.map