import { ApiProperty } from "@nestjs/swagger"; import { IsString, Matches, MaxLength, MinLength } from "class-validator"; export class AiPricingRequestDto { @ApiProperty({ description: "Current imageKey from the AI analysis response", }) @IsString() @Matches(/^[a-f0-9]{64}$/, { message: "شناسه تصویر معتبر نیست." }) imageKey: string; @ApiProperty({ example: "پژو ۲۰۶ تیپ ۲", description: "Expert-confirmed Persian make and model of the damaged vehicle", }) @IsString({ message: "نام خودرو را به فارسی وارد کنید." }) @MinLength(2, { message: "نام خودرو باید حداقل ۲ کاراکتر باشد." }) @MaxLength(100, { message: "نام خودرو باید حداکثر ۱۰۰ کاراکتر باشد." }) @Matches(/[آ-ی]/, { message: "نام خودرو را به فارسی وارد کنید." }) carName: string; }