mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 18:18:18 +00:00
- Added a reason field to train history entries for detach/maintenance actions. - Updated TrainHistoryPanel to display the reason for wagon detachments. - Introduced per-wagon load/unload functionality in ScheduleWorkspacePanel with a modal for managing individual wagons. - Implemented API endpoints for loading and unloading specific wagons, including the ability to cancel remaining wagons with a reason. - Refactored detach request handling in TrainBuilderDetailPage to streamline the process and remove the approval flow, requiring a reason for detachments. - Updated types and services to support new wagon loading/unloading features and booking wagon retrieval.
17 lines
493 B
TypeScript
17 lines
493 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsString, MaxLength } from 'class-validator';
|
|
|
|
export class SendWagonToMaintenanceDto {
|
|
@ApiProperty({
|
|
description:
|
|
"Why the wagon is going to maintenance — required. Stored on the wagon's " +
|
|
'status-history log alongside the train it was detached from, and on the ' +
|
|
"train's wagon-adjustment history.",
|
|
maxLength: 500,
|
|
})
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MaxLength(500)
|
|
note!: string;
|
|
}
|