@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,43 @@
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 AssignEmailThreadEntityBodyDto
16
+ */
17
+ export interface AssignEmailThreadEntityBodyDto {
18
+ /**
19
+ * Type of the entity the email thread belongs to
20
+ * @type {string}
21
+ * @memberof AssignEmailThreadEntityBodyDto
22
+ */
23
+ 'entityType': AssignEmailThreadEntityBodyDtoEntityTypeEnum;
24
+ /**
25
+ * Code of the entity. Required unless entityNumber is set; takes precedence over entityNumber.
26
+ * @type {string}
27
+ * @memberof AssignEmailThreadEntityBodyDto
28
+ */
29
+ 'entityCode'?: string;
30
+ /**
31
+ * Number of the entity, e.g. the policy number. Used only when entityCode is not set.
32
+ * @type {string}
33
+ * @memberof AssignEmailThreadEntityBodyDto
34
+ */
35
+ 'entityNumber'?: string;
36
+ }
37
+ export declare const AssignEmailThreadEntityBodyDtoEntityTypeEnum: {
38
+ readonly Claim: "Claim";
39
+ readonly Policy: "Policy";
40
+ readonly Lead: "Lead";
41
+ readonly Partner: "Partner";
42
+ };
43
+ export type AssignEmailThreadEntityBodyDtoEntityTypeEnum = typeof AssignEmailThreadEntityBodyDtoEntityTypeEnum[keyof typeof AssignEmailThreadEntityBodyDtoEntityTypeEnum];
@@ -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.AssignEmailThreadEntityBodyDtoEntityTypeEnum = void 0;
17
+ exports.AssignEmailThreadEntityBodyDtoEntityTypeEnum = {
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 { EmailThreadClass } from './email-thread-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AssignEmailThreadEntityResponseClass
17
+ */
18
+ export interface AssignEmailThreadEntityResponseClass {
19
+ /**
20
+ * The email thread response.
21
+ * @type {EmailThreadClass}
22
+ * @memberof AssignEmailThreadEntityResponseClass
23
+ */
24
+ 'thread': EmailThreadClass;
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 });
@@ -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 CatchUpEmailSubscriptionResponseClass
16
+ */
17
+ export interface CatchUpEmailSubscriptionResponseClass {
18
+ /**
19
+ * Whether a catch-up was queued. False when the subscription is being deleted.
20
+ * @type {boolean}
21
+ * @memberof CatchUpEmailSubscriptionResponseClass
22
+ */
23
+ 'queued': boolean;
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,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,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
+ };