@cfxlabsinc/b2b-services
    Preparing search index...
    EntityEvent: Simplify<
        Event<T, D> & (
            | { identityId: string; identityReferenceId: string }
            | { organizationId: string; organizationReferenceId: string }
        ),
    >

    Event with an identity or organization

    Usage:

    type MyEvent = EntityEvent<"myDomain.myDomainObject.someEvent", {
    field1: string,
    field2: Date
    }>

    Type Parameters

    • T extends string

      The type of the event, should be unique within its domain

    • D extends object

      The event data for this specific event type and domain. It must be (de)seriable to/from JSON.