/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { webinarsDeleteWebinarsId } from "../funcs/webinarsDeleteWebinarsId.js"; import { webinarsGetWebinars } from "../funcs/webinarsGetWebinars.js"; import { webinarsGetWebinarsId } from "../funcs/webinarsGetWebinarsId.js"; import { webinarsPostWebinars } from "../funcs/webinarsPostWebinars.js"; import { webinarsPutWebinarsId } from "../funcs/webinarsPutWebinarsId.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Webinars extends ClientSDK { /** * List Webinars * * @remarks * Lists webinars belonging to the account. This endpoint can also be used to * do a batch fetch based off of the hashed id. * * ## Requires api token with one of the following permissions * ``` * Read all data * ``` */ async getWebinars( request?: operations.GetWebinarsRequest | undefined, options?: RequestOptions, ): Promise> { return unwrapAsync(webinarsGetWebinars( this, request, options, )); } /** * Create Webinar * * @remarks * Creates a new webinar. * * ## Requires api token with one of the following permissions * ``` * Read, update & delete anything * ``` */ async postWebinars( request: operations.PostWebinarsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(webinarsPostWebinars( this, request, options, )); } /** * Show Webinar * * @remarks * Returns the webinar associated with the hashed id. * * ## Requires api token with one of the following permissions * ``` * Read all data * ``` */ async getWebinarsId( request: operations.GetWebinarsIdRequest, options?: RequestOptions, ): Promise { return unwrapAsync(webinarsGetWebinarsId( this, request, options, )); } /** * Update Webinar * * @remarks * Updates an existing webinar. * * ## Requires api token with one of the following permissions * ``` * Read, update & delete anything * ``` */ async putWebinarsId( request: operations.PutWebinarsIdRequest, options?: RequestOptions, ): Promise { return unwrapAsync(webinarsPutWebinarsId( this, request, options, )); } /** * Delete Webinar * * @remarks * Deletes an existing webinar. * * ## Requires api token with one of the following permissions * ``` * Read, update & delete anything * ``` */ async deleteWebinarsId( request: operations.DeleteWebinarsIdRequest, options?: RequestOptions, ): Promise { return unwrapAsync(webinarsDeleteWebinarsId( this, request, options, )); } }