feat(api): add Decision, Notification, AuditLogEntry types
This commit is contained in:
parent
550df79c64
commit
8e049984a2
1 changed files with 64 additions and 0 deletions
|
|
@ -186,3 +186,67 @@ export interface Transaction {
|
|||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface Decision {
|
||||
id: string;
|
||||
tenantId: string;
|
||||
ownerUserId: string;
|
||||
context: string;
|
||||
options: unknown[];
|
||||
assumptions: unknown[];
|
||||
evidence: unknown[];
|
||||
selectedOption: string | null;
|
||||
outcomeReview: string | null;
|
||||
reviewDueAt: string | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export type NotificationSeverity =
|
||||
| 'CRITICAL'
|
||||
| 'ACTION_REQUIRED'
|
||||
| 'WARNING'
|
||||
| 'INFORMATION'
|
||||
| 'INTELLIGENCE'
|
||||
| 'SYSTEM';
|
||||
|
||||
export type NotificationStatus =
|
||||
| 'PENDING'
|
||||
| 'SCHEDULED'
|
||||
| 'DELIVERING'
|
||||
| 'DELIVERED'
|
||||
| 'READ'
|
||||
| 'ACKNOWLEDGED'
|
||||
| 'DISMISSED'
|
||||
| 'FAILED'
|
||||
| 'EXPIRED'
|
||||
| 'ESCALATED';
|
||||
|
||||
export interface Notification {
|
||||
id: string;
|
||||
tenantId: string;
|
||||
recipientUserId: string;
|
||||
category: string;
|
||||
severity: NotificationSeverity;
|
||||
title: string;
|
||||
body: string | null;
|
||||
sourceEntityType: string | null;
|
||||
sourceEntityId: string | null;
|
||||
actionUrl: string | null;
|
||||
status: NotificationStatus;
|
||||
aggregatedCount: number;
|
||||
readAt: string | null;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface AuditLogEntry {
|
||||
id: string;
|
||||
tenantId: string;
|
||||
actorType: string;
|
||||
actorId: string | null;
|
||||
action: string;
|
||||
resource: string;
|
||||
reason: string | null;
|
||||
correlationId: string | null;
|
||||
createdAt: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue