cloudflare
Version:
The official TypeScript library for the Cloudflare API
36 lines • 1.23 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
import * as OutagesAPI from "./outages.mjs";
import { BaseOutages, Outages, } from "./outages.mjs";
export var BaseAnnotations = /* @__PURE__ */ (() => {
class BaseAnnotations extends APIResource {
/**
* Retrieves the latest annotations.
*
* @example
* ```ts
* const annotations = await client.radar.annotations.list();
* ```
*/
list(query = {}, options) {
return this._client.get('/radar/annotations', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseAnnotations._key = Object.freeze([
'radar',
'annotations',
]);
return BaseAnnotations;
})();
export var Annotations = /* @__PURE__ */ (() => {
class Annotations extends BaseAnnotations {
constructor() {
super(...arguments);
this.outages = new OutagesAPI.Outages(this._client);
}
}
Annotations.Outages = Outages;
Annotations.BaseOutages = BaseOutages;
return Annotations;
})();
//# sourceMappingURL=annotations.mjs.map