@emilgroup/webhook-sdk-node 1.0.1-beta.24 → 1.0.1-beta.3

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 (46) hide show
  1. package/.openapi-generator/FILES +1 -10
  2. package/README.md +2 -2
  3. package/api/{health-checks-api.ts → health-api.ts} +19 -45
  4. package/api/inbound-webhooks-api.ts +12 -320
  5. package/api.ts +2 -6
  6. package/dist/api/{health-checks-api.d.ts → health-api.d.ts} +14 -31
  7. package/dist/api/{health-checks-api.js → health-api.js} +42 -60
  8. package/dist/api/inbound-webhooks-api.d.ts +12 -188
  9. package/dist/api/inbound-webhooks-api.js +12 -240
  10. package/dist/api.d.ts +1 -3
  11. package/dist/api.js +1 -3
  12. package/dist/models/create-inbound-webhook-request-dto.d.ts +6 -0
  13. package/dist/models/inbound-webhook-class.d.ts +6 -6
  14. package/dist/models/index.d.ts +0 -7
  15. package/dist/models/index.js +0 -7
  16. package/models/create-inbound-webhook-request-dto.ts +6 -0
  17. package/models/inbound-webhook-class.ts +6 -6
  18. package/models/index.ts +0 -7
  19. package/package.json +2 -2
  20. package/api/trigger-inbound-webhooks-api.ts +0 -167
  21. package/api/webhook-requests-api.ts +0 -250
  22. package/dist/api/trigger-inbound-webhooks-api.d.ts +0 -96
  23. package/dist/api/trigger-inbound-webhooks-api.js +0 -227
  24. package/dist/api/webhook-requests-api.d.ts +0 -150
  25. package/dist/api/webhook-requests-api.js +0 -264
  26. package/dist/models/list-inbound-webhook-response-class.d.ts +0 -43
  27. package/dist/models/list-inbound-webhook-response-class.js +0 -15
  28. package/dist/models/list-webhook-requests-response-class.d.ts +0 -43
  29. package/dist/models/list-webhook-requests-response-class.js +0 -15
  30. package/dist/models/trigger-inbound-webhook-accepted-response-class.d.ts +0 -36
  31. package/dist/models/trigger-inbound-webhook-accepted-response-class.js +0 -15
  32. package/dist/models/trigger-inbound-webhook-rejected-response-class.d.ts +0 -42
  33. package/dist/models/trigger-inbound-webhook-rejected-response-class.js +0 -15
  34. package/dist/models/update-inbound-webhook-request-dto.d.ts +0 -54
  35. package/dist/models/update-inbound-webhook-request-dto.js +0 -21
  36. package/dist/models/update-inbound-webhook-response-class.d.ts +0 -25
  37. package/dist/models/update-inbound-webhook-response-class.js +0 -15
  38. package/dist/models/webhook-request-class.d.ts +0 -146
  39. package/dist/models/webhook-request-class.js +0 -23
  40. package/models/list-inbound-webhook-response-class.ts +0 -49
  41. package/models/list-webhook-requests-response-class.ts +0 -49
  42. package/models/trigger-inbound-webhook-accepted-response-class.ts +0 -42
  43. package/models/trigger-inbound-webhook-rejected-response-class.ts +0 -48
  44. package/models/update-inbound-webhook-request-dto.ts +0 -63
  45. package/models/update-inbound-webhook-response-class.ts +0 -31
  46. package/models/webhook-request-class.ts +0 -155
@@ -97,7 +97,7 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
100
+ * Creates a new inbound webhook configuration **Required Permissions** none
101
101
  * @summary Create the inbound webhook
102
102
  * @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
103
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -146,7 +146,7 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  },
148
148
  /**
149
- * Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
149
+ * Deletes an inbound webhook by its code **Required Permissions** none
150
150
  * @summary Delete the inbound webhook
151
151
  * @param {string} code Unique identifier code for the inbound webhook
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -194,7 +194,7 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
194
194
  });
195
195
  },
196
196
  /**
197
- * Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
197
+ * Retrieves an inbound webhook by its code **Required Permissions** none
198
198
  * @summary Retrieve the inbound webhook
199
199
  * @param {string} code Unique identifier code for the inbound webhook
200
200
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -241,131 +241,6 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
241
241
  });
242
242
  });
243
243
  },
244
- /**
245
- * Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
246
- * @summary List inbound webhooks
247
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
248
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
249
- * @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.
250
- * @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>
251
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
252
- * @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>
253
- * @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/>
254
- * @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>
255
- * @param {*} [options] Override http request option.
256
- * @throws {RequiredError}
257
- */
258
- listInboundWebhooks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
259
- if (options === void 0) { options = {}; }
260
- return __awaiter(_this, void 0, void 0, function () {
261
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
262
- return __generator(this, function (_a) {
263
- switch (_a.label) {
264
- case 0:
265
- localVarPath = "/webhookservice/v1/inbound-webhooks";
266
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
267
- if (configuration) {
268
- baseOptions = configuration.baseOptions;
269
- baseAccessToken = configuration.accessToken;
270
- }
271
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
272
- localVarHeaderParameter = {};
273
- localVarQueryParameter = {};
274
- // authentication bearer required
275
- // http bearer authentication required
276
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
277
- case 1:
278
- // authentication bearer required
279
- // http bearer authentication required
280
- _a.sent();
281
- if (pageSize !== undefined) {
282
- localVarQueryParameter['pageSize'] = pageSize;
283
- }
284
- if (pageToken !== undefined) {
285
- localVarQueryParameter['pageToken'] = pageToken;
286
- }
287
- if (filter !== undefined) {
288
- localVarQueryParameter['filter'] = filter;
289
- }
290
- if (search !== undefined) {
291
- localVarQueryParameter['search'] = search;
292
- }
293
- if (order !== undefined) {
294
- localVarQueryParameter['order'] = order;
295
- }
296
- if (expand !== undefined) {
297
- localVarQueryParameter['expand'] = expand;
298
- }
299
- if (filters !== undefined) {
300
- localVarQueryParameter['filters'] = filters;
301
- }
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
304
- }
305
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
306
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
307
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
308
- return [2 /*return*/, {
309
- url: (0, common_1.toPathString)(localVarUrlObj),
310
- options: localVarRequestOptions,
311
- }];
312
- }
313
- });
314
- });
315
- },
316
- /**
317
- * Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
318
- * @summary Update the inbound webhook
319
- * @param {string} code Unique identifier code for the inbound webhook
320
- * @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
321
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
322
- * @param {*} [options] Override http request option.
323
- * @throws {RequiredError}
324
- */
325
- updateInboundWebhook: function (code, updateInboundWebhookRequestDto, authorization, options) {
326
- if (options === void 0) { options = {}; }
327
- return __awaiter(_this, void 0, void 0, function () {
328
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
329
- return __generator(this, function (_a) {
330
- switch (_a.label) {
331
- case 0:
332
- // verify required parameter 'code' is not null or undefined
333
- (0, common_1.assertParamExists)('updateInboundWebhook', 'code', code);
334
- // verify required parameter 'updateInboundWebhookRequestDto' is not null or undefined
335
- (0, common_1.assertParamExists)('updateInboundWebhook', 'updateInboundWebhookRequestDto', updateInboundWebhookRequestDto);
336
- localVarPath = "/webhookservice/v1/inbound-webhooks/{code}"
337
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
338
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
339
- if (configuration) {
340
- baseOptions = configuration.baseOptions;
341
- baseAccessToken = configuration.accessToken;
342
- }
343
- localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
344
- localVarHeaderParameter = {};
345
- localVarQueryParameter = {};
346
- // authentication bearer required
347
- // http bearer authentication required
348
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
349
- case 1:
350
- // authentication bearer required
351
- // http bearer authentication required
352
- _a.sent();
353
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
355
- }
356
- localVarHeaderParameter['Content-Type'] = 'application/json';
357
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
358
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
359
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
360
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateInboundWebhookRequestDto, localVarRequestOptions, configuration);
361
- return [2 /*return*/, {
362
- url: (0, common_1.toPathString)(localVarUrlObj),
363
- options: localVarRequestOptions,
364
- }];
365
- }
366
- });
367
- });
368
- },
369
244
  };
370
245
  };
371
246
  exports.InboundWebhooksApiAxiosParamCreator = InboundWebhooksApiAxiosParamCreator;
@@ -377,7 +252,7 @@ var InboundWebhooksApiFp = function (configuration) {
377
252
  var localVarAxiosParamCreator = (0, exports.InboundWebhooksApiAxiosParamCreator)(configuration);
378
253
  return {
379
254
  /**
380
- * Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
255
+ * Creates a new inbound webhook configuration **Required Permissions** none
381
256
  * @summary Create the inbound webhook
382
257
  * @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
383
258
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -398,7 +273,7 @@ var InboundWebhooksApiFp = function (configuration) {
398
273
  });
399
274
  },
400
275
  /**
401
- * Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
276
+ * Deletes an inbound webhook by its code **Required Permissions** none
402
277
  * @summary Delete the inbound webhook
403
278
  * @param {string} code Unique identifier code for the inbound webhook
404
279
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -419,7 +294,7 @@ var InboundWebhooksApiFp = function (configuration) {
419
294
  });
420
295
  },
421
296
  /**
422
- * Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
297
+ * Retrieves an inbound webhook by its code **Required Permissions** none
423
298
  * @summary Retrieve the inbound webhook
424
299
  * @param {string} code Unique identifier code for the inbound webhook
425
300
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -439,55 +314,6 @@ var InboundWebhooksApiFp = function (configuration) {
439
314
  });
440
315
  });
441
316
  },
442
- /**
443
- * Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
444
- * @summary List inbound webhooks
445
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
446
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
447
- * @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.
448
- * @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>
449
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
450
- * @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>
451
- * @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/>
452
- * @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>
453
- * @param {*} [options] Override http request option.
454
- * @throws {RequiredError}
455
- */
456
- listInboundWebhooks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
457
- return __awaiter(this, void 0, void 0, function () {
458
- var localVarAxiosArgs;
459
- return __generator(this, function (_a) {
460
- switch (_a.label) {
461
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInboundWebhooks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
462
- case 1:
463
- localVarAxiosArgs = _a.sent();
464
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
465
- }
466
- });
467
- });
468
- },
469
- /**
470
- * Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
471
- * @summary Update the inbound webhook
472
- * @param {string} code Unique identifier code for the inbound webhook
473
- * @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
474
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
475
- * @param {*} [options] Override http request option.
476
- * @throws {RequiredError}
477
- */
478
- updateInboundWebhook: function (code, updateInboundWebhookRequestDto, authorization, options) {
479
- return __awaiter(this, void 0, void 0, function () {
480
- var localVarAxiosArgs;
481
- return __generator(this, function (_a) {
482
- switch (_a.label) {
483
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateInboundWebhook(code, updateInboundWebhookRequestDto, authorization, options)];
484
- case 1:
485
- localVarAxiosArgs = _a.sent();
486
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
487
- }
488
- });
489
- });
490
- },
491
317
  };
492
318
  };
493
319
  exports.InboundWebhooksApiFp = InboundWebhooksApiFp;
@@ -499,7 +325,7 @@ var InboundWebhooksApiFactory = function (configuration, basePath, axios) {
499
325
  var localVarFp = (0, exports.InboundWebhooksApiFp)(configuration);
500
326
  return {
501
327
  /**
502
- * Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
328
+ * Creates a new inbound webhook configuration **Required Permissions** none
503
329
  * @summary Create the inbound webhook
504
330
  * @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
505
331
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -510,7 +336,7 @@ var InboundWebhooksApiFactory = function (configuration, basePath, axios) {
510
336
  return localVarFp.createInboundWebhook(createInboundWebhookRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
511
337
  },
512
338
  /**
513
- * Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
339
+ * Deletes an inbound webhook by its code **Required Permissions** none
514
340
  * @summary Delete the inbound webhook
515
341
  * @param {string} code Unique identifier code for the inbound webhook
516
342
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -521,7 +347,7 @@ var InboundWebhooksApiFactory = function (configuration, basePath, axios) {
521
347
  return localVarFp.deleteInboundWebhook(code, authorization, options).then(function (request) { return request(axios, basePath); });
522
348
  },
523
349
  /**
524
- * Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
350
+ * Retrieves an inbound webhook by its code **Required Permissions** none
525
351
  * @summary Retrieve the inbound webhook
526
352
  * @param {string} code Unique identifier code for the inbound webhook
527
353
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -531,35 +357,6 @@ var InboundWebhooksApiFactory = function (configuration, basePath, axios) {
531
357
  getInboundWebhook: function (code, authorization, options) {
532
358
  return localVarFp.getInboundWebhook(code, authorization, options).then(function (request) { return request(axios, basePath); });
533
359
  },
534
- /**
535
- * Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
536
- * @summary List inbound webhooks
537
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
538
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
539
- * @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.
540
- * @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>
541
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
542
- * @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>
543
- * @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/>
544
- * @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>
545
- * @param {*} [options] Override http request option.
546
- * @throws {RequiredError}
547
- */
548
- listInboundWebhooks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
549
- return localVarFp.listInboundWebhooks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
550
- },
551
- /**
552
- * Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
553
- * @summary Update the inbound webhook
554
- * @param {string} code Unique identifier code for the inbound webhook
555
- * @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
556
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
557
- * @param {*} [options] Override http request option.
558
- * @throws {RequiredError}
559
- */
560
- updateInboundWebhook: function (code, updateInboundWebhookRequestDto, authorization, options) {
561
- return localVarFp.updateInboundWebhook(code, updateInboundWebhookRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
562
- },
563
360
  };
564
361
  };
565
362
  exports.InboundWebhooksApiFactory = InboundWebhooksApiFactory;
@@ -575,7 +372,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
575
372
  return _super !== null && _super.apply(this, arguments) || this;
576
373
  }
577
374
  /**
578
- * Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
375
+ * Creates a new inbound webhook configuration **Required Permissions** none
579
376
  * @summary Create the inbound webhook
580
377
  * @param {InboundWebhooksApiCreateInboundWebhookRequest} requestParameters Request parameters.
581
378
  * @param {*} [options] Override http request option.
@@ -587,7 +384,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
587
384
  return (0, exports.InboundWebhooksApiFp)(this.configuration).createInboundWebhook(requestParameters.createInboundWebhookRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
588
385
  };
589
386
  /**
590
- * Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
387
+ * Deletes an inbound webhook by its code **Required Permissions** none
591
388
  * @summary Delete the inbound webhook
592
389
  * @param {InboundWebhooksApiDeleteInboundWebhookRequest} requestParameters Request parameters.
593
390
  * @param {*} [options] Override http request option.
@@ -599,7 +396,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
599
396
  return (0, exports.InboundWebhooksApiFp)(this.configuration).deleteInboundWebhook(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
600
397
  };
601
398
  /**
602
- * Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
399
+ * Retrieves an inbound webhook by its code **Required Permissions** none
603
400
  * @summary Retrieve the inbound webhook
604
401
  * @param {InboundWebhooksApiGetInboundWebhookRequest} requestParameters Request parameters.
605
402
  * @param {*} [options] Override http request option.
@@ -610,31 +407,6 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
610
407
  var _this = this;
611
408
  return (0, exports.InboundWebhooksApiFp)(this.configuration).getInboundWebhook(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
612
409
  };
613
- /**
614
- * Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
615
- * @summary List inbound webhooks
616
- * @param {InboundWebhooksApiListInboundWebhooksRequest} requestParameters Request parameters.
617
- * @param {*} [options] Override http request option.
618
- * @throws {RequiredError}
619
- * @memberof InboundWebhooksApi
620
- */
621
- InboundWebhooksApi.prototype.listInboundWebhooks = function (requestParameters, options) {
622
- var _this = this;
623
- if (requestParameters === void 0) { requestParameters = {}; }
624
- return (0, exports.InboundWebhooksApiFp)(this.configuration).listInboundWebhooks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
625
- };
626
- /**
627
- * Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
628
- * @summary Update the inbound webhook
629
- * @param {InboundWebhooksApiUpdateInboundWebhookRequest} requestParameters Request parameters.
630
- * @param {*} [options] Override http request option.
631
- * @throws {RequiredError}
632
- * @memberof InboundWebhooksApi
633
- */
634
- InboundWebhooksApi.prototype.updateInboundWebhook = function (requestParameters, options) {
635
- var _this = this;
636
- return (0, exports.InboundWebhooksApiFp)(this.configuration).updateInboundWebhook(requestParameters.code, requestParameters.updateInboundWebhookRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
637
- };
638
410
  return InboundWebhooksApi;
639
411
  }(base_1.BaseAPI));
640
412
  exports.InboundWebhooksApi = InboundWebhooksApi;
package/dist/api.d.ts CHANGED
@@ -9,7 +9,5 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export * from './api/health-checks-api';
12
+ export * from './api/health-api';
13
13
  export * from './api/inbound-webhooks-api';
14
- export * from './api/trigger-inbound-webhooks-api';
15
- export * from './api/webhook-requests-api';
package/dist/api.js CHANGED
@@ -27,7 +27,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./api/health-checks-api"), exports);
30
+ __exportStar(require("./api/health-api"), exports);
31
31
  __exportStar(require("./api/inbound-webhooks-api"), exports);
32
- __exportStar(require("./api/trigger-inbound-webhooks-api"), exports);
33
- __exportStar(require("./api/webhook-requests-api"), exports);
@@ -27,6 +27,12 @@ export interface CreateInboundWebhookRequestDto {
27
27
  * @memberof CreateInboundWebhookRequestDto
28
28
  */
29
29
  'slug': string;
30
+ /**
31
+ * The code of the signing secret used to verify webhook requests
32
+ * @type {string}
33
+ * @memberof CreateInboundWebhookRequestDto
34
+ */
35
+ 'signingSecretCode': string;
30
36
  /**
31
37
  * The workflow code to trigger when the webhook is called
32
38
  * @type {string}
@@ -45,6 +45,12 @@ export interface InboundWebhookClass {
45
45
  * @memberof InboundWebhookClass
46
46
  */
47
47
  'slug': string;
48
+ /**
49
+ * The code of the signing secret used to verify webhook requests
50
+ * @type {string}
51
+ * @memberof InboundWebhookClass
52
+ */
53
+ 'signingSecretCode': string;
48
54
  /**
49
55
  * Whether the webhook is enabled
50
56
  * @type {boolean}
@@ -63,12 +69,6 @@ export interface InboundWebhookClass {
63
69
  * @memberof InboundWebhookClass
64
70
  */
65
71
  'externalRefLocation'?: InboundWebhookClassExternalRefLocationEnum;
66
- /**
67
- * The workflow code to trigger when the webhook is called
68
- * @type {string}
69
- * @memberof InboundWebhookClass
70
- */
71
- 'workflowCode': string;
72
72
  /**
73
73
  * Time at which the object was created.
74
74
  * @type {string}
@@ -4,10 +4,3 @@ export * from './get-inbound-webhook-response-class';
4
4
  export * from './inbound-webhook-class';
5
5
  export * from './inline-response200';
6
6
  export * from './inline-response503';
7
- export * from './list-inbound-webhook-response-class';
8
- export * from './list-webhook-requests-response-class';
9
- export * from './trigger-inbound-webhook-accepted-response-class';
10
- export * from './trigger-inbound-webhook-rejected-response-class';
11
- export * from './update-inbound-webhook-request-dto';
12
- export * from './update-inbound-webhook-response-class';
13
- export * from './webhook-request-class';
@@ -20,10 +20,3 @@ __exportStar(require("./get-inbound-webhook-response-class"), exports);
20
20
  __exportStar(require("./inbound-webhook-class"), exports);
21
21
  __exportStar(require("./inline-response200"), exports);
22
22
  __exportStar(require("./inline-response503"), exports);
23
- __exportStar(require("./list-inbound-webhook-response-class"), exports);
24
- __exportStar(require("./list-webhook-requests-response-class"), exports);
25
- __exportStar(require("./trigger-inbound-webhook-accepted-response-class"), exports);
26
- __exportStar(require("./trigger-inbound-webhook-rejected-response-class"), exports);
27
- __exportStar(require("./update-inbound-webhook-request-dto"), exports);
28
- __exportStar(require("./update-inbound-webhook-response-class"), exports);
29
- __exportStar(require("./webhook-request-class"), exports);
@@ -32,6 +32,12 @@ export interface CreateInboundWebhookRequestDto {
32
32
  * @memberof CreateInboundWebhookRequestDto
33
33
  */
34
34
  'slug': string;
35
+ /**
36
+ * The code of the signing secret used to verify webhook requests
37
+ * @type {string}
38
+ * @memberof CreateInboundWebhookRequestDto
39
+ */
40
+ 'signingSecretCode': string;
35
41
  /**
36
42
  * The workflow code to trigger when the webhook is called
37
43
  * @type {string}
@@ -50,6 +50,12 @@ export interface InboundWebhookClass {
50
50
  * @memberof InboundWebhookClass
51
51
  */
52
52
  'slug': string;
53
+ /**
54
+ * The code of the signing secret used to verify webhook requests
55
+ * @type {string}
56
+ * @memberof InboundWebhookClass
57
+ */
58
+ 'signingSecretCode': string;
53
59
  /**
54
60
  * Whether the webhook is enabled
55
61
  * @type {boolean}
@@ -68,12 +74,6 @@ export interface InboundWebhookClass {
68
74
  * @memberof InboundWebhookClass
69
75
  */
70
76
  'externalRefLocation'?: InboundWebhookClassExternalRefLocationEnum;
71
- /**
72
- * The workflow code to trigger when the webhook is called
73
- * @type {string}
74
- * @memberof InboundWebhookClass
75
- */
76
- 'workflowCode': string;
77
77
  /**
78
78
  * Time at which the object was created.
79
79
  * @type {string}
package/models/index.ts CHANGED
@@ -4,10 +4,3 @@ export * from './get-inbound-webhook-response-class';
4
4
  export * from './inbound-webhook-class';
5
5
  export * from './inline-response200';
6
6
  export * from './inline-response503';
7
- export * from './list-inbound-webhook-response-class';
8
- export * from './list-webhook-requests-response-class';
9
- export * from './trigger-inbound-webhook-accepted-response-class';
10
- export * from './trigger-inbound-webhook-rejected-response-class';
11
- export * from './update-inbound-webhook-request-dto';
12
- export * from './update-inbound-webhook-response-class';
13
- export * from './webhook-request-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/webhook-sdk-node",
3
- "version": "1.0.1-beta.24",
3
+ "version": "1.0.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/webhook-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }