mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 21:48:14 +00:00
chore: added creating new vehicles
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user