import { LoadingStatus } from '@edr/types';
import { ApiProperty } from '@nestjs/swagger';
import { ArrayMinSize, IsArray, IsEnum, IsUUID } from 'class-validator';

export class UpdateImportLoadingStatusDto {
  @ApiProperty({ type: [String] })
  @IsArray()
  @ArrayMinSize(1)
  @IsUUID('4', { each: true })
  bookingIds!: string[];

  @ApiProperty({ enum: LoadingStatus })
  @IsEnum(LoadingStatus)
  loadingStatus!: LoadingStatus;
}
