import { Type } from 'class-transformer';
import { ArrayMinSize, IsArray, ValidateNested } from 'class-validator';
import { CreateFlyerSelectionDto } from './create-flyer-selection.dto';

export class CreateFlyerSelectionBulkDto {
  @IsArray()
  @ArrayMinSize(1)
  @ValidateNested({ each: true })
  @Type(() => CreateFlyerSelectionDto)
  items!: CreateFlyerSelectionDto[];
}
