Added blame Id for claims

This commit is contained in:
SepehrYahyaee
2026-07-01 17:44:44 +03:30
parent 29939eee20
commit 5df39b502e
2 changed files with 9 additions and 0 deletions

View File

@@ -56,6 +56,12 @@ export class ClaimListItemV2Dto {
}) })
carBodyFirstForm?: { car?: boolean; object?: boolean }; 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' }) @ApiProperty({ description: 'Submission date', example: '2026-02-22T10:00:00.000Z' })
createdAt: string; createdAt: string;

View File

@@ -3796,6 +3796,7 @@ export class ExpertClaimService {
? { carName: v.carName, carModel: v.carModel, carType: v.carType } ? { carName: v.carName, carModel: v.carModel, carType: v.carType }
: undefined, : undefined,
...fileCtx, ...fileCtx,
blameRequestId: c.blameRequestId?.toString(),
createdAt: c.createdAt, createdAt: c.createdAt,
awaitingFactorValidation, awaitingFactorValidation,
}; };
@@ -3881,6 +3882,7 @@ export class ExpertClaimService {
? { carName: v.carName, carModel: v.carModel, carType: v.carType } ? { carName: v.carName, carModel: v.carModel, carType: v.carType }
: undefined, : undefined,
...fileCtx, ...fileCtx,
blameRequestId: c.blameRequestId?.toString(),
createdAt: c.createdAt, createdAt: c.createdAt,
awaitingFactorValidation: claimIsAwaitingExpertFactorValidationV2(c), awaitingFactorValidation: claimIsAwaitingExpertFactorValidationV2(c),
needsFileReviewerCompletion: needsFileReviewerCompletion:
@@ -3971,6 +3973,7 @@ export class ExpertClaimService {
? { carName: v.carName, carModel: v.carModel, carType: v.carType } ? { carName: v.carName, carModel: v.carModel, carType: v.carType }
: undefined, : undefined,
...fileCtx, ...fileCtx,
blameRequestId: c.blameRequestId?.toString(),
createdAt: c.createdAt, createdAt: c.createdAt,
awaitingFactorValidation: claimIsAwaitingExpertFactorValidationV2(c), awaitingFactorValidation: claimIsAwaitingExpertFactorValidationV2(c),
needsFileReviewerCompletion: needsFileReviewerCompletion: