mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 16:35:42 +00:00
27 lines
490 B
TypeScript
27 lines
490 B
TypeScript
import { WagonStatus } from '@edr/types';
|
|
import {
|
|
ArrayNotEmpty,
|
|
IsArray,
|
|
IsEnum,
|
|
IsOptional,
|
|
IsString,
|
|
IsUUID,
|
|
MaxLength,
|
|
} from 'class-validator';
|
|
|
|
export class BulkSetWagonStatusDto {
|
|
@IsArray()
|
|
@ArrayNotEmpty()
|
|
@IsUUID('4', { each: true })
|
|
wagonIds!: string[];
|
|
|
|
@IsEnum(WagonStatus)
|
|
status!: WagonStatus;
|
|
|
|
/** Reason shown in the wagon's status history (maintenance/availability flips). */
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(500)
|
|
note?: string;
|
|
}
|