mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 00:50:56 +00:00
24 lines
424 B
TypeScript
24 lines
424 B
TypeScript
import { Freight } from "@edr/types";
|
|
import { IsEnum, IsNumber, IsString, IsUUID, Min } from "class-validator";
|
|
|
|
export class CreateConsignmentDto {
|
|
@IsUUID()
|
|
bookingId!: string;
|
|
|
|
@IsString()
|
|
trackingNumber!: string;
|
|
|
|
@IsEnum(Freight.CargoType)
|
|
cargoType!: Freight.CargoType;
|
|
|
|
@IsNumber()
|
|
@Min(0)
|
|
weightKg!: number;
|
|
|
|
@IsString()
|
|
originStation!: string;
|
|
|
|
@IsString()
|
|
destinationStation!: string;
|
|
}
|