UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

34 lines • 1.19 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 BaseAppTypes = /* @__PURE__ */ (() => { class BaseAppTypes extends APIResource { /** * List all application and application type mappings. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const appType of client.zeroTrust.gateway.appTypes.list( * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } * ``` */ list(params, options) { const { account_id } = params; return this._client.getAPIList(path `/accounts/${account_id}/gateway/app_types`, (SinglePage), options); } } BaseAppTypes._key = Object.freeze([ 'zeroTrust', 'gateway', 'appTypes', ]); return BaseAppTypes; })(); export class AppTypes extends BaseAppTypes { } //# sourceMappingURL=app-types.mjs.map