forked from Yara724/api
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.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user