forked from Yara724/api
YARA-1094, YARA-1095, YARA-1096
This commit is contained in:
@@ -38,6 +38,7 @@ import {
|
||||
CreateClaimExpertByInsurerDto,
|
||||
CreateFileMakerByInsurerDto,
|
||||
CreateFileReviewerByInsurerDto,
|
||||
CreateFinancialExpertByInsurerDto,
|
||||
} from "./dto/create-insurer-expert.dto";
|
||||
|
||||
@Controller("expert-insurer")
|
||||
@@ -182,6 +183,23 @@ export class ExpertInsurerController {
|
||||
return this.expertInsurerService.addFileReviewer(insurer.clientKey, body);
|
||||
}
|
||||
|
||||
@Post("experts/financial-expert")
|
||||
@ApiBody({ type: CreateFinancialExpertByInsurerDto })
|
||||
@ApiOperation({
|
||||
summary: "Create a FinancialExpert account under this insurer (V5 flow)",
|
||||
description:
|
||||
"FinancialExperts are the final approvers in the V5 blame flow before fanavaran submission.",
|
||||
})
|
||||
async addFinancialExpert(
|
||||
@CurrentUser() insurer,
|
||||
@Body() body: CreateFinancialExpertByInsurerDto,
|
||||
) {
|
||||
if (!insurer) {
|
||||
throw new UnauthorizedException("Could not identify the current user.");
|
||||
}
|
||||
return this.expertInsurerService.addFinancialExpert(insurer.clientKey, body);
|
||||
}
|
||||
|
||||
@ApiQuery({ name: "page", type: Number })
|
||||
@ApiQuery({ name: "response_count", type: Number })
|
||||
@Get("experts/list")
|
||||
|
||||
Reference in New Issue
Block a user