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

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 (110) hide show
  1. package/.openapi-generator/FILES +0 -23
  2. package/README.md +2 -2
  3. package/api/email-messages-api.ts +36 -56
  4. package/api/email-tracking-api.ts +48 -291
  5. package/api/email-verifications-api.ts +12 -24
  6. package/api/layouts-api.ts +46 -76
  7. package/api/notification-templates-api.ts +46 -76
  8. package/api/notifications-api.ts +6 -121
  9. package/api.ts +0 -6
  10. package/base.ts +41 -174
  11. package/configuration.ts +0 -20
  12. package/dist/api/email-messages-api.d.ts +28 -40
  13. package/dist/api/email-messages-api.js +40 -62
  14. package/dist/api/email-tracking-api.d.ts +40 -170
  15. package/dist/api/email-tracking-api.js +48 -261
  16. package/dist/api/email-verifications-api.d.ts +8 -16
  17. package/dist/api/email-verifications-api.js +16 -30
  18. package/dist/api/layouts-api.d.ts +36 -56
  19. package/dist/api/layouts-api.js +50 -81
  20. package/dist/api/notification-templates-api.d.ts +36 -56
  21. package/dist/api/notification-templates-api.js +50 -81
  22. package/dist/api/notifications-api.d.ts +4 -65
  23. package/dist/api/notifications-api.js +8 -111
  24. package/dist/api.d.ts +0 -3
  25. package/dist/api.js +0 -3
  26. package/dist/base.d.ts +0 -24
  27. package/dist/base.js +59 -178
  28. package/dist/configuration.d.ts +0 -17
  29. package/dist/configuration.js +0 -2
  30. package/dist/models/email-message-class.d.ts +7 -73
  31. package/dist/models/email-message-class.js +3 -22
  32. package/dist/models/email-thread-class.d.ts +5 -37
  33. package/dist/models/index.d.ts +0 -20
  34. package/dist/models/index.js +0 -20
  35. package/dist/models/send-notification-request-dto.d.ts +1 -10
  36. package/dist/models/send-notification-request-dto.js +1 -2
  37. package/models/email-message-class.ts +8 -78
  38. package/models/email-thread-class.ts +5 -37
  39. package/models/index.ts +0 -20
  40. package/models/send-notification-request-dto.ts +2 -9
  41. package/package.json +1 -1
  42. package/api/email-mailboxes-api.ts +0 -150
  43. package/api/email-subscriptions-api.ts +0 -781
  44. package/api/msgraph-webhooks-api.ts +0 -278
  45. package/dist/api/email-mailboxes-api.d.ts +0 -87
  46. package/dist/api/email-mailboxes-api.js +0 -221
  47. package/dist/api/email-subscriptions-api.d.ts +0 -432
  48. package/dist/api/email-subscriptions-api.js +0 -738
  49. package/dist/api/msgraph-webhooks-api.d.ts +0 -168
  50. package/dist/api/msgraph-webhooks-api.js +0 -305
  51. package/dist/models/assign-email-thread-entity-body-dto.d.ts +0 -43
  52. package/dist/models/assign-email-thread-entity-body-dto.js +0 -22
  53. package/dist/models/assign-email-thread-entity-response-class.d.ts +0 -25
  54. package/dist/models/assign-email-thread-entity-response-class.js +0 -15
  55. package/dist/models/catch-up-email-subscription-response-class.d.ts +0 -24
  56. package/dist/models/catch-up-email-subscription-response-class.js +0 -15
  57. package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +0 -24
  58. package/dist/models/catch-up-email-subscriptions-request-dto.js +0 -15
  59. package/dist/models/catch-up-email-subscriptions-response-class.d.ts +0 -30
  60. package/dist/models/catch-up-email-subscriptions-response-class.js +0 -15
  61. package/dist/models/email-mailbox-class.d.ts +0 -47
  62. package/dist/models/email-mailbox-class.js +0 -20
  63. package/dist/models/email-message-summary-class.d.ts +0 -98
  64. package/dist/models/email-message-summary-class.js +0 -33
  65. package/dist/models/email-subscription-class.d.ts +0 -110
  66. package/dist/models/email-subscription-class.js +0 -23
  67. package/dist/models/entity-ref-class.d.ts +0 -37
  68. package/dist/models/entity-ref-class.js +0 -22
  69. package/dist/models/get-email-subscription-response-class.d.ts +0 -25
  70. package/dist/models/get-email-subscription-response-class.js +0 -15
  71. package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
  72. package/dist/models/grpc-send-email-request-dto.js +0 -22
  73. package/dist/models/inline-attachment-dto.d.ts +0 -36
  74. package/dist/models/inline-attachment-dto.js +0 -15
  75. package/dist/models/list-email-mailboxes-response-class.d.ts +0 -43
  76. package/dist/models/list-email-mailboxes-response-class.js +0 -15
  77. package/dist/models/list-email-subscriptions-response-class.d.ts +0 -43
  78. package/dist/models/list-email-subscriptions-response-class.js +0 -15
  79. package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +0 -24
  80. package/dist/models/reconcile-email-subscriptions-request-dto.js +0 -15
  81. package/dist/models/reconcile-email-subscriptions-response-class.d.ts +0 -48
  82. package/dist/models/reconcile-email-subscriptions-response-class.js +0 -15
  83. package/dist/models/renew-email-subscription-response-class.d.ts +0 -25
  84. package/dist/models/renew-email-subscription-response-class.js +0 -15
  85. package/dist/models/send-email-request-dto.d.ts +0 -131
  86. package/dist/models/send-email-request-dto.js +0 -22
  87. package/dist/models/send-email-response-class.d.ts +0 -24
  88. package/dist/models/send-email-response-class.js +0 -15
  89. package/dist/models/unassign-email-thread-entity-response-class.d.ts +0 -25
  90. package/dist/models/unassign-email-thread-entity-response-class.js +0 -15
  91. package/models/assign-email-thread-entity-body-dto.ts +0 -52
  92. package/models/assign-email-thread-entity-response-class.ts +0 -31
  93. package/models/catch-up-email-subscription-response-class.ts +0 -30
  94. package/models/catch-up-email-subscriptions-request-dto.ts +0 -30
  95. package/models/catch-up-email-subscriptions-response-class.ts +0 -36
  96. package/models/email-mailbox-class.ts +0 -56
  97. package/models/email-message-summary-class.ts +0 -109
  98. package/models/email-subscription-class.ts +0 -119
  99. package/models/entity-ref-class.ts +0 -46
  100. package/models/get-email-subscription-response-class.ts +0 -31
  101. package/models/grpc-send-email-request-dto.ts +0 -144
  102. package/models/inline-attachment-dto.ts +0 -42
  103. package/models/list-email-mailboxes-response-class.ts +0 -49
  104. package/models/list-email-subscriptions-response-class.ts +0 -49
  105. package/models/reconcile-email-subscriptions-request-dto.ts +0 -30
  106. package/models/reconcile-email-subscriptions-response-class.ts +0 -54
  107. package/models/renew-email-subscription-response-class.ts +0 -31
  108. package/models/send-email-request-dto.ts +0 -138
  109. package/models/send-email-response-class.ts +0 -30
  110. package/models/unassign-email-thread-entity-response-class.ts +0 -31
@@ -10,7 +10,6 @@
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';
14
13
  /**
15
14
  *
16
15
  * @export
@@ -30,41 +29,11 @@ export interface EmailMessageClass {
30
29
  */
31
30
  'code': string;
32
31
  /**
33
- * Thread code this message belongs to. Empty only while an inbound message is still being correlated.
32
+ * Thread code this message belongs to
34
33
  * @type {string}
35
34
  * @memberof EmailMessageClass
36
35
  */
37
36
  '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;
68
37
  /**
69
38
  * Direction of the email
70
39
  * @type {string}
@@ -108,7 +77,7 @@ export interface EmailMessageClass {
108
77
  */
109
78
  'bodyHtml'?: string;
110
79
  /**
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.
80
+ * Delivery status of the email
112
81
  * @type {string}
113
82
  * @memberof EmailMessageClass
114
83
  */
@@ -162,46 +131,18 @@ export interface EmailMessageClass {
162
131
  */
163
132
  'attachments': Array<EmailAttachmentClass>;
164
133
  /**
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)
134
+ * Entity type this message is associated with
178
135
  * @type {string}
179
136
  * @memberof EmailMessageClass
180
137
  */
181
- 'entityNumber'?: string;
138
+ 'entityType': string;
182
139
  /**
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.
140
+ * Entity code this message is associated with
184
141
  * @type {string}
185
142
  * @memberof EmailMessageClass
186
143
  */
187
- 'workflowStatus'?: EmailMessageClassWorkflowStatusEnum;
144
+ 'entityCode': string;
188
145
  }
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];
205
146
  export declare const EmailMessageClassDirectionEnum: {
206
147
  readonly Outbound: "outbound";
207
148
  readonly Inbound: "inbound";
@@ -210,15 +151,8 @@ export type EmailMessageClassDirectionEnum = typeof EmailMessageClassDirectionEn
210
151
  export declare const EmailMessageClassDeliveryStatusEnum: {
211
152
  readonly Pending: "pending";
212
153
  readonly Sent: "sent";
154
+ readonly Delivered: "delivered";
213
155
  readonly Bounced: "bounced";
214
156
  readonly Failed: "failed";
215
- readonly Received: "received";
216
157
  };
217
158
  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,20 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
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
- };
16
+ exports.EmailMessageClassDeliveryStatusEnum = exports.EmailMessageClassDirectionEnum = void 0;
30
17
  exports.EmailMessageClassDirectionEnum = {
31
18
  Outbound: 'outbound',
32
19
  Inbound: 'inbound'
@@ -34,13 +21,7 @@ exports.EmailMessageClassDirectionEnum = {
34
21
  exports.EmailMessageClassDeliveryStatusEnum = {
35
22
  Pending: 'pending',
36
23
  Sent: 'sent',
24
+ Delivered: 'delivered',
37
25
  Bounced: 'bounced',
38
- Failed: 'failed',
39
- Received: 'received'
40
- };
41
- exports.EmailMessageClassWorkflowStatusEnum = {
42
- InProgress: 'in_progress',
43
- Done: 'done',
44
- Failed: 'failed',
45
- Cancelled: 'cancelled'
26
+ Failed: 'failed'
46
27
  };
@@ -9,8 +9,6 @@
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';
14
12
  /**
15
13
  *
16
14
  * @export
@@ -30,17 +28,17 @@ export interface EmailThreadClass {
30
28
  */
31
29
  'code': string;
32
30
  /**
33
- * The entity the thread, and every message in it, is linked to. Not set while the thread is unassigned.
34
- * @type {EntityRefClass}
31
+ * Entity type associated with this thread
32
+ * @type {string}
35
33
  * @memberof EmailThreadClass
36
34
  */
37
- 'entityRef'?: EntityRefClass;
35
+ 'entityType': string;
38
36
  /**
39
- * Number of the entity the thread is linked to
37
+ * Entity code associated with this thread
40
38
  * @type {string}
41
39
  * @memberof EmailThreadClass
42
40
  */
43
- 'entityNumber'?: string;
41
+ 'entityCode': string;
44
42
  /**
45
43
  * Email subject of the thread
46
44
  * @type {string}
@@ -53,12 +51,6 @@ export interface EmailThreadClass {
53
51
  * @memberof EmailThreadClass
54
52
  */
55
53
  '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;
62
54
  /**
63
55
  * User who created this thread
64
56
  * @type {string}
@@ -83,30 +75,6 @@ export interface EmailThreadClass {
83
75
  * @memberof EmailThreadClass
84
76
  */
85
77
  '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>;
110
78
  }
111
79
  export declare const EmailThreadClassStatusEnum: {
112
80
  readonly Open: "open";
@@ -1,8 +1,3 @@
1
- export * from './assign-email-thread-entity-body-dto';
2
- export * from './assign-email-thread-entity-response-class';
3
- export * from './catch-up-email-subscription-response-class';
4
- export * from './catch-up-email-subscriptions-request-dto';
5
- export * from './catch-up-email-subscriptions-response-class';
6
1
  export * from './complete-email-verification-dto';
7
2
  export * from './complete-email-verification-response-class';
8
3
  export * from './create-layout-request-dto';
@@ -13,44 +8,29 @@ export * from './delete-layout-request-dto';
13
8
  export * from './delete-notification-template-request-dto';
14
9
  export * from './download-attachment-response-class';
15
10
  export * from './email-attachment-class';
16
- export * from './email-mailbox-class';
17
11
  export * from './email-message-class';
18
- export * from './email-message-summary-class';
19
- export * from './email-subscription-class';
20
12
  export * from './email-thread-class';
21
- export * from './entity-ref-class';
22
13
  export * from './get-email-message-response-class';
23
- export * from './get-email-subscription-response-class';
24
14
  export * from './get-email-thread-response-class';
25
15
  export * from './get-layout-request-dto';
26
16
  export * from './get-layout-response-class';
27
17
  export * from './get-notification-template-request-dto';
28
18
  export * from './get-notification-template-response-class';
29
- export * from './grpc-send-email-request-dto';
30
19
  export * from './html-template-class';
31
20
  export * from './initiate-email-verification-dto';
32
21
  export * from './initiate-email-verification-response-class';
33
- export * from './inline-attachment-dto';
34
22
  export * from './inline-response200';
35
23
  export * from './inline-response503';
36
24
  export * from './layout-class';
37
25
  export * from './list-email-attachments-response-class';
38
- export * from './list-email-mailboxes-response-class';
39
26
  export * from './list-email-messages-response-class';
40
- export * from './list-email-subscriptions-response-class';
41
27
  export * from './list-email-threads-response-class';
42
28
  export * from './list-layouts-response-class';
43
29
  export * from './list-notification-templates-response-class';
44
30
  export * from './notification-template-class';
45
- export * from './reconcile-email-subscriptions-request-dto';
46
- export * from './reconcile-email-subscriptions-response-class';
47
- export * from './renew-email-subscription-response-class';
48
31
  export * from './s3-document-dto';
49
- export * from './send-email-request-dto';
50
- export * from './send-email-response-class';
51
32
  export * from './send-notification-request-dto';
52
33
  export * from './send-notification-response-class';
53
- export * from './unassign-email-thread-entity-response-class';
54
34
  export * from './update-html-template-request-dto';
55
35
  export * from './update-layout-request-dto';
56
36
  export * from './update-layout-response-class';
@@ -14,11 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./assign-email-thread-entity-body-dto"), exports);
18
- __exportStar(require("./assign-email-thread-entity-response-class"), exports);
19
- __exportStar(require("./catch-up-email-subscription-response-class"), exports);
20
- __exportStar(require("./catch-up-email-subscriptions-request-dto"), exports);
21
- __exportStar(require("./catch-up-email-subscriptions-response-class"), exports);
22
17
  __exportStar(require("./complete-email-verification-dto"), exports);
23
18
  __exportStar(require("./complete-email-verification-response-class"), exports);
24
19
  __exportStar(require("./create-layout-request-dto"), exports);
@@ -29,44 +24,29 @@ __exportStar(require("./delete-layout-request-dto"), exports);
29
24
  __exportStar(require("./delete-notification-template-request-dto"), exports);
30
25
  __exportStar(require("./download-attachment-response-class"), exports);
31
26
  __exportStar(require("./email-attachment-class"), exports);
32
- __exportStar(require("./email-mailbox-class"), exports);
33
27
  __exportStar(require("./email-message-class"), exports);
34
- __exportStar(require("./email-message-summary-class"), exports);
35
- __exportStar(require("./email-subscription-class"), exports);
36
28
  __exportStar(require("./email-thread-class"), exports);
37
- __exportStar(require("./entity-ref-class"), exports);
38
29
  __exportStar(require("./get-email-message-response-class"), exports);
39
- __exportStar(require("./get-email-subscription-response-class"), exports);
40
30
  __exportStar(require("./get-email-thread-response-class"), exports);
41
31
  __exportStar(require("./get-layout-request-dto"), exports);
42
32
  __exportStar(require("./get-layout-response-class"), exports);
43
33
  __exportStar(require("./get-notification-template-request-dto"), exports);
44
34
  __exportStar(require("./get-notification-template-response-class"), exports);
45
- __exportStar(require("./grpc-send-email-request-dto"), exports);
46
35
  __exportStar(require("./html-template-class"), exports);
47
36
  __exportStar(require("./initiate-email-verification-dto"), exports);
48
37
  __exportStar(require("./initiate-email-verification-response-class"), exports);
49
- __exportStar(require("./inline-attachment-dto"), exports);
50
38
  __exportStar(require("./inline-response200"), exports);
51
39
  __exportStar(require("./inline-response503"), exports);
52
40
  __exportStar(require("./layout-class"), exports);
53
41
  __exportStar(require("./list-email-attachments-response-class"), exports);
54
- __exportStar(require("./list-email-mailboxes-response-class"), exports);
55
42
  __exportStar(require("./list-email-messages-response-class"), exports);
56
- __exportStar(require("./list-email-subscriptions-response-class"), exports);
57
43
  __exportStar(require("./list-email-threads-response-class"), exports);
58
44
  __exportStar(require("./list-layouts-response-class"), exports);
59
45
  __exportStar(require("./list-notification-templates-response-class"), exports);
60
46
  __exportStar(require("./notification-template-class"), exports);
61
- __exportStar(require("./reconcile-email-subscriptions-request-dto"), exports);
62
- __exportStar(require("./reconcile-email-subscriptions-response-class"), exports);
63
- __exportStar(require("./renew-email-subscription-response-class"), exports);
64
47
  __exportStar(require("./s3-document-dto"), exports);
65
- __exportStar(require("./send-email-request-dto"), exports);
66
- __exportStar(require("./send-email-response-class"), exports);
67
48
  __exportStar(require("./send-notification-request-dto"), exports);
68
49
  __exportStar(require("./send-notification-response-class"), exports);
69
- __exportStar(require("./unassign-email-thread-entity-response-class"), exports);
70
50
  __exportStar(require("./update-html-template-request-dto"), exports);
71
51
  __exportStar(require("./update-layout-request-dto"), exports);
72
52
  __exportStar(require("./update-layout-response-class"), exports);
@@ -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 reply tracking is enabled.
88
+ * Reply-To address for email reply tracking. Auto-generated when entityType and entityCode are provided.
89
89
  * @type {string}
90
90
  * @memberof SendNotificationRequestDto
91
91
  */
@@ -108,19 +108,10 @@ 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
- };
119
111
  }
120
112
  export declare const SendNotificationRequestDtoEntityTypeEnum: {
121
113
  readonly Claim: "Claim";
122
114
  readonly Policy: "Policy";
123
115
  readonly Lead: "Lead";
124
- readonly Partner: "Partner";
125
116
  };
126
117
  export type SendNotificationRequestDtoEntityTypeEnum = typeof SendNotificationRequestDtoEntityTypeEnum[keyof typeof SendNotificationRequestDtoEntityTypeEnum];
@@ -17,6 +17,5 @@ exports.SendNotificationRequestDtoEntityTypeEnum = void 0;
17
17
  exports.SendNotificationRequestDtoEntityTypeEnum = {
18
18
  Claim: 'Claim',
19
19
  Policy: 'Policy',
20
- Lead: 'Lead',
21
- Partner: 'Partner'
20
+ Lead: 'Lead'
22
21
  };
@@ -14,7 +14,6 @@
14
14
 
15
15
 
16
16
  import { EmailAttachmentClass } from './email-attachment-class';
17
- import { EntityRefClass } from './entity-ref-class';
18
17
 
19
18
  /**
20
19
  *
@@ -35,41 +34,11 @@ export interface EmailMessageClass {
35
34
  */
36
35
  'code': string;
37
36
  /**
38
- * Thread code this message belongs to. Empty only while an inbound message is still being correlated.
37
+ * Thread code this message belongs to
39
38
  * @type {string}
40
39
  * @memberof EmailMessageClass
41
40
  */
42
41
  '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;
73
42
  /**
74
43
  * Direction of the email
75
44
  * @type {string}
@@ -113,7 +82,7 @@ export interface EmailMessageClass {
113
82
  */
114
83
  'bodyHtml'?: string;
115
84
  /**
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.
85
+ * Delivery status of the email
117
86
  * @type {string}
118
87
  * @memberof EmailMessageClass
119
88
  */
@@ -167,50 +136,19 @@ export interface EmailMessageClass {
167
136
  */
168
137
  'attachments': Array<EmailAttachmentClass>;
169
138
  /**
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)
139
+ * Entity type this message is associated with
183
140
  * @type {string}
184
141
  * @memberof EmailMessageClass
185
142
  */
186
- 'entityNumber'?: string;
143
+ 'entityType': string;
187
144
  /**
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.
145
+ * Entity code this message is associated with
189
146
  * @type {string}
190
147
  * @memberof EmailMessageClass
191
148
  */
192
- 'workflowStatus'?: EmailMessageClassWorkflowStatusEnum;
149
+ 'entityCode': string;
193
150
  }
194
151
 
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];
214
152
  export const EmailMessageClassDirectionEnum = {
215
153
  Outbound: 'outbound',
216
154
  Inbound: 'inbound'
@@ -220,19 +158,11 @@ export type EmailMessageClassDirectionEnum = typeof EmailMessageClassDirectionEn
220
158
  export const EmailMessageClassDeliveryStatusEnum = {
221
159
  Pending: 'pending',
222
160
  Sent: 'sent',
161
+ Delivered: 'delivered',
223
162
  Bounced: 'bounced',
224
- Failed: 'failed',
225
- Received: 'received'
163
+ Failed: 'failed'
226
164
  } as const;
227
165
 
228
166
  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];
237
167
 
238
168
 
@@ -13,8 +13,6 @@
13
13
  */
14
14
 
15
15
 
16
- import { EmailMessageSummaryClass } from './email-message-summary-class';
17
- import { EntityRefClass } from './entity-ref-class';
18
16
 
19
17
  /**
20
18
  *
@@ -35,17 +33,17 @@ export interface EmailThreadClass {
35
33
  */
36
34
  'code': string;
37
35
  /**
38
- * The entity the thread, and every message in it, is linked to. Not set while the thread is unassigned.
39
- * @type {EntityRefClass}
36
+ * Entity type associated with this thread
37
+ * @type {string}
40
38
  * @memberof EmailThreadClass
41
39
  */
42
- 'entityRef'?: EntityRefClass;
40
+ 'entityType': string;
43
41
  /**
44
- * Number of the entity the thread is linked to
42
+ * Entity code associated with this thread
45
43
  * @type {string}
46
44
  * @memberof EmailThreadClass
47
45
  */
48
- 'entityNumber'?: string;
46
+ 'entityCode': string;
49
47
  /**
50
48
  * Email subject of the thread
51
49
  * @type {string}
@@ -58,12 +56,6 @@ export interface EmailThreadClass {
58
56
  * @memberof EmailThreadClass
59
57
  */
60
58
  '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;
67
59
  /**
68
60
  * User who created this thread
69
61
  * @type {string}
@@ -88,30 +80,6 @@ export interface EmailThreadClass {
88
80
  * @memberof EmailThreadClass
89
81
  */
90
82
  '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>;
115
83
  }
116
84
 
117
85
  export const EmailThreadClassStatusEnum = {
package/models/index.ts CHANGED
@@ -1,8 +1,3 @@
1
- export * from './assign-email-thread-entity-body-dto';
2
- export * from './assign-email-thread-entity-response-class';
3
- export * from './catch-up-email-subscription-response-class';
4
- export * from './catch-up-email-subscriptions-request-dto';
5
- export * from './catch-up-email-subscriptions-response-class';
6
1
  export * from './complete-email-verification-dto';
7
2
  export * from './complete-email-verification-response-class';
8
3
  export * from './create-layout-request-dto';
@@ -13,44 +8,29 @@ export * from './delete-layout-request-dto';
13
8
  export * from './delete-notification-template-request-dto';
14
9
  export * from './download-attachment-response-class';
15
10
  export * from './email-attachment-class';
16
- export * from './email-mailbox-class';
17
11
  export * from './email-message-class';
18
- export * from './email-message-summary-class';
19
- export * from './email-subscription-class';
20
12
  export * from './email-thread-class';
21
- export * from './entity-ref-class';
22
13
  export * from './get-email-message-response-class';
23
- export * from './get-email-subscription-response-class';
24
14
  export * from './get-email-thread-response-class';
25
15
  export * from './get-layout-request-dto';
26
16
  export * from './get-layout-response-class';
27
17
  export * from './get-notification-template-request-dto';
28
18
  export * from './get-notification-template-response-class';
29
- export * from './grpc-send-email-request-dto';
30
19
  export * from './html-template-class';
31
20
  export * from './initiate-email-verification-dto';
32
21
  export * from './initiate-email-verification-response-class';
33
- export * from './inline-attachment-dto';
34
22
  export * from './inline-response200';
35
23
  export * from './inline-response503';
36
24
  export * from './layout-class';
37
25
  export * from './list-email-attachments-response-class';
38
- export * from './list-email-mailboxes-response-class';
39
26
  export * from './list-email-messages-response-class';
40
- export * from './list-email-subscriptions-response-class';
41
27
  export * from './list-email-threads-response-class';
42
28
  export * from './list-layouts-response-class';
43
29
  export * from './list-notification-templates-response-class';
44
30
  export * from './notification-template-class';
45
- export * from './reconcile-email-subscriptions-request-dto';
46
- export * from './reconcile-email-subscriptions-response-class';
47
- export * from './renew-email-subscription-response-class';
48
31
  export * from './s3-document-dto';
49
- export * from './send-email-request-dto';
50
- export * from './send-email-response-class';
51
32
  export * from './send-notification-request-dto';
52
33
  export * from './send-notification-response-class';
53
- export * from './unassign-email-thread-entity-response-class';
54
34
  export * from './update-html-template-request-dto';
55
35
  export * from './update-layout-request-dto';
56
36
  export * from './update-layout-response-class';