@emilgroup/webhook-sdk-node 1.0.1-beta.3 → 1.0.1-beta.37
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 +10 -1
- package/README.md +2 -2
- package/api/{health-api.ts → health-checks-api.ts} +46 -20
- package/api/inbound-webhooks-api.ts +321 -13
- package/api/trigger-inbound-webhooks-api.ts +167 -0
- package/api/webhook-requests-api.ts +250 -0
- package/api.ts +7 -3
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/{health-api.d.ts → health-checks-api.d.ts} +32 -15
- package/dist/api/{health-api.js → health-checks-api.js} +61 -43
- package/dist/api/inbound-webhooks-api.d.ts +189 -13
- package/dist/api/inbound-webhooks-api.js +241 -13
- package/dist/api/trigger-inbound-webhooks-api.d.ts +96 -0
- package/dist/api/trigger-inbound-webhooks-api.js +227 -0
- package/dist/api/webhook-requests-api.d.ts +150 -0
- package/dist/api/webhook-requests-api.js +264 -0
- package/dist/api.d.ts +4 -2
- package/dist/api.js +4 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/create-inbound-webhook-request-dto.d.ts +1 -7
- package/dist/models/create-inbound-webhook-request-dto.js +1 -1
- package/dist/models/create-inbound-webhook-response-class.d.ts +1 -1
- package/dist/models/create-inbound-webhook-response-class.js +1 -1
- package/dist/models/get-inbound-webhook-response-class.d.ts +1 -1
- package/dist/models/get-inbound-webhook-response-class.js +1 -1
- package/dist/models/inbound-webhook-class.d.ts +7 -7
- package/dist/models/inbound-webhook-class.js +1 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/list-inbound-webhook-response-class.d.ts +43 -0
- package/dist/models/list-inbound-webhook-response-class.js +15 -0
- package/dist/models/list-webhook-requests-response-class.d.ts +43 -0
- package/dist/models/list-webhook-requests-response-class.js +15 -0
- package/dist/models/trigger-inbound-webhook-accepted-response-class.d.ts +36 -0
- package/dist/models/trigger-inbound-webhook-accepted-response-class.js +15 -0
- package/dist/models/trigger-inbound-webhook-rejected-response-class.d.ts +42 -0
- package/dist/models/trigger-inbound-webhook-rejected-response-class.js +15 -0
- package/dist/models/update-inbound-webhook-request-dto.d.ts +54 -0
- package/dist/models/update-inbound-webhook-request-dto.js +21 -0
- package/dist/models/update-inbound-webhook-response-class.d.ts +25 -0
- package/dist/models/update-inbound-webhook-response-class.js +15 -0
- package/dist/models/webhook-request-class.d.ts +146 -0
- package/dist/models/webhook-request-class.js +23 -0
- package/index.ts +1 -1
- package/models/create-inbound-webhook-request-dto.ts +1 -7
- package/models/create-inbound-webhook-response-class.ts +1 -1
- package/models/get-inbound-webhook-response-class.ts +1 -1
- package/models/inbound-webhook-class.ts +7 -7
- package/models/index.ts +7 -0
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-inbound-webhook-response-class.ts +49 -0
- package/models/list-webhook-requests-response-class.ts +49 -0
- package/models/trigger-inbound-webhook-accepted-response-class.ts +42 -0
- package/models/trigger-inbound-webhook-rejected-response-class.ts +48 -0
- package/models/update-inbound-webhook-request-dto.ts +63 -0
- package/models/update-inbound-webhook-response-class.ts +31 -0
- package/models/webhook-request-class.ts +155 -0
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* EMIL Webhookservice
|
|
6
6
|
* The EMIL Webhookservice API description
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.19.3
|
|
9
9
|
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -97,7 +97,7 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
100
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
101
101
|
* @summary Create the inbound webhook
|
|
102
102
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -146,7 +146,7 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
149
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
150
150
|
* @summary Delete the inbound webhook
|
|
151
151
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -194,7 +194,7 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
197
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
198
198
|
* @summary Retrieve the inbound webhook
|
|
199
199
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
200
200
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -241,6 +241,131 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
241
241
|
});
|
|
242
242
|
});
|
|
243
243
|
},
|
|
244
|
+
/**
|
|
245
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
246
|
+
* @summary List inbound webhooks
|
|
247
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
249
|
+
* @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.
|
|
250
|
+
* @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, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
251
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
252
|
+
* @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, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
253
|
+
* @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/>
|
|
254
|
+
* @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, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
*/
|
|
258
|
+
listInboundWebhooks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
259
|
+
if (options === void 0) { options = {}; }
|
|
260
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
261
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
262
|
+
return __generator(this, function (_a) {
|
|
263
|
+
switch (_a.label) {
|
|
264
|
+
case 0:
|
|
265
|
+
localVarPath = "/webhookservice/v1/inbound-webhooks";
|
|
266
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
267
|
+
if (configuration) {
|
|
268
|
+
baseOptions = configuration.baseOptions;
|
|
269
|
+
baseAccessToken = configuration.accessToken;
|
|
270
|
+
}
|
|
271
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
272
|
+
localVarHeaderParameter = {};
|
|
273
|
+
localVarQueryParameter = {};
|
|
274
|
+
// authentication bearer required
|
|
275
|
+
// http bearer authentication required
|
|
276
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
277
|
+
case 1:
|
|
278
|
+
// authentication bearer required
|
|
279
|
+
// http bearer authentication required
|
|
280
|
+
_a.sent();
|
|
281
|
+
if (pageSize !== undefined) {
|
|
282
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
283
|
+
}
|
|
284
|
+
if (pageToken !== undefined) {
|
|
285
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
286
|
+
}
|
|
287
|
+
if (filter !== undefined) {
|
|
288
|
+
localVarQueryParameter['filter'] = filter;
|
|
289
|
+
}
|
|
290
|
+
if (search !== undefined) {
|
|
291
|
+
localVarQueryParameter['search'] = search;
|
|
292
|
+
}
|
|
293
|
+
if (order !== undefined) {
|
|
294
|
+
localVarQueryParameter['order'] = order;
|
|
295
|
+
}
|
|
296
|
+
if (expand !== undefined) {
|
|
297
|
+
localVarQueryParameter['expand'] = expand;
|
|
298
|
+
}
|
|
299
|
+
if (filters !== undefined) {
|
|
300
|
+
localVarQueryParameter['filters'] = filters;
|
|
301
|
+
}
|
|
302
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
303
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
304
|
+
}
|
|
305
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
306
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
308
|
+
return [2 /*return*/, {
|
|
309
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
310
|
+
options: localVarRequestOptions,
|
|
311
|
+
}];
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
318
|
+
* @summary Update the inbound webhook
|
|
319
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
320
|
+
* @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
|
|
321
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
updateInboundWebhook: function (code, updateInboundWebhookRequestDto, authorization, options) {
|
|
326
|
+
if (options === void 0) { options = {}; }
|
|
327
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
+
return __generator(this, function (_a) {
|
|
330
|
+
switch (_a.label) {
|
|
331
|
+
case 0:
|
|
332
|
+
// verify required parameter 'code' is not null or undefined
|
|
333
|
+
(0, common_1.assertParamExists)('updateInboundWebhook', 'code', code);
|
|
334
|
+
// verify required parameter 'updateInboundWebhookRequestDto' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)('updateInboundWebhook', 'updateInboundWebhookRequestDto', updateInboundWebhookRequestDto);
|
|
336
|
+
localVarPath = "/webhookservice/v1/inbound-webhooks/{code}"
|
|
337
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
338
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
339
|
+
if (configuration) {
|
|
340
|
+
baseOptions = configuration.baseOptions;
|
|
341
|
+
baseAccessToken = configuration.accessToken;
|
|
342
|
+
}
|
|
343
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
344
|
+
localVarHeaderParameter = {};
|
|
345
|
+
localVarQueryParameter = {};
|
|
346
|
+
// authentication bearer required
|
|
347
|
+
// http bearer authentication required
|
|
348
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
349
|
+
case 1:
|
|
350
|
+
// authentication bearer required
|
|
351
|
+
// http bearer authentication required
|
|
352
|
+
_a.sent();
|
|
353
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
354
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
355
|
+
}
|
|
356
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
357
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
358
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
359
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
360
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateInboundWebhookRequestDto, localVarRequestOptions, configuration);
|
|
361
|
+
return [2 /*return*/, {
|
|
362
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
363
|
+
options: localVarRequestOptions,
|
|
364
|
+
}];
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
});
|
|
368
|
+
},
|
|
244
369
|
};
|
|
245
370
|
};
|
|
246
371
|
exports.InboundWebhooksApiAxiosParamCreator = InboundWebhooksApiAxiosParamCreator;
|
|
@@ -252,7 +377,7 @@ var InboundWebhooksApiFp = function (configuration) {
|
|
|
252
377
|
var localVarAxiosParamCreator = (0, exports.InboundWebhooksApiAxiosParamCreator)(configuration);
|
|
253
378
|
return {
|
|
254
379
|
/**
|
|
255
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
380
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
256
381
|
* @summary Create the inbound webhook
|
|
257
382
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
258
383
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -273,7 +398,7 @@ var InboundWebhooksApiFp = function (configuration) {
|
|
|
273
398
|
});
|
|
274
399
|
},
|
|
275
400
|
/**
|
|
276
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
401
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
277
402
|
* @summary Delete the inbound webhook
|
|
278
403
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
279
404
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -294,7 +419,7 @@ var InboundWebhooksApiFp = function (configuration) {
|
|
|
294
419
|
});
|
|
295
420
|
},
|
|
296
421
|
/**
|
|
297
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
422
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
298
423
|
* @summary Retrieve the inbound webhook
|
|
299
424
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
300
425
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -314,6 +439,55 @@ var InboundWebhooksApiFp = function (configuration) {
|
|
|
314
439
|
});
|
|
315
440
|
});
|
|
316
441
|
},
|
|
442
|
+
/**
|
|
443
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
444
|
+
* @summary List inbound webhooks
|
|
445
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
446
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
447
|
+
* @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.
|
|
448
|
+
* @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, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
449
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
450
|
+
* @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, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
451
|
+
* @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/>
|
|
452
|
+
* @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, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
listInboundWebhooks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
457
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
458
|
+
var localVarAxiosArgs;
|
|
459
|
+
return __generator(this, function (_a) {
|
|
460
|
+
switch (_a.label) {
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInboundWebhooks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
462
|
+
case 1:
|
|
463
|
+
localVarAxiosArgs = _a.sent();
|
|
464
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
});
|
|
468
|
+
},
|
|
469
|
+
/**
|
|
470
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
471
|
+
* @summary Update the inbound webhook
|
|
472
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
473
|
+
* @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
|
|
474
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
updateInboundWebhook: function (code, updateInboundWebhookRequestDto, authorization, options) {
|
|
479
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
480
|
+
var localVarAxiosArgs;
|
|
481
|
+
return __generator(this, function (_a) {
|
|
482
|
+
switch (_a.label) {
|
|
483
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateInboundWebhook(code, updateInboundWebhookRequestDto, authorization, options)];
|
|
484
|
+
case 1:
|
|
485
|
+
localVarAxiosArgs = _a.sent();
|
|
486
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
},
|
|
317
491
|
};
|
|
318
492
|
};
|
|
319
493
|
exports.InboundWebhooksApiFp = InboundWebhooksApiFp;
|
|
@@ -325,7 +499,7 @@ var InboundWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
325
499
|
var localVarFp = (0, exports.InboundWebhooksApiFp)(configuration);
|
|
326
500
|
return {
|
|
327
501
|
/**
|
|
328
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
502
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
329
503
|
* @summary Create the inbound webhook
|
|
330
504
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
331
505
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -336,7 +510,7 @@ var InboundWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
336
510
|
return localVarFp.createInboundWebhook(createInboundWebhookRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
337
511
|
},
|
|
338
512
|
/**
|
|
339
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
513
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
340
514
|
* @summary Delete the inbound webhook
|
|
341
515
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
342
516
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -347,7 +521,7 @@ var InboundWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
347
521
|
return localVarFp.deleteInboundWebhook(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
348
522
|
},
|
|
349
523
|
/**
|
|
350
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
524
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
351
525
|
* @summary Retrieve the inbound webhook
|
|
352
526
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
353
527
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -357,6 +531,35 @@ var InboundWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
357
531
|
getInboundWebhook: function (code, authorization, options) {
|
|
358
532
|
return localVarFp.getInboundWebhook(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
359
533
|
},
|
|
534
|
+
/**
|
|
535
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
536
|
+
* @summary List inbound webhooks
|
|
537
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
538
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
539
|
+
* @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.
|
|
540
|
+
* @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, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
541
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
542
|
+
* @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, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
543
|
+
* @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/>
|
|
544
|
+
* @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, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
545
|
+
* @param {*} [options] Override http request option.
|
|
546
|
+
* @throws {RequiredError}
|
|
547
|
+
*/
|
|
548
|
+
listInboundWebhooks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
549
|
+
return localVarFp.listInboundWebhooks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
550
|
+
},
|
|
551
|
+
/**
|
|
552
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
553
|
+
* @summary Update the inbound webhook
|
|
554
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
555
|
+
* @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
|
|
556
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
*/
|
|
560
|
+
updateInboundWebhook: function (code, updateInboundWebhookRequestDto, authorization, options) {
|
|
561
|
+
return localVarFp.updateInboundWebhook(code, updateInboundWebhookRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
562
|
+
},
|
|
360
563
|
};
|
|
361
564
|
};
|
|
362
565
|
exports.InboundWebhooksApiFactory = InboundWebhooksApiFactory;
|
|
@@ -372,7 +575,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
372
575
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
373
576
|
}
|
|
374
577
|
/**
|
|
375
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
578
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
376
579
|
* @summary Create the inbound webhook
|
|
377
580
|
* @param {InboundWebhooksApiCreateInboundWebhookRequest} requestParameters Request parameters.
|
|
378
581
|
* @param {*} [options] Override http request option.
|
|
@@ -384,7 +587,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
384
587
|
return (0, exports.InboundWebhooksApiFp)(this.configuration).createInboundWebhook(requestParameters.createInboundWebhookRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
385
588
|
};
|
|
386
589
|
/**
|
|
387
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
590
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
388
591
|
* @summary Delete the inbound webhook
|
|
389
592
|
* @param {InboundWebhooksApiDeleteInboundWebhookRequest} requestParameters Request parameters.
|
|
390
593
|
* @param {*} [options] Override http request option.
|
|
@@ -396,7 +599,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
396
599
|
return (0, exports.InboundWebhooksApiFp)(this.configuration).deleteInboundWebhook(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
397
600
|
};
|
|
398
601
|
/**
|
|
399
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
602
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
400
603
|
* @summary Retrieve the inbound webhook
|
|
401
604
|
* @param {InboundWebhooksApiGetInboundWebhookRequest} requestParameters Request parameters.
|
|
402
605
|
* @param {*} [options] Override http request option.
|
|
@@ -407,6 +610,31 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
407
610
|
var _this = this;
|
|
408
611
|
return (0, exports.InboundWebhooksApiFp)(this.configuration).getInboundWebhook(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
409
612
|
};
|
|
613
|
+
/**
|
|
614
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
615
|
+
* @summary List inbound webhooks
|
|
616
|
+
* @param {InboundWebhooksApiListInboundWebhooksRequest} requestParameters Request parameters.
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
* @memberof InboundWebhooksApi
|
|
620
|
+
*/
|
|
621
|
+
InboundWebhooksApi.prototype.listInboundWebhooks = function (requestParameters, options) {
|
|
622
|
+
var _this = this;
|
|
623
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
624
|
+
return (0, exports.InboundWebhooksApiFp)(this.configuration).listInboundWebhooks(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); });
|
|
625
|
+
};
|
|
626
|
+
/**
|
|
627
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
628
|
+
* @summary Update the inbound webhook
|
|
629
|
+
* @param {InboundWebhooksApiUpdateInboundWebhookRequest} requestParameters Request parameters.
|
|
630
|
+
* @param {*} [options] Override http request option.
|
|
631
|
+
* @throws {RequiredError}
|
|
632
|
+
* @memberof InboundWebhooksApi
|
|
633
|
+
*/
|
|
634
|
+
InboundWebhooksApi.prototype.updateInboundWebhook = function (requestParameters, options) {
|
|
635
|
+
var _this = this;
|
|
636
|
+
return (0, exports.InboundWebhooksApiFp)(this.configuration).updateInboundWebhook(requestParameters.code, requestParameters.updateInboundWebhookRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
637
|
+
};
|
|
410
638
|
return InboundWebhooksApi;
|
|
411
639
|
}(base_1.BaseAPI));
|
|
412
640
|
exports.InboundWebhooksApi = InboundWebhooksApi;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Webhookservice
|
|
3
|
+
* The EMIL Webhookservice API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.19.3
|
|
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
|
+
import { TriggerInboundWebhookAcceptedResponseClass } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* TriggerInboundWebhooksApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const TriggerInboundWebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
23
|
+
* @summary Execute incoming webhook
|
|
24
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
25
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
triggerIncomingWebhook: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* TriggerInboundWebhooksApi - functional programming interface
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const TriggerInboundWebhooksApiFp: (configuration?: Configuration) => {
|
|
36
|
+
/**
|
|
37
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
38
|
+
* @summary Execute incoming webhook
|
|
39
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
40
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
triggerIncomingWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TriggerInboundWebhookAcceptedResponseClass>>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* TriggerInboundWebhooksApi - factory interface
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const TriggerInboundWebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
51
|
+
/**
|
|
52
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
53
|
+
* @summary Execute incoming webhook
|
|
54
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
55
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
triggerIncomingWebhook(code: string, authorization?: string, options?: any): AxiosPromise<TriggerInboundWebhookAcceptedResponseClass>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Request parameters for triggerIncomingWebhook operation in TriggerInboundWebhooksApi.
|
|
63
|
+
* @export
|
|
64
|
+
* @interface TriggerInboundWebhooksApiTriggerIncomingWebhookRequest
|
|
65
|
+
*/
|
|
66
|
+
export interface TriggerInboundWebhooksApiTriggerIncomingWebhookRequest {
|
|
67
|
+
/**
|
|
68
|
+
* The webhook code (e.g., iwh_3g_5yaneKw)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
71
|
+
*/
|
|
72
|
+
readonly code: string;
|
|
73
|
+
/**
|
|
74
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
77
|
+
*/
|
|
78
|
+
readonly authorization?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* TriggerInboundWebhooksApi - object-oriented interface
|
|
82
|
+
* @export
|
|
83
|
+
* @class TriggerInboundWebhooksApi
|
|
84
|
+
* @extends {BaseAPI}
|
|
85
|
+
*/
|
|
86
|
+
export declare class TriggerInboundWebhooksApi extends BaseAPI {
|
|
87
|
+
/**
|
|
88
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
89
|
+
* @summary Execute incoming webhook
|
|
90
|
+
* @param {TriggerInboundWebhooksApiTriggerIncomingWebhookRequest} requestParameters Request parameters.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof TriggerInboundWebhooksApi
|
|
94
|
+
*/
|
|
95
|
+
triggerIncomingWebhook(requestParameters: TriggerInboundWebhooksApiTriggerIncomingWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TriggerInboundWebhookAcceptedResponseClass, any, {}>>;
|
|
96
|
+
}
|