/** 与 PRD `results` 对象键名一致 */
export type DrawResultsNumbers = {
  "1st": string;
  "2nd": string;
  "3rd": string;
  starter: string[];
  consolation: string[];
};

export type DrawResultListItem = {
  draw_id: string;
  draw_no: string;
  business_date: string;
  draw_time: string | null;
  draw_time_iso?: string | null;
  result_version: number;
  result_source: string | null;
  jackpot?: {
    currency_code: string;
    enabled: boolean;
    current_amount_minor: number;
    current_amount_formatted?: string;
    draws_since_last_burst: number | null;
    last_trigger_draw_id?: number | null;
  };
  results: DrawResultsNumbers;
  result_items: Array<{
    prize_type: string;
    prize_index: number;
    number_4d: string;
    suffix_3d: string | null;
    suffix_2d: string | null;
    head_digit: number | null;
    tail_digit: number | null;
  }>;
};

export type DrawResultsListPayload = {
  items: DrawResultListItem[];
  total: number;
  page: number;
  per_page: number;
  last_page: number;
};

export type DrawResultDetailPayload = DrawResultListItem & {
  previous_draw_no: string | null;
  next_draw_no: string | null;
};
