UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

40 lines • 1.76 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Destinations = exports.BaseDestinations = void 0; const tslib_1 = require("../../../internal/tslib.js"); // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../../core/resource.js"); const EligibleAPI = tslib_1.__importStar(require("./eligible.js")); const eligible_1 = require("./eligible.js"); const PagerdutyAPI = tslib_1.__importStar(require("./pagerduty.js")); const pagerduty_1 = require("./pagerduty.js"); const WebhooksAPI = tslib_1.__importStar(require("./webhooks.js")); const webhooks_1 = require("./webhooks.js"); var BaseDestinations = /* @__PURE__ */ (() => { class BaseDestinations extends resource_1.APIResource { } BaseDestinations._key = Object.freeze([ 'alerting', 'destinations', ]); return BaseDestinations; })(); exports.BaseDestinations = BaseDestinations; var Destinations = /* @__PURE__ */ (() => { class Destinations extends BaseDestinations { constructor() { super(...arguments); this.eligible = new EligibleAPI.Eligible(this._client); this.pagerduty = new PagerdutyAPI.PagerdutyResource(this._client); this.webhooks = new WebhooksAPI.Webhooks(this._client); } } Destinations.Eligible = eligible_1.Eligible; Destinations.BaseEligible = eligible_1.BaseEligible; Destinations.PagerdutyResource = pagerduty_1.PagerdutyResource; Destinations.BasePagerdutyResource = pagerduty_1.BasePagerdutyResource; Destinations.BaseWebhooks = webhooks_1.BaseWebhooks; return Destinations; })(); exports.Destinations = Destinations; //# sourceMappingURL=destinations.js.map