@emilgroup/notification-sdk 0.8.1-beta.7 → 0.8.1-beta.71
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.
- package/.openapi-generator/FILES +25 -0
- package/README.md +2 -2
- package/api/email-mailboxes-api.ts +153 -0
- package/api/email-messages-api.ts +197 -40
- package/api/email-subscriptions-api.ts +799 -0
- package/api/email-tracking-api.ts +313 -52
- package/api/email-verifications-api.ts +32 -14
- package/api/health-api.ts +1 -1
- package/api/layouts-api.ts +96 -51
- package/api/msgraph-webhooks-api.ts +278 -0
- package/api/notification-templates-api.ts +96 -51
- package/api/notifications-api.ts +128 -7
- package/api.ts +6 -0
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/email-mailboxes-api.d.ts +87 -0
- package/dist/api/email-mailboxes-api.js +225 -0
- package/dist/api/email-messages-api.d.ts +110 -32
- package/dist/api/email-messages-api.js +199 -56
- package/dist/api/email-subscriptions-api.d.ts +432 -0
- package/dist/api/email-subscriptions-api.js +761 -0
- package/dist/api/email-tracking-api.d.ts +174 -44
- package/dist/api/email-tracking-api.js +299 -64
- package/dist/api/email-verifications-api.d.ts +18 -10
- package/dist/api/email-verifications-api.js +46 -24
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/layouts-api.d.ts +61 -41
- package/dist/api/layouts-api.js +119 -70
- package/dist/api/msgraph-webhooks-api.d.ts +168 -0
- package/dist/api/msgraph-webhooks-api.js +305 -0
- package/dist/api/notification-templates-api.d.ts +61 -41
- package/dist/api/notification-templates-api.js +119 -70
- package/dist/api/notifications-api.d.ts +66 -5
- package/dist/api/notifications-api.js +123 -12
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/assign-email-thread-entity-body-dto.d.ts +43 -0
- package/dist/models/assign-email-thread-entity-body-dto.js +22 -0
- package/dist/models/assign-email-thread-entity-response-class.d.ts +25 -0
- package/dist/models/assign-email-thread-entity-response-class.js +15 -0
- package/dist/models/catch-up-email-subscription-response-class.d.ts +24 -0
- package/dist/models/catch-up-email-subscription-response-class.js +15 -0
- package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +24 -0
- package/dist/models/catch-up-email-subscriptions-request-dto.js +15 -0
- package/dist/models/catch-up-email-subscriptions-response-class.d.ts +30 -0
- package/dist/models/catch-up-email-subscriptions-response-class.js +15 -0
- package/dist/models/email-mailbox-class.d.ts +47 -0
- package/dist/models/email-mailbox-class.js +20 -0
- package/dist/models/email-message-class.d.ts +102 -7
- package/dist/models/email-message-class.js +25 -2
- package/dist/models/email-message-summary-class.d.ts +121 -0
- package/dist/models/email-message-summary-class.js +37 -0
- package/dist/models/email-subscription-class.d.ts +110 -0
- package/dist/models/email-subscription-class.js +23 -0
- package/dist/models/email-thread-class.d.ts +37 -5
- package/dist/models/entity-ref-class.d.ts +37 -0
- package/dist/models/entity-ref-class.js +22 -0
- package/dist/models/get-email-subscription-response-class.d.ts +25 -0
- package/dist/models/get-email-subscription-response-class.js +15 -0
- package/dist/models/grpc-send-email-request-dto.d.ts +137 -0
- package/dist/models/grpc-send-email-request-dto.js +22 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/dist/models/inline-attachment-dto.d.ts +36 -0
- package/dist/models/inline-attachment-dto.js +15 -0
- package/dist/models/list-email-mailboxes-response-class.d.ts +43 -0
- package/dist/models/list-email-mailboxes-response-class.js +15 -0
- package/dist/models/list-email-subscriptions-response-class.d.ts +43 -0
- package/dist/models/list-email-subscriptions-response-class.js +15 -0
- package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +24 -0
- package/dist/models/reconcile-email-subscriptions-request-dto.js +15 -0
- package/dist/models/reconcile-email-subscriptions-response-class.d.ts +48 -0
- package/dist/models/reconcile-email-subscriptions-response-class.js +15 -0
- package/dist/models/renew-email-subscription-response-class.d.ts +25 -0
- package/dist/models/renew-email-subscription-response-class.js +15 -0
- package/dist/models/resend-email-message-body-dto.d.ts +30 -0
- package/dist/models/resend-email-message-body-dto.js +15 -0
- package/dist/models/resend-email-message-response-class.d.ts +25 -0
- package/dist/models/resend-email-message-response-class.js +15 -0
- package/dist/models/send-email-request-dto.d.ts +131 -0
- package/dist/models/send-email-request-dto.js +22 -0
- package/dist/models/send-email-response-class.d.ts +24 -0
- package/dist/models/send-email-response-class.js +15 -0
- package/dist/models/send-notification-request-dto.d.ts +10 -1
- package/dist/models/send-notification-request-dto.js +2 -1
- package/dist/models/unassign-email-thread-entity-response-class.d.ts +25 -0
- package/dist/models/unassign-email-thread-entity-response-class.js +15 -0
- package/models/assign-email-thread-entity-body-dto.ts +52 -0
- package/models/assign-email-thread-entity-response-class.ts +31 -0
- package/models/catch-up-email-subscription-response-class.ts +30 -0
- package/models/catch-up-email-subscriptions-request-dto.ts +30 -0
- package/models/catch-up-email-subscriptions-response-class.ts +36 -0
- package/models/email-mailbox-class.ts +56 -0
- package/models/email-message-class.ts +108 -8
- package/models/email-message-summary-class.ts +133 -0
- package/models/email-subscription-class.ts +119 -0
- package/models/email-thread-class.ts +37 -5
- package/models/entity-ref-class.ts +46 -0
- package/models/get-email-subscription-response-class.ts +31 -0
- package/models/grpc-send-email-request-dto.ts +144 -0
- package/models/index.ts +22 -0
- package/models/inline-attachment-dto.ts +42 -0
- package/models/list-email-mailboxes-response-class.ts +49 -0
- package/models/list-email-subscriptions-response-class.ts +49 -0
- package/models/reconcile-email-subscriptions-request-dto.ts +30 -0
- package/models/reconcile-email-subscriptions-response-class.ts +54 -0
- package/models/renew-email-subscription-response-class.ts +31 -0
- package/models/resend-email-message-body-dto.ts +36 -0
- package/models/resend-email-message-response-class.ts +31 -0
- package/models/send-email-request-dto.ts +138 -0
- package/models/send-email-response-class.ts +30 -0
- package/models/send-notification-request-dto.ts +9 -2
- package/models/unassign-email-thread-entity-response-class.ts +31 -0
- package/package.json +2 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CatchUpEmailSubscriptionsRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CatchUpEmailSubscriptionsRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Catch up the email channel of this product. Omit it to catch up the tenant-wide email channel.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CatchUpEmailSubscriptionsRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'productSlug'?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL NotificationService
|
|
6
|
+
* The EMIL NotificationService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CatchUpEmailSubscriptionsResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface CatchUpEmailSubscriptionsResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Subscriptions a catch-up was queued for
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CatchUpEmailSubscriptionsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'queued': number;
|
|
24
|
+
/**
|
|
25
|
+
* Subscriptions skipped because they are being deleted or could not be queued
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CatchUpEmailSubscriptionsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'skipped': number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL NotificationService
|
|
6
|
+
* The EMIL NotificationService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EmailMailboxClass
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailMailboxClass {
|
|
18
|
+
/**
|
|
19
|
+
* Email address of the mailbox, lower-cased. Use it as the `mailbox` filter when listing email threads or messages.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EmailMailboxClass
|
|
22
|
+
*/
|
|
23
|
+
'address': string;
|
|
24
|
+
/**
|
|
25
|
+
* Transport the mailbox belongs to: a Microsoft 365 mailbox reached through Graph, or the sender address of an SES tenant
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EmailMailboxClass
|
|
28
|
+
*/
|
|
29
|
+
'provider': EmailMailboxClassProviderEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Number of threads in this mailbox whose latest message is inbound — the total of listing email threads with `mailbox` and `latestDirection==inbound`. Delivery reports (bounces) are not counted.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof EmailMailboxClass
|
|
34
|
+
*/
|
|
35
|
+
'inboundCount': number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of threads in this mailbox whose latest message is outbound — the total of listing email threads with `mailbox` and `latestDirection==outbound`
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof EmailMailboxClass
|
|
40
|
+
*/
|
|
41
|
+
'outboundCount': number;
|
|
42
|
+
}
|
|
43
|
+
export declare const EmailMailboxClassProviderEnum: {
|
|
44
|
+
readonly Ses: "ses";
|
|
45
|
+
readonly Msgraph: "msgraph";
|
|
46
|
+
};
|
|
47
|
+
export type EmailMailboxClassProviderEnum = typeof EmailMailboxClassProviderEnum[keyof typeof EmailMailboxClassProviderEnum];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL NotificationService
|
|
6
|
+
* The EMIL NotificationService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EmailMailboxClassProviderEnum = void 0;
|
|
17
|
+
exports.EmailMailboxClassProviderEnum = {
|
|
18
|
+
Ses: 'ses',
|
|
19
|
+
Msgraph: 'msgraph'
|
|
20
|
+
};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { EmailAttachmentClass } from './email-attachment-class';
|
|
13
|
+
import { EntityRefClass } from './entity-ref-class';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -29,11 +30,41 @@ export interface EmailMessageClass {
|
|
|
29
30
|
*/
|
|
30
31
|
'code': string;
|
|
31
32
|
/**
|
|
32
|
-
* Thread code this message belongs to
|
|
33
|
+
* Thread code this message belongs to. Empty only while an inbound message is still being correlated.
|
|
33
34
|
* @type {string}
|
|
34
35
|
* @memberof EmailMessageClass
|
|
35
36
|
*/
|
|
36
37
|
'threadCode': string;
|
|
38
|
+
/**
|
|
39
|
+
* Correlation state of an inbound message: pending, matched (thread and entity known) or unassigned (thread known, no entity yet)
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof EmailMessageClass
|
|
42
|
+
*/
|
|
43
|
+
'matchStatus': EmailMessageClassMatchStatusEnum;
|
|
44
|
+
/**
|
|
45
|
+
* What this row is: a message somebody wrote, or a delivery report (bounce) a mail server sent back about an outbound message
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof EmailMessageClass
|
|
48
|
+
*/
|
|
49
|
+
'kind': EmailMessageClassKindEnum;
|
|
50
|
+
/**
|
|
51
|
+
* Delivery report only: code of the outbound message the report is about
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof EmailMessageClass
|
|
54
|
+
*/
|
|
55
|
+
'reportedMessageCode'?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Provider the message was sent or received through
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof EmailMessageClass
|
|
60
|
+
*/
|
|
61
|
+
'provider'?: EmailMessageClassProviderEnum;
|
|
62
|
+
/**
|
|
63
|
+
* Mailbox the message belongs to: the Microsoft 365 mailbox it was sent from or arrived in, or the sender address for SES. Empty for an inbound email that matched nothing yet.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof EmailMessageClass
|
|
66
|
+
*/
|
|
67
|
+
'mailbox'?: string;
|
|
37
68
|
/**
|
|
38
69
|
* Direction of the email
|
|
39
70
|
* @type {string}
|
|
@@ -77,7 +108,7 @@ export interface EmailMessageClass {
|
|
|
77
108
|
*/
|
|
78
109
|
'bodyHtml'?: string;
|
|
79
110
|
/**
|
|
80
|
-
* Delivery status of the email
|
|
111
|
+
* Delivery status of the email. Outbound emails move through pending → sent, then bounced if a bounce arrives; failed marks a system-level send failure; inbound emails are always received.
|
|
81
112
|
* @type {string}
|
|
82
113
|
* @memberof EmailMessageClass
|
|
83
114
|
*/
|
|
@@ -131,18 +162,70 @@ export interface EmailMessageClass {
|
|
|
131
162
|
*/
|
|
132
163
|
'attachments': Array<EmailAttachmentClass>;
|
|
133
164
|
/**
|
|
134
|
-
*
|
|
165
|
+
* Inbound only: how many attachments the email arrived with, images embedded in the body not counted. At most 10 attachments and 35 MB in total are kept, in order, stopping at the first that does not fit; when this is higher than the length of `attachments`, the rest are only in the original email.
|
|
166
|
+
* @type {number}
|
|
167
|
+
* @memberof EmailMessageClass
|
|
168
|
+
*/
|
|
169
|
+
'attachmentCount'?: number;
|
|
170
|
+
/**
|
|
171
|
+
* The entity the message\'s thread is linked to. Not set while the message is unassigned.
|
|
172
|
+
* @type {EntityRefClass}
|
|
173
|
+
* @memberof EmailMessageClass
|
|
174
|
+
*/
|
|
175
|
+
'entityRef'?: EntityRefClass;
|
|
176
|
+
/**
|
|
177
|
+
* Business number of the linked entity (policy, lead, claim or partner number)
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof EmailMessageClass
|
|
180
|
+
*/
|
|
181
|
+
'entityNumber'?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Latest workflow status of the email: the status of whichever workflow it triggered changed most recently. Counts EMAIL_RECEIVED workflows for an incoming email and EMAIL_BOUNCED workflows for an outgoing one. Not set when the email triggered no workflow.
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof EmailMessageClass
|
|
186
|
+
*/
|
|
187
|
+
'workflowStatus'?: EmailMessageClassWorkflowStatusEnum;
|
|
188
|
+
/**
|
|
189
|
+
* Set only on an email that was created by resending another one: code of the bounced or failed email it was resent from. Written once when the email is created and never changed.
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof EmailMessageClass
|
|
192
|
+
*/
|
|
193
|
+
'resentFromMessageCode'?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Set only on a resent email: why it was resent, which is the delivery status the original had at that moment.
|
|
135
196
|
* @type {string}
|
|
136
197
|
* @memberof EmailMessageClass
|
|
137
198
|
*/
|
|
138
|
-
'
|
|
199
|
+
'resendReason'?: EmailMessageClassResendReasonEnum;
|
|
139
200
|
/**
|
|
140
|
-
*
|
|
201
|
+
* Set only on an email resent because of a bounce: the bounced address that was corrected, or the bounced addresses, comma-separated, when none was corrected. `toAddresses` holds the addresses the email was resent to.
|
|
141
202
|
* @type {string}
|
|
142
203
|
* @memberof EmailMessageClass
|
|
143
204
|
*/
|
|
144
|
-
'
|
|
205
|
+
'resentOriginalRecipient'?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Set only on an outgoing email a person sent: their name, taken from their login when the email was created. Not set when a workflow or the system sent it, and never on an incoming email (see `fromAddress`).
|
|
208
|
+
* @type {string}
|
|
209
|
+
* @memberof EmailMessageClass
|
|
210
|
+
*/
|
|
211
|
+
'sentByName'?: string;
|
|
145
212
|
}
|
|
213
|
+
export declare const EmailMessageClassMatchStatusEnum: {
|
|
214
|
+
readonly Pending: "pending";
|
|
215
|
+
readonly Matched: "matched";
|
|
216
|
+
readonly Unassigned: "unassigned";
|
|
217
|
+
};
|
|
218
|
+
export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
|
|
219
|
+
export declare const EmailMessageClassKindEnum: {
|
|
220
|
+
readonly Message: "message";
|
|
221
|
+
readonly DeliveryReport: "delivery_report";
|
|
222
|
+
};
|
|
223
|
+
export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
|
|
224
|
+
export declare const EmailMessageClassProviderEnum: {
|
|
225
|
+
readonly Ses: "ses";
|
|
226
|
+
readonly Msgraph: "msgraph";
|
|
227
|
+
};
|
|
228
|
+
export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
|
|
146
229
|
export declare const EmailMessageClassDirectionEnum: {
|
|
147
230
|
readonly Outbound: "outbound";
|
|
148
231
|
readonly Inbound: "inbound";
|
|
@@ -151,8 +234,20 @@ export type EmailMessageClassDirectionEnum = typeof EmailMessageClassDirectionEn
|
|
|
151
234
|
export declare const EmailMessageClassDeliveryStatusEnum: {
|
|
152
235
|
readonly Pending: "pending";
|
|
153
236
|
readonly Sent: "sent";
|
|
154
|
-
readonly Delivered: "delivered";
|
|
155
237
|
readonly Bounced: "bounced";
|
|
156
238
|
readonly Failed: "failed";
|
|
239
|
+
readonly Received: "received";
|
|
157
240
|
};
|
|
158
241
|
export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
|
|
242
|
+
export declare const EmailMessageClassWorkflowStatusEnum: {
|
|
243
|
+
readonly InProgress: "in_progress";
|
|
244
|
+
readonly Done: "done";
|
|
245
|
+
readonly Failed: "failed";
|
|
246
|
+
readonly Cancelled: "cancelled";
|
|
247
|
+
};
|
|
248
|
+
export type EmailMessageClassWorkflowStatusEnum = typeof EmailMessageClassWorkflowStatusEnum[keyof typeof EmailMessageClassWorkflowStatusEnum];
|
|
249
|
+
export declare const EmailMessageClassResendReasonEnum: {
|
|
250
|
+
readonly Bounced: "bounced";
|
|
251
|
+
readonly Failed: "failed";
|
|
252
|
+
};
|
|
253
|
+
export type EmailMessageClassResendReasonEnum = typeof EmailMessageClassResendReasonEnum[keyof typeof EmailMessageClassResendReasonEnum];
|
|
@@ -13,7 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.EmailMessageClassDeliveryStatusEnum = exports.EmailMessageClassDirectionEnum = void 0;
|
|
16
|
+
exports.EmailMessageClassResendReasonEnum = exports.EmailMessageClassWorkflowStatusEnum = exports.EmailMessageClassDeliveryStatusEnum = exports.EmailMessageClassDirectionEnum = exports.EmailMessageClassProviderEnum = exports.EmailMessageClassKindEnum = exports.EmailMessageClassMatchStatusEnum = void 0;
|
|
17
|
+
exports.EmailMessageClassMatchStatusEnum = {
|
|
18
|
+
Pending: 'pending',
|
|
19
|
+
Matched: 'matched',
|
|
20
|
+
Unassigned: 'unassigned'
|
|
21
|
+
};
|
|
22
|
+
exports.EmailMessageClassKindEnum = {
|
|
23
|
+
Message: 'message',
|
|
24
|
+
DeliveryReport: 'delivery_report'
|
|
25
|
+
};
|
|
26
|
+
exports.EmailMessageClassProviderEnum = {
|
|
27
|
+
Ses: 'ses',
|
|
28
|
+
Msgraph: 'msgraph'
|
|
29
|
+
};
|
|
17
30
|
exports.EmailMessageClassDirectionEnum = {
|
|
18
31
|
Outbound: 'outbound',
|
|
19
32
|
Inbound: 'inbound'
|
|
@@ -21,7 +34,17 @@ exports.EmailMessageClassDirectionEnum = {
|
|
|
21
34
|
exports.EmailMessageClassDeliveryStatusEnum = {
|
|
22
35
|
Pending: 'pending',
|
|
23
36
|
Sent: 'sent',
|
|
24
|
-
|
|
37
|
+
Bounced: 'bounced',
|
|
38
|
+
Failed: 'failed',
|
|
39
|
+
Received: 'received'
|
|
40
|
+
};
|
|
41
|
+
exports.EmailMessageClassWorkflowStatusEnum = {
|
|
42
|
+
InProgress: 'in_progress',
|
|
43
|
+
Done: 'done',
|
|
44
|
+
Failed: 'failed',
|
|
45
|
+
Cancelled: 'cancelled'
|
|
46
|
+
};
|
|
47
|
+
exports.EmailMessageClassResendReasonEnum = {
|
|
25
48
|
Bounced: 'bounced',
|
|
26
49
|
Failed: 'failed'
|
|
27
50
|
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EmailMessageSummaryClass
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailMessageSummaryClass {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier code for the email message. Use it to fetch the full message.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EmailMessageSummaryClass
|
|
22
|
+
*/
|
|
23
|
+
'code': string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the message was received or sent
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EmailMessageSummaryClass
|
|
28
|
+
*/
|
|
29
|
+
'direction': EmailMessageSummaryClassDirectionEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Sender email address
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EmailMessageSummaryClass
|
|
34
|
+
*/
|
|
35
|
+
'fromAddress': string;
|
|
36
|
+
/**
|
|
37
|
+
* Recipient email addresses, comma-separated
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EmailMessageSummaryClass
|
|
40
|
+
*/
|
|
41
|
+
'toAddresses': string;
|
|
42
|
+
/**
|
|
43
|
+
* Email subject
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EmailMessageSummaryClass
|
|
46
|
+
*/
|
|
47
|
+
'subject'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Delivery status of the message
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof EmailMessageSummaryClass
|
|
52
|
+
*/
|
|
53
|
+
'deliveryStatus': EmailMessageSummaryClassDeliveryStatusEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Timestamp when the email was sent
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof EmailMessageSummaryClass
|
|
58
|
+
*/
|
|
59
|
+
'sentAt'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Timestamp when the email was received
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof EmailMessageSummaryClass
|
|
64
|
+
*/
|
|
65
|
+
'receivedAt'?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Created at timestamp
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof EmailMessageSummaryClass
|
|
70
|
+
*/
|
|
71
|
+
'createdAt': string;
|
|
72
|
+
/**
|
|
73
|
+
* Latest workflow status of the email: the status of whichever workflow it triggered changed most recently. Counts EMAIL_RECEIVED workflows for an incoming email and EMAIL_BOUNCED workflows for an outgoing one. Not set when the email triggered no workflow.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof EmailMessageSummaryClass
|
|
76
|
+
*/
|
|
77
|
+
'workflowStatus'?: EmailMessageSummaryClassWorkflowStatusEnum;
|
|
78
|
+
/**
|
|
79
|
+
* Set only on an email that was created by resending another one: code of the bounced or failed email it was resent from.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof EmailMessageSummaryClass
|
|
82
|
+
*/
|
|
83
|
+
'resentFromMessageCode'?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Set only on a resent email: why it was resent, which is the delivery status the original had at that moment.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof EmailMessageSummaryClass
|
|
88
|
+
*/
|
|
89
|
+
'resendReason'?: EmailMessageSummaryClassResendReasonEnum;
|
|
90
|
+
/**
|
|
91
|
+
* Set only on an outgoing email a person sent: their name, taken from their login when the email was created. Not set when a workflow or the system sent it, and never on an incoming email (see `fromAddress`).
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof EmailMessageSummaryClass
|
|
94
|
+
*/
|
|
95
|
+
'sentByName'?: string;
|
|
96
|
+
}
|
|
97
|
+
export declare const EmailMessageSummaryClassDirectionEnum: {
|
|
98
|
+
readonly Outbound: "outbound";
|
|
99
|
+
readonly Inbound: "inbound";
|
|
100
|
+
};
|
|
101
|
+
export type EmailMessageSummaryClassDirectionEnum = typeof EmailMessageSummaryClassDirectionEnum[keyof typeof EmailMessageSummaryClassDirectionEnum];
|
|
102
|
+
export declare const EmailMessageSummaryClassDeliveryStatusEnum: {
|
|
103
|
+
readonly Pending: "pending";
|
|
104
|
+
readonly Sent: "sent";
|
|
105
|
+
readonly Bounced: "bounced";
|
|
106
|
+
readonly Failed: "failed";
|
|
107
|
+
readonly Received: "received";
|
|
108
|
+
};
|
|
109
|
+
export type EmailMessageSummaryClassDeliveryStatusEnum = typeof EmailMessageSummaryClassDeliveryStatusEnum[keyof typeof EmailMessageSummaryClassDeliveryStatusEnum];
|
|
110
|
+
export declare const EmailMessageSummaryClassWorkflowStatusEnum: {
|
|
111
|
+
readonly InProgress: "in_progress";
|
|
112
|
+
readonly Done: "done";
|
|
113
|
+
readonly Failed: "failed";
|
|
114
|
+
readonly Cancelled: "cancelled";
|
|
115
|
+
};
|
|
116
|
+
export type EmailMessageSummaryClassWorkflowStatusEnum = typeof EmailMessageSummaryClassWorkflowStatusEnum[keyof typeof EmailMessageSummaryClassWorkflowStatusEnum];
|
|
117
|
+
export declare const EmailMessageSummaryClassResendReasonEnum: {
|
|
118
|
+
readonly Bounced: "bounced";
|
|
119
|
+
readonly Failed: "failed";
|
|
120
|
+
};
|
|
121
|
+
export type EmailMessageSummaryClassResendReasonEnum = typeof EmailMessageSummaryClassResendReasonEnum[keyof typeof EmailMessageSummaryClassResendReasonEnum];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL NotificationService
|
|
6
|
+
* The EMIL NotificationService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EmailMessageSummaryClassResendReasonEnum = exports.EmailMessageSummaryClassWorkflowStatusEnum = exports.EmailMessageSummaryClassDeliveryStatusEnum = exports.EmailMessageSummaryClassDirectionEnum = void 0;
|
|
17
|
+
exports.EmailMessageSummaryClassDirectionEnum = {
|
|
18
|
+
Outbound: 'outbound',
|
|
19
|
+
Inbound: 'inbound'
|
|
20
|
+
};
|
|
21
|
+
exports.EmailMessageSummaryClassDeliveryStatusEnum = {
|
|
22
|
+
Pending: 'pending',
|
|
23
|
+
Sent: 'sent',
|
|
24
|
+
Bounced: 'bounced',
|
|
25
|
+
Failed: 'failed',
|
|
26
|
+
Received: 'received'
|
|
27
|
+
};
|
|
28
|
+
exports.EmailMessageSummaryClassWorkflowStatusEnum = {
|
|
29
|
+
InProgress: 'in_progress',
|
|
30
|
+
Done: 'done',
|
|
31
|
+
Failed: 'failed',
|
|
32
|
+
Cancelled: 'cancelled'
|
|
33
|
+
};
|
|
34
|
+
exports.EmailMessageSummaryClassResendReasonEnum = {
|
|
35
|
+
Bounced: 'bounced',
|
|
36
|
+
Failed: 'failed'
|
|
37
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EmailSubscriptionClass
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailSubscriptionClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof EmailSubscriptionClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Tenant the subscription belongs to
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EmailSubscriptionClass
|
|
28
|
+
*/
|
|
29
|
+
'tenantSlug': string;
|
|
30
|
+
/**
|
|
31
|
+
* Product whose email channel configures the mailbox. Empty for the tenant-wide email channel.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EmailSubscriptionClass
|
|
34
|
+
*/
|
|
35
|
+
'productSlug'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Mailbox whose incoming mail is delivered to the platform
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EmailSubscriptionClass
|
|
40
|
+
*/
|
|
41
|
+
'mailbox': string;
|
|
42
|
+
/**
|
|
43
|
+
* Mailbox folder the subscription watches
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EmailSubscriptionClass
|
|
46
|
+
*/
|
|
47
|
+
'folder': string;
|
|
48
|
+
/**
|
|
49
|
+
* Id of the subscription in Microsoft Graph. Empty while the subscription is not created yet.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof EmailSubscriptionClass
|
|
52
|
+
*/
|
|
53
|
+
'subscriptionId'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Subscription status. active: Graph delivers new mail. pending: the subscription still has to be created. failed: Graph could not renew it in time. deleting / deletion-failed: the mailbox was removed from the email channel and the subscription is being deleted.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof EmailSubscriptionClass
|
|
58
|
+
*/
|
|
59
|
+
'status': EmailSubscriptionClassStatusEnum;
|
|
60
|
+
/**
|
|
61
|
+
* When Microsoft Graph stops delivering mail unless the subscription is renewed. Renewed automatically within the last 24 hours.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof EmailSubscriptionClass
|
|
64
|
+
*/
|
|
65
|
+
'expiresAt'?: string;
|
|
66
|
+
/**
|
|
67
|
+
* When the subscription was last created or renewed
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof EmailSubscriptionClass
|
|
70
|
+
*/
|
|
71
|
+
'lastRenewedAt'?: string;
|
|
72
|
+
/**
|
|
73
|
+
* When Microsoft Graph last notified about new mail
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof EmailSubscriptionClass
|
|
76
|
+
*/
|
|
77
|
+
'lastNotificationAt'?: string;
|
|
78
|
+
/**
|
|
79
|
+
* When the last catch-up of missed mail finished. Empty until the first one runs.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof EmailSubscriptionClass
|
|
82
|
+
*/
|
|
83
|
+
'lastDeltaAt'?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Error of the last failed Graph call, empty once it succeeds
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof EmailSubscriptionClass
|
|
88
|
+
*/
|
|
89
|
+
'lastError'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Created at timestamp
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof EmailSubscriptionClass
|
|
94
|
+
*/
|
|
95
|
+
'createdAt': string;
|
|
96
|
+
/**
|
|
97
|
+
* Updated at timestamp
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof EmailSubscriptionClass
|
|
100
|
+
*/
|
|
101
|
+
'updatedAt': string;
|
|
102
|
+
}
|
|
103
|
+
export declare const EmailSubscriptionClassStatusEnum: {
|
|
104
|
+
readonly Pending: "pending";
|
|
105
|
+
readonly Active: "active";
|
|
106
|
+
readonly Failed: "failed";
|
|
107
|
+
readonly Deleting: "deleting";
|
|
108
|
+
readonly DeletionFailed: "deletion-failed";
|
|
109
|
+
};
|
|
110
|
+
export type EmailSubscriptionClassStatusEnum = typeof EmailSubscriptionClassStatusEnum[keyof typeof EmailSubscriptionClassStatusEnum];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL NotificationService
|
|
6
|
+
* The EMIL NotificationService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EmailSubscriptionClassStatusEnum = void 0;
|
|
17
|
+
exports.EmailSubscriptionClassStatusEnum = {
|
|
18
|
+
Pending: 'pending',
|
|
19
|
+
Active: 'active',
|
|
20
|
+
Failed: 'failed',
|
|
21
|
+
Deleting: 'deleting',
|
|
22
|
+
DeletionFailed: 'deletion-failed'
|
|
23
|
+
};
|