mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 04:08:11 +00:00
27 lines
670 B
TypeScript
27 lines
670 B
TypeScript
import { ApiPropertyOptional } from '@nestjs/swagger';
|
|
import { IsDateString, IsIn, IsOptional, IsUUID } from 'class-validator';
|
|
|
|
import { BOOKING_STATUSES } from '../../bookings/entities/booking.entity';
|
|
|
|
export class GetEligibleContainerBookingsDto {
|
|
@ApiPropertyOptional({ format: 'uuid' })
|
|
@IsOptional()
|
|
@IsUUID()
|
|
originStationId?: string;
|
|
|
|
@ApiPropertyOptional({ format: 'uuid' })
|
|
@IsOptional()
|
|
@IsUUID()
|
|
destinationStationId?: string;
|
|
|
|
@ApiPropertyOptional({ example: '2026-06-20T08:00:00.000Z' })
|
|
@IsOptional()
|
|
@IsDateString()
|
|
scheduleDate?: string;
|
|
|
|
@ApiPropertyOptional()
|
|
@IsOptional()
|
|
@IsIn(BOOKING_STATUSES)
|
|
status?: string;
|
|
}
|