@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.
Files changed (43) hide show
  1. package/.openapi-generator/FILES +9 -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 +417 -8
  5. package/api/trigger-inbound-webhooks-api.ts +178 -0
  6. package/api/webhook-requests-api.ts +250 -0
  7. package/api.ts +6 -2
  8. package/dist/api/{health-api.d.ts → health-checks-api.d.ts} +31 -14
  9. package/dist/api/{health-api.js → health-checks-api.js} +60 -42
  10. package/dist/api/inbound-webhooks-api.d.ts +239 -8
  11. package/dist/api/inbound-webhooks-api.js +328 -8
  12. package/dist/api/trigger-inbound-webhooks-api.d.ts +105 -0
  13. package/dist/api/trigger-inbound-webhooks-api.js +233 -0
  14. package/dist/api/webhook-requests-api.d.ts +150 -0
  15. package/dist/api/webhook-requests-api.js +264 -0
  16. package/dist/api.d.ts +3 -1
  17. package/dist/api.js +3 -1
  18. package/dist/models/create-inbound-webhook-request-dto.d.ts +0 -6
  19. package/dist/models/inbound-webhook-class.d.ts +6 -6
  20. package/dist/models/index.d.ts +6 -0
  21. package/dist/models/index.js +6 -0
  22. package/dist/models/list-inbound-webhook-response-class.d.ts +43 -0
  23. package/dist/models/list-inbound-webhook-response-class.js +15 -0
  24. package/dist/models/list-webhook-requests-response-class.d.ts +43 -0
  25. package/dist/models/list-webhook-requests-response-class.js +15 -0
  26. package/dist/models/trigger-inbound-webhook-response-class.d.ts +42 -0
  27. package/dist/models/trigger-inbound-webhook-response-class.js +15 -0
  28. package/dist/models/update-inbound-webhook-request-dto.d.ts +54 -0
  29. package/dist/models/update-inbound-webhook-request-dto.js +21 -0
  30. package/dist/models/update-inbound-webhook-response-class.d.ts +25 -0
  31. package/dist/models/update-inbound-webhook-response-class.js +15 -0
  32. package/dist/models/webhook-request-class.d.ts +139 -0
  33. package/dist/models/webhook-request-class.js +22 -0
  34. package/models/create-inbound-webhook-request-dto.ts +0 -6
  35. package/models/inbound-webhook-class.ts +6 -6
  36. package/models/index.ts +6 -0
  37. package/models/list-inbound-webhook-response-class.ts +49 -0
  38. package/models/list-webhook-requests-response-class.ts +49 -0
  39. package/models/trigger-inbound-webhook-response-class.ts +48 -0
  40. package/models/update-inbound-webhook-request-dto.ts +63 -0
  41. package/models/update-inbound-webhook-response-class.ts +31 -0
  42. package/models/webhook-request-class.ts +148 -0
  43. package/package.json +2 -2
@@ -3,8 +3,10 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
- api/health-api.ts
6
+ api/health-checks-api.ts
7
7
  api/inbound-webhooks-api.ts
8
+ api/trigger-inbound-webhooks-api.ts
9
+ api/webhook-requests-api.ts
8
10
  base.ts
9
11
  common.ts
10
12
  configuration.ts
@@ -17,5 +19,11 @@ models/inbound-webhook-class.ts
17
19
  models/index.ts
18
20
  models/inline-response200.ts
19
21
  models/inline-response503.ts
22
+ models/list-inbound-webhook-response-class.ts
23
+ models/list-webhook-requests-response-class.ts
24
+ models/trigger-inbound-webhook-response-class.ts
25
+ models/update-inbound-webhook-request-dto.ts
26
+ models/update-inbound-webhook-response-class.ts
27
+ models/webhook-request-class.ts
20
28
  package.json
21
29
  tsconfig.json
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.1 --save
20
+ npm install @emilgroup/webhook-sdk-node@1.0.1-beta.12 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/webhook-sdk-node@1.0.1-beta.1
24
+ yarn add @emilgroup/webhook-sdk-node@1.0.1-beta.12
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -29,18 +29,19 @@ import { InlineResponse503 } from '../models';
29
29
  import { URL, URLSearchParams } from 'url';
30
30
  const FormData = require('form-data');
31
31
  /**
32
- * HealthApi - axios parameter creator
32
+ * HealthChecksApi - axios parameter creator
33
33
  * @export
34
34
  */
35
- export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
35
+ export const HealthChecksApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
38
  * Returns the health status of the webhook service. This endpoint is used to monitor the operational status of the webhook service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
39
39
  * @summary Health Check
40
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
40
41
  * @param {*} [options] Override http request option.
41
42
  * @throws {RequiredError}
42
43
  */
43
- check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ check: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
45
  const localVarPath = `/webhookservice/health`;
45
46
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
47
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -55,6 +56,14 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
55
56
  const localVarHeaderParameter = {} as any;
56
57
  const localVarQueryParameter = {} as any;
57
58
 
59
+ // authentication bearer required
60
+ // http bearer authentication required
61
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
+
63
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
65
+ }
66
+
58
67
 
59
68
 
60
69
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -70,59 +79,76 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
70
79
  };
71
80
 
72
81
  /**
73
- * HealthApi - functional programming interface
82
+ * HealthChecksApi - functional programming interface
74
83
  * @export
75
84
  */
76
- export const HealthApiFp = function(configuration?: Configuration) {
77
- const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
85
+ export const HealthChecksApiFp = function(configuration?: Configuration) {
86
+ const localVarAxiosParamCreator = HealthChecksApiAxiosParamCreator(configuration)
78
87
  return {
79
88
  /**
80
89
  * Returns the health status of the webhook service. This endpoint is used to monitor the operational status of the webhook service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
81
90
  * @summary Health Check
91
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
82
92
  * @param {*} [options] Override http request option.
83
93
  * @throws {RequiredError}
84
94
  */
85
- async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
86
- const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
95
+ async check(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
96
+ const localVarAxiosArgs = await localVarAxiosParamCreator.check(authorization, options);
87
97
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
88
98
  },
89
99
  }
90
100
  };
91
101
 
92
102
  /**
93
- * HealthApi - factory interface
103
+ * HealthChecksApi - factory interface
94
104
  * @export
95
105
  */
96
- export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
97
- const localVarFp = HealthApiFp(configuration)
106
+ export const HealthChecksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
107
+ const localVarFp = HealthChecksApiFp(configuration)
98
108
  return {
99
109
  /**
100
110
  * Returns the health status of the webhook service. This endpoint is used to monitor the operational status of the webhook service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
101
111
  * @summary Health Check
112
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
102
113
  * @param {*} [options] Override http request option.
103
114
  * @throws {RequiredError}
104
115
  */
105
- check(options?: any): AxiosPromise<InlineResponse200> {
106
- return localVarFp.check(options).then((request) => request(axios, basePath));
116
+ check(authorization?: string, options?: any): AxiosPromise<InlineResponse200> {
117
+ return localVarFp.check(authorization, options).then((request) => request(axios, basePath));
107
118
  },
108
119
  };
109
120
  };
110
121
 
111
122
  /**
112
- * HealthApi - object-oriented interface
123
+ * Request parameters for check operation in HealthChecksApi.
124
+ * @export
125
+ * @interface HealthChecksApiCheckRequest
126
+ */
127
+ export interface HealthChecksApiCheckRequest {
128
+ /**
129
+ * Bearer Token: provided by the login endpoint under the name accessToken.
130
+ * @type {string}
131
+ * @memberof HealthChecksApiCheck
132
+ */
133
+ readonly authorization?: string
134
+ }
135
+
136
+ /**
137
+ * HealthChecksApi - object-oriented interface
113
138
  * @export
114
- * @class HealthApi
139
+ * @class HealthChecksApi
115
140
  * @extends {BaseAPI}
116
141
  */
117
- export class HealthApi extends BaseAPI {
142
+ export class HealthChecksApi extends BaseAPI {
118
143
  /**
119
144
  * Returns the health status of the webhook service. This endpoint is used to monitor the operational status of the webhook service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
120
145
  * @summary Health Check
146
+ * @param {HealthChecksApiCheckRequest} requestParameters Request parameters.
121
147
  * @param {*} [options] Override http request option.
122
148
  * @throws {RequiredError}
123
- * @memberof HealthApi
149
+ * @memberof HealthChecksApi
124
150
  */
125
- public check(options?: AxiosRequestConfig) {
126
- return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
151
+ public check(requestParameters: HealthChecksApiCheckRequest = {}, options?: AxiosRequestConfig) {
152
+ return HealthChecksApiFp(this.configuration).check(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
127
153
  }
128
154
  }