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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/.openapi-generator/FILES +0 -20
  2. package/README.md +2 -2
  3. package/api/email-messages-api.ts +28 -40
  4. package/api/email-tracking-api.ts +40 -271
  5. package/api/email-verifications-api.ts +8 -16
  6. package/api/layouts-api.ts +36 -56
  7. package/api/notification-templates-api.ts +36 -56
  8. package/api/notifications-api.ts +4 -115
  9. package/api.ts +0 -6
  10. package/base.ts +15 -36
  11. package/configuration.ts +0 -11
  12. package/dist/api/email-messages-api.d.ts +28 -40
  13. package/dist/api/email-messages-api.js +25 -37
  14. package/dist/api/email-tracking-api.d.ts +40 -170
  15. package/dist/api/email-tracking-api.js +34 -233
  16. package/dist/api/email-verifications-api.d.ts +8 -16
  17. package/dist/api/email-verifications-api.js +8 -16
  18. package/dist/api/layouts-api.d.ts +36 -56
  19. package/dist/api/layouts-api.js +32 -52
  20. package/dist/api/notification-templates-api.d.ts +36 -56
  21. package/dist/api/notification-templates-api.js +32 -52
  22. package/dist/api/notifications-api.d.ts +4 -65
  23. package/dist/api/notifications-api.js +4 -101
  24. package/dist/api.d.ts +0 -3
  25. package/dist/api.js +0 -3
  26. package/dist/base.d.ts +0 -1
  27. package/dist/base.js +16 -36
  28. package/dist/configuration.d.ts +0 -9
  29. package/dist/configuration.js +0 -1
  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 -17
  34. package/dist/models/index.js +0 -17
  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 -17
  40. package/models/send-notification-request-dto.ts +2 -9
  41. package/package.json +1 -1
  42. package/api/email-mailboxes-api.ts +0 -148
  43. package/api/email-subscriptions-api.ts +0 -559
  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 -218
  47. package/dist/api/email-subscriptions-api.d.ts +0 -319
  48. package/dist/api/email-subscriptions-api.js +0 -537
  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/email-mailbox-class.d.ts +0 -47
  56. package/dist/models/email-mailbox-class.js +0 -20
  57. package/dist/models/email-message-summary-class.d.ts +0 -98
  58. package/dist/models/email-message-summary-class.js +0 -33
  59. package/dist/models/email-subscription-class.d.ts +0 -104
  60. package/dist/models/email-subscription-class.js +0 -23
  61. package/dist/models/entity-ref-class.d.ts +0 -37
  62. package/dist/models/entity-ref-class.js +0 -22
  63. package/dist/models/get-email-subscription-response-class.d.ts +0 -25
  64. package/dist/models/get-email-subscription-response-class.js +0 -15
  65. package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
  66. package/dist/models/grpc-send-email-request-dto.js +0 -22
  67. package/dist/models/inline-attachment-dto.d.ts +0 -36
  68. package/dist/models/inline-attachment-dto.js +0 -15
  69. package/dist/models/list-email-mailboxes-response-class.d.ts +0 -43
  70. package/dist/models/list-email-mailboxes-response-class.js +0 -15
  71. package/dist/models/list-email-subscriptions-response-class.d.ts +0 -43
  72. package/dist/models/list-email-subscriptions-response-class.js +0 -15
  73. package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +0 -24
  74. package/dist/models/reconcile-email-subscriptions-request-dto.js +0 -15
  75. package/dist/models/reconcile-email-subscriptions-response-class.d.ts +0 -48
  76. package/dist/models/reconcile-email-subscriptions-response-class.js +0 -15
  77. package/dist/models/renew-email-subscription-response-class.d.ts +0 -25
  78. package/dist/models/renew-email-subscription-response-class.js +0 -15
  79. package/dist/models/send-email-request-dto.d.ts +0 -131
  80. package/dist/models/send-email-request-dto.js +0 -22
  81. package/dist/models/send-email-response-class.d.ts +0 -24
  82. package/dist/models/send-email-response-class.js +0 -15
  83. package/dist/models/unassign-email-thread-entity-response-class.d.ts +0 -25
  84. package/dist/models/unassign-email-thread-entity-response-class.js +0 -15
  85. package/models/assign-email-thread-entity-body-dto.ts +0 -52
  86. package/models/assign-email-thread-entity-response-class.ts +0 -31
  87. package/models/email-mailbox-class.ts +0 -56
  88. package/models/email-message-summary-class.ts +0 -109
  89. package/models/email-subscription-class.ts +0 -113
  90. package/models/entity-ref-class.ts +0 -46
  91. package/models/get-email-subscription-response-class.ts +0 -31
  92. package/models/grpc-send-email-request-dto.ts +0 -144
  93. package/models/inline-attachment-dto.ts +0 -42
  94. package/models/list-email-mailboxes-response-class.ts +0 -49
  95. package/models/list-email-subscriptions-response-class.ts +0 -49
  96. package/models/reconcile-email-subscriptions-request-dto.ts +0 -30
  97. package/models/reconcile-email-subscriptions-response-class.ts +0 -54
  98. package/models/renew-email-subscription-response-class.ts +0 -31
  99. package/models/send-email-request-dto.ts +0 -138
  100. package/models/send-email-response-class.ts +0 -30
  101. package/models/unassign-email-thread-entity-response-class.ts +0 -31
@@ -1,5 +1,3 @@
1
- export * from './assign-email-thread-entity-body-dto';
2
- export * from './assign-email-thread-entity-response-class';
3
1
  export * from './complete-email-verification-dto';
4
2
  export * from './complete-email-verification-response-class';
5
3
  export * from './create-layout-request-dto';
@@ -10,44 +8,29 @@ export * from './delete-layout-request-dto';
10
8
  export * from './delete-notification-template-request-dto';
11
9
  export * from './download-attachment-response-class';
12
10
  export * from './email-attachment-class';
13
- export * from './email-mailbox-class';
14
11
  export * from './email-message-class';
15
- export * from './email-message-summary-class';
16
- export * from './email-subscription-class';
17
12
  export * from './email-thread-class';
18
- export * from './entity-ref-class';
19
13
  export * from './get-email-message-response-class';
20
- export * from './get-email-subscription-response-class';
21
14
  export * from './get-email-thread-response-class';
22
15
  export * from './get-layout-request-dto';
23
16
  export * from './get-layout-response-class';
24
17
  export * from './get-notification-template-request-dto';
25
18
  export * from './get-notification-template-response-class';
26
- export * from './grpc-send-email-request-dto';
27
19
  export * from './html-template-class';
28
20
  export * from './initiate-email-verification-dto';
29
21
  export * from './initiate-email-verification-response-class';
30
- export * from './inline-attachment-dto';
31
22
  export * from './inline-response200';
32
23
  export * from './inline-response503';
33
24
  export * from './layout-class';
34
25
  export * from './list-email-attachments-response-class';
35
- export * from './list-email-mailboxes-response-class';
36
26
  export * from './list-email-messages-response-class';
37
- export * from './list-email-subscriptions-response-class';
38
27
  export * from './list-email-threads-response-class';
39
28
  export * from './list-layouts-response-class';
40
29
  export * from './list-notification-templates-response-class';
41
30
  export * from './notification-template-class';
42
- export * from './reconcile-email-subscriptions-request-dto';
43
- export * from './reconcile-email-subscriptions-response-class';
44
- export * from './renew-email-subscription-response-class';
45
31
  export * from './s3-document-dto';
46
- export * from './send-email-request-dto';
47
- export * from './send-email-response-class';
48
32
  export * from './send-notification-request-dto';
49
33
  export * from './send-notification-response-class';
50
- export * from './unassign-email-thread-entity-response-class';
51
34
  export * from './update-html-template-request-dto';
52
35
  export * from './update-layout-request-dto';
53
36
  export * from './update-layout-response-class';
@@ -14,8 +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
17
  __exportStar(require("./complete-email-verification-dto"), exports);
20
18
  __exportStar(require("./complete-email-verification-response-class"), exports);
21
19
  __exportStar(require("./create-layout-request-dto"), exports);
@@ -26,44 +24,29 @@ __exportStar(require("./delete-layout-request-dto"), exports);
26
24
  __exportStar(require("./delete-notification-template-request-dto"), exports);
27
25
  __exportStar(require("./download-attachment-response-class"), exports);
28
26
  __exportStar(require("./email-attachment-class"), exports);
29
- __exportStar(require("./email-mailbox-class"), exports);
30
27
  __exportStar(require("./email-message-class"), exports);
31
- __exportStar(require("./email-message-summary-class"), exports);
32
- __exportStar(require("./email-subscription-class"), exports);
33
28
  __exportStar(require("./email-thread-class"), exports);
34
- __exportStar(require("./entity-ref-class"), exports);
35
29
  __exportStar(require("./get-email-message-response-class"), exports);
36
- __exportStar(require("./get-email-subscription-response-class"), exports);
37
30
  __exportStar(require("./get-email-thread-response-class"), exports);
38
31
  __exportStar(require("./get-layout-request-dto"), exports);
39
32
  __exportStar(require("./get-layout-response-class"), exports);
40
33
  __exportStar(require("./get-notification-template-request-dto"), exports);
41
34
  __exportStar(require("./get-notification-template-response-class"), exports);
42
- __exportStar(require("./grpc-send-email-request-dto"), exports);
43
35
  __exportStar(require("./html-template-class"), exports);
44
36
  __exportStar(require("./initiate-email-verification-dto"), exports);
45
37
  __exportStar(require("./initiate-email-verification-response-class"), exports);
46
- __exportStar(require("./inline-attachment-dto"), exports);
47
38
  __exportStar(require("./inline-response200"), exports);
48
39
  __exportStar(require("./inline-response503"), exports);
49
40
  __exportStar(require("./layout-class"), exports);
50
41
  __exportStar(require("./list-email-attachments-response-class"), exports);
51
- __exportStar(require("./list-email-mailboxes-response-class"), exports);
52
42
  __exportStar(require("./list-email-messages-response-class"), exports);
53
- __exportStar(require("./list-email-subscriptions-response-class"), exports);
54
43
  __exportStar(require("./list-email-threads-response-class"), exports);
55
44
  __exportStar(require("./list-layouts-response-class"), exports);
56
45
  __exportStar(require("./list-notification-templates-response-class"), exports);
57
46
  __exportStar(require("./notification-template-class"), exports);
58
- __exportStar(require("./reconcile-email-subscriptions-request-dto"), exports);
59
- __exportStar(require("./reconcile-email-subscriptions-response-class"), exports);
60
- __exportStar(require("./renew-email-subscription-response-class"), exports);
61
47
  __exportStar(require("./s3-document-dto"), exports);
62
- __exportStar(require("./send-email-request-dto"), exports);
63
- __exportStar(require("./send-email-response-class"), exports);
64
48
  __exportStar(require("./send-notification-request-dto"), exports);
65
49
  __exportStar(require("./send-notification-response-class"), exports);
66
- __exportStar(require("./unassign-email-thread-entity-response-class"), exports);
67
50
  __exportStar(require("./update-html-template-request-dto"), exports);
68
51
  __exportStar(require("./update-layout-request-dto"), exports);
69
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,5 +1,3 @@
1
- export * from './assign-email-thread-entity-body-dto';
2
- export * from './assign-email-thread-entity-response-class';
3
1
  export * from './complete-email-verification-dto';
4
2
  export * from './complete-email-verification-response-class';
5
3
  export * from './create-layout-request-dto';
@@ -10,44 +8,29 @@ export * from './delete-layout-request-dto';
10
8
  export * from './delete-notification-template-request-dto';
11
9
  export * from './download-attachment-response-class';
12
10
  export * from './email-attachment-class';
13
- export * from './email-mailbox-class';
14
11
  export * from './email-message-class';
15
- export * from './email-message-summary-class';
16
- export * from './email-subscription-class';
17
12
  export * from './email-thread-class';
18
- export * from './entity-ref-class';
19
13
  export * from './get-email-message-response-class';
20
- export * from './get-email-subscription-response-class';
21
14
  export * from './get-email-thread-response-class';
22
15
  export * from './get-layout-request-dto';
23
16
  export * from './get-layout-response-class';
24
17
  export * from './get-notification-template-request-dto';
25
18
  export * from './get-notification-template-response-class';
26
- export * from './grpc-send-email-request-dto';
27
19
  export * from './html-template-class';
28
20
  export * from './initiate-email-verification-dto';
29
21
  export * from './initiate-email-verification-response-class';
30
- export * from './inline-attachment-dto';
31
22
  export * from './inline-response200';
32
23
  export * from './inline-response503';
33
24
  export * from './layout-class';
34
25
  export * from './list-email-attachments-response-class';
35
- export * from './list-email-mailboxes-response-class';
36
26
  export * from './list-email-messages-response-class';
37
- export * from './list-email-subscriptions-response-class';
38
27
  export * from './list-email-threads-response-class';
39
28
  export * from './list-layouts-response-class';
40
29
  export * from './list-notification-templates-response-class';
41
30
  export * from './notification-template-class';
42
- export * from './reconcile-email-subscriptions-request-dto';
43
- export * from './reconcile-email-subscriptions-response-class';
44
- export * from './renew-email-subscription-response-class';
45
31
  export * from './s3-document-dto';
46
- export * from './send-email-request-dto';
47
- export * from './send-email-response-class';
48
32
  export * from './send-notification-request-dto';
49
33
  export * from './send-notification-response-class';
50
- export * from './unassign-email-thread-entity-response-class';
51
34
  export * from './update-html-template-request-dto';
52
35
  export * from './update-layout-request-dto';
53
36
  export * from './update-layout-response-class';
@@ -88,7 +88,7 @@ export interface SendNotificationRequestDto {
88
88
  */
89
89
  'entityCode'?: string;
90
90
  /**
91
- * Reply-To address for email reply tracking. Auto-generated when reply tracking is enabled.
91
+ * Reply-To address for email reply tracking. Auto-generated when entityType and entityCode are provided.
92
92
  * @type {string}
93
93
  * @memberof SendNotificationRequestDto
94
94
  */
@@ -111,19 +111,12 @@ export interface SendNotificationRequestDto {
111
111
  * @memberof SendNotificationRequestDto
112
112
  */
113
113
  'references': Array<string>;
114
- /**
115
- * Custom headers to set on the outgoing email
116
- * @type {{ [key: string]: string; }}
117
- * @memberof SendNotificationRequestDto
118
- */
119
- 'customHeaders': { [key: string]: string; };
120
114
  }
121
115
 
122
116
  export const SendNotificationRequestDtoEntityTypeEnum = {
123
117
  Claim: 'Claim',
124
118
  Policy: 'Policy',
125
- Lead: 'Lead',
126
- Partner: 'Partner'
119
+ Lead: 'Lead'
127
120
  } as const;
128
121
 
129
122
  export type SendNotificationRequestDtoEntityTypeEnum = typeof SendNotificationRequestDtoEntityTypeEnum[keyof typeof SendNotificationRequestDtoEntityTypeEnum];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/notification-sdk",
3
- "version": "0.8.1-beta.49",
3
+ "version": "0.8.1-beta.5",
4
4
  "description": "OpenAPI client for @emilgroup/notification-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,148 +0,0 @@
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { ListEmailMailboxesResponseClass } from '../models';
25
- /**
26
- * EmailMailboxesApi - axios parameter creator
27
- * @export
28
- */
29
- export const EmailMailboxesApiAxiosParamCreator = function (configuration?: Configuration) {
30
- return {
31
- /**
32
- * Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
33
- * @summary List the email mailboxes
34
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
35
- * @param {*} [options] Override http request option.
36
- * @throws {RequiredError}
37
- */
38
- listEmailMailboxes: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
- const localVarPath = `/notificationservice/v1/email-mailboxes`;
40
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42
- let baseOptions;
43
- let baseAccessToken;
44
- if (configuration) {
45
- baseOptions = configuration.baseOptions;
46
- baseAccessToken = configuration.accessToken;
47
- }
48
-
49
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
50
- const localVarHeaderParameter = {} as any;
51
- const localVarQueryParameter = {} as any;
52
-
53
- // authentication bearer required
54
- // http bearer authentication required
55
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
56
-
57
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
58
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
59
- }
60
-
61
-
62
-
63
- setSearchParams(localVarUrlObj, localVarQueryParameter);
64
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
66
-
67
- return {
68
- url: toPathString(localVarUrlObj),
69
- options: localVarRequestOptions,
70
- };
71
- },
72
- }
73
- };
74
-
75
- /**
76
- * EmailMailboxesApi - functional programming interface
77
- * @export
78
- */
79
- export const EmailMailboxesApiFp = function(configuration?: Configuration) {
80
- const localVarAxiosParamCreator = EmailMailboxesApiAxiosParamCreator(configuration)
81
- return {
82
- /**
83
- * Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
84
- * @summary List the email mailboxes
85
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
86
- * @param {*} [options] Override http request option.
87
- * @throws {RequiredError}
88
- */
89
- async listEmailMailboxes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailMailboxesResponseClass>> {
90
- const localVarAxiosArgs = await localVarAxiosParamCreator.listEmailMailboxes(authorization, options);
91
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
92
- },
93
- }
94
- };
95
-
96
- /**
97
- * EmailMailboxesApi - factory interface
98
- * @export
99
- */
100
- export const EmailMailboxesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
101
- const localVarFp = EmailMailboxesApiFp(configuration)
102
- return {
103
- /**
104
- * Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
105
- * @summary List the email mailboxes
106
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
107
- * @param {*} [options] Override http request option.
108
- * @throws {RequiredError}
109
- */
110
- listEmailMailboxes(authorization?: string, options?: any): AxiosPromise<ListEmailMailboxesResponseClass> {
111
- return localVarFp.listEmailMailboxes(authorization, options).then((request) => request(axios, basePath));
112
- },
113
- };
114
- };
115
-
116
- /**
117
- * Request parameters for listEmailMailboxes operation in EmailMailboxesApi.
118
- * @export
119
- * @interface EmailMailboxesApiListEmailMailboxesRequest
120
- */
121
- export interface EmailMailboxesApiListEmailMailboxesRequest {
122
- /**
123
- * Bearer Token: provided by the login endpoint under the name accessToken.
124
- * @type {string}
125
- * @memberof EmailMailboxesApiListEmailMailboxes
126
- */
127
- readonly authorization?: string
128
- }
129
-
130
- /**
131
- * EmailMailboxesApi - object-oriented interface
132
- * @export
133
- * @class EmailMailboxesApi
134
- * @extends {BaseAPI}
135
- */
136
- export class EmailMailboxesApi extends BaseAPI {
137
- /**
138
- * Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
139
- * @summary List the email mailboxes
140
- * @param {EmailMailboxesApiListEmailMailboxesRequest} requestParameters Request parameters.
141
- * @param {*} [options] Override http request option.
142
- * @throws {RequiredError}
143
- * @memberof EmailMailboxesApi
144
- */
145
- public listEmailMailboxes(requestParameters: EmailMailboxesApiListEmailMailboxesRequest = {}, options?: AxiosRequestConfig) {
146
- return EmailMailboxesApiFp(this.configuration).listEmailMailboxes(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
147
- }
148
- }