import { ApiProperty } from "@nestjs/swagger"
import { IsNotEmpty, IsOptional, IsString } from "class-validator"

export class ContactUsEmailValidation {

    @ApiProperty({ example: 'Dov' })
    @IsString()
    @IsOptional()
    name: string

    @ApiProperty({ example: 'dov@dov.com' })
    @IsString()
    @IsNotEmpty()
    email: string

    @ApiProperty({ example: 'Subject' })
    @IsString()
    @IsOptional()
    subject: string

    @ApiProperty({ example: '6673357805' })
    @IsString()
    @IsOptional()
    phone: string

    @ApiProperty({ example: 'hi can you please call me back' })
    @IsString()
    @IsNotEmpty()
    message: string

    @ApiProperty({ example: 'Contact Us form' })
    @IsString()
    @IsOptional()
    template: string
}
