Files
SixFlagsSuperCalendar/lib/scrapers/types.ts
josh 548c7ae09e feat: initial project scaffold with CI/CD and Docker deployment
Next.js 15 + Tailwind CSS v4 week calendar showing Six Flags park hours.
Scrapes the internal CloudFront API, stores results in SQLite.
Includes Dockerfile (Debian/Playwright-compatible), docker-compose, and
Gitea Actions pipeline that builds and pushes to the container registry.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 00:48:09 -04:00

38 lines
613 B
TypeScript

export interface Park {
id: string;
name: string;
shortName: string;
chain: "sixflags" | string;
slug: string;
location: {
lat: number;
lng: number;
city: string;
state: string;
};
timezone: string;
website: string;
}
export interface DayStatus {
day: number;
isOpen: boolean;
hoursLabel?: string;
}
export interface MonthCalendar {
parkId: string;
year: number;
month: number;
days: DayStatus[];
}
export interface ScraperAdapter {
readonly chain: string;
getMonthCalendar(
park: Park,
year: number,
month: number
): Promise<MonthCalendar>;
}