/**
 * Shape emitted by the pre-product radar API.  Keeping this fixture explicit
 * prevents compatibility tests from accidentally adding product fields and
 * hiding a mapper regression.
 */
export const legacyRadarWatch = {
  id: "legacy-watch",
  terms: ["找水電"],
  exclude_terms: [],
  regions: [],
  status: "active",
  created_at: 1,
  updated_at: 2,
};

export const legacyRadarOpportunity = {
  id: "legacy-opportunity",
  watch_id: "legacy-watch",
  source: "threads",
  external_id: "threads:legacy-1",
  permalink: "https://www.threads.net/@legacy/post/1",
  author_handle: "legacy",
  text: "有人知道可靠的水電師傅嗎？",
  posted_at: 3,
  status: "qualified",
  intent_score: 82,
  intent_band: "high",
  reasons: [
    { dimension: "authenticity", score: 20, reason: "個人需求" },
    { dimension: "intent", score: 20, reason: "明確詢問" },
    { dimension: "region", score: 10, reason: "未知地區" },
    { dimension: "freshness", score: 20, reason: "近期" },
    { dimension: "fit", score: 12, reason: "服務可處理" },
  ],
  region_match: "unknown",
  freshness_hours: 4,
  matched_terms: ["找水電"],
  created_at: 4,
};

export const legacyAcceptedOpportunity = {
  ...legacyRadarOpportunity,
  id: "legacy-accepted",
  external_id: "threads:legacy-accepted",
  status: "accepted",
};

export const legacyDismissedOpportunity = {
  ...legacyRadarOpportunity,
  id: "legacy-dismissed",
  external_id: "threads:legacy-dismissed",
  status: "dismissed",
};
