1
0
forked from Yara724/api
This commit is contained in:
2026-07-01 18:05:09 +03:30
parent b43f1a86dc
commit d525b8dd0d
6 changed files with 148 additions and 13 deletions

View File

@@ -14,6 +14,7 @@ import {
type FanavaranClientKey,
} from "src/core/config/fanavaran-client.config";
import {
FANAVARAN_LOOKUP_BASE_URL,
fanavaranLookupCacheDir,
tejaratStaticAccidentFilePath,
} from "./fanavaran-lookup.config";
@@ -246,6 +247,14 @@ export class FanavaranLookupService {
}
}
async inquiryByVin(
clientKey: FanavaranClientKey,
vin: string,
): Promise<unknown> {
const url = `${FANAVARAN_LOOKUP_BASE_URL}/car/vehicles/inquiry-by-vin?vin=${encodeURIComponent(vin)}`;
return this.fetchFromFanavaran(clientKey, url);
}
mapFanavaranAccidentCausesToReasonOptions(
causes: unknown,
): { id: number; label: string; fanavaran: number }[] {