@emilgroup/webhook-sdk-node 1.0.1-beta.1 → 1.0.1-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +9 -1
- package/README.md +2 -2
- package/api/{health-api.ts → health-checks-api.ts} +45 -19
- package/api/inbound-webhooks-api.ts +417 -8
- package/api/trigger-inbound-webhooks-api.ts +178 -0
- package/api/webhook-requests-api.ts +250 -0
- package/api.ts +6 -2
- package/dist/api/{health-api.d.ts → health-checks-api.d.ts} +31 -14
- package/dist/api/{health-api.js → health-checks-api.js} +60 -42
- package/dist/api/inbound-webhooks-api.d.ts +239 -8
- package/dist/api/inbound-webhooks-api.js +328 -8
- package/dist/api/trigger-inbound-webhooks-api.d.ts +105 -0
- package/dist/api/trigger-inbound-webhooks-api.js +233 -0
- package/dist/api/webhook-requests-api.d.ts +150 -0
- package/dist/api/webhook-requests-api.js +264 -0
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/models/create-inbound-webhook-request-dto.d.ts +0 -6
- package/dist/models/inbound-webhook-class.d.ts +6 -6
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/list-inbound-webhook-response-class.d.ts +43 -0
- package/dist/models/list-inbound-webhook-response-class.js +15 -0
- package/dist/models/list-webhook-requests-response-class.d.ts +43 -0
- package/dist/models/list-webhook-requests-response-class.js +15 -0
- package/dist/models/trigger-inbound-webhook-response-class.d.ts +42 -0
- package/dist/models/trigger-inbound-webhook-response-class.js +15 -0
- package/dist/models/update-inbound-webhook-request-dto.d.ts +54 -0
- package/dist/models/update-inbound-webhook-request-dto.js +21 -0
- package/dist/models/update-inbound-webhook-response-class.d.ts +25 -0
- package/dist/models/update-inbound-webhook-response-class.js +15 -0
- package/dist/models/webhook-request-class.d.ts +139 -0
- package/dist/models/webhook-request-class.js +22 -0
- package/models/create-inbound-webhook-request-dto.ts +0 -6
- package/models/inbound-webhook-class.ts +6 -6
- package/models/index.ts +6 -0
- package/models/list-inbound-webhook-response-class.ts +49 -0
- package/models/list-webhook-requests-response-class.ts +49 -0
- package/models/trigger-inbound-webhook-response-class.ts +48 -0
- package/models/update-inbound-webhook-request-dto.ts +63 -0
- package/models/update-inbound-webhook-response-class.ts +31 -0
- package/models/webhook-request-class.ts +148 -0
- package/package.json +2 -2
|
@@ -0,0 +1,139 @@
|
|
|
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 WebhookRequestClass
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookRequestClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof WebhookRequestClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier code for the webhook request
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WebhookRequestClass
|
|
28
|
+
*/
|
|
29
|
+
'code': string;
|
|
30
|
+
/**
|
|
31
|
+
* Tenant owner of the webhook request
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WebhookRequestClass
|
|
34
|
+
*/
|
|
35
|
+
'owner': string;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the associated inbound webhook
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof WebhookRequestClass
|
|
40
|
+
*/
|
|
41
|
+
'inboundWebhookId': number;
|
|
42
|
+
/**
|
|
43
|
+
* Code of the associated inbound webhook
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WebhookRequestClass
|
|
46
|
+
*/
|
|
47
|
+
'inboundWebhookCode': string;
|
|
48
|
+
/**
|
|
49
|
+
* Request body payload
|
|
50
|
+
* @type {object}
|
|
51
|
+
* @memberof WebhookRequestClass
|
|
52
|
+
*/
|
|
53
|
+
'requestBody': object;
|
|
54
|
+
/**
|
|
55
|
+
* Request headers
|
|
56
|
+
* @type {object}
|
|
57
|
+
* @memberof WebhookRequestClass
|
|
58
|
+
*/
|
|
59
|
+
'requestHeaders': object;
|
|
60
|
+
/**
|
|
61
|
+
* HTTP method of the request
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof WebhookRequestClass
|
|
64
|
+
*/
|
|
65
|
+
'requestMethod': string;
|
|
66
|
+
/**
|
|
67
|
+
* Full request URL
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof WebhookRequestClass
|
|
70
|
+
*/
|
|
71
|
+
'requestUrl': string;
|
|
72
|
+
/**
|
|
73
|
+
* Query parameters from the request
|
|
74
|
+
* @type {object}
|
|
75
|
+
* @memberof WebhookRequestClass
|
|
76
|
+
*/
|
|
77
|
+
'queryParams': object;
|
|
78
|
+
/**
|
|
79
|
+
* Content-Type header value
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof WebhookRequestClass
|
|
82
|
+
*/
|
|
83
|
+
'contentType'?: string;
|
|
84
|
+
/**
|
|
85
|
+
* External reference ID extracted from the request
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof WebhookRequestClass
|
|
88
|
+
*/
|
|
89
|
+
'externalRef'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Processing status of the webhook request
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof WebhookRequestClass
|
|
94
|
+
*/
|
|
95
|
+
'status': WebhookRequestClassStatusEnum;
|
|
96
|
+
/**
|
|
97
|
+
* Timestamp when processing completed
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof WebhookRequestClass
|
|
100
|
+
*/
|
|
101
|
+
'processedAt'?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Error message if processing failed
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof WebhookRequestClass
|
|
106
|
+
*/
|
|
107
|
+
'errorMessage'?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Time at which the object was created.
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof WebhookRequestClass
|
|
112
|
+
*/
|
|
113
|
+
'createdAt': string;
|
|
114
|
+
/**
|
|
115
|
+
* Time at which the object was updated.
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof WebhookRequestClass
|
|
118
|
+
*/
|
|
119
|
+
'updatedAt': string;
|
|
120
|
+
/**
|
|
121
|
+
* Identifier of the user who created the record.
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof WebhookRequestClass
|
|
124
|
+
*/
|
|
125
|
+
'createdBy': string;
|
|
126
|
+
/**
|
|
127
|
+
* Identifier of the user who last updated the record.
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof WebhookRequestClass
|
|
130
|
+
*/
|
|
131
|
+
'updatedBy': string;
|
|
132
|
+
}
|
|
133
|
+
export declare const WebhookRequestClassStatusEnum: {
|
|
134
|
+
readonly Scheduled: "SCHEDULED";
|
|
135
|
+
readonly InProgress: "IN_PROGRESS";
|
|
136
|
+
readonly Completed: "COMPLETED";
|
|
137
|
+
readonly Failed: "FAILED";
|
|
138
|
+
};
|
|
139
|
+
export type WebhookRequestClassStatusEnum = typeof WebhookRequestClassStatusEnum[keyof typeof WebhookRequestClassStatusEnum];
|
|
@@ -0,0 +1,22 @@
|
|
|
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.WebhookRequestClassStatusEnum = void 0;
|
|
17
|
+
exports.WebhookRequestClassStatusEnum = {
|
|
18
|
+
Scheduled: 'SCHEDULED',
|
|
19
|
+
InProgress: 'IN_PROGRESS',
|
|
20
|
+
Completed: 'COMPLETED',
|
|
21
|
+
Failed: 'FAILED'
|
|
22
|
+
};
|
|
@@ -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,9 @@ 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-response-class';
|
|
10
|
+
export * from './update-inbound-webhook-request-dto';
|
|
11
|
+
export * from './update-inbound-webhook-response-class';
|
|
12
|
+
export * from './webhook-request-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
|
+
|
|
@@ -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 { WebhookRequestClass } from './webhook-request-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListWebhookRequestsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListWebhookRequestsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* List of webhook requests
|
|
26
|
+
* @type {Array<WebhookRequestClass>}
|
|
27
|
+
* @memberof ListWebhookRequestsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<WebhookRequestClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Token for next page of results
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListWebhookRequestsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
/**
|
|
37
|
+
* Number of items per page
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListWebhookRequestsResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'itemsPerPage': number;
|
|
42
|
+
/**
|
|
43
|
+
* Total number of items
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ListWebhookRequestsResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'totalItems': number;
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface TriggerInboundWebhookResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface TriggerInboundWebhookResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Indicates if the webhook was accepted by the system
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof TriggerInboundWebhookResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'status': string;
|
|
29
|
+
/**
|
|
30
|
+
* HTTP status code from the webhook endpoint
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof TriggerInboundWebhookResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'httpStatusCode': number;
|
|
35
|
+
/**
|
|
36
|
+
* Response body from the webhook trigger
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof TriggerInboundWebhookResponseClass
|
|
39
|
+
*/
|
|
40
|
+
'responseBody'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Error message if the webhook was not accepted by the system
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof TriggerInboundWebhookResponseClass
|
|
45
|
+
*/
|
|
46
|
+
'errorMessage'?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface UpdateInboundWebhookRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateInboundWebhookRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Updated name of the inbound webhook
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof UpdateInboundWebhookRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'name'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Enable or disable the webhook
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof UpdateInboundWebhookRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'isEnabled'?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Path to extract external reference from request
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof UpdateInboundWebhookRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'externalRefPath'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Location of the external reference
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof UpdateInboundWebhookRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'externalRefLocation'?: UpdateInboundWebhookRequestDtoExternalRefLocationEnum;
|
|
47
|
+
/**
|
|
48
|
+
* The workflow code to trigger when the webhook is called
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof UpdateInboundWebhookRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'workflowCode'?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const UpdateInboundWebhookRequestDtoExternalRefLocationEnum = {
|
|
56
|
+
Header: 'Header',
|
|
57
|
+
Body: 'Body',
|
|
58
|
+
Query: 'Query'
|
|
59
|
+
} as const;
|
|
60
|
+
|
|
61
|
+
export type UpdateInboundWebhookRequestDtoExternalRefLocationEnum = typeof UpdateInboundWebhookRequestDtoExternalRefLocationEnum[keyof typeof UpdateInboundWebhookRequestDtoExternalRefLocationEnum];
|
|
62
|
+
|
|
63
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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 UpdateInboundWebhookResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface UpdateInboundWebhookResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The inbound webhook response.
|
|
26
|
+
* @type {InboundWebhookClass}
|
|
27
|
+
* @memberof UpdateInboundWebhookResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'inboundWebhook': InboundWebhookClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface WebhookRequestClass
|
|
21
|
+
*/
|
|
22
|
+
export interface WebhookRequestClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof WebhookRequestClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier code for the webhook request
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof WebhookRequestClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* Tenant owner of the webhook request
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof WebhookRequestClass
|
|
39
|
+
*/
|
|
40
|
+
'owner': string;
|
|
41
|
+
/**
|
|
42
|
+
* ID of the associated inbound webhook
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof WebhookRequestClass
|
|
45
|
+
*/
|
|
46
|
+
'inboundWebhookId': number;
|
|
47
|
+
/**
|
|
48
|
+
* Code of the associated inbound webhook
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof WebhookRequestClass
|
|
51
|
+
*/
|
|
52
|
+
'inboundWebhookCode': string;
|
|
53
|
+
/**
|
|
54
|
+
* Request body payload
|
|
55
|
+
* @type {object}
|
|
56
|
+
* @memberof WebhookRequestClass
|
|
57
|
+
*/
|
|
58
|
+
'requestBody': object;
|
|
59
|
+
/**
|
|
60
|
+
* Request headers
|
|
61
|
+
* @type {object}
|
|
62
|
+
* @memberof WebhookRequestClass
|
|
63
|
+
*/
|
|
64
|
+
'requestHeaders': object;
|
|
65
|
+
/**
|
|
66
|
+
* HTTP method of the request
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof WebhookRequestClass
|
|
69
|
+
*/
|
|
70
|
+
'requestMethod': string;
|
|
71
|
+
/**
|
|
72
|
+
* Full request URL
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof WebhookRequestClass
|
|
75
|
+
*/
|
|
76
|
+
'requestUrl': string;
|
|
77
|
+
/**
|
|
78
|
+
* Query parameters from the request
|
|
79
|
+
* @type {object}
|
|
80
|
+
* @memberof WebhookRequestClass
|
|
81
|
+
*/
|
|
82
|
+
'queryParams': object;
|
|
83
|
+
/**
|
|
84
|
+
* Content-Type header value
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof WebhookRequestClass
|
|
87
|
+
*/
|
|
88
|
+
'contentType'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* External reference ID extracted from the request
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof WebhookRequestClass
|
|
93
|
+
*/
|
|
94
|
+
'externalRef'?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Processing status of the webhook request
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof WebhookRequestClass
|
|
99
|
+
*/
|
|
100
|
+
'status': WebhookRequestClassStatusEnum;
|
|
101
|
+
/**
|
|
102
|
+
* Timestamp when processing completed
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof WebhookRequestClass
|
|
105
|
+
*/
|
|
106
|
+
'processedAt'?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Error message if processing failed
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof WebhookRequestClass
|
|
111
|
+
*/
|
|
112
|
+
'errorMessage'?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Time at which the object was created.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof WebhookRequestClass
|
|
117
|
+
*/
|
|
118
|
+
'createdAt': string;
|
|
119
|
+
/**
|
|
120
|
+
* Time at which the object was updated.
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof WebhookRequestClass
|
|
123
|
+
*/
|
|
124
|
+
'updatedAt': string;
|
|
125
|
+
/**
|
|
126
|
+
* Identifier of the user who created the record.
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof WebhookRequestClass
|
|
129
|
+
*/
|
|
130
|
+
'createdBy': string;
|
|
131
|
+
/**
|
|
132
|
+
* Identifier of the user who last updated the record.
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof WebhookRequestClass
|
|
135
|
+
*/
|
|
136
|
+
'updatedBy': string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export const WebhookRequestClassStatusEnum = {
|
|
140
|
+
Scheduled: 'SCHEDULED',
|
|
141
|
+
InProgress: 'IN_PROGRESS',
|
|
142
|
+
Completed: 'COMPLETED',
|
|
143
|
+
Failed: 'FAILED'
|
|
144
|
+
} as const;
|
|
145
|
+
|
|
146
|
+
export type WebhookRequestClassStatusEnum = typeof WebhookRequestClassStatusEnum[keyof typeof WebhookRequestClassStatusEnum];
|
|
147
|
+
|
|
148
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/webhook-sdk-node",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.12",
|
|
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
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|