import { ApiProperty } from '@nestjs/swagger';
import { IsEnum, IsNotEmpty, IsArray } from 'class-validator';
import { StatusAction } from 'src/utils/enums/enum';

export class UpdateContractStatusDto {
  @IsNotEmpty()
  @IsEnum(StatusAction, {
    message: 'action must be either activate or deactivate',
  })
  @ApiProperty({ enum: StatusAction })
  action: StatusAction;

  @IsNotEmpty()
  @IsArray()
  @ApiProperty({ type: [Number] })
  ids: number[];
}
