Files
edr-platform/apps/edr-freight-api/src/modules/trains/dto/send-wagon-to-maintenance.dto.ts
Marshal ba56974e32 feat(train): enhance train history and scheduling features
- 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.
2026-08-28 07:33:28 +00:00

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