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

export class ResendOtpDto {
  @IsString()
  @IsNotEmpty({ message: `Mobile number can't be empty` })
  @ApiProperty({
    required: true,
    type: String,
    description: 'Phone Number',
  })
  phone_number: string;

  @IsString()
  @IsIn(['verify_phone_number', 'forgot_password'])
  @IsNotEmpty()
  @ApiProperty({
    required: true,
    type: String,
    description: 'Action',
  })
  action: string;

  @IsString()
  @IsNotEmpty()
  @ApiProperty({
    required: true,
    type: String,
    description: 'Country Code',
  })
  country_phone_code: string;
}
