@emilgroup/webhook-sdk-node 1.0.1-beta.3 → 1.0.1-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +10 -1
- package/README.md +2 -2
- package/api/{health-api.ts → health-checks-api.ts} +46 -20
- package/api/inbound-webhooks-api.ts +321 -13
- package/api/trigger-inbound-webhooks-api.ts +167 -0
- package/api/webhook-requests-api.ts +250 -0
- package/api.ts +7 -3
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/{health-api.d.ts → health-checks-api.d.ts} +32 -15
- package/dist/api/{health-api.js → health-checks-api.js} +61 -43
- package/dist/api/inbound-webhooks-api.d.ts +189 -13
- package/dist/api/inbound-webhooks-api.js +241 -13
- package/dist/api/trigger-inbound-webhooks-api.d.ts +96 -0
- package/dist/api/trigger-inbound-webhooks-api.js +227 -0
- package/dist/api/webhook-requests-api.d.ts +150 -0
- package/dist/api/webhook-requests-api.js +264 -0
- package/dist/api.d.ts +4 -2
- package/dist/api.js +4 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/create-inbound-webhook-request-dto.d.ts +1 -7
- package/dist/models/create-inbound-webhook-request-dto.js +1 -1
- package/dist/models/create-inbound-webhook-response-class.d.ts +1 -1
- package/dist/models/create-inbound-webhook-response-class.js +1 -1
- package/dist/models/get-inbound-webhook-response-class.d.ts +1 -1
- package/dist/models/get-inbound-webhook-response-class.js +1 -1
- package/dist/models/inbound-webhook-class.d.ts +7 -7
- package/dist/models/inbound-webhook-class.js +1 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/list-inbound-webhook-response-class.d.ts +43 -0
- package/dist/models/list-inbound-webhook-response-class.js +15 -0
- package/dist/models/list-webhook-requests-response-class.d.ts +43 -0
- package/dist/models/list-webhook-requests-response-class.js +15 -0
- package/dist/models/trigger-inbound-webhook-accepted-response-class.d.ts +36 -0
- package/dist/models/trigger-inbound-webhook-accepted-response-class.js +15 -0
- package/dist/models/trigger-inbound-webhook-rejected-response-class.d.ts +42 -0
- package/dist/models/trigger-inbound-webhook-rejected-response-class.js +15 -0
- package/dist/models/update-inbound-webhook-request-dto.d.ts +54 -0
- package/dist/models/update-inbound-webhook-request-dto.js +21 -0
- package/dist/models/update-inbound-webhook-response-class.d.ts +25 -0
- package/dist/models/update-inbound-webhook-response-class.js +15 -0
- package/dist/models/webhook-request-class.d.ts +146 -0
- package/dist/models/webhook-request-class.js +23 -0
- package/index.ts +1 -1
- package/models/create-inbound-webhook-request-dto.ts +1 -7
- package/models/create-inbound-webhook-response-class.ts +1 -1
- package/models/get-inbound-webhook-response-class.ts +1 -1
- package/models/inbound-webhook-class.ts +7 -7
- package/models/index.ts +7 -0
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-inbound-webhook-response-class.ts +49 -0
- package/models/list-webhook-requests-response-class.ts +49 -0
- package/models/trigger-inbound-webhook-accepted-response-class.ts +42 -0
- package/models/trigger-inbound-webhook-rejected-response-class.ts +48 -0
- package/models/update-inbound-webhook-request-dto.ts +63 -0
- package/models/update-inbound-webhook-response-class.ts +31 -0
- package/models/webhook-request-class.ts +155 -0
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* EMIL Webhookservice
|
|
6
6
|
* The EMIL Webhookservice API description
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.19.3
|
|
9
9
|
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.HealthChecksApi = exports.HealthChecksApiFactory = exports.HealthChecksApiFp = exports.HealthChecksApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,64 +90,79 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* HealthChecksApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var HealthChecksApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
* 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
101
|
* @summary Health Check
|
|
102
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
102
103
|
* @param {*} [options] Override http request option.
|
|
103
104
|
* @throws {RequiredError}
|
|
104
105
|
*/
|
|
105
|
-
check: function (options) {
|
|
106
|
+
check: function (authorization, options) {
|
|
106
107
|
if (options === void 0) { options = {}; }
|
|
107
108
|
return __awaiter(_this, void 0, void 0, function () {
|
|
108
109
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
109
110
|
return __generator(this, function (_a) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
switch (_a.label) {
|
|
112
|
+
case 0:
|
|
113
|
+
localVarPath = "/webhookservice/health";
|
|
114
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
baseAccessToken = configuration.accessToken;
|
|
118
|
+
}
|
|
119
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
120
|
+
localVarHeaderParameter = {};
|
|
121
|
+
localVarQueryParameter = {};
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
125
|
+
case 1:
|
|
126
|
+
// authentication bearer required
|
|
127
|
+
// http bearer authentication required
|
|
128
|
+
_a.sent();
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
|
+
}
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
return [2 /*return*/, {
|
|
136
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
}];
|
|
115
139
|
}
|
|
116
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
117
|
-
localVarHeaderParameter = {};
|
|
118
|
-
localVarQueryParameter = {};
|
|
119
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
120
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
122
|
-
return [2 /*return*/, {
|
|
123
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
124
|
-
options: localVarRequestOptions,
|
|
125
|
-
}];
|
|
126
140
|
});
|
|
127
141
|
});
|
|
128
142
|
},
|
|
129
143
|
};
|
|
130
144
|
};
|
|
131
|
-
exports.
|
|
145
|
+
exports.HealthChecksApiAxiosParamCreator = HealthChecksApiAxiosParamCreator;
|
|
132
146
|
/**
|
|
133
|
-
*
|
|
147
|
+
* HealthChecksApi - functional programming interface
|
|
134
148
|
* @export
|
|
135
149
|
*/
|
|
136
|
-
var
|
|
137
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
150
|
+
var HealthChecksApiFp = function (configuration) {
|
|
151
|
+
var localVarAxiosParamCreator = (0, exports.HealthChecksApiAxiosParamCreator)(configuration);
|
|
138
152
|
return {
|
|
139
153
|
/**
|
|
140
154
|
* 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.
|
|
141
155
|
* @summary Health Check
|
|
156
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
157
|
* @param {*} [options] Override http request option.
|
|
143
158
|
* @throws {RequiredError}
|
|
144
159
|
*/
|
|
145
|
-
check: function (options) {
|
|
160
|
+
check: function (authorization, options) {
|
|
146
161
|
return __awaiter(this, void 0, void 0, function () {
|
|
147
162
|
var localVarAxiosArgs;
|
|
148
163
|
return __generator(this, function (_a) {
|
|
149
164
|
switch (_a.label) {
|
|
150
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(options)];
|
|
165
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(authorization, options)];
|
|
151
166
|
case 1:
|
|
152
167
|
localVarAxiosArgs = _a.sent();
|
|
153
168
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -157,48 +172,51 @@ var HealthApiFp = function (configuration) {
|
|
|
157
172
|
},
|
|
158
173
|
};
|
|
159
174
|
};
|
|
160
|
-
exports.
|
|
175
|
+
exports.HealthChecksApiFp = HealthChecksApiFp;
|
|
161
176
|
/**
|
|
162
|
-
*
|
|
177
|
+
* HealthChecksApi - factory interface
|
|
163
178
|
* @export
|
|
164
179
|
*/
|
|
165
|
-
var
|
|
166
|
-
var localVarFp = (0, exports.
|
|
180
|
+
var HealthChecksApiFactory = function (configuration, basePath, axios) {
|
|
181
|
+
var localVarFp = (0, exports.HealthChecksApiFp)(configuration);
|
|
167
182
|
return {
|
|
168
183
|
/**
|
|
169
184
|
* 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.
|
|
170
185
|
* @summary Health Check
|
|
186
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
171
187
|
* @param {*} [options] Override http request option.
|
|
172
188
|
* @throws {RequiredError}
|
|
173
189
|
*/
|
|
174
|
-
check: function (options) {
|
|
175
|
-
return localVarFp.check(options).then(function (request) { return request(axios, basePath); });
|
|
190
|
+
check: function (authorization, options) {
|
|
191
|
+
return localVarFp.check(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
176
192
|
},
|
|
177
193
|
};
|
|
178
194
|
};
|
|
179
|
-
exports.
|
|
195
|
+
exports.HealthChecksApiFactory = HealthChecksApiFactory;
|
|
180
196
|
/**
|
|
181
|
-
*
|
|
197
|
+
* HealthChecksApi - object-oriented interface
|
|
182
198
|
* @export
|
|
183
|
-
* @class
|
|
199
|
+
* @class HealthChecksApi
|
|
184
200
|
* @extends {BaseAPI}
|
|
185
201
|
*/
|
|
186
|
-
var
|
|
187
|
-
__extends(
|
|
188
|
-
function
|
|
202
|
+
var HealthChecksApi = /** @class */ (function (_super) {
|
|
203
|
+
__extends(HealthChecksApi, _super);
|
|
204
|
+
function HealthChecksApi() {
|
|
189
205
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
190
206
|
}
|
|
191
207
|
/**
|
|
192
208
|
* 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.
|
|
193
209
|
* @summary Health Check
|
|
210
|
+
* @param {HealthChecksApiCheckRequest} requestParameters Request parameters.
|
|
194
211
|
* @param {*} [options] Override http request option.
|
|
195
212
|
* @throws {RequiredError}
|
|
196
|
-
* @memberof
|
|
213
|
+
* @memberof HealthChecksApi
|
|
197
214
|
*/
|
|
198
|
-
|
|
215
|
+
HealthChecksApi.prototype.check = function (requestParameters, options) {
|
|
199
216
|
var _this = this;
|
|
200
|
-
|
|
217
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
218
|
+
return (0, exports.HealthChecksApiFp)(this.configuration).check(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
201
219
|
};
|
|
202
|
-
return
|
|
220
|
+
return HealthChecksApi;
|
|
203
221
|
}(base_1.BaseAPI));
|
|
204
|
-
exports.
|
|
222
|
+
exports.HealthChecksApi = HealthChecksApi;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* EMIL Webhookservice
|
|
3
3
|
* The EMIL Webhookservice API description
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.19.3
|
|
6
6
|
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,13 +15,16 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { CreateInboundWebhookRequestDto } from '../models';
|
|
16
16
|
import { CreateInboundWebhookResponseClass } from '../models';
|
|
17
17
|
import { GetInboundWebhookResponseClass } from '../models';
|
|
18
|
+
import { ListInboundWebhookResponseClass } from '../models';
|
|
19
|
+
import { UpdateInboundWebhookRequestDto } from '../models';
|
|
20
|
+
import { UpdateInboundWebhookResponseClass } from '../models';
|
|
18
21
|
/**
|
|
19
22
|
* InboundWebhooksApi - axios parameter creator
|
|
20
23
|
* @export
|
|
21
24
|
*/
|
|
22
25
|
export declare const InboundWebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
26
|
/**
|
|
24
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
27
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
25
28
|
* @summary Create the inbound webhook
|
|
26
29
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
27
30
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -30,7 +33,7 @@ export declare const InboundWebhooksApiAxiosParamCreator: (configuration?: Confi
|
|
|
30
33
|
*/
|
|
31
34
|
createInboundWebhook: (createInboundWebhookRequestDto: CreateInboundWebhookRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
35
|
/**
|
|
33
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
36
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
34
37
|
* @summary Delete the inbound webhook
|
|
35
38
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
36
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -39,7 +42,7 @@ export declare const InboundWebhooksApiAxiosParamCreator: (configuration?: Confi
|
|
|
39
42
|
*/
|
|
40
43
|
deleteInboundWebhook: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
44
|
/**
|
|
42
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
45
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
43
46
|
* @summary Retrieve the inbound webhook
|
|
44
47
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
45
48
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -47,6 +50,31 @@ export declare const InboundWebhooksApiAxiosParamCreator: (configuration?: Confi
|
|
|
47
50
|
* @throws {RequiredError}
|
|
48
51
|
*/
|
|
49
52
|
getInboundWebhook: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
|
+
/**
|
|
54
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
55
|
+
* @summary List inbound webhooks
|
|
56
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
57
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
58
|
+
* @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.
|
|
59
|
+
* @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>
|
|
60
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
61
|
+
* @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>
|
|
62
|
+
* @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/>
|
|
63
|
+
* @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>
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
listInboundWebhooks: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
68
|
+
/**
|
|
69
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
70
|
+
* @summary Update the inbound webhook
|
|
71
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
72
|
+
* @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
|
|
73
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
updateInboundWebhook: (code: string, updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
78
|
};
|
|
51
79
|
/**
|
|
52
80
|
* InboundWebhooksApi - functional programming interface
|
|
@@ -54,7 +82,7 @@ export declare const InboundWebhooksApiAxiosParamCreator: (configuration?: Confi
|
|
|
54
82
|
*/
|
|
55
83
|
export declare const InboundWebhooksApiFp: (configuration?: Configuration) => {
|
|
56
84
|
/**
|
|
57
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
85
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
58
86
|
* @summary Create the inbound webhook
|
|
59
87
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
60
88
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -63,7 +91,7 @@ export declare const InboundWebhooksApiFp: (configuration?: Configuration) => {
|
|
|
63
91
|
*/
|
|
64
92
|
createInboundWebhook(createInboundWebhookRequestDto: CreateInboundWebhookRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInboundWebhookResponseClass>>;
|
|
65
93
|
/**
|
|
66
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
94
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
67
95
|
* @summary Delete the inbound webhook
|
|
68
96
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
69
97
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -72,7 +100,7 @@ export declare const InboundWebhooksApiFp: (configuration?: Configuration) => {
|
|
|
72
100
|
*/
|
|
73
101
|
deleteInboundWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
74
102
|
/**
|
|
75
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
103
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
76
104
|
* @summary Retrieve the inbound webhook
|
|
77
105
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
78
106
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -80,6 +108,31 @@ export declare const InboundWebhooksApiFp: (configuration?: Configuration) => {
|
|
|
80
108
|
* @throws {RequiredError}
|
|
81
109
|
*/
|
|
82
110
|
getInboundWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInboundWebhookResponseClass>>;
|
|
111
|
+
/**
|
|
112
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
113
|
+
* @summary List inbound webhooks
|
|
114
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
115
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
116
|
+
* @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.
|
|
117
|
+
* @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>
|
|
118
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
119
|
+
* @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>
|
|
120
|
+
* @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/>
|
|
121
|
+
* @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>
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
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>>;
|
|
126
|
+
/**
|
|
127
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
128
|
+
* @summary Update the inbound webhook
|
|
129
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
130
|
+
* @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
|
|
131
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
updateInboundWebhook(code: string, updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateInboundWebhookResponseClass>>;
|
|
83
136
|
};
|
|
84
137
|
/**
|
|
85
138
|
* InboundWebhooksApi - factory interface
|
|
@@ -87,7 +140,7 @@ export declare const InboundWebhooksApiFp: (configuration?: Configuration) => {
|
|
|
87
140
|
*/
|
|
88
141
|
export declare const InboundWebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
89
142
|
/**
|
|
90
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
143
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
91
144
|
* @summary Create the inbound webhook
|
|
92
145
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
93
146
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -96,7 +149,7 @@ export declare const InboundWebhooksApiFactory: (configuration?: Configuration,
|
|
|
96
149
|
*/
|
|
97
150
|
createInboundWebhook(createInboundWebhookRequestDto: CreateInboundWebhookRequestDto, authorization?: string, options?: any): AxiosPromise<CreateInboundWebhookResponseClass>;
|
|
98
151
|
/**
|
|
99
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
152
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
100
153
|
* @summary Delete the inbound webhook
|
|
101
154
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
102
155
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -105,7 +158,7 @@ export declare const InboundWebhooksApiFactory: (configuration?: Configuration,
|
|
|
105
158
|
*/
|
|
106
159
|
deleteInboundWebhook(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
107
160
|
/**
|
|
108
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
161
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
109
162
|
* @summary Retrieve the inbound webhook
|
|
110
163
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
111
164
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -113,6 +166,31 @@ export declare const InboundWebhooksApiFactory: (configuration?: Configuration,
|
|
|
113
166
|
* @throws {RequiredError}
|
|
114
167
|
*/
|
|
115
168
|
getInboundWebhook(code: string, authorization?: string, options?: any): AxiosPromise<GetInboundWebhookResponseClass>;
|
|
169
|
+
/**
|
|
170
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
171
|
+
* @summary List inbound webhooks
|
|
172
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
173
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
174
|
+
* @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.
|
|
175
|
+
* @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>
|
|
176
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
177
|
+
* @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>
|
|
178
|
+
* @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/>
|
|
179
|
+
* @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>
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
*/
|
|
183
|
+
listInboundWebhooks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInboundWebhookResponseClass>;
|
|
184
|
+
/**
|
|
185
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
186
|
+
* @summary Update the inbound webhook
|
|
187
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
188
|
+
* @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
|
|
189
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
190
|
+
* @param {*} [options] Override http request option.
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
*/
|
|
193
|
+
updateInboundWebhook(code: string, updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateInboundWebhookResponseClass>;
|
|
116
194
|
};
|
|
117
195
|
/**
|
|
118
196
|
* Request parameters for createInboundWebhook operation in InboundWebhooksApi.
|
|
@@ -171,6 +249,86 @@ export interface InboundWebhooksApiGetInboundWebhookRequest {
|
|
|
171
249
|
*/
|
|
172
250
|
readonly authorization?: string;
|
|
173
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* Request parameters for listInboundWebhooks operation in InboundWebhooksApi.
|
|
254
|
+
* @export
|
|
255
|
+
* @interface InboundWebhooksApiListInboundWebhooksRequest
|
|
256
|
+
*/
|
|
257
|
+
export interface InboundWebhooksApiListInboundWebhooksRequest {
|
|
258
|
+
/**
|
|
259
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
260
|
+
* @type {string}
|
|
261
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
262
|
+
*/
|
|
263
|
+
readonly authorization?: string;
|
|
264
|
+
/**
|
|
265
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
266
|
+
* @type {number}
|
|
267
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
268
|
+
*/
|
|
269
|
+
readonly pageSize?: number;
|
|
270
|
+
/**
|
|
271
|
+
* 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.
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
274
|
+
*/
|
|
275
|
+
readonly pageToken?: string;
|
|
276
|
+
/**
|
|
277
|
+
* 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>
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
280
|
+
*/
|
|
281
|
+
readonly filter?: string;
|
|
282
|
+
/**
|
|
283
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
284
|
+
* @type {string}
|
|
285
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
286
|
+
*/
|
|
287
|
+
readonly search?: string;
|
|
288
|
+
/**
|
|
289
|
+
* 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>
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
292
|
+
*/
|
|
293
|
+
readonly order?: string;
|
|
294
|
+
/**
|
|
295
|
+
* 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/>
|
|
296
|
+
* @type {string}
|
|
297
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
298
|
+
*/
|
|
299
|
+
readonly expand?: string;
|
|
300
|
+
/**
|
|
301
|
+
* 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>
|
|
302
|
+
* @type {string}
|
|
303
|
+
* @memberof InboundWebhooksApiListInboundWebhooks
|
|
304
|
+
*/
|
|
305
|
+
readonly filters?: string;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Request parameters for updateInboundWebhook operation in InboundWebhooksApi.
|
|
309
|
+
* @export
|
|
310
|
+
* @interface InboundWebhooksApiUpdateInboundWebhookRequest
|
|
311
|
+
*/
|
|
312
|
+
export interface InboundWebhooksApiUpdateInboundWebhookRequest {
|
|
313
|
+
/**
|
|
314
|
+
* Unique identifier code for the inbound webhook
|
|
315
|
+
* @type {string}
|
|
316
|
+
* @memberof InboundWebhooksApiUpdateInboundWebhook
|
|
317
|
+
*/
|
|
318
|
+
readonly code: string;
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @type {UpdateInboundWebhookRequestDto}
|
|
322
|
+
* @memberof InboundWebhooksApiUpdateInboundWebhook
|
|
323
|
+
*/
|
|
324
|
+
readonly updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto;
|
|
325
|
+
/**
|
|
326
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
327
|
+
* @type {string}
|
|
328
|
+
* @memberof InboundWebhooksApiUpdateInboundWebhook
|
|
329
|
+
*/
|
|
330
|
+
readonly authorization?: string;
|
|
331
|
+
}
|
|
174
332
|
/**
|
|
175
333
|
* InboundWebhooksApi - object-oriented interface
|
|
176
334
|
* @export
|
|
@@ -179,7 +337,7 @@ export interface InboundWebhooksApiGetInboundWebhookRequest {
|
|
|
179
337
|
*/
|
|
180
338
|
export declare class InboundWebhooksApi extends BaseAPI {
|
|
181
339
|
/**
|
|
182
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
340
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
183
341
|
* @summary Create the inbound webhook
|
|
184
342
|
* @param {InboundWebhooksApiCreateInboundWebhookRequest} requestParameters Request parameters.
|
|
185
343
|
* @param {*} [options] Override http request option.
|
|
@@ -188,7 +346,7 @@ export declare class InboundWebhooksApi extends BaseAPI {
|
|
|
188
346
|
*/
|
|
189
347
|
createInboundWebhook(requestParameters: InboundWebhooksApiCreateInboundWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInboundWebhookResponseClass, any, {}>>;
|
|
190
348
|
/**
|
|
191
|
-
* Deletes an inbound webhook by its code **Required Permissions**
|
|
349
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
192
350
|
* @summary Delete the inbound webhook
|
|
193
351
|
* @param {InboundWebhooksApiDeleteInboundWebhookRequest} requestParameters Request parameters.
|
|
194
352
|
* @param {*} [options] Override http request option.
|
|
@@ -197,7 +355,7 @@ export declare class InboundWebhooksApi extends BaseAPI {
|
|
|
197
355
|
*/
|
|
198
356
|
deleteInboundWebhook(requestParameters: InboundWebhooksApiDeleteInboundWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
199
357
|
/**
|
|
200
|
-
* Retrieves an inbound webhook by its code **Required Permissions**
|
|
358
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
201
359
|
* @summary Retrieve the inbound webhook
|
|
202
360
|
* @param {InboundWebhooksApiGetInboundWebhookRequest} requestParameters Request parameters.
|
|
203
361
|
* @param {*} [options] Override http request option.
|
|
@@ -205,4 +363,22 @@ export declare class InboundWebhooksApi extends BaseAPI {
|
|
|
205
363
|
* @memberof InboundWebhooksApi
|
|
206
364
|
*/
|
|
207
365
|
getInboundWebhook(requestParameters: InboundWebhooksApiGetInboundWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetInboundWebhookResponseClass, any, {}>>;
|
|
366
|
+
/**
|
|
367
|
+
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
368
|
+
* @summary List inbound webhooks
|
|
369
|
+
* @param {InboundWebhooksApiListInboundWebhooksRequest} requestParameters Request parameters.
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
* @memberof InboundWebhooksApi
|
|
373
|
+
*/
|
|
374
|
+
listInboundWebhooks(requestParameters?: InboundWebhooksApiListInboundWebhooksRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInboundWebhookResponseClass, any, {}>>;
|
|
375
|
+
/**
|
|
376
|
+
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
377
|
+
* @summary Update the inbound webhook
|
|
378
|
+
* @param {InboundWebhooksApiUpdateInboundWebhookRequest} requestParameters Request parameters.
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
* @memberof InboundWebhooksApi
|
|
382
|
+
*/
|
|
383
|
+
updateInboundWebhook(requestParameters: InboundWebhooksApiUpdateInboundWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateInboundWebhookResponseClass, any, {}>>;
|
|
208
384
|
}
|