@emilgroup/webhook-sdk-node 1.0.1-beta.1 → 1.0.1-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/.openapi-generator/FILES +6 -1
  2. package/README.md +2 -2
  3. package/api/{health-api.ts → health-checks-api.ts} +45 -19
  4. package/api/inbound-webhooks-api.ts +409 -0
  5. package/api/trigger-inbound-webhooks-api.ts +178 -0
  6. package/api.ts +4 -2
  7. package/dist/api/{health-api.d.ts → health-checks-api.d.ts} +31 -14
  8. package/dist/api/{health-api.js → health-checks-api.js} +60 -42
  9. package/dist/api/inbound-webhooks-api.d.ts +231 -0
  10. package/dist/api/inbound-webhooks-api.js +320 -0
  11. package/dist/api/trigger-inbound-webhooks-api.d.ts +105 -0
  12. package/dist/api/trigger-inbound-webhooks-api.js +233 -0
  13. package/dist/api.d.ts +2 -1
  14. package/dist/api.js +2 -1
  15. package/dist/models/create-inbound-webhook-request-dto.d.ts +0 -6
  16. package/dist/models/inbound-webhook-class.d.ts +6 -6
  17. package/dist/models/index.d.ts +4 -0
  18. package/dist/models/index.js +4 -0
  19. package/dist/models/list-inbound-webhook-response-class.d.ts +43 -0
  20. package/dist/models/list-inbound-webhook-response-class.js +15 -0
  21. package/dist/models/trigger-inbound-webhook-response-class.d.ts +42 -0
  22. package/dist/models/trigger-inbound-webhook-response-class.js +15 -0
  23. package/dist/models/update-inbound-webhook-request-dto.d.ts +54 -0
  24. package/dist/models/update-inbound-webhook-request-dto.js +21 -0
  25. package/dist/models/update-inbound-webhook-response-class.d.ts +25 -0
  26. package/dist/models/update-inbound-webhook-response-class.js +15 -0
  27. package/models/create-inbound-webhook-request-dto.ts +0 -6
  28. package/models/inbound-webhook-class.ts +6 -6
  29. package/models/index.ts +4 -0
  30. package/models/list-inbound-webhook-response-class.ts +49 -0
  31. package/models/trigger-inbound-webhook-response-class.ts +48 -0
  32. package/models/update-inbound-webhook-request-dto.ts +63 -0
  33. package/models/update-inbound-webhook-response-class.ts +31 -0
  34. package/package.json +2 -2
@@ -3,8 +3,9 @@
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
8
9
  base.ts
9
10
  common.ts
10
11
  configuration.ts
@@ -17,5 +18,9 @@ models/inbound-webhook-class.ts
17
18
  models/index.ts
18
19
  models/inline-response200.ts
19
20
  models/inline-response503.ts
21
+ models/list-inbound-webhook-response-class.ts
22
+ models/trigger-inbound-webhook-response-class.ts
23
+ models/update-inbound-webhook-request-dto.ts
24
+ models/update-inbound-webhook-response-class.ts
20
25
  package.json
21
26
  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.1 --save
20
+ npm install @emilgroup/webhook-sdk-node@1.0.1-beta.11 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/webhook-sdk-node@1.0.1-beta.1
24
+ yarn add @emilgroup/webhook-sdk-node@1.0.1-beta.11
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -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
- * HealthApi - axios parameter creator
32
+ * HealthChecksApi - axios parameter creator
33
33
  * @export
34
34
  */
35
- export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
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
- * HealthApi - functional programming interface
82
+ * HealthChecksApi - functional programming interface
74
83
  * @export
75
84
  */
76
- export const HealthApiFp = function(configuration?: Configuration) {
77
- const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
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
- * HealthApi - factory interface
103
+ * HealthChecksApi - factory interface
94
104
  * @export
95
105
  */
96
- export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
97
- const localVarFp = HealthApiFp(configuration)
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
- * HealthApi - object-oriented interface
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 HealthApi
139
+ * @class HealthChecksApi
115
140
  * @extends {BaseAPI}
116
141
  */
117
- export class HealthApi extends BaseAPI {
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 HealthApi
149
+ * @memberof HealthChecksApi
124
150
  */
125
- public check(options?: AxiosRequestConfig) {
126
- return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
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
  }
@@ -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';
@@ -83,6 +89,51 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
83
89
  options: localVarRequestOptions,
84
90
  };
85
91
  },
92
+ /**
93
+ * Deletes an inbound webhook by its code **Required Permissions** none
94
+ * @summary Delete the inbound webhook
95
+ * @param {string} code Unique identifier code for the inbound webhook
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deleteInboundWebhook: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'code' is not null or undefined
102
+ assertParamExists('deleteInboundWebhook', 'code', code)
103
+ const localVarPath = `/webhookservice/v1/inbound-webhooks/{code}`
104
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ let baseAccessToken;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ baseAccessToken = configuration.accessToken;
112
+ }
113
+
114
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
+ const localVarHeaderParameter = {} as any;
116
+ const localVarQueryParameter = {} as any;
117
+
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
+
122
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
+ }
125
+
126
+
127
+
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
86
137
  /**
87
138
  * Retrieves an inbound webhook by its code **Required Permissions** none
88
139
  * @summary Retrieve the inbound webhook
@@ -123,6 +174,133 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
123
174
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
175
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
125
176
 
177
+ return {
178
+ url: toPathString(localVarUrlObj),
179
+ options: localVarRequestOptions,
180
+ };
181
+ },
182
+ /**
183
+ * Lists all inbound webhooks with optional filters **Required Permissions** none
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
189
+ * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
192
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
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** none
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
+
126
304
  return {
127
305
  url: toPathString(localVarUrlObj),
128
306
  options: localVarRequestOptions,
@@ -150,6 +328,18 @@ export const InboundWebhooksApiFp = function(configuration?: Configuration) {
150
328
  const localVarAxiosArgs = await localVarAxiosParamCreator.createInboundWebhook(createInboundWebhookRequestDto, authorization, options);
151
329
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
152
330
  },
331
+ /**
332
+ * Deletes an inbound webhook by its code **Required Permissions** none
333
+ * @summary Delete the inbound webhook
334
+ * @param {string} code Unique identifier code for the inbound webhook
335
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ async deleteInboundWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInboundWebhook(code, authorization, options);
341
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
342
+ },
153
343
  /**
154
344
  * Retrieves an inbound webhook by its code **Required Permissions** none
155
345
  * @summary Retrieve the inbound webhook
@@ -162,6 +352,37 @@ export const InboundWebhooksApiFp = function(configuration?: Configuration) {
162
352
  const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundWebhook(code, authorization, options);
163
353
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
164
354
  },
355
+ /**
356
+ * Lists all inbound webhooks with optional filters **Required Permissions** none
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
362
+ * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
365
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
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** none
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
+ },
165
386
  }
166
387
  };
167
388
 
@@ -183,6 +404,17 @@ export const InboundWebhooksApiFactory = function (configuration?: Configuration
183
404
  createInboundWebhook(createInboundWebhookRequestDto: CreateInboundWebhookRequestDto, authorization?: string, options?: any): AxiosPromise<CreateInboundWebhookResponseClass> {
184
405
  return localVarFp.createInboundWebhook(createInboundWebhookRequestDto, authorization, options).then((request) => request(axios, basePath));
185
406
  },
407
+ /**
408
+ * Deletes an inbound webhook by its code **Required Permissions** none
409
+ * @summary Delete the inbound webhook
410
+ * @param {string} code Unique identifier code for the inbound webhook
411
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ deleteInboundWebhook(code: string, authorization?: string, options?: any): AxiosPromise<void> {
416
+ return localVarFp.deleteInboundWebhook(code, authorization, options).then((request) => request(axios, basePath));
417
+ },
186
418
  /**
187
419
  * Retrieves an inbound webhook by its code **Required Permissions** none
188
420
  * @summary Retrieve the inbound webhook
@@ -194,6 +426,35 @@ export const InboundWebhooksApiFactory = function (configuration?: Configuration
194
426
  getInboundWebhook(code: string, authorization?: string, options?: any): AxiosPromise<GetInboundWebhookResponseClass> {
195
427
  return localVarFp.getInboundWebhook(code, authorization, options).then((request) => request(axios, basePath));
196
428
  },
429
+ /**
430
+ * Lists all inbound webhooks with optional filters **Required Permissions** none
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
436
+ * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
439
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
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** none
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
+ },
197
458
  };
198
459
  };
199
460
 
@@ -218,6 +479,27 @@ export interface InboundWebhooksApiCreateInboundWebhookRequest {
218
479
  readonly authorization?: string
219
480
  }
220
481
 
482
+ /**
483
+ * Request parameters for deleteInboundWebhook operation in InboundWebhooksApi.
484
+ * @export
485
+ * @interface InboundWebhooksApiDeleteInboundWebhookRequest
486
+ */
487
+ export interface InboundWebhooksApiDeleteInboundWebhookRequest {
488
+ /**
489
+ * Unique identifier code for the inbound webhook
490
+ * @type {string}
491
+ * @memberof InboundWebhooksApiDeleteInboundWebhook
492
+ */
493
+ readonly code: string
494
+
495
+ /**
496
+ * Bearer Token: provided by the login endpoint under the name accessToken.
497
+ * @type {string}
498
+ * @memberof InboundWebhooksApiDeleteInboundWebhook
499
+ */
500
+ readonly authorization?: string
501
+ }
502
+
221
503
  /**
222
504
  * Request parameters for getInboundWebhook operation in InboundWebhooksApi.
223
505
  * @export
@@ -239,6 +521,97 @@ export interface InboundWebhooksApiGetInboundWebhookRequest {
239
521
  readonly authorization?: string
240
522
  }
241
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
553
+ * @type {string}
554
+ * @memberof InboundWebhooksApiListInboundWebhooks
555
+ */
556
+ readonly filter?: string
557
+
558
+ /**
559
+ * To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
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
+
242
615
  /**
243
616
  * InboundWebhooksApi - object-oriented interface
244
617
  * @export
@@ -258,6 +631,18 @@ export class InboundWebhooksApi extends BaseAPI {
258
631
  return InboundWebhooksApiFp(this.configuration).createInboundWebhook(requestParameters.createInboundWebhookRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
259
632
  }
260
633
 
634
+ /**
635
+ * Deletes an inbound webhook by its code **Required Permissions** none
636
+ * @summary Delete the inbound webhook
637
+ * @param {InboundWebhooksApiDeleteInboundWebhookRequest} requestParameters Request parameters.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ * @memberof InboundWebhooksApi
641
+ */
642
+ public deleteInboundWebhook(requestParameters: InboundWebhooksApiDeleteInboundWebhookRequest, options?: AxiosRequestConfig) {
643
+ return InboundWebhooksApiFp(this.configuration).deleteInboundWebhook(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
644
+ }
645
+
261
646
  /**
262
647
  * Retrieves an inbound webhook by its code **Required Permissions** none
263
648
  * @summary Retrieve the inbound webhook
@@ -269,4 +654,28 @@ export class InboundWebhooksApi extends BaseAPI {
269
654
  public getInboundWebhook(requestParameters: InboundWebhooksApiGetInboundWebhookRequest, options?: AxiosRequestConfig) {
270
655
  return InboundWebhooksApiFp(this.configuration).getInboundWebhook(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
271
656
  }
657
+
658
+ /**
659
+ * Lists all inbound webhooks with optional filters **Required Permissions** none
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** none
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
+ }
272
681
  }