forked from Yara724/api
YARA-1177
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user