forked from Yara724/api
YARA-830
This commit is contained in:
@@ -117,8 +117,7 @@ export class AllRequestDtoV2 {
|
||||
type: string;
|
||||
blameStatus: string;
|
||||
partiesInitialForms: { firstParty: string; secondParty: string };
|
||||
firstPartyVehicle: string;
|
||||
secondPartyVehicle?: string;
|
||||
partiesVehicles: { firstPartyVehicle: string; secondPartyVehicle: string };
|
||||
}
|
||||
|
||||
export class AllRequestDtoRsV2 {
|
||||
|
||||
@@ -352,6 +352,15 @@ export class ExpertBlameService {
|
||||
const workflow = (doc.workflow ?? {}) as Record<string, unknown>;
|
||||
const parties = (doc.parties ?? []) as Array<{
|
||||
role?: string;
|
||||
vehicle?: {
|
||||
name?: string;
|
||||
inquiry?: {
|
||||
mapped?: {
|
||||
MapTypNam?: string;
|
||||
CarName?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
statement?: {
|
||||
admitsGuilt?: boolean;
|
||||
claimsDamage?: boolean;
|
||||
@@ -381,8 +390,19 @@ export class ExpertBlameService {
|
||||
firstParty: statementToFormKey(firstParty?.statement) ?? "",
|
||||
secondParty: statementToFormKey(secondParty?.statement) ?? "",
|
||||
},
|
||||
firstPartyVehicle: doc.parties[0]?.person?.vehicle?.name,
|
||||
secondPartyVehicle: doc.parties[1]?.person?.vehicle?.name,
|
||||
partiesVehicles: {
|
||||
firstPartyVehicle:
|
||||
firstParty?.vehicle?.name ||
|
||||
firstParty?.vehicle?.inquiry?.mapped?.MapTypNam ||
|
||||
firstParty?.vehicle?.inquiry?.mapped?.CarName ||
|
||||
"",
|
||||
secondPartyVehicle:
|
||||
secondParty?.vehicle?.name ||
|
||||
secondParty?.vehicle?.inquiry?.mapped?.MapTypNam ||
|
||||
secondParty?.vehicle?.inquiry?.mapped?.CarName ||
|
||||
"",
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user