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.
- package/bundles/index.esm.js +295 -185
- 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 +283 -190
- 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 +160 -160
- package/esm2015/api/config-service-api.js.map +1 -1
- package/esm2015/api/index.js +4 -3
- 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/esm5/api/config-service-api.js +166 -166
- package/esm5/api/config-service-api.js.map +1 -1
- package/esm5/api/index.js +4 -3
- 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/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 +75 -75
- package/types/api/config-service-api.d.ts.map +1 -1
- package/types/api/index.d.ts +4 -3
- 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 +6 -0
- 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-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-service-api.d.ts +64 -16
- package/types/api/logger-service-api.d.ts.map +1 -1
- package/types/api/logger-update-config-request.d.ts +6 -0
- package/types/api/logger-update-config-request.d.ts.map +1 -1
|
@@ -23,23 +23,23 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
23
23
|
return {
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {LoggerCreateConfigRequest} body
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
// verify required parameter '
|
|
32
|
-
if (
|
|
33
|
-
throw new RequiredError('
|
|
30
|
+
createConfig: async (body, options = {}) => {
|
|
31
|
+
// verify required parameter 'body' is not null or undefined
|
|
32
|
+
if (body === null || body === undefined) {
|
|
33
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling createConfig.');
|
|
34
34
|
}
|
|
35
|
-
const localVarPath = `/logger/config
|
|
35
|
+
const localVarPath = `/logger/config`;
|
|
36
36
|
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
37
37
|
let baseOptions;
|
|
38
38
|
if (configuration) {
|
|
39
39
|
baseOptions = configuration.baseOptions;
|
|
40
40
|
}
|
|
41
41
|
const localVarRequestOptions = {
|
|
42
|
-
method: '
|
|
42
|
+
method: 'POST',
|
|
43
43
|
...baseOptions,
|
|
44
44
|
...options,
|
|
45
45
|
};
|
|
@@ -52,6 +52,7 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
52
52
|
: await configuration.apiKey;
|
|
53
53
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
54
54
|
}
|
|
55
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
55
56
|
localVarUrlObj.query = {
|
|
56
57
|
...localVarUrlObj.query,
|
|
57
58
|
...localVarQueryParameter,
|
|
@@ -65,6 +66,11 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
65
66
|
...headersFromBaseOptions,
|
|
66
67
|
...options.headers,
|
|
67
68
|
};
|
|
69
|
+
const needsSerialization = typeof body !== 'string' ||
|
|
70
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
71
|
+
localVarRequestOptions.data = needsSerialization
|
|
72
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
73
|
+
: body || '';
|
|
68
74
|
return {
|
|
69
75
|
url: globalImportUrl.format(localVarUrlObj),
|
|
70
76
|
options: localVarRequestOptions,
|
|
@@ -72,16 +78,16 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
72
78
|
},
|
|
73
79
|
/**
|
|
74
80
|
*
|
|
75
|
-
* @param {
|
|
81
|
+
* @param {number} configId
|
|
76
82
|
* @param {*} [options] Override http request option.
|
|
77
83
|
* @throws {RequiredError}
|
|
78
84
|
*/
|
|
79
|
-
|
|
80
|
-
// verify required parameter '
|
|
81
|
-
if (
|
|
82
|
-
throw new RequiredError('
|
|
85
|
+
deleteConfig: async (configId, options = {}) => {
|
|
86
|
+
// verify required parameter 'configId' is not null or undefined
|
|
87
|
+
if (configId === null || configId === undefined) {
|
|
88
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling deleteConfig.');
|
|
83
89
|
}
|
|
84
|
-
const localVarPath = `/logger/config
|
|
90
|
+
const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
85
91
|
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
86
92
|
let baseOptions;
|
|
87
93
|
if (configuration) {
|
|
@@ -101,7 +107,6 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
101
107
|
: await configuration.apiKey;
|
|
102
108
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
103
109
|
}
|
|
104
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
105
110
|
localVarUrlObj.query = {
|
|
106
111
|
...localVarUrlObj.query,
|
|
107
112
|
...localVarQueryParameter,
|
|
@@ -115,11 +120,6 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
115
120
|
...headersFromBaseOptions,
|
|
116
121
|
...options.headers,
|
|
117
122
|
};
|
|
118
|
-
const needsSerialization = typeof body !== 'string' ||
|
|
119
|
-
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
120
|
-
localVarRequestOptions.data = needsSerialization
|
|
121
|
-
? JSON.stringify(body !== undefined ? body : {})
|
|
122
|
-
: body || '';
|
|
123
123
|
return {
|
|
124
124
|
url: globalImportUrl.format(localVarUrlObj),
|
|
125
125
|
options: localVarRequestOptions,
|
|
@@ -127,15 +127,15 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
127
127
|
},
|
|
128
128
|
/**
|
|
129
129
|
*
|
|
130
|
-
* @param {
|
|
131
|
-
* @param {number} [size]
|
|
132
|
-
* @param {string} [q]
|
|
133
|
-
* @param {string} [sort]
|
|
134
|
-
* @param {Array<string>} [fields]
|
|
130
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
135
131
|
* @param {*} [options] Override http request option.
|
|
136
132
|
* @throws {RequiredError}
|
|
137
133
|
*/
|
|
138
|
-
|
|
134
|
+
deleteConfigBulk: async (body, options = {}) => {
|
|
135
|
+
// verify required parameter 'body' is not null or undefined
|
|
136
|
+
if (body === null || body === undefined) {
|
|
137
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling deleteConfigBulk.');
|
|
138
|
+
}
|
|
139
139
|
const localVarPath = `/logger/config`;
|
|
140
140
|
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
141
141
|
let baseOptions;
|
|
@@ -143,7 +143,7 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
143
143
|
baseOptions = configuration.baseOptions;
|
|
144
144
|
}
|
|
145
145
|
const localVarRequestOptions = {
|
|
146
|
-
method: '
|
|
146
|
+
method: 'DELETE',
|
|
147
147
|
...baseOptions,
|
|
148
148
|
...options,
|
|
149
149
|
};
|
|
@@ -156,21 +156,7 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
156
156
|
: await configuration.apiKey;
|
|
157
157
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
localVarQueryParameter['page'] = page;
|
|
161
|
-
}
|
|
162
|
-
if (size !== undefined) {
|
|
163
|
-
localVarQueryParameter['size'] = size;
|
|
164
|
-
}
|
|
165
|
-
if (q !== undefined) {
|
|
166
|
-
localVarQueryParameter['q'] = q;
|
|
167
|
-
}
|
|
168
|
-
if (sort !== undefined) {
|
|
169
|
-
localVarQueryParameter['sort'] = sort;
|
|
170
|
-
}
|
|
171
|
-
if (fields) {
|
|
172
|
-
localVarQueryParameter['fields'] = fields;
|
|
173
|
-
}
|
|
159
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
174
160
|
localVarUrlObj.query = {
|
|
175
161
|
...localVarUrlObj.query,
|
|
176
162
|
...localVarQueryParameter,
|
|
@@ -184,6 +170,11 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
184
170
|
...headersFromBaseOptions,
|
|
185
171
|
...options.headers,
|
|
186
172
|
};
|
|
173
|
+
const needsSerialization = typeof body !== 'string' ||
|
|
174
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
175
|
+
localVarRequestOptions.data = needsSerialization
|
|
176
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
177
|
+
: body || '';
|
|
187
178
|
return {
|
|
188
179
|
url: globalImportUrl.format(localVarUrlObj),
|
|
189
180
|
options: localVarRequestOptions,
|
|
@@ -192,13 +183,18 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
192
183
|
/**
|
|
193
184
|
*
|
|
194
185
|
* @param {number} configId
|
|
186
|
+
* @param {LoggerPatchConfigRequest} body
|
|
195
187
|
* @param {*} [options] Override http request option.
|
|
196
188
|
* @throws {RequiredError}
|
|
197
189
|
*/
|
|
198
|
-
|
|
190
|
+
patchConfig: async (configId, body, options = {}) => {
|
|
199
191
|
// verify required parameter 'configId' is not null or undefined
|
|
200
192
|
if (configId === null || configId === undefined) {
|
|
201
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling
|
|
193
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling patchConfig.');
|
|
194
|
+
}
|
|
195
|
+
// verify required parameter 'body' is not null or undefined
|
|
196
|
+
if (body === null || body === undefined) {
|
|
197
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchConfig.');
|
|
202
198
|
}
|
|
203
199
|
const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
204
200
|
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
@@ -207,7 +203,7 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
207
203
|
baseOptions = configuration.baseOptions;
|
|
208
204
|
}
|
|
209
205
|
const localVarRequestOptions = {
|
|
210
|
-
method: '
|
|
206
|
+
method: 'PATCH',
|
|
211
207
|
...baseOptions,
|
|
212
208
|
...options,
|
|
213
209
|
};
|
|
@@ -220,6 +216,7 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
220
216
|
: await configuration.apiKey;
|
|
221
217
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
222
218
|
}
|
|
219
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
223
220
|
localVarUrlObj.query = {
|
|
224
221
|
...localVarUrlObj.query,
|
|
225
222
|
...localVarQueryParameter,
|
|
@@ -233,6 +230,11 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
233
230
|
...headersFromBaseOptions,
|
|
234
231
|
...options.headers,
|
|
235
232
|
};
|
|
233
|
+
const needsSerialization = typeof body !== 'string' ||
|
|
234
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
235
|
+
localVarRequestOptions.data = needsSerialization
|
|
236
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
237
|
+
: body || '';
|
|
236
238
|
return {
|
|
237
239
|
url: globalImportUrl.format(localVarUrlObj),
|
|
238
240
|
options: localVarRequestOptions,
|
|
@@ -240,11 +242,16 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
240
242
|
},
|
|
241
243
|
/**
|
|
242
244
|
*
|
|
245
|
+
* @param {number} configId
|
|
243
246
|
* @param {*} [options] Override http request option.
|
|
244
247
|
* @throws {RequiredError}
|
|
245
248
|
*/
|
|
246
|
-
|
|
247
|
-
|
|
249
|
+
readConfig: async (configId, options = {}) => {
|
|
250
|
+
// verify required parameter 'configId' is not null or undefined
|
|
251
|
+
if (configId === null || configId === undefined) {
|
|
252
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling readConfig.');
|
|
253
|
+
}
|
|
254
|
+
const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
248
255
|
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
249
256
|
let baseOptions;
|
|
250
257
|
if (configuration) {
|
|
@@ -284,23 +291,18 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
284
291
|
},
|
|
285
292
|
/**
|
|
286
293
|
*
|
|
287
|
-
* @param {LoggerInsertConfigRequest} body
|
|
288
294
|
* @param {*} [options] Override http request option.
|
|
289
295
|
* @throws {RequiredError}
|
|
290
296
|
*/
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
if (body === null || body === undefined) {
|
|
294
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling insert.');
|
|
295
|
-
}
|
|
296
|
-
const localVarPath = `/logger/config`;
|
|
297
|
+
readSystemObjects: async (options = {}) => {
|
|
298
|
+
const localVarPath = `/logger/available_objects`;
|
|
297
299
|
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
298
300
|
let baseOptions;
|
|
299
301
|
if (configuration) {
|
|
300
302
|
baseOptions = configuration.baseOptions;
|
|
301
303
|
}
|
|
302
304
|
const localVarRequestOptions = {
|
|
303
|
-
method: '
|
|
305
|
+
method: 'GET',
|
|
304
306
|
...baseOptions,
|
|
305
307
|
...options,
|
|
306
308
|
};
|
|
@@ -313,7 +315,6 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
313
315
|
: await configuration.apiKey;
|
|
314
316
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
315
317
|
}
|
|
316
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
317
318
|
localVarUrlObj.query = {
|
|
318
319
|
...localVarUrlObj.query,
|
|
319
320
|
...localVarQueryParameter,
|
|
@@ -327,11 +328,6 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
327
328
|
...headersFromBaseOptions,
|
|
328
329
|
...options.headers,
|
|
329
330
|
};
|
|
330
|
-
const needsSerialization = typeof body !== 'string' ||
|
|
331
|
-
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
332
|
-
localVarRequestOptions.data = needsSerialization
|
|
333
|
-
? JSON.stringify(body !== undefined ? body : {})
|
|
334
|
-
: body || '';
|
|
335
331
|
return {
|
|
336
332
|
url: globalImportUrl.format(localVarUrlObj),
|
|
337
333
|
options: localVarRequestOptions,
|
|
@@ -339,28 +335,23 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
339
335
|
},
|
|
340
336
|
/**
|
|
341
337
|
*
|
|
342
|
-
* @param {number}
|
|
343
|
-
* @param {
|
|
338
|
+
* @param {number} [page]
|
|
339
|
+
* @param {number} [size]
|
|
340
|
+
* @param {string} [q]
|
|
341
|
+
* @param {string} [sort]
|
|
342
|
+
* @param {Array<string>} [fields]
|
|
344
343
|
* @param {*} [options] Override http request option.
|
|
345
344
|
* @throws {RequiredError}
|
|
346
345
|
*/
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
if (configId === null || configId === undefined) {
|
|
350
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling patchUpdate.');
|
|
351
|
-
}
|
|
352
|
-
// verify required parameter 'body' is not null or undefined
|
|
353
|
-
if (body === null || body === undefined) {
|
|
354
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchUpdate.');
|
|
355
|
-
}
|
|
356
|
-
const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
346
|
+
searchConfig: async (page, size, q, sort, fields, options = {}) => {
|
|
347
|
+
const localVarPath = `/logger/config`;
|
|
357
348
|
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
358
349
|
let baseOptions;
|
|
359
350
|
if (configuration) {
|
|
360
351
|
baseOptions = configuration.baseOptions;
|
|
361
352
|
}
|
|
362
353
|
const localVarRequestOptions = {
|
|
363
|
-
method: '
|
|
354
|
+
method: 'GET',
|
|
364
355
|
...baseOptions,
|
|
365
356
|
...options,
|
|
366
357
|
};
|
|
@@ -373,7 +364,21 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
373
364
|
: await configuration.apiKey;
|
|
374
365
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
375
366
|
}
|
|
376
|
-
|
|
367
|
+
if (page !== undefined) {
|
|
368
|
+
localVarQueryParameter['page'] = page;
|
|
369
|
+
}
|
|
370
|
+
if (size !== undefined) {
|
|
371
|
+
localVarQueryParameter['size'] = size;
|
|
372
|
+
}
|
|
373
|
+
if (q !== undefined) {
|
|
374
|
+
localVarQueryParameter['q'] = q;
|
|
375
|
+
}
|
|
376
|
+
if (sort !== undefined) {
|
|
377
|
+
localVarQueryParameter['sort'] = sort;
|
|
378
|
+
}
|
|
379
|
+
if (fields) {
|
|
380
|
+
localVarQueryParameter['fields'] = fields;
|
|
381
|
+
}
|
|
377
382
|
localVarUrlObj.query = {
|
|
378
383
|
...localVarUrlObj.query,
|
|
379
384
|
...localVarQueryParameter,
|
|
@@ -387,11 +392,6 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
387
392
|
...headersFromBaseOptions,
|
|
388
393
|
...options.headers,
|
|
389
394
|
};
|
|
390
|
-
const needsSerialization = typeof body !== 'string' ||
|
|
391
|
-
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
392
|
-
localVarRequestOptions.data = needsSerialization
|
|
393
|
-
? JSON.stringify(body !== undefined ? body : {})
|
|
394
|
-
: body || '';
|
|
395
395
|
return {
|
|
396
396
|
url: globalImportUrl.format(localVarUrlObj),
|
|
397
397
|
options: localVarRequestOptions,
|
|
@@ -404,14 +404,14 @@ export const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
404
404
|
* @param {*} [options] Override http request option.
|
|
405
405
|
* @throws {RequiredError}
|
|
406
406
|
*/
|
|
407
|
-
|
|
407
|
+
updateConfig: async (configId, body, options = {}) => {
|
|
408
408
|
// verify required parameter 'configId' is not null or undefined
|
|
409
409
|
if (configId === null || configId === undefined) {
|
|
410
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling
|
|
410
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling updateConfig.');
|
|
411
411
|
}
|
|
412
412
|
// verify required parameter 'body' is not null or undefined
|
|
413
413
|
if (body === null || body === undefined) {
|
|
414
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling
|
|
414
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateConfig.');
|
|
415
415
|
}
|
|
416
416
|
const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
417
417
|
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
@@ -467,12 +467,12 @@ export const ConfigServiceApiFp = function (configuration) {
|
|
|
467
467
|
return {
|
|
468
468
|
/**
|
|
469
469
|
*
|
|
470
|
-
* @param {
|
|
470
|
+
* @param {LoggerCreateConfigRequest} body
|
|
471
471
|
* @param {*} [options] Override http request option.
|
|
472
472
|
* @throws {RequiredError}
|
|
473
473
|
*/
|
|
474
|
-
async
|
|
475
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
474
|
+
async createConfig(body, options) {
|
|
475
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).createConfig(body, options);
|
|
476
476
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
477
477
|
const axiosRequestArgs = {
|
|
478
478
|
...localVarAxiosArgs.options,
|
|
@@ -483,12 +483,12 @@ export const ConfigServiceApiFp = function (configuration) {
|
|
|
483
483
|
},
|
|
484
484
|
/**
|
|
485
485
|
*
|
|
486
|
-
* @param {
|
|
486
|
+
* @param {number} configId
|
|
487
487
|
* @param {*} [options] Override http request option.
|
|
488
488
|
* @throws {RequiredError}
|
|
489
489
|
*/
|
|
490
|
-
async
|
|
491
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
490
|
+
async deleteConfig(configId, options) {
|
|
491
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).deleteConfig(configId, options);
|
|
492
492
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
493
493
|
const axiosRequestArgs = {
|
|
494
494
|
...localVarAxiosArgs.options,
|
|
@@ -499,16 +499,12 @@ export const ConfigServiceApiFp = function (configuration) {
|
|
|
499
499
|
},
|
|
500
500
|
/**
|
|
501
501
|
*
|
|
502
|
-
* @param {
|
|
503
|
-
* @param {number} [size]
|
|
504
|
-
* @param {string} [q]
|
|
505
|
-
* @param {string} [sort]
|
|
506
|
-
* @param {Array<string>} [fields]
|
|
502
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
507
503
|
* @param {*} [options] Override http request option.
|
|
508
504
|
* @throws {RequiredError}
|
|
509
505
|
*/
|
|
510
|
-
async
|
|
511
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
506
|
+
async deleteConfigBulk(body, options) {
|
|
507
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).deleteConfigBulk(body, options);
|
|
512
508
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
513
509
|
const axiosRequestArgs = {
|
|
514
510
|
...localVarAxiosArgs.options,
|
|
@@ -520,11 +516,12 @@ export const ConfigServiceApiFp = function (configuration) {
|
|
|
520
516
|
/**
|
|
521
517
|
*
|
|
522
518
|
* @param {number} configId
|
|
519
|
+
* @param {LoggerPatchConfigRequest} body
|
|
523
520
|
* @param {*} [options] Override http request option.
|
|
524
521
|
* @throws {RequiredError}
|
|
525
522
|
*/
|
|
526
|
-
async
|
|
527
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
523
|
+
async patchConfig(configId, body, options) {
|
|
524
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).patchConfig(configId, body, options);
|
|
528
525
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
529
526
|
const axiosRequestArgs = {
|
|
530
527
|
...localVarAxiosArgs.options,
|
|
@@ -535,11 +532,12 @@ export const ConfigServiceApiFp = function (configuration) {
|
|
|
535
532
|
},
|
|
536
533
|
/**
|
|
537
534
|
*
|
|
535
|
+
* @param {number} configId
|
|
538
536
|
* @param {*} [options] Override http request option.
|
|
539
537
|
* @throws {RequiredError}
|
|
540
538
|
*/
|
|
541
|
-
async
|
|
542
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
539
|
+
async readConfig(configId, options) {
|
|
540
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).readConfig(configId, options);
|
|
543
541
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
544
542
|
const axiosRequestArgs = {
|
|
545
543
|
...localVarAxiosArgs.options,
|
|
@@ -550,12 +548,11 @@ export const ConfigServiceApiFp = function (configuration) {
|
|
|
550
548
|
},
|
|
551
549
|
/**
|
|
552
550
|
*
|
|
553
|
-
* @param {LoggerInsertConfigRequest} body
|
|
554
551
|
* @param {*} [options] Override http request option.
|
|
555
552
|
* @throws {RequiredError}
|
|
556
553
|
*/
|
|
557
|
-
async
|
|
558
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
554
|
+
async readSystemObjects(options) {
|
|
555
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).readSystemObjects(options);
|
|
559
556
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
560
557
|
const axiosRequestArgs = {
|
|
561
558
|
...localVarAxiosArgs.options,
|
|
@@ -566,13 +563,16 @@ export const ConfigServiceApiFp = function (configuration) {
|
|
|
566
563
|
},
|
|
567
564
|
/**
|
|
568
565
|
*
|
|
569
|
-
* @param {number}
|
|
570
|
-
* @param {
|
|
566
|
+
* @param {number} [page]
|
|
567
|
+
* @param {number} [size]
|
|
568
|
+
* @param {string} [q]
|
|
569
|
+
* @param {string} [sort]
|
|
570
|
+
* @param {Array<string>} [fields]
|
|
571
571
|
* @param {*} [options] Override http request option.
|
|
572
572
|
* @throws {RequiredError}
|
|
573
573
|
*/
|
|
574
|
-
async
|
|
575
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
574
|
+
async searchConfig(page, size, q, sort, fields, options) {
|
|
575
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).searchConfig(page, size, q, sort, fields, options);
|
|
576
576
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
577
577
|
const axiosRequestArgs = {
|
|
578
578
|
...localVarAxiosArgs.options,
|
|
@@ -588,8 +588,8 @@ export const ConfigServiceApiFp = function (configuration) {
|
|
|
588
588
|
* @param {*} [options] Override http request option.
|
|
589
589
|
* @throws {RequiredError}
|
|
590
590
|
*/
|
|
591
|
-
async
|
|
592
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
591
|
+
async updateConfig(configId, body, options) {
|
|
592
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).updateConfig(configId, body, options);
|
|
593
593
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
594
594
|
const axiosRequestArgs = {
|
|
595
595
|
...localVarAxiosArgs.options,
|
|
@@ -608,83 +608,83 @@ export const ConfigServiceApiFactory = function (configuration, basePath, axios)
|
|
|
608
608
|
return {
|
|
609
609
|
/**
|
|
610
610
|
*
|
|
611
|
-
* @param {
|
|
611
|
+
* @param {LoggerCreateConfigRequest} body
|
|
612
612
|
* @param {*} [options] Override http request option.
|
|
613
613
|
* @throws {RequiredError}
|
|
614
614
|
*/
|
|
615
|
-
|
|
615
|
+
createConfig(body, options) {
|
|
616
616
|
return ConfigServiceApiFp(configuration)
|
|
617
|
-
.
|
|
617
|
+
.createConfig(body, options)
|
|
618
618
|
.then((request) => request(axios, basePath));
|
|
619
619
|
},
|
|
620
620
|
/**
|
|
621
621
|
*
|
|
622
|
-
* @param {
|
|
622
|
+
* @param {number} configId
|
|
623
623
|
* @param {*} [options] Override http request option.
|
|
624
624
|
* @throws {RequiredError}
|
|
625
625
|
*/
|
|
626
|
-
|
|
626
|
+
deleteConfig(configId, options) {
|
|
627
627
|
return ConfigServiceApiFp(configuration)
|
|
628
|
-
.
|
|
628
|
+
.deleteConfig(configId, options)
|
|
629
629
|
.then((request) => request(axios, basePath));
|
|
630
630
|
},
|
|
631
631
|
/**
|
|
632
632
|
*
|
|
633
|
-
* @param {
|
|
634
|
-
* @param {number} [size]
|
|
635
|
-
* @param {string} [q]
|
|
636
|
-
* @param {string} [sort]
|
|
637
|
-
* @param {Array<string>} [fields]
|
|
633
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
638
634
|
* @param {*} [options] Override http request option.
|
|
639
635
|
* @throws {RequiredError}
|
|
640
636
|
*/
|
|
641
|
-
|
|
637
|
+
deleteConfigBulk(body, options) {
|
|
642
638
|
return ConfigServiceApiFp(configuration)
|
|
643
|
-
.
|
|
639
|
+
.deleteConfigBulk(body, options)
|
|
644
640
|
.then((request) => request(axios, basePath));
|
|
645
641
|
},
|
|
646
642
|
/**
|
|
647
643
|
*
|
|
648
644
|
* @param {number} configId
|
|
645
|
+
* @param {LoggerPatchConfigRequest} body
|
|
649
646
|
* @param {*} [options] Override http request option.
|
|
650
647
|
* @throws {RequiredError}
|
|
651
648
|
*/
|
|
652
|
-
|
|
649
|
+
patchConfig(configId, body, options) {
|
|
653
650
|
return ConfigServiceApiFp(configuration)
|
|
654
|
-
.
|
|
651
|
+
.patchConfig(configId, body, options)
|
|
655
652
|
.then((request) => request(axios, basePath));
|
|
656
653
|
},
|
|
657
654
|
/**
|
|
658
655
|
*
|
|
656
|
+
* @param {number} configId
|
|
659
657
|
* @param {*} [options] Override http request option.
|
|
660
658
|
* @throws {RequiredError}
|
|
661
659
|
*/
|
|
662
|
-
|
|
660
|
+
readConfig(configId, options) {
|
|
663
661
|
return ConfigServiceApiFp(configuration)
|
|
664
|
-
.
|
|
662
|
+
.readConfig(configId, options)
|
|
665
663
|
.then((request) => request(axios, basePath));
|
|
666
664
|
},
|
|
667
665
|
/**
|
|
668
666
|
*
|
|
669
|
-
* @param {LoggerInsertConfigRequest} body
|
|
670
667
|
* @param {*} [options] Override http request option.
|
|
671
668
|
* @throws {RequiredError}
|
|
672
669
|
*/
|
|
673
|
-
|
|
670
|
+
readSystemObjects(options) {
|
|
674
671
|
return ConfigServiceApiFp(configuration)
|
|
675
|
-
.
|
|
672
|
+
.readSystemObjects(options)
|
|
676
673
|
.then((request) => request(axios, basePath));
|
|
677
674
|
},
|
|
678
675
|
/**
|
|
679
676
|
*
|
|
680
|
-
* @param {number}
|
|
681
|
-
* @param {
|
|
677
|
+
* @param {number} [page]
|
|
678
|
+
* @param {number} [size]
|
|
679
|
+
* @param {string} [q]
|
|
680
|
+
* @param {string} [sort]
|
|
681
|
+
* @param {Array<string>} [fields]
|
|
682
682
|
* @param {*} [options] Override http request option.
|
|
683
683
|
* @throws {RequiredError}
|
|
684
684
|
*/
|
|
685
|
-
|
|
685
|
+
searchConfig(page, size, q, sort, fields, options) {
|
|
686
686
|
return ConfigServiceApiFp(configuration)
|
|
687
|
-
.
|
|
687
|
+
.searchConfig(page, size, q, sort, fields, options)
|
|
688
688
|
.then((request) => request(axios, basePath));
|
|
689
689
|
},
|
|
690
690
|
/**
|
|
@@ -694,9 +694,9 @@ export const ConfigServiceApiFactory = function (configuration, basePath, axios)
|
|
|
694
694
|
* @param {*} [options] Override http request option.
|
|
695
695
|
* @throws {RequiredError}
|
|
696
696
|
*/
|
|
697
|
-
|
|
697
|
+
updateConfig(configId, body, options) {
|
|
698
698
|
return ConfigServiceApiFp(configuration)
|
|
699
|
-
.
|
|
699
|
+
.updateConfig(configId, body, options)
|
|
700
700
|
.then((request) => request(axios, basePath));
|
|
701
701
|
},
|
|
702
702
|
};
|
|
@@ -710,90 +710,90 @@ export const ConfigServiceApiFactory = function (configuration, basePath, axios)
|
|
|
710
710
|
export class ConfigServiceApi extends BaseAPI {
|
|
711
711
|
/**
|
|
712
712
|
*
|
|
713
|
-
* @param {
|
|
713
|
+
* @param {LoggerCreateConfigRequest} body
|
|
714
714
|
* @param {*} [options] Override http request option.
|
|
715
715
|
* @throws {RequiredError}
|
|
716
716
|
* @memberof ConfigServiceApi
|
|
717
717
|
*/
|
|
718
|
-
|
|
718
|
+
createConfig(body, options) {
|
|
719
719
|
return ConfigServiceApiFp(this.configuration)
|
|
720
|
-
.
|
|
720
|
+
.createConfig(body, options)
|
|
721
721
|
.then((request) => request(this.axios, this.basePath));
|
|
722
722
|
}
|
|
723
723
|
/**
|
|
724
724
|
*
|
|
725
|
-
* @param {
|
|
725
|
+
* @param {number} configId
|
|
726
726
|
* @param {*} [options] Override http request option.
|
|
727
727
|
* @throws {RequiredError}
|
|
728
728
|
* @memberof ConfigServiceApi
|
|
729
729
|
*/
|
|
730
|
-
|
|
730
|
+
deleteConfig(configId, options) {
|
|
731
731
|
return ConfigServiceApiFp(this.configuration)
|
|
732
|
-
.
|
|
732
|
+
.deleteConfig(configId, options)
|
|
733
733
|
.then((request) => request(this.axios, this.basePath));
|
|
734
734
|
}
|
|
735
735
|
/**
|
|
736
736
|
*
|
|
737
|
-
* @param {
|
|
738
|
-
* @param {number} [size]
|
|
739
|
-
* @param {string} [q]
|
|
740
|
-
* @param {string} [sort]
|
|
741
|
-
* @param {Array<string>} [fields]
|
|
737
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
742
738
|
* @param {*} [options] Override http request option.
|
|
743
739
|
* @throws {RequiredError}
|
|
744
740
|
* @memberof ConfigServiceApi
|
|
745
741
|
*/
|
|
746
|
-
|
|
742
|
+
deleteConfigBulk(body, options) {
|
|
747
743
|
return ConfigServiceApiFp(this.configuration)
|
|
748
|
-
.
|
|
744
|
+
.deleteConfigBulk(body, options)
|
|
749
745
|
.then((request) => request(this.axios, this.basePath));
|
|
750
746
|
}
|
|
751
747
|
/**
|
|
752
748
|
*
|
|
753
749
|
* @param {number} configId
|
|
750
|
+
* @param {LoggerPatchConfigRequest} body
|
|
754
751
|
* @param {*} [options] Override http request option.
|
|
755
752
|
* @throws {RequiredError}
|
|
756
753
|
* @memberof ConfigServiceApi
|
|
757
754
|
*/
|
|
758
|
-
|
|
755
|
+
patchConfig(configId, body, options) {
|
|
759
756
|
return ConfigServiceApiFp(this.configuration)
|
|
760
|
-
.
|
|
757
|
+
.patchConfig(configId, body, options)
|
|
761
758
|
.then((request) => request(this.axios, this.basePath));
|
|
762
759
|
}
|
|
763
760
|
/**
|
|
764
761
|
*
|
|
762
|
+
* @param {number} configId
|
|
765
763
|
* @param {*} [options] Override http request option.
|
|
766
764
|
* @throws {RequiredError}
|
|
767
765
|
* @memberof ConfigServiceApi
|
|
768
766
|
*/
|
|
769
|
-
|
|
767
|
+
readConfig(configId, options) {
|
|
770
768
|
return ConfigServiceApiFp(this.configuration)
|
|
771
|
-
.
|
|
769
|
+
.readConfig(configId, options)
|
|
772
770
|
.then((request) => request(this.axios, this.basePath));
|
|
773
771
|
}
|
|
774
772
|
/**
|
|
775
773
|
*
|
|
776
|
-
* @param {LoggerInsertConfigRequest} body
|
|
777
774
|
* @param {*} [options] Override http request option.
|
|
778
775
|
* @throws {RequiredError}
|
|
779
776
|
* @memberof ConfigServiceApi
|
|
780
777
|
*/
|
|
781
|
-
|
|
778
|
+
readSystemObjects(options) {
|
|
782
779
|
return ConfigServiceApiFp(this.configuration)
|
|
783
|
-
.
|
|
780
|
+
.readSystemObjects(options)
|
|
784
781
|
.then((request) => request(this.axios, this.basePath));
|
|
785
782
|
}
|
|
786
783
|
/**
|
|
787
784
|
*
|
|
788
|
-
* @param {number}
|
|
789
|
-
* @param {
|
|
785
|
+
* @param {number} [page]
|
|
786
|
+
* @param {number} [size]
|
|
787
|
+
* @param {string} [q]
|
|
788
|
+
* @param {string} [sort]
|
|
789
|
+
* @param {Array<string>} [fields]
|
|
790
790
|
* @param {*} [options] Override http request option.
|
|
791
791
|
* @throws {RequiredError}
|
|
792
792
|
* @memberof ConfigServiceApi
|
|
793
793
|
*/
|
|
794
|
-
|
|
794
|
+
searchConfig(page, size, q, sort, fields, options) {
|
|
795
795
|
return ConfigServiceApiFp(this.configuration)
|
|
796
|
-
.
|
|
796
|
+
.searchConfig(page, size, q, sort, fields, options)
|
|
797
797
|
.then((request) => request(this.axios, this.basePath));
|
|
798
798
|
}
|
|
799
799
|
/**
|
|
@@ -804,9 +804,9 @@ export class ConfigServiceApi extends BaseAPI {
|
|
|
804
804
|
* @throws {RequiredError}
|
|
805
805
|
* @memberof ConfigServiceApi
|
|
806
806
|
*/
|
|
807
|
-
|
|
807
|
+
updateConfig(configId, body, options) {
|
|
808
808
|
return ConfigServiceApiFp(this.configuration)
|
|
809
|
-
.
|
|
809
|
+
.updateConfig(configId, body, options)
|
|
810
810
|
.then((request) => request(this.axios, this.basePath));
|
|
811
811
|
}
|
|
812
812
|
}
|