UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

40 lines • 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Details = exports.BaseDetails = void 0; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../../core/resource.js"); const path_1 = require("../../../internal/utils/path.js"); var BaseDetails = /* @__PURE__ */ (() => { class BaseDetails extends resource_1.APIResource { /** * Previews an event's configuration as if it was active. Inherited fields from the * waiting room will be displayed with their current values. * * @example * ```ts * const detail = await client.waitingRooms.events.details.get( * '25756b2dfe6e378a06b033b670413757', * { * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', * waiting_room_id: '699d98642c564d2e855e9661899b7252', * }, * ); * ``` */ get(eventID, params, options) { const { zone_id, waiting_room_id } = params; return this._client.get((0, path_1.path) `/zones/${zone_id}/waiting_rooms/${waiting_room_id}/events/${eventID}/details`, options)._thenUnwrap((obj) => obj.result); } } BaseDetails._key = Object.freeze([ 'waitingRooms', 'events', 'details', ]); return BaseDetails; })(); exports.BaseDetails = BaseDetails; class Details extends BaseDetails { } exports.Details = Details; //# sourceMappingURL=details.js.map