import type { RawListing, SourceScraper } from "../core/contracts"

export class ClicarScraper implements SourceScraper {
  source = "CLICAR" as const

  async scrape(): Promise<RawListing[]> {
    return [
      {
        source: this.source,
        externalId: "CL-DEMO-1",
        url: "https://www.clicar.cl/",
        title: "Suzuki Swift GLX 1.2 AT",
        priceClp: 11250000,
        year: 2021,
        mileageKm: 29500,
        region: "Metropolitana",
        commune: "Huechuraba",
        sellerName: "Clicar",
        transmissionText: "AT",
        fuelText: "Bencina",
        rawPayload: {
          note: "Demo payload. Reemplazar por parser real por fuente."
        }
      }
    ]
  }
}
