Implements

Constructors

Properties

index: IndexLevel
ulidFactory: ULIDFactory

Methods

  • adds an event to a tenant's event log

    Parameters

    • tenant: string

      the tenant's DID

    • messageCid: string

      the CID of the message

    • indexes: KeyValues

      (key-value pairs) to be included as part of indexing this event.

    Returns Promise<void>

  • Retrieves all of a tenant's events that occurred after the cursor provided. If no cursor is provided, all events for a given tenant will be returned.

    The cursor is a messageCid.

    Returns an array of messageCids that represent the events.

    Parameters

    Returns Promise<{
        cursor?: PaginationCursor;
        events: string[];
    }>

  • retrieves a filtered set of events that occurred after a the cursor provided, accepts multiple filters.

    If no cursor is provided, all events for a given tenant and filter combo will be returned. The cursor is a messageCid.

    Returns an array of messageCids that represent the events.

    Parameters

    Returns Promise<{
        cursor?: PaginationCursor;
        events: string[];
    }>