@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
package/dist/api/layouts-api.js
CHANGED
|
@@ -93,7 +93,8 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Creates a layout that defines the header and footer wrapped around notification template bodies. **Required Permissions** \"notification-management.email-templates.create\"
|
|
97
|
+
* @summary Create the layout
|
|
97
98
|
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
98
99
|
* @param {string} [authorization] Bearer Token
|
|
99
100
|
* @param {*} [options] Override http request option.
|
|
@@ -102,9 +103,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
102
103
|
createLayout: function (createLayoutRequestDto, authorization, options) {
|
|
103
104
|
if (options === void 0) { options = {}; }
|
|
104
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
105
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
108
110
|
case 0:
|
|
109
111
|
// verify required parameter 'createLayoutRequestDto' is not null or undefined
|
|
110
112
|
(0, common_1.assertParamExists)('createLayout', 'createLayoutRequestDto', createLayoutRequestDto);
|
|
@@ -119,13 +121,19 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
119
121
|
localVarQueryParameter = {};
|
|
120
122
|
// authentication bearer required
|
|
121
123
|
// http bearer authentication required
|
|
122
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
123
128
|
case 1:
|
|
124
129
|
// authentication bearer required
|
|
125
130
|
// http bearer authentication required
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
129
137
|
}
|
|
130
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -141,7 +149,8 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
141
149
|
});
|
|
142
150
|
},
|
|
143
151
|
/**
|
|
144
|
-
*
|
|
152
|
+
* Permanently deletes the layout with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
|
|
153
|
+
* @summary Delete the layout
|
|
145
154
|
* @param {number} id
|
|
146
155
|
* @param {string} [authorization] Bearer Token
|
|
147
156
|
* @param {*} [options] Override http request option.
|
|
@@ -150,9 +159,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
150
159
|
deleteLayout: function (id, authorization, options) {
|
|
151
160
|
if (options === void 0) { options = {}; }
|
|
152
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
153
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
154
|
-
|
|
155
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
156
166
|
case 0:
|
|
157
167
|
// verify required parameter 'id' is not null or undefined
|
|
158
168
|
(0, common_1.assertParamExists)('deleteLayout', 'id', id);
|
|
@@ -168,13 +178,19 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
168
178
|
localVarQueryParameter = {};
|
|
169
179
|
// authentication bearer required
|
|
170
180
|
// http bearer authentication required
|
|
171
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
+
];
|
|
172
185
|
case 1:
|
|
173
186
|
// authentication bearer required
|
|
174
187
|
// http bearer authentication required
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
188
|
+
_b.sent();
|
|
189
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
190
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
178
194
|
}
|
|
179
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
180
196
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -188,7 +204,8 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
188
204
|
});
|
|
189
205
|
},
|
|
190
206
|
/**
|
|
191
|
-
*
|
|
207
|
+
* Retrieves the details of the layout with the given id. **Required Permissions** \"notification-management.email-templates.view\"
|
|
208
|
+
* @summary Retrieve the layout
|
|
192
209
|
* @param {number} id
|
|
193
210
|
* @param {number} id2 Layout id
|
|
194
211
|
* @param {string} [authorization] Bearer Token
|
|
@@ -198,9 +215,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
198
215
|
getLayout: function (id, id2, authorization, options) {
|
|
199
216
|
if (options === void 0) { options = {}; }
|
|
200
217
|
return __awaiter(_this, void 0, void 0, function () {
|
|
201
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
202
|
-
|
|
203
|
-
|
|
218
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
219
|
+
var _a;
|
|
220
|
+
return __generator(this, function (_b) {
|
|
221
|
+
switch (_b.label) {
|
|
204
222
|
case 0:
|
|
205
223
|
// verify required parameter 'id' is not null or undefined
|
|
206
224
|
(0, common_1.assertParamExists)('getLayout', 'id', id);
|
|
@@ -222,12 +240,15 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
222
240
|
case 1:
|
|
223
241
|
// authentication bearer required
|
|
224
242
|
// http bearer authentication required
|
|
225
|
-
|
|
243
|
+
_b.sent();
|
|
226
244
|
if (id2 !== undefined) {
|
|
227
245
|
localVarQueryParameter['id'] = id2;
|
|
228
246
|
}
|
|
229
|
-
|
|
230
|
-
|
|
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);
|
|
231
252
|
}
|
|
232
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
233
254
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -241,24 +262,26 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
241
262
|
});
|
|
242
263
|
},
|
|
243
264
|
/**
|
|
244
|
-
*
|
|
265
|
+
* Returns a list of layouts. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
|
|
266
|
+
* @summary List layouts
|
|
245
267
|
* @param {string} [authorization] Bearer Token
|
|
246
268
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
247
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.
|
|
248
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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, name, slug</i>
|
|
249
271
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
250
|
-
* @param {string} [order]
|
|
251
|
-
* @param {string} [expand]
|
|
252
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
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, createdAt</i>
|
|
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: headerTemplate, footerTemplate<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, name, slug</i>
|
|
253
275
|
* @param {*} [options] Override http request option.
|
|
254
276
|
* @throws {RequiredError}
|
|
255
277
|
*/
|
|
256
278
|
listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
257
279
|
if (options === void 0) { options = {}; }
|
|
258
280
|
return __awaiter(_this, void 0, void 0, function () {
|
|
259
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
260
|
-
|
|
261
|
-
|
|
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) {
|
|
262
285
|
case 0:
|
|
263
286
|
localVarPath = "/notificationservice/v1/layouts";
|
|
264
287
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -275,7 +298,7 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
275
298
|
case 1:
|
|
276
299
|
// authentication bearer required
|
|
277
300
|
// http bearer authentication required
|
|
278
|
-
|
|
301
|
+
_b.sent();
|
|
279
302
|
if (pageSize !== undefined) {
|
|
280
303
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
281
304
|
}
|
|
@@ -297,8 +320,11 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
297
320
|
if (filters !== undefined) {
|
|
298
321
|
localVarQueryParameter['filters'] = filters;
|
|
299
322
|
}
|
|
300
|
-
|
|
301
|
-
|
|
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);
|
|
302
328
|
}
|
|
303
329
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
304
330
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -312,7 +338,8 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
312
338
|
});
|
|
313
339
|
},
|
|
314
340
|
/**
|
|
315
|
-
*
|
|
341
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"notification-management.email-templates.update\"
|
|
342
|
+
* @summary Update the layout
|
|
316
343
|
* @param {number} id
|
|
317
344
|
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
318
345
|
* @param {string} [authorization] Bearer Token
|
|
@@ -322,9 +349,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
322
349
|
updateLayout: function (id, updateLayoutRequestDto, authorization, options) {
|
|
323
350
|
if (options === void 0) { options = {}; }
|
|
324
351
|
return __awaiter(_this, void 0, void 0, function () {
|
|
325
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
326
|
-
|
|
327
|
-
|
|
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) {
|
|
328
356
|
case 0:
|
|
329
357
|
// verify required parameter 'id' is not null or undefined
|
|
330
358
|
(0, common_1.assertParamExists)('updateLayout', 'id', id);
|
|
@@ -342,13 +370,19 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
342
370
|
localVarQueryParameter = {};
|
|
343
371
|
// authentication bearer required
|
|
344
372
|
// http bearer authentication required
|
|
345
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
346
377
|
case 1:
|
|
347
378
|
// authentication bearer required
|
|
348
379
|
// http bearer authentication required
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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);
|
|
352
386
|
}
|
|
353
387
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
354
388
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -374,7 +408,8 @@ var LayoutsApiFp = function (configuration) {
|
|
|
374
408
|
var localVarAxiosParamCreator = (0, exports.LayoutsApiAxiosParamCreator)(configuration);
|
|
375
409
|
return {
|
|
376
410
|
/**
|
|
377
|
-
*
|
|
411
|
+
* Creates a layout that defines the header and footer wrapped around notification template bodies. **Required Permissions** \"notification-management.email-templates.create\"
|
|
412
|
+
* @summary Create the layout
|
|
378
413
|
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
379
414
|
* @param {string} [authorization] Bearer Token
|
|
380
415
|
* @param {*} [options] Override http request option.
|
|
@@ -394,7 +429,8 @@ var LayoutsApiFp = function (configuration) {
|
|
|
394
429
|
});
|
|
395
430
|
},
|
|
396
431
|
/**
|
|
397
|
-
*
|
|
432
|
+
* Permanently deletes the layout with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
|
|
433
|
+
* @summary Delete the layout
|
|
398
434
|
* @param {number} id
|
|
399
435
|
* @param {string} [authorization] Bearer Token
|
|
400
436
|
* @param {*} [options] Override http request option.
|
|
@@ -414,7 +450,8 @@ var LayoutsApiFp = function (configuration) {
|
|
|
414
450
|
});
|
|
415
451
|
},
|
|
416
452
|
/**
|
|
417
|
-
*
|
|
453
|
+
* Retrieves the details of the layout with the given id. **Required Permissions** \"notification-management.email-templates.view\"
|
|
454
|
+
* @summary Retrieve the layout
|
|
418
455
|
* @param {number} id
|
|
419
456
|
* @param {number} id2 Layout id
|
|
420
457
|
* @param {string} [authorization] Bearer Token
|
|
@@ -435,15 +472,16 @@ var LayoutsApiFp = function (configuration) {
|
|
|
435
472
|
});
|
|
436
473
|
},
|
|
437
474
|
/**
|
|
438
|
-
*
|
|
475
|
+
* Returns a list of layouts. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
|
|
476
|
+
* @summary List layouts
|
|
439
477
|
* @param {string} [authorization] Bearer Token
|
|
440
478
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
441
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.
|
|
442
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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, name, slug</i>
|
|
443
481
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
444
|
-
* @param {string} [order]
|
|
445
|
-
* @param {string} [expand]
|
|
446
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
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, createdAt</i>
|
|
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: headerTemplate, footerTemplate<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, name, slug</i>
|
|
447
485
|
* @param {*} [options] Override http request option.
|
|
448
486
|
* @throws {RequiredError}
|
|
449
487
|
*/
|
|
@@ -461,7 +499,8 @@ var LayoutsApiFp = function (configuration) {
|
|
|
461
499
|
});
|
|
462
500
|
},
|
|
463
501
|
/**
|
|
464
|
-
*
|
|
502
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"notification-management.email-templates.update\"
|
|
503
|
+
* @summary Update the layout
|
|
465
504
|
* @param {number} id
|
|
466
505
|
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
467
506
|
* @param {string} [authorization] Bearer Token
|
|
@@ -492,7 +531,8 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
|
|
|
492
531
|
var localVarFp = (0, exports.LayoutsApiFp)(configuration);
|
|
493
532
|
return {
|
|
494
533
|
/**
|
|
495
|
-
*
|
|
534
|
+
* Creates a layout that defines the header and footer wrapped around notification template bodies. **Required Permissions** \"notification-management.email-templates.create\"
|
|
535
|
+
* @summary Create the layout
|
|
496
536
|
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
497
537
|
* @param {string} [authorization] Bearer Token
|
|
498
538
|
* @param {*} [options] Override http request option.
|
|
@@ -502,7 +542,8 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
|
|
|
502
542
|
return localVarFp.createLayout(createLayoutRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
503
543
|
},
|
|
504
544
|
/**
|
|
505
|
-
*
|
|
545
|
+
* Permanently deletes the layout with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
|
|
546
|
+
* @summary Delete the layout
|
|
506
547
|
* @param {number} id
|
|
507
548
|
* @param {string} [authorization] Bearer Token
|
|
508
549
|
* @param {*} [options] Override http request option.
|
|
@@ -512,7 +553,8 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
|
|
|
512
553
|
return localVarFp.deleteLayout(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
513
554
|
},
|
|
514
555
|
/**
|
|
515
|
-
*
|
|
556
|
+
* Retrieves the details of the layout with the given id. **Required Permissions** \"notification-management.email-templates.view\"
|
|
557
|
+
* @summary Retrieve the layout
|
|
516
558
|
* @param {number} id
|
|
517
559
|
* @param {number} id2 Layout id
|
|
518
560
|
* @param {string} [authorization] Bearer Token
|
|
@@ -523,15 +565,16 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
|
|
|
523
565
|
return localVarFp.getLayout(id, id2, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
524
566
|
},
|
|
525
567
|
/**
|
|
526
|
-
*
|
|
568
|
+
* Returns a list of layouts. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
|
|
569
|
+
* @summary List layouts
|
|
527
570
|
* @param {string} [authorization] Bearer Token
|
|
528
571
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
529
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.
|
|
530
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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, name, slug</i>
|
|
531
574
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
532
|
-
* @param {string} [order]
|
|
533
|
-
* @param {string} [expand]
|
|
534
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
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, createdAt</i>
|
|
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: headerTemplate, footerTemplate<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, name, slug</i>
|
|
535
578
|
* @param {*} [options] Override http request option.
|
|
536
579
|
* @throws {RequiredError}
|
|
537
580
|
*/
|
|
@@ -539,7 +582,8 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
|
|
|
539
582
|
return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
540
583
|
},
|
|
541
584
|
/**
|
|
542
|
-
*
|
|
585
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"notification-management.email-templates.update\"
|
|
586
|
+
* @summary Update the layout
|
|
543
587
|
* @param {number} id
|
|
544
588
|
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
545
589
|
* @param {string} [authorization] Bearer Token
|
|
@@ -564,7 +608,8 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
564
608
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
565
609
|
}
|
|
566
610
|
/**
|
|
567
|
-
*
|
|
611
|
+
* Creates a layout that defines the header and footer wrapped around notification template bodies. **Required Permissions** \"notification-management.email-templates.create\"
|
|
612
|
+
* @summary Create the layout
|
|
568
613
|
* @param {LayoutsApiCreateLayoutRequest} requestParameters Request parameters.
|
|
569
614
|
* @param {*} [options] Override http request option.
|
|
570
615
|
* @throws {RequiredError}
|
|
@@ -572,10 +617,11 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
572
617
|
*/
|
|
573
618
|
LayoutsApi.prototype.createLayout = function (requestParameters, options) {
|
|
574
619
|
var _this = this;
|
|
575
|
-
return (0, exports.LayoutsApiFp)(this.configuration).createLayout(requestParameters.createLayoutRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
620
|
+
return (0, exports.LayoutsApiFp)(this.configuration).createLayout(requestParameters.createLayoutRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
576
621
|
};
|
|
577
622
|
/**
|
|
578
|
-
*
|
|
623
|
+
* Permanently deletes the layout with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
|
|
624
|
+
* @summary Delete the layout
|
|
579
625
|
* @param {LayoutsApiDeleteLayoutRequest} requestParameters Request parameters.
|
|
580
626
|
* @param {*} [options] Override http request option.
|
|
581
627
|
* @throws {RequiredError}
|
|
@@ -583,10 +629,11 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
583
629
|
*/
|
|
584
630
|
LayoutsApi.prototype.deleteLayout = function (requestParameters, options) {
|
|
585
631
|
var _this = this;
|
|
586
|
-
return (0, exports.LayoutsApiFp)(this.configuration).deleteLayout(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
632
|
+
return (0, exports.LayoutsApiFp)(this.configuration).deleteLayout(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
587
633
|
};
|
|
588
634
|
/**
|
|
589
|
-
*
|
|
635
|
+
* Retrieves the details of the layout with the given id. **Required Permissions** \"notification-management.email-templates.view\"
|
|
636
|
+
* @summary Retrieve the layout
|
|
590
637
|
* @param {LayoutsApiGetLayoutRequest} requestParameters Request parameters.
|
|
591
638
|
* @param {*} [options] Override http request option.
|
|
592
639
|
* @throws {RequiredError}
|
|
@@ -594,10 +641,11 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
594
641
|
*/
|
|
595
642
|
LayoutsApi.prototype.getLayout = function (requestParameters, options) {
|
|
596
643
|
var _this = this;
|
|
597
|
-
return (0, exports.LayoutsApiFp)(this.configuration).getLayout(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
644
|
+
return (0, exports.LayoutsApiFp)(this.configuration).getLayout(requestParameters.id, requestParameters.id2, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
598
645
|
};
|
|
599
646
|
/**
|
|
600
|
-
*
|
|
647
|
+
* Returns a list of layouts. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
|
|
648
|
+
* @summary List layouts
|
|
601
649
|
* @param {LayoutsApiListLayoutsRequest} requestParameters Request parameters.
|
|
602
650
|
* @param {*} [options] Override http request option.
|
|
603
651
|
* @throws {RequiredError}
|
|
@@ -606,10 +654,11 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
606
654
|
LayoutsApi.prototype.listLayouts = function (requestParameters, options) {
|
|
607
655
|
var _this = this;
|
|
608
656
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
609
|
-
return (0, exports.LayoutsApiFp)(this.configuration).listLayouts(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.LayoutsApiFp)(this.configuration).listLayouts(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); });
|
|
610
658
|
};
|
|
611
659
|
/**
|
|
612
|
-
*
|
|
660
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"notification-management.email-templates.update\"
|
|
661
|
+
* @summary Update the layout
|
|
613
662
|
* @param {LayoutsApiUpdateLayoutRequest} requestParameters Request parameters.
|
|
614
663
|
* @param {*} [options] Override http request option.
|
|
615
664
|
* @throws {RequiredError}
|
|
@@ -617,7 +666,7 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
617
666
|
*/
|
|
618
667
|
LayoutsApi.prototype.updateLayout = function (requestParameters, options) {
|
|
619
668
|
var _this = this;
|
|
620
|
-
return (0, exports.LayoutsApiFp)(this.configuration).updateLayout(requestParameters.id, requestParameters.updateLayoutRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
669
|
+
return (0, exports.LayoutsApiFp)(this.configuration).updateLayout(requestParameters.id, requestParameters.updateLayoutRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
670
|
};
|
|
622
671
|
return LayoutsApi;
|
|
623
672
|
}(base_1.BaseAPI));
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
/**
|
|
16
|
+
* MSGraphWebhooksApi - axios parameter creator
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const MSGraphWebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
22
|
+
* @summary Receive Microsoft Graph subscription lifecycle notifications
|
|
23
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
24
|
+
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
25
|
+
* @param {object} [body] Graph lifecycle collection `{ \"value\": [...] }`.
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
receiveLifecycle: (tenantSlug: string, validationToken?: string, body?: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
/**
|
|
31
|
+
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
32
|
+
* @summary Receive Microsoft Graph change notifications
|
|
33
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
34
|
+
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
35
|
+
* @param {object} [body] Graph change-notification collection: `{ \"value\": [ ... ] }`.
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
receiveNotifications: (tenantSlug: string, validationToken?: string, body?: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* MSGraphWebhooksApi - functional programming interface
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const MSGraphWebhooksApiFp: (configuration?: Configuration) => {
|
|
46
|
+
/**
|
|
47
|
+
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
48
|
+
* @summary Receive Microsoft Graph subscription lifecycle notifications
|
|
49
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
50
|
+
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
51
|
+
* @param {object} [body] Graph lifecycle collection `{ \"value\": [...] }`.
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
receiveLifecycle(tenantSlug: string, validationToken?: string, body?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
56
|
+
/**
|
|
57
|
+
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
58
|
+
* @summary Receive Microsoft Graph change notifications
|
|
59
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
60
|
+
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
61
|
+
* @param {object} [body] Graph change-notification collection: `{ \"value\": [ ... ] }`.
|
|
62
|
+
* @param {*} [options] Override http request option.
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
*/
|
|
65
|
+
receiveNotifications(tenantSlug: string, validationToken?: string, body?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* MSGraphWebhooksApi - factory interface
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const MSGraphWebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
72
|
+
/**
|
|
73
|
+
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
74
|
+
* @summary Receive Microsoft Graph subscription lifecycle notifications
|
|
75
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
76
|
+
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
77
|
+
* @param {object} [body] Graph lifecycle collection `{ \"value\": [...] }`.
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
receiveLifecycle(tenantSlug: string, validationToken?: string, body?: object, options?: any): AxiosPromise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
84
|
+
* @summary Receive Microsoft Graph change notifications
|
|
85
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
86
|
+
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
87
|
+
* @param {object} [body] Graph change-notification collection: `{ \"value\": [ ... ] }`.
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
receiveNotifications(tenantSlug: string, validationToken?: string, body?: object, options?: any): AxiosPromise<void>;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Request parameters for receiveLifecycle operation in MSGraphWebhooksApi.
|
|
95
|
+
* @export
|
|
96
|
+
* @interface MSGraphWebhooksApiReceiveLifecycleRequest
|
|
97
|
+
*/
|
|
98
|
+
export interface MSGraphWebhooksApiReceiveLifecycleRequest {
|
|
99
|
+
/**
|
|
100
|
+
* Unique slug identifier representing a tenant.
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof MSGraphWebhooksApiReceiveLifecycle
|
|
103
|
+
*/
|
|
104
|
+
readonly tenantSlug: string;
|
|
105
|
+
/**
|
|
106
|
+
* Echoed back as text/plain when present.
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof MSGraphWebhooksApiReceiveLifecycle
|
|
109
|
+
*/
|
|
110
|
+
readonly validationToken?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Graph lifecycle collection `{ \"value\": [...] }`.
|
|
113
|
+
* @type {object}
|
|
114
|
+
* @memberof MSGraphWebhooksApiReceiveLifecycle
|
|
115
|
+
*/
|
|
116
|
+
readonly body?: object;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Request parameters for receiveNotifications operation in MSGraphWebhooksApi.
|
|
120
|
+
* @export
|
|
121
|
+
* @interface MSGraphWebhooksApiReceiveNotificationsRequest
|
|
122
|
+
*/
|
|
123
|
+
export interface MSGraphWebhooksApiReceiveNotificationsRequest {
|
|
124
|
+
/**
|
|
125
|
+
* Unique slug identifier representing a tenant.
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof MSGraphWebhooksApiReceiveNotifications
|
|
128
|
+
*/
|
|
129
|
+
readonly tenantSlug: string;
|
|
130
|
+
/**
|
|
131
|
+
* Echoed back as text/plain when present.
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof MSGraphWebhooksApiReceiveNotifications
|
|
134
|
+
*/
|
|
135
|
+
readonly validationToken?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Graph change-notification collection: `{ \"value\": [ ... ] }`.
|
|
138
|
+
* @type {object}
|
|
139
|
+
* @memberof MSGraphWebhooksApiReceiveNotifications
|
|
140
|
+
*/
|
|
141
|
+
readonly body?: object;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* MSGraphWebhooksApi - object-oriented interface
|
|
145
|
+
* @export
|
|
146
|
+
* @class MSGraphWebhooksApi
|
|
147
|
+
* @extends {BaseAPI}
|
|
148
|
+
*/
|
|
149
|
+
export declare class MSGraphWebhooksApi extends BaseAPI {
|
|
150
|
+
/**
|
|
151
|
+
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
152
|
+
* @summary Receive Microsoft Graph subscription lifecycle notifications
|
|
153
|
+
* @param {MSGraphWebhooksApiReceiveLifecycleRequest} requestParameters Request parameters.
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
* @memberof MSGraphWebhooksApi
|
|
157
|
+
*/
|
|
158
|
+
receiveLifecycle(requestParameters: MSGraphWebhooksApiReceiveLifecycleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
159
|
+
/**
|
|
160
|
+
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
161
|
+
* @summary Receive Microsoft Graph change notifications
|
|
162
|
+
* @param {MSGraphWebhooksApiReceiveNotificationsRequest} requestParameters Request parameters.
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
* @memberof MSGraphWebhooksApi
|
|
166
|
+
*/
|
|
167
|
+
receiveNotifications(requestParameters: MSGraphWebhooksApiReceiveNotificationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
168
|
+
}
|