@emilgroup/notification-sdk 0.8.1-beta.5 → 0.8.1-beta.50

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 (101) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +2 -2
  3. package/api/email-mailboxes-api.ts +148 -0
  4. package/api/email-messages-api.ts +40 -28
  5. package/api/email-subscriptions-api.ts +559 -0
  6. package/api/email-tracking-api.ts +271 -40
  7. package/api/email-verifications-api.ts +16 -8
  8. package/api/layouts-api.ts +56 -36
  9. package/api/msgraph-webhooks-api.ts +278 -0
  10. package/api/notification-templates-api.ts +56 -36
  11. package/api/notifications-api.ts +115 -4
  12. package/api.ts +6 -0
  13. package/base.ts +36 -15
  14. package/configuration.ts +11 -0
  15. package/dist/api/email-mailboxes-api.d.ts +87 -0
  16. package/dist/api/email-mailboxes-api.js +218 -0
  17. package/dist/api/email-messages-api.d.ts +40 -28
  18. package/dist/api/email-messages-api.js +37 -25
  19. package/dist/api/email-subscriptions-api.d.ts +319 -0
  20. package/dist/api/email-subscriptions-api.js +537 -0
  21. package/dist/api/email-tracking-api.d.ts +170 -40
  22. package/dist/api/email-tracking-api.js +233 -34
  23. package/dist/api/email-verifications-api.d.ts +16 -8
  24. package/dist/api/email-verifications-api.js +16 -8
  25. package/dist/api/layouts-api.d.ts +56 -36
  26. package/dist/api/layouts-api.js +52 -32
  27. package/dist/api/msgraph-webhooks-api.d.ts +168 -0
  28. package/dist/api/msgraph-webhooks-api.js +305 -0
  29. package/dist/api/notification-templates-api.d.ts +56 -36
  30. package/dist/api/notification-templates-api.js +52 -32
  31. package/dist/api/notifications-api.d.ts +65 -4
  32. package/dist/api/notifications-api.js +101 -4
  33. package/dist/api.d.ts +3 -0
  34. package/dist/api.js +3 -0
  35. package/dist/base.d.ts +1 -0
  36. package/dist/base.js +36 -16
  37. package/dist/configuration.d.ts +9 -0
  38. package/dist/configuration.js +1 -0
  39. package/dist/models/assign-email-thread-entity-body-dto.d.ts +43 -0
  40. package/dist/models/assign-email-thread-entity-body-dto.js +22 -0
  41. package/dist/models/assign-email-thread-entity-response-class.d.ts +25 -0
  42. package/dist/models/assign-email-thread-entity-response-class.js +15 -0
  43. package/dist/models/email-mailbox-class.d.ts +47 -0
  44. package/dist/models/email-mailbox-class.js +20 -0
  45. package/dist/models/email-message-class.d.ts +73 -7
  46. package/dist/models/email-message-class.js +22 -3
  47. package/dist/models/email-message-summary-class.d.ts +98 -0
  48. package/dist/models/email-message-summary-class.js +33 -0
  49. package/dist/models/email-subscription-class.d.ts +104 -0
  50. package/dist/models/email-subscription-class.js +23 -0
  51. package/dist/models/email-thread-class.d.ts +37 -5
  52. package/dist/models/entity-ref-class.d.ts +37 -0
  53. package/dist/models/entity-ref-class.js +22 -0
  54. package/dist/models/get-email-subscription-response-class.d.ts +25 -0
  55. package/dist/models/get-email-subscription-response-class.js +15 -0
  56. package/dist/models/grpc-send-email-request-dto.d.ts +137 -0
  57. package/dist/models/grpc-send-email-request-dto.js +22 -0
  58. package/dist/models/index.d.ts +17 -0
  59. package/dist/models/index.js +17 -0
  60. package/dist/models/inline-attachment-dto.d.ts +36 -0
  61. package/dist/models/inline-attachment-dto.js +15 -0
  62. package/dist/models/list-email-mailboxes-response-class.d.ts +43 -0
  63. package/dist/models/list-email-mailboxes-response-class.js +15 -0
  64. package/dist/models/list-email-subscriptions-response-class.d.ts +43 -0
  65. package/dist/models/list-email-subscriptions-response-class.js +15 -0
  66. package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +24 -0
  67. package/dist/models/reconcile-email-subscriptions-request-dto.js +15 -0
  68. package/dist/models/reconcile-email-subscriptions-response-class.d.ts +48 -0
  69. package/dist/models/reconcile-email-subscriptions-response-class.js +15 -0
  70. package/dist/models/renew-email-subscription-response-class.d.ts +25 -0
  71. package/dist/models/renew-email-subscription-response-class.js +15 -0
  72. package/dist/models/send-email-request-dto.d.ts +131 -0
  73. package/dist/models/send-email-request-dto.js +22 -0
  74. package/dist/models/send-email-response-class.d.ts +24 -0
  75. package/dist/models/send-email-response-class.js +15 -0
  76. package/dist/models/send-notification-request-dto.d.ts +10 -1
  77. package/dist/models/send-notification-request-dto.js +2 -1
  78. package/dist/models/unassign-email-thread-entity-response-class.d.ts +25 -0
  79. package/dist/models/unassign-email-thread-entity-response-class.js +15 -0
  80. package/models/assign-email-thread-entity-body-dto.ts +52 -0
  81. package/models/assign-email-thread-entity-response-class.ts +31 -0
  82. package/models/email-mailbox-class.ts +56 -0
  83. package/models/email-message-class.ts +78 -8
  84. package/models/email-message-summary-class.ts +109 -0
  85. package/models/email-subscription-class.ts +113 -0
  86. package/models/email-thread-class.ts +37 -5
  87. package/models/entity-ref-class.ts +46 -0
  88. package/models/get-email-subscription-response-class.ts +31 -0
  89. package/models/grpc-send-email-request-dto.ts +144 -0
  90. package/models/index.ts +17 -0
  91. package/models/inline-attachment-dto.ts +42 -0
  92. package/models/list-email-mailboxes-response-class.ts +49 -0
  93. package/models/list-email-subscriptions-response-class.ts +49 -0
  94. package/models/reconcile-email-subscriptions-request-dto.ts +30 -0
  95. package/models/reconcile-email-subscriptions-response-class.ts +54 -0
  96. package/models/renew-email-subscription-response-class.ts +31 -0
  97. package/models/send-email-request-dto.ts +138 -0
  98. package/models/send-email-response-class.ts +30 -0
  99. package/models/send-notification-request-dto.ts +9 -2
  100. package/models/unassign-email-thread-entity-response-class.ts +31 -0
  101. package/package.json +1 -1
@@ -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,46 @@ export interface EmailMessageClass {
131
162
  */
132
163
  'attachments': Array<EmailAttachmentClass>;
133
164
  /**
134
- * Entity type this message is associated with
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)
135
178
  * @type {string}
136
179
  * @memberof EmailMessageClass
137
180
  */
138
- 'entityType': string;
181
+ 'entityNumber'?: string;
139
182
  /**
140
- * Entity code this message is associated with
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.
141
184
  * @type {string}
142
185
  * @memberof EmailMessageClass
143
186
  */
144
- 'entityCode': string;
187
+ 'workflowStatus'?: EmailMessageClassWorkflowStatusEnum;
145
188
  }
189
+ export declare const EmailMessageClassMatchStatusEnum: {
190
+ readonly Pending: "pending";
191
+ readonly Matched: "matched";
192
+ readonly Unassigned: "unassigned";
193
+ };
194
+ export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
195
+ export declare const EmailMessageClassKindEnum: {
196
+ readonly Message: "message";
197
+ readonly DeliveryReport: "delivery_report";
198
+ };
199
+ export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
200
+ export declare const EmailMessageClassProviderEnum: {
201
+ readonly Ses: "ses";
202
+ readonly Msgraph: "msgraph";
203
+ };
204
+ export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
146
205
  export declare const EmailMessageClassDirectionEnum: {
147
206
  readonly Outbound: "outbound";
148
207
  readonly Inbound: "inbound";
@@ -151,8 +210,15 @@ export type EmailMessageClassDirectionEnum = typeof EmailMessageClassDirectionEn
151
210
  export declare const EmailMessageClassDeliveryStatusEnum: {
152
211
  readonly Pending: "pending";
153
212
  readonly Sent: "sent";
154
- readonly Delivered: "delivered";
155
213
  readonly Bounced: "bounced";
156
214
  readonly Failed: "failed";
215
+ readonly Received: "received";
157
216
  };
158
217
  export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
218
+ export declare const EmailMessageClassWorkflowStatusEnum: {
219
+ readonly InProgress: "in_progress";
220
+ readonly Done: "done";
221
+ readonly Failed: "failed";
222
+ readonly Cancelled: "cancelled";
223
+ };
224
+ export type EmailMessageClassWorkflowStatusEnum = typeof EmailMessageClassWorkflowStatusEnum[keyof typeof EmailMessageClassWorkflowStatusEnum];
@@ -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.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,13 @@ exports.EmailMessageClassDirectionEnum = {
21
34
  exports.EmailMessageClassDeliveryStatusEnum = {
22
35
  Pending: 'pending',
23
36
  Sent: 'sent',
24
- Delivered: 'delivered',
25
37
  Bounced: 'bounced',
26
- Failed: 'failed'
38
+ Failed: 'failed',
39
+ Received: 'received'
40
+ };
41
+ exports.EmailMessageClassWorkflowStatusEnum = {
42
+ InProgress: 'in_progress',
43
+ Done: 'done',
44
+ Failed: 'failed',
45
+ Cancelled: 'cancelled'
27
46
  };
@@ -0,0 +1,98 @@
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
+ export declare const EmailMessageSummaryClassDirectionEnum: {
80
+ readonly Outbound: "outbound";
81
+ readonly Inbound: "inbound";
82
+ };
83
+ export type EmailMessageSummaryClassDirectionEnum = typeof EmailMessageSummaryClassDirectionEnum[keyof typeof EmailMessageSummaryClassDirectionEnum];
84
+ export declare const EmailMessageSummaryClassDeliveryStatusEnum: {
85
+ readonly Pending: "pending";
86
+ readonly Sent: "sent";
87
+ readonly Bounced: "bounced";
88
+ readonly Failed: "failed";
89
+ readonly Received: "received";
90
+ };
91
+ export type EmailMessageSummaryClassDeliveryStatusEnum = typeof EmailMessageSummaryClassDeliveryStatusEnum[keyof typeof EmailMessageSummaryClassDeliveryStatusEnum];
92
+ export declare const EmailMessageSummaryClassWorkflowStatusEnum: {
93
+ readonly InProgress: "in_progress";
94
+ readonly Done: "done";
95
+ readonly Failed: "failed";
96
+ readonly Cancelled: "cancelled";
97
+ };
98
+ export type EmailMessageSummaryClassWorkflowStatusEnum = typeof EmailMessageSummaryClassWorkflowStatusEnum[keyof typeof EmailMessageSummaryClassWorkflowStatusEnum];
@@ -0,0 +1,33 @@
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.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
+ };
@@ -0,0 +1,104 @@
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
+ * Error of the last failed Graph call, empty once it succeeds
80
+ * @type {string}
81
+ * @memberof EmailSubscriptionClass
82
+ */
83
+ 'lastError'?: string;
84
+ /**
85
+ * Created at timestamp
86
+ * @type {string}
87
+ * @memberof EmailSubscriptionClass
88
+ */
89
+ 'createdAt': string;
90
+ /**
91
+ * Updated at timestamp
92
+ * @type {string}
93
+ * @memberof EmailSubscriptionClass
94
+ */
95
+ 'updatedAt': string;
96
+ }
97
+ export declare const EmailSubscriptionClassStatusEnum: {
98
+ readonly Pending: "pending";
99
+ readonly Active: "active";
100
+ readonly Failed: "failed";
101
+ readonly Deleting: "deleting";
102
+ readonly DeletionFailed: "deletion-failed";
103
+ };
104
+ 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
+ };
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { EmailMessageSummaryClass } from './email-message-summary-class';
13
+ import { EntityRefClass } from './entity-ref-class';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -28,17 +30,17 @@ export interface EmailThreadClass {
28
30
  */
29
31
  'code': string;
30
32
  /**
31
- * Entity type associated with this thread
32
- * @type {string}
33
+ * The entity the thread, and every message in it, is linked to. Not set while the thread is unassigned.
34
+ * @type {EntityRefClass}
33
35
  * @memberof EmailThreadClass
34
36
  */
35
- 'entityType': string;
37
+ 'entityRef'?: EntityRefClass;
36
38
  /**
37
- * Entity code associated with this thread
39
+ * Number of the entity the thread is linked to
38
40
  * @type {string}
39
41
  * @memberof EmailThreadClass
40
42
  */
41
- 'entityCode': string;
43
+ 'entityNumber'?: string;
42
44
  /**
43
45
  * Email subject of the thread
44
46
  * @type {string}
@@ -51,6 +53,12 @@ export interface EmailThreadClass {
51
53
  * @memberof EmailThreadClass
52
54
  */
53
55
  'status': EmailThreadClassStatusEnum;
56
+ /**
57
+ * 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.
58
+ * @type {string}
59
+ * @memberof EmailThreadClass
60
+ */
61
+ 'mailbox'?: string;
54
62
  /**
55
63
  * User who created this thread
56
64
  * @type {string}
@@ -75,6 +83,30 @@ export interface EmailThreadClass {
75
83
  * @memberof EmailThreadClass
76
84
  */
77
85
  'updatedAt': string;
86
+ /**
87
+ * Number of messages in the thread. Delivery reports (bounces) are not counted.
88
+ * @type {number}
89
+ * @memberof EmailThreadClass
90
+ */
91
+ 'messageCount': number;
92
+ /**
93
+ * When the newest message of the thread was received, or sent for an outbound message
94
+ * @type {string}
95
+ * @memberof EmailThreadClass
96
+ */
97
+ 'lastMessageAt'?: string;
98
+ /**
99
+ * Newest message of the thread, the one a thread row in a list shows. Set when listing threads.
100
+ * @type {EmailMessageSummaryClass}
101
+ * @memberof EmailThreadClass
102
+ */
103
+ 'latestMessage'?: EmailMessageSummaryClass;
104
+ /**
105
+ * Every message of the thread, newest first. Only filled when listing with expand=messages; bodies are fetched per message.
106
+ * @type {Array<EmailMessageSummaryClass>}
107
+ * @memberof EmailThreadClass
108
+ */
109
+ 'messages': Array<EmailMessageSummaryClass>;
78
110
  }
79
111
  export declare const EmailThreadClassStatusEnum: {
80
112
  readonly Open: "open";
@@ -0,0 +1,37 @@
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 EntityRefClass
16
+ */
17
+ export interface EntityRefClass {
18
+ /**
19
+ * Type of the linked entity
20
+ * @type {string}
21
+ * @memberof EntityRefClass
22
+ */
23
+ 'type': EntityRefClassTypeEnum;
24
+ /**
25
+ * Code of the linked entity
26
+ * @type {string}
27
+ * @memberof EntityRefClass
28
+ */
29
+ 'code': string;
30
+ }
31
+ export declare const EntityRefClassTypeEnum: {
32
+ readonly Claim: "Claim";
33
+ readonly Policy: "Policy";
34
+ readonly Lead: "Lead";
35
+ readonly Partner: "Partner";
36
+ };
37
+ export type EntityRefClassTypeEnum = typeof EntityRefClassTypeEnum[keyof typeof EntityRefClassTypeEnum];
@@ -0,0 +1,22 @@
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.EntityRefClassTypeEnum = void 0;
17
+ exports.EntityRefClassTypeEnum = {
18
+ Claim: 'Claim',
19
+ Policy: 'Policy',
20
+ Lead: 'Lead',
21
+ Partner: 'Partner'
22
+ };
@@ -0,0 +1,25 @@
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
+ import { EmailSubscriptionClass } from './email-subscription-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetEmailSubscriptionResponseClass
17
+ */
18
+ export interface GetEmailSubscriptionResponseClass {
19
+ /**
20
+ * The email subscription response.
21
+ * @type {EmailSubscriptionClass}
22
+ * @memberof GetEmailSubscriptionResponseClass
23
+ */
24
+ 'emailSubscription': EmailSubscriptionClass;
25
+ }
@@ -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 });