IncidentsResource
API reference for the Incidents resource.
Methods
list
List all incidents.
typescript
async list(): Promise<Incident[]>get
Get a single incident by ID.
typescript
async get(id: string): Promise<Incident>create
Create a new incident.
typescript
async create(data: CreateIncidentInput): Promise<Incident>Parameters:
typescript
interface CreateIncidentInput {
summary: string;
description?: string;
owner?: string;
status?: string;
severity?: string;
reportedDate?: string;
resolvedDate?: string | null;
auditId?: string | null;
}update
Update an existing incident.
typescript
async update(id: string, data: Partial<CreateIncidentInput>): Promise<Incident>delete
Delete an incident.
typescript
async delete(id: string): Promise<void>Types
Incident
typescript
interface Incident {
id: string;
summary: string;
description?: string;
owner?: string;
status?: string;
severity?: string;
reportedDate?: string;
resolvedDate?: string | null;
auditId?: string | null;
tenantId?: string;
createdBy?: string;
createdAt?: string;
updatedAt?: string;
}