From 5df39b502e592d73389c3029b061a740a9d9c74c Mon Sep 17 00:00:00 2001 From: SepehrYahyaee <7heycallmegray@gmail.com> Date: Wed, 1 Jul 2026 17:44:44 +0330 Subject: [PATCH] Added blame Id for claims --- src/expert-claim/dto/claim-list-v2.dto.ts | 6 ++++++ src/expert-claim/expert-claim.service.ts | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/expert-claim/dto/claim-list-v2.dto.ts b/src/expert-claim/dto/claim-list-v2.dto.ts index 8cdb453..a64a109 100644 --- a/src/expert-claim/dto/claim-list-v2.dto.ts +++ b/src/expert-claim/dto/claim-list-v2.dto.ts @@ -56,6 +56,12 @@ export class ClaimListItemV2Dto { }) carBodyFirstForm?: { car?: boolean; object?: boolean }; + @ApiPropertyOptional({ + description: 'Linked blame file ID (present when the claim originates from a blame case)', + example: '6a3a6f171aadfa0cc313c582', + }) + blameRequestId?: string; + @ApiProperty({ description: 'Submission date', example: '2026-02-22T10:00:00.000Z' }) createdAt: string; diff --git a/src/expert-claim/expert-claim.service.ts b/src/expert-claim/expert-claim.service.ts index d0cfb91..b67677e 100644 --- a/src/expert-claim/expert-claim.service.ts +++ b/src/expert-claim/expert-claim.service.ts @@ -3796,6 +3796,7 @@ export class ExpertClaimService { ? { carName: v.carName, carModel: v.carModel, carType: v.carType } : undefined, ...fileCtx, + blameRequestId: c.blameRequestId?.toString(), createdAt: c.createdAt, awaitingFactorValidation, }; @@ -3881,6 +3882,7 @@ export class ExpertClaimService { ? { carName: v.carName, carModel: v.carModel, carType: v.carType } : undefined, ...fileCtx, + blameRequestId: c.blameRequestId?.toString(), createdAt: c.createdAt, awaitingFactorValidation: claimIsAwaitingExpertFactorValidationV2(c), needsFileReviewerCompletion: @@ -3971,6 +3973,7 @@ export class ExpertClaimService { ? { carName: v.carName, carModel: v.carModel, carType: v.carType } : undefined, ...fileCtx, + blameRequestId: c.blameRequestId?.toString(), createdAt: c.createdAt, awaitingFactorValidation: claimIsAwaitingExpertFactorValidationV2(c), needsFileReviewerCompletion: