ff-admin/src/viewmodels/admin/unit/vehicle/vehicle.models.ts

38 lines
718 B
TypeScript
Raw Normal View History

2025-05-29 10:57:24 +02:00
import type { VehicleTypeViewModel } from "./vehicleType.models";
2025-05-11 16:44:16 +02:00
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-03-24 15:12:03 +01:00
}
2025-07-16 12:24:48 +02:00
export interface MinifiedVehicleViewModel {
id: string;
code?: string;
name: string;
type: string;
assigned: "vehicle";
}
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
}