mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 17:38:12 +00:00
25 lines
521 B
TypeScript
25 lines
521 B
TypeScript
import { IsUUID, IsNotEmpty, IsOptional, IsBoolean, IsEnum } from 'class-validator';
|
|
import { FFClientRelationship } from '../entities/ff-client.entity';
|
|
|
|
export class CreateFFClientDto {
|
|
@IsUUID()
|
|
@IsNotEmpty()
|
|
forwarderCompanyId!: string;
|
|
|
|
@IsUUID()
|
|
@IsNotEmpty()
|
|
clientCompanyId!: string;
|
|
|
|
@IsOptional()
|
|
@IsEnum(FFClientRelationship)
|
|
relationshipType?: FFClientRelationship;
|
|
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
canBookOnBehalf?: boolean;
|
|
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
canViewDocuments?: boolean;
|
|
}
|