import { ApiProperty } from '@nestjs/swagger'; import { Type } from 'class-transformer'; import { IsInt, Min } from 'class-validator'; /** * Shorten the booking-close offset of ONE schedule whose booking shut only * because of that offset (staff action on the ops board). The value replaces the * schedule's frozen offset; 0 means "close at departure". */ export class ReduceScheduleCloseOffsetDto { @ApiProperty({ example: 120, description: 'New minutes-before-departure at which booking closes. Must be shorter than the current offset; 0 = close at departure.', }) @Type(() => Number) @IsInt() @Min(0) closeOffsetMinutes!: number; }