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

@@ -61,7 +61,6 @@ import { ListQueryV2Dto } from "src/common/dto/list-query-v2.dto";
import { ClaimDetailsV2ResponseDto } from "./dto/claim-details-v2.dto";
import { UserObjectionV2Dto } from "./dto/user-objection-v2.dto";
import { UserRatingDto } from "./dto/user-rating.dto";
import { ClaimVehicleTypeV2 } from "src/static/outer-car-parts-catalog";
@ApiTags("claim-request-management (v2)")
@Controller("v2/claim-request-management")
@@ -452,17 +451,15 @@ export class ClaimRequestManagementV2Controller {
@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("branches/:insuranceId")