Sorci.js
    Preparing search index...

    Type Alias AppendEventsPayload

    AppendEventsPayload:
        | { sourcingEvents: ToPersistEvent[] }
        | {
            _testOnlyOnLockAcquired?: () => Promise<void> | void;
            lastKnownEventId: EventId;
            query: Query;
            sourcingEvents: ToPersistEvent[];
        }

    This is the structure of the payload to give to the Sorci.appendEvents function