group lookups added also fanavaran module grant access

This commit is contained in:
2026-07-29 17:32:57 +03:30
parent 50ea476fa5
commit 914e97687f
4 changed files with 45 additions and 5 deletions

View File

@@ -291,6 +291,32 @@ export class LookupsController {
return await this.lookupsService.getDmgHistoryStatus();
}
@Get("used-place")
@ApiOperation({
summary: "Fanavaran used place lookup",
description: "Returns used place codes from car/code-list/used-place.",
})
@ApiOkResponse({
description: "Returns Fanavaran used place lookup data",
schema: { type: "array", items: { type: "object" } },
})
async getUsedPlace() {
return await this.lookupsService.getUsedPlace();
}
@Get("dmg-business-line")
@ApiOperation({
summary: "Fanavaran damage business line lookup",
description: "Returns damage business line codes from car/code-list/dmg-business-line.",
})
@ApiOkResponse({
description: "Returns Fanavaran damage business line lookup data",
schema: { type: "array", items: { type: "object" } },
})
async getDmgBusinessLine() {
return await this.lookupsService.getDmgBusinessLine();
}
@Get("inquiry-by-vin")
@ApiOperation({
summary: "Fanavaran vehicle inquiry by VIN",

View File

@@ -143,6 +143,14 @@ export class LookupsService {
return await this.getClientRemoteLookup("dmg-history-status");
}
async getUsedPlace(): Promise<any> {
return await this.getClientRemoteLookup("used-place");
}
async getDmgBusinessLine(): Promise<any> {
return await this.getClientRemoteLookup("dmg-business-line");
}
async inquiryByVin(vin: string): Promise<unknown> {
const clientKey = this.activeClientKey();
return this.fanavaranLookupService.inquiryByVin(clientKey, vin);