@emilgroup/notification-sdk 0.8.1-beta.7 → 0.8.1-beta.70
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,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL NotificationService
|
|
5
|
+
* The EMIL NotificationService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface EmailMailboxClass
|
|
21
|
+
*/
|
|
22
|
+
export interface EmailMailboxClass {
|
|
23
|
+
/**
|
|
24
|
+
* Email address of the mailbox, lower-cased. Use it as the `mailbox` filter when listing email threads or messages.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof EmailMailboxClass
|
|
27
|
+
*/
|
|
28
|
+
'address': string;
|
|
29
|
+
/**
|
|
30
|
+
* Transport the mailbox belongs to: a Microsoft 365 mailbox reached through Graph, or the sender address of an SES tenant
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof EmailMailboxClass
|
|
33
|
+
*/
|
|
34
|
+
'provider': EmailMailboxClassProviderEnum;
|
|
35
|
+
/**
|
|
36
|
+
* 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.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof EmailMailboxClass
|
|
39
|
+
*/
|
|
40
|
+
'inboundCount': number;
|
|
41
|
+
/**
|
|
42
|
+
* Number of threads in this mailbox whose latest message is outbound — the total of listing email threads with `mailbox` and `latestDirection==outbound`
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof EmailMailboxClass
|
|
45
|
+
*/
|
|
46
|
+
'outboundCount': number;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const EmailMailboxClassProviderEnum = {
|
|
50
|
+
Ses: 'ses',
|
|
51
|
+
Msgraph: 'msgraph'
|
|
52
|
+
} as const;
|
|
53
|
+
|
|
54
|
+
export type EmailMailboxClassProviderEnum = typeof EmailMailboxClassProviderEnum[keyof typeof EmailMailboxClassProviderEnum];
|
|
55
|
+
|
|
56
|
+
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import { EmailAttachmentClass } from './email-attachment-class';
|
|
17
|
+
import { EntityRefClass } from './entity-ref-class';
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
@@ -34,11 +35,41 @@ export interface EmailMessageClass {
|
|
|
34
35
|
*/
|
|
35
36
|
'code': string;
|
|
36
37
|
/**
|
|
37
|
-
* Thread code this message belongs to
|
|
38
|
+
* Thread code this message belongs to. Empty only while an inbound message is still being correlated.
|
|
38
39
|
* @type {string}
|
|
39
40
|
* @memberof EmailMessageClass
|
|
40
41
|
*/
|
|
41
42
|
'threadCode': string;
|
|
43
|
+
/**
|
|
44
|
+
* Correlation state of an inbound message: pending, matched (thread and entity known) or unassigned (thread known, no entity yet)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof EmailMessageClass
|
|
47
|
+
*/
|
|
48
|
+
'matchStatus': EmailMessageClassMatchStatusEnum;
|
|
49
|
+
/**
|
|
50
|
+
* What this row is: a message somebody wrote, or a delivery report (bounce) a mail server sent back about an outbound message
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof EmailMessageClass
|
|
53
|
+
*/
|
|
54
|
+
'kind': EmailMessageClassKindEnum;
|
|
55
|
+
/**
|
|
56
|
+
* Delivery report only: code of the outbound message the report is about
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof EmailMessageClass
|
|
59
|
+
*/
|
|
60
|
+
'reportedMessageCode'?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Provider the message was sent or received through
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof EmailMessageClass
|
|
65
|
+
*/
|
|
66
|
+
'provider'?: EmailMessageClassProviderEnum;
|
|
67
|
+
/**
|
|
68
|
+
* 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.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof EmailMessageClass
|
|
71
|
+
*/
|
|
72
|
+
'mailbox'?: string;
|
|
42
73
|
/**
|
|
43
74
|
* Direction of the email
|
|
44
75
|
* @type {string}
|
|
@@ -82,7 +113,7 @@ export interface EmailMessageClass {
|
|
|
82
113
|
*/
|
|
83
114
|
'bodyHtml'?: string;
|
|
84
115
|
/**
|
|
85
|
-
* Delivery status of the email
|
|
116
|
+
* 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.
|
|
86
117
|
* @type {string}
|
|
87
118
|
* @memberof EmailMessageClass
|
|
88
119
|
*/
|
|
@@ -136,19 +167,74 @@ export interface EmailMessageClass {
|
|
|
136
167
|
*/
|
|
137
168
|
'attachments': Array<EmailAttachmentClass>;
|
|
138
169
|
/**
|
|
139
|
-
*
|
|
170
|
+
* 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.
|
|
171
|
+
* @type {number}
|
|
172
|
+
* @memberof EmailMessageClass
|
|
173
|
+
*/
|
|
174
|
+
'attachmentCount'?: number;
|
|
175
|
+
/**
|
|
176
|
+
* The entity the message\'s thread is linked to. Not set while the message is unassigned.
|
|
177
|
+
* @type {EntityRefClass}
|
|
178
|
+
* @memberof EmailMessageClass
|
|
179
|
+
*/
|
|
180
|
+
'entityRef'?: EntityRefClass;
|
|
181
|
+
/**
|
|
182
|
+
* Business number of the linked entity (policy, lead, claim or partner number)
|
|
140
183
|
* @type {string}
|
|
141
184
|
* @memberof EmailMessageClass
|
|
142
185
|
*/
|
|
143
|
-
'
|
|
186
|
+
'entityNumber'?: string;
|
|
144
187
|
/**
|
|
145
|
-
*
|
|
188
|
+
* 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.
|
|
146
189
|
* @type {string}
|
|
147
190
|
* @memberof EmailMessageClass
|
|
148
191
|
*/
|
|
149
|
-
'
|
|
192
|
+
'workflowStatus'?: EmailMessageClassWorkflowStatusEnum;
|
|
193
|
+
/**
|
|
194
|
+
* 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.
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof EmailMessageClass
|
|
197
|
+
*/
|
|
198
|
+
'resentFromMessageCode'?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Set only on a resent email: why it was resent, which is the delivery status the original had at that moment.
|
|
201
|
+
* @type {string}
|
|
202
|
+
* @memberof EmailMessageClass
|
|
203
|
+
*/
|
|
204
|
+
'resendReason'?: EmailMessageClassResendReasonEnum;
|
|
205
|
+
/**
|
|
206
|
+
* 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.
|
|
207
|
+
* @type {string}
|
|
208
|
+
* @memberof EmailMessageClass
|
|
209
|
+
*/
|
|
210
|
+
'resentOriginalRecipient'?: string;
|
|
211
|
+
/**
|
|
212
|
+
* 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`).
|
|
213
|
+
* @type {string}
|
|
214
|
+
* @memberof EmailMessageClass
|
|
215
|
+
*/
|
|
216
|
+
'sentByName'?: string;
|
|
150
217
|
}
|
|
151
218
|
|
|
219
|
+
export const EmailMessageClassMatchStatusEnum = {
|
|
220
|
+
Pending: 'pending',
|
|
221
|
+
Matched: 'matched',
|
|
222
|
+
Unassigned: 'unassigned'
|
|
223
|
+
} as const;
|
|
224
|
+
|
|
225
|
+
export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
|
|
226
|
+
export const EmailMessageClassKindEnum = {
|
|
227
|
+
Message: 'message',
|
|
228
|
+
DeliveryReport: 'delivery_report'
|
|
229
|
+
} as const;
|
|
230
|
+
|
|
231
|
+
export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
|
|
232
|
+
export const EmailMessageClassProviderEnum = {
|
|
233
|
+
Ses: 'ses',
|
|
234
|
+
Msgraph: 'msgraph'
|
|
235
|
+
} as const;
|
|
236
|
+
|
|
237
|
+
export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
|
|
152
238
|
export const EmailMessageClassDirectionEnum = {
|
|
153
239
|
Outbound: 'outbound',
|
|
154
240
|
Inbound: 'inbound'
|
|
@@ -158,11 +244,25 @@ export type EmailMessageClassDirectionEnum = typeof EmailMessageClassDirectionEn
|
|
|
158
244
|
export const EmailMessageClassDeliveryStatusEnum = {
|
|
159
245
|
Pending: 'pending',
|
|
160
246
|
Sent: 'sent',
|
|
161
|
-
Delivered: 'delivered',
|
|
162
247
|
Bounced: 'bounced',
|
|
163
|
-
Failed: 'failed'
|
|
248
|
+
Failed: 'failed',
|
|
249
|
+
Received: 'received'
|
|
164
250
|
} as const;
|
|
165
251
|
|
|
166
252
|
export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
|
|
253
|
+
export const EmailMessageClassWorkflowStatusEnum = {
|
|
254
|
+
InProgress: 'in_progress',
|
|
255
|
+
Done: 'done',
|
|
256
|
+
Failed: 'failed',
|
|
257
|
+
Cancelled: 'cancelled'
|
|
258
|
+
} as const;
|
|
259
|
+
|
|
260
|
+
export type EmailMessageClassWorkflowStatusEnum = typeof EmailMessageClassWorkflowStatusEnum[keyof typeof EmailMessageClassWorkflowStatusEnum];
|
|
261
|
+
export const EmailMessageClassResendReasonEnum = {
|
|
262
|
+
Bounced: 'bounced',
|
|
263
|
+
Failed: 'failed'
|
|
264
|
+
} as const;
|
|
265
|
+
|
|
266
|
+
export type EmailMessageClassResendReasonEnum = typeof EmailMessageClassResendReasonEnum[keyof typeof EmailMessageClassResendReasonEnum];
|
|
167
267
|
|
|
168
268
|
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL NotificationService
|
|
5
|
+
* The EMIL NotificationService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface EmailMessageSummaryClass
|
|
21
|
+
*/
|
|
22
|
+
export interface EmailMessageSummaryClass {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier code for the email message. Use it to fetch the full message.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof EmailMessageSummaryClass
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the message was received or sent
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof EmailMessageSummaryClass
|
|
33
|
+
*/
|
|
34
|
+
'direction': EmailMessageSummaryClassDirectionEnum;
|
|
35
|
+
/**
|
|
36
|
+
* Sender email address
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof EmailMessageSummaryClass
|
|
39
|
+
*/
|
|
40
|
+
'fromAddress': string;
|
|
41
|
+
/**
|
|
42
|
+
* Recipient email addresses, comma-separated
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof EmailMessageSummaryClass
|
|
45
|
+
*/
|
|
46
|
+
'toAddresses': string;
|
|
47
|
+
/**
|
|
48
|
+
* Email subject
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof EmailMessageSummaryClass
|
|
51
|
+
*/
|
|
52
|
+
'subject'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Delivery status of the message
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof EmailMessageSummaryClass
|
|
57
|
+
*/
|
|
58
|
+
'deliveryStatus': EmailMessageSummaryClassDeliveryStatusEnum;
|
|
59
|
+
/**
|
|
60
|
+
* Timestamp when the email was sent
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof EmailMessageSummaryClass
|
|
63
|
+
*/
|
|
64
|
+
'sentAt'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Timestamp when the email was received
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof EmailMessageSummaryClass
|
|
69
|
+
*/
|
|
70
|
+
'receivedAt'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Created at timestamp
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof EmailMessageSummaryClass
|
|
75
|
+
*/
|
|
76
|
+
'createdAt': string;
|
|
77
|
+
/**
|
|
78
|
+
* 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.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof EmailMessageSummaryClass
|
|
81
|
+
*/
|
|
82
|
+
'workflowStatus'?: EmailMessageSummaryClassWorkflowStatusEnum;
|
|
83
|
+
/**
|
|
84
|
+
* Set only on an email that was created by resending another one: code of the bounced or failed email it was resent from.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof EmailMessageSummaryClass
|
|
87
|
+
*/
|
|
88
|
+
'resentFromMessageCode'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Set only on a resent email: why it was resent, which is the delivery status the original had at that moment.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof EmailMessageSummaryClass
|
|
93
|
+
*/
|
|
94
|
+
'resendReason'?: EmailMessageSummaryClassResendReasonEnum;
|
|
95
|
+
/**
|
|
96
|
+
* 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`).
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof EmailMessageSummaryClass
|
|
99
|
+
*/
|
|
100
|
+
'sentByName'?: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const EmailMessageSummaryClassDirectionEnum = {
|
|
104
|
+
Outbound: 'outbound',
|
|
105
|
+
Inbound: 'inbound'
|
|
106
|
+
} as const;
|
|
107
|
+
|
|
108
|
+
export type EmailMessageSummaryClassDirectionEnum = typeof EmailMessageSummaryClassDirectionEnum[keyof typeof EmailMessageSummaryClassDirectionEnum];
|
|
109
|
+
export const EmailMessageSummaryClassDeliveryStatusEnum = {
|
|
110
|
+
Pending: 'pending',
|
|
111
|
+
Sent: 'sent',
|
|
112
|
+
Bounced: 'bounced',
|
|
113
|
+
Failed: 'failed',
|
|
114
|
+
Received: 'received'
|
|
115
|
+
} as const;
|
|
116
|
+
|
|
117
|
+
export type EmailMessageSummaryClassDeliveryStatusEnum = typeof EmailMessageSummaryClassDeliveryStatusEnum[keyof typeof EmailMessageSummaryClassDeliveryStatusEnum];
|
|
118
|
+
export const EmailMessageSummaryClassWorkflowStatusEnum = {
|
|
119
|
+
InProgress: 'in_progress',
|
|
120
|
+
Done: 'done',
|
|
121
|
+
Failed: 'failed',
|
|
122
|
+
Cancelled: 'cancelled'
|
|
123
|
+
} as const;
|
|
124
|
+
|
|
125
|
+
export type EmailMessageSummaryClassWorkflowStatusEnum = typeof EmailMessageSummaryClassWorkflowStatusEnum[keyof typeof EmailMessageSummaryClassWorkflowStatusEnum];
|
|
126
|
+
export const EmailMessageSummaryClassResendReasonEnum = {
|
|
127
|
+
Bounced: 'bounced',
|
|
128
|
+
Failed: 'failed'
|
|
129
|
+
} as const;
|
|
130
|
+
|
|
131
|
+
export type EmailMessageSummaryClassResendReasonEnum = typeof EmailMessageSummaryClassResendReasonEnum[keyof typeof EmailMessageSummaryClassResendReasonEnum];
|
|
132
|
+
|
|
133
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL NotificationService
|
|
5
|
+
* The EMIL NotificationService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface EmailSubscriptionClass
|
|
21
|
+
*/
|
|
22
|
+
export interface EmailSubscriptionClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof EmailSubscriptionClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Tenant the subscription belongs to
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof EmailSubscriptionClass
|
|
33
|
+
*/
|
|
34
|
+
'tenantSlug': string;
|
|
35
|
+
/**
|
|
36
|
+
* Product whose email channel configures the mailbox. Empty for the tenant-wide email channel.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof EmailSubscriptionClass
|
|
39
|
+
*/
|
|
40
|
+
'productSlug'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Mailbox whose incoming mail is delivered to the platform
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof EmailSubscriptionClass
|
|
45
|
+
*/
|
|
46
|
+
'mailbox': string;
|
|
47
|
+
/**
|
|
48
|
+
* Mailbox folder the subscription watches
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof EmailSubscriptionClass
|
|
51
|
+
*/
|
|
52
|
+
'folder': string;
|
|
53
|
+
/**
|
|
54
|
+
* Id of the subscription in Microsoft Graph. Empty while the subscription is not created yet.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof EmailSubscriptionClass
|
|
57
|
+
*/
|
|
58
|
+
'subscriptionId'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* 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.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof EmailSubscriptionClass
|
|
63
|
+
*/
|
|
64
|
+
'status': EmailSubscriptionClassStatusEnum;
|
|
65
|
+
/**
|
|
66
|
+
* When Microsoft Graph stops delivering mail unless the subscription is renewed. Renewed automatically within the last 24 hours.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof EmailSubscriptionClass
|
|
69
|
+
*/
|
|
70
|
+
'expiresAt'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* When the subscription was last created or renewed
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof EmailSubscriptionClass
|
|
75
|
+
*/
|
|
76
|
+
'lastRenewedAt'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* When Microsoft Graph last notified about new mail
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof EmailSubscriptionClass
|
|
81
|
+
*/
|
|
82
|
+
'lastNotificationAt'?: string;
|
|
83
|
+
/**
|
|
84
|
+
* When the last catch-up of missed mail finished. Empty until the first one runs.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof EmailSubscriptionClass
|
|
87
|
+
*/
|
|
88
|
+
'lastDeltaAt'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Error of the last failed Graph call, empty once it succeeds
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof EmailSubscriptionClass
|
|
93
|
+
*/
|
|
94
|
+
'lastError'?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Created at timestamp
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof EmailSubscriptionClass
|
|
99
|
+
*/
|
|
100
|
+
'createdAt': string;
|
|
101
|
+
/**
|
|
102
|
+
* Updated at timestamp
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof EmailSubscriptionClass
|
|
105
|
+
*/
|
|
106
|
+
'updatedAt': string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export const EmailSubscriptionClassStatusEnum = {
|
|
110
|
+
Pending: 'pending',
|
|
111
|
+
Active: 'active',
|
|
112
|
+
Failed: 'failed',
|
|
113
|
+
Deleting: 'deleting',
|
|
114
|
+
DeletionFailed: 'deletion-failed'
|
|
115
|
+
} as const;
|
|
116
|
+
|
|
117
|
+
export type EmailSubscriptionClassStatusEnum = typeof EmailSubscriptionClassStatusEnum[keyof typeof EmailSubscriptionClassStatusEnum];
|
|
118
|
+
|
|
119
|
+
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { EmailMessageSummaryClass } from './email-message-summary-class';
|
|
17
|
+
import { EntityRefClass } from './entity-ref-class';
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
20
|
*
|
|
@@ -33,17 +35,17 @@ export interface EmailThreadClass {
|
|
|
33
35
|
*/
|
|
34
36
|
'code': string;
|
|
35
37
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {
|
|
38
|
+
* The entity the thread, and every message in it, is linked to. Not set while the thread is unassigned.
|
|
39
|
+
* @type {EntityRefClass}
|
|
38
40
|
* @memberof EmailThreadClass
|
|
39
41
|
*/
|
|
40
|
-
'
|
|
42
|
+
'entityRef'?: EntityRefClass;
|
|
41
43
|
/**
|
|
42
|
-
*
|
|
44
|
+
* Number of the entity the thread is linked to
|
|
43
45
|
* @type {string}
|
|
44
46
|
* @memberof EmailThreadClass
|
|
45
47
|
*/
|
|
46
|
-
'
|
|
48
|
+
'entityNumber'?: string;
|
|
47
49
|
/**
|
|
48
50
|
* Email subject of the thread
|
|
49
51
|
* @type {string}
|
|
@@ -56,6 +58,12 @@ export interface EmailThreadClass {
|
|
|
56
58
|
* @memberof EmailThreadClass
|
|
57
59
|
*/
|
|
58
60
|
'status': EmailThreadClassStatusEnum;
|
|
61
|
+
/**
|
|
62
|
+
* Mailbox the thread belongs to: the Microsoft 365 mailbox the conversation lives in, or the sender address for SES. Empty for a thread opened by an inbound email that matched nothing.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof EmailThreadClass
|
|
65
|
+
*/
|
|
66
|
+
'mailbox'?: string;
|
|
59
67
|
/**
|
|
60
68
|
* User who created this thread
|
|
61
69
|
* @type {string}
|
|
@@ -80,6 +88,30 @@ export interface EmailThreadClass {
|
|
|
80
88
|
* @memberof EmailThreadClass
|
|
81
89
|
*/
|
|
82
90
|
'updatedAt': string;
|
|
91
|
+
/**
|
|
92
|
+
* Number of messages in the thread. Delivery reports (bounces) are not counted.
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof EmailThreadClass
|
|
95
|
+
*/
|
|
96
|
+
'messageCount': number;
|
|
97
|
+
/**
|
|
98
|
+
* When the newest message of the thread was received, or sent for an outbound message
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof EmailThreadClass
|
|
101
|
+
*/
|
|
102
|
+
'lastMessageAt'?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Newest message of the thread, the one a thread row in a list shows. Set when listing threads.
|
|
105
|
+
* @type {EmailMessageSummaryClass}
|
|
106
|
+
* @memberof EmailThreadClass
|
|
107
|
+
*/
|
|
108
|
+
'latestMessage'?: EmailMessageSummaryClass;
|
|
109
|
+
/**
|
|
110
|
+
* Every message of the thread, newest first. Only filled when listing with expand=messages; bodies are fetched per message.
|
|
111
|
+
* @type {Array<EmailMessageSummaryClass>}
|
|
112
|
+
* @memberof EmailThreadClass
|
|
113
|
+
*/
|
|
114
|
+
'messages': Array<EmailMessageSummaryClass>;
|
|
83
115
|
}
|
|
84
116
|
|
|
85
117
|
export const EmailThreadClassStatusEnum = {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL NotificationService
|
|
5
|
+
* The EMIL NotificationService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface EntityRefClass
|
|
21
|
+
*/
|
|
22
|
+
export interface EntityRefClass {
|
|
23
|
+
/**
|
|
24
|
+
* Type of the linked entity
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof EntityRefClass
|
|
27
|
+
*/
|
|
28
|
+
'type': EntityRefClassTypeEnum;
|
|
29
|
+
/**
|
|
30
|
+
* Code of the linked entity
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof EntityRefClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const EntityRefClassTypeEnum = {
|
|
38
|
+
Claim: 'Claim',
|
|
39
|
+
Policy: 'Policy',
|
|
40
|
+
Lead: 'Lead',
|
|
41
|
+
Partner: 'Partner'
|
|
42
|
+
} as const;
|
|
43
|
+
|
|
44
|
+
export type EntityRefClassTypeEnum = typeof EntityRefClassTypeEnum[keyof typeof EntityRefClassTypeEnum];
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL NotificationService
|
|
5
|
+
* The EMIL NotificationService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { EmailSubscriptionClass } from './email-subscription-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetEmailSubscriptionResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetEmailSubscriptionResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The email subscription response.
|
|
26
|
+
* @type {EmailSubscriptionClass}
|
|
27
|
+
* @memberof GetEmailSubscriptionResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'emailSubscription': EmailSubscriptionClass;
|
|
30
|
+
}
|
|
31
|
+
|