forked from Yara724/api
V4: add WAITING_FOR_FILE_REVIEWER claim status; fix select-outer-parts for split flow
- Add ClaimCaseStatus.WAITING_FOR_FILE_REVIEWER (V4 split flow only) - Set claim status to WAITING_FOR_FILE_REVIEWER when FileMaker uploads the last required document (v3InPersonFlow path), replacing the old behaviour that incorrectly auto-advanced to SELECT_OUTER_PARTS - advanceV3ClaimToOuterPartsIfReady: also allow canAdvance when claimCase.status === WAITING_FOR_FILE_REVIEWER so the FileReviewer can call select-outer-parts after submitting accident fields - Add WAITING_FOR_FILE_REVIEWER to CLAIM_USER_PHASE (unified-file-status) so the file still resolves to IN_PROGRESS in the unified status report - Add WAITING_FOR_FILE_REVIEWER to CLAIM_IN_PROGRESS_STATUSES (expert-panel-status-report) for the expert report bucket - Add WAITING_FOR_FILE_REVIEWER to claimInHandling set (expert-insurer.service) so insurer stats count these correctly
This commit is contained in:
@@ -34,7 +34,15 @@ export enum ClaimCaseStatus {
|
||||
|
||||
/** All required factor files are uploaded; damage expert validates factors (`UNDER_REVIEW` @ `EXPERT_COST_EVALUATION`). */
|
||||
EXPERT_VALIDATING_REPAIR_FACTORS = "EXPERT_VALIDATING_REPAIR_FACTORS",
|
||||
|
||||
|
||||
/**
|
||||
* V4 split flow only. FileMaker has uploaded all initial required documents;
|
||||
* the file is sealed and waiting for a FileReviewer to pick it up (accident fields,
|
||||
* capture, and final blame video). Transitions to SELECTING_OUTER_PARTS when the
|
||||
* FileReviewer calls select-outer-parts after submitting accident fields.
|
||||
*/
|
||||
WAITING_FOR_FILE_REVIEWER = "WAITING_FOR_FILE_REVIEWER",
|
||||
|
||||
// Final states
|
||||
COMPLETED = "COMPLETED",
|
||||
CANCELLED = "CANCELLED",
|
||||
|
||||
Reference in New Issue
Block a user