1
0
forked from Yara724/api

merge upstream

This commit is contained in:
2026-07-01 15:13:52 +03:30
18 changed files with 1335 additions and 29 deletions

View File

@@ -423,6 +423,14 @@ export class ClaimRequestManagementService {
: this.isRequiredDocumentUploadedOnClaim(claimCase, k);
if (!ok) return false;
}
if (isCarBody) {
const g = ClaimRequiredDocumentType.CAR_GREEN_CARD;
const ok =
assumeUploadedKey === g
? true
: this.isRequiredDocumentUploadedOnClaim(claimCase, g);
if (!ok) return false;
}
return true;
}
@@ -439,6 +447,14 @@ export class ClaimRequestManagementService {
: this.isRequiredDocumentUploadedOnClaim(claimCase, k);
if (!ok) n++;
}
if (isCarBody) {
const g = ClaimRequiredDocumentType.CAR_GREEN_CARD;
const ok =
assumeUploadedKey === g
? true
: this.isRequiredDocumentUploadedOnClaim(claimCase, g);
if (!ok) n++;
}
return n;
}
@@ -7990,8 +8006,8 @@ export class ClaimRequestManagementService {
);
}
// Initial flow: each document once. Expert resend: allow replacement.
if (!isResendUpload) {
// Initial flow: each document once. Expert resend and v3 in-person: allow replacement.
if (!isResendUpload && !options?.v3InPersonFlow) {
const existingDoc =
(claimCase.requiredDocuments as any)?.get?.(body.documentKey) ??
(claimCase.requiredDocuments as any)?.[body.documentKey];