EventsModule
The route @evolve-framework/medusa-plugin-events posts to, publishing the shared product and category events for what it forwards, so a CMS and a search index follow a Medusa catalog as they follow commercetools.
import { EventsModule } from "@evolve-framework/medusa/modules";new EventsModule(options: EventsModuleOptions)| Option | Type | Description |
|---|---|---|
clientFactory | ClientFactory | The client a forwarded product or category is read back through. Its store
keys are the |
messagePublisher | MessagePublisher | Where the internal events go. |
origin | string | Stamped on every event as its |
secret? | string | The secret the plugin sends as |
path? | string | Where the plugin posts. Defaults to "/events/medusa". |
Extends AbstractModule<unknown>.

