14 lines
369 B
TypeScript
14 lines
369 B
TypeScript
import { IsIn, IsOptional, IsString, Matches, MaxLength } from 'class-validator';
|
|
|
|
export class ClientFileUploadDto {
|
|
@IsString()
|
|
@IsIn(['enterprise_certification', 'signature_report_material', 'drainage_report_material'])
|
|
purpose!: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(256)
|
|
@Matches(/^[a-zA-Z0-9_-]+(?:\/[a-zA-Z0-9_-]+)*$/)
|
|
prefix?: string;
|
|
}
|