mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 13:28:11 +00:00
refactor(train-scheduling): rename and restructure container movement logic
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
import { IsOptional, IsUUID } from 'class-validator';
|
||||
|
||||
export class MoveContainerItemDto {
|
||||
@IsUUID()
|
||||
targetTrainSetWagonId!: string;
|
||||
|
||||
/**
|
||||
* Swap with this container on the target wagon instead of requiring free
|
||||
* space there. Same-wagon swaps exchange the two slot positions.
|
||||
*/
|
||||
@IsUUID()
|
||||
@IsOptional()
|
||||
swapWithItemId?: string;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { IsUUID } from 'class-validator';
|
||||
|
||||
export class MoveWagonLoadDto {
|
||||
/**
|
||||
* Where the source wagon's whole load goes: a train-set wagon slot (empty →
|
||||
* move, loaded → swap the two loads) or an empty consist-only physical wagon
|
||||
* of the built train (→ the slot repins onto it).
|
||||
*/
|
||||
@IsUUID()
|
||||
targetWagonId!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user