webitel-sdk 23.7.2 → 23.7.4
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/bundles/index.esm.js +338 -162
- package/bundles/index.esm.js.map +1 -1
- package/bundles/index.esm.min.js +1 -1
- package/bundles/index.esm.min.js.map +1 -1
- package/bundles/index.umd.js +336 -164
- package/bundles/index.umd.js.map +1 -1
- package/bundles/index.umd.min.js +1 -1
- package/bundles/index.umd.min.js.map +1 -1
- package/esm2015/api/config-service-api.js +203 -137
- package/esm2015/api/config-service-api.js.map +1 -1
- package/esm2015/api/index.js +5 -4
- package/esm2015/api/index.js.map +1 -1
- package/esm2015/api/logger-action.js +26 -0
- package/esm2015/api/logger-action.js.map +1 -0
- package/esm2015/api/logger-create-config-request.js +13 -0
- package/esm2015/api/logger-create-config-request.js.map +1 -0
- package/esm2015/api/logger-delete-config-bulk-request.js +13 -0
- package/esm2015/api/logger-delete-config-bulk-request.js.map +1 -0
- package/esm2015/api/logger-patch-config-request.js +13 -0
- package/esm2015/api/logger-patch-config-request.js.map +1 -0
- package/esm2015/api/logger-service-api.js +108 -24
- package/esm2015/api/logger-service-api.js.map +1 -1
- package/esm2015/api/logger-system-objects.js +13 -0
- package/esm2015/api/logger-system-objects.js.map +1 -0
- package/esm5/api/config-service-api.js +219 -140
- package/esm5/api/config-service-api.js.map +1 -1
- package/esm5/api/index.js +5 -4
- package/esm5/api/index.js.map +1 -1
- package/esm5/api/logger-action.js +26 -0
- package/esm5/api/logger-action.js.map +1 -0
- package/esm5/api/logger-create-config-request.js +13 -0
- package/esm5/api/logger-create-config-request.js.map +1 -0
- package/esm5/api/logger-delete-config-bulk-request.js +13 -0
- package/esm5/api/logger-delete-config-bulk-request.js.map +1 -0
- package/esm5/api/logger-patch-config-request.js +13 -0
- package/esm5/api/logger-patch-config-request.js.map +1 -0
- package/esm5/api/logger-service-api.js +108 -24
- package/esm5/api/logger-service-api.js.map +1 -1
- package/esm5/api/logger-system-objects.js +13 -0
- package/esm5/api/logger-system-objects.js.map +1 -0
- package/package.json +1 -1
- package/types/api/agent-in-queue-agents-in-queue.d.ts +6 -0
- package/types/api/agent-in-queue-agents-in-queue.d.ts.map +1 -1
- package/types/api/config-service-api.d.ts +89 -68
- package/types/api/config-service-api.d.ts.map +1 -1
- package/types/api/index.d.ts +5 -4
- package/types/api/index.d.ts.map +1 -1
- package/types/api/logger-action.d.ts +24 -0
- package/types/api/logger-action.d.ts.map +1 -0
- package/types/api/logger-config.d.ts +8 -2
- package/types/api/logger-config.d.ts.map +1 -1
- package/types/api/logger-create-config-request.d.ts +56 -0
- package/types/api/logger-create-config-request.d.ts.map +1 -0
- package/types/api/logger-delete-config-bulk-request.d.ts +25 -0
- package/types/api/logger-delete-config-bulk-request.d.ts.map +1 -0
- package/types/api/logger-insert-config-request.d.ts +7 -6
- package/types/api/logger-insert-config-request.d.ts.map +1 -1
- package/types/api/logger-log.d.ts +6 -0
- package/types/api/logger-log.d.ts.map +1 -1
- package/types/api/logger-patch-config-request.d.ts +62 -0
- package/types/api/logger-patch-config-request.d.ts.map +1 -0
- package/types/api/logger-patch-update-config-request.d.ts +5 -4
- package/types/api/logger-patch-update-config-request.d.ts.map +1 -1
- package/types/api/logger-service-api.d.ts +64 -16
- package/types/api/logger-service-api.d.ts.map +1 -1
- package/types/api/logger-system-objects.d.ts +26 -0
- package/types/api/logger-system-objects.d.ts.map +1 -0
- package/types/api/logger-update-config-request.d.ts +11 -4
- package/types/api/logger-update-config-request.d.ts.map +1 -1
|
@@ -25,32 +25,27 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
25
25
|
return {
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {LoggerDeleteConfigRequest} body
|
|
28
|
+
* @param {LoggerCreateConfigRequest} body
|
|
30
29
|
* @param {*} [options] Override http request option.
|
|
31
30
|
* @throws {RequiredError}
|
|
32
31
|
*/
|
|
33
|
-
|
|
32
|
+
createConfig: function (body, options) {
|
|
34
33
|
if (options === void 0) { options = {}; }
|
|
35
34
|
return __awaiter(_this, void 0, void 0, function () {
|
|
36
35
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
|
|
37
36
|
return __generator(this, function (_b) {
|
|
38
37
|
switch (_b.label) {
|
|
39
38
|
case 0:
|
|
40
|
-
// verify required parameter 'configId' is not null or undefined
|
|
41
|
-
if (configId === null || configId === undefined) {
|
|
42
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling deleteConfig.');
|
|
43
|
-
}
|
|
44
39
|
// verify required parameter 'body' is not null or undefined
|
|
45
40
|
if (body === null || body === undefined) {
|
|
46
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling
|
|
41
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling createConfig.');
|
|
47
42
|
}
|
|
48
|
-
localVarPath = "/logger/config
|
|
43
|
+
localVarPath = "/logger/config";
|
|
49
44
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
50
45
|
if (configuration) {
|
|
51
46
|
baseOptions = configuration.baseOptions;
|
|
52
47
|
}
|
|
53
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
48
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
54
49
|
localVarHeaderParameter = {};
|
|
55
50
|
localVarQueryParameter = {};
|
|
56
51
|
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
@@ -89,11 +84,64 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
89
84
|
},
|
|
90
85
|
/**
|
|
91
86
|
*
|
|
92
|
-
* @param {
|
|
87
|
+
* @param {number} configId
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
deleteConfig: function (configId, options) {
|
|
92
|
+
if (options === void 0) { options = {}; }
|
|
93
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
94
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
95
|
+
return __generator(this, function (_b) {
|
|
96
|
+
switch (_b.label) {
|
|
97
|
+
case 0:
|
|
98
|
+
// verify required parameter 'configId' is not null or undefined
|
|
99
|
+
if (configId === null || configId === undefined) {
|
|
100
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling deleteConfig.');
|
|
101
|
+
}
|
|
102
|
+
localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
|
|
103
|
+
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
104
|
+
if (configuration) {
|
|
105
|
+
baseOptions = configuration.baseOptions;
|
|
106
|
+
}
|
|
107
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
108
|
+
localVarHeaderParameter = {};
|
|
109
|
+
localVarQueryParameter = {};
|
|
110
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
111
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
112
|
+
return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
|
|
113
|
+
case 1:
|
|
114
|
+
_a = _b.sent();
|
|
115
|
+
return [3 /*break*/, 4];
|
|
116
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
117
|
+
case 3:
|
|
118
|
+
_a = _b.sent();
|
|
119
|
+
_b.label = 4;
|
|
120
|
+
case 4:
|
|
121
|
+
localVarApiKeyValue = _a;
|
|
122
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
123
|
+
_b.label = 5;
|
|
124
|
+
case 5:
|
|
125
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
126
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
127
|
+
delete localVarUrlObj.search;
|
|
128
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
130
|
+
return [2 /*return*/, {
|
|
131
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
}];
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
93
141
|
* @param {*} [options] Override http request option.
|
|
94
142
|
* @throws {RequiredError}
|
|
95
143
|
*/
|
|
96
|
-
|
|
144
|
+
deleteConfigBulk: function (body, options) {
|
|
97
145
|
if (options === void 0) { options = {}; }
|
|
98
146
|
return __awaiter(_this, void 0, void 0, function () {
|
|
99
147
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
|
|
@@ -102,7 +150,7 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
102
150
|
case 0:
|
|
103
151
|
// verify required parameter 'body' is not null or undefined
|
|
104
152
|
if (body === null || body === undefined) {
|
|
105
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling
|
|
153
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling deleteConfigBulk.');
|
|
106
154
|
}
|
|
107
155
|
localVarPath = "/logger/config";
|
|
108
156
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
@@ -148,27 +196,32 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
148
196
|
},
|
|
149
197
|
/**
|
|
150
198
|
*
|
|
151
|
-
* @param {number}
|
|
152
|
-
* @param {
|
|
153
|
-
* @param {string} [q]
|
|
154
|
-
* @param {string} [sort]
|
|
155
|
-
* @param {Array<string>} [fields]
|
|
199
|
+
* @param {number} configId
|
|
200
|
+
* @param {LoggerPatchConfigRequest} body
|
|
156
201
|
* @param {*} [options] Override http request option.
|
|
157
202
|
* @throws {RequiredError}
|
|
158
203
|
*/
|
|
159
|
-
|
|
204
|
+
patchConfig: function (configId, body, options) {
|
|
160
205
|
if (options === void 0) { options = {}; }
|
|
161
206
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
207
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
|
|
163
208
|
return __generator(this, function (_b) {
|
|
164
209
|
switch (_b.label) {
|
|
165
210
|
case 0:
|
|
166
|
-
|
|
211
|
+
// verify required parameter 'configId' is not null or undefined
|
|
212
|
+
if (configId === null || configId === undefined) {
|
|
213
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling patchConfig.');
|
|
214
|
+
}
|
|
215
|
+
// verify required parameter 'body' is not null or undefined
|
|
216
|
+
if (body === null || body === undefined) {
|
|
217
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchConfig.');
|
|
218
|
+
}
|
|
219
|
+
localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
|
|
167
220
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
168
221
|
if (configuration) {
|
|
169
222
|
baseOptions = configuration.baseOptions;
|
|
170
223
|
}
|
|
171
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
224
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
172
225
|
localVarHeaderParameter = {};
|
|
173
226
|
localVarQueryParameter = {};
|
|
174
227
|
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
@@ -186,26 +239,17 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
186
239
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
187
240
|
_b.label = 5;
|
|
188
241
|
case 5:
|
|
189
|
-
|
|
190
|
-
localVarQueryParameter['page'] = page;
|
|
191
|
-
}
|
|
192
|
-
if (size !== undefined) {
|
|
193
|
-
localVarQueryParameter['size'] = size;
|
|
194
|
-
}
|
|
195
|
-
if (q !== undefined) {
|
|
196
|
-
localVarQueryParameter['q'] = q;
|
|
197
|
-
}
|
|
198
|
-
if (sort !== undefined) {
|
|
199
|
-
localVarQueryParameter['sort'] = sort;
|
|
200
|
-
}
|
|
201
|
-
if (fields) {
|
|
202
|
-
localVarQueryParameter['fields'] = fields;
|
|
203
|
-
}
|
|
242
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
204
243
|
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
205
244
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
206
245
|
delete localVarUrlObj.search;
|
|
207
246
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
247
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
248
|
+
needsSerialization = typeof body !== 'string' ||
|
|
249
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
250
|
+
localVarRequestOptions.data = needsSerialization
|
|
251
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
252
|
+
: body || '';
|
|
209
253
|
return [2 /*return*/, {
|
|
210
254
|
url: globalImportUrl.format(localVarUrlObj),
|
|
211
255
|
options: localVarRequestOptions,
|
|
@@ -220,7 +264,7 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
220
264
|
* @param {*} [options] Override http request option.
|
|
221
265
|
* @throws {RequiredError}
|
|
222
266
|
*/
|
|
223
|
-
|
|
267
|
+
readConfig: function (configId, options) {
|
|
224
268
|
if (options === void 0) { options = {}; }
|
|
225
269
|
return __awaiter(_this, void 0, void 0, function () {
|
|
226
270
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
@@ -229,7 +273,7 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
229
273
|
case 0:
|
|
230
274
|
// verify required parameter 'configId' is not null or undefined
|
|
231
275
|
if (configId === null || configId === undefined) {
|
|
232
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling
|
|
276
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling readConfig.');
|
|
233
277
|
}
|
|
234
278
|
localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
|
|
235
279
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
@@ -269,27 +313,22 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
269
313
|
},
|
|
270
314
|
/**
|
|
271
315
|
*
|
|
272
|
-
* @param {LoggerInsertConfigRequest} body
|
|
273
316
|
* @param {*} [options] Override http request option.
|
|
274
317
|
* @throws {RequiredError}
|
|
275
318
|
*/
|
|
276
|
-
|
|
319
|
+
readSystemObjects: function (options) {
|
|
277
320
|
if (options === void 0) { options = {}; }
|
|
278
321
|
return __awaiter(_this, void 0, void 0, function () {
|
|
279
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions
|
|
322
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
280
323
|
return __generator(this, function (_b) {
|
|
281
324
|
switch (_b.label) {
|
|
282
325
|
case 0:
|
|
283
|
-
|
|
284
|
-
if (body === null || body === undefined) {
|
|
285
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling insertConfig.');
|
|
286
|
-
}
|
|
287
|
-
localVarPath = "/logger/config";
|
|
326
|
+
localVarPath = "/logger/available_objects";
|
|
288
327
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
289
328
|
if (configuration) {
|
|
290
329
|
baseOptions = configuration.baseOptions;
|
|
291
330
|
}
|
|
292
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
331
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
293
332
|
localVarHeaderParameter = {};
|
|
294
333
|
localVarQueryParameter = {};
|
|
295
334
|
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
@@ -307,17 +346,11 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
307
346
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
308
347
|
_b.label = 5;
|
|
309
348
|
case 5:
|
|
310
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
311
349
|
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
312
350
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
313
351
|
delete localVarUrlObj.search;
|
|
314
352
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
315
353
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
316
|
-
needsSerialization = typeof body !== 'string' ||
|
|
317
|
-
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
318
|
-
localVarRequestOptions.data = needsSerialization
|
|
319
|
-
? JSON.stringify(body !== undefined ? body : {})
|
|
320
|
-
: body || '';
|
|
321
354
|
return [2 /*return*/, {
|
|
322
355
|
url: globalImportUrl.format(localVarUrlObj),
|
|
323
356
|
options: localVarRequestOptions,
|
|
@@ -328,32 +361,27 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
328
361
|
},
|
|
329
362
|
/**
|
|
330
363
|
*
|
|
331
|
-
* @param {number}
|
|
332
|
-
* @param {
|
|
364
|
+
* @param {number} [page]
|
|
365
|
+
* @param {number} [size]
|
|
366
|
+
* @param {string} [q]
|
|
367
|
+
* @param {string} [sort]
|
|
368
|
+
* @param {Array<string>} [fields]
|
|
333
369
|
* @param {*} [options] Override http request option.
|
|
334
370
|
* @throws {RequiredError}
|
|
335
371
|
*/
|
|
336
|
-
|
|
372
|
+
searchConfig: function (page, size, q, sort, fields, options) {
|
|
337
373
|
if (options === void 0) { options = {}; }
|
|
338
374
|
return __awaiter(_this, void 0, void 0, function () {
|
|
339
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions
|
|
375
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
340
376
|
return __generator(this, function (_b) {
|
|
341
377
|
switch (_b.label) {
|
|
342
378
|
case 0:
|
|
343
|
-
|
|
344
|
-
if (configId === null || configId === undefined) {
|
|
345
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling patchUpdateConfig.');
|
|
346
|
-
}
|
|
347
|
-
// verify required parameter 'body' is not null or undefined
|
|
348
|
-
if (body === null || body === undefined) {
|
|
349
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchUpdateConfig.');
|
|
350
|
-
}
|
|
351
|
-
localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
|
|
379
|
+
localVarPath = "/logger/config";
|
|
352
380
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
353
381
|
if (configuration) {
|
|
354
382
|
baseOptions = configuration.baseOptions;
|
|
355
383
|
}
|
|
356
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
384
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
357
385
|
localVarHeaderParameter = {};
|
|
358
386
|
localVarQueryParameter = {};
|
|
359
387
|
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
@@ -371,17 +399,26 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
371
399
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
372
400
|
_b.label = 5;
|
|
373
401
|
case 5:
|
|
374
|
-
|
|
402
|
+
if (page !== undefined) {
|
|
403
|
+
localVarQueryParameter['page'] = page;
|
|
404
|
+
}
|
|
405
|
+
if (size !== undefined) {
|
|
406
|
+
localVarQueryParameter['size'] = size;
|
|
407
|
+
}
|
|
408
|
+
if (q !== undefined) {
|
|
409
|
+
localVarQueryParameter['q'] = q;
|
|
410
|
+
}
|
|
411
|
+
if (sort !== undefined) {
|
|
412
|
+
localVarQueryParameter['sort'] = sort;
|
|
413
|
+
}
|
|
414
|
+
if (fields) {
|
|
415
|
+
localVarQueryParameter['fields'] = fields;
|
|
416
|
+
}
|
|
375
417
|
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
376
418
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
377
419
|
delete localVarUrlObj.search;
|
|
378
420
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
421
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
380
|
-
needsSerialization = typeof body !== 'string' ||
|
|
381
|
-
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
382
|
-
localVarRequestOptions.data = needsSerialization
|
|
383
|
-
? JSON.stringify(body !== undefined ? body : {})
|
|
384
|
-
: body || '';
|
|
385
422
|
return [2 /*return*/, {
|
|
386
423
|
url: globalImportUrl.format(localVarUrlObj),
|
|
387
424
|
options: localVarRequestOptions,
|
|
@@ -462,19 +499,42 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
462
499
|
*/
|
|
463
500
|
export var ConfigServiceApiFp = function (configuration) {
|
|
464
501
|
return {
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @param {LoggerCreateConfigRequest} body
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
createConfig: function (body, options) {
|
|
509
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
510
|
+
var localVarAxiosArgs;
|
|
511
|
+
return __generator(this, function (_a) {
|
|
512
|
+
switch (_a.label) {
|
|
513
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).createConfig(body, options)];
|
|
514
|
+
case 1:
|
|
515
|
+
localVarAxiosArgs = _a.sent();
|
|
516
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
517
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
518
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
519
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
520
|
+
return axios.request(axiosRequestArgs);
|
|
521
|
+
}];
|
|
522
|
+
}
|
|
523
|
+
});
|
|
524
|
+
});
|
|
525
|
+
},
|
|
465
526
|
/**
|
|
466
527
|
*
|
|
467
528
|
* @param {number} configId
|
|
468
|
-
* @param {LoggerDeleteConfigRequest} body
|
|
469
529
|
* @param {*} [options] Override http request option.
|
|
470
530
|
* @throws {RequiredError}
|
|
471
531
|
*/
|
|
472
|
-
deleteConfig: function (configId,
|
|
532
|
+
deleteConfig: function (configId, options) {
|
|
473
533
|
return __awaiter(this, void 0, void 0, function () {
|
|
474
534
|
var localVarAxiosArgs;
|
|
475
535
|
return __generator(this, function (_a) {
|
|
476
536
|
switch (_a.label) {
|
|
477
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).deleteConfig(configId,
|
|
537
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).deleteConfig(configId, options)];
|
|
478
538
|
case 1:
|
|
479
539
|
localVarAxiosArgs = _a.sent();
|
|
480
540
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -489,16 +549,16 @@ export var ConfigServiceApiFp = function (configuration) {
|
|
|
489
549
|
},
|
|
490
550
|
/**
|
|
491
551
|
*
|
|
492
|
-
* @param {
|
|
552
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
493
553
|
* @param {*} [options] Override http request option.
|
|
494
554
|
* @throws {RequiredError}
|
|
495
555
|
*/
|
|
496
|
-
|
|
556
|
+
deleteConfigBulk: function (body, options) {
|
|
497
557
|
return __awaiter(this, void 0, void 0, function () {
|
|
498
558
|
var localVarAxiosArgs;
|
|
499
559
|
return __generator(this, function (_a) {
|
|
500
560
|
switch (_a.label) {
|
|
501
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).
|
|
561
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).deleteConfigBulk(body, options)];
|
|
502
562
|
case 1:
|
|
503
563
|
localVarAxiosArgs = _a.sent();
|
|
504
564
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -513,20 +573,17 @@ export var ConfigServiceApiFp = function (configuration) {
|
|
|
513
573
|
},
|
|
514
574
|
/**
|
|
515
575
|
*
|
|
516
|
-
* @param {number}
|
|
517
|
-
* @param {
|
|
518
|
-
* @param {string} [q]
|
|
519
|
-
* @param {string} [sort]
|
|
520
|
-
* @param {Array<string>} [fields]
|
|
576
|
+
* @param {number} configId
|
|
577
|
+
* @param {LoggerPatchConfigRequest} body
|
|
521
578
|
* @param {*} [options] Override http request option.
|
|
522
579
|
* @throws {RequiredError}
|
|
523
580
|
*/
|
|
524
|
-
|
|
581
|
+
patchConfig: function (configId, body, options) {
|
|
525
582
|
return __awaiter(this, void 0, void 0, function () {
|
|
526
583
|
var localVarAxiosArgs;
|
|
527
584
|
return __generator(this, function (_a) {
|
|
528
585
|
switch (_a.label) {
|
|
529
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).
|
|
586
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).patchConfig(configId, body, options)];
|
|
530
587
|
case 1:
|
|
531
588
|
localVarAxiosArgs = _a.sent();
|
|
532
589
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -545,12 +602,12 @@ export var ConfigServiceApiFp = function (configuration) {
|
|
|
545
602
|
* @param {*} [options] Override http request option.
|
|
546
603
|
* @throws {RequiredError}
|
|
547
604
|
*/
|
|
548
|
-
|
|
605
|
+
readConfig: function (configId, options) {
|
|
549
606
|
return __awaiter(this, void 0, void 0, function () {
|
|
550
607
|
var localVarAxiosArgs;
|
|
551
608
|
return __generator(this, function (_a) {
|
|
552
609
|
switch (_a.label) {
|
|
553
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).
|
|
610
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).readConfig(configId, options)];
|
|
554
611
|
case 1:
|
|
555
612
|
localVarAxiosArgs = _a.sent();
|
|
556
613
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -565,16 +622,15 @@ export var ConfigServiceApiFp = function (configuration) {
|
|
|
565
622
|
},
|
|
566
623
|
/**
|
|
567
624
|
*
|
|
568
|
-
* @param {LoggerInsertConfigRequest} body
|
|
569
625
|
* @param {*} [options] Override http request option.
|
|
570
626
|
* @throws {RequiredError}
|
|
571
627
|
*/
|
|
572
|
-
|
|
628
|
+
readSystemObjects: function (options) {
|
|
573
629
|
return __awaiter(this, void 0, void 0, function () {
|
|
574
630
|
var localVarAxiosArgs;
|
|
575
631
|
return __generator(this, function (_a) {
|
|
576
632
|
switch (_a.label) {
|
|
577
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).
|
|
633
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).readSystemObjects(options)];
|
|
578
634
|
case 1:
|
|
579
635
|
localVarAxiosArgs = _a.sent();
|
|
580
636
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -589,17 +645,20 @@ export var ConfigServiceApiFp = function (configuration) {
|
|
|
589
645
|
},
|
|
590
646
|
/**
|
|
591
647
|
*
|
|
592
|
-
* @param {number}
|
|
593
|
-
* @param {
|
|
648
|
+
* @param {number} [page]
|
|
649
|
+
* @param {number} [size]
|
|
650
|
+
* @param {string} [q]
|
|
651
|
+
* @param {string} [sort]
|
|
652
|
+
* @param {Array<string>} [fields]
|
|
594
653
|
* @param {*} [options] Override http request option.
|
|
595
654
|
* @throws {RequiredError}
|
|
596
655
|
*/
|
|
597
|
-
|
|
656
|
+
searchConfig: function (page, size, q, sort, fields, options) {
|
|
598
657
|
return __awaiter(this, void 0, void 0, function () {
|
|
599
658
|
var localVarAxiosArgs;
|
|
600
659
|
return __generator(this, function (_a) {
|
|
601
660
|
switch (_a.label) {
|
|
602
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).
|
|
661
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).searchConfig(page, size, q, sort, fields, options)];
|
|
603
662
|
case 1:
|
|
604
663
|
localVarAxiosArgs = _a.sent();
|
|
605
664
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -645,42 +704,49 @@ export var ConfigServiceApiFp = function (configuration) {
|
|
|
645
704
|
*/
|
|
646
705
|
export var ConfigServiceApiFactory = function (configuration, basePath, axios) {
|
|
647
706
|
return {
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @param {LoggerCreateConfigRequest} body
|
|
710
|
+
* @param {*} [options] Override http request option.
|
|
711
|
+
* @throws {RequiredError}
|
|
712
|
+
*/
|
|
713
|
+
createConfig: function (body, options) {
|
|
714
|
+
return ConfigServiceApiFp(configuration)
|
|
715
|
+
.createConfig(body, options)
|
|
716
|
+
.then(function (request) { return request(axios, basePath); });
|
|
717
|
+
},
|
|
648
718
|
/**
|
|
649
719
|
*
|
|
650
720
|
* @param {number} configId
|
|
651
|
-
* @param {LoggerDeleteConfigRequest} body
|
|
652
721
|
* @param {*} [options] Override http request option.
|
|
653
722
|
* @throws {RequiredError}
|
|
654
723
|
*/
|
|
655
|
-
deleteConfig: function (configId,
|
|
724
|
+
deleteConfig: function (configId, options) {
|
|
656
725
|
return ConfigServiceApiFp(configuration)
|
|
657
|
-
.deleteConfig(configId,
|
|
726
|
+
.deleteConfig(configId, options)
|
|
658
727
|
.then(function (request) { return request(axios, basePath); });
|
|
659
728
|
},
|
|
660
729
|
/**
|
|
661
730
|
*
|
|
662
|
-
* @param {
|
|
731
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
663
732
|
* @param {*} [options] Override http request option.
|
|
664
733
|
* @throws {RequiredError}
|
|
665
734
|
*/
|
|
666
|
-
|
|
735
|
+
deleteConfigBulk: function (body, options) {
|
|
667
736
|
return ConfigServiceApiFp(configuration)
|
|
668
|
-
.
|
|
737
|
+
.deleteConfigBulk(body, options)
|
|
669
738
|
.then(function (request) { return request(axios, basePath); });
|
|
670
739
|
},
|
|
671
740
|
/**
|
|
672
741
|
*
|
|
673
|
-
* @param {number}
|
|
674
|
-
* @param {
|
|
675
|
-
* @param {string} [q]
|
|
676
|
-
* @param {string} [sort]
|
|
677
|
-
* @param {Array<string>} [fields]
|
|
742
|
+
* @param {number} configId
|
|
743
|
+
* @param {LoggerPatchConfigRequest} body
|
|
678
744
|
* @param {*} [options] Override http request option.
|
|
679
745
|
* @throws {RequiredError}
|
|
680
746
|
*/
|
|
681
|
-
|
|
747
|
+
patchConfig: function (configId, body, options) {
|
|
682
748
|
return ConfigServiceApiFp(configuration)
|
|
683
|
-
.
|
|
749
|
+
.patchConfig(configId, body, options)
|
|
684
750
|
.then(function (request) { return request(axios, basePath); });
|
|
685
751
|
},
|
|
686
752
|
/**
|
|
@@ -689,32 +755,34 @@ export var ConfigServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
689
755
|
* @param {*} [options] Override http request option.
|
|
690
756
|
* @throws {RequiredError}
|
|
691
757
|
*/
|
|
692
|
-
|
|
758
|
+
readConfig: function (configId, options) {
|
|
693
759
|
return ConfigServiceApiFp(configuration)
|
|
694
|
-
.
|
|
760
|
+
.readConfig(configId, options)
|
|
695
761
|
.then(function (request) { return request(axios, basePath); });
|
|
696
762
|
},
|
|
697
763
|
/**
|
|
698
764
|
*
|
|
699
|
-
* @param {LoggerInsertConfigRequest} body
|
|
700
765
|
* @param {*} [options] Override http request option.
|
|
701
766
|
* @throws {RequiredError}
|
|
702
767
|
*/
|
|
703
|
-
|
|
768
|
+
readSystemObjects: function (options) {
|
|
704
769
|
return ConfigServiceApiFp(configuration)
|
|
705
|
-
.
|
|
770
|
+
.readSystemObjects(options)
|
|
706
771
|
.then(function (request) { return request(axios, basePath); });
|
|
707
772
|
},
|
|
708
773
|
/**
|
|
709
774
|
*
|
|
710
|
-
* @param {number}
|
|
711
|
-
* @param {
|
|
775
|
+
* @param {number} [page]
|
|
776
|
+
* @param {number} [size]
|
|
777
|
+
* @param {string} [q]
|
|
778
|
+
* @param {string} [sort]
|
|
779
|
+
* @param {Array<string>} [fields]
|
|
712
780
|
* @param {*} [options] Override http request option.
|
|
713
781
|
* @throws {RequiredError}
|
|
714
782
|
*/
|
|
715
|
-
|
|
783
|
+
searchConfig: function (page, size, q, sort, fields, options) {
|
|
716
784
|
return ConfigServiceApiFp(configuration)
|
|
717
|
-
.
|
|
785
|
+
.searchConfig(page, size, q, sort, fields, options)
|
|
718
786
|
.then(function (request) { return request(axios, basePath); });
|
|
719
787
|
},
|
|
720
788
|
/**
|
|
@@ -742,48 +810,57 @@ var ConfigServiceApi = /** @class */ (function (_super) {
|
|
|
742
810
|
function ConfigServiceApi() {
|
|
743
811
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
744
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
*
|
|
815
|
+
* @param {LoggerCreateConfigRequest} body
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
* @memberof ConfigServiceApi
|
|
819
|
+
*/
|
|
820
|
+
ConfigServiceApi.prototype.createConfig = function (body, options) {
|
|
821
|
+
var _this = this;
|
|
822
|
+
return ConfigServiceApiFp(this.configuration)
|
|
823
|
+
.createConfig(body, options)
|
|
824
|
+
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
825
|
+
};
|
|
745
826
|
/**
|
|
746
827
|
*
|
|
747
828
|
* @param {number} configId
|
|
748
|
-
* @param {LoggerDeleteConfigRequest} body
|
|
749
829
|
* @param {*} [options] Override http request option.
|
|
750
830
|
* @throws {RequiredError}
|
|
751
831
|
* @memberof ConfigServiceApi
|
|
752
832
|
*/
|
|
753
|
-
ConfigServiceApi.prototype.deleteConfig = function (configId,
|
|
833
|
+
ConfigServiceApi.prototype.deleteConfig = function (configId, options) {
|
|
754
834
|
var _this = this;
|
|
755
835
|
return ConfigServiceApiFp(this.configuration)
|
|
756
|
-
.deleteConfig(configId,
|
|
836
|
+
.deleteConfig(configId, options)
|
|
757
837
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
758
838
|
};
|
|
759
839
|
/**
|
|
760
840
|
*
|
|
761
|
-
* @param {
|
|
841
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
762
842
|
* @param {*} [options] Override http request option.
|
|
763
843
|
* @throws {RequiredError}
|
|
764
844
|
* @memberof ConfigServiceApi
|
|
765
845
|
*/
|
|
766
|
-
ConfigServiceApi.prototype.
|
|
846
|
+
ConfigServiceApi.prototype.deleteConfigBulk = function (body, options) {
|
|
767
847
|
var _this = this;
|
|
768
848
|
return ConfigServiceApiFp(this.configuration)
|
|
769
|
-
.
|
|
849
|
+
.deleteConfigBulk(body, options)
|
|
770
850
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
771
851
|
};
|
|
772
852
|
/**
|
|
773
853
|
*
|
|
774
|
-
* @param {number}
|
|
775
|
-
* @param {
|
|
776
|
-
* @param {string} [q]
|
|
777
|
-
* @param {string} [sort]
|
|
778
|
-
* @param {Array<string>} [fields]
|
|
854
|
+
* @param {number} configId
|
|
855
|
+
* @param {LoggerPatchConfigRequest} body
|
|
779
856
|
* @param {*} [options] Override http request option.
|
|
780
857
|
* @throws {RequiredError}
|
|
781
858
|
* @memberof ConfigServiceApi
|
|
782
859
|
*/
|
|
783
|
-
ConfigServiceApi.prototype.
|
|
860
|
+
ConfigServiceApi.prototype.patchConfig = function (configId, body, options) {
|
|
784
861
|
var _this = this;
|
|
785
862
|
return ConfigServiceApiFp(this.configuration)
|
|
786
|
-
.
|
|
863
|
+
.patchConfig(configId, body, options)
|
|
787
864
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
788
865
|
};
|
|
789
866
|
/**
|
|
@@ -793,37 +870,39 @@ var ConfigServiceApi = /** @class */ (function (_super) {
|
|
|
793
870
|
* @throws {RequiredError}
|
|
794
871
|
* @memberof ConfigServiceApi
|
|
795
872
|
*/
|
|
796
|
-
ConfigServiceApi.prototype.
|
|
873
|
+
ConfigServiceApi.prototype.readConfig = function (configId, options) {
|
|
797
874
|
var _this = this;
|
|
798
875
|
return ConfigServiceApiFp(this.configuration)
|
|
799
|
-
.
|
|
876
|
+
.readConfig(configId, options)
|
|
800
877
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
801
878
|
};
|
|
802
879
|
/**
|
|
803
880
|
*
|
|
804
|
-
* @param {LoggerInsertConfigRequest} body
|
|
805
881
|
* @param {*} [options] Override http request option.
|
|
806
882
|
* @throws {RequiredError}
|
|
807
883
|
* @memberof ConfigServiceApi
|
|
808
884
|
*/
|
|
809
|
-
ConfigServiceApi.prototype.
|
|
885
|
+
ConfigServiceApi.prototype.readSystemObjects = function (options) {
|
|
810
886
|
var _this = this;
|
|
811
887
|
return ConfigServiceApiFp(this.configuration)
|
|
812
|
-
.
|
|
888
|
+
.readSystemObjects(options)
|
|
813
889
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
814
890
|
};
|
|
815
891
|
/**
|
|
816
892
|
*
|
|
817
|
-
* @param {number}
|
|
818
|
-
* @param {
|
|
893
|
+
* @param {number} [page]
|
|
894
|
+
* @param {number} [size]
|
|
895
|
+
* @param {string} [q]
|
|
896
|
+
* @param {string} [sort]
|
|
897
|
+
* @param {Array<string>} [fields]
|
|
819
898
|
* @param {*} [options] Override http request option.
|
|
820
899
|
* @throws {RequiredError}
|
|
821
900
|
* @memberof ConfigServiceApi
|
|
822
901
|
*/
|
|
823
|
-
ConfigServiceApi.prototype.
|
|
902
|
+
ConfigServiceApi.prototype.searchConfig = function (page, size, q, sort, fields, options) {
|
|
824
903
|
var _this = this;
|
|
825
904
|
return ConfigServiceApiFp(this.configuration)
|
|
826
|
-
.
|
|
905
|
+
.searchConfig(page, size, q, sort, fields, options)
|
|
827
906
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
828
907
|
};
|
|
829
908
|
/**
|