@serve.zone/interfaces 4.13.0 → 5.0.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
export type TTemplates = 'default' | 'linkaction' | 'notification';
|
|
3
|
-
export interface
|
|
3
|
+
export interface IReq_SendEmail extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_SendEmail> {
|
|
4
4
|
method: 'sendEmail';
|
|
5
5
|
request: {
|
|
6
6
|
title: string;
|
|
@@ -19,7 +19,7 @@ export interface IRequest_SendEmail extends plugins.typedrequestInterfaces.imple
|
|
|
19
19
|
responseId: string;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface IReq_RegisterRecipient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RegisterRecipient> {
|
|
23
23
|
method: 'registerRecepient';
|
|
24
24
|
request: {
|
|
25
25
|
emailAddress: string;
|
|
@@ -28,3 +28,25 @@ export interface IRequestRegisterRecipient extends plugins.typedrequestInterface
|
|
|
28
28
|
status: 'ok' | 'not ok';
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
export interface IReq_CheckEmailStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CheckEmailStatus> {
|
|
32
|
+
method: 'checkEmailStatus';
|
|
33
|
+
request: {
|
|
34
|
+
emailId: string;
|
|
35
|
+
};
|
|
36
|
+
response: {
|
|
37
|
+
status: 'ok' | 'not ok';
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface IReq_GetEMailStats extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetEMailStats> {
|
|
41
|
+
method: 'getEmailStats';
|
|
42
|
+
request: {
|
|
43
|
+
jwt: string;
|
|
44
|
+
};
|
|
45
|
+
response: {
|
|
46
|
+
totalEmailsSent: number;
|
|
47
|
+
totalEmailsDelivered: number;
|
|
48
|
+
totalEmailsBounced: number;
|
|
49
|
+
averageDeliveryTimeMs: number;
|
|
50
|
+
lastUpdated: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@ import * as plugins from '../plugins.js';
|
|
|
2
2
|
|
|
3
3
|
export type TTemplates = 'default' | 'linkaction' | 'notification';
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface IReq_SendEmail extends plugins.typedrequestInterfaces.implementsTR<
|
|
6
6
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
7
|
-
|
|
7
|
+
IReq_SendEmail
|
|
8
8
|
> {
|
|
9
9
|
method: 'sendEmail';
|
|
10
10
|
request: {
|
|
@@ -25,9 +25,9 @@ export interface IRequest_SendEmail extends plugins.typedrequestInterfaces.imple
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export interface
|
|
28
|
+
export interface IReq_RegisterRecipient extends plugins.typedrequestInterfaces.implementsTR<
|
|
29
29
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
30
|
-
|
|
30
|
+
IReq_RegisterRecipient
|
|
31
31
|
> {
|
|
32
32
|
method: 'registerRecepient';
|
|
33
33
|
request: {
|
|
@@ -37,3 +37,33 @@ export interface IRequestRegisterRecipient extends plugins.typedrequestInterface
|
|
|
37
37
|
status: 'ok' | 'not ok';
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
export interface IReq_CheckEmailStatus extends plugins.typedrequestInterfaces.implementsTR<
|
|
42
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
43
|
+
IReq_CheckEmailStatus
|
|
44
|
+
> {
|
|
45
|
+
method: 'checkEmailStatus';
|
|
46
|
+
request: {
|
|
47
|
+
emailId: string;
|
|
48
|
+
};
|
|
49
|
+
response: {
|
|
50
|
+
status: 'ok' | 'not ok';
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface IReq_GetEMailStats extends plugins.typedrequestInterfaces.implementsTR<
|
|
55
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
56
|
+
IReq_GetEMailStats
|
|
57
|
+
> {
|
|
58
|
+
method: 'getEmailStats';
|
|
59
|
+
request: {
|
|
60
|
+
jwt: string;
|
|
61
|
+
};
|
|
62
|
+
response: {
|
|
63
|
+
totalEmailsSent: number;
|
|
64
|
+
totalEmailsDelivered: number;
|
|
65
|
+
totalEmailsBounced: number;
|
|
66
|
+
averageDeliveryTimeMs: number;
|
|
67
|
+
lastUpdated: string;
|
|
68
|
+
};
|
|
69
|
+
}
|