@emilgroup/webhook-sdk-node 1.0.1-beta.3 → 1.0.1-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +10 -1
- package/README.md +2 -2
- package/api/{health-api.ts → health-checks-api.ts} +46 -20
- package/api/inbound-webhooks-api.ts +321 -13
- package/api/trigger-inbound-webhooks-api.ts +167 -0
- package/api/webhook-requests-api.ts +250 -0
- package/api.ts +7 -3
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/{health-api.d.ts → health-checks-api.d.ts} +32 -15
- package/dist/api/{health-api.js → health-checks-api.js} +61 -43
- package/dist/api/inbound-webhooks-api.d.ts +189 -13
- package/dist/api/inbound-webhooks-api.js +241 -13
- package/dist/api/trigger-inbound-webhooks-api.d.ts +96 -0
- package/dist/api/trigger-inbound-webhooks-api.js +227 -0
- package/dist/api/webhook-requests-api.d.ts +150 -0
- package/dist/api/webhook-requests-api.js +264 -0
- package/dist/api.d.ts +4 -2
- package/dist/api.js +4 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/create-inbound-webhook-request-dto.d.ts +1 -7
- package/dist/models/create-inbound-webhook-request-dto.js +1 -1
- package/dist/models/create-inbound-webhook-response-class.d.ts +1 -1
- package/dist/models/create-inbound-webhook-response-class.js +1 -1
- package/dist/models/get-inbound-webhook-response-class.d.ts +1 -1
- package/dist/models/get-inbound-webhook-response-class.js +1 -1
- package/dist/models/inbound-webhook-class.d.ts +7 -7
- package/dist/models/inbound-webhook-class.js +1 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/list-inbound-webhook-response-class.d.ts +43 -0
- package/dist/models/list-inbound-webhook-response-class.js +15 -0
- package/dist/models/list-webhook-requests-response-class.d.ts +43 -0
- package/dist/models/list-webhook-requests-response-class.js +15 -0
- package/dist/models/trigger-inbound-webhook-accepted-response-class.d.ts +36 -0
- package/dist/models/trigger-inbound-webhook-accepted-response-class.js +15 -0
- package/dist/models/trigger-inbound-webhook-rejected-response-class.d.ts +42 -0
- package/dist/models/trigger-inbound-webhook-rejected-response-class.js +15 -0
- package/dist/models/update-inbound-webhook-request-dto.d.ts +54 -0
- package/dist/models/update-inbound-webhook-request-dto.js +21 -0
- package/dist/models/update-inbound-webhook-response-class.d.ts +25 -0
- package/dist/models/update-inbound-webhook-response-class.js +15 -0
- package/dist/models/webhook-request-class.d.ts +146 -0
- package/dist/models/webhook-request-class.js +23 -0
- package/index.ts +1 -1
- package/models/create-inbound-webhook-request-dto.ts +1 -7
- package/models/create-inbound-webhook-response-class.ts +1 -1
- package/models/get-inbound-webhook-response-class.ts +1 -1
- package/models/inbound-webhook-class.ts +7 -7
- package/models/index.ts +7 -0
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-inbound-webhook-response-class.ts +49 -0
- package/models/list-webhook-requests-response-class.ts +49 -0
- package/models/trigger-inbound-webhook-accepted-response-class.ts +42 -0
- package/models/trigger-inbound-webhook-rejected-response-class.ts +48 -0
- package/models/update-inbound-webhook-request-dto.ts +63 -0
- package/models/update-inbound-webhook-response-class.ts +31 -0
- package/models/webhook-request-class.ts +155 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
|
-
api/health-api.ts
|
|
6
|
+
api/health-checks-api.ts
|
|
7
7
|
api/inbound-webhooks-api.ts
|
|
8
|
+
api/trigger-inbound-webhooks-api.ts
|
|
9
|
+
api/webhook-requests-api.ts
|
|
8
10
|
base.ts
|
|
9
11
|
common.ts
|
|
10
12
|
configuration.ts
|
|
@@ -17,5 +19,12 @@ models/inbound-webhook-class.ts
|
|
|
17
19
|
models/index.ts
|
|
18
20
|
models/inline-response200.ts
|
|
19
21
|
models/inline-response503.ts
|
|
22
|
+
models/list-inbound-webhook-response-class.ts
|
|
23
|
+
models/list-webhook-requests-response-class.ts
|
|
24
|
+
models/trigger-inbound-webhook-accepted-response-class.ts
|
|
25
|
+
models/trigger-inbound-webhook-rejected-response-class.ts
|
|
26
|
+
models/update-inbound-webhook-request-dto.ts
|
|
27
|
+
models/update-inbound-webhook-response-class.ts
|
|
28
|
+
models/webhook-request-class.ts
|
|
20
29
|
package.json
|
|
21
30
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/webhook-sdk-node@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/webhook-sdk-node@1.0.1-beta.37 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/webhook-sdk-node@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/webhook-sdk-node@1.0.1-beta.37
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* EMIL Webhookservice
|
|
5
5
|
* The EMIL Webhookservice API description
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.3
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -29,18 +29,19 @@ import { InlineResponse503 } from '../models';
|
|
|
29
29
|
import { URL, URLSearchParams } from 'url';
|
|
30
30
|
const FormData = require('form-data');
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* HealthChecksApi - axios parameter creator
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export const
|
|
35
|
+
export const HealthChecksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
38
|
* 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.
|
|
39
39
|
* @summary Health Check
|
|
40
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
41
|
* @param {*} [options] Override http request option.
|
|
41
42
|
* @throws {RequiredError}
|
|
42
43
|
*/
|
|
43
|
-
check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
check: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
45
|
const localVarPath = `/webhookservice/health`;
|
|
45
46
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
47
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -55,6 +56,14 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
55
56
|
const localVarHeaderParameter = {} as any;
|
|
56
57
|
const localVarQueryParameter = {} as any;
|
|
57
58
|
|
|
59
|
+
// authentication bearer required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
|
+
|
|
63
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
64
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
65
|
+
}
|
|
66
|
+
|
|
58
67
|
|
|
59
68
|
|
|
60
69
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -70,59 +79,76 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
70
79
|
};
|
|
71
80
|
|
|
72
81
|
/**
|
|
73
|
-
*
|
|
82
|
+
* HealthChecksApi - functional programming interface
|
|
74
83
|
* @export
|
|
75
84
|
*/
|
|
76
|
-
export const
|
|
77
|
-
const localVarAxiosParamCreator =
|
|
85
|
+
export const HealthChecksApiFp = function(configuration?: Configuration) {
|
|
86
|
+
const localVarAxiosParamCreator = HealthChecksApiAxiosParamCreator(configuration)
|
|
78
87
|
return {
|
|
79
88
|
/**
|
|
80
89
|
* 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.
|
|
81
90
|
* @summary Health Check
|
|
91
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
82
92
|
* @param {*} [options] Override http request option.
|
|
83
93
|
* @throws {RequiredError}
|
|
84
94
|
*/
|
|
85
|
-
async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
|
|
86
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
|
|
95
|
+
async check(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
|
|
96
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.check(authorization, options);
|
|
87
97
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
88
98
|
},
|
|
89
99
|
}
|
|
90
100
|
};
|
|
91
101
|
|
|
92
102
|
/**
|
|
93
|
-
*
|
|
103
|
+
* HealthChecksApi - factory interface
|
|
94
104
|
* @export
|
|
95
105
|
*/
|
|
96
|
-
export const
|
|
97
|
-
const localVarFp =
|
|
106
|
+
export const HealthChecksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
107
|
+
const localVarFp = HealthChecksApiFp(configuration)
|
|
98
108
|
return {
|
|
99
109
|
/**
|
|
100
110
|
* 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.
|
|
101
111
|
* @summary Health Check
|
|
112
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
102
113
|
* @param {*} [options] Override http request option.
|
|
103
114
|
* @throws {RequiredError}
|
|
104
115
|
*/
|
|
105
|
-
check(options?: any): AxiosPromise<InlineResponse200> {
|
|
106
|
-
return localVarFp.check(options).then((request) => request(axios, basePath));
|
|
116
|
+
check(authorization?: string, options?: any): AxiosPromise<InlineResponse200> {
|
|
117
|
+
return localVarFp.check(authorization, options).then((request) => request(axios, basePath));
|
|
107
118
|
},
|
|
108
119
|
};
|
|
109
120
|
};
|
|
110
121
|
|
|
111
122
|
/**
|
|
112
|
-
*
|
|
123
|
+
* Request parameters for check operation in HealthChecksApi.
|
|
124
|
+
* @export
|
|
125
|
+
* @interface HealthChecksApiCheckRequest
|
|
126
|
+
*/
|
|
127
|
+
export interface HealthChecksApiCheckRequest {
|
|
128
|
+
/**
|
|
129
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof HealthChecksApiCheck
|
|
132
|
+
*/
|
|
133
|
+
readonly authorization?: string
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* HealthChecksApi - object-oriented interface
|
|
113
138
|
* @export
|
|
114
|
-
* @class
|
|
139
|
+
* @class HealthChecksApi
|
|
115
140
|
* @extends {BaseAPI}
|
|
116
141
|
*/
|
|
117
|
-
export class
|
|
142
|
+
export class HealthChecksApi extends BaseAPI {
|
|
118
143
|
/**
|
|
119
144
|
* 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.
|
|
120
145
|
* @summary Health Check
|
|
146
|
+
* @param {HealthChecksApiCheckRequest} requestParameters Request parameters.
|
|
121
147
|
* @param {*} [options] Override http request option.
|
|
122
148
|
* @throws {RequiredError}
|
|
123
|
-
* @memberof
|
|
149
|
+
* @memberof HealthChecksApi
|
|
124
150
|
*/
|
|
125
|
-
public check(options?: AxiosRequestConfig) {
|
|
126
|
-
return
|
|
151
|
+
public check(requestParameters: HealthChecksApiCheckRequest = {}, options?: AxiosRequestConfig) {
|
|
152
|
+
return HealthChecksApiFp(this.configuration).check(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
127
153
|
}
|
|
128
154
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* EMIL Webhookservice
|
|
5
5
|
* The EMIL Webhookservice API description
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.19.3
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,6 +26,12 @@ import { CreateInboundWebhookRequestDto } from '../models';
|
|
|
26
26
|
import { CreateInboundWebhookResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { GetInboundWebhookResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListInboundWebhookResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateInboundWebhookRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateInboundWebhookResponseClass } from '../models';
|
|
29
35
|
// URLSearchParams not necessarily used
|
|
30
36
|
// @ts-ignore
|
|
31
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -37,7 +43,7 @@ const FormData = require('form-data');
|
|
|
37
43
|
export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
44
|
return {
|
|
39
45
|
/**
|
|
40
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
46
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
41
47
|
* @summary Create the inbound webhook
|
|
42
48
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
43
49
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -84,7 +90,7 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
|
|
|
84
90
|
};
|
|
85
91
|
},
|
|
86
92
|
/**
|
|
87
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
93
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
88
94
|
* @summary Delete the inbound webhook
|
|
89
95
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
90
96
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -129,7 +135,7 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
|
|
|
129
135
|
};
|
|
130
136
|
},
|
|
131
137
|
/**
|
|
132
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
138
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
133
139
|
* @summary Retrieve the inbound webhook
|
|
134
140
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
135
141
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -168,6 +174,133 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
|
|
|
168
174
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
175
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
170
176
|
|
|
177
|
+
return {
|
|
178
|
+
url: toPathString(localVarUrlObj),
|
|
179
|
+
options: localVarRequestOptions,
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
184
|
+
* @summary List inbound webhooks
|
|
185
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
186
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
187
|
+
* @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.
|
|
188
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
189
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
190
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
191
|
+
* @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/>
|
|
192
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
listInboundWebhooks: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
|
+
const localVarPath = `/webhookservice/v1/inbound-webhooks`;
|
|
198
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
200
|
+
let baseOptions;
|
|
201
|
+
let baseAccessToken;
|
|
202
|
+
if (configuration) {
|
|
203
|
+
baseOptions = configuration.baseOptions;
|
|
204
|
+
baseAccessToken = configuration.accessToken;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
208
|
+
const localVarHeaderParameter = {} as any;
|
|
209
|
+
const localVarQueryParameter = {} as any;
|
|
210
|
+
|
|
211
|
+
// authentication bearer required
|
|
212
|
+
// http bearer authentication required
|
|
213
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
214
|
+
|
|
215
|
+
if (pageSize !== undefined) {
|
|
216
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (pageToken !== undefined) {
|
|
220
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (filter !== undefined) {
|
|
224
|
+
localVarQueryParameter['filter'] = filter;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (search !== undefined) {
|
|
228
|
+
localVarQueryParameter['search'] = search;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (order !== undefined) {
|
|
232
|
+
localVarQueryParameter['order'] = order;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (expand !== undefined) {
|
|
236
|
+
localVarQueryParameter['expand'] = expand;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (filters !== undefined) {
|
|
240
|
+
localVarQueryParameter['filters'] = filters;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
244
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
252
|
+
|
|
253
|
+
return {
|
|
254
|
+
url: toPathString(localVarUrlObj),
|
|
255
|
+
options: localVarRequestOptions,
|
|
256
|
+
};
|
|
257
|
+
},
|
|
258
|
+
/**
|
|
259
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
260
|
+
* @summary Update the inbound webhook
|
|
261
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
262
|
+
* @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
|
|
263
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
264
|
+
* @param {*} [options] Override http request option.
|
|
265
|
+
* @throws {RequiredError}
|
|
266
|
+
*/
|
|
267
|
+
updateInboundWebhook: async (code: string, updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
268
|
+
// verify required parameter 'code' is not null or undefined
|
|
269
|
+
assertParamExists('updateInboundWebhook', 'code', code)
|
|
270
|
+
// verify required parameter 'updateInboundWebhookRequestDto' is not null or undefined
|
|
271
|
+
assertParamExists('updateInboundWebhook', 'updateInboundWebhookRequestDto', updateInboundWebhookRequestDto)
|
|
272
|
+
const localVarPath = `/webhookservice/v1/inbound-webhooks/{code}`
|
|
273
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
274
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
275
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
276
|
+
let baseOptions;
|
|
277
|
+
let baseAccessToken;
|
|
278
|
+
if (configuration) {
|
|
279
|
+
baseOptions = configuration.baseOptions;
|
|
280
|
+
baseAccessToken = configuration.accessToken;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
284
|
+
const localVarHeaderParameter = {} as any;
|
|
285
|
+
const localVarQueryParameter = {} as any;
|
|
286
|
+
|
|
287
|
+
// authentication bearer required
|
|
288
|
+
// http bearer authentication required
|
|
289
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
290
|
+
|
|
291
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
292
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
298
|
+
|
|
299
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
300
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
302
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateInboundWebhookRequestDto, localVarRequestOptions, configuration)
|
|
303
|
+
|
|
171
304
|
return {
|
|
172
305
|
url: toPathString(localVarUrlObj),
|
|
173
306
|
options: localVarRequestOptions,
|
|
@@ -184,7 +317,7 @@ export const InboundWebhooksApiFp = function(configuration?: Configuration) {
|
|
|
184
317
|
const localVarAxiosParamCreator = InboundWebhooksApiAxiosParamCreator(configuration)
|
|
185
318
|
return {
|
|
186
319
|
/**
|
|
187
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
320
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
188
321
|
* @summary Create the inbound webhook
|
|
189
322
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
190
323
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -196,7 +329,7 @@ export const InboundWebhooksApiFp = function(configuration?: Configuration) {
|
|
|
196
329
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
197
330
|
},
|
|
198
331
|
/**
|
|
199
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
332
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
200
333
|
* @summary Delete the inbound webhook
|
|
201
334
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
202
335
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -208,7 +341,7 @@ export const InboundWebhooksApiFp = function(configuration?: Configuration) {
|
|
|
208
341
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
209
342
|
},
|
|
210
343
|
/**
|
|
211
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
344
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
212
345
|
* @summary Retrieve the inbound webhook
|
|
213
346
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
214
347
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -219,6 +352,37 @@ export const InboundWebhooksApiFp = function(configuration?: Configuration) {
|
|
|
219
352
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundWebhook(code, authorization, options);
|
|
220
353
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
221
354
|
},
|
|
355
|
+
/**
|
|
356
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
357
|
+
* @summary List inbound webhooks
|
|
358
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
359
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
360
|
+
* @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.
|
|
361
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
362
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
363
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
364
|
+
* @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/>
|
|
365
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
async listInboundWebhooks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInboundWebhookResponseClass>> {
|
|
370
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundWebhooks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
371
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
375
|
+
* @summary Update the inbound webhook
|
|
376
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
377
|
+
* @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
|
|
378
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
async updateInboundWebhook(code: string, updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateInboundWebhookResponseClass>> {
|
|
383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateInboundWebhook(code, updateInboundWebhookRequestDto, authorization, options);
|
|
384
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
385
|
+
},
|
|
222
386
|
}
|
|
223
387
|
};
|
|
224
388
|
|
|
@@ -230,7 +394,7 @@ export const InboundWebhooksApiFactory = function (configuration?: Configuration
|
|
|
230
394
|
const localVarFp = InboundWebhooksApiFp(configuration)
|
|
231
395
|
return {
|
|
232
396
|
/**
|
|
233
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
397
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
234
398
|
* @summary Create the inbound webhook
|
|
235
399
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
236
400
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -241,7 +405,7 @@ export const InboundWebhooksApiFactory = function (configuration?: Configuration
|
|
|
241
405
|
return localVarFp.createInboundWebhook(createInboundWebhookRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
242
406
|
},
|
|
243
407
|
/**
|
|
244
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
408
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
245
409
|
* @summary Delete the inbound webhook
|
|
246
410
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
247
411
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -252,7 +416,7 @@ export const InboundWebhooksApiFactory = function (configuration?: Configuration
|
|
|
252
416
|
return localVarFp.deleteInboundWebhook(code, authorization, options).then((request) => request(axios, basePath));
|
|
253
417
|
},
|
|
254
418
|
/**
|
|
255
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
419
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
256
420
|
* @summary Retrieve the inbound webhook
|
|
257
421
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
258
422
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -262,6 +426,35 @@ export const InboundWebhooksApiFactory = function (configuration?: Configuration
|
|
|
262
426
|
getInboundWebhook(code: string, authorization?: string, options?: any): AxiosPromise<GetInboundWebhookResponseClass> {
|
|
263
427
|
return localVarFp.getInboundWebhook(code, authorization, options).then((request) => request(axios, basePath));
|
|
264
428
|
},
|
|
429
|
+
/**
|
|
430
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
431
|
+
* @summary List inbound webhooks
|
|
432
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
433
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
434
|
+
* @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.
|
|
435
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
436
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
437
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
438
|
+
* @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/>
|
|
439
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
440
|
+
* @param {*} [options] Override http request option.
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
*/
|
|
443
|
+
listInboundWebhooks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInboundWebhookResponseClass> {
|
|
444
|
+
return localVarFp.listInboundWebhooks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
445
|
+
},
|
|
446
|
+
/**
|
|
447
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
448
|
+
* @summary Update the inbound webhook
|
|
449
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
450
|
+
* @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
|
|
451
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
452
|
+
* @param {*} [options] Override http request option.
|
|
453
|
+
* @throws {RequiredError}
|
|
454
|
+
*/
|
|
455
|
+
updateInboundWebhook(code: string, updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateInboundWebhookResponseClass> {
|
|
456
|
+
return localVarFp.updateInboundWebhook(code, updateInboundWebhookRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
457
|
+
},
|
|
265
458
|
};
|
|
266
459
|
};
|
|
267
460
|
|
|
@@ -328,6 +521,97 @@ export interface InboundWebhooksApiGetInboundWebhookRequest {
|
|
|
328
521
|
readonly authorization?: string
|
|
329
522
|
}
|
|
330
523
|
|
|
524
|
+
/**
|
|
525
|
+
* Request parameters for listInboundWebhooks operation in InboundWebhooksApi.
|
|
526
|
+
* @export
|
|
527
|
+
* @interface InboundWebhooksApiListInboundWebhooksRequest
|
|
528
|
+
*/
|
|
529
|
+
export interface InboundWebhooksApiListInboundWebhooksRequest {
|
|
530
|
+
/**
|
|
531
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
532
|
+
* @type {string}
|
|
533
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
534
|
+
*/
|
|
535
|
+
readonly authorization?: string
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
539
|
+
* @type {number}
|
|
540
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
541
|
+
*/
|
|
542
|
+
readonly pageSize?: number
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* 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.
|
|
546
|
+
* @type {string}
|
|
547
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
548
|
+
*/
|
|
549
|
+
readonly pageToken?: string
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
553
|
+
* @type {string}
|
|
554
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
555
|
+
*/
|
|
556
|
+
readonly filter?: string
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
560
|
+
* @type {string}
|
|
561
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
562
|
+
*/
|
|
563
|
+
readonly search?: string
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
567
|
+
* @type {string}
|
|
568
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
569
|
+
*/
|
|
570
|
+
readonly order?: string
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* 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/>
|
|
574
|
+
* @type {string}
|
|
575
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
576
|
+
*/
|
|
577
|
+
readonly expand?: string
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
581
|
+
* @type {string}
|
|
582
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
583
|
+
*/
|
|
584
|
+
readonly filters?: string
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Request parameters for updateInboundWebhook operation in InboundWebhooksApi.
|
|
589
|
+
* @export
|
|
590
|
+
* @interface InboundWebhooksApiUpdateInboundWebhookRequest
|
|
591
|
+
*/
|
|
592
|
+
export interface InboundWebhooksApiUpdateInboundWebhookRequest {
|
|
593
|
+
/**
|
|
594
|
+
* Unique identifier code for the inbound webhook
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof InboundWebhooksApiUpdateInboundWebhook
|
|
597
|
+
*/
|
|
598
|
+
readonly code: string
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* @type {UpdateInboundWebhookRequestDto}
|
|
603
|
+
* @memberof InboundWebhooksApiUpdateInboundWebhook
|
|
604
|
+
*/
|
|
605
|
+
readonly updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
609
|
+
* @type {string}
|
|
610
|
+
* @memberof InboundWebhooksApiUpdateInboundWebhook
|
|
611
|
+
*/
|
|
612
|
+
readonly authorization?: string
|
|
613
|
+
}
|
|
614
|
+
|
|
331
615
|
/**
|
|
332
616
|
* InboundWebhooksApi - object-oriented interface
|
|
333
617
|
* @export
|
|
@@ -336,7 +620,7 @@ export interface InboundWebhooksApiGetInboundWebhookRequest {
|
|
|
336
620
|
*/
|
|
337
621
|
export class InboundWebhooksApi extends BaseAPI {
|
|
338
622
|
/**
|
|
339
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
623
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
340
624
|
* @summary Create the inbound webhook
|
|
341
625
|
* @param {InboundWebhooksApiCreateInboundWebhookRequest} requestParameters Request parameters.
|
|
342
626
|
* @param {*} [options] Override http request option.
|
|
@@ -348,7 +632,7 @@ export class InboundWebhooksApi extends BaseAPI {
|
|
|
348
632
|
}
|
|
349
633
|
|
|
350
634
|
/**
|
|
351
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
635
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
352
636
|
* @summary Delete the inbound webhook
|
|
353
637
|
* @param {InboundWebhooksApiDeleteInboundWebhookRequest} requestParameters Request parameters.
|
|
354
638
|
* @param {*} [options] Override http request option.
|
|
@@ -360,7 +644,7 @@ export class InboundWebhooksApi extends BaseAPI {
|
|
|
360
644
|
}
|
|
361
645
|
|
|
362
646
|
/**
|
|
363
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
647
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
364
648
|
* @summary Retrieve the inbound webhook
|
|
365
649
|
* @param {InboundWebhooksApiGetInboundWebhookRequest} requestParameters Request parameters.
|
|
366
650
|
* @param {*} [options] Override http request option.
|
|
@@ -370,4 +654,28 @@ export class InboundWebhooksApi extends BaseAPI {
|
|
|
370
654
|
public getInboundWebhook(requestParameters: InboundWebhooksApiGetInboundWebhookRequest, options?: AxiosRequestConfig) {
|
|
371
655
|
return InboundWebhooksApiFp(this.configuration).getInboundWebhook(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
372
656
|
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
660
|
+
* @summary List inbound webhooks
|
|
661
|
+
* @param {InboundWebhooksApiListInboundWebhooksRequest} requestParameters Request parameters.
|
|
662
|
+
* @param {*} [options] Override http request option.
|
|
663
|
+
* @throws {RequiredError}
|
|
664
|
+
* @memberof InboundWebhooksApi
|
|
665
|
+
*/
|
|
666
|
+
public listInboundWebhooks(requestParameters: InboundWebhooksApiListInboundWebhooksRequest = {}, options?: AxiosRequestConfig) {
|
|
667
|
+
return InboundWebhooksApiFp(this.configuration).listInboundWebhooks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
672
|
+
* @summary Update the inbound webhook
|
|
673
|
+
* @param {InboundWebhooksApiUpdateInboundWebhookRequest} requestParameters Request parameters.
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
* @memberof InboundWebhooksApi
|
|
677
|
+
*/
|
|
678
|
+
public updateInboundWebhook(requestParameters: InboundWebhooksApiUpdateInboundWebhookRequest, options?: AxiosRequestConfig) {
|
|
679
|
+
return InboundWebhooksApiFp(this.configuration).updateInboundWebhook(requestParameters.code, requestParameters.updateInboundWebhookRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
680
|
+
}
|
|
373
681
|
}
|