forked from Yara724/api
Merge pull request 'Returning missing objects from v5' (#231) from s.yahyaee/yara724-api:main into main
Reviewed-on: Yara724/api#231
This commit is contained in:
@@ -138,6 +138,25 @@ export class ClaimDetailV2ResponseDto {
|
||||
})
|
||||
requiresFileMakerApproval?: boolean;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
"V5 only. Number of times the FileMaker has rejected this claim (0–2). When 2, the next action must be approval.",
|
||||
example: 1,
|
||||
})
|
||||
fileMakerRejectionCount?: number;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
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.",
|
||||
example: "6a43a2689faee3d20bf24030",
|
||||
})
|
||||
fileMakerApprovalActorId?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
"Slice of `claim.evaluation` exposed to the damage expert. " +
|
||||
|
||||
@@ -5105,6 +5105,11 @@ export class ExpertClaimService {
|
||||
damagedParts,
|
||||
awaitingFactorValidation: isFactorValidationPending,
|
||||
requiresFileMakerApproval: !!(claim as any).requiresFileMakerApproval,
|
||||
fileMakerRejectionCount: (claim as any).fileMakerRejectionCount ?? 0,
|
||||
fileMakerRejectionReason: (claim as any).fileMakerRejectionReason ?? undefined,
|
||||
fileMakerApprovalActorId: (claim as any).fileMakerApprovalActorId
|
||||
? String((claim as any).fileMakerApprovalActorId)
|
||||
: undefined,
|
||||
evaluation:
|
||||
(evaluationForApi as
|
||||
| ClaimDetailV2ResponseDto["evaluation"]
|
||||
|
||||
Reference in New Issue
Block a user