mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 14:48:18 +00:00
Merge pull request #1453 from Tria-plc/freight_feature/usermanagement
Freight feature/usermanagement
This commit is contained in:
@@ -183,6 +183,19 @@ export class CancelRemainingWagonsDto {
|
||||
@IsUUID('4')
|
||||
scheduleId!: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
'Cancel only THESE never-loaded wagons (wagon_booking_allocation ids from ' +
|
||||
'GET /bookings/:id/wagons). Omit to cancel the whole unloaded remainder. ' +
|
||||
'Already-loaded wagons are rejected — they are riding.',
|
||||
type: [String],
|
||||
})
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
@ArrayNotEmpty()
|
||||
@IsUUID('4', { each: true })
|
||||
wagonAllocationIds?: string[];
|
||||
|
||||
@ApiProperty({ description: 'Why the remaining wagons are not riding' })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
|
||||
Reference in New Issue
Block a user