mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 14:38:12 +00:00
27 lines
834 B
TypeScript
27 lines
834 B
TypeScript
import { ApiPropertyOptional } from '@nestjs/swagger';
|
|
import { IsArray, IsOptional, IsUUID } from 'class-validator';
|
|
|
|
export class AdjustScheduleConsistDto {
|
|
@ApiPropertyOptional({
|
|
type: [String],
|
|
format: 'uuid',
|
|
description:
|
|
"AVAILABLE wagons from the train's current yard to couple onto the built train (blocked when they push gross weight or length past the locomotive limits incl. tolerance).",
|
|
})
|
|
@IsOptional()
|
|
@IsArray()
|
|
@IsUUID('all', { each: true })
|
|
addWagonIds?: string[];
|
|
|
|
@ApiPropertyOptional({
|
|
type: [String],
|
|
format: 'uuid',
|
|
description:
|
|
'Free (unloaded) wagons to detach permanently from the built train — e.g. trimming tare when gross weight exceeds the pull limit.',
|
|
})
|
|
@IsOptional()
|
|
@IsArray()
|
|
@IsUUID('all', { each: true })
|
|
removeWagonIds?: string[];
|
|
}
|