@emilgroup/webhook-sdk-node 1.0.1-beta.25 → 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.
- package/.openapi-generator/FILES +1 -10
- package/README.md +2 -2
- package/api/{health-checks-api.ts → health-api.ts} +19 -45
- package/api/inbound-webhooks-api.ts +12 -320
- package/api.ts +2 -6
- package/dist/api/{health-checks-api.d.ts → health-api.d.ts} +14 -31
- package/dist/api/{health-checks-api.js → health-api.js} +42 -60
- package/dist/api/inbound-webhooks-api.d.ts +12 -188
- package/dist/api/inbound-webhooks-api.js +12 -240
- package/dist/api.d.ts +1 -3
- package/dist/api.js +1 -3
- package/dist/models/create-inbound-webhook-request-dto.d.ts +6 -0
- package/dist/models/inbound-webhook-class.d.ts +6 -6
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/models/create-inbound-webhook-request-dto.ts +6 -0
- package/models/inbound-webhook-class.ts +6 -6
- package/models/index.ts +0 -7
- package/package.json +2 -2
- package/api/trigger-inbound-webhooks-api.ts +0 -167
- package/api/webhook-requests-api.ts +0 -250
- package/dist/api/trigger-inbound-webhooks-api.d.ts +0 -96
- package/dist/api/trigger-inbound-webhooks-api.js +0 -227
- package/dist/api/webhook-requests-api.d.ts +0 -150
- package/dist/api/webhook-requests-api.js +0 -264
- package/dist/models/list-inbound-webhook-response-class.d.ts +0 -43
- package/dist/models/list-inbound-webhook-response-class.js +0 -15
- package/dist/models/list-webhook-requests-response-class.d.ts +0 -43
- package/dist/models/list-webhook-requests-response-class.js +0 -15
- package/dist/models/trigger-inbound-webhook-accepted-response-class.d.ts +0 -36
- package/dist/models/trigger-inbound-webhook-accepted-response-class.js +0 -15
- package/dist/models/trigger-inbound-webhook-rejected-response-class.d.ts +0 -42
- package/dist/models/trigger-inbound-webhook-rejected-response-class.js +0 -15
- package/dist/models/update-inbound-webhook-request-dto.d.ts +0 -54
- package/dist/models/update-inbound-webhook-request-dto.js +0 -21
- package/dist/models/update-inbound-webhook-response-class.d.ts +0 -25
- package/dist/models/update-inbound-webhook-response-class.js +0 -15
- package/dist/models/webhook-request-class.d.ts +0 -146
- package/dist/models/webhook-request-class.js +0 -23
- package/models/list-inbound-webhook-response-class.ts +0 -49
- package/models/list-webhook-requests-response-class.ts +0 -49
- package/models/trigger-inbound-webhook-accepted-response-class.ts +0 -42
- package/models/trigger-inbound-webhook-rejected-response-class.ts +0 -48
- package/models/update-inbound-webhook-request-dto.ts +0 -63
- package/models/update-inbound-webhook-response-class.ts +0 -31
- package/models/webhook-request-class.ts +0 -155
|
@@ -1,48 +0,0 @@
|
|
|
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 TriggerInboundWebhookRejectedResponseClass
|
|
21
|
-
*/
|
|
22
|
-
export interface TriggerInboundWebhookRejectedResponseClass {
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
27
|
-
*/
|
|
28
|
-
'status': string;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {number}
|
|
32
|
-
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
33
|
-
*/
|
|
34
|
-
'httpStatusCode': number;
|
|
35
|
-
/**
|
|
36
|
-
* JSON string payload returned by the trigger flow
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
39
|
-
*/
|
|
40
|
-
'responseBody'?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Error message explaining why the webhook was rejected
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
45
|
-
*/
|
|
46
|
-
'errorMessage'?: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,155 +0,0 @@
|
|
|
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
|
-
* Code of the workflow instance created when the webhook triggered a workflow
|
|
115
|
-
* @type {string}
|
|
116
|
-
* @memberof WebhookRequestClass
|
|
117
|
-
*/
|
|
118
|
-
'workflowInstanceCode'?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Time at which the object was created.
|
|
121
|
-
* @type {string}
|
|
122
|
-
* @memberof WebhookRequestClass
|
|
123
|
-
*/
|
|
124
|
-
'createdAt': string;
|
|
125
|
-
/**
|
|
126
|
-
* Time at which the object was updated.
|
|
127
|
-
* @type {string}
|
|
128
|
-
* @memberof WebhookRequestClass
|
|
129
|
-
*/
|
|
130
|
-
'updatedAt': string;
|
|
131
|
-
/**
|
|
132
|
-
* Identifier of the user who created the record.
|
|
133
|
-
* @type {string}
|
|
134
|
-
* @memberof WebhookRequestClass
|
|
135
|
-
*/
|
|
136
|
-
'createdBy': string;
|
|
137
|
-
/**
|
|
138
|
-
* Identifier of the user who last updated the record.
|
|
139
|
-
* @type {string}
|
|
140
|
-
* @memberof WebhookRequestClass
|
|
141
|
-
*/
|
|
142
|
-
'updatedBy': string;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export const WebhookRequestClassStatusEnum = {
|
|
146
|
-
Scheduled: 'SCHEDULED',
|
|
147
|
-
InProgress: 'IN_PROGRESS',
|
|
148
|
-
Completed: 'COMPLETED',
|
|
149
|
-
Failed: 'FAILED',
|
|
150
|
-
Rejected: 'REJECTED'
|
|
151
|
-
} as const;
|
|
152
|
-
|
|
153
|
-
export type WebhookRequestClassStatusEnum = typeof WebhookRequestClassStatusEnum[keyof typeof WebhookRequestClassStatusEnum];
|
|
154
|
-
|
|
155
|
-
|