UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

35 lines • 1.24 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { SinglePage } from "../../../core/pagination.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseDNS = /* @__PURE__ */ (() => { class BaseDNS extends 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(path `/zones/${zone_id}/email/sending/subdomains/${subdomainID}/dns`, (SinglePage), options); } } BaseDNS._key = Object.freeze([ 'emailSending', 'subdomains', 'dns', ]); return BaseDNS; })(); export class DNS extends BaseDNS { } //# sourceMappingURL=dns.mjs.map