UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

22 lines 903 B
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.Logs = void 0; const resource_1 = require("../../../resource.js"); const core_1 = require("../../../core.js"); class Logs extends resource_1.APIResource { list(query = {}, options) { if ((0, core_1.isRequestOptions)(query)) { return this.list({}, query); } return this._client.get('/radar/ct/logs', { query, ...options })._thenUnwrap((obj) => obj.result); } get(logSlug, query = {}, options) { if ((0, core_1.isRequestOptions)(query)) { return this.get(logSlug, {}, query); } return this._client.get(`/radar/ct/logs/${logSlug}`, { query, ...options })._thenUnwrap((obj) => obj.result); } } exports.Logs = Logs; //# sourceMappingURL=logs.js.map