mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 02:58:11 +00:00
10 lines
529 B
TypeScript
10 lines
529 B
TypeScript
import { IsString, IsArray, IsOptional } from 'class-validator';
|
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
|
|
export class HoldSeatsDto {
|
|
@ApiProperty({ example: 'schedule-uuid' }) @IsString() scheduleId: string;
|
|
@ApiProperty({ example: 'passenger-uuid' }) @IsString() passengerId: string;
|
|
@ApiProperty({ type: [String], example: ['seat-uuid-1', 'seat-uuid-2'] }) @IsArray() seatIds: string[];
|
|
@ApiPropertyOptional({ example: 'fare-quote-uuid' }) @IsOptional() @IsString() fareQuoteId?: string;
|
|
}
|