@checkstack/maintenance-backend 1.1.6 → 1.3.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/src/hooks.ts DELETED
@@ -1,37 +0,0 @@
1
- import { createHook } from "@checkstack/backend-api";
2
-
3
- /**
4
- * Maintenance hooks for cross-plugin communication.
5
- * Other plugins can subscribe to these hooks to react to maintenance lifecycle events.
6
- * These hooks are registered as integration events for webhook subscriptions.
7
- */
8
- export const maintenanceHooks = {
9
- /**
10
- * Emitted when a new maintenance is created.
11
- * Plugins can subscribe (work-queue mode) to react to new maintenances.
12
- */
13
- maintenanceCreated: createHook<{
14
- maintenanceId: string;
15
- systemIds: string[];
16
- title: string;
17
- description?: string;
18
- status: string;
19
- startAt: string;
20
- endAt: string;
21
- }>("maintenance.created"),
22
-
23
- /**
24
- * Emitted when a maintenance is updated (info or status change).
25
- * Plugins can subscribe (work-queue mode) to react to updates.
26
- */
27
- maintenanceUpdated: createHook<{
28
- maintenanceId: string;
29
- systemIds: string[];
30
- title: string;
31
- description?: string;
32
- status: string;
33
- startAt: string;
34
- endAt: string;
35
- action: "updated" | "closed";
36
- }>("maintenance.updated"),
37
- } as const;