/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { incidentsV1Create } from "../funcs/incidentsV1Create.js"; import { incidentsV1Get } from "../funcs/incidentsV1Get.js"; import { incidentsV1List } from "../funcs/incidentsV1List.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class IncidentsV1 extends ClientSDK { /** * List Incidents V1 * * @remarks * List all incidents for an organisation. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async list( request: operations.IncidentsV1NumberListRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentsV1List( this, request, options, )); } /** * Create Incidents V1 * * @remarks * Create a new incident. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async create( request: components.CreateRequestBody10, options?: RequestOptions, ): Promise { return unwrapAsync(incidentsV1Create( this, request, options, )); } /** * Show Incidents V1 * * @remarks * Get a single incident. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async get( request: operations.IncidentsV1NumberShowRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentsV1Get( this, request, options, )); } }