/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { incidentTypesGet } from "../funcs/incidentTypesGet.js"; import { incidentTypesList } from "../funcs/incidentTypesList.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 IncidentTypes extends ClientSDK { /** * List Incident Types V1 * * @remarks * List all incident types for an organisation. */ async list( options?: RequestOptions, ): Promise { return unwrapAsync(incidentTypesList( this, options, )); } /** * Show Incident Types V1 * * @remarks * Get a single incident type. */ async get( request: operations.IncidentTypesV1NumberShowRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentTypesGet( this, request, options, )); } }