@emilgroup/notification-sdk 0.8.1-beta.6 → 0.8.1-beta.60

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.
Files changed (114) hide show
  1. package/.openapi-generator/FILES +23 -0
  2. package/README.md +2 -2
  3. package/api/email-mailboxes-api.ts +150 -0
  4. package/api/email-messages-api.ts +56 -36
  5. package/api/email-subscriptions-api.ts +781 -0
  6. package/api/email-tracking-api.ts +291 -48
  7. package/api/email-verifications-api.ts +24 -12
  8. package/api/layouts-api.ts +76 -46
  9. package/api/msgraph-webhooks-api.ts +278 -0
  10. package/api/notification-templates-api.ts +76 -46
  11. package/api/notifications-api.ts +121 -6
  12. package/api.ts +6 -0
  13. package/base.ts +174 -41
  14. package/common.ts +3 -2
  15. package/configuration.ts +20 -0
  16. package/dist/api/email-mailboxes-api.d.ts +87 -0
  17. package/dist/api/email-mailboxes-api.js +221 -0
  18. package/dist/api/email-messages-api.d.ts +44 -32
  19. package/dist/api/email-messages-api.js +62 -40
  20. package/dist/api/email-subscriptions-api.d.ts +432 -0
  21. package/dist/api/email-subscriptions-api.js +738 -0
  22. package/dist/api/email-tracking-api.d.ts +174 -44
  23. package/dist/api/email-tracking-api.js +261 -48
  24. package/dist/api/email-verifications-api.d.ts +18 -10
  25. package/dist/api/email-verifications-api.js +30 -16
  26. package/dist/api/health-api.d.ts +1 -1
  27. package/dist/api/layouts-api.d.ts +61 -41
  28. package/dist/api/layouts-api.js +81 -50
  29. package/dist/api/msgraph-webhooks-api.d.ts +168 -0
  30. package/dist/api/msgraph-webhooks-api.js +305 -0
  31. package/dist/api/notification-templates-api.d.ts +61 -41
  32. package/dist/api/notification-templates-api.js +81 -50
  33. package/dist/api/notifications-api.d.ts +66 -5
  34. package/dist/api/notifications-api.js +111 -8
  35. package/dist/api.d.ts +3 -0
  36. package/dist/api.js +3 -0
  37. package/dist/base.d.ts +24 -0
  38. package/dist/base.js +178 -59
  39. package/dist/common.d.ts +1 -1
  40. package/dist/common.js +1 -0
  41. package/dist/configuration.d.ts +17 -0
  42. package/dist/configuration.js +2 -0
  43. package/dist/models/assign-email-thread-entity-body-dto.d.ts +43 -0
  44. package/dist/models/assign-email-thread-entity-body-dto.js +22 -0
  45. package/dist/models/assign-email-thread-entity-response-class.d.ts +25 -0
  46. package/dist/models/assign-email-thread-entity-response-class.js +15 -0
  47. package/dist/models/catch-up-email-subscription-response-class.d.ts +24 -0
  48. package/dist/models/catch-up-email-subscription-response-class.js +15 -0
  49. package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +24 -0
  50. package/dist/models/catch-up-email-subscriptions-request-dto.js +15 -0
  51. package/dist/models/catch-up-email-subscriptions-response-class.d.ts +30 -0
  52. package/dist/models/catch-up-email-subscriptions-response-class.js +15 -0
  53. package/dist/models/email-mailbox-class.d.ts +47 -0
  54. package/dist/models/email-mailbox-class.js +20 -0
  55. package/dist/models/email-message-class.d.ts +73 -7
  56. package/dist/models/email-message-class.js +22 -3
  57. package/dist/models/email-message-summary-class.d.ts +98 -0
  58. package/dist/models/email-message-summary-class.js +33 -0
  59. package/dist/models/email-subscription-class.d.ts +110 -0
  60. package/dist/models/email-subscription-class.js +23 -0
  61. package/dist/models/email-thread-class.d.ts +37 -5
  62. package/dist/models/entity-ref-class.d.ts +37 -0
  63. package/dist/models/entity-ref-class.js +22 -0
  64. package/dist/models/get-email-subscription-response-class.d.ts +25 -0
  65. package/dist/models/get-email-subscription-response-class.js +15 -0
  66. package/dist/models/grpc-send-email-request-dto.d.ts +137 -0
  67. package/dist/models/grpc-send-email-request-dto.js +22 -0
  68. package/dist/models/index.d.ts +20 -0
  69. package/dist/models/index.js +20 -0
  70. package/dist/models/inline-attachment-dto.d.ts +36 -0
  71. package/dist/models/inline-attachment-dto.js +15 -0
  72. package/dist/models/list-email-mailboxes-response-class.d.ts +43 -0
  73. package/dist/models/list-email-mailboxes-response-class.js +15 -0
  74. package/dist/models/list-email-subscriptions-response-class.d.ts +43 -0
  75. package/dist/models/list-email-subscriptions-response-class.js +15 -0
  76. package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +24 -0
  77. package/dist/models/reconcile-email-subscriptions-request-dto.js +15 -0
  78. package/dist/models/reconcile-email-subscriptions-response-class.d.ts +48 -0
  79. package/dist/models/reconcile-email-subscriptions-response-class.js +15 -0
  80. package/dist/models/renew-email-subscription-response-class.d.ts +25 -0
  81. package/dist/models/renew-email-subscription-response-class.js +15 -0
  82. package/dist/models/send-email-request-dto.d.ts +131 -0
  83. package/dist/models/send-email-request-dto.js +22 -0
  84. package/dist/models/send-email-response-class.d.ts +24 -0
  85. package/dist/models/send-email-response-class.js +15 -0
  86. package/dist/models/send-notification-request-dto.d.ts +10 -1
  87. package/dist/models/send-notification-request-dto.js +2 -1
  88. package/dist/models/unassign-email-thread-entity-response-class.d.ts +25 -0
  89. package/dist/models/unassign-email-thread-entity-response-class.js +15 -0
  90. package/models/assign-email-thread-entity-body-dto.ts +52 -0
  91. package/models/assign-email-thread-entity-response-class.ts +31 -0
  92. package/models/catch-up-email-subscription-response-class.ts +30 -0
  93. package/models/catch-up-email-subscriptions-request-dto.ts +30 -0
  94. package/models/catch-up-email-subscriptions-response-class.ts +36 -0
  95. package/models/email-mailbox-class.ts +56 -0
  96. package/models/email-message-class.ts +78 -8
  97. package/models/email-message-summary-class.ts +109 -0
  98. package/models/email-subscription-class.ts +119 -0
  99. package/models/email-thread-class.ts +37 -5
  100. package/models/entity-ref-class.ts +46 -0
  101. package/models/get-email-subscription-response-class.ts +31 -0
  102. package/models/grpc-send-email-request-dto.ts +144 -0
  103. package/models/index.ts +20 -0
  104. package/models/inline-attachment-dto.ts +42 -0
  105. package/models/list-email-mailboxes-response-class.ts +49 -0
  106. package/models/list-email-subscriptions-response-class.ts +49 -0
  107. package/models/reconcile-email-subscriptions-request-dto.ts +30 -0
  108. package/models/reconcile-email-subscriptions-response-class.ts +54 -0
  109. package/models/renew-email-subscription-response-class.ts +31 -0
  110. package/models/send-email-request-dto.ts +138 -0
  111. package/models/send-email-response-class.ts +30 -0
  112. package/models/send-notification-request-dto.ts +9 -2
  113. package/models/unassign-email-thread-entity-response-class.ts +31 -0
  114. package/package.json +2 -2
@@ -0,0 +1,36 @@
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 CatchUpEmailSubscriptionsResponseClass
21
+ */
22
+ export interface CatchUpEmailSubscriptionsResponseClass {
23
+ /**
24
+ * Subscriptions a catch-up was queued for
25
+ * @type {number}
26
+ * @memberof CatchUpEmailSubscriptionsResponseClass
27
+ */
28
+ 'queued': number;
29
+ /**
30
+ * Subscriptions skipped because they are being deleted or could not be queued
31
+ * @type {number}
32
+ * @memberof CatchUpEmailSubscriptionsResponseClass
33
+ */
34
+ 'skipped': number;
35
+ }
36
+
@@ -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,50 @@ export interface EmailMessageClass {
136
167
  */
137
168
  'attachments': Array<EmailAttachmentClass>;
138
169
  /**
139
- * Entity type this message is associated with
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
- 'entityType': string;
186
+ 'entityNumber'?: string;
144
187
  /**
145
- * Entity code this message is associated with
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
- 'entityCode': string;
192
+ 'workflowStatus'?: EmailMessageClassWorkflowStatusEnum;
150
193
  }
151
194
 
195
+ export const EmailMessageClassMatchStatusEnum = {
196
+ Pending: 'pending',
197
+ Matched: 'matched',
198
+ Unassigned: 'unassigned'
199
+ } as const;
200
+
201
+ export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
202
+ export const EmailMessageClassKindEnum = {
203
+ Message: 'message',
204
+ DeliveryReport: 'delivery_report'
205
+ } as const;
206
+
207
+ export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
208
+ export const EmailMessageClassProviderEnum = {
209
+ Ses: 'ses',
210
+ Msgraph: 'msgraph'
211
+ } as const;
212
+
213
+ export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
152
214
  export const EmailMessageClassDirectionEnum = {
153
215
  Outbound: 'outbound',
154
216
  Inbound: 'inbound'
@@ -158,11 +220,19 @@ export type EmailMessageClassDirectionEnum = typeof EmailMessageClassDirectionEn
158
220
  export const EmailMessageClassDeliveryStatusEnum = {
159
221
  Pending: 'pending',
160
222
  Sent: 'sent',
161
- Delivered: 'delivered',
162
223
  Bounced: 'bounced',
163
- Failed: 'failed'
224
+ Failed: 'failed',
225
+ Received: 'received'
164
226
  } as const;
165
227
 
166
228
  export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
229
+ export const EmailMessageClassWorkflowStatusEnum = {
230
+ InProgress: 'in_progress',
231
+ Done: 'done',
232
+ Failed: 'failed',
233
+ Cancelled: 'cancelled'
234
+ } as const;
235
+
236
+ export type EmailMessageClassWorkflowStatusEnum = typeof EmailMessageClassWorkflowStatusEnum[keyof typeof EmailMessageClassWorkflowStatusEnum];
167
237
 
168
238
 
@@ -0,0 +1,109 @@
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
+
85
+ export const EmailMessageSummaryClassDirectionEnum = {
86
+ Outbound: 'outbound',
87
+ Inbound: 'inbound'
88
+ } as const;
89
+
90
+ export type EmailMessageSummaryClassDirectionEnum = typeof EmailMessageSummaryClassDirectionEnum[keyof typeof EmailMessageSummaryClassDirectionEnum];
91
+ export const EmailMessageSummaryClassDeliveryStatusEnum = {
92
+ Pending: 'pending',
93
+ Sent: 'sent',
94
+ Bounced: 'bounced',
95
+ Failed: 'failed',
96
+ Received: 'received'
97
+ } as const;
98
+
99
+ export type EmailMessageSummaryClassDeliveryStatusEnum = typeof EmailMessageSummaryClassDeliveryStatusEnum[keyof typeof EmailMessageSummaryClassDeliveryStatusEnum];
100
+ export const EmailMessageSummaryClassWorkflowStatusEnum = {
101
+ InProgress: 'in_progress',
102
+ Done: 'done',
103
+ Failed: 'failed',
104
+ Cancelled: 'cancelled'
105
+ } as const;
106
+
107
+ export type EmailMessageSummaryClassWorkflowStatusEnum = typeof EmailMessageSummaryClassWorkflowStatusEnum[keyof typeof EmailMessageSummaryClassWorkflowStatusEnum];
108
+
109
+
@@ -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
- * Entity type associated with this thread
37
- * @type {string}
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
- 'entityType': string;
42
+ 'entityRef'?: EntityRefClass;
41
43
  /**
42
- * Entity code associated with this thread
44
+ * Number of the entity the thread is linked to
43
45
  * @type {string}
44
46
  * @memberof EmailThreadClass
45
47
  */
46
- 'entityCode': string;
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
+