Events 3.2.0, contracts 1.10.0: the heartbeat says what's on now

stats.live (eventsNow: a session or a one-day event on now, +/- 30 min;
checkInsLastHour) so Hub 2.7.0 asks again before an emergency update takes
a site with an event on down. Decision 39: emergency updates can run as
soon as possible (decision 30 changed). Tests: liveNow, Events 776.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 22:03:32 +02:00
co-authored by Claude Opus 5.5
parent 88b3e1fb36
commit 621821f5c0
15 changed files with 160 additions and 20 deletions
+6
View File
@@ -190,6 +190,12 @@ export const eventsStatsSchema = z.object({
/** What the Events licence tier is billed on. */
eventIncome12m: incomeBandSchema,
}),
/**
* 1.10.0: what's happening now, so the Hub can warn before taking the site down (an emergency
* update "as soon as possible"): events with a session or a one-day event on now (give or take
* 30 minutes), and tickets checked in during the last hour. Optional: older installs don't send it.
*/
live: z.object({ eventsNow: count, checkInsLastHour: count }).optional(),
});
/** Church Website. `storage` is what the extra-storage add-on is billed on (ROADMAP-v3 §10). */