@opencxh/domain 1.214.0 → 1.216.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.
@@ -83,6 +83,15 @@ export interface Notification {
83
83
  context?: NotificationText;
84
84
  actor?: NotificationActor;
85
85
  link?: NotificationLink;
86
+ /**
87
+ * Identity of what this is about, in `refKey()` form: `"interaction:i_1"`, `"work_item:w1"`.
88
+ *
89
+ * Next to {@link link} and not instead of it: the path is how you *navigate* there and cannot be
90
+ * derived from the id (work's route wants `itemKey`), while the key is how a surface is
91
+ * *recognised* — the shell already resolves the open page to a scopeKey, so this is what lets
92
+ * opening the item mark its notifications read.
93
+ */
94
+ subjectKey?: string;
86
95
  /** Free-form; travels untouched into the push payload. */
87
96
  data?: Record<string, unknown>;
88
97
  createdAt: number;
@@ -102,6 +111,8 @@ export interface NotifyRequest {
102
111
  context?: NotificationText;
103
112
  actor?: NotificationActor;
104
113
  link?: NotificationLink;
114
+ /** `refKey(ref)` of the subject — see {@link Notification.subjectKey}. */
115
+ subjectKey?: string;
105
116
  data?: Record<string, unknown>;
106
117
  /**
107
118
  * Wake the devices without leaving a row behind. For a signal that is meaningless once it is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.214.0",
3
+ "version": "1.216.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",