Files
yara724-api/src/ai/ai-pricing-request.dto.ts
T
SepehrYahyaee 755e921c08 feat: replace OpenAI pricing with AI assessment estimates
Extend durable image assessments with explicit Persian vehicle names, deployment severity settings and advisory market prices normalized to rials. Preserve case access and retry boundaries, and remove the retired OpenAI pricing module and routes.
2026-11-08 10:52:45 +03:30

22 lines
927 B
TypeScript

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;
}