Interface OptionalInputAbsent

An optional request had no value.

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 OptionalInputAbsent {
    journeyId: JourneyId;
    key: string;
    kind: "optional_input_absent";
    requester: RequestSource;
    sequence: number;
    timestamp: Timestamp;
    workflow: WorkflowName;
}

Hierarchy (View Summary)

  • FixedFields<"optional_input_absent">
    • OptionalInputAbsent

Index

journeyId: JourneyId

The journey's ID.

key: string

The key that was requested.

kind: "optional_input_absent"

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

requester: RequestSource

Who requested it.

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.