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