@emilgroup/webhook-sdk-node 1.0.1-beta.24 → 1.0.1-beta.3

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.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +1 -10
  2. package/README.md +2 -2
  3. package/api/{health-checks-api.ts → health-api.ts} +19 -45
  4. package/api/inbound-webhooks-api.ts +12 -320
  5. package/api.ts +2 -6
  6. package/dist/api/{health-checks-api.d.ts → health-api.d.ts} +14 -31
  7. package/dist/api/{health-checks-api.js → health-api.js} +42 -60
  8. package/dist/api/inbound-webhooks-api.d.ts +12 -188
  9. package/dist/api/inbound-webhooks-api.js +12 -240
  10. package/dist/api.d.ts +1 -3
  11. package/dist/api.js +1 -3
  12. package/dist/models/create-inbound-webhook-request-dto.d.ts +6 -0
  13. package/dist/models/inbound-webhook-class.d.ts +6 -6
  14. package/dist/models/index.d.ts +0 -7
  15. package/dist/models/index.js +0 -7
  16. package/models/create-inbound-webhook-request-dto.ts +6 -0
  17. package/models/inbound-webhook-class.ts +6 -6
  18. package/models/index.ts +0 -7
  19. package/package.json +2 -2
  20. package/api/trigger-inbound-webhooks-api.ts +0 -167
  21. package/api/webhook-requests-api.ts +0 -250
  22. package/dist/api/trigger-inbound-webhooks-api.d.ts +0 -96
  23. package/dist/api/trigger-inbound-webhooks-api.js +0 -227
  24. package/dist/api/webhook-requests-api.d.ts +0 -150
  25. package/dist/api/webhook-requests-api.js +0 -264
  26. package/dist/models/list-inbound-webhook-response-class.d.ts +0 -43
  27. package/dist/models/list-inbound-webhook-response-class.js +0 -15
  28. package/dist/models/list-webhook-requests-response-class.d.ts +0 -43
  29. package/dist/models/list-webhook-requests-response-class.js +0 -15
  30. package/dist/models/trigger-inbound-webhook-accepted-response-class.d.ts +0 -36
  31. package/dist/models/trigger-inbound-webhook-accepted-response-class.js +0 -15
  32. package/dist/models/trigger-inbound-webhook-rejected-response-class.d.ts +0 -42
  33. package/dist/models/trigger-inbound-webhook-rejected-response-class.js +0 -15
  34. package/dist/models/update-inbound-webhook-request-dto.d.ts +0 -54
  35. package/dist/models/update-inbound-webhook-request-dto.js +0 -21
  36. package/dist/models/update-inbound-webhook-response-class.d.ts +0 -25
  37. package/dist/models/update-inbound-webhook-response-class.js +0 -15
  38. package/dist/models/webhook-request-class.d.ts +0 -146
  39. package/dist/models/webhook-request-class.js +0 -23
  40. package/models/list-inbound-webhook-response-class.ts +0 -49
  41. package/models/list-webhook-requests-response-class.ts +0 -49
  42. package/models/trigger-inbound-webhook-accepted-response-class.ts +0 -42
  43. package/models/trigger-inbound-webhook-rejected-response-class.ts +0 -48
  44. package/models/update-inbound-webhook-request-dto.ts +0 -63
  45. package/models/update-inbound-webhook-response-class.ts +0 -31
  46. package/models/webhook-request-class.ts +0 -155
@@ -1,167 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL Webhookservice
5
- * The EMIL Webhookservice API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { TriggerInboundWebhookAcceptedResponseClass } from '../models';
25
- // @ts-ignore
26
- import { TriggerInboundWebhookRejectedResponseClass } from '../models';
27
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- import { URL, URLSearchParams } from 'url';
30
- const FormData = require('form-data');
31
- /**
32
- * TriggerInboundWebhooksApi - axios parameter creator
33
- * @export
34
- */
35
- export const TriggerInboundWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
36
- return {
37
- /**
38
- * Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
39
- * @summary Execute incoming webhook
40
- * @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
41
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- triggerIncomingWebhook: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'code' is not null or undefined
47
- assertParamExists('triggerIncomingWebhook', 'code', code)
48
- const localVarPath = `/webhookservice/v1/in/{code}`
49
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
50
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
- let baseOptions;
53
- let baseAccessToken;
54
- if (configuration) {
55
- baseOptions = configuration.baseOptions;
56
- baseAccessToken = configuration.accessToken;
57
- }
58
-
59
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
60
- const localVarHeaderParameter = {} as any;
61
- const localVarQueryParameter = {} as any;
62
-
63
- // authentication bearer required
64
- // http bearer authentication required
65
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
66
-
67
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
- }
70
-
71
-
72
-
73
- setSearchParams(localVarUrlObj, localVarQueryParameter);
74
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
-
77
- return {
78
- url: toPathString(localVarUrlObj),
79
- options: localVarRequestOptions,
80
- };
81
- },
82
- }
83
- };
84
-
85
- /**
86
- * TriggerInboundWebhooksApi - functional programming interface
87
- * @export
88
- */
89
- export const TriggerInboundWebhooksApiFp = function(configuration?: Configuration) {
90
- const localVarAxiosParamCreator = TriggerInboundWebhooksApiAxiosParamCreator(configuration)
91
- return {
92
- /**
93
- * Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
94
- * @summary Execute incoming webhook
95
- * @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
96
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- async triggerIncomingWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TriggerInboundWebhookAcceptedResponseClass>> {
101
- const localVarAxiosArgs = await localVarAxiosParamCreator.triggerIncomingWebhook(code, authorization, options);
102
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
103
- },
104
- }
105
- };
106
-
107
- /**
108
- * TriggerInboundWebhooksApi - factory interface
109
- * @export
110
- */
111
- export const TriggerInboundWebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
112
- const localVarFp = TriggerInboundWebhooksApiFp(configuration)
113
- return {
114
- /**
115
- * Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
116
- * @summary Execute incoming webhook
117
- * @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
118
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
119
- * @param {*} [options] Override http request option.
120
- * @throws {RequiredError}
121
- */
122
- triggerIncomingWebhook(code: string, authorization?: string, options?: any): AxiosPromise<TriggerInboundWebhookAcceptedResponseClass> {
123
- return localVarFp.triggerIncomingWebhook(code, authorization, options).then((request) => request(axios, basePath));
124
- },
125
- };
126
- };
127
-
128
- /**
129
- * Request parameters for triggerIncomingWebhook operation in TriggerInboundWebhooksApi.
130
- * @export
131
- * @interface TriggerInboundWebhooksApiTriggerIncomingWebhookRequest
132
- */
133
- export interface TriggerInboundWebhooksApiTriggerIncomingWebhookRequest {
134
- /**
135
- * The webhook code (e.g., iwh_3g_5yaneKw)
136
- * @type {string}
137
- * @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
138
- */
139
- readonly code: string
140
-
141
- /**
142
- * Bearer Token: provided by the login endpoint under the name accessToken.
143
- * @type {string}
144
- * @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
145
- */
146
- readonly authorization?: string
147
- }
148
-
149
- /**
150
- * TriggerInboundWebhooksApi - object-oriented interface
151
- * @export
152
- * @class TriggerInboundWebhooksApi
153
- * @extends {BaseAPI}
154
- */
155
- export class TriggerInboundWebhooksApi extends BaseAPI {
156
- /**
157
- * Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
158
- * @summary Execute incoming webhook
159
- * @param {TriggerInboundWebhooksApiTriggerIncomingWebhookRequest} requestParameters Request parameters.
160
- * @param {*} [options] Override http request option.
161
- * @throws {RequiredError}
162
- * @memberof TriggerInboundWebhooksApi
163
- */
164
- public triggerIncomingWebhook(requestParameters: TriggerInboundWebhooksApiTriggerIncomingWebhookRequest, options?: AxiosRequestConfig) {
165
- return TriggerInboundWebhooksApiFp(this.configuration).triggerIncomingWebhook(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
166
- }
167
- }
@@ -1,250 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL Webhookservice
5
- * The EMIL Webhookservice API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { ListWebhookRequestsResponseClass } from '../models';
25
- // URLSearchParams not necessarily used
26
- // @ts-ignore
27
- import { URL, URLSearchParams } from 'url';
28
- const FormData = require('form-data');
29
- /**
30
- * WebhookRequestsApi - axios parameter creator
31
- * @export
32
- */
33
- export const WebhookRequestsApiAxiosParamCreator = function (configuration?: Configuration) {
34
- return {
35
- /**
36
- * Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
37
- * @summary List webhook requests
38
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
40
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
41
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy&lt;/i&gt;
42
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
43
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt&lt;/i&gt;
44
- * @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.&lt;br/&gt; &lt;br/&gt;
45
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy&lt;/i&gt;
46
- * @param {*} [options] Override http request option.
47
- * @throws {RequiredError}
48
- */
49
- listWebhookRequests: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
- const localVarPath = `/webhookservice/v1/webhook-requests`;
51
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
- let baseOptions;
54
- let baseAccessToken;
55
- if (configuration) {
56
- baseOptions = configuration.baseOptions;
57
- baseAccessToken = configuration.accessToken;
58
- }
59
-
60
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61
- const localVarHeaderParameter = {} as any;
62
- const localVarQueryParameter = {} as any;
63
-
64
- // authentication bearer required
65
- // http bearer authentication required
66
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
-
68
- if (pageSize !== undefined) {
69
- localVarQueryParameter['pageSize'] = pageSize;
70
- }
71
-
72
- if (pageToken !== undefined) {
73
- localVarQueryParameter['pageToken'] = pageToken;
74
- }
75
-
76
- if (filter !== undefined) {
77
- localVarQueryParameter['filter'] = filter;
78
- }
79
-
80
- if (search !== undefined) {
81
- localVarQueryParameter['search'] = search;
82
- }
83
-
84
- if (order !== undefined) {
85
- localVarQueryParameter['order'] = order;
86
- }
87
-
88
- if (expand !== undefined) {
89
- localVarQueryParameter['expand'] = expand;
90
- }
91
-
92
- if (filters !== undefined) {
93
- localVarQueryParameter['filters'] = filters;
94
- }
95
-
96
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
97
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
98
- }
99
-
100
-
101
-
102
- setSearchParams(localVarUrlObj, localVarQueryParameter);
103
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
104
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
105
-
106
- return {
107
- url: toPathString(localVarUrlObj),
108
- options: localVarRequestOptions,
109
- };
110
- },
111
- }
112
- };
113
-
114
- /**
115
- * WebhookRequestsApi - functional programming interface
116
- * @export
117
- */
118
- export const WebhookRequestsApiFp = function(configuration?: Configuration) {
119
- const localVarAxiosParamCreator = WebhookRequestsApiAxiosParamCreator(configuration)
120
- return {
121
- /**
122
- * Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
123
- * @summary List webhook requests
124
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
125
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
126
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
127
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy&lt;/i&gt;
128
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
129
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt&lt;/i&gt;
130
- * @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.&lt;br/&gt; &lt;br/&gt;
131
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy&lt;/i&gt;
132
- * @param {*} [options] Override http request option.
133
- * @throws {RequiredError}
134
- */
135
- async 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>> {
136
- const localVarAxiosArgs = await localVarAxiosParamCreator.listWebhookRequests(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
137
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
138
- },
139
- }
140
- };
141
-
142
- /**
143
- * WebhookRequestsApi - factory interface
144
- * @export
145
- */
146
- export const WebhookRequestsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
147
- const localVarFp = WebhookRequestsApiFp(configuration)
148
- return {
149
- /**
150
- * Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
151
- * @summary List webhook requests
152
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
154
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
155
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy&lt;/i&gt;
156
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
157
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt&lt;/i&gt;
158
- * @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.&lt;br/&gt; &lt;br/&gt;
159
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy&lt;/i&gt;
160
- * @param {*} [options] Override http request option.
161
- * @throws {RequiredError}
162
- */
163
- listWebhookRequests(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListWebhookRequestsResponseClass> {
164
- return localVarFp.listWebhookRequests(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
165
- },
166
- };
167
- };
168
-
169
- /**
170
- * Request parameters for listWebhookRequests operation in WebhookRequestsApi.
171
- * @export
172
- * @interface WebhookRequestsApiListWebhookRequestsRequest
173
- */
174
- export interface WebhookRequestsApiListWebhookRequestsRequest {
175
- /**
176
- * Bearer Token: provided by the login endpoint under the name accessToken.
177
- * @type {string}
178
- * @memberof WebhookRequestsApiListWebhookRequests
179
- */
180
- readonly authorization?: string
181
-
182
- /**
183
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
184
- * @type {number}
185
- * @memberof WebhookRequestsApiListWebhookRequests
186
- */
187
- readonly pageSize?: number
188
-
189
- /**
190
- * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
191
- * @type {string}
192
- * @memberof WebhookRequestsApiListWebhookRequests
193
- */
194
- readonly pageToken?: string
195
-
196
- /**
197
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy&lt;/i&gt;
198
- * @type {string}
199
- * @memberof WebhookRequestsApiListWebhookRequests
200
- */
201
- readonly filter?: string
202
-
203
- /**
204
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
205
- * @type {string}
206
- * @memberof WebhookRequestsApiListWebhookRequests
207
- */
208
- readonly search?: string
209
-
210
- /**
211
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt&lt;/i&gt;
212
- * @type {string}
213
- * @memberof WebhookRequestsApiListWebhookRequests
214
- */
215
- readonly order?: string
216
-
217
- /**
218
- * 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.&lt;br/&gt; &lt;br/&gt;
219
- * @type {string}
220
- * @memberof WebhookRequestsApiListWebhookRequests
221
- */
222
- readonly expand?: string
223
-
224
- /**
225
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy&lt;/i&gt;
226
- * @type {string}
227
- * @memberof WebhookRequestsApiListWebhookRequests
228
- */
229
- readonly filters?: string
230
- }
231
-
232
- /**
233
- * WebhookRequestsApi - object-oriented interface
234
- * @export
235
- * @class WebhookRequestsApi
236
- * @extends {BaseAPI}
237
- */
238
- export class WebhookRequestsApi extends BaseAPI {
239
- /**
240
- * Lists all webhook requests with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
241
- * @summary List webhook requests
242
- * @param {WebhookRequestsApiListWebhookRequestsRequest} requestParameters Request parameters.
243
- * @param {*} [options] Override http request option.
244
- * @throws {RequiredError}
245
- * @memberof WebhookRequestsApi
246
- */
247
- public listWebhookRequests(requestParameters: WebhookRequestsApiListWebhookRequestsRequest = {}, options?: AxiosRequestConfig) {
248
- return WebhookRequestsApiFp(this.configuration).listWebhookRequests(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
249
- }
250
- }
@@ -1,96 +0,0 @@
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 { 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
- }