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:
@@ -204,6 +204,33 @@ export class ClaimDetailsV2ResponseDto {
|
||||
fileName?: string;
|
||||
}>;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
'Append-only expert damaged-part revisions. Removed rows retain their original capture URL.',
|
||||
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:
|
||||
'Damage expert resend instructions and progress (when status is WAITING_FOR_USER_RESEND).',
|
||||
|
||||
Reference in New Issue
Block a user