@emilgroup/notification-sdk 0.8.1-beta.59 → 0.8.1-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -23
- package/README.md +2 -2
- package/api/email-messages-api.ts +36 -56
- package/api/email-tracking-api.ts +48 -291
- package/api/email-verifications-api.ts +12 -24
- package/api/layouts-api.ts +46 -76
- package/api/notification-templates-api.ts +46 -76
- package/api/notifications-api.ts +6 -121
- package/api.ts +0 -6
- package/base.ts +41 -174
- package/configuration.ts +0 -20
- package/dist/api/email-messages-api.d.ts +28 -40
- package/dist/api/email-messages-api.js +40 -62
- package/dist/api/email-tracking-api.d.ts +40 -170
- package/dist/api/email-tracking-api.js +48 -261
- package/dist/api/email-verifications-api.d.ts +8 -16
- package/dist/api/email-verifications-api.js +16 -30
- package/dist/api/layouts-api.d.ts +36 -56
- package/dist/api/layouts-api.js +50 -81
- package/dist/api/notification-templates-api.d.ts +36 -56
- package/dist/api/notification-templates-api.js +50 -81
- package/dist/api/notifications-api.d.ts +4 -65
- package/dist/api/notifications-api.js +8 -111
- package/dist/api.d.ts +0 -3
- package/dist/api.js +0 -3
- package/dist/base.d.ts +0 -24
- package/dist/base.js +59 -178
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- package/dist/models/email-message-class.d.ts +7 -73
- package/dist/models/email-message-class.js +3 -22
- package/dist/models/email-thread-class.d.ts +5 -37
- package/dist/models/index.d.ts +0 -20
- package/dist/models/index.js +0 -20
- package/dist/models/send-notification-request-dto.d.ts +1 -10
- package/dist/models/send-notification-request-dto.js +1 -2
- package/models/email-message-class.ts +8 -78
- package/models/email-thread-class.ts +5 -37
- package/models/index.ts +0 -20
- package/models/send-notification-request-dto.ts +2 -9
- package/package.json +1 -1
- package/api/email-mailboxes-api.ts +0 -150
- package/api/email-subscriptions-api.ts +0 -781
- package/api/msgraph-webhooks-api.ts +0 -278
- package/dist/api/email-mailboxes-api.d.ts +0 -87
- package/dist/api/email-mailboxes-api.js +0 -221
- package/dist/api/email-subscriptions-api.d.ts +0 -432
- package/dist/api/email-subscriptions-api.js +0 -738
- package/dist/api/msgraph-webhooks-api.d.ts +0 -168
- package/dist/api/msgraph-webhooks-api.js +0 -305
- package/dist/models/assign-email-thread-entity-body-dto.d.ts +0 -43
- package/dist/models/assign-email-thread-entity-body-dto.js +0 -22
- package/dist/models/assign-email-thread-entity-response-class.d.ts +0 -25
- package/dist/models/assign-email-thread-entity-response-class.js +0 -15
- package/dist/models/catch-up-email-subscription-response-class.d.ts +0 -24
- package/dist/models/catch-up-email-subscription-response-class.js +0 -15
- package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +0 -24
- package/dist/models/catch-up-email-subscriptions-request-dto.js +0 -15
- package/dist/models/catch-up-email-subscriptions-response-class.d.ts +0 -30
- package/dist/models/catch-up-email-subscriptions-response-class.js +0 -15
- package/dist/models/email-mailbox-class.d.ts +0 -47
- package/dist/models/email-mailbox-class.js +0 -20
- package/dist/models/email-message-summary-class.d.ts +0 -98
- package/dist/models/email-message-summary-class.js +0 -33
- package/dist/models/email-subscription-class.d.ts +0 -110
- package/dist/models/email-subscription-class.js +0 -23
- package/dist/models/entity-ref-class.d.ts +0 -37
- package/dist/models/entity-ref-class.js +0 -22
- package/dist/models/get-email-subscription-response-class.d.ts +0 -25
- package/dist/models/get-email-subscription-response-class.js +0 -15
- package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
- package/dist/models/grpc-send-email-request-dto.js +0 -22
- package/dist/models/inline-attachment-dto.d.ts +0 -36
- package/dist/models/inline-attachment-dto.js +0 -15
- package/dist/models/list-email-mailboxes-response-class.d.ts +0 -43
- package/dist/models/list-email-mailboxes-response-class.js +0 -15
- package/dist/models/list-email-subscriptions-response-class.d.ts +0 -43
- package/dist/models/list-email-subscriptions-response-class.js +0 -15
- package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +0 -24
- package/dist/models/reconcile-email-subscriptions-request-dto.js +0 -15
- package/dist/models/reconcile-email-subscriptions-response-class.d.ts +0 -48
- package/dist/models/reconcile-email-subscriptions-response-class.js +0 -15
- package/dist/models/renew-email-subscription-response-class.d.ts +0 -25
- package/dist/models/renew-email-subscription-response-class.js +0 -15
- package/dist/models/send-email-request-dto.d.ts +0 -131
- package/dist/models/send-email-request-dto.js +0 -22
- package/dist/models/send-email-response-class.d.ts +0 -24
- package/dist/models/send-email-response-class.js +0 -15
- package/dist/models/unassign-email-thread-entity-response-class.d.ts +0 -25
- package/dist/models/unassign-email-thread-entity-response-class.js +0 -15
- package/models/assign-email-thread-entity-body-dto.ts +0 -52
- package/models/assign-email-thread-entity-response-class.ts +0 -31
- package/models/catch-up-email-subscription-response-class.ts +0 -30
- package/models/catch-up-email-subscriptions-request-dto.ts +0 -30
- package/models/catch-up-email-subscriptions-response-class.ts +0 -36
- package/models/email-mailbox-class.ts +0 -56
- package/models/email-message-summary-class.ts +0 -109
- package/models/email-subscription-class.ts +0 -119
- package/models/entity-ref-class.ts +0 -46
- package/models/get-email-subscription-response-class.ts +0 -31
- package/models/grpc-send-email-request-dto.ts +0 -144
- package/models/inline-attachment-dto.ts +0 -42
- package/models/list-email-mailboxes-response-class.ts +0 -49
- package/models/list-email-subscriptions-response-class.ts +0 -49
- package/models/reconcile-email-subscriptions-request-dto.ts +0 -30
- package/models/reconcile-email-subscriptions-response-class.ts +0 -54
- package/models/renew-email-subscription-response-class.ts +0 -31
- package/models/send-email-request-dto.ts +0 -138
- package/models/send-email-response-class.ts +0 -30
- 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
|
-
*
|
|
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
|
-
|
|
125
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
172
|
-
|
|
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
|
-
*
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode,
|
|
194
|
-
* @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,
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus,
|
|
128
|
+
* @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>
|
|
129
|
+
* @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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
|
|
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.<br/> <br/> <i>Allowed values: attachments<i>
|
|
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
|
-
|
|
239
|
-
|
|
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
|
-
*
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode,
|
|
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, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
262
195
|
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status,
|
|
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, entityType, entityCode, subject, status, createdAt, updatedAt</i>
|
|
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.<br/> <br/> <i>Allowed values: messages<i>
|
|
265
|
-
* @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,
|
|
198
|
+
* @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>
|
|
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
|
-
|
|
317
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode,
|
|
433
|
-
* @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,
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus,
|
|
301
|
+
* @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>
|
|
302
|
+
* @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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
|
|
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.<br/> <br/> <i>Allowed values: attachments<i>
|
|
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
|
-
*
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode,
|
|
318
|
+
* @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>
|
|
450
319
|
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status,
|
|
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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt</i>
|
|
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.<br/> <br/> <i>Allowed values: messages<i>
|
|
453
|
-
* @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,
|
|
322
|
+
* @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>
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode,
|
|
523
|
-
* @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,
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus,
|
|
365
|
+
* @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>
|
|
366
|
+
* @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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
|
|
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.<br/> <br/> <i>Allowed values: attachments<i>
|
|
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
|
-
*
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode,
|
|
381
|
+
* @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>
|
|
539
382
|
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status,
|
|
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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status, createdAt, updatedAt</i>
|
|
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.<br/> <br/> <i>Allowed values: messages<i>
|
|
542
|
-
* @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,
|
|
385
|
+
* @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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode,
|
|
458
|
+
* 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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode,
|
|
465
|
+
* 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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus,
|
|
472
|
+
* 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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode,
|
|
514
|
+
* 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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, subject, status,
|
|
528
|
+
* 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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode,
|
|
542
|
+
* 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>
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
}
|