2025-05-16 10:27:08 +02:00
|
|
|
import type { InspectionViewModel } from "../inspection/inspection.models";
|
2025-05-11 16:44:16 +02:00
|
|
|
import type { VehicleTypeViewModel } from "../vehicleType/vehicleType.models";
|
|
|
|
|
2025-03-24 15:12:03 +01:00
|
|
|
export interface VehicleViewModel {
|
|
|
|
id: string;
|
2025-05-13 12:30:57 +02:00
|
|
|
code?: string;
|
2025-03-26 12:45:14 +01:00
|
|
|
name: string;
|
2025-04-28 12:29:44 +02:00
|
|
|
location: string;
|
2025-05-21 09:10:41 +02:00
|
|
|
commissioned: Date;
|
|
|
|
decommissioned?: Date;
|
2025-04-28 12:29:44 +02:00
|
|
|
vehicleTypeId: string;
|
2025-05-11 16:44:16 +02:00
|
|
|
vehicleType: VehicleTypeViewModel;
|
2025-05-14 09:13:47 +02:00
|
|
|
inspections: Array<InspectionViewModel>;
|
2025-03-24 15:12:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface CreateVehicleViewModel {
|
2025-05-13 12:30:57 +02:00
|
|
|
code?: string;
|
2025-03-26 12:45:14 +01:00
|
|
|
name: string;
|
2025-04-28 12:29:44 +02:00
|
|
|
location: string;
|
2025-05-21 09:10:41 +02:00
|
|
|
commissioned: Date;
|
2025-04-28 12:29:44 +02:00
|
|
|
vehicleTypeId: string;
|
2025-03-24 15:12:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface UpdateVehicleViewModel {
|
|
|
|
id: string;
|
2025-05-13 12:30:57 +02:00
|
|
|
code?: string;
|
2025-03-26 12:45:14 +01:00
|
|
|
name: string;
|
2025-04-28 12:29:44 +02:00
|
|
|
location: string;
|
2025-05-21 09:10:41 +02:00
|
|
|
commissioned: Date;
|
|
|
|
decommissioned?: Date;
|
2025-03-24 15:12:03 +01:00
|
|
|
}
|