@cfxlabsinc/b2b-services
    Preparing search index...

    Type Alias PublishableCustomerEvent<N>

    PublishableCustomerEvent: Omit<CustomerEventBase<N>, "data"> & {
        data: PublishableCustomerEventData<N>;
    } & (EntityRefs | { entityId: string })

    What a call site may pass. Either the entity references are already resolved, or an entityId is supplied and the publisher resolves it.

    The second arm is what the separate entity-scoped publisher used to be. Collapsing it in means one publisher and one call shape for all ~200 sites; the database lookup it needed arrives as an injected EntityReferenceResolver (@cfxlabsinc/event-services), so neither package keeps a database dependency.

    Type Parameters