// A RECURRING REPORT, as umtool's pages read it (plans/umtool-redesign.md, // R5): the schedule common stores (lib/report/schedule/types.ts) plus what a // page shows of it -- the chip, the call, the spend, the addresses. Types // only: safe for a client component. import type { Cadence } from "yt-dlp-transcript-common/lib/report/schedule/cadence"; import type { Edition, Schedule, Tick } from "yt-dlp-transcript-common/lib/report/schedule/types"; export type { Cadence, Edition, Schedule, Tick }; export type ScheduleView = Schedule & { /** "weekly · next Mon 06:00", "daily · paused". */ chip: string; /** "weekly · Mon 06:00". */ cadenceWords: string; /** The next tick's local day and time, or null (paused, none). */ nextWords: string | null; /** The newest tick when it is the operator's call (failed, held by a cap, interrupted). */ call: Tick | null; spentUsd: number; /** The schedule's own page: a series' /series/, a living report's article. */ href: string; /** The piece it is (`s:`, or the living report's article's). */ piece: string; }; /** The chip's slice of a schedule (a piece head, a Work row). */ export type ScheduleChipData = { id: string; shape: Schedule["shape"]; chip: string; paused: boolean; href: string; running: boolean; };