cloudflare
Version:
The official TypeScript library for the Cloudflare API
44 lines • 1.57 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../core/resource.mjs";
import * as UniqueDevicesAPI from "./unique-devices.mjs";
import { BaseUniqueDevices } from "./unique-devices.mjs";
import { V4PagePagination } from "../../../../core/pagination.mjs";
import { path } from "../../../../internal/utils/path.mjs";
export var BaseTests = /* @__PURE__ */ (() => {
class BaseTests extends APIResource {
/**
* List DEX tests with overview metrics.
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const tests of client.zeroTrust.dex.tests.list({
* account_id: '01a7362d577a6c3019a474fd6f485823',
* })) {
* // ...
* }
* ```
*/
list(params, options) {
const { account_id, ...query } = params;
return this._client.getAPIList(path `/accounts/${account_id}/dex/tests/overview`, (V4PagePagination), { query, ...options });
}
}
BaseTests._key = Object.freeze([
'zeroTrust',
'dex',
'tests',
]);
return BaseTests;
})();
export var Tests = /* @__PURE__ */ (() => {
class Tests extends BaseTests {
constructor() {
super(...arguments);
this.uniqueDevices = new UniqueDevicesAPI.UniqueDevices(this._client);
}
}
Tests.BaseUniqueDevices = BaseUniqueDevices;
return Tests;
})();
//# sourceMappingURL=tests.mjs.map