Sorci.js
    Preparing search index...

    Type Alias AppendEventPayload

    AppendEventPayload:
        | { sourcingEvent: ToPersistEvent }
        | {
            _testOnlyOnLockAcquired?: () => Promise<void> | void;
            lastKnownEventId: EventId;
            query: Query;
            sourcingEvent: ToPersistEvent;
        }

    This is the structure of an event returned by the Sorci.getEventsByQuery and Sorci.getEventById function