forked from Yara724/api
YARA-1216
This commit is contained in:
@@ -33,7 +33,7 @@ import { SendPartyOtpDto, VerifyPartyOtpDto } from "./dto/party-otp.dto";
|
||||
import { RunInquiriesV3Dto, RunInquiriesVinV3Dto } from "./dto/run-inquiries-v3.dto";
|
||||
import {
|
||||
CarBodyFormDto,
|
||||
DescriptionDto,
|
||||
DescriptionV4Dto,
|
||||
LocationDto,
|
||||
} from "./dto/create-request-management.dto";
|
||||
import { RequestManagementService } from "./request-management.service";
|
||||
@@ -260,15 +260,20 @@ export class FileMakerBlameV4Controller {
|
||||
|
||||
@Post("add-detail-description/:requestId")
|
||||
@ApiParam({ name: "requestId" })
|
||||
@ApiBody({ type: DescriptionDto })
|
||||
@ApiOperation({ summary: "Add description for current party" })
|
||||
@ApiBody({ type: DescriptionV4Dto })
|
||||
@ApiOperation({
|
||||
summary: "Add description for current party (V4)",
|
||||
description:
|
||||
"Saves description, accidentDate, and accidentTime on the party statement. " +
|
||||
"accidentDate and accidentTime are required for all V4 files (THIRD_PARTY and CAR_BODY alike).",
|
||||
})
|
||||
async addDescription(
|
||||
@Param("requestId") requestId: string,
|
||||
@Body() body: DescriptionDto,
|
||||
@Body() body: DescriptionV4Dto,
|
||||
@CurrentUser() fileMaker: any,
|
||||
@Body("partyRole") partyRole?: string,
|
||||
) {
|
||||
return this.requestManagementService.addPartyDescriptionV3(
|
||||
return this.requestManagementService.addPartyDescriptionV4(
|
||||
requestId,
|
||||
fileMaker,
|
||||
body,
|
||||
|
||||
Reference in New Issue
Block a user