mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 14:08:11 +00:00
add goverment booking
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { ArrayNotEmpty, IsArray, IsUUID } from 'class-validator';
|
||||
|
||||
export class SwitchGovernmentBookingDto {
|
||||
@ApiProperty({ format: 'uuid', description: 'Government booking to allocate onto the train' })
|
||||
@IsUUID()
|
||||
governmentBookingId!: string;
|
||||
|
||||
@ApiProperty({
|
||||
format: 'uuid',
|
||||
isArray: true,
|
||||
description: 'Assigned commercial bookings to switch out in its place',
|
||||
})
|
||||
@IsArray()
|
||||
@ArrayNotEmpty()
|
||||
@IsUUID('4', { each: true })
|
||||
removeBookingIds!: string[];
|
||||
}
|
||||
Reference in New Issue
Block a user