forked from Yara724/api
YARA-1135
This commit is contained in:
@@ -77,6 +77,19 @@ export class ClaimListItemV2Dto {
|
||||
example: true,
|
||||
})
|
||||
requiresFileMakerApproval?: boolean;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
"V5 only. Number of times the FileMaker has rejected this claim (0–2). When this reaches 2 the FileMaker can only approve.",
|
||||
example: 1,
|
||||
})
|
||||
fileMakerRejectionCount?: number;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: "V5 only. Reason text supplied with the most recent FileMaker rejection.",
|
||||
example: "Damage assessment is incorrect — please re-evaluate parts X and Y",
|
||||
})
|
||||
fileMakerRejectionReason?: string;
|
||||
}
|
||||
|
||||
export class GetClaimListV2ResponseDto {
|
||||
|
||||
@@ -22,4 +22,5 @@ export class BusinessRuleException extends HttpException {
|
||||
|
||||
export const BusinessErrorCode = {
|
||||
DAMAGE_EXPERT_RESEND_LIMIT_EXCEEDED: "DAMAGE_EXPERT_RESEND_LIMIT_EXCEEDED",
|
||||
FILE_MAKER_REJECTION_LIMIT_EXCEEDED: "FILE_MAKER_REJECTION_LIMIT_EXCEEDED",
|
||||
} as const;
|
||||
|
||||
@@ -4257,6 +4257,9 @@ export class ExpertClaimService {
|
||||
(!!blame?.isMadeByFileMaker &&
|
||||
String(blame?.status ?? "") === "WAITING_FOR_EXPERT"),
|
||||
assignedToMe: !!assignedToMe,
|
||||
requiresFileMakerApproval: !!(c as any).requiresFileMakerApproval,
|
||||
fileMakerRejectionCount: (c as any).fileMakerRejectionCount ?? 0,
|
||||
fileMakerRejectionReason: (c as any).fileMakerRejectionReason ?? undefined,
|
||||
};
|
||||
}) as ClaimListItemV2Dto[];
|
||||
|
||||
@@ -4330,6 +4333,8 @@ export class ExpertClaimService {
|
||||
createdAt: c.createdAt,
|
||||
awaitingFactorValidation: claimIsAwaitingExpertFactorValidationV2(c),
|
||||
requiresFileMakerApproval: !!(c as any).requiresFileMakerApproval,
|
||||
fileMakerRejectionCount: (c as any).fileMakerRejectionCount ?? 0,
|
||||
fileMakerRejectionReason: (c as any).fileMakerRejectionReason ?? undefined,
|
||||
needsFileReviewerCompletion:
|
||||
String(blame?.status ?? "") === "WAITING_FOR_FILE_REVIEWER" ||
|
||||
(!!blame?.isMadeByFileMaker &&
|
||||
|
||||
Reference in New Issue
Block a user