forked from Yara724/api
Fixed claim/blame damagedParts
This commit is contained in:
@@ -13,11 +13,12 @@ export class ClaimPartPricing {
|
||||
partId: string;
|
||||
|
||||
/**
|
||||
* Legacy string or structured `{ part, side }` from expert reply DTOs (V1/V2).
|
||||
* Unified outer-part snapshot `{ id?, name, side, label_fa, catalogKey? }` (same as
|
||||
* `damage.selectedParts` / capture). Legacy: string or `{ part?, side? }` (expert UI).
|
||||
* Must be Mixed — objects cannot cast to String.
|
||||
*/
|
||||
@Prop({ type: MongooseSchema.Types.Mixed })
|
||||
carPartDamage?: string | { part?: string; side?: string };
|
||||
carPartDamage?: unknown;
|
||||
|
||||
@Prop({ type: String })
|
||||
typeOfDamage?: string;
|
||||
|
||||
Reference in New Issue
Block a user