@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
|
@@ -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;
|
|
@@ -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,16 @@ export declare const InboundWebhooksApiAxiosParamCreator: (configuration?: Confi
|
|
|
30
33
|
*/
|
|
31
34
|
createInboundWebhook: (createInboundWebhookRequestDto: CreateInboundWebhookRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
35
|
/**
|
|
33
|
-
*
|
|
36
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
37
|
+
* @summary Delete the inbound webhook
|
|
38
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
39
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
deleteInboundWebhook: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
34
46
|
* @summary Retrieve the inbound webhook
|
|
35
47
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
36
48
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -38,6 +50,31 @@ export declare const InboundWebhooksApiAxiosParamCreator: (configuration?: Confi
|
|
|
38
50
|
* @throws {RequiredError}
|
|
39
51
|
*/
|
|
40
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>;
|
|
41
78
|
};
|
|
42
79
|
/**
|
|
43
80
|
* InboundWebhooksApi - functional programming interface
|
|
@@ -45,7 +82,7 @@ export declare const InboundWebhooksApiAxiosParamCreator: (configuration?: Confi
|
|
|
45
82
|
*/
|
|
46
83
|
export declare const InboundWebhooksApiFp: (configuration?: Configuration) => {
|
|
47
84
|
/**
|
|
48
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
85
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
49
86
|
* @summary Create the inbound webhook
|
|
50
87
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
51
88
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -54,7 +91,16 @@ export declare const InboundWebhooksApiFp: (configuration?: Configuration) => {
|
|
|
54
91
|
*/
|
|
55
92
|
createInboundWebhook(createInboundWebhookRequestDto: CreateInboundWebhookRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInboundWebhookResponseClass>>;
|
|
56
93
|
/**
|
|
57
|
-
*
|
|
94
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
95
|
+
* @summary Delete the inbound webhook
|
|
96
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
97
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
deleteInboundWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
102
|
+
/**
|
|
103
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
58
104
|
* @summary Retrieve the inbound webhook
|
|
59
105
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
60
106
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -62,6 +108,31 @@ export declare const InboundWebhooksApiFp: (configuration?: Configuration) => {
|
|
|
62
108
|
* @throws {RequiredError}
|
|
63
109
|
*/
|
|
64
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>>;
|
|
65
136
|
};
|
|
66
137
|
/**
|
|
67
138
|
* InboundWebhooksApi - factory interface
|
|
@@ -69,7 +140,7 @@ export declare const InboundWebhooksApiFp: (configuration?: Configuration) => {
|
|
|
69
140
|
*/
|
|
70
141
|
export declare const InboundWebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
71
142
|
/**
|
|
72
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
143
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
73
144
|
* @summary Create the inbound webhook
|
|
74
145
|
* @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
|
|
75
146
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -78,7 +149,16 @@ export declare const InboundWebhooksApiFactory: (configuration?: Configuration,
|
|
|
78
149
|
*/
|
|
79
150
|
createInboundWebhook(createInboundWebhookRequestDto: CreateInboundWebhookRequestDto, authorization?: string, options?: any): AxiosPromise<CreateInboundWebhookResponseClass>;
|
|
80
151
|
/**
|
|
81
|
-
*
|
|
152
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
153
|
+
* @summary Delete the inbound webhook
|
|
154
|
+
* @param {string} code Unique identifier code for the inbound webhook
|
|
155
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
deleteInboundWebhook(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
160
|
+
/**
|
|
161
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
82
162
|
* @summary Retrieve the inbound webhook
|
|
83
163
|
* @param {string} code Unique identifier code for the inbound webhook
|
|
84
164
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -86,6 +166,31 @@ export declare const InboundWebhooksApiFactory: (configuration?: Configuration,
|
|
|
86
166
|
* @throws {RequiredError}
|
|
87
167
|
*/
|
|
88
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>;
|
|
89
194
|
};
|
|
90
195
|
/**
|
|
91
196
|
* Request parameters for createInboundWebhook operation in InboundWebhooksApi.
|
|
@@ -106,6 +211,25 @@ export interface InboundWebhooksApiCreateInboundWebhookRequest {
|
|
|
106
211
|
*/
|
|
107
212
|
readonly authorization?: string;
|
|
108
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* Request parameters for deleteInboundWebhook operation in InboundWebhooksApi.
|
|
216
|
+
* @export
|
|
217
|
+
* @interface InboundWebhooksApiDeleteInboundWebhookRequest
|
|
218
|
+
*/
|
|
219
|
+
export interface InboundWebhooksApiDeleteInboundWebhookRequest {
|
|
220
|
+
/**
|
|
221
|
+
* Unique identifier code for the inbound webhook
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @memberof InboundWebhooksApiDeleteInboundWebhook
|
|
224
|
+
*/
|
|
225
|
+
readonly code: string;
|
|
226
|
+
/**
|
|
227
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
228
|
+
* @type {string}
|
|
229
|
+
* @memberof InboundWebhooksApiDeleteInboundWebhook
|
|
230
|
+
*/
|
|
231
|
+
readonly authorization?: string;
|
|
232
|
+
}
|
|
109
233
|
/**
|
|
110
234
|
* Request parameters for getInboundWebhook operation in InboundWebhooksApi.
|
|
111
235
|
* @export
|
|
@@ -125,6 +249,86 @@ export interface InboundWebhooksApiGetInboundWebhookRequest {
|
|
|
125
249
|
*/
|
|
126
250
|
readonly authorization?: string;
|
|
127
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
|
+
}
|
|
128
332
|
/**
|
|
129
333
|
* InboundWebhooksApi - object-oriented interface
|
|
130
334
|
* @export
|
|
@@ -133,7 +337,7 @@ export interface InboundWebhooksApiGetInboundWebhookRequest {
|
|
|
133
337
|
*/
|
|
134
338
|
export declare class InboundWebhooksApi extends BaseAPI {
|
|
135
339
|
/**
|
|
136
|
-
* Creates a new inbound webhook configuration **Required Permissions**
|
|
340
|
+
* Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
|
|
137
341
|
* @summary Create the inbound webhook
|
|
138
342
|
* @param {InboundWebhooksApiCreateInboundWebhookRequest} requestParameters Request parameters.
|
|
139
343
|
* @param {*} [options] Override http request option.
|
|
@@ -142,7 +346,16 @@ export declare class InboundWebhooksApi extends BaseAPI {
|
|
|
142
346
|
*/
|
|
143
347
|
createInboundWebhook(requestParameters: InboundWebhooksApiCreateInboundWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInboundWebhookResponseClass, any, {}>>;
|
|
144
348
|
/**
|
|
145
|
-
*
|
|
349
|
+
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
350
|
+
* @summary Delete the inbound webhook
|
|
351
|
+
* @param {InboundWebhooksApiDeleteInboundWebhookRequest} requestParameters Request parameters.
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
* @memberof InboundWebhooksApi
|
|
355
|
+
*/
|
|
356
|
+
deleteInboundWebhook(requestParameters: InboundWebhooksApiDeleteInboundWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
357
|
+
/**
|
|
358
|
+
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
146
359
|
* @summary Retrieve the inbound webhook
|
|
147
360
|
* @param {InboundWebhooksApiGetInboundWebhookRequest} requestParameters Request parameters.
|
|
148
361
|
* @param {*} [options] Override http request option.
|
|
@@ -150,4 +363,22 @@ export declare class InboundWebhooksApi extends BaseAPI {
|
|
|
150
363
|
* @memberof InboundWebhooksApi
|
|
151
364
|
*/
|
|
152
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, {}>>;
|
|
153
384
|
}
|