@emilgroup/notification-sdk 0.8.1-beta.4 → 0.8.1-beta.41

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 (83) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +2 -2
  3. package/api/email-messages-api.ts +36 -24
  4. package/api/email-subscriptions-api.ts +559 -0
  5. package/api/email-tracking-api.ts +263 -32
  6. package/api/email-verifications-api.ts +16 -8
  7. package/api/layouts-api.ts +56 -36
  8. package/api/msgraph-webhooks-api.ts +278 -0
  9. package/api/notification-templates-api.ts +56 -36
  10. package/api/notifications-api.ts +115 -4
  11. package/api.ts +4 -0
  12. package/dist/api/email-messages-api.d.ts +36 -24
  13. package/dist/api/email-messages-api.js +34 -22
  14. package/dist/api/email-subscriptions-api.d.ts +319 -0
  15. package/dist/api/email-subscriptions-api.js +537 -0
  16. package/dist/api/email-tracking-api.d.ts +162 -32
  17. package/dist/api/email-tracking-api.js +227 -28
  18. package/dist/api/email-verifications-api.d.ts +16 -8
  19. package/dist/api/email-verifications-api.js +16 -8
  20. package/dist/api/layouts-api.d.ts +56 -36
  21. package/dist/api/layouts-api.js +52 -32
  22. package/dist/api/msgraph-webhooks-api.d.ts +168 -0
  23. package/dist/api/msgraph-webhooks-api.js +305 -0
  24. package/dist/api/notification-templates-api.d.ts +56 -36
  25. package/dist/api/notification-templates-api.js +52 -32
  26. package/dist/api/notifications-api.d.ts +65 -4
  27. package/dist/api/notifications-api.js +101 -4
  28. package/dist/api.d.ts +2 -0
  29. package/dist/api.js +2 -0
  30. package/dist/models/assign-email-thread-entity-body-dto.d.ts +43 -0
  31. package/dist/models/assign-email-thread-entity-body-dto.js +22 -0
  32. package/dist/models/assign-email-thread-entity-response-class.d.ts +25 -0
  33. package/dist/models/assign-email-thread-entity-response-class.js +15 -0
  34. package/dist/models/email-message-class.d.ts +55 -7
  35. package/dist/models/email-message-class.js +16 -2
  36. package/dist/models/email-subscription-class.d.ts +104 -0
  37. package/dist/models/email-subscription-class.js +23 -0
  38. package/dist/models/email-thread-class.d.ts +6 -5
  39. package/dist/models/entity-ref-class.d.ts +37 -0
  40. package/dist/models/entity-ref-class.js +22 -0
  41. package/dist/models/get-email-subscription-response-class.d.ts +25 -0
  42. package/dist/models/get-email-subscription-response-class.js +15 -0
  43. package/dist/models/grpc-send-email-request-dto.d.ts +137 -0
  44. package/dist/models/grpc-send-email-request-dto.js +22 -0
  45. package/dist/models/index.d.ts +14 -0
  46. package/dist/models/index.js +14 -0
  47. package/dist/models/inline-attachment-dto.d.ts +36 -0
  48. package/dist/models/inline-attachment-dto.js +15 -0
  49. package/dist/models/list-email-subscriptions-response-class.d.ts +43 -0
  50. package/dist/models/list-email-subscriptions-response-class.js +15 -0
  51. package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +24 -0
  52. package/dist/models/reconcile-email-subscriptions-request-dto.js +15 -0
  53. package/dist/models/reconcile-email-subscriptions-response-class.d.ts +48 -0
  54. package/dist/models/reconcile-email-subscriptions-response-class.js +15 -0
  55. package/dist/models/renew-email-subscription-response-class.d.ts +25 -0
  56. package/dist/models/renew-email-subscription-response-class.js +15 -0
  57. package/dist/models/send-email-request-dto.d.ts +131 -0
  58. package/dist/models/send-email-request-dto.js +22 -0
  59. package/dist/models/send-email-response-class.d.ts +24 -0
  60. package/dist/models/send-email-response-class.js +15 -0
  61. package/dist/models/send-notification-request-dto.d.ts +10 -1
  62. package/dist/models/send-notification-request-dto.js +2 -1
  63. package/dist/models/unassign-email-thread-entity-response-class.d.ts +25 -0
  64. package/dist/models/unassign-email-thread-entity-response-class.js +15 -0
  65. package/models/assign-email-thread-entity-body-dto.ts +52 -0
  66. package/models/assign-email-thread-entity-response-class.ts +31 -0
  67. package/models/email-message-class.ts +59 -8
  68. package/models/email-subscription-class.ts +113 -0
  69. package/models/email-thread-class.ts +6 -5
  70. package/models/entity-ref-class.ts +46 -0
  71. package/models/get-email-subscription-response-class.ts +31 -0
  72. package/models/grpc-send-email-request-dto.ts +144 -0
  73. package/models/index.ts +14 -0
  74. package/models/inline-attachment-dto.ts +42 -0
  75. package/models/list-email-subscriptions-response-class.ts +49 -0
  76. package/models/reconcile-email-subscriptions-request-dto.ts +30 -0
  77. package/models/reconcile-email-subscriptions-response-class.ts +54 -0
  78. package/models/renew-email-subscription-response-class.ts +31 -0
  79. package/models/send-email-request-dto.ts +138 -0
  80. package/models/send-email-response-class.ts +30 -0
  81. package/models/send-notification-request-dto.ts +9 -2
  82. package/models/unassign-email-thread-entity-response-class.ts +31 -0
  83. package/package.json +1 -1
@@ -0,0 +1,131 @@
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 { InlineAttachmentDto } from './inline-attachment-dto';
13
+ import { S3DocumentDto } from './s3-document-dto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SendEmailRequestDto
18
+ */
19
+ export interface SendEmailRequestDto {
20
+ /**
21
+ * Subject of the email
22
+ * @type {string}
23
+ * @memberof SendEmailRequestDto
24
+ */
25
+ 'emailSubject': string;
26
+ /**
27
+ * HTML body of the email, sent as given. Required unless textBody is set.
28
+ * @type {string}
29
+ * @memberof SendEmailRequestDto
30
+ */
31
+ 'htmlBody'?: string;
32
+ /**
33
+ * Plain-text body of the email. Sent as the text alternative when htmlBody is also set. Required unless htmlBody is set.
34
+ * @type {string}
35
+ * @memberof SendEmailRequestDto
36
+ */
37
+ 'textBody'?: string;
38
+ /**
39
+ * Email address of the sender. Defaults to the sender configured in the tenant settings.
40
+ * @type {string}
41
+ * @memberof SendEmailRequestDto
42
+ */
43
+ 'emailSender'?: string;
44
+ /**
45
+ * Email addresses of the receivers
46
+ * @type {Array<string>}
47
+ * @memberof SendEmailRequestDto
48
+ */
49
+ 'emailTo': Array<string>;
50
+ /**
51
+ * Email addresses that receive a copy of the email
52
+ * @type {Array<string>}
53
+ * @memberof SendEmailRequestDto
54
+ */
55
+ 'emailCc'?: Array<string>;
56
+ /**
57
+ * Email addresses that receive a copy of the email without the other recipients knowing
58
+ * @type {Array<string>}
59
+ * @memberof SendEmailRequestDto
60
+ */
61
+ 'emailBcc'?: Array<string>;
62
+ /**
63
+ * Attachments that have already been uploaded to S3
64
+ * @type {Array<S3DocumentDto>}
65
+ * @memberof SendEmailRequestDto
66
+ */
67
+ 'attachments'?: Array<S3DocumentDto>;
68
+ /**
69
+ * Attachments sent with the request as base64 content. They are stored in S3 before the email is sent. Their decoded size may not exceed 10 MB in total.
70
+ * @type {Array<InlineAttachmentDto>}
71
+ * @memberof SendEmailRequestDto
72
+ */
73
+ 'inlineAttachments'?: Array<InlineAttachmentDto>;
74
+ /**
75
+ * Product slug used to look up a product-specific sender in the tenant settings, stored under productSlug_sender-email
76
+ * @type {string}
77
+ * @memberof SendEmailRequestDto
78
+ */
79
+ 'productSlug'?: string;
80
+ /**
81
+ * Entity type for email reply tracking
82
+ * @type {string}
83
+ * @memberof SendEmailRequestDto
84
+ */
85
+ 'entityType'?: SendEmailRequestDtoEntityTypeEnum;
86
+ /**
87
+ * Entity code for email reply tracking
88
+ * @type {string}
89
+ * @memberof SendEmailRequestDto
90
+ */
91
+ 'entityCode'?: string;
92
+ /**
93
+ * Reply-To address. Auto-generated when reply tracking is enabled.
94
+ * @type {string}
95
+ * @memberof SendEmailRequestDto
96
+ */
97
+ 'replyTo'?: string;
98
+ /**
99
+ * Custom Message-ID header. Auto-generated if not provided.
100
+ * @type {string}
101
+ * @memberof SendEmailRequestDto
102
+ */
103
+ 'customMessageId'?: string;
104
+ /**
105
+ * Message-ID of the email this is replying to (for threading)
106
+ * @type {string}
107
+ * @memberof SendEmailRequestDto
108
+ */
109
+ 'inReplyTo'?: string;
110
+ /**
111
+ * Message-IDs for email thread chain
112
+ * @type {Array<string>}
113
+ * @memberof SendEmailRequestDto
114
+ */
115
+ 'references'?: Array<string>;
116
+ /**
117
+ * Custom headers to set on the outgoing email
118
+ * @type {{ [key: string]: string; }}
119
+ * @memberof SendEmailRequestDto
120
+ */
121
+ 'customHeaders'?: {
122
+ [key: string]: string;
123
+ };
124
+ }
125
+ export declare const SendEmailRequestDtoEntityTypeEnum: {
126
+ readonly Claim: "Claim";
127
+ readonly Policy: "Policy";
128
+ readonly Lead: "Lead";
129
+ readonly Partner: "Partner";
130
+ };
131
+ export type SendEmailRequestDtoEntityTypeEnum = typeof SendEmailRequestDtoEntityTypeEnum[keyof typeof SendEmailRequestDtoEntityTypeEnum];
@@ -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.SendEmailRequestDtoEntityTypeEnum = void 0;
17
+ exports.SendEmailRequestDtoEntityTypeEnum = {
18
+ Claim: 'Claim',
19
+ Policy: 'Policy',
20
+ Lead: 'Lead',
21
+ Partner: 'Partner'
22
+ };
@@ -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 SendEmailResponseClass
16
+ */
17
+ export interface SendEmailResponseClass {
18
+ /**
19
+ * Notification request code
20
+ * @type {string}
21
+ * @memberof SendEmailResponseClass
22
+ */
23
+ 'code': 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 });
@@ -85,7 +85,7 @@ export interface SendNotificationRequestDto {
85
85
  */
86
86
  'entityCode'?: string;
87
87
  /**
88
- * Reply-To address for email reply tracking. Auto-generated when entityType and entityCode are provided.
88
+ * Reply-To address for email reply tracking. Auto-generated when reply tracking is enabled.
89
89
  * @type {string}
90
90
  * @memberof SendNotificationRequestDto
91
91
  */
@@ -108,10 +108,19 @@ export interface SendNotificationRequestDto {
108
108
  * @memberof SendNotificationRequestDto
109
109
  */
110
110
  'references': Array<string>;
111
+ /**
112
+ * Custom headers to set on the outgoing email
113
+ * @type {{ [key: string]: string; }}
114
+ * @memberof SendNotificationRequestDto
115
+ */
116
+ 'customHeaders': {
117
+ [key: string]: string;
118
+ };
111
119
  }
112
120
  export declare const SendNotificationRequestDtoEntityTypeEnum: {
113
121
  readonly Claim: "Claim";
114
122
  readonly Policy: "Policy";
115
123
  readonly Lead: "Lead";
124
+ readonly Partner: "Partner";
116
125
  };
117
126
  export type SendNotificationRequestDtoEntityTypeEnum = typeof SendNotificationRequestDtoEntityTypeEnum[keyof typeof SendNotificationRequestDtoEntityTypeEnum];
@@ -17,5 +17,6 @@ exports.SendNotificationRequestDtoEntityTypeEnum = void 0;
17
17
  exports.SendNotificationRequestDtoEntityTypeEnum = {
18
18
  Claim: 'Claim',
19
19
  Policy: 'Policy',
20
- Lead: 'Lead'
20
+ Lead: 'Lead',
21
+ Partner: 'Partner'
21
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 UnassignEmailThreadEntityResponseClass
17
+ */
18
+ export interface UnassignEmailThreadEntityResponseClass {
19
+ /**
20
+ * The email thread response.
21
+ * @type {EmailThreadClass}
22
+ * @memberof UnassignEmailThreadEntityResponseClass
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,52 @@
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 AssignEmailThreadEntityBodyDto
21
+ */
22
+ export interface AssignEmailThreadEntityBodyDto {
23
+ /**
24
+ * Type of the entity the email thread belongs to
25
+ * @type {string}
26
+ * @memberof AssignEmailThreadEntityBodyDto
27
+ */
28
+ 'entityType': AssignEmailThreadEntityBodyDtoEntityTypeEnum;
29
+ /**
30
+ * Code of the entity. Required unless entityNumber is set; takes precedence over entityNumber.
31
+ * @type {string}
32
+ * @memberof AssignEmailThreadEntityBodyDto
33
+ */
34
+ 'entityCode'?: string;
35
+ /**
36
+ * Number of the entity, e.g. the policy number. Used only when entityCode is not set.
37
+ * @type {string}
38
+ * @memberof AssignEmailThreadEntityBodyDto
39
+ */
40
+ 'entityNumber'?: string;
41
+ }
42
+
43
+ export const AssignEmailThreadEntityBodyDtoEntityTypeEnum = {
44
+ Claim: 'Claim',
45
+ Policy: 'Policy',
46
+ Lead: 'Lead',
47
+ Partner: 'Partner'
48
+ } as const;
49
+
50
+ export type AssignEmailThreadEntityBodyDtoEntityTypeEnum = typeof AssignEmailThreadEntityBodyDtoEntityTypeEnum[keyof typeof AssignEmailThreadEntityBodyDtoEntityTypeEnum];
51
+
52
+
@@ -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 { EmailThreadClass } from './email-thread-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface AssignEmailThreadEntityResponseClass
22
+ */
23
+ export interface AssignEmailThreadEntityResponseClass {
24
+ /**
25
+ * The email thread response.
26
+ * @type {EmailThreadClass}
27
+ * @memberof AssignEmailThreadEntityResponseClass
28
+ */
29
+ 'thread': EmailThreadClass;
30
+ }
31
+
@@ -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,35 @@ 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 that received an inbound message
63
+ * @type {string}
64
+ * @memberof EmailMessageClass
65
+ */
66
+ 'provider'?: EmailMessageClassProviderEnum;
42
67
  /**
43
68
  * Direction of the email
44
69
  * @type {string}
@@ -82,7 +107,7 @@ export interface EmailMessageClass {
82
107
  */
83
108
  'bodyHtml'?: string;
84
109
  /**
85
- * Delivery status of the email
110
+ * Delivery status of the email. Outbound emails move through pending → sent → delivered (or bounced/failed); inbound emails are always received.
86
111
  * @type {string}
87
112
  * @memberof EmailMessageClass
88
113
  */
@@ -136,19 +161,44 @@ export interface EmailMessageClass {
136
161
  */
137
162
  'attachments': Array<EmailAttachmentClass>;
138
163
  /**
139
- * Entity type this message is associated with
140
- * @type {string}
164
+ * 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.
165
+ * @type {number}
166
+ * @memberof EmailMessageClass
167
+ */
168
+ 'attachmentCount'?: number;
169
+ /**
170
+ * The entity the message\'s thread is linked to. Not set while the message is unassigned.
171
+ * @type {EntityRefClass}
141
172
  * @memberof EmailMessageClass
142
173
  */
143
- 'entityType': string;
174
+ 'entityRef'?: EntityRefClass;
144
175
  /**
145
- * Entity code this message is associated with
176
+ * Business number of the linked entity (policy, lead, claim or partner number)
146
177
  * @type {string}
147
178
  * @memberof EmailMessageClass
148
179
  */
149
- 'entityCode': string;
180
+ 'entityNumber'?: string;
150
181
  }
151
182
 
183
+ export const EmailMessageClassMatchStatusEnum = {
184
+ Pending: 'pending',
185
+ Matched: 'matched',
186
+ Unassigned: 'unassigned'
187
+ } as const;
188
+
189
+ export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
190
+ export const EmailMessageClassKindEnum = {
191
+ Message: 'message',
192
+ DeliveryReport: 'delivery_report'
193
+ } as const;
194
+
195
+ export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
196
+ export const EmailMessageClassProviderEnum = {
197
+ Ses: 'ses',
198
+ Msgraph: 'msgraph'
199
+ } as const;
200
+
201
+ export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
152
202
  export const EmailMessageClassDirectionEnum = {
153
203
  Outbound: 'outbound',
154
204
  Inbound: 'inbound'
@@ -160,7 +210,8 @@ export const EmailMessageClassDeliveryStatusEnum = {
160
210
  Sent: 'sent',
161
211
  Delivered: 'delivered',
162
212
  Bounced: 'bounced',
163
- Failed: 'failed'
213
+ Failed: 'failed',
214
+ Received: 'received'
164
215
  } as const;
165
216
 
166
217
  export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
@@ -0,0 +1,113 @@
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
+ * Error of the last failed Graph call, empty once it succeeds
85
+ * @type {string}
86
+ * @memberof EmailSubscriptionClass
87
+ */
88
+ 'lastError'?: string;
89
+ /**
90
+ * Created at timestamp
91
+ * @type {string}
92
+ * @memberof EmailSubscriptionClass
93
+ */
94
+ 'createdAt': string;
95
+ /**
96
+ * Updated at timestamp
97
+ * @type {string}
98
+ * @memberof EmailSubscriptionClass
99
+ */
100
+ 'updatedAt': string;
101
+ }
102
+
103
+ export const EmailSubscriptionClassStatusEnum = {
104
+ Pending: 'pending',
105
+ Active: 'active',
106
+ Failed: 'failed',
107
+ Deleting: 'deleting',
108
+ DeletionFailed: 'deletion-failed'
109
+ } as const;
110
+
111
+ export type EmailSubscriptionClassStatusEnum = typeof EmailSubscriptionClassStatusEnum[keyof typeof EmailSubscriptionClassStatusEnum];
112
+
113
+
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { EntityRefClass } from './entity-ref-class';
16
17
 
17
18
  /**
18
19
  *
@@ -33,17 +34,17 @@ export interface EmailThreadClass {
33
34
  */
34
35
  'code': string;
35
36
  /**
36
- * Entity type associated with this thread
37
- * @type {string}
37
+ * The entity the thread, and every message in it, is linked to. Not set while the thread is unassigned.
38
+ * @type {EntityRefClass}
38
39
  * @memberof EmailThreadClass
39
40
  */
40
- 'entityType': string;
41
+ 'entityRef'?: EntityRefClass;
41
42
  /**
42
- * Entity code associated with this thread
43
+ * Number of the entity the thread is linked to
43
44
  * @type {string}
44
45
  * @memberof EmailThreadClass
45
46
  */
46
- 'entityCode': string;
47
+ 'entityNumber'?: string;
47
48
  /**
48
49
  * Email subject of the thread
49
50
  * @type {string}
@@ -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
+