YARA-1216

This commit is contained in:
SepehrYahyaee
2026-08-09 10:36:45 +03:30
parent 473075e546
commit 3821bf36ef
3 changed files with 104 additions and 5 deletions

View File

@@ -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,