Interface DataOverwritten

A committed key replaced an earlier 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 DataOverwritten {
    journeyId: JourneyId;
    key: string;
    kind: "data_overwritten";
    sequence: number;
    source: ContributionSource;
    timestamp: Timestamp;
    workflow: WorkflowName;
}

Hierarchy (View Summary)

Index

journeyId: JourneyId

The journey's ID.

key: string

The key.

kind: "data_overwritten"

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

sequence: number

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

Who contributed the new value.

timestamp: Timestamp

When the event was emitted.

workflow: WorkflowName

The workflow's name.