28 lines
761 B
TypeScript
28 lines
761 B
TypeScript
|
import type { EquipmentViewModel } from "../equipment/equipment.models";
|
||
|
import type { VehicleViewModel } from "../vehicle/vehicle.models";
|
||
|
import type { WearableViewModel } from "../wearable/wearable.models";
|
||
|
|
||
|
export interface DamageReportViewModel {
|
||
|
id: string;
|
||
|
reported: Date;
|
||
|
status: string;
|
||
|
done: boolean;
|
||
|
description: string;
|
||
|
providedImage: Array<string>;
|
||
|
relatedId: string;
|
||
|
related: EquipmentViewModel | VehicleViewModel | WearableViewModel;
|
||
|
affected: "equipment" | "vehicle" | "wearable";
|
||
|
}
|
||
|
|
||
|
export interface CreateDamageReportViewModel {
|
||
|
description: string;
|
||
|
affectedId: string;
|
||
|
affected: "equipment" | "vehicle" | "wearable";
|
||
|
}
|
||
|
|
||
|
export interface UpdateDamageReportViewModel {
|
||
|
id: string;
|
||
|
status: string;
|
||
|
done: boolean;
|
||
|
}
|