forked from Yara724/api
fix: harden claim review and inquiry workflows
Preserve damage history and current vehicle price, restore depreciation mapping, normalize inquiry/report output, and support resumable expert review with paginated case retrieval.
This commit is contained in:
@@ -131,6 +131,33 @@ export class ClaimDetailV2ResponseDto {
|
||||
url?: string;
|
||||
}>;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
"Append-only expert damaged-part revisions. Removed rows retain their original capture URL even after the authoritative selection changes.",
|
||||
type: "array",
|
||||
items: {
|
||||
type: "object",
|
||||
properties: {
|
||||
revisionId: { type: "string" },
|
||||
changedAt: { type: "string", format: "date-time" },
|
||||
changedBy: { type: "object" },
|
||||
removedParts: { type: "array", items: { type: "object" } },
|
||||
addedParts: { type: "array", items: { type: "object" } },
|
||||
},
|
||||
},
|
||||
})
|
||||
damagedPartsHistory?: Array<{
|
||||
revisionId: string;
|
||||
changedAt: Date | string;
|
||||
changedBy: {
|
||||
actorId: string;
|
||||
actorName?: string;
|
||||
actorType: string;
|
||||
};
|
||||
removedParts: Array<Record<string, unknown>>;
|
||||
addedParts: Array<Record<string, unknown>>;
|
||||
}>;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
"True when user uploaded all required factors and the case awaits expert approve/reject.",
|
||||
|
||||
Reference in New Issue
Block a user