Files
moraworld/apps/api/src/pre-alerts/dto/pre-alert.dto.ts
T

28 lines
438 B
TypeScript

import { IsString, IsOptional, IsNumber, Min } from "class-validator";
export class CreatePreAlertDto {
@IsString()
store!: string;
@IsString()
description!: string;
@IsOptional()
@IsNumber()
@Min(0)
declaredValue?: number;
@IsOptional()
@IsString()
vendorTracking?: string;
@IsOptional()
@IsString()
estimatedArrival?: string;
}
export class UpdatePreAlertStatusDto {
@IsString()
status!: string;
}