// add-status.dto.ts
import { ApiProperty } from '@nestjs/swagger';
import { IsArray, ArrayNotEmpty, IsString } from 'class-validator';

export class AddMultiStatusDto {
  @ApiProperty({ example: ['id1', 'id2'], description: 'List of shipment IDs' })
  @IsArray()
  @ArrayNotEmpty()
  @IsString({ each: true })
  shipment_ids: string[];

  @ApiProperty({ example: 'Delivered', description: 'New status to apply' })
  @IsString()
  status: string;
}
