@emilgroup/webhook-sdk-node 1.0.1-beta.17 → 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.
@@ -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.17 --save
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.17
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 { TriggerInboundWebhookResponseClass } from '../models';
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<TriggerInboundWebhookResponseClass>> {
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<TriggerInboundWebhookResponseClass> {
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 { TriggerInboundWebhookResponseClass } from '../models';
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<TriggerInboundWebhookResponseClass>>;
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<TriggerInboundWebhookResponseClass>;
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<TriggerInboundWebhookResponseClass, any, {}>>;
95
+ triggerIncomingWebhook(requestParameters: TriggerInboundWebhooksApiTriggerIncomingWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TriggerInboundWebhookAcceptedResponseClass, any, {}>>;
96
96
  }
@@ -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';
@@ -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 TriggerInboundWebhookResponseClass
15
+ * @interface TriggerInboundWebhookRejectedResponseClass
16
16
  */
17
- export interface TriggerInboundWebhookResponseClass {
17
+ export interface TriggerInboundWebhookRejectedResponseClass {
18
18
  /**
19
- * Indicates if the webhook was accepted by the system
19
+ *
20
20
  * @type {string}
21
- * @memberof TriggerInboundWebhookResponseClass
21
+ * @memberof TriggerInboundWebhookRejectedResponseClass
22
22
  */
23
23
  'status': string;
24
24
  /**
25
- * HTTP status code from the webhook endpoint
25
+ *
26
26
  * @type {number}
27
- * @memberof TriggerInboundWebhookResponseClass
27
+ * @memberof TriggerInboundWebhookRejectedResponseClass
28
28
  */
29
29
  'httpStatusCode': number;
30
30
  /**
31
- * Response body from the webhook trigger
31
+ * JSON string payload returned by the trigger flow
32
32
  * @type {string}
33
- * @memberof TriggerInboundWebhookResponseClass
33
+ * @memberof TriggerInboundWebhookRejectedResponseClass
34
34
  */
35
35
  'responseBody'?: string;
36
36
  /**
37
- * Error message if the webhook was not accepted by the system
37
+ * Error message explaining why the webhook was rejected
38
38
  * @type {string}
39
- * @memberof TriggerInboundWebhookResponseClass
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 TriggerInboundWebhookResponseClass
20
+ * @interface TriggerInboundWebhookRejectedResponseClass
21
21
  */
22
- export interface TriggerInboundWebhookResponseClass {
22
+ export interface TriggerInboundWebhookRejectedResponseClass {
23
23
  /**
24
- * Indicates if the webhook was accepted by the system
24
+ *
25
25
  * @type {string}
26
- * @memberof TriggerInboundWebhookResponseClass
26
+ * @memberof TriggerInboundWebhookRejectedResponseClass
27
27
  */
28
28
  'status': string;
29
29
  /**
30
- * HTTP status code from the webhook endpoint
30
+ *
31
31
  * @type {number}
32
- * @memberof TriggerInboundWebhookResponseClass
32
+ * @memberof TriggerInboundWebhookRejectedResponseClass
33
33
  */
34
34
  'httpStatusCode': number;
35
35
  /**
36
- * Response body from the webhook trigger
36
+ * JSON string payload returned by the trigger flow
37
37
  * @type {string}
38
- * @memberof TriggerInboundWebhookResponseClass
38
+ * @memberof TriggerInboundWebhookRejectedResponseClass
39
39
  */
40
40
  'responseBody'?: string;
41
41
  /**
42
- * Error message if the webhook was not accepted by the system
42
+ * Error message explaining why the webhook was rejected
43
43
  * @type {string}
44
- * @memberof TriggerInboundWebhookResponseClass
44
+ * @memberof TriggerInboundWebhookRejectedResponseClass
45
45
  */
46
46
  'errorMessage'?: string;
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/webhook-sdk-node",
3
- "version": "1.0.1-beta.17",
3
+ "version": "1.0.1-beta.24",
4
4
  "description": "OpenAPI client for @emilgroup/webhook-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [