Merge pull request #3447 from bluewave-labs/feat/dlq

Feat(DLQ): Add DLQ data layer -> types, model, and repository
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-03-27 12:35:31 -07:00
commit 8ab049aa6c
7 files changed
+266

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
export const DLQItemTypes = ["notification", "incident_create", "incident_resolve"] as const;
export type DLQItemType = (typeof DLQItemTypes)[number];
export const DLQItemStatuses = ["pending", "retrying", "failed"] as const;
export type DLQItemStatus = (typeof DLQItemStatuses)[number];
export interface DLQItem {
id: string;
type: DLQItemType;
status: DLQItemStatus;
payload: Record<string, unknown>;
monitorId: string;
teamId: string;
retryCount: number;
maxRetries: number;
lastError: string;
nextRetryAt: string;
createdAt: string;
updatedAt: string;
}
+1
View File
@@ -14,3 +14,4 @@ export * from "@/types/incident.js";
export * from "@/types/email.js";
export * from "@/types/team.js";
export * from "@/types/maintenanceWindow.js";
export * from "@/types/dlqItem.js";