introduce the database and controller connections for all inbounds

This commit is contained in:
Sven Czarnian
2022-10-23 16:58:00 +02:00
parent 7a41dd0fb2
commit f69e365623
19 changed files with 849 additions and 4 deletions

View File

@@ -0,0 +1,49 @@
import { IsNotEmpty, IsInt, Min, Max } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { WaypointDto } from 'src/generic/dto/waypoint.dto';
export class PredictedWaypointDto {
@IsNotEmpty()
@ApiProperty({
description: 'The waypoint',
})
waypoint: WaypointDto;
@IsNotEmpty()
@ApiProperty({
description: 'The planned altitude',
example: 23000,
})
@IsInt()
@Min(0)
@Max(60000)
altitude: number;
@IsNotEmpty()
@ApiProperty({
description: 'The planned indicated airspeed',
example: 200,
})
@IsInt()
@Min(0)
@Max(600)
indicatedAirspeed: number;
@IsNotEmpty()
@ApiProperty({
description: 'The planned groundspeed',
example: 500,
})
@IsInt()
@Min(0)
@Max(800)
groundspeed: number;
@IsNotEmpty()
@ApiProperty({
description: 'The planned time overhead the waypoint',
example: 'Wed, 14 Jun 2017 07:00:00z',
})
@IsInt()
plannedOverheadTime: string;
}