mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 14:08:11 +00:00
implement intercity booking management and booking window websocket integration
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { ArrayNotEmpty, IsArray, IsUUID } from 'class-validator';
|
||||
|
||||
export class AcceptIntercityBookingsDto {
|
||||
@ApiProperty({
|
||||
type: [String],
|
||||
description:
|
||||
'Waiting intercity booking ids to accept onto this train, in priority order',
|
||||
})
|
||||
@IsArray()
|
||||
@ArrayNotEmpty()
|
||||
@IsUUID('4', { each: true })
|
||||
bookingIds!: string[];
|
||||
}
|
||||
@@ -59,4 +59,15 @@ export class UpdateScheduleWindowRuleDto {
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
importWindowLeadDays?: number;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
example: 24,
|
||||
description:
|
||||
'Hours before departure the single FCFS export window opens (EXPORT schedules; re-derives the window start)',
|
||||
})
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
exportBookingLeadHours?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user