arvo-event-handler
    Preparing search index...

    Type Alias ArvoEventHandlerFunctionInput<TContract>

    Represents the input for an ArvoEvent handler function.

    type ArvoEventHandlerFunctionInput<
        TContract extends VersionedArvoContract<any, any>,
    > = {
        contract: TContract;
        domain: { event: string | null; self: string | null };
        event: InferArvoEvent<
            ArvoEvent<
                z.infer<TContract["accepts"]["schema"]>,
                Record<string, any>,
                TContract["accepts"]["type"],
            >,
        >;
        source: string;
        span: Span;
        spanHeaders: OpenTelemetryHeaders;
    }

    Type Parameters

    • TContract extends VersionedArvoContract<any, any>
    Index

    Properties

    contract: TContract

    The contract used in the processing

    domain: { event: string | null; self: string | null }

    The domain information for handling the event

    event: InferArvoEvent<
        ArvoEvent<
            z.infer<TContract["accepts"]["schema"]>,
            Record<string, any>,
            TContract["accepts"]["type"],
        >,
    >

    The ArvoEvent object.

    source: string

    The source field data of the handler

    span: Span

    The OpenTelemetry span

    spanHeaders: OpenTelemetryHeaders

    The span headers