mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-02 19:43:39 +00:00
21 lines
585 B
TypeScript
21 lines
585 B
TypeScript
import { ApiPropertyOptional } from '@nestjs/swagger';
|
|
import { IsDateString, IsOptional, IsString } from 'class-validator';
|
|
|
|
/** Records a DO / release order being sent to the customer for import pickup. */
|
|
export class ReleaseOrderDto {
|
|
@ApiPropertyOptional({ description: 'DO / release order reference number' })
|
|
@IsOptional()
|
|
@IsString()
|
|
reference?: string;
|
|
|
|
@ApiPropertyOptional({ description: 'Release date (defaults to now)' })
|
|
@IsOptional()
|
|
@IsDateString()
|
|
releaseDate?: string;
|
|
|
|
@ApiPropertyOptional()
|
|
@IsOptional()
|
|
@IsString()
|
|
performedBy?: string;
|
|
}
|