feat(repairs): add status timeline and public link preparation

This commit is contained in:
Schubert Ferenc 2026-07-04 12:25:06 +02:00
parent e9ec207617
commit 09cce1f2b6
22 changed files with 1027 additions and 28 deletions

View file

@ -85,5 +85,48 @@ export interface RepairStatusHistory {
new_status: RepairStatus;
note: string | null;
actor_user_id: number | null;
actor_username: string;
actor_display_name: string;
created_at: string;
}
export interface RepairPublicLink {
is_active: boolean;
token_hint: string | null;
expires_at: string | null;
last_used_at: string | null;
created_at: string | null;
revoked_at: string | null;
public_status_path: string | null;
}
export interface RepairPublicLinkCreated extends RepairPublicLink {
token: string;
public_status_path: string;
}
export interface RepairNotificationTemplate {
event_type: string;
status: RepairStatus | null;
subject: string;
text: string;
html: string | null;
}
export interface RepairNotificationEvent {
id: number;
repair_id: number;
event_type: string;
channel: string;
recipient: string;
subject: string;
status: "pending" | "sent" | "failed" | "skipped";
error_message: string | null;
created_at: string;
sent_at: string | null;
}
export interface RepairNotificationOverview {
templates: RepairNotificationTemplate[];
events: RepairNotificationEvent[];
}