YARA-1177

This commit is contained in:
2026-07-31 19:45:33 +03:30
parent e742d43201
commit 77cf420c33
9 changed files with 1100 additions and 303 deletions

View File

@@ -50,7 +50,6 @@ import {
import { FactorValidationV2Dto } from "./dto/factor-validation.dto";
import { ClaimRequestManagementService } from "src/claim-request-management/claim-request-management.service";
import { OuterPartCatalogItemDto } from "src/claim-request-management/dto/select-outer-parts-v2.dto";
import { ClaimVehicleTypeV2 } from "src/static/outer-car-parts-catalog";
class InPersonVisitV2Dto {
@ApiPropertyOptional({ example: "Paint damage requires physical inspection" })
@@ -105,17 +104,15 @@ export class ExpertClaimV2Controller {
@ApiOperation({
summary: "Get outer parts catalog (V2)",
description:
"Returns outer-damage parts with id/key/side. Optional `carType` filter returns only that type catalog.",
"Returns the Fanavaran car-components list. All vehicle types share the same catalog.",
})
@ApiResponse({
status: 200,
description: "Outer parts catalog",
type: [OuterPartCatalogItemDto],
})
async getOuterPartsCatalog(
@Query("carType") carType?: ClaimVehicleTypeV2,
): Promise<OuterPartCatalogItemDto[]> {
return this.claimRequestManagementService.getOuterPartsCatalogV2(carType);
async getOuterPartsCatalog(): Promise<OuterPartCatalogItemDto[]> {
return await this.claimRequestManagementService.getOuterPartsCatalogV2();
}
@Get("inner-parts-catalog")