forked from Yara724/api
Fixed v4/v5 car capture flow
This commit is contained in:
@@ -51,8 +51,7 @@ import { GetCaptureRequirementsV2ResponseDto } from "src/claim-request-managemen
|
||||
*
|
||||
* The FileReviewer picks up a sealed file (both signatures collected by the
|
||||
* FileMaker) and completes the damage-assessment portion: accident fields,
|
||||
* documents, part selection, photo capture, walk-around video, and the final
|
||||
* blame accident video that moves the file to WAITING_FOR_EXPERT.
|
||||
* documents, part selection, photo capture, and walk-around video (final step).
|
||||
*
|
||||
* Sequence:
|
||||
* accident-fields
|
||||
@@ -61,9 +60,11 @@ import { GetCaptureRequirementsV2ResponseDto } from "src/claim-request-managemen
|
||||
* → select-outer-parts
|
||||
* → select-other-parts
|
||||
* → capture-part (damaged-part photos + four angles)
|
||||
* → upload-document (chassis / engine / metal plate — capture phase)
|
||||
* → car-capture (walk-around video)
|
||||
* → upload-video (blame accident video — final, moves to WAITING_FOR_EXPERT)
|
||||
* → upload-document (chassis / engine — capture phase)
|
||||
* → car-capture (walk-around video — FINAL FileReviewer step)
|
||||
* ↳ claim → WAITING_FOR_DAMAGE_EXPERT, blame → COMPLETED
|
||||
*
|
||||
* NOTE: upload-video is a no-op for V4 (blame is already COMPLETED by car-capture).
|
||||
*/
|
||||
@ApiTags("v4 FileReviewer — blame file review & capture")
|
||||
@Controller("v4/file-reviewer/blame-request-management")
|
||||
@@ -341,9 +342,10 @@ export class FileReviewerBlameV4Controller {
|
||||
},
|
||||
})
|
||||
@ApiOperation({
|
||||
summary: "Walk-around video",
|
||||
summary: "Walk-around video (final FileReviewer step — V4)",
|
||||
description:
|
||||
"Upload after capture-part is complete (parts, angles, capture-phase docs). Required before the final blame accident video.",
|
||||
"Last FileReviewer action. Upload after capture-part is complete (parts, angles, chassis/engine docs). " +
|
||||
"Finalises the claim → WAITING_FOR_DAMAGE_EXPERT and marks the blame as COMPLETED.",
|
||||
})
|
||||
async carCapture(
|
||||
@Param("claimRequestId") claimRequestId: string,
|
||||
@@ -384,10 +386,10 @@ export class FileReviewerBlameV4Controller {
|
||||
@Post("upload-video/:requestId")
|
||||
@ApiParam({ name: "requestId" })
|
||||
@ApiOperation({
|
||||
summary: "Blame accident video (FileReviewer final step — optional)",
|
||||
summary: "Blame accident video (no-op for V4 — car-capture is the final step)",
|
||||
description:
|
||||
"Last step of the V4 flow. Requires claim walk-around video and completed capture. " +
|
||||
"File is optional — omit it to complete the blame without attaching a video.",
|
||||
"Deprecated for V4. The blame is already COMPLETED by car-capture. " +
|
||||
"Calling this endpoint returns an idempotent success response.",
|
||||
})
|
||||
async uploadBlameVideo(
|
||||
@Param("requestId") requestId: string,
|
||||
|
||||
Reference in New Issue
Block a user