import { ApiPropertyOptional } from '@nestjs/swagger'; import { IsISO8601, IsOptional } from 'class-validator'; /** * A station loading/unloading window click. `at` omitted = "now" (the button * click); `at` given = record or correct the timestamp after the fact — same * endpoint, same permission. */ export class StationWorkDto { @ApiPropertyOptional({ description: 'ISO timestamp; omitted = now. Never in the future.' }) @IsOptional() @IsISO8601() at?: string; }