add viewmodels from frontend
This commit is contained in:
parent
d7a0ee694f
commit
15a511f942
12 changed files with 307 additions and 0 deletions
27
src/viewmodel/admin/unit/damageReport/damageReport.models.ts
Normal file
27
src/viewmodel/admin/unit/damageReport/damageReport.models.ts
Normal file
|
@ -0,0 +1,27 @@
|
|||
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue