| 1 | import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; |
| 2 | import { AirportType } |
| 3 | |
| 4 | export class AirportEntity |
| 5 | @ApiProperty() |
| 6 | id: string; |
| 7 | |
| 8 | @ApiProperty({ example |
| 9 | ident: string; |
| 10 | |
| 11 | @ApiProperty({ enumName |
| 12 | type: AirportType |
| 13 | |
| 14 | @ApiPropertyOptional({ description |
| 15 | elevation?: string |
| 16 | |
| 17 | @ApiProperty({ |
| 18 | examples: ['AS', |
| 19 | }) |
| 20 | continent: string; |
| 21 | |
| 22 | @ApiProperty({}) |
| 23 | isoCountry: string; |
| 24 | |
| 25 | @ApiProperty({}) |
| 26 | isoRegion: string; |
| 27 | |
| 28 | @ApiPropertyOptional({}) |
| 29 | municipality?: string |
| 30 | |
| 31 | @ApiPropertyOptional({}) |
| 32 | gpsCode?: string |
| 33 | |
| 34 | @ApiPropertyOptional({ description |
| 35 | iataCode?: string |
| 36 | |
| 37 | @ApiProperty({}) |
| 38 | name: string; |
| 39 | |
| 40 | @ApiProperty({}) |
| 41 | lat: string; |
| 42 | |
| 43 | @ApiProperty({}) |
| 44 | long: string; |
| 45 | } |