UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

19 lines 798 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; import * as AppTypesAPI from 'cloudflare/resources/zero-trust/gateway/app-types'; import { SinglePage } from 'cloudflare/pagination'; export class AppTypes extends APIResource { /** * Fetches all application and application type mappings. */ list(params, options) { const { account_id } = params; return this._client.getAPIList(`/accounts/${account_id}/gateway/app_types`, AppTypesSinglePage, options); } } export class AppTypesSinglePage extends SinglePage { } (function (AppTypes) { AppTypes.AppTypesSinglePage = AppTypesAPI.AppTypesSinglePage; })(AppTypes || (AppTypes = {})); //# sourceMappingURL=app-types.mjs.map