Skip to main content

Interface: EventsDomainBridge

Defined in: shared/types/eventsBridge.ts:35

Contract for the preload events bridge exposed to the renderer.

Propertiesโ€‹

onCacheInvalidated()โ€‹

readonly onCacheInvalidated: (callback: (data: CacheInvalidatedEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:44

Payload for cache invalidation notifications.

Parametersโ€‹

callbackโ€‹

(data: CacheInvalidatedEventData) => void

Invoked with payloads emitted on the cache:invalidated channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onHistoryLimitUpdated()โ€‹

readonly onHistoryLimitUpdated: (callback: (data: HistoryLimitUpdatedEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:56

Payload for database history retention updates.

Parametersโ€‹

callbackโ€‹

(data: HistoryLimitUpdatedEventData) => void

Invoked with payloads emitted on the settings:history-limit-updated channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitorCheckCompleted()โ€‹

readonly onMonitorCheckCompleted: (callback: (data: MonitorCheckCompletedEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:68

Payload for monitor check completion events.

Parametersโ€‹

callbackโ€‹

(data: MonitorCheckCompletedEventData) => void

Invoked with payloads emitted on the monitor:check-completed channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitorDown()โ€‹

readonly onMonitorDown: (callback: (data: MonitorDownEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:80

Payload for monitor down events.

Parametersโ€‹

callbackโ€‹

(data: MonitorDownEventData) => void

Invoked with payloads emitted on the monitor:down channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitoringStarted()โ€‹

readonly onMonitoringStarted: (callback: (data: MonitoringControlEventData & { monitorCount: number; siteCount: number; summary?: MonitoringStartSummary; }) => void) => () => void

Defined in: shared/types/eventsBridge.ts:92

Payload for monitoring started events.

Parametersโ€‹

callbackโ€‹

(data: MonitoringControlEventData & { monitorCount: number; siteCount: number; summary?: MonitoringStartSummary; }) => void

Invoked with payloads emitted on the monitoring:started channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitoringStopped()โ€‹

readonly onMonitoringStopped: (callback: (data: MonitoringControlEventData & { activeMonitors: number; reason: MonitoringControlReason; summary?: MonitoringStopSummary; }) => void) => () => void

Defined in: shared/types/eventsBridge.ts:104

Payload for monitoring stopped events.

Parametersโ€‹

callbackโ€‹

(data: MonitoringControlEventData & { activeMonitors: number; reason: MonitoringControlReason; summary?: MonitoringStopSummary; }) => void

Invoked with payloads emitted on the monitoring:stopped channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitorStatusChanged()โ€‹

readonly onMonitorStatusChanged: (callback: (data: StatusUpdate) => void) => () => void

Defined in: shared/types/eventsBridge.ts:116

Payload for monitor status change events.

Parametersโ€‹

callbackโ€‹

(data: StatusUpdate) => void

Invoked with payloads emitted on the monitor:status-changed channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onMonitorUp()โ€‹

readonly onMonitorUp: (callback: (data: MonitorUpEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:128

Payload for monitor up events.

Parametersโ€‹

callbackโ€‹

(data: MonitorUpEventData) => void

Invoked with payloads emitted on the monitor:up channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onSiteAdded()โ€‹

readonly onSiteAdded: (callback: (data: { site: Site; source: "import" | "migration" | "user"; timestamp: number; }) => void) => () => void

Defined in: shared/types/eventsBridge.ts:140

Payload for site added events.

Parametersโ€‹

callbackโ€‹

(data: { site: Site; source: "import" | "migration" | "user"; timestamp: number; }) => void

Invoked with payloads emitted on the site:added channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onSiteRemoved()โ€‹

readonly onSiteRemoved: (callback: (data: { cascade: boolean; siteIdentifier: string; siteName: string; timestamp: number; }) => void) => () => void

Defined in: shared/types/eventsBridge.ts:152

Payload for site removed events.

Parametersโ€‹

callbackโ€‹

(data: { cascade: boolean; siteIdentifier: string; siteName: string; timestamp: number; }) => void

Invoked with payloads emitted on the site:removed channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onSiteUpdated()โ€‹

readonly onSiteUpdated: (callback: (data: { previousSite: Site; site: Site; timestamp: number; updatedFields: string[]; }) => void) => () => void

Defined in: shared/types/eventsBridge.ts:164

Payload for site updated events.

Parametersโ€‹

callbackโ€‹

(data: { previousSite: Site; site: Site; timestamp: number; updatedFields: string[]; }) => void

Invoked with payloads emitted on the site:updated channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onStateSyncEvent()โ€‹

readonly onStateSyncEvent: (callback: (data: StateSyncEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:176

Payload for full state synchronisation broadcasts.

Parametersโ€‹

callbackโ€‹

(data: StateSyncEventData) => void

Invoked with payloads emitted on the state-sync-event channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onTestEvent()โ€‹

readonly onTestEvent: (callback: (data: TestEventPayload) => void) => () => void

Defined in: shared/types/eventsBridge.ts:188

Payload for development/test events.

Parametersโ€‹

callbackโ€‹

(data: TestEventPayload) => void

Invoked with payloads emitted on the test-event channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


onUpdateStatus()โ€‹

readonly onUpdateStatus: (callback: (data: UpdateStatusEventData) => void) => () => void

Defined in: shared/types/eventsBridge.ts:200

Payload for auto-updater status notifications.

Parametersโ€‹

callbackโ€‹

(data: UpdateStatusEventData) => void

Invoked with payloads emitted on the update-status channel.

Returnsโ€‹

Cleanup function that removes the registered listener.

(): void

Returnsโ€‹

void


removeAllListeners()โ€‹

readonly removeAllListeners: () => void

Defined in: shared/types/eventsBridge.ts:207

Remove all registered renderer event listeners.

Returnsโ€‹

void