import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; export class DateStatusDto { @ApiProperty() id: string; @ApiProperty() text: string; } export class DateDto { @ApiProperty() id: string; @ApiProperty() profile1Id: string; @ApiProperty() profile2Id: string; @ApiProperty() lat: string; @ApiProperty() lng: string; @ApiProperty() time: string; @ApiPropertyOptional({ nullable: true }) statusId: string | null; } export class DateWithStatusDto { @ApiProperty({ type: DateDto }) date: DateDto; @ApiPropertyOptional({ type: DateStatusDto, nullable: true }) dateStatus: DateStatusDto | null; }