cloudflare
Version:
The official TypeScript library for the Cloudflare API
59 lines • 2.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InternetServices = exports.BaseInternetServices = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../core/resource.js");
var BaseInternetServices = /* @__PURE__ */ (() => {
class BaseInternetServices extends resource_1.APIResource {
/**
* Retrieves the list of Internet services categories.
*
* @example
* ```ts
* const response =
* await client.radar.ranking.internetServices.categories();
* ```
*/
categories(query = {}, options) {
return this._client.get('/radar/ranking/internet_services/categories', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves Internet Services rank update changes over time.
*
* @example
* ```ts
* const response =
* await client.radar.ranking.internetServices.timeseriesGroups();
* ```
*/
timeseriesGroups(query = {}, options) {
return this._client.get('/radar/ranking/internet_services/timeseries_groups', {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves top Internet services based on their rank.
*
* @example
* ```ts
* const response =
* await client.radar.ranking.internetServices.top();
* ```
*/
top(query = {}, options) {
return this._client.get('/radar/ranking/internet_services/top', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseInternetServices._key = Object.freeze([
'radar',
'ranking',
'internetServices',
]);
return BaseInternetServices;
})();
exports.BaseInternetServices = BaseInternetServices;
class InternetServices extends BaseInternetServices {
}
exports.InternetServices = InternetServices;
//# sourceMappingURL=internet-services.js.map