@libgot/whatsapp-bridge-sdk 1.0.32 → 1.0.34-rc.1

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.
@@ -12,32 +12,6 @@
12
12
  * https://github.com/swagger-api/swagger-codegen.git
13
13
  * Do not edit the class manually.
14
14
  */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
15
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
16
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
17
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -47,94 +21,49 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
47
21
  step((generator = generator.apply(thisArg, _arguments || [])).next());
48
22
  });
49
23
  };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
- if (ar || !(i in from)) {
80
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
- ar[i] = from[i];
82
- }
83
- }
84
- return to.concat(ar || Array.prototype.slice.call(from));
85
- };
86
24
  Object.defineProperty(exports, "__esModule", { value: true });
87
25
  exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
88
- var axios_1 = require("axios");
26
+ const axios_1 = require("axios");
89
27
  // Some imports not used depending on template conditions
90
28
  // @ts-ignore
91
- var base_1 = require("../base");
29
+ const base_1 = require("../base");
92
30
  /**
93
31
  * DefaultApi - axios parameter creator
94
32
  * @export
95
33
  */
96
- var DefaultApiAxiosParamCreator = function (configuration) {
97
- var _this = this;
34
+ const DefaultApiAxiosParamCreator = function (configuration) {
98
35
  return {
99
36
  /**
100
37
  *
101
38
  * @param {*} [options] Override http request option.
102
39
  * @throws {RequiredError}
103
40
  */
104
- appControllerGetHello: function () {
105
- var args_1 = [];
106
- for (var _i = 0; _i < arguments.length; _i++) {
107
- args_1[_i] = arguments[_i];
41
+ appControllerGetHello: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
42
+ const localVarPath = `/`;
43
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
45
+ let baseOptions;
46
+ if (configuration) {
47
+ baseOptions = configuration.baseOptions;
108
48
  }
109
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
110
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
111
- if (options === void 0) { options = {}; }
112
- return __generator(this, function (_a) {
113
- localVarPath = "/";
114
- localVarUrlObj = new URL(localVarPath, 'https://example.com');
115
- if (configuration) {
116
- baseOptions = configuration.baseOptions;
117
- }
118
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
119
- localVarHeaderParameter = {};
120
- localVarQueryParameter = {};
121
- query = new URLSearchParams(localVarUrlObj.search);
122
- for (key in localVarQueryParameter) {
123
- query.set(key, localVarQueryParameter[key]);
124
- }
125
- for (key in options.params) {
126
- query.set(key, options.params[key]);
127
- }
128
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
129
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
131
- return [2 /*return*/, {
132
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
133
- options: localVarRequestOptions,
134
- }];
135
- });
136
- });
137
- },
49
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
50
+ const localVarHeaderParameter = {};
51
+ const localVarQueryParameter = {};
52
+ const query = new URLSearchParams(localVarUrlObj.search);
53
+ for (const key in localVarQueryParameter) {
54
+ query.set(key, localVarQueryParameter[key]);
55
+ }
56
+ for (const key in options.params) {
57
+ query.set(key, options.params[key]);
58
+ }
59
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ return {
63
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
64
+ options: localVarRequestOptions,
65
+ };
66
+ }),
138
67
  };
139
68
  };
140
69
  exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
@@ -142,29 +71,20 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
142
71
  * DefaultApi - functional programming interface
143
72
  * @export
144
73
  */
145
- var DefaultApiFp = function (configuration) {
74
+ const DefaultApiFp = function (configuration) {
146
75
  return {
147
76
  /**
148
77
  *
149
78
  * @param {*} [options] Override http request option.
150
79
  * @throws {RequiredError}
151
80
  */
152
- appControllerGetHello: function (options) {
153
- return __awaiter(this, void 0, void 0, function () {
154
- var localVarAxiosArgs;
155
- return __generator(this, function (_a) {
156
- switch (_a.label) {
157
- case 0: return [4 /*yield*/, (0, exports.DefaultApiAxiosParamCreator)(configuration).appControllerGetHello(options)];
158
- case 1:
159
- localVarAxiosArgs = _a.sent();
160
- return [2 /*return*/, function (axios, basePath) {
161
- if (axios === void 0) { axios = axios_1.default; }
162
- if (basePath === void 0) { basePath = base_1.BASE_PATH; }
163
- var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
164
- return axios.request(axiosRequestArgs);
165
- }];
166
- }
167
- });
81
+ appControllerGetHello(options) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ const localVarAxiosArgs = yield (0, exports.DefaultApiAxiosParamCreator)(configuration).appControllerGetHello(options);
84
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
85
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
86
+ return axios.request(axiosRequestArgs);
87
+ };
168
88
  });
169
89
  },
170
90
  };
@@ -174,18 +94,16 @@ exports.DefaultApiFp = DefaultApiFp;
174
94
  * DefaultApi - factory interface
175
95
  * @export
176
96
  */
177
- var DefaultApiFactory = function (configuration, basePath, axios) {
97
+ const DefaultApiFactory = function (configuration, basePath, axios) {
178
98
  return {
179
99
  /**
180
100
  *
181
101
  * @param {*} [options] Override http request option.
182
102
  * @throws {RequiredError}
183
103
  */
184
- appControllerGetHello: function (options) {
185
- return __awaiter(this, void 0, void 0, function () {
186
- return __generator(this, function (_a) {
187
- return [2 /*return*/, (0, exports.DefaultApiFp)(configuration).appControllerGetHello(options).then(function (request) { return request(axios, basePath); })];
188
- });
104
+ appControllerGetHello(options) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ return (0, exports.DefaultApiFp)(configuration).appControllerGetHello(options).then((request) => request(axios, basePath));
189
107
  });
190
108
  },
191
109
  };
@@ -197,25 +115,17 @@ exports.DefaultApiFactory = DefaultApiFactory;
197
115
  * @class DefaultApi
198
116
  * @extends {BaseAPI}
199
117
  */
200
- var DefaultApi = /** @class */ (function (_super) {
201
- __extends(DefaultApi, _super);
202
- function DefaultApi() {
203
- return _super !== null && _super.apply(this, arguments) || this;
204
- }
118
+ class DefaultApi extends base_1.BaseAPI {
205
119
  /**
206
120
  *
207
121
  * @param {*} [options] Override http request option.
208
122
  * @throws {RequiredError}
209
123
  * @memberof DefaultApi
210
124
  */
211
- DefaultApi.prototype.appControllerGetHello = function (options) {
212
- return __awaiter(this, void 0, void 0, function () {
213
- var _this = this;
214
- return __generator(this, function (_a) {
215
- return [2 /*return*/, (0, exports.DefaultApiFp)(this.configuration).appControllerGetHello(options).then(function (request) { return request(_this.axios, _this.basePath); })];
216
- });
125
+ appControllerGetHello(options) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ return (0, exports.DefaultApiFp)(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
217
128
  });
218
- };
219
- return DefaultApi;
220
- }(base_1.BaseAPI));
129
+ }
130
+ }
221
131
  exports.DefaultApi = DefaultApi;
@@ -12,32 +12,6 @@
12
12
  * https://github.com/swagger-api/swagger-codegen.git
13
13
  * Do not edit the class manually.
14
14
  */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
15
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
16
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
17
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -47,133 +21,80 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
47
21
  step((generator = generator.apply(thisArg, _arguments || [])).next());
48
22
  });
49
23
  };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
- if (ar || !(i in from)) {
80
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
- ar[i] = from[i];
82
- }
83
- }
84
- return to.concat(ar || Array.prototype.slice.call(from));
85
- };
86
24
  Object.defineProperty(exports, "__esModule", { value: true });
87
25
  exports.HealthchecksApi = exports.HealthchecksApiFactory = exports.HealthchecksApiFp = exports.HealthchecksApiAxiosParamCreator = void 0;
88
- var axios_1 = require("axios");
26
+ const axios_1 = require("axios");
89
27
  // Some imports not used depending on template conditions
90
28
  // @ts-ignore
91
- var base_1 = require("../base");
29
+ const base_1 = require("../base");
92
30
  /**
93
31
  * HealthchecksApi - axios parameter creator
94
32
  * @export
95
33
  */
96
- var HealthchecksApiAxiosParamCreator = function (configuration) {
97
- var _this = this;
34
+ const HealthchecksApiAxiosParamCreator = function (configuration) {
98
35
  return {
99
36
  /**
100
37
  *
101
38
  * @param {*} [options] Override http request option.
102
39
  * @throws {RequiredError}
103
40
  */
104
- healthcheckControllerLiveness: function () {
105
- var args_1 = [];
106
- for (var _i = 0; _i < arguments.length; _i++) {
107
- args_1[_i] = arguments[_i];
41
+ healthcheckControllerLiveness: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
42
+ const localVarPath = `/api/healthcheck/liveness`;
43
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
45
+ let baseOptions;
46
+ if (configuration) {
47
+ baseOptions = configuration.baseOptions;
108
48
  }
109
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
110
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
111
- if (options === void 0) { options = {}; }
112
- return __generator(this, function (_a) {
113
- localVarPath = "/api/healthcheck/liveness";
114
- localVarUrlObj = new URL(localVarPath, 'https://example.com');
115
- if (configuration) {
116
- baseOptions = configuration.baseOptions;
117
- }
118
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
119
- localVarHeaderParameter = {};
120
- localVarQueryParameter = {};
121
- query = new URLSearchParams(localVarUrlObj.search);
122
- for (key in localVarQueryParameter) {
123
- query.set(key, localVarQueryParameter[key]);
124
- }
125
- for (key in options.params) {
126
- query.set(key, options.params[key]);
127
- }
128
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
129
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
131
- return [2 /*return*/, {
132
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
133
- options: localVarRequestOptions,
134
- }];
135
- });
136
- });
137
- },
49
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
50
+ const localVarHeaderParameter = {};
51
+ const localVarQueryParameter = {};
52
+ const query = new URLSearchParams(localVarUrlObj.search);
53
+ for (const key in localVarQueryParameter) {
54
+ query.set(key, localVarQueryParameter[key]);
55
+ }
56
+ for (const key in options.params) {
57
+ query.set(key, options.params[key]);
58
+ }
59
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ return {
63
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
64
+ options: localVarRequestOptions,
65
+ };
66
+ }),
138
67
  /**
139
68
  *
140
69
  * @param {*} [options] Override http request option.
141
70
  * @throws {RequiredError}
142
71
  */
143
- healthcheckControllerReadiness: function () {
144
- var args_1 = [];
145
- for (var _i = 0; _i < arguments.length; _i++) {
146
- args_1[_i] = arguments[_i];
72
+ healthcheckControllerReadiness: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
73
+ const localVarPath = `/api/healthcheck/readiness`;
74
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
75
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
76
+ let baseOptions;
77
+ if (configuration) {
78
+ baseOptions = configuration.baseOptions;
147
79
  }
148
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
149
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
150
- if (options === void 0) { options = {}; }
151
- return __generator(this, function (_a) {
152
- localVarPath = "/api/healthcheck/readiness";
153
- localVarUrlObj = new URL(localVarPath, 'https://example.com');
154
- if (configuration) {
155
- baseOptions = configuration.baseOptions;
156
- }
157
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
158
- localVarHeaderParameter = {};
159
- localVarQueryParameter = {};
160
- query = new URLSearchParams(localVarUrlObj.search);
161
- for (key in localVarQueryParameter) {
162
- query.set(key, localVarQueryParameter[key]);
163
- }
164
- for (key in options.params) {
165
- query.set(key, options.params[key]);
166
- }
167
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
168
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
170
- return [2 /*return*/, {
171
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
172
- options: localVarRequestOptions,
173
- }];
174
- });
175
- });
176
- },
80
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
81
+ const localVarHeaderParameter = {};
82
+ const localVarQueryParameter = {};
83
+ const query = new URLSearchParams(localVarUrlObj.search);
84
+ for (const key in localVarQueryParameter) {
85
+ query.set(key, localVarQueryParameter[key]);
86
+ }
87
+ for (const key in options.params) {
88
+ query.set(key, options.params[key]);
89
+ }
90
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
91
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
92
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
93
+ return {
94
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
95
+ options: localVarRequestOptions,
96
+ };
97
+ }),
177
98
  };
178
99
  };
179
100
  exports.HealthchecksApiAxiosParamCreator = HealthchecksApiAxiosParamCreator;
@@ -181,29 +102,20 @@ exports.HealthchecksApiAxiosParamCreator = HealthchecksApiAxiosParamCreator;
181
102
  * HealthchecksApi - functional programming interface
182
103
  * @export
183
104
  */
184
- var HealthchecksApiFp = function (configuration) {
105
+ const HealthchecksApiFp = function (configuration) {
185
106
  return {
186
107
  /**
187
108
  *
188
109
  * @param {*} [options] Override http request option.
189
110
  * @throws {RequiredError}
190
111
  */
191
- healthcheckControllerLiveness: function (options) {
192
- return __awaiter(this, void 0, void 0, function () {
193
- var localVarAxiosArgs;
194
- return __generator(this, function (_a) {
195
- switch (_a.label) {
196
- case 0: return [4 /*yield*/, (0, exports.HealthchecksApiAxiosParamCreator)(configuration).healthcheckControllerLiveness(options)];
197
- case 1:
198
- localVarAxiosArgs = _a.sent();
199
- return [2 /*return*/, function (axios, basePath) {
200
- if (axios === void 0) { axios = axios_1.default; }
201
- if (basePath === void 0) { basePath = base_1.BASE_PATH; }
202
- var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
203
- return axios.request(axiosRequestArgs);
204
- }];
205
- }
206
- });
112
+ healthcheckControllerLiveness(options) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const localVarAxiosArgs = yield (0, exports.HealthchecksApiAxiosParamCreator)(configuration).healthcheckControllerLiveness(options);
115
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
116
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
117
+ return axios.request(axiosRequestArgs);
118
+ };
207
119
  });
208
120
  },
209
121
  /**
@@ -211,22 +123,13 @@ var HealthchecksApiFp = function (configuration) {
211
123
  * @param {*} [options] Override http request option.
212
124
  * @throws {RequiredError}
213
125
  */
214
- healthcheckControllerReadiness: function (options) {
215
- return __awaiter(this, void 0, void 0, function () {
216
- var localVarAxiosArgs;
217
- return __generator(this, function (_a) {
218
- switch (_a.label) {
219
- case 0: return [4 /*yield*/, (0, exports.HealthchecksApiAxiosParamCreator)(configuration).healthcheckControllerReadiness(options)];
220
- case 1:
221
- localVarAxiosArgs = _a.sent();
222
- return [2 /*return*/, function (axios, basePath) {
223
- if (axios === void 0) { axios = axios_1.default; }
224
- if (basePath === void 0) { basePath = base_1.BASE_PATH; }
225
- var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
226
- return axios.request(axiosRequestArgs);
227
- }];
228
- }
229
- });
126
+ healthcheckControllerReadiness(options) {
127
+ return __awaiter(this, void 0, void 0, function* () {
128
+ const localVarAxiosArgs = yield (0, exports.HealthchecksApiAxiosParamCreator)(configuration).healthcheckControllerReadiness(options);
129
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
130
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
131
+ return axios.request(axiosRequestArgs);
132
+ };
230
133
  });
231
134
  },
232
135
  };
@@ -236,18 +139,16 @@ exports.HealthchecksApiFp = HealthchecksApiFp;
236
139
  * HealthchecksApi - factory interface
237
140
  * @export
238
141
  */
239
- var HealthchecksApiFactory = function (configuration, basePath, axios) {
142
+ const HealthchecksApiFactory = function (configuration, basePath, axios) {
240
143
  return {
241
144
  /**
242
145
  *
243
146
  * @param {*} [options] Override http request option.
244
147
  * @throws {RequiredError}
245
148
  */
246
- healthcheckControllerLiveness: function (options) {
247
- return __awaiter(this, void 0, void 0, function () {
248
- return __generator(this, function (_a) {
249
- return [2 /*return*/, (0, exports.HealthchecksApiFp)(configuration).healthcheckControllerLiveness(options).then(function (request) { return request(axios, basePath); })];
250
- });
149
+ healthcheckControllerLiveness(options) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ return (0, exports.HealthchecksApiFp)(configuration).healthcheckControllerLiveness(options).then((request) => request(axios, basePath));
251
152
  });
252
153
  },
253
154
  /**
@@ -255,11 +156,9 @@ var HealthchecksApiFactory = function (configuration, basePath, axios) {
255
156
  * @param {*} [options] Override http request option.
256
157
  * @throws {RequiredError}
257
158
  */
258
- healthcheckControllerReadiness: function (options) {
259
- return __awaiter(this, void 0, void 0, function () {
260
- return __generator(this, function (_a) {
261
- return [2 /*return*/, (0, exports.HealthchecksApiFp)(configuration).healthcheckControllerReadiness(options).then(function (request) { return request(axios, basePath); })];
262
- });
159
+ healthcheckControllerReadiness(options) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ return (0, exports.HealthchecksApiFp)(configuration).healthcheckControllerReadiness(options).then((request) => request(axios, basePath));
263
162
  });
264
163
  },
265
164
  };
@@ -271,39 +170,28 @@ exports.HealthchecksApiFactory = HealthchecksApiFactory;
271
170
  * @class HealthchecksApi
272
171
  * @extends {BaseAPI}
273
172
  */
274
- var HealthchecksApi = /** @class */ (function (_super) {
275
- __extends(HealthchecksApi, _super);
276
- function HealthchecksApi() {
277
- return _super !== null && _super.apply(this, arguments) || this;
278
- }
173
+ class HealthchecksApi extends base_1.BaseAPI {
279
174
  /**
280
175
  *
281
176
  * @param {*} [options] Override http request option.
282
177
  * @throws {RequiredError}
283
178
  * @memberof HealthchecksApi
284
179
  */
285
- HealthchecksApi.prototype.healthcheckControllerLiveness = function (options) {
286
- return __awaiter(this, void 0, void 0, function () {
287
- var _this = this;
288
- return __generator(this, function (_a) {
289
- return [2 /*return*/, (0, exports.HealthchecksApiFp)(this.configuration).healthcheckControllerLiveness(options).then(function (request) { return request(_this.axios, _this.basePath); })];
290
- });
180
+ healthcheckControllerLiveness(options) {
181
+ return __awaiter(this, void 0, void 0, function* () {
182
+ return (0, exports.HealthchecksApiFp)(this.configuration).healthcheckControllerLiveness(options).then((request) => request(this.axios, this.basePath));
291
183
  });
292
- };
184
+ }
293
185
  /**
294
186
  *
295
187
  * @param {*} [options] Override http request option.
296
188
  * @throws {RequiredError}
297
189
  * @memberof HealthchecksApi
298
190
  */
299
- HealthchecksApi.prototype.healthcheckControllerReadiness = function (options) {
300
- return __awaiter(this, void 0, void 0, function () {
301
- var _this = this;
302
- return __generator(this, function (_a) {
303
- return [2 /*return*/, (0, exports.HealthchecksApiFp)(this.configuration).healthcheckControllerReadiness(options).then(function (request) { return request(_this.axios, _this.basePath); })];
304
- });
191
+ healthcheckControllerReadiness(options) {
192
+ return __awaiter(this, void 0, void 0, function* () {
193
+ return (0, exports.HealthchecksApiFp)(this.configuration).healthcheckControllerReadiness(options).then((request) => request(this.axios, this.basePath));
305
194
  });
306
- };
307
- return HealthchecksApi;
308
- }(base_1.BaseAPI));
195
+ }
196
+ }
309
197
  exports.HealthchecksApi = HealthchecksApi;