@serve.zone/interfaces 5.0.0 → 5.0.2

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.
@@ -34,7 +34,10 @@ export interface IReq_CheckEmailStatus extends plugins.typedrequestInterfaces.im
34
34
  emailId: string;
35
35
  };
36
36
  response: {
37
- status: 'ok' | 'not ok';
37
+ status: 'unknown';
38
+ details: {
39
+ message: 'Email not found';
40
+ };
38
41
  };
39
42
  }
40
43
  export interface IReq_GetEMailStats extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetEMailStats> {
@@ -43,6 +46,10 @@ export interface IReq_GetEMailStats extends plugins.typedrequestInterfaces.imple
43
46
  jwt: string;
44
47
  };
45
48
  response: {
46
- status: {};
49
+ totalEmailsSent: number;
50
+ totalEmailsDelivered: number;
51
+ totalEmailsBounced: number;
52
+ averageDeliveryTimeMs: number;
53
+ lastUpdated: string;
47
54
  };
48
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "exports": {
@@ -47,7 +47,8 @@ export interface IReq_CheckEmailStatus extends plugins.typedrequestInterfaces.im
47
47
  emailId: string;
48
48
  };
49
49
  response: {
50
- status: 'ok' | 'not ok';
50
+ status: 'unknown',
51
+ details: { message: 'Email not found' }
51
52
  };
52
53
  }
53
54
 
@@ -60,6 +61,10 @@ export interface IReq_GetEMailStats extends plugins.typedrequestInterfaces.imple
60
61
  jwt: string;
61
62
  };
62
63
  response: {
63
- status: {};
64
+ totalEmailsSent: number;
65
+ totalEmailsDelivered: number;
66
+ totalEmailsBounced: number;
67
+ averageDeliveryTimeMs: number;
68
+ lastUpdated: string;
64
69
  };
65
70
  }