import { ApiProperty } from '@nestjs/swagger';
import { IsIn, IsNotEmpty } from 'class-validator';
import {
  NegativeScoreClient,
  // NegativeScoreType,
} from '../entities/negative-score.entity';

export class CreateNegativeScoreRequestDto {
  @ApiProperty({ required: true })
  @IsNotEmpty()
  licenseNumber: string;

  // @ApiProperty({ enum: NegativeScoreType, required: true })
  // @IsNotEmpty()
  // @IsIn(Object.values(NegativeScoreType))
  // type: NegativeScoreType;

  @ApiProperty({ enum: NegativeScoreClient, required: true })
  @IsNotEmpty()
  @IsIn(Object.values(NegativeScoreClient))
  client: NegativeScoreClient;
}
