add active runways and the arrival mode
This commit is contained in:
		| @@ -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, | ||||
|     }; | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -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; | ||||
| } | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user