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

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
@@ -93,64 +93,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * Links the email thread, and every message in it, to the given entity, identified by code or by number (the code wins when both are set). Replaces the current link. The entity must exist. Messages that arrive in the thread later are linked to the same entity. **Required Permissions** \"notification-management.email-messages.update\"
97
- * @summary Assign an email thread to an entity
98
- * @param {string} code
99
- * @param {AssignEmailThreadEntityBodyDto} assignEmailThreadEntityBodyDto
100
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- assignEntity: function (code, assignEmailThreadEntityBodyDto, authorization, options) {
105
- if (options === void 0) { options = {}; }
106
- return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
108
- return __generator(this, function (_a) {
109
- switch (_a.label) {
110
- case 0:
111
- // verify required parameter 'code' is not null or undefined
112
- (0, common_1.assertParamExists)('assignEntity', 'code', code);
113
- // verify required parameter 'assignEmailThreadEntityBodyDto' is not null or undefined
114
- (0, common_1.assertParamExists)('assignEntity', 'assignEmailThreadEntityBodyDto', assignEmailThreadEntityBodyDto);
115
- localVarPath = "/notificationservice/v1/email-threads/{code}/entity"
116
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
117
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
- if (configuration) {
119
- baseOptions = configuration.baseOptions;
120
- baseAccessToken = configuration.accessToken;
121
- }
122
- localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
123
- localVarHeaderParameter = {};
124
- localVarQueryParameter = {};
125
- // authentication bearer required
126
- // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
- // Only Authorization falls back to the configured token; an empty value is never sent.
129
- ];
130
- case 1:
131
- // authentication bearer required
132
- // http bearer authentication required
133
- _a.sent();
134
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
- if (authorizationValue) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
137
- }
138
- localVarHeaderParameter['Content-Type'] = 'application/json';
139
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
140
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
141
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
142
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(assignEmailThreadEntityBodyDto, localVarRequestOptions, configuration);
143
- return [2 /*return*/, {
144
- url: (0, common_1.toPathString)(localVarUrlObj),
145
- options: localVarRequestOptions,
146
- }];
147
- }
148
- });
149
- });
150
- },
151
- /**
152
- * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
153
- * @summary Close the email thread
96
+ * undefined **Required Permissions** \"notification-management.email-messages.update\"
154
97
  * @param {string} code
155
98
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
156
99
  * @param {*} [options] Override http request option.
@@ -159,7 +102,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
159
102
  closeThread: function (code, authorization, options) {
160
103
  if (options === void 0) { options = {}; }
161
104
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
105
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
163
106
  return __generator(this, function (_a) {
164
107
  switch (_a.label) {
165
108
  case 0:
@@ -177,16 +120,13 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
177
120
  localVarQueryParameter = {};
178
121
  // authentication bearer required
179
122
  // http bearer authentication required
180
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
- // Only Authorization falls back to the configured token; an empty value is never sent.
182
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
183
124
  case 1:
184
125
  // authentication bearer required
185
126
  // http bearer authentication required
186
127
  _a.sent();
187
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
- if (authorizationValue) {
189
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
190
130
  }
191
131
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
192
132
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -200,8 +140,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
200
140
  });
201
141
  },
202
142
  /**
203
- * Retrieves the details of the email thread with the given code. **Required Permissions** \"notification-management.email-messages.view\"
204
- * @summary Retrieve the email thread
143
+ * undefined **Required Permissions** \"notification-management.email-messages.view\"
205
144
  * @param {string} code
206
145
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
207
146
  * @param {*} [options] Override http request option.
@@ -210,7 +149,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
210
149
  getThread: function (code, authorization, options) {
211
150
  if (options === void 0) { options = {}; }
212
151
  return __awaiter(_this, void 0, void 0, function () {
213
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
152
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
153
  return __generator(this, function (_a) {
215
154
  switch (_a.label) {
216
155
  case 0:
@@ -228,16 +167,13 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
228
167
  localVarQueryParameter = {};
229
168
  // authentication bearer required
230
169
  // http bearer authentication required
231
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
232
- // Only Authorization falls back to the configured token; an empty value is never sent.
233
- ];
170
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
234
171
  case 1:
235
172
  // authentication bearer required
236
173
  // http bearer authentication required
237
174
  _a.sent();
238
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
- if (authorizationValue) {
240
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
175
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
176
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
177
  }
242
178
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
243
179
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -251,13 +187,13 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
251
187
  });
252
188
  },
253
189
  /**
254
- * Returns the email messages of the email thread with the given code. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
190
+ * Lists all email messages for a thread **Required Permissions** \"notification-management.email-messages.view\"
255
191
  * @summary List email messages
256
192
  * @param {string} code
257
193
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
258
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
259
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
260
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
194
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
195
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
196
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
261
197
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: attachments<i>
262
198
  * @param {*} [options] Override http request option.
263
199
  * @throws {RequiredError}
@@ -265,7 +201,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
265
201
  listMessages: function (code, authorization, filter, filters, order, expand, options) {
266
202
  if (options === void 0) { options = {}; }
267
203
  return __awaiter(_this, void 0, void 0, function () {
268
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
205
  return __generator(this, function (_a) {
270
206
  switch (_a.label) {
271
207
  case 0:
@@ -300,9 +236,8 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
300
236
  if (expand !== undefined) {
301
237
  localVarQueryParameter['expand'] = expand;
302
238
  }
303
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
304
- if (authorizationValue) {
305
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
239
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
240
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
306
241
  }
307
242
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
243
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -316,23 +251,23 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
316
251
  });
317
252
  },
318
253
  /**
319
- * Returns a list of email threads, newest first. A thread groups an email with its replies; each item carries the newest message of the thread in latestMessage and the number of messages in messageCount. Threads without a message yet are not listed. Filter on the newest message with latestDirection (inbox tabs), latestDeliveryStatus or latestWorkflowStatus (use latestWorkflowStatus==$null for threads whose newest message has no workflow). Add expand=messages to get every message of each thread, without bodies. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
254
+ * Lists all email threads with optional filters **Required Permissions** \"notification-management.email-messages.view\"
320
255
  * @summary List email threads
321
256
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
322
257
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
323
258
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
324
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy</i>
259
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
325
260
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
326
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, createdAt, updatedAt</i>
261
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt</i>
327
262
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: messages<i>
328
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy</i>
263
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
329
264
  * @param {*} [options] Override http request option.
330
265
  * @throws {RequiredError}
331
266
  */
332
267
  listThreads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
333
268
  if (options === void 0) { options = {}; }
334
269
  return __awaiter(_this, void 0, void 0, function () {
335
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
270
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
336
271
  return __generator(this, function (_a) {
337
272
  switch (_a.label) {
338
273
  case 0:
@@ -373,60 +308,8 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
373
308
  if (filters !== undefined) {
374
309
  localVarQueryParameter['filters'] = filters;
375
310
  }
376
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
377
- if (authorizationValue) {
378
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
379
- }
380
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
381
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
382
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
383
- return [2 /*return*/, {
384
- url: (0, common_1.toPathString)(localVarUrlObj),
385
- options: localVarRequestOptions,
386
- }];
387
- }
388
- });
389
- });
390
- },
391
- /**
392
- * Removes the entity link from the email thread and every message in it, and marks the messages as unassigned. **Required Permissions** \"notification-management.email-messages.update\"
393
- * @summary Unassign an email thread from its entity
394
- * @param {string} code
395
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
396
- * @param {*} [options] Override http request option.
397
- * @throws {RequiredError}
398
- */
399
- unassignEntity: function (code, authorization, options) {
400
- if (options === void 0) { options = {}; }
401
- return __awaiter(_this, void 0, void 0, function () {
402
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
403
- return __generator(this, function (_a) {
404
- switch (_a.label) {
405
- case 0:
406
- // verify required parameter 'code' is not null or undefined
407
- (0, common_1.assertParamExists)('unassignEntity', 'code', code);
408
- localVarPath = "/notificationservice/v1/email-threads/{code}/entity"
409
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
410
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
411
- if (configuration) {
412
- baseOptions = configuration.baseOptions;
413
- baseAccessToken = configuration.accessToken;
414
- }
415
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
416
- localVarHeaderParameter = {};
417
- localVarQueryParameter = {};
418
- // authentication bearer required
419
- // http bearer authentication required
420
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
421
- // Only Authorization falls back to the configured token; an empty value is never sent.
422
- ];
423
- case 1:
424
- // authentication bearer required
425
- // http bearer authentication required
426
- _a.sent();
427
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
428
- if (authorizationValue) {
429
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
311
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
312
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
430
313
  }
431
314
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
432
315
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -450,30 +333,7 @@ var EmailTrackingApiFp = function (configuration) {
450
333
  var localVarAxiosParamCreator = (0, exports.EmailTrackingApiAxiosParamCreator)(configuration);
451
334
  return {
452
335
  /**
453
- * Links the email thread, and every message in it, to the given entity, identified by code or by number (the code wins when both are set). Replaces the current link. The entity must exist. Messages that arrive in the thread later are linked to the same entity. **Required Permissions** \"notification-management.email-messages.update\"
454
- * @summary Assign an email thread to an entity
455
- * @param {string} code
456
- * @param {AssignEmailThreadEntityBodyDto} assignEmailThreadEntityBodyDto
457
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
458
- * @param {*} [options] Override http request option.
459
- * @throws {RequiredError}
460
- */
461
- assignEntity: function (code, assignEmailThreadEntityBodyDto, authorization, options) {
462
- return __awaiter(this, void 0, void 0, function () {
463
- var localVarAxiosArgs;
464
- return __generator(this, function (_a) {
465
- switch (_a.label) {
466
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignEntity(code, assignEmailThreadEntityBodyDto, authorization, options)];
467
- case 1:
468
- localVarAxiosArgs = _a.sent();
469
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
470
- }
471
- });
472
- });
473
- },
474
- /**
475
- * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
476
- * @summary Close the email thread
336
+ * undefined **Required Permissions** \"notification-management.email-messages.update\"
477
337
  * @param {string} code
478
338
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
479
339
  * @param {*} [options] Override http request option.
@@ -493,8 +353,7 @@ var EmailTrackingApiFp = function (configuration) {
493
353
  });
494
354
  },
495
355
  /**
496
- * Retrieves the details of the email thread with the given code. **Required Permissions** \"notification-management.email-messages.view\"
497
- * @summary Retrieve the email thread
356
+ * undefined **Required Permissions** \"notification-management.email-messages.view\"
498
357
  * @param {string} code
499
358
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
500
359
  * @param {*} [options] Override http request option.
@@ -514,13 +373,13 @@ var EmailTrackingApiFp = function (configuration) {
514
373
  });
515
374
  },
516
375
  /**
517
- * Returns the email messages of the email thread with the given code. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
376
+ * Lists all email messages for a thread **Required Permissions** \"notification-management.email-messages.view\"
518
377
  * @summary List email messages
519
378
  * @param {string} code
520
379
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
521
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
522
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
523
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
380
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
381
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
382
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
524
383
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: attachments<i>
525
384
  * @param {*} [options] Override http request option.
526
385
  * @throws {RequiredError}
@@ -539,16 +398,16 @@ var EmailTrackingApiFp = function (configuration) {
539
398
  });
540
399
  },
541
400
  /**
542
- * Returns a list of email threads, newest first. A thread groups an email with its replies; each item carries the newest message of the thread in latestMessage and the number of messages in messageCount. Threads without a message yet are not listed. Filter on the newest message with latestDirection (inbox tabs), latestDeliveryStatus or latestWorkflowStatus (use latestWorkflowStatus==$null for threads whose newest message has no workflow). Add expand=messages to get every message of each thread, without bodies. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
401
+ * Lists all email threads with optional filters **Required Permissions** \"notification-management.email-messages.view\"
543
402
  * @summary List email threads
544
403
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
545
404
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
546
405
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
547
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy</i>
406
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
548
407
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
549
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, createdAt, updatedAt</i>
408
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt</i>
550
409
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: messages<i>
551
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy</i>
410
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
552
411
  * @param {*} [options] Override http request option.
553
412
  * @throws {RequiredError}
554
413
  */
@@ -565,27 +424,6 @@ var EmailTrackingApiFp = function (configuration) {
565
424
  });
566
425
  });
567
426
  },
568
- /**
569
- * Removes the entity link from the email thread and every message in it, and marks the messages as unassigned. **Required Permissions** \"notification-management.email-messages.update\"
570
- * @summary Unassign an email thread from its entity
571
- * @param {string} code
572
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
573
- * @param {*} [options] Override http request option.
574
- * @throws {RequiredError}
575
- */
576
- unassignEntity: function (code, authorization, options) {
577
- return __awaiter(this, void 0, void 0, function () {
578
- var localVarAxiosArgs;
579
- return __generator(this, function (_a) {
580
- switch (_a.label) {
581
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.unassignEntity(code, authorization, options)];
582
- case 1:
583
- localVarAxiosArgs = _a.sent();
584
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
585
- }
586
- });
587
- });
588
- },
589
427
  };
590
428
  };
591
429
  exports.EmailTrackingApiFp = EmailTrackingApiFp;
@@ -597,20 +435,7 @@ var EmailTrackingApiFactory = function (configuration, basePath, axios) {
597
435
  var localVarFp = (0, exports.EmailTrackingApiFp)(configuration);
598
436
  return {
599
437
  /**
600
- * Links the email thread, and every message in it, to the given entity, identified by code or by number (the code wins when both are set). Replaces the current link. The entity must exist. Messages that arrive in the thread later are linked to the same entity. **Required Permissions** \"notification-management.email-messages.update\"
601
- * @summary Assign an email thread to an entity
602
- * @param {string} code
603
- * @param {AssignEmailThreadEntityBodyDto} assignEmailThreadEntityBodyDto
604
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
605
- * @param {*} [options] Override http request option.
606
- * @throws {RequiredError}
607
- */
608
- assignEntity: function (code, assignEmailThreadEntityBodyDto, authorization, options) {
609
- return localVarFp.assignEntity(code, assignEmailThreadEntityBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
610
- },
611
- /**
612
- * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
613
- * @summary Close the email thread
438
+ * undefined **Required Permissions** \"notification-management.email-messages.update\"
614
439
  * @param {string} code
615
440
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
616
441
  * @param {*} [options] Override http request option.
@@ -620,8 +445,7 @@ var EmailTrackingApiFactory = function (configuration, basePath, axios) {
620
445
  return localVarFp.closeThread(code, authorization, options).then(function (request) { return request(axios, basePath); });
621
446
  },
622
447
  /**
623
- * Retrieves the details of the email thread with the given code. **Required Permissions** \"notification-management.email-messages.view\"
624
- * @summary Retrieve the email thread
448
+ * undefined **Required Permissions** \"notification-management.email-messages.view\"
625
449
  * @param {string} code
626
450
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
627
451
  * @param {*} [options] Override http request option.
@@ -631,13 +455,13 @@ var EmailTrackingApiFactory = function (configuration, basePath, axios) {
631
455
  return localVarFp.getThread(code, authorization, options).then(function (request) { return request(axios, basePath); });
632
456
  },
633
457
  /**
634
- * Returns the email messages of the email thread with the given code. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
458
+ * Lists all email messages for a thread **Required Permissions** \"notification-management.email-messages.view\"
635
459
  * @summary List email messages
636
460
  * @param {string} code
637
461
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
638
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
639
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
640
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
462
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
463
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
464
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
641
465
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: attachments<i>
642
466
  * @param {*} [options] Override http request option.
643
467
  * @throws {RequiredError}
@@ -646,33 +470,22 @@ var EmailTrackingApiFactory = function (configuration, basePath, axios) {
646
470
  return localVarFp.listMessages(code, authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
647
471
  },
648
472
  /**
649
- * Returns a list of email threads, newest first. A thread groups an email with its replies; each item carries the newest message of the thread in latestMessage and the number of messages in messageCount. Threads without a message yet are not listed. Filter on the newest message with latestDirection (inbox tabs), latestDeliveryStatus or latestWorkflowStatus (use latestWorkflowStatus==$null for threads whose newest message has no workflow). Add expand=messages to get every message of each thread, without bodies. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
473
+ * Lists all email threads with optional filters **Required Permissions** \"notification-management.email-messages.view\"
650
474
  * @summary List email threads
651
475
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
652
476
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
653
477
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
654
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy</i>
478
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
655
479
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
656
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, createdAt, updatedAt</i>
480
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt</i>
657
481
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: messages<i>
658
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy</i>
482
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
659
483
  * @param {*} [options] Override http request option.
660
484
  * @throws {RequiredError}
661
485
  */
662
486
  listThreads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
663
487
  return localVarFp.listThreads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
664
488
  },
665
- /**
666
- * Removes the entity link from the email thread and every message in it, and marks the messages as unassigned. **Required Permissions** \"notification-management.email-messages.update\"
667
- * @summary Unassign an email thread from its entity
668
- * @param {string} code
669
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
670
- * @param {*} [options] Override http request option.
671
- * @throws {RequiredError}
672
- */
673
- unassignEntity: function (code, authorization, options) {
674
- return localVarFp.unassignEntity(code, authorization, options).then(function (request) { return request(axios, basePath); });
675
- },
676
489
  };
677
490
  };
678
491
  exports.EmailTrackingApiFactory = EmailTrackingApiFactory;
@@ -688,20 +501,7 @@ var EmailTrackingApi = /** @class */ (function (_super) {
688
501
  return _super !== null && _super.apply(this, arguments) || this;
689
502
  }
690
503
  /**
691
- * Links the email thread, and every message in it, to the given entity, identified by code or by number (the code wins when both are set). Replaces the current link. The entity must exist. Messages that arrive in the thread later are linked to the same entity. **Required Permissions** \"notification-management.email-messages.update\"
692
- * @summary Assign an email thread to an entity
693
- * @param {EmailTrackingApiAssignEntityRequest} requestParameters Request parameters.
694
- * @param {*} [options] Override http request option.
695
- * @throws {RequiredError}
696
- * @memberof EmailTrackingApi
697
- */
698
- EmailTrackingApi.prototype.assignEntity = function (requestParameters, options) {
699
- var _this = this;
700
- return (0, exports.EmailTrackingApiFp)(this.configuration).assignEntity(requestParameters.code, requestParameters.assignEmailThreadEntityBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
701
- };
702
- /**
703
- * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
704
- * @summary Close the email thread
504
+ * undefined **Required Permissions** \"notification-management.email-messages.update\"
705
505
  * @param {EmailTrackingApiCloseThreadRequest} requestParameters Request parameters.
706
506
  * @param {*} [options] Override http request option.
707
507
  * @throws {RequiredError}
@@ -712,8 +512,7 @@ var EmailTrackingApi = /** @class */ (function (_super) {
712
512
  return (0, exports.EmailTrackingApiFp)(this.configuration).closeThread(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
713
513
  };
714
514
  /**
715
- * Retrieves the details of the email thread with the given code. **Required Permissions** \"notification-management.email-messages.view\"
716
- * @summary Retrieve the email thread
515
+ * undefined **Required Permissions** \"notification-management.email-messages.view\"
717
516
  * @param {EmailTrackingApiGetThreadRequest} requestParameters Request parameters.
718
517
  * @param {*} [options] Override http request option.
719
518
  * @throws {RequiredError}
@@ -724,7 +523,7 @@ var EmailTrackingApi = /** @class */ (function (_super) {
724
523
  return (0, exports.EmailTrackingApiFp)(this.configuration).getThread(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
725
524
  };
726
525
  /**
727
- * Returns the email messages of the email thread with the given code. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
526
+ * Lists all email messages for a thread **Required Permissions** \"notification-management.email-messages.view\"
728
527
  * @summary List email messages
729
528
  * @param {EmailTrackingApiListMessagesRequest} requestParameters Request parameters.
730
529
  * @param {*} [options] Override http request option.
@@ -736,7 +535,7 @@ var EmailTrackingApi = /** @class */ (function (_super) {
736
535
  return (0, exports.EmailTrackingApiFp)(this.configuration).listMessages(requestParameters.code, requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
737
536
  };
738
537
  /**
739
- * Returns a list of email threads, newest first. A thread groups an email with its replies; each item carries the newest message of the thread in latestMessage and the number of messages in messageCount. Threads without a message yet are not listed. Filter on the newest message with latestDirection (inbox tabs), latestDeliveryStatus or latestWorkflowStatus (use latestWorkflowStatus==$null for threads whose newest message has no workflow). Add expand=messages to get every message of each thread, without bodies. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
538
+ * Lists all email threads with optional filters **Required Permissions** \"notification-management.email-messages.view\"
740
539
  * @summary List email threads
741
540
  * @param {EmailTrackingApiListThreadsRequest} requestParameters Request parameters.
742
541
  * @param {*} [options] Override http request option.
@@ -748,18 +547,6 @@ var EmailTrackingApi = /** @class */ (function (_super) {
748
547
  if (requestParameters === void 0) { requestParameters = {}; }
749
548
  return (0, exports.EmailTrackingApiFp)(this.configuration).listThreads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
750
549
  };
751
- /**
752
- * Removes the entity link from the email thread and every message in it, and marks the messages as unassigned. **Required Permissions** \"notification-management.email-messages.update\"
753
- * @summary Unassign an email thread from its entity
754
- * @param {EmailTrackingApiUnassignEntityRequest} requestParameters Request parameters.
755
- * @param {*} [options] Override http request option.
756
- * @throws {RequiredError}
757
- * @memberof EmailTrackingApi
758
- */
759
- EmailTrackingApi.prototype.unassignEntity = function (requestParameters, options) {
760
- var _this = this;
761
- return (0, exports.EmailTrackingApiFp)(this.configuration).unassignEntity(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
762
- };
763
550
  return EmailTrackingApi;
764
551
  }(base_1.BaseAPI));
765
552
  exports.EmailTrackingApi = EmailTrackingApi;