The raw events data to be converted
An array of EventEnvelope objects
Retrieves events for a specific entity since a given time
The Magek configuration object
The type name of the entity
The ID of the entity
Optionalsince: stringThe time to retrieve events since (optional)
A promise that resolves to an array of EventEnvelope objects
Retrieves the latest snapshot of an entity
The Magek configuration object
The type name of the entity
The ID of the entity
A promise that resolves to the latest EventEnvelope for the entity, or null if none exist
Searches for events based on specific parameters
The Magek configuration object
The search parameters
A promise that resolves to an array of EventSearchResponse objects
Searches for entities IDs based on a specific entity type and pagination parameters
The Magek configuration object
The maximum number of entities IDs to retrieve
The cursor to retrieve entities IDs after (optional)
The type name of the entities to search for
A promise that resolves to a PaginatedEntitiesIdsResult object
Streams an event to the corresponding event handler
The array of NonPersistedEventEnvelope objects to store
The Magek configuration object
A promise that resolves with the list of EventEnvelopes when the events have been stored
Stores a snapshot of an entity
The NonPersistedEntitySnapshotEnvelope object to store
The Magek configuration object
A promise that resolves with the EntitySnapshotEnvelope when the snapshot has been stored
Stores an event envelope that has been dispatched in the dispatched events table.
The EventEnvelope to store.
The Magek configuration object.
true if the dispatched event was stored, false if the event already exists in the dispatched events
table, throws an error on any other type of error.
Find all events to be removed based on the parameters
Find all snapshots to be removed based on the parameters
Delete snapshots
OptionalhealthHealth check methods for the event store
Get detailed health information about the event store
Converts raw events data into an array of EventEnvelope objects