webiny-api-event-publisher-catalog
$
npx mdskill add webiny/webiny-js/webiny-api-event-publisher-catalogPublish domain events using structured abstractions to notify registered system handlers.
- Manages the process of notifying various parts of the system about state changes.
- Depends on core event publishing mechanisms and defined event structures.
- Requires developers to select the appropriate event or publisher interface for use.
- Provides imported classes and patterns for implementing event-driven logic.
SKILL.md
.github/skills/webiny-api-event-publisher-catalogView on GitHub ↗
---
name: webiny-api-event-publisher-catalog
context: webiny-api
description: >
api/event-publisher — 2 abstractions.
---
# api/event-publisher
## How to Use
1. Find the abstraction you need below
2. Read the source file to get the exact interface and types
3. Import: `import { Name } from "<importPath>";`
4. See `webiny-use-case-pattern` or `webiny-event-handler-pattern` skills for implementation patterns
## Abstractions
---
**Name:** `DomainEvent`
**Import:** `import { DomainEvent } from "webiny/api/event-publisher"`
**Source:** `@webiny/api-core/features/eventPublisher/index.ts`
**Description:** Base class for all domain events.
---
**Name:** `EventPublisher`
**Import:** `import { EventPublisher } from "webiny/api/event-publisher"`
**Source:** `@webiny/api-core/features/eventPublisher/index.ts`
**Description:** Publish domain events to registered handlers.
---
More from webiny/webiny-js
- testerUse when running tests. Shows how to run tests for a single package, including OpenSearch (ddb-os) tests when applicable.
- webiny-admin-aco-catalog>
- webiny-admin-architect>
- webiny-admin-build-params-catalog>
- webiny-admin-catalog>
- webiny-admin-cms-catalog>
- webiny-admin-configs-catalog>
- webiny-admin-env-config-catalog>
- webiny-admin-form-catalog>
- webiny-admin-graphql-client-catalog>