import { ApiProperty } from '@nestjs/swagger';
import { IsArray, IsEnum } from 'class-validator';
import { NotifChannelEnum } from '../interfaces/notification.interface';

export class UpdatePreferenceDto {
  @ApiProperty({
    description: 'Notification channels (can be empty or contain any enum values)',
    enum: NotifChannelEnum,
    isArray: true,
    example: ['sms', 'push'],
  })
  @IsArray()
  @IsEnum(NotifChannelEnum, { each: true })
  channels!: NotifChannelEnum[];
}
