@emilgroup/notification-sdk 0.8.1-beta.7 → 0.8.1-beta.71
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 +25 -0
- package/README.md +2 -2
- package/api/email-mailboxes-api.ts +153 -0
- package/api/email-messages-api.ts +197 -40
- package/api/email-subscriptions-api.ts +799 -0
- package/api/email-tracking-api.ts +313 -52
- package/api/email-verifications-api.ts +32 -14
- package/api/health-api.ts +1 -1
- package/api/layouts-api.ts +96 -51
- package/api/msgraph-webhooks-api.ts +278 -0
- package/api/notification-templates-api.ts +96 -51
- package/api/notifications-api.ts +128 -7
- package/api.ts +6 -0
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/email-mailboxes-api.d.ts +87 -0
- package/dist/api/email-mailboxes-api.js +225 -0
- package/dist/api/email-messages-api.d.ts +110 -32
- package/dist/api/email-messages-api.js +199 -56
- package/dist/api/email-subscriptions-api.d.ts +432 -0
- package/dist/api/email-subscriptions-api.js +761 -0
- package/dist/api/email-tracking-api.d.ts +174 -44
- package/dist/api/email-tracking-api.js +299 -64
- package/dist/api/email-verifications-api.d.ts +18 -10
- package/dist/api/email-verifications-api.js +46 -24
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/layouts-api.d.ts +61 -41
- package/dist/api/layouts-api.js +119 -70
- package/dist/api/msgraph-webhooks-api.d.ts +168 -0
- package/dist/api/msgraph-webhooks-api.js +305 -0
- package/dist/api/notification-templates-api.d.ts +61 -41
- package/dist/api/notification-templates-api.js +119 -70
- package/dist/api/notifications-api.d.ts +66 -5
- package/dist/api/notifications-api.js +123 -12
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/assign-email-thread-entity-body-dto.d.ts +43 -0
- package/dist/models/assign-email-thread-entity-body-dto.js +22 -0
- package/dist/models/assign-email-thread-entity-response-class.d.ts +25 -0
- package/dist/models/assign-email-thread-entity-response-class.js +15 -0
- package/dist/models/catch-up-email-subscription-response-class.d.ts +24 -0
- package/dist/models/catch-up-email-subscription-response-class.js +15 -0
- package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +24 -0
- package/dist/models/catch-up-email-subscriptions-request-dto.js +15 -0
- package/dist/models/catch-up-email-subscriptions-response-class.d.ts +30 -0
- package/dist/models/catch-up-email-subscriptions-response-class.js +15 -0
- package/dist/models/email-mailbox-class.d.ts +47 -0
- package/dist/models/email-mailbox-class.js +20 -0
- package/dist/models/email-message-class.d.ts +102 -7
- package/dist/models/email-message-class.js +25 -2
- package/dist/models/email-message-summary-class.d.ts +121 -0
- package/dist/models/email-message-summary-class.js +37 -0
- package/dist/models/email-subscription-class.d.ts +110 -0
- package/dist/models/email-subscription-class.js +23 -0
- package/dist/models/email-thread-class.d.ts +37 -5
- package/dist/models/entity-ref-class.d.ts +37 -0
- package/dist/models/entity-ref-class.js +22 -0
- package/dist/models/get-email-subscription-response-class.d.ts +25 -0
- package/dist/models/get-email-subscription-response-class.js +15 -0
- package/dist/models/grpc-send-email-request-dto.d.ts +137 -0
- package/dist/models/grpc-send-email-request-dto.js +22 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/dist/models/inline-attachment-dto.d.ts +36 -0
- package/dist/models/inline-attachment-dto.js +15 -0
- package/dist/models/list-email-mailboxes-response-class.d.ts +43 -0
- package/dist/models/list-email-mailboxes-response-class.js +15 -0
- package/dist/models/list-email-subscriptions-response-class.d.ts +43 -0
- package/dist/models/list-email-subscriptions-response-class.js +15 -0
- package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +24 -0
- package/dist/models/reconcile-email-subscriptions-request-dto.js +15 -0
- package/dist/models/reconcile-email-subscriptions-response-class.d.ts +48 -0
- package/dist/models/reconcile-email-subscriptions-response-class.js +15 -0
- package/dist/models/renew-email-subscription-response-class.d.ts +25 -0
- package/dist/models/renew-email-subscription-response-class.js +15 -0
- package/dist/models/resend-email-message-body-dto.d.ts +30 -0
- package/dist/models/resend-email-message-body-dto.js +15 -0
- package/dist/models/resend-email-message-response-class.d.ts +25 -0
- package/dist/models/resend-email-message-response-class.js +15 -0
- package/dist/models/send-email-request-dto.d.ts +131 -0
- package/dist/models/send-email-request-dto.js +22 -0
- package/dist/models/send-email-response-class.d.ts +24 -0
- package/dist/models/send-email-response-class.js +15 -0
- package/dist/models/send-notification-request-dto.d.ts +10 -1
- package/dist/models/send-notification-request-dto.js +2 -1
- package/dist/models/unassign-email-thread-entity-response-class.d.ts +25 -0
- package/dist/models/unassign-email-thread-entity-response-class.js +15 -0
- package/models/assign-email-thread-entity-body-dto.ts +52 -0
- package/models/assign-email-thread-entity-response-class.ts +31 -0
- package/models/catch-up-email-subscription-response-class.ts +30 -0
- package/models/catch-up-email-subscriptions-request-dto.ts +30 -0
- package/models/catch-up-email-subscriptions-response-class.ts +36 -0
- package/models/email-mailbox-class.ts +56 -0
- package/models/email-message-class.ts +108 -8
- package/models/email-message-summary-class.ts +133 -0
- package/models/email-subscription-class.ts +119 -0
- package/models/email-thread-class.ts +37 -5
- package/models/entity-ref-class.ts +46 -0
- package/models/get-email-subscription-response-class.ts +31 -0
- package/models/grpc-send-email-request-dto.ts +144 -0
- package/models/index.ts +22 -0
- package/models/inline-attachment-dto.ts +42 -0
- package/models/list-email-mailboxes-response-class.ts +49 -0
- package/models/list-email-subscriptions-response-class.ts +49 -0
- package/models/reconcile-email-subscriptions-request-dto.ts +30 -0
- package/models/reconcile-email-subscriptions-response-class.ts +54 -0
- package/models/renew-email-subscription-response-class.ts +31 -0
- package/models/resend-email-message-body-dto.ts +36 -0
- package/models/resend-email-message-response-class.ts +31 -0
- package/models/send-email-request-dto.ts +138 -0
- package/models/send-email-response-class.ts +30 -0
- package/models/send-notification-request-dto.ts +9 -2
- package/models/unassign-email-thread-entity-response-class.ts +31 -0
- package/package.json +2 -2
|
@@ -93,7 +93,8 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Returns a download URL for the given attachment of the email message. **Required Permissions** \"notification-management.email-messages.view\"
|
|
97
|
+
* @summary Download the email message attachment
|
|
97
98
|
* @param {string} code
|
|
98
99
|
* @param {number} attachmentId
|
|
99
100
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -103,9 +104,10 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
103
104
|
downloadAttachment: function (code, attachmentId, authorization, options) {
|
|
104
105
|
if (options === void 0) { options = {}; }
|
|
105
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
108
|
+
var _a;
|
|
109
|
+
return __generator(this, function (_b) {
|
|
110
|
+
switch (_b.label) {
|
|
109
111
|
case 0:
|
|
110
112
|
// verify required parameter 'code' is not null or undefined
|
|
111
113
|
(0, common_1.assertParamExists)('downloadAttachment', 'code', code);
|
|
@@ -124,13 +126,19 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
124
126
|
localVarQueryParameter = {};
|
|
125
127
|
// authentication bearer required
|
|
126
128
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
129
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
130
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
131
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
132
|
+
];
|
|
128
133
|
case 1:
|
|
129
134
|
// authentication bearer required
|
|
130
135
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
136
|
+
_b.sent();
|
|
137
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
138
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
139
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
140
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
141
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
142
|
}
|
|
135
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
144
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -144,7 +152,8 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
144
152
|
});
|
|
145
153
|
},
|
|
146
154
|
/**
|
|
147
|
-
*
|
|
155
|
+
* Retrieves the details of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
|
|
156
|
+
* @summary Retrieve the email message
|
|
148
157
|
* @param {string} code
|
|
149
158
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
150
159
|
* @param {*} [options] Override http request option.
|
|
@@ -153,9 +162,10 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
153
162
|
getMessage: function (code, authorization, options) {
|
|
154
163
|
if (options === void 0) { options = {}; }
|
|
155
164
|
return __awaiter(_this, void 0, void 0, function () {
|
|
156
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
157
|
-
|
|
158
|
-
|
|
165
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
166
|
+
var _a;
|
|
167
|
+
return __generator(this, function (_b) {
|
|
168
|
+
switch (_b.label) {
|
|
159
169
|
case 0:
|
|
160
170
|
// verify required parameter 'code' is not null or undefined
|
|
161
171
|
(0, common_1.assertParamExists)('getMessage', 'code', code);
|
|
@@ -171,13 +181,19 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
171
181
|
localVarQueryParameter = {};
|
|
172
182
|
// authentication bearer required
|
|
173
183
|
// http bearer authentication required
|
|
174
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
184
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
185
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
186
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
187
|
+
];
|
|
175
188
|
case 1:
|
|
176
189
|
// authentication bearer required
|
|
177
190
|
// http bearer authentication required
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
191
|
+
_b.sent();
|
|
192
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
193
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
194
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
195
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
196
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
181
197
|
}
|
|
182
198
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
183
199
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -191,7 +207,8 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
191
207
|
});
|
|
192
208
|
},
|
|
193
209
|
/**
|
|
194
|
-
*
|
|
210
|
+
* Returns the attachments of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
|
|
211
|
+
* @summary List the email message attachments
|
|
195
212
|
* @param {string} code
|
|
196
213
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
214
|
* @param {*} [options] Override http request option.
|
|
@@ -200,9 +217,10 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
200
217
|
listAttachments: function (code, authorization, options) {
|
|
201
218
|
if (options === void 0) { options = {}; }
|
|
202
219
|
return __awaiter(_this, void 0, void 0, function () {
|
|
203
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
-
|
|
205
|
-
|
|
220
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
221
|
+
var _a;
|
|
222
|
+
return __generator(this, function (_b) {
|
|
223
|
+
switch (_b.label) {
|
|
206
224
|
case 0:
|
|
207
225
|
// verify required parameter 'code' is not null or undefined
|
|
208
226
|
(0, common_1.assertParamExists)('listAttachments', 'code', code);
|
|
@@ -218,13 +236,19 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
218
236
|
localVarQueryParameter = {};
|
|
219
237
|
// authentication bearer required
|
|
220
238
|
// http bearer authentication required
|
|
221
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
239
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
240
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
241
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
242
|
+
];
|
|
222
243
|
case 1:
|
|
223
244
|
// authentication bearer required
|
|
224
245
|
// http bearer authentication required
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
246
|
+
_b.sent();
|
|
247
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
248
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
249
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
250
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
251
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
228
252
|
}
|
|
229
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
254
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -238,25 +262,26 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
238
262
|
});
|
|
239
263
|
},
|
|
240
264
|
/**
|
|
241
|
-
*
|
|
265
|
+
* Returns a list of sent and received email messages. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
|
|
242
266
|
* @summary List email messages
|
|
243
267
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
268
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
245
269
|
* @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.
|
|
246
|
-
* @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>
|
|
270
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
247
271
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
248
|
-
* @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>
|
|
272
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
|
|
249
273
|
* @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>
|
|
250
|
-
* @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>
|
|
274
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
251
275
|
* @param {*} [options] Override http request option.
|
|
252
276
|
* @throws {RequiredError}
|
|
253
277
|
*/
|
|
254
278
|
listEmailMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
255
279
|
if (options === void 0) { options = {}; }
|
|
256
280
|
return __awaiter(_this, void 0, void 0, function () {
|
|
257
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
258
|
-
|
|
259
|
-
|
|
281
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
282
|
+
var _a;
|
|
283
|
+
return __generator(this, function (_b) {
|
|
284
|
+
switch (_b.label) {
|
|
260
285
|
case 0:
|
|
261
286
|
localVarPath = "/notificationservice/v1/email-messages";
|
|
262
287
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -273,7 +298,7 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
273
298
|
case 1:
|
|
274
299
|
// authentication bearer required
|
|
275
300
|
// http bearer authentication required
|
|
276
|
-
|
|
301
|
+
_b.sent();
|
|
277
302
|
if (pageSize !== undefined) {
|
|
278
303
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
279
304
|
}
|
|
@@ -295,8 +320,11 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
295
320
|
if (filters !== undefined) {
|
|
296
321
|
localVarQueryParameter['filters'] = filters;
|
|
297
322
|
}
|
|
298
|
-
|
|
299
|
-
|
|
323
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
324
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
325
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
326
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
327
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
300
328
|
}
|
|
301
329
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
302
330
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -309,6 +337,66 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
309
337
|
});
|
|
310
338
|
});
|
|
311
339
|
},
|
|
340
|
+
/**
|
|
341
|
+
* Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to every recipient that bounced, not to the recipients that received it. newAddress replaces one bounced recipient; pass recipient to name it when more than one bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
|
|
342
|
+
* @summary Resend the email message
|
|
343
|
+
* @param {string} code
|
|
344
|
+
* @param {ResendEmailMessageBodyDto} resendEmailMessageBodyDto
|
|
345
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
346
|
+
* @param {*} [options] Override http request option.
|
|
347
|
+
* @throws {RequiredError}
|
|
348
|
+
*/
|
|
349
|
+
resendMessage: function (code, resendEmailMessageBodyDto, authorization, options) {
|
|
350
|
+
if (options === void 0) { options = {}; }
|
|
351
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
352
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
353
|
+
var _a;
|
|
354
|
+
return __generator(this, function (_b) {
|
|
355
|
+
switch (_b.label) {
|
|
356
|
+
case 0:
|
|
357
|
+
// verify required parameter 'code' is not null or undefined
|
|
358
|
+
(0, common_1.assertParamExists)('resendMessage', 'code', code);
|
|
359
|
+
// verify required parameter 'resendEmailMessageBodyDto' is not null or undefined
|
|
360
|
+
(0, common_1.assertParamExists)('resendMessage', 'resendEmailMessageBodyDto', resendEmailMessageBodyDto);
|
|
361
|
+
localVarPath = "/notificationservice/v1/email-messages/{code}/resend"
|
|
362
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
363
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
364
|
+
if (configuration) {
|
|
365
|
+
baseOptions = configuration.baseOptions;
|
|
366
|
+
baseAccessToken = configuration.accessToken;
|
|
367
|
+
}
|
|
368
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
369
|
+
localVarHeaderParameter = {};
|
|
370
|
+
localVarQueryParameter = {};
|
|
371
|
+
// authentication bearer required
|
|
372
|
+
// http bearer authentication required
|
|
373
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
374
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
375
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
376
|
+
];
|
|
377
|
+
case 1:
|
|
378
|
+
// authentication bearer required
|
|
379
|
+
// http bearer authentication required
|
|
380
|
+
_b.sent();
|
|
381
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
382
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
383
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
384
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
385
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
386
|
+
}
|
|
387
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
388
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
389
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
390
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
391
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resendEmailMessageBodyDto, localVarRequestOptions, configuration);
|
|
392
|
+
return [2 /*return*/, {
|
|
393
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
394
|
+
options: localVarRequestOptions,
|
|
395
|
+
}];
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
},
|
|
312
400
|
};
|
|
313
401
|
};
|
|
314
402
|
exports.EmailMessagesApiAxiosParamCreator = EmailMessagesApiAxiosParamCreator;
|
|
@@ -320,7 +408,8 @@ var EmailMessagesApiFp = function (configuration) {
|
|
|
320
408
|
var localVarAxiosParamCreator = (0, exports.EmailMessagesApiAxiosParamCreator)(configuration);
|
|
321
409
|
return {
|
|
322
410
|
/**
|
|
323
|
-
*
|
|
411
|
+
* Returns a download URL for the given attachment of the email message. **Required Permissions** \"notification-management.email-messages.view\"
|
|
412
|
+
* @summary Download the email message attachment
|
|
324
413
|
* @param {string} code
|
|
325
414
|
* @param {number} attachmentId
|
|
326
415
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -341,7 +430,8 @@ var EmailMessagesApiFp = function (configuration) {
|
|
|
341
430
|
});
|
|
342
431
|
},
|
|
343
432
|
/**
|
|
344
|
-
*
|
|
433
|
+
* Retrieves the details of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
|
|
434
|
+
* @summary Retrieve the email message
|
|
345
435
|
* @param {string} code
|
|
346
436
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
347
437
|
* @param {*} [options] Override http request option.
|
|
@@ -361,7 +451,8 @@ var EmailMessagesApiFp = function (configuration) {
|
|
|
361
451
|
});
|
|
362
452
|
},
|
|
363
453
|
/**
|
|
364
|
-
*
|
|
454
|
+
* Returns the attachments of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
|
|
455
|
+
* @summary List the email message attachments
|
|
365
456
|
* @param {string} code
|
|
366
457
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
367
458
|
* @param {*} [options] Override http request option.
|
|
@@ -381,16 +472,16 @@ var EmailMessagesApiFp = function (configuration) {
|
|
|
381
472
|
});
|
|
382
473
|
},
|
|
383
474
|
/**
|
|
384
|
-
*
|
|
475
|
+
* Returns a list of sent and received email messages. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
|
|
385
476
|
* @summary List email messages
|
|
386
477
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
387
478
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
388
479
|
* @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.
|
|
389
|
-
* @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>
|
|
480
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
390
481
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
391
|
-
* @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>
|
|
482
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
|
|
392
483
|
* @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>
|
|
393
|
-
* @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>
|
|
484
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
394
485
|
* @param {*} [options] Override http request option.
|
|
395
486
|
* @throws {RequiredError}
|
|
396
487
|
*/
|
|
@@ -407,6 +498,28 @@ var EmailMessagesApiFp = function (configuration) {
|
|
|
407
498
|
});
|
|
408
499
|
});
|
|
409
500
|
},
|
|
501
|
+
/**
|
|
502
|
+
* Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to every recipient that bounced, not to the recipients that received it. newAddress replaces one bounced recipient; pass recipient to name it when more than one bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
|
|
503
|
+
* @summary Resend the email message
|
|
504
|
+
* @param {string} code
|
|
505
|
+
* @param {ResendEmailMessageBodyDto} resendEmailMessageBodyDto
|
|
506
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
resendMessage: function (code, resendEmailMessageBodyDto, authorization, options) {
|
|
511
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
512
|
+
var localVarAxiosArgs;
|
|
513
|
+
return __generator(this, function (_a) {
|
|
514
|
+
switch (_a.label) {
|
|
515
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.resendMessage(code, resendEmailMessageBodyDto, authorization, options)];
|
|
516
|
+
case 1:
|
|
517
|
+
localVarAxiosArgs = _a.sent();
|
|
518
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
});
|
|
522
|
+
},
|
|
410
523
|
};
|
|
411
524
|
};
|
|
412
525
|
exports.EmailMessagesApiFp = EmailMessagesApiFp;
|
|
@@ -418,7 +531,8 @@ var EmailMessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
418
531
|
var localVarFp = (0, exports.EmailMessagesApiFp)(configuration);
|
|
419
532
|
return {
|
|
420
533
|
/**
|
|
421
|
-
*
|
|
534
|
+
* Returns a download URL for the given attachment of the email message. **Required Permissions** \"notification-management.email-messages.view\"
|
|
535
|
+
* @summary Download the email message attachment
|
|
422
536
|
* @param {string} code
|
|
423
537
|
* @param {number} attachmentId
|
|
424
538
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -429,7 +543,8 @@ var EmailMessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
429
543
|
return localVarFp.downloadAttachment(code, attachmentId, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
430
544
|
},
|
|
431
545
|
/**
|
|
432
|
-
*
|
|
546
|
+
* Retrieves the details of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
|
|
547
|
+
* @summary Retrieve the email message
|
|
433
548
|
* @param {string} code
|
|
434
549
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
435
550
|
* @param {*} [options] Override http request option.
|
|
@@ -439,7 +554,8 @@ var EmailMessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
439
554
|
return localVarFp.getMessage(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
440
555
|
},
|
|
441
556
|
/**
|
|
442
|
-
*
|
|
557
|
+
* Returns the attachments of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
|
|
558
|
+
* @summary List the email message attachments
|
|
443
559
|
* @param {string} code
|
|
444
560
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
445
561
|
* @param {*} [options] Override http request option.
|
|
@@ -449,22 +565,34 @@ var EmailMessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
449
565
|
return localVarFp.listAttachments(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
450
566
|
},
|
|
451
567
|
/**
|
|
452
|
-
*
|
|
568
|
+
* Returns a list of sent and received email messages. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
|
|
453
569
|
* @summary List email messages
|
|
454
570
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
455
571
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
456
572
|
* @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.
|
|
457
|
-
* @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>
|
|
573
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
458
574
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
459
|
-
* @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>
|
|
575
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
|
|
460
576
|
* @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>
|
|
461
|
-
* @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>
|
|
577
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
462
578
|
* @param {*} [options] Override http request option.
|
|
463
579
|
* @throws {RequiredError}
|
|
464
580
|
*/
|
|
465
581
|
listEmailMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
466
582
|
return localVarFp.listEmailMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
467
583
|
},
|
|
584
|
+
/**
|
|
585
|
+
* Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to every recipient that bounced, not to the recipients that received it. newAddress replaces one bounced recipient; pass recipient to name it when more than one bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
|
|
586
|
+
* @summary Resend the email message
|
|
587
|
+
* @param {string} code
|
|
588
|
+
* @param {ResendEmailMessageBodyDto} resendEmailMessageBodyDto
|
|
589
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
590
|
+
* @param {*} [options] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
*/
|
|
593
|
+
resendMessage: function (code, resendEmailMessageBodyDto, authorization, options) {
|
|
594
|
+
return localVarFp.resendMessage(code, resendEmailMessageBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
595
|
+
},
|
|
468
596
|
};
|
|
469
597
|
};
|
|
470
598
|
exports.EmailMessagesApiFactory = EmailMessagesApiFactory;
|
|
@@ -480,7 +608,8 @@ var EmailMessagesApi = /** @class */ (function (_super) {
|
|
|
480
608
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
481
609
|
}
|
|
482
610
|
/**
|
|
483
|
-
*
|
|
611
|
+
* Returns a download URL for the given attachment of the email message. **Required Permissions** \"notification-management.email-messages.view\"
|
|
612
|
+
* @summary Download the email message attachment
|
|
484
613
|
* @param {EmailMessagesApiDownloadAttachmentRequest} requestParameters Request parameters.
|
|
485
614
|
* @param {*} [options] Override http request option.
|
|
486
615
|
* @throws {RequiredError}
|
|
@@ -488,10 +617,11 @@ var EmailMessagesApi = /** @class */ (function (_super) {
|
|
|
488
617
|
*/
|
|
489
618
|
EmailMessagesApi.prototype.downloadAttachment = function (requestParameters, options) {
|
|
490
619
|
var _this = this;
|
|
491
|
-
return (0, exports.EmailMessagesApiFp)(this.configuration).downloadAttachment(requestParameters.code, requestParameters.attachmentId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
620
|
+
return (0, exports.EmailMessagesApiFp)(this.configuration).downloadAttachment(requestParameters.code, requestParameters.attachmentId, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
492
621
|
};
|
|
493
622
|
/**
|
|
494
|
-
*
|
|
623
|
+
* Retrieves the details of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
|
|
624
|
+
* @summary Retrieve the email message
|
|
495
625
|
* @param {EmailMessagesApiGetMessageRequest} requestParameters Request parameters.
|
|
496
626
|
* @param {*} [options] Override http request option.
|
|
497
627
|
* @throws {RequiredError}
|
|
@@ -499,10 +629,11 @@ var EmailMessagesApi = /** @class */ (function (_super) {
|
|
|
499
629
|
*/
|
|
500
630
|
EmailMessagesApi.prototype.getMessage = function (requestParameters, options) {
|
|
501
631
|
var _this = this;
|
|
502
|
-
return (0, exports.EmailMessagesApiFp)(this.configuration).getMessage(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
632
|
+
return (0, exports.EmailMessagesApiFp)(this.configuration).getMessage(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
503
633
|
};
|
|
504
634
|
/**
|
|
505
|
-
*
|
|
635
|
+
* Returns the attachments of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
|
|
636
|
+
* @summary List the email message attachments
|
|
506
637
|
* @param {EmailMessagesApiListAttachmentsRequest} requestParameters Request parameters.
|
|
507
638
|
* @param {*} [options] Override http request option.
|
|
508
639
|
* @throws {RequiredError}
|
|
@@ -510,10 +641,10 @@ var EmailMessagesApi = /** @class */ (function (_super) {
|
|
|
510
641
|
*/
|
|
511
642
|
EmailMessagesApi.prototype.listAttachments = function (requestParameters, options) {
|
|
512
643
|
var _this = this;
|
|
513
|
-
return (0, exports.EmailMessagesApiFp)(this.configuration).listAttachments(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
644
|
+
return (0, exports.EmailMessagesApiFp)(this.configuration).listAttachments(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
514
645
|
};
|
|
515
646
|
/**
|
|
516
|
-
*
|
|
647
|
+
* Returns a list of sent and received email messages. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
|
|
517
648
|
* @summary List email messages
|
|
518
649
|
* @param {EmailMessagesApiListEmailMessagesRequest} requestParameters Request parameters.
|
|
519
650
|
* @param {*} [options] Override http request option.
|
|
@@ -523,7 +654,19 @@ var EmailMessagesApi = /** @class */ (function (_super) {
|
|
|
523
654
|
EmailMessagesApi.prototype.listEmailMessages = function (requestParameters, options) {
|
|
524
655
|
var _this = this;
|
|
525
656
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
526
|
-
return (0, exports.EmailMessagesApiFp)(this.configuration).listEmailMessages(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); });
|
|
657
|
+
return (0, exports.EmailMessagesApiFp)(this.configuration).listEmailMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
658
|
+
};
|
|
659
|
+
/**
|
|
660
|
+
* Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to every recipient that bounced, not to the recipients that received it. newAddress replaces one bounced recipient; pass recipient to name it when more than one bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
|
|
661
|
+
* @summary Resend the email message
|
|
662
|
+
* @param {EmailMessagesApiResendMessageRequest} requestParameters Request parameters.
|
|
663
|
+
* @param {*} [options] Override http request option.
|
|
664
|
+
* @throws {RequiredError}
|
|
665
|
+
* @memberof EmailMessagesApi
|
|
666
|
+
*/
|
|
667
|
+
EmailMessagesApi.prototype.resendMessage = function (requestParameters, options) {
|
|
668
|
+
var _this = this;
|
|
669
|
+
return (0, exports.EmailMessagesApiFp)(this.configuration).resendMessage(requestParameters.code, requestParameters.resendEmailMessageBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
527
670
|
};
|
|
528
671
|
return EmailMessagesApi;
|
|
529
672
|
}(base_1.BaseAPI));
|