forked from Yara724/api
Returning missing objects from v5
This commit is contained in:
@@ -138,6 +138,25 @@ export class ClaimDetailV2ResponseDto {
|
|||||||
})
|
})
|
||||||
requiresFileMakerApproval?: boolean;
|
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({
|
@ApiPropertyOptional({
|
||||||
description:
|
description:
|
||||||
"Slice of `claim.evaluation` exposed to the damage expert. " +
|
"Slice of `claim.evaluation` exposed to the damage expert. " +
|
||||||
|
|||||||
@@ -5105,6 +5105,11 @@ export class ExpertClaimService {
|
|||||||
damagedParts,
|
damagedParts,
|
||||||
awaitingFactorValidation: isFactorValidationPending,
|
awaitingFactorValidation: isFactorValidationPending,
|
||||||
requiresFileMakerApproval: !!(claim as any).requiresFileMakerApproval,
|
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:
|
evaluation:
|
||||||
(evaluationForApi as
|
(evaluationForApi as
|
||||||
| ClaimDetailV2ResponseDto["evaluation"]
|
| ClaimDetailV2ResponseDto["evaluation"]
|
||||||
|
|||||||
Reference in New Issue
Block a user