UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

34 lines • 1.13 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseConfigs = /* @__PURE__ */ (() => { class BaseConfigs extends APIResource { /** * Gets a history of published Zaraz configurations by ID(s) for a zone. * * @example * ```ts * const config = await client.zaraz.history.configs.get({ * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', * ids: [0], * }); * ``` */ get(params, options) { const { zone_id, ...query } = params; return this._client.get(path `/zones/${zone_id}/settings/zaraz/history/configs`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseConfigs._key = Object.freeze([ 'zaraz', 'history', 'configs', ]); return BaseConfigs; })(); export class Configs extends BaseConfigs { } //# sourceMappingURL=configs.mjs.map