import { IsEnum, IsOptional, IsString, IsUrl, IsUUID, ValidateNested } from 'class-validator'; import { Type } from 'class-transformer'; import { BaseDto } from '../../_core/dto/base.dto'; export class CreateAttachmentDto extends BaseDto { @IsString() displayName: string; @IsString() filePath: string; @IsEnum(['png', 'pdf', 'csv', 'jpg']) fileType: 'png' | 'pdf' | 'csv' | 'jpg'; @IsUrl() storageUrl: string; @IsUUID() ownerId: string; }