@thatopen/services 0.9.0 → 0.9.1
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.
|
@@ -20,6 +20,29 @@ export interface NotificationDto {
|
|
|
20
20
|
muted: boolean;
|
|
21
21
|
readAt: string | null;
|
|
22
22
|
createdAt: string;
|
|
23
|
+
/**
|
|
24
|
+
* What to group consecutive notifications by — the automation id for a run,
|
|
25
|
+
* absent for anything that should stand alone.
|
|
26
|
+
*
|
|
27
|
+
* Derived rather than the raw producer payload, so fifty runs of one
|
|
28
|
+
* automation can collapse into a single row without the whole payload being
|
|
29
|
+
* on the wire for every notification type, forever.
|
|
30
|
+
*/
|
|
31
|
+
groupKey?: string;
|
|
32
|
+
/**
|
|
33
|
+
* How an automation run ended, straight from the producer's result.
|
|
34
|
+
*
|
|
35
|
+
* Use this rather than reading the copy. `title` is built from the user's own
|
|
36
|
+
* automation name, so an automation called "Failover sync" makes every
|
|
37
|
+
* successful run look failed to anything matching on the text.
|
|
38
|
+
*/
|
|
39
|
+
outcome?: 'success' | 'error' | 'warning';
|
|
40
|
+
/**
|
|
41
|
+
* The automation's name, for a grouped row's heading. Here for the same
|
|
42
|
+
* reason as `outcome`: recovering it by stripping words off the title breaks
|
|
43
|
+
* on any name that contains them.
|
|
44
|
+
*/
|
|
45
|
+
groupLabel?: string;
|
|
23
46
|
}
|
|
24
47
|
/** `nextCursor` is opaque — pass it back verbatim. Null means the last page. */
|
|
25
48
|
export interface NotificationPageDto {
|