forked from Yara724/api
YARA-1133
This commit is contained in:
@@ -28,6 +28,7 @@ import { MediaPolicyService } from "src/media-policy/media-policy.service";
|
||||
import { DEFAULT_MEDIA_MAX_BYTES } from "src/client/client.service";
|
||||
import { RoleEnum } from "src/Types&Enums/role.enum";
|
||||
import { AddPlateDto } from "src/profile/dto/user/AddPlateDto";
|
||||
import { InitialFormVinDto } from "./dto/create-request-management.dto";
|
||||
import {
|
||||
CarBodyFormDto,
|
||||
DescriptionDto,
|
||||
@@ -165,6 +166,29 @@ export class RegistrarBlameMirrorController {
|
||||
);
|
||||
}
|
||||
|
||||
@Post("/initial-form-vin/:requestId")
|
||||
@ApiParam({ name: "requestId" })
|
||||
@ApiBody({ type: InitialFormVinDto })
|
||||
@ApiOperation({
|
||||
summary: "[Registrar mirror] Initial form via VIN/chassis inquiry for current party",
|
||||
description:
|
||||
"VIN alternative to initial-form. Uses ESG chassis lookup instead of plate-based inquiry. " +
|
||||
"Fills the FIRST or SECOND party insurance/vehicle data depending on the current workflow step.",
|
||||
})
|
||||
async initialFormVin(
|
||||
@Param("requestId") requestId: string,
|
||||
@Body() body: InitialFormVinDto,
|
||||
@CurrentUser() registrar: any,
|
||||
@Body("partyRole") partyRole?: string,
|
||||
) {
|
||||
return this.requestManagementService.initialFormVinV2(
|
||||
requestId,
|
||||
body,
|
||||
registrar,
|
||||
partyRole,
|
||||
);
|
||||
}
|
||||
|
||||
@ApiBody({
|
||||
schema: {
|
||||
type: "object",
|
||||
|
||||
Reference in New Issue
Block a user