chore: added creating new vehicles

This commit is contained in:
2025-11-25 02:14:23 +01:00
parent 9e111295dd
commit 3e94ec2826
3 changed files with 70 additions and 6 deletions
+12
View File
@@ -8,6 +8,16 @@ export interface IVehicleAPI {
cabinName?: string;
restrictions?: IVehicleRestrictions;
vehicleGroupsId: number;
hidden: boolean;
}
export interface ICreateVehicleBody {
name: string;
type: string;
cabinName?: string;
restrictions?: IVehicleRestrictions;
vehicleGroupsId: number;
hidden: boolean;
}
export interface IVehicle {
@@ -17,6 +27,7 @@ export interface IVehicle {
cabinName?: string;
restrictions?: IVehicleRestrictions;
group: IVehicleGroup;
hidden: boolean;
}
export interface IVehicleRestrictions {
@@ -68,6 +79,7 @@ export enum VehicleEditRowKey {
NAME = 'name',
TYPE = 'type',
CABIN = 'cabinName',
HIDDEN = 'hidden',
}
export enum VehicleEditRestrictionKey {