feat(repairs): add repair documents
This commit is contained in:
parent
884a20e043
commit
6e7e75f864
21 changed files with 1222 additions and 6 deletions
|
|
@ -14,6 +14,15 @@ export type RepairStatus =
|
|||
|
||||
export type RepairPriority = "low" | "normal" | "high" | "urgent";
|
||||
export type RepairSource = "manual" | "website" | "customer_portal" | "email" | "phone";
|
||||
export type RepairDocumentType =
|
||||
| "device_photo"
|
||||
| "fault_photo"
|
||||
| "measurement"
|
||||
| "estimate"
|
||||
| "repair_report"
|
||||
| "shipping"
|
||||
| "other";
|
||||
export type RepairDocumentVisibility = "internal" | "customer";
|
||||
|
||||
export interface Repair {
|
||||
id: number;
|
||||
|
|
@ -132,3 +141,23 @@ export interface RepairNotificationOverview {
|
|||
templates: RepairNotificationTemplate[];
|
||||
events: RepairNotificationEvent[];
|
||||
}
|
||||
|
||||
export interface RepairDocument {
|
||||
id: number;
|
||||
repair_id: number;
|
||||
title: string;
|
||||
document_type: RepairDocumentType;
|
||||
original_filename: string;
|
||||
stored_filename: string;
|
||||
storage_path: string;
|
||||
mime_type: string;
|
||||
size_bytes: number;
|
||||
checksum_sha256: string;
|
||||
visibility: RepairDocumentVisibility;
|
||||
note: string | null;
|
||||
uploaded_by_user_id: number | null;
|
||||
uploaded_by_username: string;
|
||||
uploaded_by_display_name: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue