UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

30 lines • 1.16 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../core/resource.mjs"; import { path } from "../../internal/utils/path.mjs"; export var BaseActivationCheck = /* @__PURE__ */ (() => { class BaseActivationCheck extends APIResource { /** * Triggeres a new activation check for a PENDING Zone. This can be triggered every * 5 min for paygo/ent customers, every hour for FREE Zones. * * @example * ```ts * const response = await client.zones.activationCheck.trigger( * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ trigger(params, options) { const { zone_id } = params; return this._client.put(path `/zones/${zone_id}/activation_check`, options)._thenUnwrap((obj) => obj.result); } } BaseActivationCheck._key = Object.freeze([ 'zones', 'activationCheck', ]); return BaseActivationCheck; })(); export class ActivationCheck extends BaseActivationCheck { } //# sourceMappingURL=activation-check.mjs.map