mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 15:48:11 +00:00
feat(clearance): preview charge documents before and after upload
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { ArrayMinSize, IsArray, IsUUID } from 'class-validator';
|
||||
|
||||
export class SetTrainWagonsYardDto {
|
||||
@ApiProperty({
|
||||
type: [String],
|
||||
format: 'uuid',
|
||||
description:
|
||||
'Coupled wagons to relocate. All move in one transaction — if any is pinned to a live schedule, none move.',
|
||||
})
|
||||
@IsArray()
|
||||
@ArrayMinSize(1)
|
||||
@IsUUID('all', { each: true })
|
||||
wagonIds!: string[];
|
||||
|
||||
@ApiProperty({
|
||||
format: 'uuid',
|
||||
description: 'Yard the selected wagons now sit in. The train itself stays put.',
|
||||
})
|
||||
@IsUUID()
|
||||
currentYardId!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user