/** zhibo 导出（world_cup_match_ext + live_matches）对齐结构 */

export interface ZhiboLocalizedNames {
  zh?: string | null;
  en?: string | null;
  zhTw?: string | null;
  vi?: string | null;
  km?: string | null;
  ms?: string | null;
}

export interface ZhiboLeagueExport {
  type: string;
  en: string;
  zh: string;
}

export interface ZhiboKickoffExport {
  utcTimeStart: number;
  utcTimeStop: number;
  utcIso: string;
  chinaTime: string;
  venueTime: string;
  venueTimezone: string;
}

export interface ZhiboTeamExport {
  id: number | null;
  name: string;
  names: ZhiboLocalizedNames;
  image: string;
}

export interface ZhiboMatchExport {
  officialMatchNo: number;
  stage: string;
  groupName: string;
  liveMatchId: number | null;
  additionMatchId: number | null;
  channelId: string | null;
  matchName: string;
  league: ZhiboLeagueExport;
  kickoff: ZhiboKickoffExport;
  homeTeam: ZhiboTeamExport;
  awayTeam: ZhiboTeamExport;
  score: { home: number | string | null; away: number | string | null };
  status: {
    state: string;
    nowPlaying: number;
    isLive: number;
    isHot: number;
  };
  venue: {
    names: ZhiboLocalizedNames;
    city: ZhiboLocalizedNames;
  };
  sortOrder: number;
  isPublished: boolean;
}

export interface ZhiboMatchesBundleExport {
  exportedAt?: string;
  source?: Record<string, unknown>;
  count?: number;
  groups?: string[];
  matches: ZhiboMatchExport[];
}
