From d081386b9f94282f2857f4895f54b0ead7345e01 Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Tue, 6 Jan 2026 13:24:20 +0100 Subject: [PATCH] feat: add Delivered status to notification enums MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add Delivered status to BillsNotificationStatus enum - Add Delivered status to RentNotificationStatus enum - Update JSDoc comments for clarity - Delivered status will be set by webhook when email is confirmed delivered 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- shared-code/src/db-types.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/shared-code/src/db-types.ts b/shared-code/src/db-types.ts index 202d61d..19812ae 100644 --- a/shared-code/src/db-types.ts +++ b/shared-code/src/db-types.ts @@ -57,11 +57,13 @@ export enum BillsNotificationStrategy { } export enum BillsNotificationStatus { - /** Bills notification is scheduled to be sent */ + /** notification is scheduled to be sent */ Scheduled = "scheduled", - /** Bills notification has been sent */ + /** notification has been sent */ Sent = "sent", - /** Sending of bills notification failed */ + /** notification has been successfully delivered (set by webhook) */ + Delivered = "delivered", + /** Sending of notifications failed */ Failed = "failed", /** Email to tenant has bounced (set by webhook) */ Bounced = "bounced" @@ -70,6 +72,8 @@ export enum BillsNotificationStatus { export enum RentNotificationStatus { /** notification has been sent */ Sent = "sent", + /** notification has been successfully delivered (set by webhook) */ + Delivered = "delivered", /** Sending of notification failed */ Failed = "failed", /** Email to tenant has bounced (set by webhook) */