UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

27 lines 1.06 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.CatchAlls = void 0; const resource_1 = require("cloudflare/resource"); class CatchAlls extends resource_1.APIResource { /** * Enable or disable catch-all routing rule, or change action to forward to * specific destination address. */ update(zoneIdentifier, body, options) { return this._client.put(`/zones/${zoneIdentifier}/email/routing/rules/catch_all`, { body, ...options, })._thenUnwrap((obj) => obj.result); } /** * Get information on the default catch-all routing rule. */ get(zoneIdentifier, options) { return this._client.get(`/zones/${zoneIdentifier}/email/routing/rules/catch_all`, options)._thenUnwrap((obj) => obj.result); } } exports.CatchAlls = CatchAlls; (function (CatchAlls) { })(CatchAlls = exports.CatchAlls || (exports.CatchAlls = {})); //# sourceMappingURL=catch-alls.js.map