add 4 new fields for expert approval

This commit is contained in:
SepehrYahyaee
2026-09-29 15:34:11 +03:30
parent b7a64596dd
commit 05e3e6a4d3
15 changed files with 1271 additions and 74 deletions
+27 -2
View File
@@ -187,13 +187,15 @@ export class ClaimDetailV2ResponseDto {
fileMakerRejectionCount?: number;
@ApiPropertyOptional({
description: "V5 only. Reason text from the most recent FileMaker rejection.",
description:
"V5 only. Reason text from the most recent FileMaker rejection.",
example: "قیمت نامعقول",
})
fileMakerRejectionReason?: string;
@ApiPropertyOptional({
description: "V5 only. ObjectId of the FileMaker who must approve (or has approved) this claim.",
description:
"V5 only. ObjectId of the FileMaker who must approve (or has approved) this claim.",
example: "6a43a2689faee3d20bf24030",
})
fileMakerApprovalActorId?: string;
@@ -222,6 +224,29 @@ export class ClaimDetailV2ResponseDto {
insuranceCorpId?: number;
};
@ApiPropertyOptional({
description:
"Expert-approved vehicle classification used for Fanavaran submissions.",
})
fanavaranVehicleReview?: {
vehicleGroup: { id: number; caption: string; name?: string };
vehicleUseType: { id: number; caption: string; vehicleGroupId?: number };
vehicleSystem: { id: number; caption: string; vehicleGroupId?: number };
vehicleKind: {
id: number;
caption: string;
vehicleGroupId?: number;
vehicleSystemId?: number;
vehicleSystemCaption?: string;
};
approved: boolean;
approvedAt: Date | string;
approvedByActorId: string;
approvedByActorName?: string;
approvedByRole: string;
version: number;
};
@ApiPropertyOptional({
description:
"Slice of `claim.evaluation` exposed to the damage expert. " +