@emilgroup/webhook-sdk-node 1.0.1-beta.23 → 1.0.1-beta.24
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 +2 -1
- package/README.md +2 -2
- package/api/trigger-inbound-webhooks-api.ts +5 -3
- package/dist/api/trigger-inbound-webhooks-api.d.ts +4 -4
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/dist/models/trigger-inbound-webhook-accepted-response-class.d.ts +36 -0
- package/dist/models/{trigger-inbound-webhook-response-class.d.ts → trigger-inbound-webhook-rejected-response-class.d.ts} +10 -10
- package/dist/models/trigger-inbound-webhook-rejected-response-class.js +15 -0
- package/models/index.ts +2 -1
- package/models/trigger-inbound-webhook-accepted-response-class.ts +42 -0
- package/models/{trigger-inbound-webhook-response-class.ts → trigger-inbound-webhook-rejected-response-class.ts} +10 -10
- package/package.json +1 -1
- /package/dist/models/{trigger-inbound-webhook-response-class.js → trigger-inbound-webhook-accepted-response-class.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -21,7 +21,8 @@ models/inline-response200.ts
|
|
|
21
21
|
models/inline-response503.ts
|
|
22
22
|
models/list-inbound-webhook-response-class.ts
|
|
23
23
|
models/list-webhook-requests-response-class.ts
|
|
24
|
-
models/trigger-inbound-webhook-response-class.ts
|
|
24
|
+
models/trigger-inbound-webhook-accepted-response-class.ts
|
|
25
|
+
models/trigger-inbound-webhook-rejected-response-class.ts
|
|
25
26
|
models/update-inbound-webhook-request-dto.ts
|
|
26
27
|
models/update-inbound-webhook-response-class.ts
|
|
27
28
|
models/webhook-request-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/webhook-sdk-node@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/webhook-sdk-node@1.0.1-beta.24 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/webhook-sdk-node@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/webhook-sdk-node@1.0.1-beta.24
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -21,7 +21,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import {
|
|
24
|
+
import { TriggerInboundWebhookAcceptedResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { TriggerInboundWebhookRejectedResponseClass } from '../models';
|
|
25
27
|
// URLSearchParams not necessarily used
|
|
26
28
|
// @ts-ignore
|
|
27
29
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -95,7 +97,7 @@ export const TriggerInboundWebhooksApiFp = function(configuration?: Configuratio
|
|
|
95
97
|
* @param {*} [options] Override http request option.
|
|
96
98
|
* @throws {RequiredError}
|
|
97
99
|
*/
|
|
98
|
-
async triggerIncomingWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
100
|
+
async triggerIncomingWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TriggerInboundWebhookAcceptedResponseClass>> {
|
|
99
101
|
const localVarAxiosArgs = await localVarAxiosParamCreator.triggerIncomingWebhook(code, authorization, options);
|
|
100
102
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
101
103
|
},
|
|
@@ -117,7 +119,7 @@ export const TriggerInboundWebhooksApiFactory = function (configuration?: Config
|
|
|
117
119
|
* @param {*} [options] Override http request option.
|
|
118
120
|
* @throws {RequiredError}
|
|
119
121
|
*/
|
|
120
|
-
triggerIncomingWebhook(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
122
|
+
triggerIncomingWebhook(code: string, authorization?: string, options?: any): AxiosPromise<TriggerInboundWebhookAcceptedResponseClass> {
|
|
121
123
|
return localVarFp.triggerIncomingWebhook(code, authorization, options).then((request) => request(axios, basePath));
|
|
122
124
|
},
|
|
123
125
|
};
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import {
|
|
15
|
+
import { TriggerInboundWebhookAcceptedResponseClass } from '../models';
|
|
16
16
|
/**
|
|
17
17
|
* TriggerInboundWebhooksApi - axios parameter creator
|
|
18
18
|
* @export
|
|
@@ -41,7 +41,7 @@ export declare const TriggerInboundWebhooksApiFp: (configuration?: Configuration
|
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
44
|
-
triggerIncomingWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
44
|
+
triggerIncomingWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TriggerInboundWebhookAcceptedResponseClass>>;
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
* TriggerInboundWebhooksApi - factory interface
|
|
@@ -56,7 +56,7 @@ export declare const TriggerInboundWebhooksApiFactory: (configuration?: Configur
|
|
|
56
56
|
* @param {*} [options] Override http request option.
|
|
57
57
|
* @throws {RequiredError}
|
|
58
58
|
*/
|
|
59
|
-
triggerIncomingWebhook(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
59
|
+
triggerIncomingWebhook(code: string, authorization?: string, options?: any): AxiosPromise<TriggerInboundWebhookAcceptedResponseClass>;
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
62
|
* Request parameters for triggerIncomingWebhook operation in TriggerInboundWebhooksApi.
|
|
@@ -92,5 +92,5 @@ export declare class TriggerInboundWebhooksApi extends BaseAPI {
|
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
* @memberof TriggerInboundWebhooksApi
|
|
94
94
|
*/
|
|
95
|
-
triggerIncomingWebhook(requestParameters: TriggerInboundWebhooksApiTriggerIncomingWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
95
|
+
triggerIncomingWebhook(requestParameters: TriggerInboundWebhooksApiTriggerIncomingWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TriggerInboundWebhookAcceptedResponseClass, any, {}>>;
|
|
96
96
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ export * from './inline-response200';
|
|
|
6
6
|
export * from './inline-response503';
|
|
7
7
|
export * from './list-inbound-webhook-response-class';
|
|
8
8
|
export * from './list-webhook-requests-response-class';
|
|
9
|
-
export * from './trigger-inbound-webhook-response-class';
|
|
9
|
+
export * from './trigger-inbound-webhook-accepted-response-class';
|
|
10
|
+
export * from './trigger-inbound-webhook-rejected-response-class';
|
|
10
11
|
export * from './update-inbound-webhook-request-dto';
|
|
11
12
|
export * from './update-inbound-webhook-response-class';
|
|
12
13
|
export * from './webhook-request-class';
|
package/dist/models/index.js
CHANGED
|
@@ -22,7 +22,8 @@ __exportStar(require("./inline-response200"), exports);
|
|
|
22
22
|
__exportStar(require("./inline-response503"), exports);
|
|
23
23
|
__exportStar(require("./list-inbound-webhook-response-class"), exports);
|
|
24
24
|
__exportStar(require("./list-webhook-requests-response-class"), exports);
|
|
25
|
-
__exportStar(require("./trigger-inbound-webhook-response-class"), exports);
|
|
25
|
+
__exportStar(require("./trigger-inbound-webhook-accepted-response-class"), exports);
|
|
26
|
+
__exportStar(require("./trigger-inbound-webhook-rejected-response-class"), exports);
|
|
26
27
|
__exportStar(require("./update-inbound-webhook-request-dto"), exports);
|
|
27
28
|
__exportStar(require("./update-inbound-webhook-response-class"), exports);
|
|
28
29
|
__exportStar(require("./webhook-request-class"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
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 TriggerInboundWebhookAcceptedResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface TriggerInboundWebhookAcceptedResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TriggerInboundWebhookAcceptedResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'status': string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TriggerInboundWebhookAcceptedResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'httpStatusCode': number;
|
|
30
|
+
/**
|
|
31
|
+
* JSON string payload returned by the trigger flow
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TriggerInboundWebhookAcceptedResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'responseBody'?: string;
|
|
36
|
+
}
|
|
@@ -12,31 +12,31 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface TriggerInboundWebhookRejectedResponseClass
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface TriggerInboundWebhookRejectedResponseClass {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
*
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
22
22
|
*/
|
|
23
23
|
'status': string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
*
|
|
26
26
|
* @type {number}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
28
28
|
*/
|
|
29
29
|
'httpStatusCode': number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* JSON string payload returned by the trigger flow
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
34
34
|
*/
|
|
35
35
|
'responseBody'?: string;
|
|
36
36
|
/**
|
|
37
|
-
* Error message
|
|
37
|
+
* Error message explaining why the webhook was rejected
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
40
40
|
*/
|
|
41
41
|
'errorMessage'?: string;
|
|
42
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 });
|
package/models/index.ts
CHANGED
|
@@ -6,7 +6,8 @@ export * from './inline-response200';
|
|
|
6
6
|
export * from './inline-response503';
|
|
7
7
|
export * from './list-inbound-webhook-response-class';
|
|
8
8
|
export * from './list-webhook-requests-response-class';
|
|
9
|
-
export * from './trigger-inbound-webhook-response-class';
|
|
9
|
+
export * from './trigger-inbound-webhook-accepted-response-class';
|
|
10
|
+
export * from './trigger-inbound-webhook-rejected-response-class';
|
|
10
11
|
export * from './update-inbound-webhook-request-dto';
|
|
11
12
|
export * from './update-inbound-webhook-response-class';
|
|
12
13
|
export * from './webhook-request-class';
|
|
@@ -0,0 +1,42 @@
|
|
|
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 TriggerInboundWebhookAcceptedResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface TriggerInboundWebhookAcceptedResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof TriggerInboundWebhookAcceptedResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'status': string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof TriggerInboundWebhookAcceptedResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'httpStatusCode': number;
|
|
35
|
+
/**
|
|
36
|
+
* JSON string payload returned by the trigger flow
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof TriggerInboundWebhookAcceptedResponseClass
|
|
39
|
+
*/
|
|
40
|
+
'responseBody'?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -17,31 +17,31 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface TriggerInboundWebhookRejectedResponseClass
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface TriggerInboundWebhookRejectedResponseClass {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
*
|
|
25
25
|
* @type {string}
|
|
26
|
-
* @memberof
|
|
26
|
+
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
27
27
|
*/
|
|
28
28
|
'status': string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
*
|
|
31
31
|
* @type {number}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
33
33
|
*/
|
|
34
34
|
'httpStatusCode': number;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* JSON string payload returned by the trigger flow
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
39
39
|
*/
|
|
40
40
|
'responseBody'?: string;
|
|
41
41
|
/**
|
|
42
|
-
* Error message
|
|
42
|
+
* Error message explaining why the webhook was rejected
|
|
43
43
|
* @type {string}
|
|
44
|
-
* @memberof
|
|
44
|
+
* @memberof TriggerInboundWebhookRejectedResponseClass
|
|
45
45
|
*/
|
|
46
46
|
'errorMessage'?: string;
|
|
47
47
|
}
|
package/package.json
CHANGED