From b987ce27b8cbaa89525bf806b50d004788cb59ff Mon Sep 17 00:00:00 2001
From: Philipp Kunz <code@philkunz.com>
Date: Fri, 25 Apr 2025 16:34:00 +0000
Subject: [PATCH] fix(platformservice/mta): Refactor email status response in
 MTA service

---
 changelog.md                         | 5 +++++
 ts/00_commitinfo_data.ts             | 2 +-
 ts_interfaces/platformservice/mta.ts | 3 ++-
 ts_web/00_commitinfo_data.ts         | 2 +-
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/changelog.md b/changelog.md
index 4155a62..1cb6356 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,10 @@
 # Changelog
 
+## 2025-04-25 - 5.0.2 - fix(platformservice/mta)
+Refactor email status response in MTA service
+
+- Updated IReq_CheckEmailStatus response: replaced union type ('ok' | 'not ok') with fixed status 'unknown' and added a details object with message 'Email not found'.
+
 ## 2025-04-25 - 5.0.1 - fix(mta)
 Update email stats response interface in mta platform service to include totalEmailsSent, totalEmailsDelivered, totalEmailsBounced, averageDeliveryTimeMs, and lastUpdated timestamp.
 
diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts
index 7ef78b3..28ffd9b 100644
--- a/ts/00_commitinfo_data.ts
+++ b/ts/00_commitinfo_data.ts
@@ -3,6 +3,6 @@
  */
 export const commitinfo = {
   name: '@serve.zone/cloudly',
-  version: '5.0.1',
+  version: '5.0.2',
   description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.'
 }
diff --git a/ts_interfaces/platformservice/mta.ts b/ts_interfaces/platformservice/mta.ts
index ec0fce6..7c8138e 100644
--- a/ts_interfaces/platformservice/mta.ts
+++ b/ts_interfaces/platformservice/mta.ts
@@ -47,7 +47,8 @@ export interface IReq_CheckEmailStatus extends plugins.typedrequestInterfaces.im
     emailId: string;
   };
   response: {
-    status: 'ok' | 'not ok';
+    status: 'unknown',
+    details: { message: 'Email not found' }
   };
 }
 
diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts
index 7ef78b3..28ffd9b 100644
--- a/ts_web/00_commitinfo_data.ts
+++ b/ts_web/00_commitinfo_data.ts
@@ -3,6 +3,6 @@
  */
 export const commitinfo = {
   name: '@serve.zone/cloudly',
-  version: '5.0.1',
+  version: '5.0.2',
   description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.'
 }