mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 03:05:42 +00:00
fix issues
This commit is contained in:
@@ -107,6 +107,38 @@ export class RequestOperationDto {
|
||||
trainScheduleId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Operations changes a pending operation request's shipment day and/or train
|
||||
* on the customer's behalf (instead of returning it for changes).
|
||||
*/
|
||||
export class RescheduleOperationDto {
|
||||
@ApiProperty({
|
||||
description:
|
||||
'The new shipment day (train departure day). ISO date — must have an ' +
|
||||
'open departure on the booking route that can carry the cargo.',
|
||||
example: '2026-07-15',
|
||||
})
|
||||
@IsDateString()
|
||||
scheduledDate!: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
'EXPORT rail only: the train (schedule id) to ride, from ' +
|
||||
'GET /bookings/:id/export-trains for the new day. Required for export ' +
|
||||
'rail; ignored for import/domestic/road bookings.',
|
||||
})
|
||||
@IsOptional()
|
||||
@IsUUID()
|
||||
trainScheduleId?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: 'Optional note to the customer explaining the change.',
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
note?: string;
|
||||
}
|
||||
|
||||
export class OperationReviewDto {
|
||||
@ApiProperty({
|
||||
description:
|
||||
|
||||
Reference in New Issue
Block a user