Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

TypeScript · 16 lines · 742 B · at 503e839

// The on-call watcher's API and job types, as Rebasely's ops/oncall/lib declares them (null is the// API's and the state file's own representation).export type ApiEvent = { id: number; at: number; kind: string; key: string | null; environment: string | null; actor: string | null; data: string | null };export type JobKind = "incident" | "api_unreachable" | "digest";export type Job = {  id: string;  kind: JobKind;  key: string;  alertKey: string | null;  incident: number | null;  rank: number;  event: Record<string, unknown> | null;  queuedAt: number;};export type HandledEntry = { at: number; incident: number | null };export type WatchConfig = { readonly environments: readonly string[]; readonly dedupeHours: number };