import { IsString, IsOptional, IsInt, Min, Max } from 'class-validator'; import { ApiPropertyOptional } from '@nestjs/swagger'; export class UpdateLiveStatusDto { @ApiPropertyOptional({ example: 'EN_ROUTE' }) @IsOptional() @IsString() state?: string; @ApiPropertyOptional({ example: 'Between Dire Dawa and Dewele' }) @IsOptional() @IsString() currentLocationLabel?: string; @ApiPropertyOptional({ example: 45 }) @IsOptional() @IsInt() @Min(0) @Max(100) progressPercent?: number; @ApiPropertyOptional({ example: 10 }) @IsOptional() @IsInt() @Min(0) delayMinutes?: number; @ApiPropertyOptional({ example: 120 }) @IsOptional() @IsInt() @Min(0) currentSpeedKph?: number; @ApiPropertyOptional({ example: 'Platform 2' }) @IsOptional() @IsString() platformLabel?: string; }