Merge pull request 'Added blame Id for claims' (#169) from s.yahyaee/yara724-api:main into main

Reviewed-on: Yara724/api#169
This commit is contained in:
2026-07-01 17:45:21 +03:30
2 changed files with 9 additions and 0 deletions

View File

@@ -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;

View File

@@ -3826,6 +3826,7 @@ export class ExpertClaimService {
? { carName: v.carName, carModel: v.carModel, carType: v.carType }
: undefined,
...fileCtx,
blameRequestId: c.blameRequestId?.toString(),
createdAt: c.createdAt,
awaitingFactorValidation,
};
@@ -3911,6 +3912,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:
@@ -4001,6 +4003,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: