Interface InputAdapterSupplied

An input adapter supplied a value for a step's input.

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 InputAdapterSupplied {
    adapter: AdapterName;
    attempt: Attempt;
    journeyId: JourneyId;
    key: string;
    kind: "input_adapter_supplied";
    sequence: number;
    step: StepName;
    timestamp: Timestamp;
    workflow: WorkflowName;
}

Hierarchy (View Summary)

  • StepFields<"input_adapter_supplied">
    • InputAdapterSupplied

Index

adapter: AdapterName

The adapter's name.

attempt: Attempt

The attempt.

journeyId: JourneyId

The journey's ID.

key: string

The input's key.

kind: "input_adapter_supplied"

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

sequence: number

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

step: StepName

The step's name.

timestamp: Timestamp

When the event was emitted.

workflow: WorkflowName

The workflow's name.