diff --git a/apps/api/src/integrations/pl24/pl24.types.spec.ts b/apps/api/src/integrations/pl24/pl24.types.spec.ts index dfd3144..260ad11 100644 --- a/apps/api/src/integrations/pl24/pl24.types.spec.ts +++ b/apps/api/src/integrations/pl24/pl24.types.spec.ts @@ -27,3 +27,21 @@ describe("PL24_WMI_SERVICE_MAP — Q6 routing additions", () => { } }); }); + +// PL24'te bulunmayan WMI'ler: haritada yer almamalı, yoksa her sorguda boşuna +// upstream isteği üretir ve gerçek kaynağa (pcat/emex/vinpin) geçişi geciktirir. +describe("PL24_WMI_SERVICE_MAP — kapsam dışı WMI'ler", () => { + it("VR7 haritada değil (canlı: HTTP 410 'no brands found for WMI = VR7')", () => { + expect(PL24_WMI_SERVICE_MAP.VR7).toBeUndefined(); + }); + + it("NM4 (Tofaş) haritada değil (canlı: HTTP 410)", () => { + expect(PL24_WMI_SERVICE_MAP.NM4).toBeUndefined(); + }); + + it("canlı doğrulanmış WMI'ler doğru katalogda", () => { + expect(PL24_WMI_SERVICE_MAP.JF1).toBe("subaru_parts"); + expect(PL24_WMI_SERVICE_MAP.ZAR).toBe("alfa_parts"); + expect(PL24_WMI_SERVICE_MAP.VXK).toBe("psa_opel_parts"); + }); +}); diff --git a/apps/api/src/integrations/pl24/pl24.types.ts b/apps/api/src/integrations/pl24/pl24.types.ts index a1034b7..eebea4a 100644 --- a/apps/api/src/integrations/pl24/pl24.types.ts +++ b/apps/api/src/integrations/pl24/pl24.types.ts @@ -675,7 +675,12 @@ export const PL24_WMI_SERVICE_MAP: Record = { // Peugeot (PSA) VF3: "peugeot_parts", // Peugeot SA (France) VR3: "peugeot_parts", // Peugeot (newer WMI) - VR7: "peugeot_parts", // Peugeot (newer WMI) + // VR7: PL24'ün WMI veritabanında HİÇ YOK — canlı doğrulama (2026-09-19, + // /pl24-wmi/ext/api/2.0/decode): HTTP 410 "no brands found for WMI = VR7", + // tıpkı Tofaş NM4 gibi. Önceden peugeot_parts'a yönlendiriliyordu; prod'daki + // 17 VR7 aracının hepsi model çözülmeden ("Peugeot Peugeot") ve 0 kategoriyle + // kaydedilmişti. Haritada tutmak yalnız boşuna PL24 isteği üretir ve + // pcat/emex/vinpin fallback'ini geciktirir. // Volvo YV1: "volvo_parts", // Volvo Cars (Sweden)