forked from Yara724/api
YARA-743
This commit is contained in:
@@ -15,6 +15,7 @@ import { CurrentUser } from "src/decorators/user.decorator";
|
||||
import { RoleEnum } from "src/Types&Enums/role.enum";
|
||||
import { ExpertClaimService } from "./expert-claim.service";
|
||||
import { SubmitExpertReplyV2Dto } from "./dto/expert-claim-v2.dto";
|
||||
import { UpdateClaimDamagedPartsV2Dto } from "./dto/update-claim-damaged-parts-v2.dto";
|
||||
|
||||
class InPersonVisitV2Dto {
|
||||
@ApiPropertyOptional({ example: 'Paint damage requires physical inspection' })
|
||||
@@ -107,4 +108,24 @@ export class ExpertClaimV2Controller {
|
||||
body?.note,
|
||||
);
|
||||
}
|
||||
|
||||
@Patch("request/:claimRequestId/damaged-parts")
|
||||
@ApiOperation({
|
||||
summary: "Edit selected damaged parts (V2)",
|
||||
description:
|
||||
"Damage expert can modify selected damaged parts while claim is in EXPERT_REVIEWING and locked by the same expert.",
|
||||
})
|
||||
@ApiParam({ name: "claimRequestId" })
|
||||
@ApiBody({ type: UpdateClaimDamagedPartsV2Dto })
|
||||
async updateClaimDamagedPartsV2(
|
||||
@Param("claimRequestId") claimRequestId: string,
|
||||
@Body() body: UpdateClaimDamagedPartsV2Dto,
|
||||
@CurrentUser() actor,
|
||||
) {
|
||||
return await this.expertClaimService.updateClaimDamagedPartsV2(
|
||||
claimRequestId,
|
||||
body,
|
||||
actor,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user