@velony/contracts 4.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -35,6 +35,7 @@ const event: UserCreatedIntegrationEvent = {
35
35
  email: 'john.doe@example.com',
36
36
  phoneNumber: '+1234567890'
37
37
  },
38
+ topic: 'identity.events',
38
39
  partitionKey: 'user-123',
39
40
  };
40
41
  ```
@@ -41,6 +41,11 @@ export type IntegrationEvent<TType extends keyof IntegrationEventRegistry> = {
41
41
  * @readonly
42
42
  */
43
43
  readonly payload: IntegrationEventRegistry[TType]['payload'];
44
+ /**
45
+ * The message broker topic where this event should be published.
46
+ * @readonly
47
+ */
48
+ readonly topic: string;
44
49
  /**
45
50
  * Key used for partitioning in message brokers for ordering guarantees.
46
51
  * @readonly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velony/contracts",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "description": "TypeScript contracts library providing integration event interfaces for event-driven architecture",
5
5
  "keywords": [
6
6
  "contracts",