@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.
- package/.idea/modules.xml +8 -0
- package/.idea/php.xml +19 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/whatsapp-bridge-sdk.iml +11 -0
- package/.swagger-codegen/VERSION +1 -0
- package/.swagger-codegen-ignore +23 -0
- package/README.md +2 -2
- package/apis/chats-api.ts +35 -35
- package/dist/apis/auth-api.js +147 -301
- package/dist/apis/chats-api.d.ts +20 -20
- package/dist/apis/chats-api.js +230 -386
- package/dist/apis/contacts-api.js +104 -216
- package/dist/apis/default-api.js +46 -136
- package/dist/apis/healthchecks-api.js +85 -197
- package/dist/apis/messages-api.js +198 -354
- package/dist/apis/users-api.js +227 -415
- package/dist/base.js +10 -31
- package/dist/configuration.js +3 -5
- package/dist/models/read-message-dto.d.ts +7 -2
- package/models/read-message-dto.ts +8 -2
- package/package.json +1 -1
- package/tsconfig.json +1 -5
package/dist/apis/default-api.js
CHANGED
|
@@ -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
|
-
|
|
26
|
+
const axios_1 = require("axios");
|
|
89
27
|
// Some imports not used depending on template conditions
|
|
90
28
|
// @ts-ignore
|
|
91
|
-
|
|
29
|
+
const base_1 = require("../base");
|
|
92
30
|
/**
|
|
93
31
|
* DefaultApi - axios parameter creator
|
|
94
32
|
* @export
|
|
95
33
|
*/
|
|
96
|
-
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
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
|
|
153
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
154
|
-
|
|
155
|
-
return
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
-
|
|
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
|
|
185
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
186
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
212
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
213
|
-
|
|
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
|
-
|
|
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
|
-
|
|
26
|
+
const axios_1 = require("axios");
|
|
89
27
|
// Some imports not used depending on template conditions
|
|
90
28
|
// @ts-ignore
|
|
91
|
-
|
|
29
|
+
const base_1 = require("../base");
|
|
92
30
|
/**
|
|
93
31
|
* HealthchecksApi - axios parameter creator
|
|
94
32
|
* @export
|
|
95
33
|
*/
|
|
96
|
-
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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
|
-
|
|
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
|
|
192
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
193
|
-
|
|
194
|
-
return
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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
|
|
215
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
216
|
-
|
|
217
|
-
return
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
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
|
-
|
|
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
|
|
247
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
248
|
-
return
|
|
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
|
|
259
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
260
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
286
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
287
|
-
|
|
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
|
-
|
|
300
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
301
|
-
|
|
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
|
-
|
|
308
|
-
}(base_1.BaseAPI));
|
|
195
|
+
}
|
|
196
|
+
}
|
|
309
197
|
exports.HealthchecksApi = HealthchecksApi;
|