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:
@@ -18,6 +18,18 @@ export class ClaimDamageSelection {
|
||||
@Prop({ type: [String], default: [] })
|
||||
otherParts?: string[];
|
||||
|
||||
/**
|
||||
* Append-only expert edit revisions. Each revision preserves the prior
|
||||
* selection and capture metadata for removed parts before the live arrays
|
||||
* are replaced. Mixed keeps legacy/free-text part shapes readable.
|
||||
*/
|
||||
@Prop({ type: [MongooseSchema.Types.Mixed], default: [] })
|
||||
partSelectionHistory?: unknown[];
|
||||
|
||||
/** Parts introduced by an expert across revisions (used for origin labels). */
|
||||
@Prop({ type: [MongooseSchema.Types.Mixed], default: [] })
|
||||
expertAddedParts?: unknown[];
|
||||
|
||||
/**
|
||||
* Legacy fields - kept for backward compatibility
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user