forked from Yara724/api
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.
22 lines
927 B
TypeScript
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;
|
|
}
|