UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

41 lines • 1.71 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Transformations = exports.BaseTransformations = 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 BaseTransformations = /* @__PURE__ */ (() => { class BaseTransformations extends resource_1.APIResource { /** * Returns a list of Image Resizing configurations across all zones for the * account. This endpoint is useful for retrieving the transformations * (image_resizing) state for all zones belonging to an account. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const transformationsConfig of client.accounts.speedSettings.transformations.get( * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } * ``` */ get(params, options) { const { account_id } = params; return this._client.getAPIList((0, path_1.path) `/accounts/${account_id}/settings/transformations`, (pagination_1.SinglePage), options); } } BaseTransformations._key = Object.freeze([ 'accounts', 'speedSettings', 'transformations', ]); return BaseTransformations; })(); exports.BaseTransformations = BaseTransformations; class Transformations extends BaseTransformations { } exports.Transformations = Transformations; //# sourceMappingURL=transformations.js.map