refactor(train-scheduling): rename and restructure container movement logic

This commit is contained in:
Marshal
2026-07-21 23:49:10 +00:00
parent d25612c2f0
commit ed3c8307bb
13 changed files with 470 additions and 523 deletions

View File

@@ -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;
}

View File

@@ -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;
}