/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { incidentStatusesCreate } from "../funcs/incidentStatusesCreate.js"; import { incidentStatusesDelete } from "../funcs/incidentStatusesDelete.js"; import { incidentStatusesGet } from "../funcs/incidentStatusesGet.js"; import { incidentStatusesList } from "../funcs/incidentStatusesList.js"; import { incidentStatusesUpdate } from "../funcs/incidentStatusesUpdate.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 IncidentStatuses extends ClientSDK { /** * List Incident Statuses V1 * * @remarks * List all incident statuses for an organisation. */ async list( options?: RequestOptions, ): Promise { return unwrapAsync(incidentStatusesList( this, options, )); } /** * Create Incident Statuses V1 * * @remarks * Create a new incident status */ async create( request: components.CreateRequestBody9, options?: RequestOptions, ): Promise { return unwrapAsync(incidentStatusesCreate( this, request, options, )); } /** * Delete Incident Statuses V1 * * @remarks * Delete an incident status */ async delete( request: operations.IncidentStatusesV1NumberDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentStatusesDelete( this, request, options, )); } /** * Show Incident Statuses V1 * * @remarks * Get a single incident status. */ async get( request: operations.IncidentStatusesV1NumberShowRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentStatusesGet( this, request, options, )); } /** * Update Incident Statuses V1 * * @remarks * Update an existing incident status */ async update( request: operations.IncidentStatusesV1NumberUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentStatusesUpdate( this, request, options, )); } }