import { ApiPropertyOptional, PartialType } from '@nestjs/swagger';
import { IsEnum, IsOptional } from 'class-validator';

import { WAREHOUSE_ZONE_STATUSES, WarehouseZoneStatus } from '../entities/warehouse-zone.entity';
import { CreateWarehouseZoneDto } from './create-warehouse-zone.dto';

export class UpdateWarehouseZoneDto extends PartialType(CreateWarehouseZoneDto) {
  @ApiPropertyOptional({ enum: WAREHOUSE_ZONE_STATUSES })
  @IsOptional()
  @IsEnum(WAREHOUSE_ZONE_STATUSES)
  status?: WarehouseZoneStatus;
}
