import { IsEmail, IsNotEmpty, IsString, IsOptional, IsNumber, IsArray, ArrayNotEmpty, IsBoolean } from "class-validator";
import { ApiProperty } from '@nestjs/swagger';
import { Types } from 'mongoose';
import { Transform } from "class-transformer";

export class chatPost {

    @ApiProperty({ default: null })
    @IsString()
    agent_id: string;

    @ApiProperty({ default: null })
    @IsString()
    secret_key: string;

    @ApiProperty({ default: null })
    @IsOptional()
    @IsString()
    text: string;

    @ApiProperty({ default: null })
    @IsString()
    @IsOptional()
    chat_id: string;

}

export class chatUpdateDetail {

    @ApiProperty({ required: true })
    @IsString()
    email: string;

    @ApiProperty({ required: true })
    @IsString()
    name: string;

    @ApiProperty({ default: null })
    @IsString()
    @IsOptional()
    phone_no: string;


    @ApiProperty({ default: null })
    @IsString()
    @IsOptional()
    country_code: string;

    @ApiProperty({ default: "CHAT" })
    @IsString()
    type: string;
}
