forked from Yara724/api
Merge pull request 'Fix data returning owner on claimDetails' (#49) from s.yahyaee/yara724-api:main into main
Reviewed-on: Yara724/api#49
This commit is contained in:
@@ -5439,6 +5439,10 @@ export class ClaimRequestManagementService {
|
|||||||
const ownerData = claim.owner
|
const ownerData = claim.owner
|
||||||
? {
|
? {
|
||||||
userId: claim.owner.userId?.toString(),
|
userId: claim.owner.userId?.toString(),
|
||||||
|
clientId: claim.owner.clientId?.toString(),
|
||||||
|
...(claim.owner.userClientKey
|
||||||
|
? { userClientKey: claim.owner.userClientKey.toString() }
|
||||||
|
: {}),
|
||||||
fullName: claim.owner.fullName,
|
fullName: claim.owner.fullName,
|
||||||
}
|
}
|
||||||
: undefined;
|
: undefined;
|
||||||
@@ -5467,7 +5471,7 @@ export class ClaimRequestManagementService {
|
|||||||
nextStep: claim.workflow?.nextStep,
|
nextStep: claim.workflow?.nextStep,
|
||||||
blameRequestId: claim.blameRequestId?.toString(),
|
blameRequestId: claim.blameRequestId?.toString(),
|
||||||
blameRequestNo: claim.blameRequestNo,
|
blameRequestNo: claim.blameRequestNo,
|
||||||
...(isExpertViewer ? { owner: ownerData } : {}),
|
...(ownerData ? { owner: ownerData } : {}),
|
||||||
vehicle: claim.vehicle,
|
vehicle: claim.vehicle,
|
||||||
selectedParts: claim.damage?.selectedParts,
|
selectedParts: claim.damage?.selectedParts,
|
||||||
otherParts: claim.damage?.otherParts,
|
otherParts: claim.damage?.otherParts,
|
||||||
|
|||||||
@@ -43,9 +43,13 @@ export class ClaimDetailsV2ResponseDto {
|
|||||||
@ApiPropertyOptional({ description: 'Blame request number' })
|
@ApiPropertyOptional({ description: 'Blame request number' })
|
||||||
blameRequestNo?: string;
|
blameRequestNo?: string;
|
||||||
|
|
||||||
@ApiPropertyOptional({ description: 'Owner info' })
|
@ApiPropertyOptional({
|
||||||
|
description: 'Claim owner (damaged party): ids for the user and their insurer client scope',
|
||||||
|
})
|
||||||
owner?: {
|
owner?: {
|
||||||
userId: string;
|
userId: string;
|
||||||
|
clientId?: string;
|
||||||
|
userClientKey?: string;
|
||||||
fullName?: string;
|
fullName?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user