@camstack/types 1.2.579 → 1.2.580
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/CHANGELOG.md +6 -0
- package/dist/addon/session-health.d.ts +7 -2
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.580] - 2026-11-15
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- A session-lost alert always opens the providing addon's integration page on the instance: addonId is required on SessionHealthTracker and IntegrationSessionReporter.bind
|
|
15
|
+
|
|
10
16
|
## [1.2.579] - 2026-11-15
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -69,8 +69,11 @@ export interface SessionHealthTrackerOptions {
|
|
|
69
69
|
/** Read lazily: `ctx.api.alerts` may be absent early in boot. */
|
|
70
70
|
readonly getAlerts: () => SessionHealthAlertsPort | undefined;
|
|
71
71
|
readonly debounceMs?: number;
|
|
72
|
-
/**
|
|
73
|
-
|
|
72
|
+
/**
|
|
73
|
+
* The providing addon: the default "Open integration" action opens its page on the instance
|
|
74
|
+
* (`integrationPageHref`). Required, so no tracker falls back to the integrations list.
|
|
75
|
+
*/
|
|
76
|
+
readonly addonId: string;
|
|
74
77
|
/** Defaults to `error`. A session that only a person can restore is `critical`. */
|
|
75
78
|
readonly severity?: AlertSeverity;
|
|
76
79
|
}
|
|
@@ -93,6 +96,8 @@ export declare class SessionHealthTracker {
|
|
|
93
96
|
dispose(): void;
|
|
94
97
|
}
|
|
95
98
|
export interface IntegrationSessionBinding {
|
|
99
|
+
/** The addon that binds the reporter (`ctx.id`): its page is the alert's default action. */
|
|
100
|
+
readonly addonId: string;
|
|
96
101
|
readonly logger: IScopedLogger;
|
|
97
102
|
readonly getAlerts: () => SessionHealthAlertsPort | undefined;
|
|
98
103
|
readonly debounceMs?: number;
|
package/dist/index.js
CHANGED
|
@@ -719,7 +719,7 @@ var SessionHealthTracker = class {
|
|
|
719
719
|
integrationId,
|
|
720
720
|
integrationName: entry.info.integrationName,
|
|
721
721
|
reason: entry.info.reason,
|
|
722
|
-
|
|
722
|
+
addonId: this.#opts.addonId,
|
|
723
723
|
...this.#opts.severity !== void 0 ? { severity: this.#opts.severity } : {},
|
|
724
724
|
...entry.info.action !== void 0 ? { action: entry.info.action } : {}
|
|
725
725
|
}));
|
|
@@ -792,6 +792,7 @@ var IntegrationSessionReporter = class {
|
|
|
792
792
|
providerName: this.#opts.providerName,
|
|
793
793
|
logger: binding.logger,
|
|
794
794
|
getAlerts: binding.getAlerts,
|
|
795
|
+
addonId: binding.addonId,
|
|
795
796
|
...binding.debounceMs !== void 0 ? { debounceMs: binding.debounceMs } : {}
|
|
796
797
|
});
|
|
797
798
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -718,7 +718,7 @@ var SessionHealthTracker = class {
|
|
|
718
718
|
integrationId,
|
|
719
719
|
integrationName: entry.info.integrationName,
|
|
720
720
|
reason: entry.info.reason,
|
|
721
|
-
|
|
721
|
+
addonId: this.#opts.addonId,
|
|
722
722
|
...this.#opts.severity !== void 0 ? { severity: this.#opts.severity } : {},
|
|
723
723
|
...entry.info.action !== void 0 ? { action: entry.info.action } : {}
|
|
724
724
|
}));
|
|
@@ -791,6 +791,7 @@ var IntegrationSessionReporter = class {
|
|
|
791
791
|
providerName: this.#opts.providerName,
|
|
792
792
|
logger: binding.logger,
|
|
793
793
|
getAlerts: binding.getAlerts,
|
|
794
|
+
addonId: binding.addonId,
|
|
794
795
|
...binding.debounceMs !== void 0 ? { debounceMs: binding.debounceMs } : {}
|
|
795
796
|
});
|
|
796
797
|
}
|