forked from Yara724/api
car body implemented
This commit is contained in:
@@ -36,6 +36,85 @@ export class LookupsController {
|
||||
return await this.lookupsService.getAccidentCauses();
|
||||
}
|
||||
|
||||
@Get("vehicle-hull-accident-types")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.03 hull accident type lookup",
|
||||
description:
|
||||
"Returns values for base-claim field AccidentTypeId from car/base-info/vehicle-hull-accident-types (not the Tejarat static accident-type list).",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran vehicle hull accident types",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getVehicleHullAccidentTypes() {
|
||||
return await this.lookupsService.getVehicleHullAccidentTypes();
|
||||
}
|
||||
|
||||
@Get("vehicle-hull-accident-culprit-type")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.03 hull culprit type lookup",
|
||||
description:
|
||||
"Returns values for base-claim field CulpritTypeId from car/code-list/vehicle-hull-accident-culprit-type (not accident-culprit-type used for ثالث).",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran vehicle hull accident culprit types",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getVehicleHullAccidentCulpritType() {
|
||||
return await this.lookupsService.getVehicleHullAccidentCulpritType();
|
||||
}
|
||||
|
||||
@Get("vehicle-hull-dmg-kind")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.06 hull damage kind lookup",
|
||||
description:
|
||||
"Returns values for DmgSections[].DmgKindId from car/code-list/vehicle-hull-dmg-kind.",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran vehicle hull damage kinds",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getVehicleHullDmgKind() {
|
||||
return await this.lookupsService.getVehicleHullDmgKind();
|
||||
}
|
||||
|
||||
@Get("vehicle-hull-dmg-cost-kinds")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.06 hull damage cost kind lookup",
|
||||
description:
|
||||
"Returns values for DmgSections[].DmgSectionCosts[].DmgCostKindId from car/base-info/vehicle-hull-dmg-cost-kinds.",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran vehicle hull damage cost kinds",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getVehicleHullDmgCostKinds() {
|
||||
return await this.lookupsService.getVehicleHullDmgCostKinds();
|
||||
}
|
||||
|
||||
@Get("vehicle-hull-dmg-accessories/:policyId")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.06 hull policy damage accessories",
|
||||
description:
|
||||
"Returns rows for DmgSections[].VehicleHullAccessoryId from car/vehicle-hull-policies/{policyId}/dmg-accessories. PolicyId is required (Fanavaran: کد رایانه ریسورس).",
|
||||
})
|
||||
@ApiParam({
|
||||
name: "policyId",
|
||||
description: "Fanavaran hull policy Id (same as GEN.03 PolicyId)",
|
||||
example: 13764610,
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran vehicle hull damage accessories for the policy",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getVehicleHullDmgAccessoriesByPolicyId(
|
||||
@Param("policyId", ParseIntPipe) policyId: number,
|
||||
) {
|
||||
return await this.lookupsService.getVehicleHullDmgAccessoriesByPolicyId(
|
||||
policyId,
|
||||
);
|
||||
}
|
||||
|
||||
@Get("accident-report-type")
|
||||
@ApiOkResponse({
|
||||
description: "Returns accident report type lookup data",
|
||||
|
||||
Reference in New Issue
Block a user