@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
@@ -21,17 +21,11 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { AssignEmailThreadEntityBodyDto } from '../models';
25
- // @ts-ignore
26
- import { AssignEmailThreadEntityResponseClass } from '../models';
27
- // @ts-ignore
28
24
  import { GetEmailThreadResponseClass } from '../models';
29
25
  // @ts-ignore
30
26
  import { ListEmailMessagesResponseClass } from '../models';
31
27
  // @ts-ignore
32
28
  import { ListEmailThreadsResponseClass } from '../models';
33
- // @ts-ignore
34
- import { UnassignEmailThreadEntityResponseClass } from '../models';
35
29
  /**
36
30
  * EmailTrackingApi - axios parameter creator
37
31
  * @export
@@ -39,61 +33,7 @@ import { UnassignEmailThreadEntityResponseClass } from '../models';
39
33
  export const EmailTrackingApiAxiosParamCreator = function (configuration?: Configuration) {
40
34
  return {
41
35
  /**
42
- * 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\"
43
- * @summary Assign an email thread to an entity
44
- * @param {string} code
45
- * @param {AssignEmailThreadEntityBodyDto} assignEmailThreadEntityBodyDto
46
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
47
- * @param {*} [options] Override http request option.
48
- * @throws {RequiredError}
49
- */
50
- assignEntity: async (code: string, assignEmailThreadEntityBodyDto: AssignEmailThreadEntityBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
51
- // verify required parameter 'code' is not null or undefined
52
- assertParamExists('assignEntity', 'code', code)
53
- // verify required parameter 'assignEmailThreadEntityBodyDto' is not null or undefined
54
- assertParamExists('assignEntity', 'assignEmailThreadEntityBodyDto', assignEmailThreadEntityBodyDto)
55
- const localVarPath = `/notificationservice/v1/email-threads/{code}/entity`
56
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
57
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
- let baseOptions;
60
- let baseAccessToken;
61
- if (configuration) {
62
- baseOptions = configuration.baseOptions;
63
- baseAccessToken = configuration.accessToken;
64
- }
65
-
66
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
67
- const localVarHeaderParameter = {} as any;
68
- const localVarQueryParameter = {} as any;
69
-
70
- // authentication bearer required
71
- // http bearer authentication required
72
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
-
74
- // Only Authorization falls back to the configured token; an empty value is never sent.
75
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
76
- if (authorizationValue) {
77
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
78
- }
79
-
80
-
81
-
82
- localVarHeaderParameter['Content-Type'] = 'application/json';
83
-
84
- setSearchParams(localVarUrlObj, localVarQueryParameter);
85
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
86
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
87
- localVarRequestOptions.data = serializeDataIfNeeded(assignEmailThreadEntityBodyDto, localVarRequestOptions, configuration)
88
-
89
- return {
90
- url: toPathString(localVarUrlObj),
91
- options: localVarRequestOptions,
92
- };
93
- },
94
- /**
95
- * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
96
- * @summary Close the email thread
36
+ * undefined **Required Permissions** \"notification-management.email-messages.update\"
97
37
  * @param {string} code
98
38
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
39
  * @param {*} [options] Override http request option.
@@ -121,10 +61,8 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
121
61
  // http bearer authentication required
122
62
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
63
 
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
126
- if (authorizationValue) {
127
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
64
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
65
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
128
66
  }
129
67
 
130
68
 
@@ -139,8 +77,7 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
139
77
  };
140
78
  },
141
79
  /**
142
- * Retrieves the details of the email thread with the given code. **Required Permissions** \"notification-management.email-messages.view\"
143
- * @summary Retrieve the email thread
80
+ * undefined **Required Permissions** \"notification-management.email-messages.view\"
144
81
  * @param {string} code
145
82
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
83
  * @param {*} [options] Override http request option.
@@ -168,10 +105,8 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
168
105
  // http bearer authentication required
169
106
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
170
107
 
171
- // Only Authorization falls back to the configured token; an empty value is never sent.
172
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
173
- if (authorizationValue) {
174
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
108
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
109
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
175
110
  }
176
111
 
177
112
 
@@ -186,13 +121,13 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
186
121
  };
187
122
  },
188
123
  /**
189
- * 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\"
124
+ * Lists all email messages for a thread **Required Permissions** \"notification-management.email-messages.view\"
190
125
  * @summary List email messages
191
126
  * @param {string} code
192
127
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
194
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
195
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
128
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
129
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
130
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
196
131
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: attachments&lt;i&gt;
197
132
  * @param {*} [options] Override http request option.
198
133
  * @throws {RequiredError}
@@ -235,10 +170,8 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
235
170
  localVarQueryParameter['expand'] = expand;
236
171
  }
237
172
 
238
- // Only Authorization falls back to the configured token; an empty value is never sent.
239
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
240
- if (authorizationValue) {
241
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
173
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
174
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
175
  }
243
176
 
244
177
 
@@ -253,16 +186,16 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
253
186
  };
254
187
  },
255
188
  /**
256
- * 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\"
189
+ * Lists all email threads with optional filters **Required Permissions** \"notification-management.email-messages.view\"
257
190
  * @summary List email threads
258
191
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
259
192
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
260
193
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
261
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
194
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
262
195
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
263
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt&lt;/i&gt;
264
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: messages&lt;i&gt;
265
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
198
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
266
199
  * @param {*} [options] Override http request option.
267
200
  * @throws {RequiredError}
268
201
  */
@@ -313,57 +246,8 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
313
246
  localVarQueryParameter['filters'] = filters;
314
247
  }
315
248
 
316
- // Only Authorization falls back to the configured token; an empty value is never sent.
317
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
318
- if (authorizationValue) {
319
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
320
- }
321
-
322
-
323
-
324
- setSearchParams(localVarUrlObj, localVarQueryParameter);
325
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
327
-
328
- return {
329
- url: toPathString(localVarUrlObj),
330
- options: localVarRequestOptions,
331
- };
332
- },
333
- /**
334
- * 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\"
335
- * @summary Unassign an email thread from its entity
336
- * @param {string} code
337
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
338
- * @param {*} [options] Override http request option.
339
- * @throws {RequiredError}
340
- */
341
- unassignEntity: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
342
- // verify required parameter 'code' is not null or undefined
343
- assertParamExists('unassignEntity', 'code', code)
344
- const localVarPath = `/notificationservice/v1/email-threads/{code}/entity`
345
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
346
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
347
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
348
- let baseOptions;
349
- let baseAccessToken;
350
- if (configuration) {
351
- baseOptions = configuration.baseOptions;
352
- baseAccessToken = configuration.accessToken;
353
- }
354
-
355
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
356
- const localVarHeaderParameter = {} as any;
357
- const localVarQueryParameter = {} as any;
358
-
359
- // authentication bearer required
360
- // http bearer authentication required
361
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
362
-
363
- // Only Authorization falls back to the configured token; an empty value is never sent.
364
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
365
- if (authorizationValue) {
366
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
249
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
250
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
367
251
  }
368
252
 
369
253
 
@@ -388,21 +272,7 @@ export const EmailTrackingApiFp = function(configuration?: Configuration) {
388
272
  const localVarAxiosParamCreator = EmailTrackingApiAxiosParamCreator(configuration)
389
273
  return {
390
274
  /**
391
- * 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\"
392
- * @summary Assign an email thread to an entity
393
- * @param {string} code
394
- * @param {AssignEmailThreadEntityBodyDto} assignEmailThreadEntityBodyDto
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
- async assignEntity(code: string, assignEmailThreadEntityBodyDto: AssignEmailThreadEntityBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignEmailThreadEntityResponseClass>> {
400
- const localVarAxiosArgs = await localVarAxiosParamCreator.assignEntity(code, assignEmailThreadEntityBodyDto, authorization, options);
401
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
402
- },
403
- /**
404
- * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
405
- * @summary Close the email thread
275
+ * undefined **Required Permissions** \"notification-management.email-messages.update\"
406
276
  * @param {string} code
407
277
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
408
278
  * @param {*} [options] Override http request option.
@@ -413,8 +283,7 @@ export const EmailTrackingApiFp = function(configuration?: Configuration) {
413
283
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
414
284
  },
415
285
  /**
416
- * Retrieves the details of the email thread with the given code. **Required Permissions** \"notification-management.email-messages.view\"
417
- * @summary Retrieve the email thread
286
+ * undefined **Required Permissions** \"notification-management.email-messages.view\"
418
287
  * @param {string} code
419
288
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
420
289
  * @param {*} [options] Override http request option.
@@ -425,13 +294,13 @@ export const EmailTrackingApiFp = function(configuration?: Configuration) {
425
294
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
426
295
  },
427
296
  /**
428
- * 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\"
297
+ * Lists all email messages for a thread **Required Permissions** \"notification-management.email-messages.view\"
429
298
  * @summary List email messages
430
299
  * @param {string} code
431
300
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
432
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
433
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
434
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
301
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
302
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
303
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
435
304
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: attachments&lt;i&gt;
436
305
  * @param {*} [options] Override http request option.
437
306
  * @throws {RequiredError}
@@ -441,16 +310,16 @@ export const EmailTrackingApiFp = function(configuration?: Configuration) {
441
310
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
442
311
  },
443
312
  /**
444
- * 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\"
313
+ * Lists all email threads with optional filters **Required Permissions** \"notification-management.email-messages.view\"
445
314
  * @summary List email threads
446
315
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
447
316
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
448
317
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
449
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
318
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
450
319
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
451
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, createdAt, updatedAt&lt;/i&gt;
320
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt&lt;/i&gt;
452
321
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: messages&lt;i&gt;
453
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
322
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
454
323
  * @param {*} [options] Override http request option.
455
324
  * @throws {RequiredError}
456
325
  */
@@ -458,18 +327,6 @@ export const EmailTrackingApiFp = function(configuration?: Configuration) {
458
327
  const localVarAxiosArgs = await localVarAxiosParamCreator.listThreads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
459
328
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
460
329
  },
461
- /**
462
- * 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\"
463
- * @summary Unassign an email thread from its entity
464
- * @param {string} code
465
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
466
- * @param {*} [options] Override http request option.
467
- * @throws {RequiredError}
468
- */
469
- async unassignEntity(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnassignEmailThreadEntityResponseClass>> {
470
- const localVarAxiosArgs = await localVarAxiosParamCreator.unassignEntity(code, authorization, options);
471
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
472
- },
473
330
  }
474
331
  };
475
332
 
@@ -481,20 +338,7 @@ export const EmailTrackingApiFactory = function (configuration?: Configuration,
481
338
  const localVarFp = EmailTrackingApiFp(configuration)
482
339
  return {
483
340
  /**
484
- * 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\"
485
- * @summary Assign an email thread to an entity
486
- * @param {string} code
487
- * @param {AssignEmailThreadEntityBodyDto} assignEmailThreadEntityBodyDto
488
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
489
- * @param {*} [options] Override http request option.
490
- * @throws {RequiredError}
491
- */
492
- assignEntity(code: string, assignEmailThreadEntityBodyDto: AssignEmailThreadEntityBodyDto, authorization?: string, options?: any): AxiosPromise<AssignEmailThreadEntityResponseClass> {
493
- return localVarFp.assignEntity(code, assignEmailThreadEntityBodyDto, authorization, options).then((request) => request(axios, basePath));
494
- },
495
- /**
496
- * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
497
- * @summary Close the email thread
341
+ * undefined **Required Permissions** \"notification-management.email-messages.update\"
498
342
  * @param {string} code
499
343
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
500
344
  * @param {*} [options] Override http request option.
@@ -504,8 +348,7 @@ export const EmailTrackingApiFactory = function (configuration?: Configuration,
504
348
  return localVarFp.closeThread(code, authorization, options).then((request) => request(axios, basePath));
505
349
  },
506
350
  /**
507
- * Retrieves the details of the email thread with the given code. **Required Permissions** \"notification-management.email-messages.view\"
508
- * @summary Retrieve the email thread
351
+ * undefined **Required Permissions** \"notification-management.email-messages.view\"
509
352
  * @param {string} code
510
353
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
511
354
  * @param {*} [options] Override http request option.
@@ -515,13 +358,13 @@ export const EmailTrackingApiFactory = function (configuration?: Configuration,
515
358
  return localVarFp.getThread(code, authorization, options).then((request) => request(axios, basePath));
516
359
  },
517
360
  /**
518
- * 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\"
361
+ * Lists all email messages for a thread **Required Permissions** \"notification-management.email-messages.view\"
519
362
  * @summary List email messages
520
363
  * @param {string} code
521
364
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
522
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
523
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
524
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
365
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
366
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
367
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
525
368
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: attachments&lt;i&gt;
526
369
  * @param {*} [options] Override http request option.
527
370
  * @throws {RequiredError}
@@ -530,64 +373,25 @@ export const EmailTrackingApiFactory = function (configuration?: Configuration,
530
373
  return localVarFp.listMessages(code, authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
531
374
  },
532
375
  /**
533
- * 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\"
376
+ * Lists all email threads with optional filters **Required Permissions** \"notification-management.email-messages.view\"
534
377
  * @summary List email threads
535
378
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
536
379
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
537
380
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
538
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
381
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
539
382
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
540
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, createdAt, updatedAt&lt;/i&gt;
383
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt&lt;/i&gt;
541
384
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: messages&lt;i&gt;
542
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
385
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
543
386
  * @param {*} [options] Override http request option.
544
387
  * @throws {RequiredError}
545
388
  */
546
389
  listThreads(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListEmailThreadsResponseClass> {
547
390
  return localVarFp.listThreads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
548
391
  },
549
- /**
550
- * 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\"
551
- * @summary Unassign an email thread from its entity
552
- * @param {string} code
553
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
554
- * @param {*} [options] Override http request option.
555
- * @throws {RequiredError}
556
- */
557
- unassignEntity(code: string, authorization?: string, options?: any): AxiosPromise<UnassignEmailThreadEntityResponseClass> {
558
- return localVarFp.unassignEntity(code, authorization, options).then((request) => request(axios, basePath));
559
- },
560
392
  };
561
393
  };
562
394
 
563
- /**
564
- * Request parameters for assignEntity operation in EmailTrackingApi.
565
- * @export
566
- * @interface EmailTrackingApiAssignEntityRequest
567
- */
568
- export interface EmailTrackingApiAssignEntityRequest {
569
- /**
570
- *
571
- * @type {string}
572
- * @memberof EmailTrackingApiAssignEntity
573
- */
574
- readonly code: string
575
-
576
- /**
577
- *
578
- * @type {AssignEmailThreadEntityBodyDto}
579
- * @memberof EmailTrackingApiAssignEntity
580
- */
581
- readonly assignEmailThreadEntityBodyDto: AssignEmailThreadEntityBodyDto
582
-
583
- /**
584
- * Bearer Token: provided by the login endpoint under the name accessToken.
585
- * @type {string}
586
- * @memberof EmailTrackingApiAssignEntity
587
- */
588
- readonly authorization?: string
589
- }
590
-
591
395
  /**
592
396
  * Request parameters for closeThread operation in EmailTrackingApi.
593
397
  * @export
@@ -651,21 +455,21 @@ export interface EmailTrackingApiListMessagesRequest {
651
455
  readonly authorization?: string
652
456
 
653
457
  /**
654
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
458
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
655
459
  * @type {string}
656
460
  * @memberof EmailTrackingApiListMessages
657
461
  */
658
462
  readonly filter?: string
659
463
 
660
464
  /**
661
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
465
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, direction, deliveryStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
662
466
  * @type {string}
663
467
  * @memberof EmailTrackingApiListMessages
664
468
  */
665
469
  readonly filters?: string
666
470
 
667
471
  /**
668
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
472
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
669
473
  * @type {string}
670
474
  * @memberof EmailTrackingApiListMessages
671
475
  */
@@ -707,7 +511,7 @@ export interface EmailTrackingApiListThreadsRequest {
707
511
  readonly pageToken?: string
708
512
 
709
513
  /**
710
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
514
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
711
515
  * @type {string}
712
516
  * @memberof EmailTrackingApiListThreads
713
517
  */
@@ -721,7 +525,7 @@ export interface EmailTrackingApiListThreadsRequest {
721
525
  readonly search?: string
722
526
 
723
527
  /**
724
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, createdAt, updatedAt&lt;/i&gt;
528
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt&lt;/i&gt;
725
529
  * @type {string}
726
530
  * @memberof EmailTrackingApiListThreads
727
531
  */
@@ -735,34 +539,13 @@ export interface EmailTrackingApiListThreadsRequest {
735
539
  readonly expand?: string
736
540
 
737
541
  /**
738
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, entityNumber, subject, status, mailbox, messageCount, lastMessageAt, latestDirection, latestDeliveryStatus, latestWorkflowStatus, latestFromAddress, latestToAddresses, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
542
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
739
543
  * @type {string}
740
544
  * @memberof EmailTrackingApiListThreads
741
545
  */
742
546
  readonly filters?: string
743
547
  }
744
548
 
745
- /**
746
- * Request parameters for unassignEntity operation in EmailTrackingApi.
747
- * @export
748
- * @interface EmailTrackingApiUnassignEntityRequest
749
- */
750
- export interface EmailTrackingApiUnassignEntityRequest {
751
- /**
752
- *
753
- * @type {string}
754
- * @memberof EmailTrackingApiUnassignEntity
755
- */
756
- readonly code: string
757
-
758
- /**
759
- * Bearer Token: provided by the login endpoint under the name accessToken.
760
- * @type {string}
761
- * @memberof EmailTrackingApiUnassignEntity
762
- */
763
- readonly authorization?: string
764
- }
765
-
766
549
  /**
767
550
  * EmailTrackingApi - object-oriented interface
768
551
  * @export
@@ -771,20 +554,7 @@ export interface EmailTrackingApiUnassignEntityRequest {
771
554
  */
772
555
  export class EmailTrackingApi extends BaseAPI {
773
556
  /**
774
- * 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\"
775
- * @summary Assign an email thread to an entity
776
- * @param {EmailTrackingApiAssignEntityRequest} requestParameters Request parameters.
777
- * @param {*} [options] Override http request option.
778
- * @throws {RequiredError}
779
- * @memberof EmailTrackingApi
780
- */
781
- public assignEntity(requestParameters: EmailTrackingApiAssignEntityRequest, options?: AxiosRequestConfig) {
782
- return EmailTrackingApiFp(this.configuration).assignEntity(requestParameters.code, requestParameters.assignEmailThreadEntityBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
783
- }
784
-
785
- /**
786
- * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
787
- * @summary Close the email thread
557
+ * undefined **Required Permissions** \"notification-management.email-messages.update\"
788
558
  * @param {EmailTrackingApiCloseThreadRequest} requestParameters Request parameters.
789
559
  * @param {*} [options] Override http request option.
790
560
  * @throws {RequiredError}
@@ -795,8 +565,7 @@ export class EmailTrackingApi extends BaseAPI {
795
565
  }
796
566
 
797
567
  /**
798
- * Retrieves the details of the email thread with the given code. **Required Permissions** \"notification-management.email-messages.view\"
799
- * @summary Retrieve the email thread
568
+ * undefined **Required Permissions** \"notification-management.email-messages.view\"
800
569
  * @param {EmailTrackingApiGetThreadRequest} requestParameters Request parameters.
801
570
  * @param {*} [options] Override http request option.
802
571
  * @throws {RequiredError}
@@ -807,7 +576,7 @@ export class EmailTrackingApi extends BaseAPI {
807
576
  }
808
577
 
809
578
  /**
810
- * 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\"
579
+ * Lists all email messages for a thread **Required Permissions** \"notification-management.email-messages.view\"
811
580
  * @summary List email messages
812
581
  * @param {EmailTrackingApiListMessagesRequest} requestParameters Request parameters.
813
582
  * @param {*} [options] Override http request option.
@@ -819,7 +588,7 @@ export class EmailTrackingApi extends BaseAPI {
819
588
  }
820
589
 
821
590
  /**
822
- * 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\"
591
+ * Lists all email threads with optional filters **Required Permissions** \"notification-management.email-messages.view\"
823
592
  * @summary List email threads
824
593
  * @param {EmailTrackingApiListThreadsRequest} requestParameters Request parameters.
825
594
  * @param {*} [options] Override http request option.
@@ -829,16 +598,4 @@ export class EmailTrackingApi extends BaseAPI {
829
598
  public listThreads(requestParameters: EmailTrackingApiListThreadsRequest = {}, options?: AxiosRequestConfig) {
830
599
  return EmailTrackingApiFp(this.configuration).listThreads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
831
600
  }
832
-
833
- /**
834
- * 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\"
835
- * @summary Unassign an email thread from its entity
836
- * @param {EmailTrackingApiUnassignEntityRequest} requestParameters Request parameters.
837
- * @param {*} [options] Override http request option.
838
- * @throws {RequiredError}
839
- * @memberof EmailTrackingApi
840
- */
841
- public unassignEntity(requestParameters: EmailTrackingApiUnassignEntityRequest, options?: AxiosRequestConfig) {
842
- return EmailTrackingApiFp(this.configuration).unassignEntity(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
843
- }
844
601
  }