Setu-TS
    Preparing search index...

    Class IntegrationEvent<T>Abstract

    Abstract base class for integration (cross-service) events.

    An empty semantic subclass of DomainEvent — no added fields, and no framework reader: it is a semantic MARKER only. Nothing dispatches on instanceof IntegrationEvent — the M14 messaging bridge selects forwarded events by its configured eventTypes string list, never by class identity — and the in-memory bus publishes it like any other event. A typed cross-service contract (wire envelope, schema version, causal chain) is defineIntegrationEvent in @setu-ts/messaging-plugin, not this class.

    class UserCreatedIntegration extends IntegrationEvent<{ userId: string }> {
    readonly type = 'UserCreated';
    }

    0.1.0

    Type Parameters

    • T = unknown

      The event payload type

    Hierarchy (View Summary)

    Index
    data: T

    The event payload.

    id: string

    Unique event ID.

    occurredOn: Date

    When the event occurred.

    type: string

    Event type name (e.g. "UserCreated").