37 lines
718 B
TypeScript
37 lines
718 B
TypeScript
import type { VehicleTypeViewModel } from "./vehicleType.models";
|
|
|
|
export interface VehicleViewModel {
|
|
id: string;
|
|
code?: string;
|
|
name: string;
|
|
location: string;
|
|
commissioned: Date;
|
|
decommissioned?: Date;
|
|
vehicleTypeId: string;
|
|
vehicleType: VehicleTypeViewModel;
|
|
}
|
|
|
|
export interface MinifiedVehicleViewModel {
|
|
id: string;
|
|
code?: string;
|
|
name: string;
|
|
type: string;
|
|
assigned: "vehicle";
|
|
}
|
|
|
|
export interface CreateVehicleViewModel {
|
|
code?: string;
|
|
name: string;
|
|
location: string;
|
|
commissioned: Date;
|
|
vehicleTypeId: string;
|
|
}
|
|
|
|
export interface UpdateVehicleViewModel {
|
|
id: string;
|
|
code?: string;
|
|
name: string;
|
|
location: string;
|
|
commissioned: Date;
|
|
decommissioned?: Date;
|
|
}
|