mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 10:08:21 +00:00
21 lines
666 B
TypeScript
21 lines
666 B
TypeScript
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;
|
|
}
|