forked from Yara724/api
YARA-885
This commit is contained in:
@@ -35,7 +35,7 @@ export class CaptchaChallengeService {
|
||||
|
||||
return {
|
||||
captchaId,
|
||||
text: generated.text,
|
||||
text: generated.text, /* TODO: REMOVE THIS FOR PROD*/
|
||||
image: generated.image,
|
||||
expiresAt: generated.expiresAt,
|
||||
};
|
||||
|
||||
@@ -279,6 +279,11 @@ export class ExpertBlameService {
|
||||
buckets.all++;
|
||||
buckets[key] = (buckets[key] ?? 0) + 1;
|
||||
}
|
||||
|
||||
// Adding extra fields for front-end
|
||||
buckets["PENDING_ON_USER"] = buckets[CaseStatus.WAITING_FOR_DOCUMENT_RESEND] + buckets[CaseStatus.WAITING_FOR_SIGNATURES];
|
||||
buckets["CHECK_NEEDED"] = buckets["PENDING_ON_USER"] + buckets[CaseStatus.WAITING_FOR_EXPERT];
|
||||
|
||||
return buckets;
|
||||
}
|
||||
|
||||
|
||||
@@ -3195,6 +3195,11 @@ export class ExpertClaimService {
|
||||
buckets.all++;
|
||||
buckets[key] = (buckets[key] ?? 0) + 1;
|
||||
}
|
||||
|
||||
// Add new calculated fields for front-end
|
||||
buckets["PENDING_ON_USER"] = buckets[ClaimCaseStatus.WAITING_FOR_USER_RESEND] + buckets[ClaimCaseStatus.WAITING_FOR_INSURER_APPROVAL] + buckets[ClaimCaseStatus.INSURER_REVIEW_AWAITING_OWNER_SIGN] + buckets[ClaimCaseStatus.INSURER_REVIEW_MIXED_FACTORS_PENDING] + buckets[ClaimCaseStatus.OWNER_REPAIR_FACTOR_UPLOAD_PENDING];
|
||||
buckets["CHECK_NEEDED"] = buckets["PENDING_ON_USER"] + buckets[ClaimCaseStatus.WAITING_FOR_DAMAGE_EXPERT]
|
||||
|
||||
return buckets;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ import { ClaimCaseStatus } from "src/Types&Enums/claim-request-management/claim-
|
||||
|
||||
/** Blame: early workflow before expert queue / resend / signatures / terminals. */
|
||||
const BLAME_IN_PROGRESS_STATUSES = new Set<string>([
|
||||
CaseStatus.OPEN,
|
||||
CaseStatus.WAITING_FOR_SECOND_PARTY,
|
||||
// CaseStatus.OPEN,
|
||||
// CaseStatus.WAITING_FOR_SECOND_PARTY,
|
||||
]);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user