mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 21:08:12 +00:00
45 lines
706 B
TypeScript
45 lines
706 B
TypeScript
import { IsString, IsNotEmpty, IsOptional, IsEmail, MaxLength, IsBoolean, IsUUID } from 'class-validator';
|
|
|
|
export class CreateExternalProfileDto {
|
|
@IsUUID()
|
|
@IsNotEmpty()
|
|
userId!: string;
|
|
|
|
@IsUUID()
|
|
@IsNotEmpty()
|
|
companyId!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MaxLength(100)
|
|
firstName!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MaxLength(100)
|
|
lastName!: string;
|
|
|
|
@IsEmail()
|
|
@IsNotEmpty()
|
|
email!: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(20)
|
|
phone?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(50)
|
|
nationalId?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(100)
|
|
jobTitle?: string;
|
|
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
isPrimaryContact?: boolean;
|
|
}
|