Type Alias ArvoEventHandlerFunctionInput<TContract>

ArvoEventHandlerFunctionInput<TContract>: {
    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;
}

Represents the input for an ArvoEvent handler function.

Type Parameters

  • TContract extends VersionedArvoContract<any, any>

Type declaration

  • contract: TContract

    The contract used in the processing

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

    The domain information for handling the event

    • event: string | null
    • self: string | null
  • 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