Function: stageOf()
stageOf(
activities):"reminder"|"statement"|"demand"|"hold"|null
Defined in: src/lib/ar/queue.ts:148
The escalation stage = the type of the LATEST escalation activity. De-escalating (logging a reminder after a demand) moves the stage back down — the pill reports where the conversation actually is, and there is no second stage column to drift out of step with the log.
Parameters
activities
readonly CollectionActivity[]
Returns
"reminder" | "statement" | "demand" | "hold" | null