@livetronics/wocul-domain 1.3.0 → 1.5.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
@@ -44,6 +44,22 @@ if (result.kind === 'known' && result.message.type === 'run.requested') {
44
44
  // On 'invalid', still claim by entity.id if you can: the queue row is the record.
45
45
  ```
46
46
 
47
+ Which service writes a notification's queue row (core-ts
48
+ `docs/realtime-events.md` § Handover): each row type has one owning group,
49
+ and a domain event names the groups core-ts had handed over when it
50
+ published it.
51
+
52
+ ```ts
53
+ import {
54
+ handedOverGroups,
55
+ notificationGroupOf
56
+ } from '@livetronics/wocul-domain'
57
+
58
+ notificationGroupOf('Task-Watcher-Added') // 'watchers'
59
+ notificationGroupOf('Task-Assigned', 'email') // 'task-details'
60
+ handedOverGroups(message.data) // e.g. ['watchers', 'status']
61
+ ```
62
+
47
63
  ```ts
48
64
  import type {
49
65
  ApiResponse,