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:
SepehrYahyaee
2026-11-08 10:52:45 +03:30
parent a8bb0d8e35
commit 755e921c08
32 changed files with 638 additions and 2702 deletions
+21
View File
@@ -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;
}