webitel-sdk 23.7.3 → 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.
Files changed (59) hide show
  1. package/bundles/index.esm.js +295 -185
  2. package/bundles/index.esm.js.map +1 -1
  3. package/bundles/index.esm.min.js +1 -1
  4. package/bundles/index.esm.min.js.map +1 -1
  5. package/bundles/index.umd.js +283 -190
  6. package/bundles/index.umd.js.map +1 -1
  7. package/bundles/index.umd.min.js +1 -1
  8. package/bundles/index.umd.min.js.map +1 -1
  9. package/esm2015/api/config-service-api.js +160 -160
  10. package/esm2015/api/config-service-api.js.map +1 -1
  11. package/esm2015/api/index.js +4 -3
  12. package/esm2015/api/index.js.map +1 -1
  13. package/esm2015/api/logger-action.js +26 -0
  14. package/esm2015/api/logger-action.js.map +1 -0
  15. package/esm2015/api/logger-create-config-request.js +13 -0
  16. package/esm2015/api/logger-create-config-request.js.map +1 -0
  17. package/esm2015/api/logger-delete-config-bulk-request.js +13 -0
  18. package/esm2015/api/logger-delete-config-bulk-request.js.map +1 -0
  19. package/esm2015/api/logger-patch-config-request.js +13 -0
  20. package/esm2015/api/logger-patch-config-request.js.map +1 -0
  21. package/esm2015/api/logger-service-api.js +108 -24
  22. package/esm2015/api/logger-service-api.js.map +1 -1
  23. package/esm5/api/config-service-api.js +166 -166
  24. package/esm5/api/config-service-api.js.map +1 -1
  25. package/esm5/api/index.js +4 -3
  26. package/esm5/api/index.js.map +1 -1
  27. package/esm5/api/logger-action.js +26 -0
  28. package/esm5/api/logger-action.js.map +1 -0
  29. package/esm5/api/logger-create-config-request.js +13 -0
  30. package/esm5/api/logger-create-config-request.js.map +1 -0
  31. package/esm5/api/logger-delete-config-bulk-request.js +13 -0
  32. package/esm5/api/logger-delete-config-bulk-request.js.map +1 -0
  33. package/esm5/api/logger-patch-config-request.js +13 -0
  34. package/esm5/api/logger-patch-config-request.js.map +1 -0
  35. package/esm5/api/logger-service-api.js +108 -24
  36. package/esm5/api/logger-service-api.js.map +1 -1
  37. package/package.json +1 -1
  38. package/types/api/agent-in-queue-agents-in-queue.d.ts +6 -0
  39. package/types/api/agent-in-queue-agents-in-queue.d.ts.map +1 -1
  40. package/types/api/config-service-api.d.ts +75 -75
  41. package/types/api/config-service-api.d.ts.map +1 -1
  42. package/types/api/index.d.ts +4 -3
  43. package/types/api/index.d.ts.map +1 -1
  44. package/types/api/logger-action.d.ts +24 -0
  45. package/types/api/logger-action.d.ts.map +1 -0
  46. package/types/api/logger-config.d.ts +6 -0
  47. package/types/api/logger-config.d.ts.map +1 -1
  48. package/types/api/logger-create-config-request.d.ts +56 -0
  49. package/types/api/logger-create-config-request.d.ts.map +1 -0
  50. package/types/api/logger-delete-config-bulk-request.d.ts +25 -0
  51. package/types/api/logger-delete-config-bulk-request.d.ts.map +1 -0
  52. package/types/api/logger-log.d.ts +6 -0
  53. package/types/api/logger-log.d.ts.map +1 -1
  54. package/types/api/logger-patch-config-request.d.ts +62 -0
  55. package/types/api/logger-patch-config-request.d.ts.map +1 -0
  56. package/types/api/logger-service-api.d.ts +64 -16
  57. package/types/api/logger-service-api.d.ts.map +1 -1
  58. package/types/api/logger-update-config-request.d.ts +6 -0
  59. package/types/api/logger-update-config-request.d.ts.map +1 -1
@@ -25,27 +25,27 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
25
25
  return {
26
26
  /**
27
27
  *
28
- * @param {number} configId
28
+ * @param {LoggerCreateConfigRequest} body
29
29
  * @param {*} [options] Override http request option.
30
30
  * @throws {RequiredError}
31
31
  */
32
- _delete: function (configId, options) {
32
+ createConfig: function (body, options) {
33
33
  if (options === void 0) { options = {}; }
34
34
  return __awaiter(_this, void 0, void 0, function () {
35
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
35
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
36
36
  return __generator(this, function (_b) {
37
37
  switch (_b.label) {
38
38
  case 0:
39
- // verify required parameter 'configId' is not null or undefined
40
- if (configId === null || configId === undefined) {
41
- throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling _delete.');
39
+ // verify required parameter 'body' is not null or undefined
40
+ if (body === null || body === undefined) {
41
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling createConfig.');
42
42
  }
43
- localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
43
+ localVarPath = "/logger/config";
44
44
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
45
45
  if (configuration) {
46
46
  baseOptions = configuration.baseOptions;
47
47
  }
48
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
48
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
49
49
  localVarHeaderParameter = {};
50
50
  localVarQueryParameter = {};
51
51
  if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
@@ -63,11 +63,17 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
63
63
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
64
64
  _b.label = 5;
65
65
  case 5:
66
+ localVarHeaderParameter['Content-Type'] = 'application/json';
66
67
  localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
67
68
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
68
69
  delete localVarUrlObj.search;
69
70
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
70
71
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
72
+ needsSerialization = typeof body !== 'string' ||
73
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
74
+ localVarRequestOptions.data = needsSerialization
75
+ ? JSON.stringify(body !== undefined ? body : {})
76
+ : body || '';
71
77
  return [2 /*return*/, {
72
78
  url: globalImportUrl.format(localVarUrlObj),
73
79
  options: localVarRequestOptions,
@@ -78,22 +84,22 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
78
84
  },
79
85
  /**
80
86
  *
81
- * @param {LoggerDeleteConfigsRequest} body
87
+ * @param {number} configId
82
88
  * @param {*} [options] Override http request option.
83
89
  * @throws {RequiredError}
84
90
  */
85
- deleteBulk: function (body, options) {
91
+ deleteConfig: function (configId, options) {
86
92
  if (options === void 0) { options = {}; }
87
93
  return __awaiter(_this, void 0, void 0, function () {
88
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
94
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
89
95
  return __generator(this, function (_b) {
90
96
  switch (_b.label) {
91
97
  case 0:
92
- // verify required parameter 'body' is not null or undefined
93
- if (body === null || body === undefined) {
94
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling deleteBulk.');
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.');
95
101
  }
96
- localVarPath = "/logger/config";
102
+ localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
97
103
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
98
104
  if (configuration) {
99
105
  baseOptions = configuration.baseOptions;
@@ -116,17 +122,11 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
116
122
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
117
123
  _b.label = 5;
118
124
  case 5:
119
- localVarHeaderParameter['Content-Type'] = 'application/json';
120
125
  localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
121
126
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
122
127
  delete localVarUrlObj.search;
123
128
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
129
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
125
- needsSerialization = typeof body !== 'string' ||
126
- localVarRequestOptions.headers['Content-Type'] === 'application/json';
127
- localVarRequestOptions.data = needsSerialization
128
- ? JSON.stringify(body !== undefined ? body : {})
129
- : body || '';
130
130
  return [2 /*return*/, {
131
131
  url: globalImportUrl.format(localVarUrlObj),
132
132
  options: localVarRequestOptions,
@@ -137,27 +137,27 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
137
137
  },
138
138
  /**
139
139
  *
140
- * @param {number} [page]
141
- * @param {number} [size]
142
- * @param {string} [q]
143
- * @param {string} [sort]
144
- * @param {Array<string>} [fields]
140
+ * @param {LoggerDeleteConfigBulkRequest} body
145
141
  * @param {*} [options] Override http request option.
146
142
  * @throws {RequiredError}
147
143
  */
148
- getAll: function (page, size, q, sort, fields, options) {
144
+ deleteConfigBulk: function (body, options) {
149
145
  if (options === void 0) { options = {}; }
150
146
  return __awaiter(_this, void 0, void 0, function () {
151
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
147
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
152
148
  return __generator(this, function (_b) {
153
149
  switch (_b.label) {
154
150
  case 0:
151
+ // verify required parameter 'body' is not null or undefined
152
+ if (body === null || body === undefined) {
153
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling deleteConfigBulk.');
154
+ }
155
155
  localVarPath = "/logger/config";
156
156
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
157
157
  if (configuration) {
158
158
  baseOptions = configuration.baseOptions;
159
159
  }
160
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
160
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
161
161
  localVarHeaderParameter = {};
162
162
  localVarQueryParameter = {};
163
163
  if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
@@ -175,26 +175,17 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
175
175
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
176
176
  _b.label = 5;
177
177
  case 5:
178
- if (page !== undefined) {
179
- localVarQueryParameter['page'] = page;
180
- }
181
- if (size !== undefined) {
182
- localVarQueryParameter['size'] = size;
183
- }
184
- if (q !== undefined) {
185
- localVarQueryParameter['q'] = q;
186
- }
187
- if (sort !== undefined) {
188
- localVarQueryParameter['sort'] = sort;
189
- }
190
- if (fields) {
191
- localVarQueryParameter['fields'] = fields;
192
- }
178
+ localVarHeaderParameter['Content-Type'] = 'application/json';
193
179
  localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
194
180
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
195
181
  delete localVarUrlObj.search;
196
182
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
197
183
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ needsSerialization = typeof body !== 'string' ||
185
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
186
+ localVarRequestOptions.data = needsSerialization
187
+ ? JSON.stringify(body !== undefined ? body : {})
188
+ : body || '';
198
189
  return [2 /*return*/, {
199
190
  url: globalImportUrl.format(localVarUrlObj),
200
191
  options: localVarRequestOptions,
@@ -206,26 +197,31 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
206
197
  /**
207
198
  *
208
199
  * @param {number} configId
200
+ * @param {LoggerPatchConfigRequest} body
209
201
  * @param {*} [options] Override http request option.
210
202
  * @throws {RequiredError}
211
203
  */
212
- getById: function (configId, options) {
204
+ patchConfig: function (configId, body, options) {
213
205
  if (options === void 0) { options = {}; }
214
206
  return __awaiter(_this, void 0, void 0, function () {
215
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
207
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
216
208
  return __generator(this, function (_b) {
217
209
  switch (_b.label) {
218
210
  case 0:
219
211
  // verify required parameter 'configId' is not null or undefined
220
212
  if (configId === null || configId === undefined) {
221
- throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling getById.');
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.');
222
218
  }
223
219
  localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
224
220
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
225
221
  if (configuration) {
226
222
  baseOptions = configuration.baseOptions;
227
223
  }
228
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
224
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
229
225
  localVarHeaderParameter = {};
230
226
  localVarQueryParameter = {};
231
227
  if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
@@ -243,11 +239,17 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
243
239
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
244
240
  _b.label = 5;
245
241
  case 5:
242
+ localVarHeaderParameter['Content-Type'] = 'application/json';
246
243
  localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
247
244
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
248
245
  delete localVarUrlObj.search;
249
246
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
250
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 || '';
251
253
  return [2 /*return*/, {
252
254
  url: globalImportUrl.format(localVarUrlObj),
253
255
  options: localVarRequestOptions,
@@ -258,17 +260,22 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
258
260
  },
259
261
  /**
260
262
  *
263
+ * @param {number} configId
261
264
  * @param {*} [options] Override http request option.
262
265
  * @throws {RequiredError}
263
266
  */
264
- getSystemObjects: function (options) {
267
+ readConfig: function (configId, options) {
265
268
  if (options === void 0) { options = {}; }
266
269
  return __awaiter(_this, void 0, void 0, function () {
267
270
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
268
271
  return __generator(this, function (_b) {
269
272
  switch (_b.label) {
270
273
  case 0:
271
- localVarPath = "/logger/available_objects";
274
+ // verify required parameter 'configId' is not null or undefined
275
+ if (configId === null || configId === undefined) {
276
+ throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling readConfig.');
277
+ }
278
+ localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
272
279
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
273
280
  if (configuration) {
274
281
  baseOptions = configuration.baseOptions;
@@ -306,27 +313,22 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
306
313
  },
307
314
  /**
308
315
  *
309
- * @param {LoggerInsertConfigRequest} body
310
316
  * @param {*} [options] Override http request option.
311
317
  * @throws {RequiredError}
312
318
  */
313
- insert: function (body, options) {
319
+ readSystemObjects: function (options) {
314
320
  if (options === void 0) { options = {}; }
315
321
  return __awaiter(_this, void 0, void 0, function () {
316
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
322
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
317
323
  return __generator(this, function (_b) {
318
324
  switch (_b.label) {
319
325
  case 0:
320
- // verify required parameter 'body' is not null or undefined
321
- if (body === null || body === undefined) {
322
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling insert.');
323
- }
324
- localVarPath = "/logger/config";
326
+ localVarPath = "/logger/available_objects";
325
327
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
326
328
  if (configuration) {
327
329
  baseOptions = configuration.baseOptions;
328
330
  }
329
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
331
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
330
332
  localVarHeaderParameter = {};
331
333
  localVarQueryParameter = {};
332
334
  if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
@@ -344,17 +346,11 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
344
346
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
345
347
  _b.label = 5;
346
348
  case 5:
347
- localVarHeaderParameter['Content-Type'] = 'application/json';
348
349
  localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
349
350
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
350
351
  delete localVarUrlObj.search;
351
352
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
352
353
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
353
- needsSerialization = typeof body !== 'string' ||
354
- localVarRequestOptions.headers['Content-Type'] === 'application/json';
355
- localVarRequestOptions.data = needsSerialization
356
- ? JSON.stringify(body !== undefined ? body : {})
357
- : body || '';
358
354
  return [2 /*return*/, {
359
355
  url: globalImportUrl.format(localVarUrlObj),
360
356
  options: localVarRequestOptions,
@@ -365,32 +361,27 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
365
361
  },
366
362
  /**
367
363
  *
368
- * @param {number} configId
369
- * @param {LoggerPatchUpdateConfigRequest} body
364
+ * @param {number} [page]
365
+ * @param {number} [size]
366
+ * @param {string} [q]
367
+ * @param {string} [sort]
368
+ * @param {Array<string>} [fields]
370
369
  * @param {*} [options] Override http request option.
371
370
  * @throws {RequiredError}
372
371
  */
373
- patchUpdate: function (configId, body, options) {
372
+ searchConfig: function (page, size, q, sort, fields, options) {
374
373
  if (options === void 0) { options = {}; }
375
374
  return __awaiter(_this, void 0, void 0, function () {
376
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
375
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
377
376
  return __generator(this, function (_b) {
378
377
  switch (_b.label) {
379
378
  case 0:
380
- // verify required parameter 'configId' is not null or undefined
381
- if (configId === null || configId === undefined) {
382
- throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling patchUpdate.');
383
- }
384
- // verify required parameter 'body' is not null or undefined
385
- if (body === null || body === undefined) {
386
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchUpdate.');
387
- }
388
- localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
379
+ localVarPath = "/logger/config";
389
380
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
390
381
  if (configuration) {
391
382
  baseOptions = configuration.baseOptions;
392
383
  }
393
- localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
384
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
394
385
  localVarHeaderParameter = {};
395
386
  localVarQueryParameter = {};
396
387
  if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
@@ -408,17 +399,26 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
408
399
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
409
400
  _b.label = 5;
410
401
  case 5:
411
- localVarHeaderParameter['Content-Type'] = 'application/json';
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
+ }
412
417
  localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
413
418
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
414
419
  delete localVarUrlObj.search;
415
420
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
416
421
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
417
- needsSerialization = typeof body !== 'string' ||
418
- localVarRequestOptions.headers['Content-Type'] === 'application/json';
419
- localVarRequestOptions.data = needsSerialization
420
- ? JSON.stringify(body !== undefined ? body : {})
421
- : body || '';
422
422
  return [2 /*return*/, {
423
423
  url: globalImportUrl.format(localVarUrlObj),
424
424
  options: localVarRequestOptions,
@@ -434,7 +434,7 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
434
434
  * @param {*} [options] Override http request option.
435
435
  * @throws {RequiredError}
436
436
  */
437
- update: function (configId, body, options) {
437
+ updateConfig: function (configId, body, options) {
438
438
  if (options === void 0) { options = {}; }
439
439
  return __awaiter(_this, void 0, void 0, function () {
440
440
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
@@ -443,11 +443,11 @@ export var ConfigServiceApiAxiosParamCreator = function (configuration) {
443
443
  case 0:
444
444
  // verify required parameter 'configId' is not null or undefined
445
445
  if (configId === null || configId === undefined) {
446
- throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling update.');
446
+ throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling updateConfig.');
447
447
  }
448
448
  // verify required parameter 'body' is not null or undefined
449
449
  if (body === null || body === undefined) {
450
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling update.');
450
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateConfig.');
451
451
  }
452
452
  localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
453
453
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
@@ -501,16 +501,16 @@ export var ConfigServiceApiFp = function (configuration) {
501
501
  return {
502
502
  /**
503
503
  *
504
- * @param {number} configId
504
+ * @param {LoggerCreateConfigRequest} body
505
505
  * @param {*} [options] Override http request option.
506
506
  * @throws {RequiredError}
507
507
  */
508
- _delete: function (configId, options) {
508
+ createConfig: function (body, options) {
509
509
  return __awaiter(this, void 0, void 0, function () {
510
510
  var localVarAxiosArgs;
511
511
  return __generator(this, function (_a) {
512
512
  switch (_a.label) {
513
- case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration)._delete(configId, options)];
513
+ case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).createConfig(body, options)];
514
514
  case 1:
515
515
  localVarAxiosArgs = _a.sent();
516
516
  return [2 /*return*/, function (axios, basePath) {
@@ -525,16 +525,16 @@ export var ConfigServiceApiFp = function (configuration) {
525
525
  },
526
526
  /**
527
527
  *
528
- * @param {LoggerDeleteConfigsRequest} body
528
+ * @param {number} configId
529
529
  * @param {*} [options] Override http request option.
530
530
  * @throws {RequiredError}
531
531
  */
532
- deleteBulk: function (body, options) {
532
+ deleteConfig: function (configId, options) {
533
533
  return __awaiter(this, void 0, void 0, function () {
534
534
  var localVarAxiosArgs;
535
535
  return __generator(this, function (_a) {
536
536
  switch (_a.label) {
537
- case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).deleteBulk(body, options)];
537
+ case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).deleteConfig(configId, options)];
538
538
  case 1:
539
539
  localVarAxiosArgs = _a.sent();
540
540
  return [2 /*return*/, function (axios, basePath) {
@@ -549,20 +549,16 @@ export var ConfigServiceApiFp = function (configuration) {
549
549
  },
550
550
  /**
551
551
  *
552
- * @param {number} [page]
553
- * @param {number} [size]
554
- * @param {string} [q]
555
- * @param {string} [sort]
556
- * @param {Array<string>} [fields]
552
+ * @param {LoggerDeleteConfigBulkRequest} body
557
553
  * @param {*} [options] Override http request option.
558
554
  * @throws {RequiredError}
559
555
  */
560
- getAll: function (page, size, q, sort, fields, options) {
556
+ deleteConfigBulk: function (body, options) {
561
557
  return __awaiter(this, void 0, void 0, function () {
562
558
  var localVarAxiosArgs;
563
559
  return __generator(this, function (_a) {
564
560
  switch (_a.label) {
565
- case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).getAll(page, size, q, sort, fields, options)];
561
+ case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).deleteConfigBulk(body, options)];
566
562
  case 1:
567
563
  localVarAxiosArgs = _a.sent();
568
564
  return [2 /*return*/, function (axios, basePath) {
@@ -578,15 +574,16 @@ export var ConfigServiceApiFp = function (configuration) {
578
574
  /**
579
575
  *
580
576
  * @param {number} configId
577
+ * @param {LoggerPatchConfigRequest} body
581
578
  * @param {*} [options] Override http request option.
582
579
  * @throws {RequiredError}
583
580
  */
584
- getById: function (configId, options) {
581
+ patchConfig: function (configId, body, options) {
585
582
  return __awaiter(this, void 0, void 0, function () {
586
583
  var localVarAxiosArgs;
587
584
  return __generator(this, function (_a) {
588
585
  switch (_a.label) {
589
- case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).getById(configId, options)];
586
+ case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).patchConfig(configId, body, options)];
590
587
  case 1:
591
588
  localVarAxiosArgs = _a.sent();
592
589
  return [2 /*return*/, function (axios, basePath) {
@@ -601,15 +598,16 @@ export var ConfigServiceApiFp = function (configuration) {
601
598
  },
602
599
  /**
603
600
  *
601
+ * @param {number} configId
604
602
  * @param {*} [options] Override http request option.
605
603
  * @throws {RequiredError}
606
604
  */
607
- getSystemObjects: function (options) {
605
+ readConfig: function (configId, options) {
608
606
  return __awaiter(this, void 0, void 0, function () {
609
607
  var localVarAxiosArgs;
610
608
  return __generator(this, function (_a) {
611
609
  switch (_a.label) {
612
- case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).getSystemObjects(options)];
610
+ case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).readConfig(configId, options)];
613
611
  case 1:
614
612
  localVarAxiosArgs = _a.sent();
615
613
  return [2 /*return*/, function (axios, basePath) {
@@ -624,16 +622,15 @@ export var ConfigServiceApiFp = function (configuration) {
624
622
  },
625
623
  /**
626
624
  *
627
- * @param {LoggerInsertConfigRequest} body
628
625
  * @param {*} [options] Override http request option.
629
626
  * @throws {RequiredError}
630
627
  */
631
- insert: function (body, options) {
628
+ readSystemObjects: function (options) {
632
629
  return __awaiter(this, void 0, void 0, function () {
633
630
  var localVarAxiosArgs;
634
631
  return __generator(this, function (_a) {
635
632
  switch (_a.label) {
636
- case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).insert(body, options)];
633
+ case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).readSystemObjects(options)];
637
634
  case 1:
638
635
  localVarAxiosArgs = _a.sent();
639
636
  return [2 /*return*/, function (axios, basePath) {
@@ -648,17 +645,20 @@ export var ConfigServiceApiFp = function (configuration) {
648
645
  },
649
646
  /**
650
647
  *
651
- * @param {number} configId
652
- * @param {LoggerPatchUpdateConfigRequest} body
648
+ * @param {number} [page]
649
+ * @param {number} [size]
650
+ * @param {string} [q]
651
+ * @param {string} [sort]
652
+ * @param {Array<string>} [fields]
653
653
  * @param {*} [options] Override http request option.
654
654
  * @throws {RequiredError}
655
655
  */
656
- patchUpdate: function (configId, body, options) {
656
+ searchConfig: function (page, size, q, sort, fields, options) {
657
657
  return __awaiter(this, void 0, void 0, function () {
658
658
  var localVarAxiosArgs;
659
659
  return __generator(this, function (_a) {
660
660
  switch (_a.label) {
661
- case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).patchUpdate(configId, body, options)];
661
+ case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).searchConfig(page, size, q, sort, fields, options)];
662
662
  case 1:
663
663
  localVarAxiosArgs = _a.sent();
664
664
  return [2 /*return*/, function (axios, basePath) {
@@ -678,12 +678,12 @@ export var ConfigServiceApiFp = function (configuration) {
678
678
  * @param {*} [options] Override http request option.
679
679
  * @throws {RequiredError}
680
680
  */
681
- update: function (configId, body, options) {
681
+ updateConfig: function (configId, body, options) {
682
682
  return __awaiter(this, void 0, void 0, function () {
683
683
  var localVarAxiosArgs;
684
684
  return __generator(this, function (_a) {
685
685
  switch (_a.label) {
686
- case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).update(configId, body, options)];
686
+ case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).updateConfig(configId, body, options)];
687
687
  case 1:
688
688
  localVarAxiosArgs = _a.sent();
689
689
  return [2 /*return*/, function (axios, basePath) {
@@ -706,83 +706,83 @@ export var ConfigServiceApiFactory = function (configuration, basePath, axios) {
706
706
  return {
707
707
  /**
708
708
  *
709
- * @param {number} configId
709
+ * @param {LoggerCreateConfigRequest} body
710
710
  * @param {*} [options] Override http request option.
711
711
  * @throws {RequiredError}
712
712
  */
713
- _delete: function (configId, options) {
713
+ createConfig: function (body, options) {
714
714
  return ConfigServiceApiFp(configuration)
715
- ._delete(configId, options)
715
+ .createConfig(body, options)
716
716
  .then(function (request) { return request(axios, basePath); });
717
717
  },
718
718
  /**
719
719
  *
720
- * @param {LoggerDeleteConfigsRequest} body
720
+ * @param {number} configId
721
721
  * @param {*} [options] Override http request option.
722
722
  * @throws {RequiredError}
723
723
  */
724
- deleteBulk: function (body, options) {
724
+ deleteConfig: function (configId, options) {
725
725
  return ConfigServiceApiFp(configuration)
726
- .deleteBulk(body, options)
726
+ .deleteConfig(configId, options)
727
727
  .then(function (request) { return request(axios, basePath); });
728
728
  },
729
729
  /**
730
730
  *
731
- * @param {number} [page]
732
- * @param {number} [size]
733
- * @param {string} [q]
734
- * @param {string} [sort]
735
- * @param {Array<string>} [fields]
731
+ * @param {LoggerDeleteConfigBulkRequest} body
736
732
  * @param {*} [options] Override http request option.
737
733
  * @throws {RequiredError}
738
734
  */
739
- getAll: function (page, size, q, sort, fields, options) {
735
+ deleteConfigBulk: function (body, options) {
740
736
  return ConfigServiceApiFp(configuration)
741
- .getAll(page, size, q, sort, fields, options)
737
+ .deleteConfigBulk(body, options)
742
738
  .then(function (request) { return request(axios, basePath); });
743
739
  },
744
740
  /**
745
741
  *
746
742
  * @param {number} configId
743
+ * @param {LoggerPatchConfigRequest} body
747
744
  * @param {*} [options] Override http request option.
748
745
  * @throws {RequiredError}
749
746
  */
750
- getById: function (configId, options) {
747
+ patchConfig: function (configId, body, options) {
751
748
  return ConfigServiceApiFp(configuration)
752
- .getById(configId, options)
749
+ .patchConfig(configId, body, options)
753
750
  .then(function (request) { return request(axios, basePath); });
754
751
  },
755
752
  /**
756
753
  *
754
+ * @param {number} configId
757
755
  * @param {*} [options] Override http request option.
758
756
  * @throws {RequiredError}
759
757
  */
760
- getSystemObjects: function (options) {
758
+ readConfig: function (configId, options) {
761
759
  return ConfigServiceApiFp(configuration)
762
- .getSystemObjects(options)
760
+ .readConfig(configId, options)
763
761
  .then(function (request) { return request(axios, basePath); });
764
762
  },
765
763
  /**
766
764
  *
767
- * @param {LoggerInsertConfigRequest} body
768
765
  * @param {*} [options] Override http request option.
769
766
  * @throws {RequiredError}
770
767
  */
771
- insert: function (body, options) {
768
+ readSystemObjects: function (options) {
772
769
  return ConfigServiceApiFp(configuration)
773
- .insert(body, options)
770
+ .readSystemObjects(options)
774
771
  .then(function (request) { return request(axios, basePath); });
775
772
  },
776
773
  /**
777
774
  *
778
- * @param {number} configId
779
- * @param {LoggerPatchUpdateConfigRequest} body
775
+ * @param {number} [page]
776
+ * @param {number} [size]
777
+ * @param {string} [q]
778
+ * @param {string} [sort]
779
+ * @param {Array<string>} [fields]
780
780
  * @param {*} [options] Override http request option.
781
781
  * @throws {RequiredError}
782
782
  */
783
- patchUpdate: function (configId, body, options) {
783
+ searchConfig: function (page, size, q, sort, fields, options) {
784
784
  return ConfigServiceApiFp(configuration)
785
- .patchUpdate(configId, body, options)
785
+ .searchConfig(page, size, q, sort, fields, options)
786
786
  .then(function (request) { return request(axios, basePath); });
787
787
  },
788
788
  /**
@@ -792,9 +792,9 @@ export var ConfigServiceApiFactory = function (configuration, basePath, axios) {
792
792
  * @param {*} [options] Override http request option.
793
793
  * @throws {RequiredError}
794
794
  */
795
- update: function (configId, body, options) {
795
+ updateConfig: function (configId, body, options) {
796
796
  return ConfigServiceApiFp(configuration)
797
- .update(configId, body, options)
797
+ .updateConfig(configId, body, options)
798
798
  .then(function (request) { return request(axios, basePath); });
799
799
  },
800
800
  };
@@ -812,97 +812,97 @@ var ConfigServiceApi = /** @class */ (function (_super) {
812
812
  }
813
813
  /**
814
814
  *
815
- * @param {number} configId
815
+ * @param {LoggerCreateConfigRequest} body
816
816
  * @param {*} [options] Override http request option.
817
817
  * @throws {RequiredError}
818
818
  * @memberof ConfigServiceApi
819
819
  */
820
- ConfigServiceApi.prototype._delete = function (configId, options) {
820
+ ConfigServiceApi.prototype.createConfig = function (body, options) {
821
821
  var _this = this;
822
822
  return ConfigServiceApiFp(this.configuration)
823
- ._delete(configId, options)
823
+ .createConfig(body, options)
824
824
  .then(function (request) { return request(_this.axios, _this.basePath); });
825
825
  };
826
826
  /**
827
827
  *
828
- * @param {LoggerDeleteConfigsRequest} body
828
+ * @param {number} configId
829
829
  * @param {*} [options] Override http request option.
830
830
  * @throws {RequiredError}
831
831
  * @memberof ConfigServiceApi
832
832
  */
833
- ConfigServiceApi.prototype.deleteBulk = function (body, options) {
833
+ ConfigServiceApi.prototype.deleteConfig = function (configId, options) {
834
834
  var _this = this;
835
835
  return ConfigServiceApiFp(this.configuration)
836
- .deleteBulk(body, options)
836
+ .deleteConfig(configId, options)
837
837
  .then(function (request) { return request(_this.axios, _this.basePath); });
838
838
  };
839
839
  /**
840
840
  *
841
- * @param {number} [page]
842
- * @param {number} [size]
843
- * @param {string} [q]
844
- * @param {string} [sort]
845
- * @param {Array<string>} [fields]
841
+ * @param {LoggerDeleteConfigBulkRequest} body
846
842
  * @param {*} [options] Override http request option.
847
843
  * @throws {RequiredError}
848
844
  * @memberof ConfigServiceApi
849
845
  */
850
- ConfigServiceApi.prototype.getAll = function (page, size, q, sort, fields, options) {
846
+ ConfigServiceApi.prototype.deleteConfigBulk = function (body, options) {
851
847
  var _this = this;
852
848
  return ConfigServiceApiFp(this.configuration)
853
- .getAll(page, size, q, sort, fields, options)
849
+ .deleteConfigBulk(body, options)
854
850
  .then(function (request) { return request(_this.axios, _this.basePath); });
855
851
  };
856
852
  /**
857
853
  *
858
854
  * @param {number} configId
855
+ * @param {LoggerPatchConfigRequest} body
859
856
  * @param {*} [options] Override http request option.
860
857
  * @throws {RequiredError}
861
858
  * @memberof ConfigServiceApi
862
859
  */
863
- ConfigServiceApi.prototype.getById = function (configId, options) {
860
+ ConfigServiceApi.prototype.patchConfig = function (configId, body, options) {
864
861
  var _this = this;
865
862
  return ConfigServiceApiFp(this.configuration)
866
- .getById(configId, options)
863
+ .patchConfig(configId, body, options)
867
864
  .then(function (request) { return request(_this.axios, _this.basePath); });
868
865
  };
869
866
  /**
870
867
  *
868
+ * @param {number} configId
871
869
  * @param {*} [options] Override http request option.
872
870
  * @throws {RequiredError}
873
871
  * @memberof ConfigServiceApi
874
872
  */
875
- ConfigServiceApi.prototype.getSystemObjects = function (options) {
873
+ ConfigServiceApi.prototype.readConfig = function (configId, options) {
876
874
  var _this = this;
877
875
  return ConfigServiceApiFp(this.configuration)
878
- .getSystemObjects(options)
876
+ .readConfig(configId, options)
879
877
  .then(function (request) { return request(_this.axios, _this.basePath); });
880
878
  };
881
879
  /**
882
880
  *
883
- * @param {LoggerInsertConfigRequest} body
884
881
  * @param {*} [options] Override http request option.
885
882
  * @throws {RequiredError}
886
883
  * @memberof ConfigServiceApi
887
884
  */
888
- ConfigServiceApi.prototype.insert = function (body, options) {
885
+ ConfigServiceApi.prototype.readSystemObjects = function (options) {
889
886
  var _this = this;
890
887
  return ConfigServiceApiFp(this.configuration)
891
- .insert(body, options)
888
+ .readSystemObjects(options)
892
889
  .then(function (request) { return request(_this.axios, _this.basePath); });
893
890
  };
894
891
  /**
895
892
  *
896
- * @param {number} configId
897
- * @param {LoggerPatchUpdateConfigRequest} body
893
+ * @param {number} [page]
894
+ * @param {number} [size]
895
+ * @param {string} [q]
896
+ * @param {string} [sort]
897
+ * @param {Array<string>} [fields]
898
898
  * @param {*} [options] Override http request option.
899
899
  * @throws {RequiredError}
900
900
  * @memberof ConfigServiceApi
901
901
  */
902
- ConfigServiceApi.prototype.patchUpdate = function (configId, body, options) {
902
+ ConfigServiceApi.prototype.searchConfig = function (page, size, q, sort, fields, options) {
903
903
  var _this = this;
904
904
  return ConfigServiceApiFp(this.configuration)
905
- .patchUpdate(configId, body, options)
905
+ .searchConfig(page, size, q, sort, fields, options)
906
906
  .then(function (request) { return request(_this.axios, _this.basePath); });
907
907
  };
908
908
  /**
@@ -913,10 +913,10 @@ var ConfigServiceApi = /** @class */ (function (_super) {
913
913
  * @throws {RequiredError}
914
914
  * @memberof ConfigServiceApi
915
915
  */
916
- ConfigServiceApi.prototype.update = function (configId, body, options) {
916
+ ConfigServiceApi.prototype.updateConfig = function (configId, body, options) {
917
917
  var _this = this;
918
918
  return ConfigServiceApiFp(this.configuration)
919
- .update(configId, body, options)
919
+ .updateConfig(configId, body, options)
920
920
  .then(function (request) { return request(_this.axios, _this.basePath); });
921
921
  };
922
922
  return ConfigServiceApi;