import type { ScoutHomeworkRecord, ScoutPost } from "../domain/types";

export function scoutPostFixture(overrides: Partial<ScoutPost> = {}): ScoutPost {
  return {
    id: "scout-post-1",
    author: "topic_user",
    text: "這是一則可供海巡測試的主題貼文",
    search_tag: "主題",
    opportunity: "",
    outreach_status: "new",
    score: 72,
    scout_mode: "activity",
    theme_key: "activity|主題",
    theme_label: "主題",
    permalink: "https://www.threads.net/@topic_user/post/scout-post-1",
    posted_at: 1_700_000_000_000_000_000,
    created_at: 1_700_000_001_000_000_000,
    ...overrides,
  };
}

export function scoutHomeworkFixture(
  overrides: Partial<ScoutHomeworkRecord> = {},
): ScoutHomeworkRecord {
  const brief = {
    intent: "主題",
    mode: "activity" as const,
    pains: [],
    tags: ["主題"],
    periphery: [],
    scan_terms: ["主題"],
    theme_key: "activity|主題",
    theme_label: "主題",
  };
  return {
    theme_key: "activity|主題",
    theme_label: "主題",
    purpose: "activity",
    brief,
    created_at: 1_700_000_001_000_000_000,
    ...overrides,
  };
}
