Type Alias AdapterName

AdapterName: string & { "[adapterName]": true }

The name of an input adapter, which supplies a step's input in place of the data bag: a string that is never empty, checked when the workflow is declared.

import type { JourneyId } from "itinera/journey";
import type { PolicyName } from "itinera/policy";
import type { ProviderName } from "itinera/service";
import type { StepName } from "itinera/step";
import type { AdapterName, WorkflowName } from "itinera/workflow";

export function origin(
journeyId: JourneyId,
workflow: WorkflowName,
step: StepName,
by?: PolicyName | AdapterName | ProviderName,
): string {
return by === undefined
? `${workflow} ${journeyId}, step ${step}`
: `${workflow} ${journeyId}, step ${step}, by ${by}`;
}

Type Declaration

  • Readonly[adapterName]: true

    Marks the string as an adapter name made by itinera.