@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
@@ -0,0 +1,233 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Webhookservice
6
+ * The EMIL Webhookservice API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.TriggerInboundWebhooksApi = exports.TriggerInboundWebhooksApiFactory = exports.TriggerInboundWebhooksApiFp = exports.TriggerInboundWebhooksApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * TriggerInboundWebhooksApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var TriggerInboundWebhooksApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Receives and processes incoming webhook requests from external systems **Required Permissions** none
101
+ * @summary Execute incoming webhook
102
+ * @param {string} tenantSlug
103
+ * @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ triggerIncomingWebhook: function (tenantSlug, slugAndCode, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'tenantSlug' is not null or undefined
116
+ (0, common_1.assertParamExists)('triggerIncomingWebhook', 'tenantSlug', tenantSlug);
117
+ // verify required parameter 'slugAndCode' is not null or undefined
118
+ (0, common_1.assertParamExists)('triggerIncomingWebhook', 'slugAndCode', slugAndCode);
119
+ localVarPath = "/webhookservice/v1/in/{tenantSlug}/{slugAndCode}"
120
+ .replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
121
+ .replace("{".concat("slugAndCode", "}"), encodeURIComponent(String(slugAndCode)));
122
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
123
+ if (configuration) {
124
+ baseOptions = configuration.baseOptions;
125
+ baseAccessToken = configuration.accessToken;
126
+ }
127
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
128
+ localVarHeaderParameter = {};
129
+ localVarQueryParameter = {};
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
133
+ case 1:
134
+ // authentication bearer required
135
+ // http bearer authentication required
136
+ _a.sent();
137
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
138
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
139
+ }
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ return [2 /*return*/, {
144
+ url: (0, common_1.toPathString)(localVarUrlObj),
145
+ options: localVarRequestOptions,
146
+ }];
147
+ }
148
+ });
149
+ });
150
+ },
151
+ };
152
+ };
153
+ exports.TriggerInboundWebhooksApiAxiosParamCreator = TriggerInboundWebhooksApiAxiosParamCreator;
154
+ /**
155
+ * TriggerInboundWebhooksApi - functional programming interface
156
+ * @export
157
+ */
158
+ var TriggerInboundWebhooksApiFp = function (configuration) {
159
+ var localVarAxiosParamCreator = (0, exports.TriggerInboundWebhooksApiAxiosParamCreator)(configuration);
160
+ return {
161
+ /**
162
+ * Receives and processes incoming webhook requests from external systems **Required Permissions** none
163
+ * @summary Execute incoming webhook
164
+ * @param {string} tenantSlug
165
+ * @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
166
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ */
170
+ triggerIncomingWebhook: function (tenantSlug, slugAndCode, authorization, options) {
171
+ return __awaiter(this, void 0, void 0, function () {
172
+ var localVarAxiosArgs;
173
+ return __generator(this, function (_a) {
174
+ switch (_a.label) {
175
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.triggerIncomingWebhook(tenantSlug, slugAndCode, authorization, options)];
176
+ case 1:
177
+ localVarAxiosArgs = _a.sent();
178
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
179
+ }
180
+ });
181
+ });
182
+ },
183
+ };
184
+ };
185
+ exports.TriggerInboundWebhooksApiFp = TriggerInboundWebhooksApiFp;
186
+ /**
187
+ * TriggerInboundWebhooksApi - factory interface
188
+ * @export
189
+ */
190
+ var TriggerInboundWebhooksApiFactory = function (configuration, basePath, axios) {
191
+ var localVarFp = (0, exports.TriggerInboundWebhooksApiFp)(configuration);
192
+ return {
193
+ /**
194
+ * Receives and processes incoming webhook requests from external systems **Required Permissions** none
195
+ * @summary Execute incoming webhook
196
+ * @param {string} tenantSlug
197
+ * @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
198
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ triggerIncomingWebhook: function (tenantSlug, slugAndCode, authorization, options) {
203
+ return localVarFp.triggerIncomingWebhook(tenantSlug, slugAndCode, authorization, options).then(function (request) { return request(axios, basePath); });
204
+ },
205
+ };
206
+ };
207
+ exports.TriggerInboundWebhooksApiFactory = TriggerInboundWebhooksApiFactory;
208
+ /**
209
+ * TriggerInboundWebhooksApi - object-oriented interface
210
+ * @export
211
+ * @class TriggerInboundWebhooksApi
212
+ * @extends {BaseAPI}
213
+ */
214
+ var TriggerInboundWebhooksApi = /** @class */ (function (_super) {
215
+ __extends(TriggerInboundWebhooksApi, _super);
216
+ function TriggerInboundWebhooksApi() {
217
+ return _super !== null && _super.apply(this, arguments) || this;
218
+ }
219
+ /**
220
+ * Receives and processes incoming webhook requests from external systems **Required Permissions** none
221
+ * @summary Execute incoming webhook
222
+ * @param {TriggerInboundWebhooksApiTriggerIncomingWebhookRequest} requestParameters Request parameters.
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ * @memberof TriggerInboundWebhooksApi
226
+ */
227
+ TriggerInboundWebhooksApi.prototype.triggerIncomingWebhook = function (requestParameters, options) {
228
+ var _this = this;
229
+ return (0, exports.TriggerInboundWebhooksApiFp)(this.configuration).triggerIncomingWebhook(requestParameters.tenantSlug, requestParameters.slugAndCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
230
+ };
231
+ return TriggerInboundWebhooksApi;
232
+ }(base_1.BaseAPI));
233
+ exports.TriggerInboundWebhooksApi = TriggerInboundWebhooksApi;
package/dist/api.d.ts CHANGED
@@ -9,5 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export * from './api/health-api';
12
+ export * from './api/health-checks-api';
13
13
  export * from './api/inbound-webhooks-api';
14
+ export * from './api/trigger-inbound-webhooks-api';
package/dist/api.js CHANGED
@@ -27,5 +27,6 @@ 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-api"), exports);
30
+ __exportStar(require("./api/health-checks-api"), exports);
31
31
  __exportStar(require("./api/inbound-webhooks-api"), exports);
32
+ __exportStar(require("./api/trigger-inbound-webhooks-api"), exports);
@@ -27,12 +27,6 @@ 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;
36
30
  /**
37
31
  * The workflow code to trigger when the webhook is called
38
32
  * @type {string}
@@ -45,12 +45,6 @@ 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;
54
48
  /**
55
49
  * Whether the webhook is enabled
56
50
  * @type {boolean}
@@ -69,6 +63,12 @@ export interface InboundWebhookClass {
69
63
  * @memberof InboundWebhookClass
70
64
  */
71
65
  '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,3 +4,7 @@ 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 './trigger-inbound-webhook-response-class';
9
+ export * from './update-inbound-webhook-request-dto';
10
+ export * from './update-inbound-webhook-response-class';
@@ -20,3 +20,7 @@ __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("./trigger-inbound-webhook-response-class"), exports);
25
+ __exportStar(require("./update-inbound-webhook-request-dto"), exports);
26
+ __exportStar(require("./update-inbound-webhook-response-class"), exports);
@@ -0,0 +1,43 @@
1
+ /**
2
+ * EMIL Webhookservice
3
+ * The EMIL Webhookservice API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { InboundWebhookClass } from './inbound-webhook-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListInboundWebhookResponseClass
17
+ */
18
+ export interface ListInboundWebhookResponseClass {
19
+ /**
20
+ * List of inbound webhooks
21
+ * @type {Array<InboundWebhookClass>}
22
+ * @memberof ListInboundWebhookResponseClass
23
+ */
24
+ 'items': Array<InboundWebhookClass>;
25
+ /**
26
+ * Token for next page of results
27
+ * @type {string}
28
+ * @memberof ListInboundWebhookResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof ListInboundWebhookResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total number of items
39
+ * @type {number}
40
+ * @memberof ListInboundWebhookResponseClass
41
+ */
42
+ 'totalItems': number;
43
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Webhookservice
6
+ * The EMIL Webhookservice API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,42 @@
1
+ /**
2
+ * EMIL Webhookservice
3
+ * The EMIL Webhookservice API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TriggerInboundWebhookResponseClass
16
+ */
17
+ export interface TriggerInboundWebhookResponseClass {
18
+ /**
19
+ * Indicates if the webhook was accepted by the system
20
+ * @type {string}
21
+ * @memberof TriggerInboundWebhookResponseClass
22
+ */
23
+ 'status': string;
24
+ /**
25
+ * HTTP status code from the webhook endpoint
26
+ * @type {number}
27
+ * @memberof TriggerInboundWebhookResponseClass
28
+ */
29
+ 'httpStatusCode': number;
30
+ /**
31
+ * Response body from the webhook trigger
32
+ * @type {string}
33
+ * @memberof TriggerInboundWebhookResponseClass
34
+ */
35
+ 'responseBody'?: string;
36
+ /**
37
+ * Error message if the webhook was not accepted by the system
38
+ * @type {string}
39
+ * @memberof TriggerInboundWebhookResponseClass
40
+ */
41
+ 'errorMessage'?: string;
42
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Webhookservice
6
+ * The EMIL Webhookservice API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,54 @@
1
+ /**
2
+ * EMIL Webhookservice
3
+ * The EMIL Webhookservice API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateInboundWebhookRequestDto
16
+ */
17
+ export interface UpdateInboundWebhookRequestDto {
18
+ /**
19
+ * Updated name of the inbound webhook
20
+ * @type {string}
21
+ * @memberof UpdateInboundWebhookRequestDto
22
+ */
23
+ 'name'?: string;
24
+ /**
25
+ * Enable or disable the webhook
26
+ * @type {boolean}
27
+ * @memberof UpdateInboundWebhookRequestDto
28
+ */
29
+ 'isEnabled'?: boolean;
30
+ /**
31
+ * Path to extract external reference from request
32
+ * @type {string}
33
+ * @memberof UpdateInboundWebhookRequestDto
34
+ */
35
+ 'externalRefPath'?: string;
36
+ /**
37
+ * Location of the external reference
38
+ * @type {string}
39
+ * @memberof UpdateInboundWebhookRequestDto
40
+ */
41
+ 'externalRefLocation'?: UpdateInboundWebhookRequestDtoExternalRefLocationEnum;
42
+ /**
43
+ * The workflow code to trigger when the webhook is called
44
+ * @type {string}
45
+ * @memberof UpdateInboundWebhookRequestDto
46
+ */
47
+ 'workflowCode'?: string;
48
+ }
49
+ export declare const UpdateInboundWebhookRequestDtoExternalRefLocationEnum: {
50
+ readonly Header: "Header";
51
+ readonly Body: "Body";
52
+ readonly Query: "Query";
53
+ };
54
+ export type UpdateInboundWebhookRequestDtoExternalRefLocationEnum = typeof UpdateInboundWebhookRequestDtoExternalRefLocationEnum[keyof typeof UpdateInboundWebhookRequestDtoExternalRefLocationEnum];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Webhookservice
6
+ * The EMIL Webhookservice API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateInboundWebhookRequestDtoExternalRefLocationEnum = void 0;
17
+ exports.UpdateInboundWebhookRequestDtoExternalRefLocationEnum = {
18
+ Header: 'Header',
19
+ Body: 'Body',
20
+ Query: 'Query'
21
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL Webhookservice
3
+ * The EMIL Webhookservice API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { InboundWebhookClass } from './inbound-webhook-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateInboundWebhookResponseClass
17
+ */
18
+ export interface UpdateInboundWebhookResponseClass {
19
+ /**
20
+ * The inbound webhook response.
21
+ * @type {InboundWebhookClass}
22
+ * @memberof UpdateInboundWebhookResponseClass
23
+ */
24
+ 'inboundWebhook': InboundWebhookClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Webhookservice
6
+ * The EMIL Webhookservice API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -32,12 +32,6 @@ 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;
41
35
  /**
42
36
  * The workflow code to trigger when the webhook is called
43
37
  * @type {string}
@@ -50,12 +50,6 @@ 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;
59
53
  /**
60
54
  * Whether the webhook is enabled
61
55
  * @type {boolean}
@@ -74,6 +68,12 @@ export interface InboundWebhookClass {
74
68
  * @memberof InboundWebhookClass
75
69
  */
76
70
  '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,3 +4,7 @@ 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 './trigger-inbound-webhook-response-class';
9
+ export * from './update-inbound-webhook-request-dto';
10
+ export * from './update-inbound-webhook-response-class';
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Webhookservice
5
+ * The EMIL Webhookservice API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { InboundWebhookClass } from './inbound-webhook-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListInboundWebhookResponseClass
22
+ */
23
+ export interface ListInboundWebhookResponseClass {
24
+ /**
25
+ * List of inbound webhooks
26
+ * @type {Array<InboundWebhookClass>}
27
+ * @memberof ListInboundWebhookResponseClass
28
+ */
29
+ 'items': Array<InboundWebhookClass>;
30
+ /**
31
+ * Token for next page of results
32
+ * @type {string}
33
+ * @memberof ListInboundWebhookResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Number of items per page
38
+ * @type {number}
39
+ * @memberof ListInboundWebhookResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total number of items
44
+ * @type {number}
45
+ * @memberof ListInboundWebhookResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+