import { ApiProperty } from '@nestjs/swagger';
import { IsIn, IsNotEmpty } from 'class-validator';

export enum SenderType {
  MAIL = 'mail',
  SMS = 'sms',
  ALL = 'all',
}

export class ReplyContactDto {
  @ApiProperty({ example: '' })
  @IsNotEmpty()
  answer: string;

  @ApiProperty({ example: SenderType.MAIL, enum: SenderType })
  @IsNotEmpty()
  @IsIn(Object.values(SenderType))
  senderType: SenderType;
}
