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

    Type Alias PublishableCustomerEvent<N>

    PublishableCustomerEvent:
        | CustomerEvent<N>
        | CustomerEventBase<N> & { 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, so this package keeps no database dependency.

    Type Parameters