add active runways and the arrival mode

This commit is contained in:
Sven Czarnian
2022-10-25 08:25:00 +02:00
parent 3e7f729106
commit e32292e509
3 changed files with 30 additions and 0 deletions

View File

@@ -140,6 +140,8 @@ export class AirportController {
planning: AirportController.convertPlanning<PlanningDto, AssignmentDto>(
airport.planning,
),
activeRunways: airport.activeRunways,
arrivalMode: airport.arrivalMode,
};
}
@@ -167,6 +169,8 @@ export class AirportController {
planning: AirportController.convertPlanning<Planning, Assignment>(
airport.planning,
),
activeRunways: airport.activeRunways,
arrivalMode: airport.arrivalMode,
};
}

View File

@@ -49,4 +49,18 @@ export class AirportDto {
description: 'The planning configuration',
})
planning: PlanningDto;
@IsOptional()
@ApiProperty({
description: 'The currently active runways',
example: '["25L", "25R"]',
})
activeRunways: string[];
@IsOptional()
@ApiProperty({
description: 'The active arrival mode',
example: 'STAGGERED',
})
arrivalMode: string;
}

View File

@@ -51,6 +51,18 @@ export class Airport {
type: PlanningSchema,
})
planning: Planning;
@Prop({
type: [String],
})
activeRunways: string[];
@Prop({
enum: ['STAGGERED', 'IPA'],
default: 'STAGGERED',
type: String,
})
arrivalMode: string;
}
export const AirportSchema = SchemaFactory.createForClass(Airport);