@emilgroup/webhook-sdk-node 1.0.1-beta.11 → 1.0.1-beta.13
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 +3 -0
- package/README.md +2 -2
- package/api/inbound-webhooks-api.ts +20 -20
- package/api/trigger-inbound-webhooks-api.ts +19 -32
- package/api/webhook-requests-api.ts +250 -0
- package/api.ts +2 -0
- package/dist/api/inbound-webhooks-api.d.ts +20 -20
- package/dist/api/inbound-webhooks-api.js +20 -20
- package/dist/api/trigger-inbound-webhooks-api.d.ts +12 -21
- package/dist/api/trigger-inbound-webhooks-api.js +17 -23
- package/dist/api/webhook-requests-api.d.ts +150 -0
- package/dist/api/webhook-requests-api.js +264 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -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/webhook-request-class.d.ts +145 -0
- package/dist/models/webhook-request-class.js +22 -0
- package/models/index.ts +2 -0
- package/models/list-webhook-requests-response-class.ts +49 -0
- package/models/webhook-request-class.ts +154 -0
- package/package.json +1 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Webhookservice
|
|
3
|
+
* The EMIL Webhookservice 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
|
+
import { ListWebhookRequestsResponseClass } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* WebhookRequestsApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const WebhookRequestsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
23
|
+
* @summary List webhook requests
|
|
24
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
25
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
26
|
+
* @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.
|
|
27
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
28
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
29
|
+
* @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, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
30
|
+
* @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/>
|
|
31
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
listWebhookRequests: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* WebhookRequestsApi - functional programming interface
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const WebhookRequestsApiFp: (configuration?: Configuration) => {
|
|
42
|
+
/**
|
|
43
|
+
* Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
44
|
+
* @summary List webhook requests
|
|
45
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
46
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
47
|
+
* @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.
|
|
48
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
49
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
50
|
+
* @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, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
51
|
+
* @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/>
|
|
52
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
listWebhookRequests(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWebhookRequestsResponseClass>>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* WebhookRequestsApi - factory interface
|
|
60
|
+
* @export
|
|
61
|
+
*/
|
|
62
|
+
export declare const WebhookRequestsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
63
|
+
/**
|
|
64
|
+
* Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
65
|
+
* @summary List webhook requests
|
|
66
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
67
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
68
|
+
* @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.
|
|
69
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
70
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
71
|
+
* @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, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
72
|
+
* @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/>
|
|
73
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
listWebhookRequests(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListWebhookRequestsResponseClass>;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Request parameters for listWebhookRequests operation in WebhookRequestsApi.
|
|
81
|
+
* @export
|
|
82
|
+
* @interface WebhookRequestsApiListWebhookRequestsRequest
|
|
83
|
+
*/
|
|
84
|
+
export interface WebhookRequestsApiListWebhookRequestsRequest {
|
|
85
|
+
/**
|
|
86
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof WebhookRequestsApiListWebhookRequests
|
|
89
|
+
*/
|
|
90
|
+
readonly authorization?: string;
|
|
91
|
+
/**
|
|
92
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof WebhookRequestsApiListWebhookRequests
|
|
95
|
+
*/
|
|
96
|
+
readonly pageSize?: number;
|
|
97
|
+
/**
|
|
98
|
+
* 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.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof WebhookRequestsApiListWebhookRequests
|
|
101
|
+
*/
|
|
102
|
+
readonly pageToken?: string;
|
|
103
|
+
/**
|
|
104
|
+
* 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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof WebhookRequestsApiListWebhookRequests
|
|
107
|
+
*/
|
|
108
|
+
readonly filter?: string;
|
|
109
|
+
/**
|
|
110
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof WebhookRequestsApiListWebhookRequests
|
|
113
|
+
*/
|
|
114
|
+
readonly search?: string;
|
|
115
|
+
/**
|
|
116
|
+
* 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, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof WebhookRequestsApiListWebhookRequests
|
|
119
|
+
*/
|
|
120
|
+
readonly order?: string;
|
|
121
|
+
/**
|
|
122
|
+
* 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/>
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof WebhookRequestsApiListWebhookRequests
|
|
125
|
+
*/
|
|
126
|
+
readonly expand?: string;
|
|
127
|
+
/**
|
|
128
|
+
* 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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof WebhookRequestsApiListWebhookRequests
|
|
131
|
+
*/
|
|
132
|
+
readonly filters?: string;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* WebhookRequestsApi - object-oriented interface
|
|
136
|
+
* @export
|
|
137
|
+
* @class WebhookRequestsApi
|
|
138
|
+
* @extends {BaseAPI}
|
|
139
|
+
*/
|
|
140
|
+
export declare class WebhookRequestsApi extends BaseAPI {
|
|
141
|
+
/**
|
|
142
|
+
* Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
143
|
+
* @summary List webhook requests
|
|
144
|
+
* @param {WebhookRequestsApiListWebhookRequestsRequest} requestParameters Request parameters.
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
* @memberof WebhookRequestsApi
|
|
148
|
+
*/
|
|
149
|
+
listWebhookRequests(requestParameters?: WebhookRequestsApiListWebhookRequestsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWebhookRequestsResponseClass, any, {}>>;
|
|
150
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Webhookservice
|
|
6
|
+
* The EMIL Webhookservice API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.WebhookRequestsApi = exports.WebhookRequestsApiFactory = exports.WebhookRequestsApiFp = exports.WebhookRequestsApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
92
|
+
/**
|
|
93
|
+
* WebhookRequestsApi - axios parameter creator
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
var WebhookRequestsApiAxiosParamCreator = function (configuration) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
* Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
101
|
+
* @summary List webhook requests
|
|
102
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
104
|
+
* @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.
|
|
105
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
106
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
107
|
+
* @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, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
108
|
+
* @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/>
|
|
109
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
listWebhookRequests: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
114
|
+
if (options === void 0) { options = {}; }
|
|
115
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
116
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
switch (_a.label) {
|
|
119
|
+
case 0:
|
|
120
|
+
localVarPath = "/webhookservice/v1/webhook-requests";
|
|
121
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
baseAccessToken = configuration.accessToken;
|
|
125
|
+
}
|
|
126
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
127
|
+
localVarHeaderParameter = {};
|
|
128
|
+
localVarQueryParameter = {};
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
132
|
+
case 1:
|
|
133
|
+
// authentication bearer required
|
|
134
|
+
// http bearer authentication required
|
|
135
|
+
_a.sent();
|
|
136
|
+
if (pageSize !== undefined) {
|
|
137
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
138
|
+
}
|
|
139
|
+
if (pageToken !== undefined) {
|
|
140
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
141
|
+
}
|
|
142
|
+
if (filter !== undefined) {
|
|
143
|
+
localVarQueryParameter['filter'] = filter;
|
|
144
|
+
}
|
|
145
|
+
if (search !== undefined) {
|
|
146
|
+
localVarQueryParameter['search'] = search;
|
|
147
|
+
}
|
|
148
|
+
if (order !== undefined) {
|
|
149
|
+
localVarQueryParameter['order'] = order;
|
|
150
|
+
}
|
|
151
|
+
if (expand !== undefined) {
|
|
152
|
+
localVarQueryParameter['expand'] = expand;
|
|
153
|
+
}
|
|
154
|
+
if (filters !== undefined) {
|
|
155
|
+
localVarQueryParameter['filters'] = filters;
|
|
156
|
+
}
|
|
157
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
158
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
159
|
+
}
|
|
160
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
161
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
162
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
163
|
+
return [2 /*return*/, {
|
|
164
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
165
|
+
options: localVarRequestOptions,
|
|
166
|
+
}];
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
exports.WebhookRequestsApiAxiosParamCreator = WebhookRequestsApiAxiosParamCreator;
|
|
174
|
+
/**
|
|
175
|
+
* WebhookRequestsApi - functional programming interface
|
|
176
|
+
* @export
|
|
177
|
+
*/
|
|
178
|
+
var WebhookRequestsApiFp = function (configuration) {
|
|
179
|
+
var localVarAxiosParamCreator = (0, exports.WebhookRequestsApiAxiosParamCreator)(configuration);
|
|
180
|
+
return {
|
|
181
|
+
/**
|
|
182
|
+
* Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
183
|
+
* @summary List webhook requests
|
|
184
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
185
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
|
+
* @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.
|
|
187
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
188
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
189
|
+
* @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, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
190
|
+
* @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/>
|
|
191
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
listWebhookRequests: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
197
|
+
var localVarAxiosArgs;
|
|
198
|
+
return __generator(this, function (_a) {
|
|
199
|
+
switch (_a.label) {
|
|
200
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listWebhookRequests(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
201
|
+
case 1:
|
|
202
|
+
localVarAxiosArgs = _a.sent();
|
|
203
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
exports.WebhookRequestsApiFp = WebhookRequestsApiFp;
|
|
211
|
+
/**
|
|
212
|
+
* WebhookRequestsApi - factory interface
|
|
213
|
+
* @export
|
|
214
|
+
*/
|
|
215
|
+
var WebhookRequestsApiFactory = function (configuration, basePath, axios) {
|
|
216
|
+
var localVarFp = (0, exports.WebhookRequestsApiFp)(configuration);
|
|
217
|
+
return {
|
|
218
|
+
/**
|
|
219
|
+
* Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
220
|
+
* @summary List webhook requests
|
|
221
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
222
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
223
|
+
* @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.
|
|
224
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
225
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
226
|
+
* @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, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
227
|
+
* @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/>
|
|
228
|
+
* @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, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
listWebhookRequests: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
233
|
+
return localVarFp.listWebhookRequests(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
234
|
+
},
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
exports.WebhookRequestsApiFactory = WebhookRequestsApiFactory;
|
|
238
|
+
/**
|
|
239
|
+
* WebhookRequestsApi - object-oriented interface
|
|
240
|
+
* @export
|
|
241
|
+
* @class WebhookRequestsApi
|
|
242
|
+
* @extends {BaseAPI}
|
|
243
|
+
*/
|
|
244
|
+
var WebhookRequestsApi = /** @class */ (function (_super) {
|
|
245
|
+
__extends(WebhookRequestsApi, _super);
|
|
246
|
+
function WebhookRequestsApi() {
|
|
247
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
251
|
+
* @summary List webhook requests
|
|
252
|
+
* @param {WebhookRequestsApiListWebhookRequestsRequest} requestParameters Request parameters.
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
* @memberof WebhookRequestsApi
|
|
256
|
+
*/
|
|
257
|
+
WebhookRequestsApi.prototype.listWebhookRequests = function (requestParameters, options) {
|
|
258
|
+
var _this = this;
|
|
259
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
260
|
+
return (0, exports.WebhookRequestsApiFp)(this.configuration).listWebhookRequests(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); });
|
|
261
|
+
};
|
|
262
|
+
return WebhookRequestsApi;
|
|
263
|
+
}(base_1.BaseAPI));
|
|
264
|
+
exports.WebhookRequestsApi = WebhookRequestsApi;
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -30,3 +30,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
30
30
|
__exportStar(require("./api/health-checks-api"), exports);
|
|
31
31
|
__exportStar(require("./api/inbound-webhooks-api"), exports);
|
|
32
32
|
__exportStar(require("./api/trigger-inbound-webhooks-api"), exports);
|
|
33
|
+
__exportStar(require("./api/webhook-requests-api"), exports);
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export * from './inbound-webhook-class';
|
|
|
5
5
|
export * from './inline-response200';
|
|
6
6
|
export * from './inline-response503';
|
|
7
7
|
export * from './list-inbound-webhook-response-class';
|
|
8
|
+
export * from './list-webhook-requests-response-class';
|
|
8
9
|
export * from './trigger-inbound-webhook-response-class';
|
|
9
10
|
export * from './update-inbound-webhook-request-dto';
|
|
10
11
|
export * from './update-inbound-webhook-response-class';
|
|
12
|
+
export * from './webhook-request-class';
|
package/dist/models/index.js
CHANGED
|
@@ -21,6 +21,8 @@ __exportStar(require("./inbound-webhook-class"), exports);
|
|
|
21
21
|
__exportStar(require("./inline-response200"), exports);
|
|
22
22
|
__exportStar(require("./inline-response503"), exports);
|
|
23
23
|
__exportStar(require("./list-inbound-webhook-response-class"), exports);
|
|
24
|
+
__exportStar(require("./list-webhook-requests-response-class"), exports);
|
|
24
25
|
__exportStar(require("./trigger-inbound-webhook-response-class"), exports);
|
|
25
26
|
__exportStar(require("./update-inbound-webhook-request-dto"), exports);
|
|
26
27
|
__exportStar(require("./update-inbound-webhook-response-class"), exports);
|
|
28
|
+
__exportStar(require("./webhook-request-class"), exports);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Webhookservice
|
|
3
|
+
* The EMIL Webhookservice 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 { WebhookRequestClass } from './webhook-request-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListWebhookRequestsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface ListWebhookRequestsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* List of webhook requests
|
|
21
|
+
* @type {Array<WebhookRequestClass>}
|
|
22
|
+
* @memberof ListWebhookRequestsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'items': Array<WebhookRequestClass>;
|
|
25
|
+
/**
|
|
26
|
+
* Token for next page of results
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ListWebhookRequestsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'nextPageToken': string;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ListWebhookRequestsResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'itemsPerPage': number;
|
|
37
|
+
/**
|
|
38
|
+
* Total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ListWebhookRequestsResponseClass
|
|
41
|
+
*/
|
|
42
|
+
'totalItems': number;
|
|
43
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Webhookservice
|
|
6
|
+
* The EMIL Webhookservice API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|