@emilgroup/webhook-sdk-node 1.0.1-beta.1 → 1.0.1-beta.11
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 +6 -1
- package/README.md +2 -2
- package/api/{health-api.ts → health-checks-api.ts} +45 -19
- package/api/inbound-webhooks-api.ts +409 -0
- package/api/trigger-inbound-webhooks-api.ts +178 -0
- package/api.ts +4 -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 +231 -0
- package/dist/api/inbound-webhooks-api.js +320 -0
- package/dist/api/trigger-inbound-webhooks-api.d.ts +105 -0
- package/dist/api/trigger-inbound-webhooks-api.js +233 -0
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -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 +4 -0
- package/dist/models/index.js +4 -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/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/models/create-inbound-webhook-request-dto.ts +0 -6
- package/models/inbound-webhook-class.ts +6 -6
- package/models/index.ts +4 -0
- package/models/list-inbound-webhook-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/package.json +2 -2
|
@@ -0,0 +1,178 @@
|
|
|
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { TriggerInboundWebhookResponseClass } from '../models';
|
|
25
|
+
// URLSearchParams not necessarily used
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { URL, URLSearchParams } from 'url';
|
|
28
|
+
const FormData = require('form-data');
|
|
29
|
+
/**
|
|
30
|
+
* TriggerInboundWebhooksApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const TriggerInboundWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** none
|
|
37
|
+
* @summary Execute incoming webhook
|
|
38
|
+
* @param {string} tenantSlug
|
|
39
|
+
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
40
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
triggerIncomingWebhook: async (tenantSlug: string, slugAndCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
// verify required parameter 'tenantSlug' is not null or undefined
|
|
46
|
+
assertParamExists('triggerIncomingWebhook', 'tenantSlug', tenantSlug)
|
|
47
|
+
// verify required parameter 'slugAndCode' is not null or undefined
|
|
48
|
+
assertParamExists('triggerIncomingWebhook', 'slugAndCode', slugAndCode)
|
|
49
|
+
const localVarPath = `/webhookservice/v1/in/{tenantSlug}/{slugAndCode}`
|
|
50
|
+
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
|
|
51
|
+
.replace(`{${"slugAndCode"}}`, encodeURIComponent(String(slugAndCode)));
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
let baseAccessToken;
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions;
|
|
58
|
+
baseAccessToken = configuration.accessToken;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
62
|
+
const localVarHeaderParameter = {} as any;
|
|
63
|
+
const localVarQueryParameter = {} as any;
|
|
64
|
+
|
|
65
|
+
// authentication bearer required
|
|
66
|
+
// http bearer authentication required
|
|
67
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
68
|
+
|
|
69
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
70
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* TriggerInboundWebhooksApi - functional programming interface
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const TriggerInboundWebhooksApiFp = function(configuration?: Configuration) {
|
|
92
|
+
const localVarAxiosParamCreator = TriggerInboundWebhooksApiAxiosParamCreator(configuration)
|
|
93
|
+
return {
|
|
94
|
+
/**
|
|
95
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** none
|
|
96
|
+
* @summary Execute incoming webhook
|
|
97
|
+
* @param {string} tenantSlug
|
|
98
|
+
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
99
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
async triggerIncomingWebhook(tenantSlug: string, slugAndCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TriggerInboundWebhookResponseClass>> {
|
|
104
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.triggerIncomingWebhook(tenantSlug, slugAndCode, authorization, options);
|
|
105
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
106
|
+
},
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* TriggerInboundWebhooksApi - factory interface
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export const TriggerInboundWebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
115
|
+
const localVarFp = TriggerInboundWebhooksApiFp(configuration)
|
|
116
|
+
return {
|
|
117
|
+
/**
|
|
118
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** none
|
|
119
|
+
* @summary Execute incoming webhook
|
|
120
|
+
* @param {string} tenantSlug
|
|
121
|
+
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
122
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
triggerIncomingWebhook(tenantSlug: string, slugAndCode: string, authorization?: string, options?: any): AxiosPromise<TriggerInboundWebhookResponseClass> {
|
|
127
|
+
return localVarFp.triggerIncomingWebhook(tenantSlug, slugAndCode, authorization, options).then((request) => request(axios, basePath));
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Request parameters for triggerIncomingWebhook operation in TriggerInboundWebhooksApi.
|
|
134
|
+
* @export
|
|
135
|
+
* @interface TriggerInboundWebhooksApiTriggerIncomingWebhookRequest
|
|
136
|
+
*/
|
|
137
|
+
export interface TriggerInboundWebhooksApiTriggerIncomingWebhookRequest {
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
142
|
+
*/
|
|
143
|
+
readonly tenantSlug: string
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
149
|
+
*/
|
|
150
|
+
readonly slugAndCode: string
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
156
|
+
*/
|
|
157
|
+
readonly authorization?: string
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* TriggerInboundWebhooksApi - object-oriented interface
|
|
162
|
+
* @export
|
|
163
|
+
* @class TriggerInboundWebhooksApi
|
|
164
|
+
* @extends {BaseAPI}
|
|
165
|
+
*/
|
|
166
|
+
export class TriggerInboundWebhooksApi extends BaseAPI {
|
|
167
|
+
/**
|
|
168
|
+
* Receives and processes incoming webhook requests from external systems **Required Permissions** none
|
|
169
|
+
* @summary Execute incoming webhook
|
|
170
|
+
* @param {TriggerInboundWebhooksApiTriggerIncomingWebhookRequest} requestParameters Request parameters.
|
|
171
|
+
* @param {*} [options] Override http request option.
|
|
172
|
+
* @throws {RequiredError}
|
|
173
|
+
* @memberof TriggerInboundWebhooksApi
|
|
174
|
+
*/
|
|
175
|
+
public triggerIncomingWebhook(requestParameters: TriggerInboundWebhooksApiTriggerIncomingWebhookRequest, options?: AxiosRequestConfig) {
|
|
176
|
+
return TriggerInboundWebhooksApiFp(this.configuration).triggerIncomingWebhook(requestParameters.tenantSlug, requestParameters.slugAndCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
177
|
+
}
|
|
178
|
+
}
|
package/api.ts
CHANGED
|
@@ -24,10 +24,12 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
-
import {
|
|
27
|
+
import { HealthChecksApi } from './api';
|
|
28
28
|
import { InboundWebhooksApi } from './api';
|
|
29
|
+
import { TriggerInboundWebhooksApi } from './api';
|
|
29
30
|
|
|
30
31
|
|
|
31
|
-
export * from './api/health-api';
|
|
32
|
+
export * from './api/health-checks-api';
|
|
32
33
|
export * from './api/inbound-webhooks-api';
|
|
34
|
+
export * from './api/trigger-inbound-webhooks-api';
|
|
33
35
|
|
|
@@ -14,57 +14,74 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { InlineResponse200 } from '../models';
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* HealthChecksApi - axios parameter creator
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const HealthChecksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
22
|
* 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.
|
|
23
23
|
* @summary Health Check
|
|
24
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
24
25
|
* @param {*} [options] Override http request option.
|
|
25
26
|
* @throws {RequiredError}
|
|
26
27
|
*/
|
|
27
|
-
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
check: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* HealthChecksApi - functional programming interface
|
|
31
32
|
* @export
|
|
32
33
|
*/
|
|
33
|
-
export declare const
|
|
34
|
+
export declare const HealthChecksApiFp: (configuration?: Configuration) => {
|
|
34
35
|
/**
|
|
35
36
|
* 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.
|
|
36
37
|
* @summary Health Check
|
|
38
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
37
39
|
* @param {*} [options] Override http request option.
|
|
38
40
|
* @throws {RequiredError}
|
|
39
41
|
*/
|
|
40
|
-
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
42
|
+
check(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
41
43
|
};
|
|
42
44
|
/**
|
|
43
|
-
*
|
|
45
|
+
* HealthChecksApi - factory interface
|
|
44
46
|
* @export
|
|
45
47
|
*/
|
|
46
|
-
export declare const
|
|
48
|
+
export declare const HealthChecksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
49
|
/**
|
|
48
50
|
* 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.
|
|
49
51
|
* @summary Health Check
|
|
52
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
53
|
* @param {*} [options] Override http request option.
|
|
51
54
|
* @throws {RequiredError}
|
|
52
55
|
*/
|
|
53
|
-
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
56
|
+
check(authorization?: string, options?: any): AxiosPromise<InlineResponse200>;
|
|
54
57
|
};
|
|
55
58
|
/**
|
|
56
|
-
*
|
|
59
|
+
* Request parameters for check operation in HealthChecksApi.
|
|
57
60
|
* @export
|
|
58
|
-
* @
|
|
61
|
+
* @interface HealthChecksApiCheckRequest
|
|
62
|
+
*/
|
|
63
|
+
export interface HealthChecksApiCheckRequest {
|
|
64
|
+
/**
|
|
65
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof HealthChecksApiCheck
|
|
68
|
+
*/
|
|
69
|
+
readonly authorization?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* HealthChecksApi - object-oriented interface
|
|
73
|
+
* @export
|
|
74
|
+
* @class HealthChecksApi
|
|
59
75
|
* @extends {BaseAPI}
|
|
60
76
|
*/
|
|
61
|
-
export declare class
|
|
77
|
+
export declare class HealthChecksApi extends BaseAPI {
|
|
62
78
|
/**
|
|
63
79
|
* 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.
|
|
64
80
|
* @summary Health Check
|
|
81
|
+
* @param {HealthChecksApiCheckRequest} requestParameters Request parameters.
|
|
65
82
|
* @param {*} [options] Override http request option.
|
|
66
83
|
* @throws {RequiredError}
|
|
67
|
-
* @memberof
|
|
84
|
+
* @memberof HealthChecksApi
|
|
68
85
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
86
|
+
check(requestParameters?: HealthChecksApiCheckRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
70
87
|
}
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.HealthChecksApi = exports.HealthChecksApiFactory = exports.HealthChecksApiFp = exports.HealthChecksApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,64 +90,79 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* HealthChecksApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var HealthChecksApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
* 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
101
|
* @summary Health Check
|
|
102
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
102
103
|
* @param {*} [options] Override http request option.
|
|
103
104
|
* @throws {RequiredError}
|
|
104
105
|
*/
|
|
105
|
-
check: function (options) {
|
|
106
|
+
check: function (authorization, options) {
|
|
106
107
|
if (options === void 0) { options = {}; }
|
|
107
108
|
return __awaiter(_this, void 0, void 0, function () {
|
|
108
109
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
109
110
|
return __generator(this, function (_a) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
switch (_a.label) {
|
|
112
|
+
case 0:
|
|
113
|
+
localVarPath = "/webhookservice/health";
|
|
114
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
baseAccessToken = configuration.accessToken;
|
|
118
|
+
}
|
|
119
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
120
|
+
localVarHeaderParameter = {};
|
|
121
|
+
localVarQueryParameter = {};
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
125
|
+
case 1:
|
|
126
|
+
// authentication bearer required
|
|
127
|
+
// http bearer authentication required
|
|
128
|
+
_a.sent();
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
|
+
}
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
return [2 /*return*/, {
|
|
136
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
}];
|
|
115
139
|
}
|
|
116
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
117
|
-
localVarHeaderParameter = {};
|
|
118
|
-
localVarQueryParameter = {};
|
|
119
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
120
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
122
|
-
return [2 /*return*/, {
|
|
123
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
124
|
-
options: localVarRequestOptions,
|
|
125
|
-
}];
|
|
126
140
|
});
|
|
127
141
|
});
|
|
128
142
|
},
|
|
129
143
|
};
|
|
130
144
|
};
|
|
131
|
-
exports.
|
|
145
|
+
exports.HealthChecksApiAxiosParamCreator = HealthChecksApiAxiosParamCreator;
|
|
132
146
|
/**
|
|
133
|
-
*
|
|
147
|
+
* HealthChecksApi - functional programming interface
|
|
134
148
|
* @export
|
|
135
149
|
*/
|
|
136
|
-
var
|
|
137
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
150
|
+
var HealthChecksApiFp = function (configuration) {
|
|
151
|
+
var localVarAxiosParamCreator = (0, exports.HealthChecksApiAxiosParamCreator)(configuration);
|
|
138
152
|
return {
|
|
139
153
|
/**
|
|
140
154
|
* 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.
|
|
141
155
|
* @summary Health Check
|
|
156
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
157
|
* @param {*} [options] Override http request option.
|
|
143
158
|
* @throws {RequiredError}
|
|
144
159
|
*/
|
|
145
|
-
check: function (options) {
|
|
160
|
+
check: function (authorization, options) {
|
|
146
161
|
return __awaiter(this, void 0, void 0, function () {
|
|
147
162
|
var localVarAxiosArgs;
|
|
148
163
|
return __generator(this, function (_a) {
|
|
149
164
|
switch (_a.label) {
|
|
150
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(options)];
|
|
165
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(authorization, options)];
|
|
151
166
|
case 1:
|
|
152
167
|
localVarAxiosArgs = _a.sent();
|
|
153
168
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -157,48 +172,51 @@ var HealthApiFp = function (configuration) {
|
|
|
157
172
|
},
|
|
158
173
|
};
|
|
159
174
|
};
|
|
160
|
-
exports.
|
|
175
|
+
exports.HealthChecksApiFp = HealthChecksApiFp;
|
|
161
176
|
/**
|
|
162
|
-
*
|
|
177
|
+
* HealthChecksApi - factory interface
|
|
163
178
|
* @export
|
|
164
179
|
*/
|
|
165
|
-
var
|
|
166
|
-
var localVarFp = (0, exports.
|
|
180
|
+
var HealthChecksApiFactory = function (configuration, basePath, axios) {
|
|
181
|
+
var localVarFp = (0, exports.HealthChecksApiFp)(configuration);
|
|
167
182
|
return {
|
|
168
183
|
/**
|
|
169
184
|
* 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.
|
|
170
185
|
* @summary Health Check
|
|
186
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
171
187
|
* @param {*} [options] Override http request option.
|
|
172
188
|
* @throws {RequiredError}
|
|
173
189
|
*/
|
|
174
|
-
check: function (options) {
|
|
175
|
-
return localVarFp.check(options).then(function (request) { return request(axios, basePath); });
|
|
190
|
+
check: function (authorization, options) {
|
|
191
|
+
return localVarFp.check(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
176
192
|
},
|
|
177
193
|
};
|
|
178
194
|
};
|
|
179
|
-
exports.
|
|
195
|
+
exports.HealthChecksApiFactory = HealthChecksApiFactory;
|
|
180
196
|
/**
|
|
181
|
-
*
|
|
197
|
+
* HealthChecksApi - object-oriented interface
|
|
182
198
|
* @export
|
|
183
|
-
* @class
|
|
199
|
+
* @class HealthChecksApi
|
|
184
200
|
* @extends {BaseAPI}
|
|
185
201
|
*/
|
|
186
|
-
var
|
|
187
|
-
__extends(
|
|
188
|
-
function
|
|
202
|
+
var HealthChecksApi = /** @class */ (function (_super) {
|
|
203
|
+
__extends(HealthChecksApi, _super);
|
|
204
|
+
function HealthChecksApi() {
|
|
189
205
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
190
206
|
}
|
|
191
207
|
/**
|
|
192
208
|
* 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.
|
|
193
209
|
* @summary Health Check
|
|
210
|
+
* @param {HealthChecksApiCheckRequest} requestParameters Request parameters.
|
|
194
211
|
* @param {*} [options] Override http request option.
|
|
195
212
|
* @throws {RequiredError}
|
|
196
|
-
* @memberof
|
|
213
|
+
* @memberof HealthChecksApi
|
|
197
214
|
*/
|
|
198
|
-
|
|
215
|
+
HealthChecksApi.prototype.check = function (requestParameters, options) {
|
|
199
216
|
var _this = this;
|
|
200
|
-
|
|
217
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
218
|
+
return (0, exports.HealthChecksApiFp)(this.configuration).check(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
201
219
|
};
|
|
202
|
-
return
|
|
220
|
+
return HealthChecksApi;
|
|
203
221
|
}(base_1.BaseAPI));
|
|
204
|
-
exports.
|
|
222
|
+
exports.HealthChecksApi = HealthChecksApi;
|