import { IsEmail, IsNotEmpty, IsOptional, IsPhoneNumber, IsString, } from 'class-validator'; export class UserDto { @IsNotEmpty() @IsString() username: string; @IsNotEmpty() @IsString() password: string; @IsOptional() @IsEmail() @IsString() emailAddress: string; @IsOptional() @IsString() role: string; @IsNotEmpty() @IsString() firstName: string; @IsNotEmpty() @IsString() lastName: string; @IsOptional() @IsPhoneNumber('US') @IsString() phoneNumber: string; @IsOptional() @IsString() sellerName: string; }