/** * The shared body of jsm_get_on_call and jsm_get_next_on_call. * * Both answer two questions that come from different places. **Who** comes from * /on-calls and /next-on-calls, which flatten teams and escalations down to * real people server-side — something the timeline does not reliably do, and * getting it wrong means handing someone a team uuid when they asked who to * page. **When** comes from the schedule timeline, which is the only endpoint * that exposes shift boundaries at all. * * The two calls are issued in parallel, so carrying boundaries costs the caller * no extra round-trip in wall-clock terms. */ import type { JsmClient } from "../../services/client.js"; import { type Responder } from "../../services/format.js"; import type { OnCallData } from "../../types.js"; import { type Shift } from "./timeline.js"; export interface OnCallAnswer { responders: Responder[]; /** The shift these responders are covering, when the timeline agreed. */ shift?: Shift; /** The raw API payload, preserved unmodified for callers that read it. */ raw: OnCallData; /** Things the reader needs to know about what could not be determined. */ notes: string[]; } export interface OnCallRequest { scheduleId: string; /** The instant to evaluate at. "Next" is computed relative to this too. */ instant: Date; next: boolean; flat: boolean; /** The caller's raw date string, passed to the API untouched. */ date?: string | undefined; } export declare function answerOnCall(client: JsmClient, request: OnCallRequest): Promise; //# sourceMappingURL=answer.d.ts.map