@emilgroup/webhook-sdk-node 1.0.1-beta.1 → 1.0.1-beta.12
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 +9 -1
- package/README.md +2 -2
- package/api/{health-api.ts → health-checks-api.ts} +45 -19
- package/api/inbound-webhooks-api.ts +417 -8
- package/api/trigger-inbound-webhooks-api.ts +178 -0
- package/api/webhook-requests-api.ts +250 -0
- package/api.ts +6 -2
- package/dist/api/{health-api.d.ts → health-checks-api.d.ts} +31 -14
- package/dist/api/{health-api.js → health-checks-api.js} +60 -42
- package/dist/api/inbound-webhooks-api.d.ts +239 -8
- package/dist/api/inbound-webhooks-api.js +328 -8
- package/dist/api/trigger-inbound-webhooks-api.d.ts +105 -0
- package/dist/api/trigger-inbound-webhooks-api.js +233 -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 +3 -1
- package/dist/api.js +3 -1
- package/dist/models/create-inbound-webhook-request-dto.d.ts +0 -6
- package/dist/models/inbound-webhook-class.d.ts +6 -6
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- 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-response-class.d.ts +42 -0
- package/dist/models/trigger-inbound-webhook-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 +139 -0
- package/dist/models/webhook-request-class.js +22 -0
- package/models/create-inbound-webhook-request-dto.ts +0 -6
- package/models/inbound-webhook-class.ts +6 -6
- package/models/index.ts +6 -0
- 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-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 +148 -0
- package/package.json +2 -2
|
@@ -0,0 +1,178 @@
|
|
|
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 { TriggerInboundWebhookResponseClass } from '../models';
|
|
25
|
+
// URLSearchParams not necessarily used
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { URL, URLSearchParams } from 'url';
|
|
28
|
+
const FormData = require('form-data');
|
|
29
|
+
/**
|
|
30
|
+
* TriggerInboundWebhooksApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const TriggerInboundWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
37
|
+
* @summary Execute incoming webhook
|
|
38
|
+
* @param {string} tenantSlug
|
|
39
|
+
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
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: async (tenantSlug: string, slugAndCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
// verify required parameter 'tenantSlug' is not null or undefined
|
|
46
|
+
assertParamExists('triggerIncomingWebhook', 'tenantSlug', tenantSlug)
|
|
47
|
+
// verify required parameter 'slugAndCode' is not null or undefined
|
|
48
|
+
assertParamExists('triggerIncomingWebhook', 'slugAndCode', slugAndCode)
|
|
49
|
+
const localVarPath = `/webhookservice/v1/in/{tenantSlug}/{slugAndCode}`
|
|
50
|
+
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
|
|
51
|
+
.replace(`{${"slugAndCode"}}`, encodeURIComponent(String(slugAndCode)));
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
let baseAccessToken;
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions;
|
|
58
|
+
baseAccessToken = configuration.accessToken;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
62
|
+
const localVarHeaderParameter = {} as any;
|
|
63
|
+
const localVarQueryParameter = {} as any;
|
|
64
|
+
|
|
65
|
+
// authentication bearer required
|
|
66
|
+
// http bearer authentication required
|
|
67
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
68
|
+
|
|
69
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
70
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* TriggerInboundWebhooksApi - functional programming interface
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const TriggerInboundWebhooksApiFp = function(configuration?: Configuration) {
|
|
92
|
+
const localVarAxiosParamCreator = TriggerInboundWebhooksApiAxiosParamCreator(configuration)
|
|
93
|
+
return {
|
|
94
|
+
/**
|
|
95
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
96
|
+
* @summary Execute incoming webhook
|
|
97
|
+
* @param {string} tenantSlug
|
|
98
|
+
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
99
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
async triggerIncomingWebhook(tenantSlug: string, slugAndCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TriggerInboundWebhookResponseClass>> {
|
|
104
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.triggerIncomingWebhook(tenantSlug, slugAndCode, authorization, options);
|
|
105
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
106
|
+
},
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* TriggerInboundWebhooksApi - factory interface
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export const TriggerInboundWebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
115
|
+
const localVarFp = TriggerInboundWebhooksApiFp(configuration)
|
|
116
|
+
return {
|
|
117
|
+
/**
|
|
118
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
119
|
+
* @summary Execute incoming webhook
|
|
120
|
+
* @param {string} tenantSlug
|
|
121
|
+
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
122
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
triggerIncomingWebhook(tenantSlug: string, slugAndCode: string, authorization?: string, options?: any): AxiosPromise<TriggerInboundWebhookResponseClass> {
|
|
127
|
+
return localVarFp.triggerIncomingWebhook(tenantSlug, slugAndCode, authorization, options).then((request) => request(axios, basePath));
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Request parameters for triggerIncomingWebhook operation in TriggerInboundWebhooksApi.
|
|
134
|
+
* @export
|
|
135
|
+
* @interface TriggerInboundWebhooksApiTriggerIncomingWebhookRequest
|
|
136
|
+
*/
|
|
137
|
+
export interface TriggerInboundWebhooksApiTriggerIncomingWebhookRequest {
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
142
|
+
*/
|
|
143
|
+
readonly tenantSlug: string
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
149
|
+
*/
|
|
150
|
+
readonly slugAndCode: string
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
156
|
+
*/
|
|
157
|
+
readonly authorization?: string
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* TriggerInboundWebhooksApi - object-oriented interface
|
|
162
|
+
* @export
|
|
163
|
+
* @class TriggerInboundWebhooksApi
|
|
164
|
+
* @extends {BaseAPI}
|
|
165
|
+
*/
|
|
166
|
+
export class TriggerInboundWebhooksApi extends BaseAPI {
|
|
167
|
+
/**
|
|
168
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
169
|
+
* @summary Execute incoming webhook
|
|
170
|
+
* @param {TriggerInboundWebhooksApiTriggerIncomingWebhookRequest} requestParameters Request parameters.
|
|
171
|
+
* @param {*} [options] Override http request option.
|
|
172
|
+
* @throws {RequiredError}
|
|
173
|
+
* @memberof TriggerInboundWebhooksApi
|
|
174
|
+
*/
|
|
175
|
+
public triggerIncomingWebhook(requestParameters: TriggerInboundWebhooksApiTriggerIncomingWebhookRequest, options?: AxiosRequestConfig) {
|
|
176
|
+
return TriggerInboundWebhooksApiFp(this.configuration).triggerIncomingWebhook(requestParameters.tenantSlug, requestParameters.slugAndCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -0,0 +1,250 @@
|
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
42
|
+
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
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.<br/> <br/>
|
|
45
|
+
* @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, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
128
|
+
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
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.<br/> <br/>
|
|
131
|
+
* @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, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
156
|
+
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
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.<br/> <br/>
|
|
159
|
+
* @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, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
198
|
+
* @type {string}
|
|
199
|
+
* @memberof WebhookRequestsApiListWebhookRequests
|
|
200
|
+
*/
|
|
201
|
+
readonly filter?: string
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
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.<br/> <br/>
|
|
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.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
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
|
+
}
|
package/api.ts
CHANGED
|
@@ -24,10 +24,14 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
-
import {
|
|
27
|
+
import { HealthChecksApi } from './api';
|
|
28
28
|
import { InboundWebhooksApi } from './api';
|
|
29
|
+
import { TriggerInboundWebhooksApi } from './api';
|
|
30
|
+
import { WebhookRequestsApi } from './api';
|
|
29
31
|
|
|
30
32
|
|
|
31
|
-
export * from './api/health-api';
|
|
33
|
+
export * from './api/health-checks-api';
|
|
32
34
|
export * from './api/inbound-webhooks-api';
|
|
35
|
+
export * from './api/trigger-inbound-webhooks-api';
|
|
36
|
+
export * from './api/webhook-requests-api';
|
|
33
37
|
|
|
@@ -14,57 +14,74 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { InlineResponse200 } from '../models';
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* HealthChecksApi - axios parameter creator
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const HealthChecksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
22
|
* Returns the health status of the webhook service. This endpoint is used to monitor the operational status of the webhook service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
23
23
|
* @summary Health Check
|
|
24
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
24
25
|
* @param {*} [options] Override http request option.
|
|
25
26
|
* @throws {RequiredError}
|
|
26
27
|
*/
|
|
27
|
-
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
check: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* HealthChecksApi - functional programming interface
|
|
31
32
|
* @export
|
|
32
33
|
*/
|
|
33
|
-
export declare const
|
|
34
|
+
export declare const HealthChecksApiFp: (configuration?: Configuration) => {
|
|
34
35
|
/**
|
|
35
36
|
* Returns the health status of the webhook service. This endpoint is used to monitor the operational status of the webhook service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
36
37
|
* @summary Health Check
|
|
38
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
37
39
|
* @param {*} [options] Override http request option.
|
|
38
40
|
* @throws {RequiredError}
|
|
39
41
|
*/
|
|
40
|
-
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
42
|
+
check(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
41
43
|
};
|
|
42
44
|
/**
|
|
43
|
-
*
|
|
45
|
+
* HealthChecksApi - factory interface
|
|
44
46
|
* @export
|
|
45
47
|
*/
|
|
46
|
-
export declare const
|
|
48
|
+
export declare const HealthChecksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
49
|
/**
|
|
48
50
|
* Returns the health status of the webhook service. This endpoint is used to monitor the operational status of the webhook service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
49
51
|
* @summary Health Check
|
|
52
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
53
|
* @param {*} [options] Override http request option.
|
|
51
54
|
* @throws {RequiredError}
|
|
52
55
|
*/
|
|
53
|
-
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
56
|
+
check(authorization?: string, options?: any): AxiosPromise<InlineResponse200>;
|
|
54
57
|
};
|
|
55
58
|
/**
|
|
56
|
-
*
|
|
59
|
+
* Request parameters for check operation in HealthChecksApi.
|
|
57
60
|
* @export
|
|
58
|
-
* @
|
|
61
|
+
* @interface HealthChecksApiCheckRequest
|
|
62
|
+
*/
|
|
63
|
+
export interface HealthChecksApiCheckRequest {
|
|
64
|
+
/**
|
|
65
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof HealthChecksApiCheck
|
|
68
|
+
*/
|
|
69
|
+
readonly authorization?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* HealthChecksApi - object-oriented interface
|
|
73
|
+
* @export
|
|
74
|
+
* @class HealthChecksApi
|
|
59
75
|
* @extends {BaseAPI}
|
|
60
76
|
*/
|
|
61
|
-
export declare class
|
|
77
|
+
export declare class HealthChecksApi extends BaseAPI {
|
|
62
78
|
/**
|
|
63
79
|
* Returns the health status of the webhook service. This endpoint is used to monitor the operational status of the webhook service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
64
80
|
* @summary Health Check
|
|
81
|
+
* @param {HealthChecksApiCheckRequest} requestParameters Request parameters.
|
|
65
82
|
* @param {*} [options] Override http request option.
|
|
66
83
|
* @throws {RequiredError}
|
|
67
|
-
* @memberof
|
|
84
|
+
* @memberof HealthChecksApi
|
|
68
85
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
86
|
+
check(requestParameters?: HealthChecksApiCheckRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
70
87
|
}
|