Interface JourneyStarted

The journey started.

import type { Event } from "itinera/event";

export function summary(event: Event): string {
if (event.kind === "step_failed") {
return `${event.step} failed: ${event.reason.code}`;
}
if (event.kind === "journey_aborted") {
return `aborted: ${event.abort.reason}`;
}
return `${event.kind} at ${event.timestamp}`;
}
interface JourneyStarted {
    initialKeys: readonly string[];
    journeyId: JourneyId;
    kind: "journey_started";
    sequence: number;
    timestamp: Timestamp;
    workflow: WorkflowName;
}

Hierarchy (View Summary)

Index

initialKeys: readonly string[]

The keys of the initial data, never their values.

journeyId: JourneyId

The journey's ID.

kind: "journey_started"

The event's kind, which tells what else it carries.

sequence: number

The event's position in its journey's event stream, from 1.

timestamp: Timestamp

When the event was emitted.

workflow: WorkflowName

The workflow's name.