UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

31 lines • 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Tenants = exports.BaseTenants = 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"); var BaseTenants = /* @__PURE__ */ (() => { class BaseTenants extends resource_1.APIResource { /** * Retrieves list of tenants the authenticated user / method has access to. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const organization of client.user.tenants.list()) { * // ... * } * ``` */ list(options) { return this._client.getAPIList('/user/tenants', (pagination_1.SinglePage), options); } } BaseTenants._key = Object.freeze(['user', 'tenants']); return BaseTenants; })(); exports.BaseTenants = BaseTenants; class Tenants extends BaseTenants { } exports.Tenants = Tenants; //# sourceMappingURL=tenants.js.map