webitel-sdk 23.7.3 → 23.7.5
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 +387 -223
- 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 +400 -239
- 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/esm2015/socket/agent.js +35 -1
- package/esm2015/socket/agent.js.map +1 -1
- package/esm2015/socket/client.js +10 -0
- package/esm2015/socket/client.js.map +1 -1
- package/esm2015/socket/errors.js +9 -0
- package/esm2015/socket/errors.js.map +1 -1
- package/esm2015/socket/notification.js +2 -0
- package/esm2015/socket/notification.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/esm5/socket/agent.js +45 -1
- package/esm5/socket/agent.js.map +1 -1
- package/esm5/socket/client.js +10 -0
- package/esm5/socket/client.js.map +1 -1
- package/esm5/socket/errors.js +13 -0
- package/esm5/socket/errors.js.map +1 -1
- package/esm5/socket/notification.js +2 -0
- package/esm5/socket/notification.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
- package/types/socket/agent.d.ts +15 -1
- package/types/socket/agent.d.ts.map +1 -1
- package/types/socket/client.d.ts.map +1 -1
- package/types/socket/errors.d.ts +7 -1
- package/types/socket/errors.d.ts.map +1 -1
- package/types/socket/notification.d.ts +4 -3
- package/types/socket/notification.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -11337,23 +11337,23 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11337
11337
|
return {
|
|
11338
11338
|
/**
|
|
11339
11339
|
*
|
|
11340
|
-
* @param {
|
|
11340
|
+
* @param {LoggerCreateConfigRequest} body
|
|
11341
11341
|
* @param {*} [options] Override http request option.
|
|
11342
11342
|
* @throws {RequiredError}
|
|
11343
11343
|
*/
|
|
11344
|
-
|
|
11345
|
-
// verify required parameter '
|
|
11346
|
-
if (
|
|
11347
|
-
throw new RequiredError('
|
|
11344
|
+
createConfig: async (body, options = {}) => {
|
|
11345
|
+
// verify required parameter 'body' is not null or undefined
|
|
11346
|
+
if (body === null || body === undefined) {
|
|
11347
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling createConfig.');
|
|
11348
11348
|
}
|
|
11349
|
-
const localVarPath = `/logger/config
|
|
11349
|
+
const localVarPath = `/logger/config`;
|
|
11350
11350
|
const localVarUrlObj = parse(localVarPath, true);
|
|
11351
11351
|
let baseOptions;
|
|
11352
11352
|
if (configuration) {
|
|
11353
11353
|
baseOptions = configuration.baseOptions;
|
|
11354
11354
|
}
|
|
11355
11355
|
const localVarRequestOptions = {
|
|
11356
|
-
method: '
|
|
11356
|
+
method: 'POST',
|
|
11357
11357
|
...baseOptions,
|
|
11358
11358
|
...options,
|
|
11359
11359
|
};
|
|
@@ -11366,6 +11366,7 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11366
11366
|
: await configuration.apiKey;
|
|
11367
11367
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
11368
11368
|
}
|
|
11369
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11369
11370
|
localVarUrlObj.query = {
|
|
11370
11371
|
...localVarUrlObj.query,
|
|
11371
11372
|
...localVarQueryParameter,
|
|
@@ -11379,6 +11380,11 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11379
11380
|
...headersFromBaseOptions,
|
|
11380
11381
|
...options.headers,
|
|
11381
11382
|
};
|
|
11383
|
+
const needsSerialization = typeof body !== 'string' ||
|
|
11384
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
11385
|
+
localVarRequestOptions.data = needsSerialization
|
|
11386
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
11387
|
+
: body || '';
|
|
11382
11388
|
return {
|
|
11383
11389
|
url: format(localVarUrlObj),
|
|
11384
11390
|
options: localVarRequestOptions,
|
|
@@ -11386,16 +11392,16 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11386
11392
|
},
|
|
11387
11393
|
/**
|
|
11388
11394
|
*
|
|
11389
|
-
* @param {
|
|
11395
|
+
* @param {number} configId
|
|
11390
11396
|
* @param {*} [options] Override http request option.
|
|
11391
11397
|
* @throws {RequiredError}
|
|
11392
11398
|
*/
|
|
11393
|
-
|
|
11394
|
-
// verify required parameter '
|
|
11395
|
-
if (
|
|
11396
|
-
throw new RequiredError('
|
|
11399
|
+
deleteConfig: async (configId, options = {}) => {
|
|
11400
|
+
// verify required parameter 'configId' is not null or undefined
|
|
11401
|
+
if (configId === null || configId === undefined) {
|
|
11402
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling deleteConfig.');
|
|
11397
11403
|
}
|
|
11398
|
-
const localVarPath = `/logger/config
|
|
11404
|
+
const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
11399
11405
|
const localVarUrlObj = parse(localVarPath, true);
|
|
11400
11406
|
let baseOptions;
|
|
11401
11407
|
if (configuration) {
|
|
@@ -11415,7 +11421,6 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11415
11421
|
: await configuration.apiKey;
|
|
11416
11422
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
11417
11423
|
}
|
|
11418
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11419
11424
|
localVarUrlObj.query = {
|
|
11420
11425
|
...localVarUrlObj.query,
|
|
11421
11426
|
...localVarQueryParameter,
|
|
@@ -11429,11 +11434,6 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11429
11434
|
...headersFromBaseOptions,
|
|
11430
11435
|
...options.headers,
|
|
11431
11436
|
};
|
|
11432
|
-
const needsSerialization = typeof body !== 'string' ||
|
|
11433
|
-
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
11434
|
-
localVarRequestOptions.data = needsSerialization
|
|
11435
|
-
? JSON.stringify(body !== undefined ? body : {})
|
|
11436
|
-
: body || '';
|
|
11437
11437
|
return {
|
|
11438
11438
|
url: format(localVarUrlObj),
|
|
11439
11439
|
options: localVarRequestOptions,
|
|
@@ -11441,15 +11441,15 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11441
11441
|
},
|
|
11442
11442
|
/**
|
|
11443
11443
|
*
|
|
11444
|
-
* @param {
|
|
11445
|
-
* @param {number} [size]
|
|
11446
|
-
* @param {string} [q]
|
|
11447
|
-
* @param {string} [sort]
|
|
11448
|
-
* @param {Array<string>} [fields]
|
|
11444
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
11449
11445
|
* @param {*} [options] Override http request option.
|
|
11450
11446
|
* @throws {RequiredError}
|
|
11451
11447
|
*/
|
|
11452
|
-
|
|
11448
|
+
deleteConfigBulk: async (body, options = {}) => {
|
|
11449
|
+
// verify required parameter 'body' is not null or undefined
|
|
11450
|
+
if (body === null || body === undefined) {
|
|
11451
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling deleteConfigBulk.');
|
|
11452
|
+
}
|
|
11453
11453
|
const localVarPath = `/logger/config`;
|
|
11454
11454
|
const localVarUrlObj = parse(localVarPath, true);
|
|
11455
11455
|
let baseOptions;
|
|
@@ -11457,7 +11457,7 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11457
11457
|
baseOptions = configuration.baseOptions;
|
|
11458
11458
|
}
|
|
11459
11459
|
const localVarRequestOptions = {
|
|
11460
|
-
method: '
|
|
11460
|
+
method: 'DELETE',
|
|
11461
11461
|
...baseOptions,
|
|
11462
11462
|
...options,
|
|
11463
11463
|
};
|
|
@@ -11470,21 +11470,7 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11470
11470
|
: await configuration.apiKey;
|
|
11471
11471
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
11472
11472
|
}
|
|
11473
|
-
|
|
11474
|
-
localVarQueryParameter['page'] = page;
|
|
11475
|
-
}
|
|
11476
|
-
if (size !== undefined) {
|
|
11477
|
-
localVarQueryParameter['size'] = size;
|
|
11478
|
-
}
|
|
11479
|
-
if (q !== undefined) {
|
|
11480
|
-
localVarQueryParameter['q'] = q;
|
|
11481
|
-
}
|
|
11482
|
-
if (sort !== undefined) {
|
|
11483
|
-
localVarQueryParameter['sort'] = sort;
|
|
11484
|
-
}
|
|
11485
|
-
if (fields) {
|
|
11486
|
-
localVarQueryParameter['fields'] = fields;
|
|
11487
|
-
}
|
|
11473
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11488
11474
|
localVarUrlObj.query = {
|
|
11489
11475
|
...localVarUrlObj.query,
|
|
11490
11476
|
...localVarQueryParameter,
|
|
@@ -11498,6 +11484,11 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11498
11484
|
...headersFromBaseOptions,
|
|
11499
11485
|
...options.headers,
|
|
11500
11486
|
};
|
|
11487
|
+
const needsSerialization = typeof body !== 'string' ||
|
|
11488
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
11489
|
+
localVarRequestOptions.data = needsSerialization
|
|
11490
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
11491
|
+
: body || '';
|
|
11501
11492
|
return {
|
|
11502
11493
|
url: format(localVarUrlObj),
|
|
11503
11494
|
options: localVarRequestOptions,
|
|
@@ -11506,13 +11497,18 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11506
11497
|
/**
|
|
11507
11498
|
*
|
|
11508
11499
|
* @param {number} configId
|
|
11500
|
+
* @param {LoggerPatchConfigRequest} body
|
|
11509
11501
|
* @param {*} [options] Override http request option.
|
|
11510
11502
|
* @throws {RequiredError}
|
|
11511
11503
|
*/
|
|
11512
|
-
|
|
11504
|
+
patchConfig: async (configId, body, options = {}) => {
|
|
11513
11505
|
// verify required parameter 'configId' is not null or undefined
|
|
11514
11506
|
if (configId === null || configId === undefined) {
|
|
11515
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling
|
|
11507
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling patchConfig.');
|
|
11508
|
+
}
|
|
11509
|
+
// verify required parameter 'body' is not null or undefined
|
|
11510
|
+
if (body === null || body === undefined) {
|
|
11511
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchConfig.');
|
|
11516
11512
|
}
|
|
11517
11513
|
const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
11518
11514
|
const localVarUrlObj = parse(localVarPath, true);
|
|
@@ -11521,7 +11517,7 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11521
11517
|
baseOptions = configuration.baseOptions;
|
|
11522
11518
|
}
|
|
11523
11519
|
const localVarRequestOptions = {
|
|
11524
|
-
method: '
|
|
11520
|
+
method: 'PATCH',
|
|
11525
11521
|
...baseOptions,
|
|
11526
11522
|
...options,
|
|
11527
11523
|
};
|
|
@@ -11534,6 +11530,7 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11534
11530
|
: await configuration.apiKey;
|
|
11535
11531
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
11536
11532
|
}
|
|
11533
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11537
11534
|
localVarUrlObj.query = {
|
|
11538
11535
|
...localVarUrlObj.query,
|
|
11539
11536
|
...localVarQueryParameter,
|
|
@@ -11547,6 +11544,11 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11547
11544
|
...headersFromBaseOptions,
|
|
11548
11545
|
...options.headers,
|
|
11549
11546
|
};
|
|
11547
|
+
const needsSerialization = typeof body !== 'string' ||
|
|
11548
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
11549
|
+
localVarRequestOptions.data = needsSerialization
|
|
11550
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
11551
|
+
: body || '';
|
|
11550
11552
|
return {
|
|
11551
11553
|
url: format(localVarUrlObj),
|
|
11552
11554
|
options: localVarRequestOptions,
|
|
@@ -11554,11 +11556,16 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11554
11556
|
},
|
|
11555
11557
|
/**
|
|
11556
11558
|
*
|
|
11559
|
+
* @param {number} configId
|
|
11557
11560
|
* @param {*} [options] Override http request option.
|
|
11558
11561
|
* @throws {RequiredError}
|
|
11559
11562
|
*/
|
|
11560
|
-
|
|
11561
|
-
|
|
11563
|
+
readConfig: async (configId, options = {}) => {
|
|
11564
|
+
// verify required parameter 'configId' is not null or undefined
|
|
11565
|
+
if (configId === null || configId === undefined) {
|
|
11566
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling readConfig.');
|
|
11567
|
+
}
|
|
11568
|
+
const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
11562
11569
|
const localVarUrlObj = parse(localVarPath, true);
|
|
11563
11570
|
let baseOptions;
|
|
11564
11571
|
if (configuration) {
|
|
@@ -11598,23 +11605,18 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11598
11605
|
},
|
|
11599
11606
|
/**
|
|
11600
11607
|
*
|
|
11601
|
-
* @param {LoggerInsertConfigRequest} body
|
|
11602
11608
|
* @param {*} [options] Override http request option.
|
|
11603
11609
|
* @throws {RequiredError}
|
|
11604
11610
|
*/
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
if (body === null || body === undefined) {
|
|
11608
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling insert.');
|
|
11609
|
-
}
|
|
11610
|
-
const localVarPath = `/logger/config`;
|
|
11611
|
+
readSystemObjects: async (options = {}) => {
|
|
11612
|
+
const localVarPath = `/logger/available_objects`;
|
|
11611
11613
|
const localVarUrlObj = parse(localVarPath, true);
|
|
11612
11614
|
let baseOptions;
|
|
11613
11615
|
if (configuration) {
|
|
11614
11616
|
baseOptions = configuration.baseOptions;
|
|
11615
11617
|
}
|
|
11616
11618
|
const localVarRequestOptions = {
|
|
11617
|
-
method: '
|
|
11619
|
+
method: 'GET',
|
|
11618
11620
|
...baseOptions,
|
|
11619
11621
|
...options,
|
|
11620
11622
|
};
|
|
@@ -11627,7 +11629,6 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11627
11629
|
: await configuration.apiKey;
|
|
11628
11630
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
11629
11631
|
}
|
|
11630
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11631
11632
|
localVarUrlObj.query = {
|
|
11632
11633
|
...localVarUrlObj.query,
|
|
11633
11634
|
...localVarQueryParameter,
|
|
@@ -11641,11 +11642,6 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11641
11642
|
...headersFromBaseOptions,
|
|
11642
11643
|
...options.headers,
|
|
11643
11644
|
};
|
|
11644
|
-
const needsSerialization = typeof body !== 'string' ||
|
|
11645
|
-
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
11646
|
-
localVarRequestOptions.data = needsSerialization
|
|
11647
|
-
? JSON.stringify(body !== undefined ? body : {})
|
|
11648
|
-
: body || '';
|
|
11649
11645
|
return {
|
|
11650
11646
|
url: format(localVarUrlObj),
|
|
11651
11647
|
options: localVarRequestOptions,
|
|
@@ -11653,28 +11649,23 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11653
11649
|
},
|
|
11654
11650
|
/**
|
|
11655
11651
|
*
|
|
11656
|
-
* @param {number}
|
|
11657
|
-
* @param {
|
|
11652
|
+
* @param {number} [page]
|
|
11653
|
+
* @param {number} [size]
|
|
11654
|
+
* @param {string} [q]
|
|
11655
|
+
* @param {string} [sort]
|
|
11656
|
+
* @param {Array<string>} [fields]
|
|
11658
11657
|
* @param {*} [options] Override http request option.
|
|
11659
11658
|
* @throws {RequiredError}
|
|
11660
11659
|
*/
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
if (configId === null || configId === undefined) {
|
|
11664
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling patchUpdate.');
|
|
11665
|
-
}
|
|
11666
|
-
// verify required parameter 'body' is not null or undefined
|
|
11667
|
-
if (body === null || body === undefined) {
|
|
11668
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchUpdate.');
|
|
11669
|
-
}
|
|
11670
|
-
const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
11660
|
+
searchConfig: async (page, size, q, sort, fields, options = {}) => {
|
|
11661
|
+
const localVarPath = `/logger/config`;
|
|
11671
11662
|
const localVarUrlObj = parse(localVarPath, true);
|
|
11672
11663
|
let baseOptions;
|
|
11673
11664
|
if (configuration) {
|
|
11674
11665
|
baseOptions = configuration.baseOptions;
|
|
11675
11666
|
}
|
|
11676
11667
|
const localVarRequestOptions = {
|
|
11677
|
-
method: '
|
|
11668
|
+
method: 'GET',
|
|
11678
11669
|
...baseOptions,
|
|
11679
11670
|
...options,
|
|
11680
11671
|
};
|
|
@@ -11687,7 +11678,21 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11687
11678
|
: await configuration.apiKey;
|
|
11688
11679
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
11689
11680
|
}
|
|
11690
|
-
|
|
11681
|
+
if (page !== undefined) {
|
|
11682
|
+
localVarQueryParameter['page'] = page;
|
|
11683
|
+
}
|
|
11684
|
+
if (size !== undefined) {
|
|
11685
|
+
localVarQueryParameter['size'] = size;
|
|
11686
|
+
}
|
|
11687
|
+
if (q !== undefined) {
|
|
11688
|
+
localVarQueryParameter['q'] = q;
|
|
11689
|
+
}
|
|
11690
|
+
if (sort !== undefined) {
|
|
11691
|
+
localVarQueryParameter['sort'] = sort;
|
|
11692
|
+
}
|
|
11693
|
+
if (fields) {
|
|
11694
|
+
localVarQueryParameter['fields'] = fields;
|
|
11695
|
+
}
|
|
11691
11696
|
localVarUrlObj.query = {
|
|
11692
11697
|
...localVarUrlObj.query,
|
|
11693
11698
|
...localVarQueryParameter,
|
|
@@ -11701,11 +11706,6 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11701
11706
|
...headersFromBaseOptions,
|
|
11702
11707
|
...options.headers,
|
|
11703
11708
|
};
|
|
11704
|
-
const needsSerialization = typeof body !== 'string' ||
|
|
11705
|
-
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
11706
|
-
localVarRequestOptions.data = needsSerialization
|
|
11707
|
-
? JSON.stringify(body !== undefined ? body : {})
|
|
11708
|
-
: body || '';
|
|
11709
11709
|
return {
|
|
11710
11710
|
url: format(localVarUrlObj),
|
|
11711
11711
|
options: localVarRequestOptions,
|
|
@@ -11718,14 +11718,14 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
|
|
|
11718
11718
|
* @param {*} [options] Override http request option.
|
|
11719
11719
|
* @throws {RequiredError}
|
|
11720
11720
|
*/
|
|
11721
|
-
|
|
11721
|
+
updateConfig: async (configId, body, options = {}) => {
|
|
11722
11722
|
// verify required parameter 'configId' is not null or undefined
|
|
11723
11723
|
if (configId === null || configId === undefined) {
|
|
11724
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling
|
|
11724
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling updateConfig.');
|
|
11725
11725
|
}
|
|
11726
11726
|
// verify required parameter 'body' is not null or undefined
|
|
11727
11727
|
if (body === null || body === undefined) {
|
|
11728
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling
|
|
11728
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateConfig.');
|
|
11729
11729
|
}
|
|
11730
11730
|
const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
11731
11731
|
const localVarUrlObj = parse(localVarPath, true);
|
|
@@ -11781,12 +11781,12 @@ const ConfigServiceApiFp = function (configuration) {
|
|
|
11781
11781
|
return {
|
|
11782
11782
|
/**
|
|
11783
11783
|
*
|
|
11784
|
-
* @param {
|
|
11784
|
+
* @param {LoggerCreateConfigRequest} body
|
|
11785
11785
|
* @param {*} [options] Override http request option.
|
|
11786
11786
|
* @throws {RequiredError}
|
|
11787
11787
|
*/
|
|
11788
|
-
async
|
|
11789
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
11788
|
+
async createConfig(body, options) {
|
|
11789
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).createConfig(body, options);
|
|
11790
11790
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
11791
11791
|
const axiosRequestArgs = {
|
|
11792
11792
|
...localVarAxiosArgs.options,
|
|
@@ -11797,12 +11797,12 @@ const ConfigServiceApiFp = function (configuration) {
|
|
|
11797
11797
|
},
|
|
11798
11798
|
/**
|
|
11799
11799
|
*
|
|
11800
|
-
* @param {
|
|
11800
|
+
* @param {number} configId
|
|
11801
11801
|
* @param {*} [options] Override http request option.
|
|
11802
11802
|
* @throws {RequiredError}
|
|
11803
11803
|
*/
|
|
11804
|
-
async
|
|
11805
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
11804
|
+
async deleteConfig(configId, options) {
|
|
11805
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).deleteConfig(configId, options);
|
|
11806
11806
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
11807
11807
|
const axiosRequestArgs = {
|
|
11808
11808
|
...localVarAxiosArgs.options,
|
|
@@ -11813,16 +11813,12 @@ const ConfigServiceApiFp = function (configuration) {
|
|
|
11813
11813
|
},
|
|
11814
11814
|
/**
|
|
11815
11815
|
*
|
|
11816
|
-
* @param {
|
|
11817
|
-
* @param {number} [size]
|
|
11818
|
-
* @param {string} [q]
|
|
11819
|
-
* @param {string} [sort]
|
|
11820
|
-
* @param {Array<string>} [fields]
|
|
11816
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
11821
11817
|
* @param {*} [options] Override http request option.
|
|
11822
11818
|
* @throws {RequiredError}
|
|
11823
11819
|
*/
|
|
11824
|
-
async
|
|
11825
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
11820
|
+
async deleteConfigBulk(body, options) {
|
|
11821
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).deleteConfigBulk(body, options);
|
|
11826
11822
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
11827
11823
|
const axiosRequestArgs = {
|
|
11828
11824
|
...localVarAxiosArgs.options,
|
|
@@ -11834,11 +11830,12 @@ const ConfigServiceApiFp = function (configuration) {
|
|
|
11834
11830
|
/**
|
|
11835
11831
|
*
|
|
11836
11832
|
* @param {number} configId
|
|
11833
|
+
* @param {LoggerPatchConfigRequest} body
|
|
11837
11834
|
* @param {*} [options] Override http request option.
|
|
11838
11835
|
* @throws {RequiredError}
|
|
11839
11836
|
*/
|
|
11840
|
-
async
|
|
11841
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
11837
|
+
async patchConfig(configId, body, options) {
|
|
11838
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).patchConfig(configId, body, options);
|
|
11842
11839
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
11843
11840
|
const axiosRequestArgs = {
|
|
11844
11841
|
...localVarAxiosArgs.options,
|
|
@@ -11849,11 +11846,12 @@ const ConfigServiceApiFp = function (configuration) {
|
|
|
11849
11846
|
},
|
|
11850
11847
|
/**
|
|
11851
11848
|
*
|
|
11849
|
+
* @param {number} configId
|
|
11852
11850
|
* @param {*} [options] Override http request option.
|
|
11853
11851
|
* @throws {RequiredError}
|
|
11854
11852
|
*/
|
|
11855
|
-
async
|
|
11856
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
11853
|
+
async readConfig(configId, options) {
|
|
11854
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).readConfig(configId, options);
|
|
11857
11855
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
11858
11856
|
const axiosRequestArgs = {
|
|
11859
11857
|
...localVarAxiosArgs.options,
|
|
@@ -11864,12 +11862,11 @@ const ConfigServiceApiFp = function (configuration) {
|
|
|
11864
11862
|
},
|
|
11865
11863
|
/**
|
|
11866
11864
|
*
|
|
11867
|
-
* @param {LoggerInsertConfigRequest} body
|
|
11868
11865
|
* @param {*} [options] Override http request option.
|
|
11869
11866
|
* @throws {RequiredError}
|
|
11870
11867
|
*/
|
|
11871
|
-
async
|
|
11872
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
11868
|
+
async readSystemObjects(options) {
|
|
11869
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).readSystemObjects(options);
|
|
11873
11870
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
11874
11871
|
const axiosRequestArgs = {
|
|
11875
11872
|
...localVarAxiosArgs.options,
|
|
@@ -11880,13 +11877,16 @@ const ConfigServiceApiFp = function (configuration) {
|
|
|
11880
11877
|
},
|
|
11881
11878
|
/**
|
|
11882
11879
|
*
|
|
11883
|
-
* @param {number}
|
|
11884
|
-
* @param {
|
|
11880
|
+
* @param {number} [page]
|
|
11881
|
+
* @param {number} [size]
|
|
11882
|
+
* @param {string} [q]
|
|
11883
|
+
* @param {string} [sort]
|
|
11884
|
+
* @param {Array<string>} [fields]
|
|
11885
11885
|
* @param {*} [options] Override http request option.
|
|
11886
11886
|
* @throws {RequiredError}
|
|
11887
11887
|
*/
|
|
11888
|
-
async
|
|
11889
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
11888
|
+
async searchConfig(page, size, q, sort, fields, options) {
|
|
11889
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).searchConfig(page, size, q, sort, fields, options);
|
|
11890
11890
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
11891
11891
|
const axiosRequestArgs = {
|
|
11892
11892
|
...localVarAxiosArgs.options,
|
|
@@ -11902,8 +11902,8 @@ const ConfigServiceApiFp = function (configuration) {
|
|
|
11902
11902
|
* @param {*} [options] Override http request option.
|
|
11903
11903
|
* @throws {RequiredError}
|
|
11904
11904
|
*/
|
|
11905
|
-
async
|
|
11906
|
-
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).
|
|
11905
|
+
async updateConfig(configId, body, options) {
|
|
11906
|
+
const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).updateConfig(configId, body, options);
|
|
11907
11907
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
11908
11908
|
const axiosRequestArgs = {
|
|
11909
11909
|
...localVarAxiosArgs.options,
|
|
@@ -11922,83 +11922,83 @@ const ConfigServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
11922
11922
|
return {
|
|
11923
11923
|
/**
|
|
11924
11924
|
*
|
|
11925
|
-
* @param {
|
|
11925
|
+
* @param {LoggerCreateConfigRequest} body
|
|
11926
11926
|
* @param {*} [options] Override http request option.
|
|
11927
11927
|
* @throws {RequiredError}
|
|
11928
11928
|
*/
|
|
11929
|
-
|
|
11929
|
+
createConfig(body, options) {
|
|
11930
11930
|
return ConfigServiceApiFp(configuration)
|
|
11931
|
-
.
|
|
11931
|
+
.createConfig(body, options)
|
|
11932
11932
|
.then((request) => request(axios, basePath));
|
|
11933
11933
|
},
|
|
11934
11934
|
/**
|
|
11935
11935
|
*
|
|
11936
|
-
* @param {
|
|
11936
|
+
* @param {number} configId
|
|
11937
11937
|
* @param {*} [options] Override http request option.
|
|
11938
11938
|
* @throws {RequiredError}
|
|
11939
11939
|
*/
|
|
11940
|
-
|
|
11940
|
+
deleteConfig(configId, options) {
|
|
11941
11941
|
return ConfigServiceApiFp(configuration)
|
|
11942
|
-
.
|
|
11942
|
+
.deleteConfig(configId, options)
|
|
11943
11943
|
.then((request) => request(axios, basePath));
|
|
11944
11944
|
},
|
|
11945
11945
|
/**
|
|
11946
11946
|
*
|
|
11947
|
-
* @param {
|
|
11948
|
-
* @param {number} [size]
|
|
11949
|
-
* @param {string} [q]
|
|
11950
|
-
* @param {string} [sort]
|
|
11951
|
-
* @param {Array<string>} [fields]
|
|
11947
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
11952
11948
|
* @param {*} [options] Override http request option.
|
|
11953
11949
|
* @throws {RequiredError}
|
|
11954
11950
|
*/
|
|
11955
|
-
|
|
11951
|
+
deleteConfigBulk(body, options) {
|
|
11956
11952
|
return ConfigServiceApiFp(configuration)
|
|
11957
|
-
.
|
|
11953
|
+
.deleteConfigBulk(body, options)
|
|
11958
11954
|
.then((request) => request(axios, basePath));
|
|
11959
11955
|
},
|
|
11960
11956
|
/**
|
|
11961
11957
|
*
|
|
11962
11958
|
* @param {number} configId
|
|
11959
|
+
* @param {LoggerPatchConfigRequest} body
|
|
11963
11960
|
* @param {*} [options] Override http request option.
|
|
11964
11961
|
* @throws {RequiredError}
|
|
11965
11962
|
*/
|
|
11966
|
-
|
|
11963
|
+
patchConfig(configId, body, options) {
|
|
11967
11964
|
return ConfigServiceApiFp(configuration)
|
|
11968
|
-
.
|
|
11965
|
+
.patchConfig(configId, body, options)
|
|
11969
11966
|
.then((request) => request(axios, basePath));
|
|
11970
11967
|
},
|
|
11971
11968
|
/**
|
|
11972
11969
|
*
|
|
11970
|
+
* @param {number} configId
|
|
11973
11971
|
* @param {*} [options] Override http request option.
|
|
11974
11972
|
* @throws {RequiredError}
|
|
11975
11973
|
*/
|
|
11976
|
-
|
|
11974
|
+
readConfig(configId, options) {
|
|
11977
11975
|
return ConfigServiceApiFp(configuration)
|
|
11978
|
-
.
|
|
11976
|
+
.readConfig(configId, options)
|
|
11979
11977
|
.then((request) => request(axios, basePath));
|
|
11980
11978
|
},
|
|
11981
11979
|
/**
|
|
11982
11980
|
*
|
|
11983
|
-
* @param {LoggerInsertConfigRequest} body
|
|
11984
11981
|
* @param {*} [options] Override http request option.
|
|
11985
11982
|
* @throws {RequiredError}
|
|
11986
11983
|
*/
|
|
11987
|
-
|
|
11984
|
+
readSystemObjects(options) {
|
|
11988
11985
|
return ConfigServiceApiFp(configuration)
|
|
11989
|
-
.
|
|
11986
|
+
.readSystemObjects(options)
|
|
11990
11987
|
.then((request) => request(axios, basePath));
|
|
11991
11988
|
},
|
|
11992
11989
|
/**
|
|
11993
11990
|
*
|
|
11994
|
-
* @param {number}
|
|
11995
|
-
* @param {
|
|
11991
|
+
* @param {number} [page]
|
|
11992
|
+
* @param {number} [size]
|
|
11993
|
+
* @param {string} [q]
|
|
11994
|
+
* @param {string} [sort]
|
|
11995
|
+
* @param {Array<string>} [fields]
|
|
11996
11996
|
* @param {*} [options] Override http request option.
|
|
11997
11997
|
* @throws {RequiredError}
|
|
11998
11998
|
*/
|
|
11999
|
-
|
|
11999
|
+
searchConfig(page, size, q, sort, fields, options) {
|
|
12000
12000
|
return ConfigServiceApiFp(configuration)
|
|
12001
|
-
.
|
|
12001
|
+
.searchConfig(page, size, q, sort, fields, options)
|
|
12002
12002
|
.then((request) => request(axios, basePath));
|
|
12003
12003
|
},
|
|
12004
12004
|
/**
|
|
@@ -12008,9 +12008,9 @@ const ConfigServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
12008
12008
|
* @param {*} [options] Override http request option.
|
|
12009
12009
|
* @throws {RequiredError}
|
|
12010
12010
|
*/
|
|
12011
|
-
|
|
12011
|
+
updateConfig(configId, body, options) {
|
|
12012
12012
|
return ConfigServiceApiFp(configuration)
|
|
12013
|
-
.
|
|
12013
|
+
.updateConfig(configId, body, options)
|
|
12014
12014
|
.then((request) => request(axios, basePath));
|
|
12015
12015
|
},
|
|
12016
12016
|
};
|
|
@@ -12024,90 +12024,90 @@ const ConfigServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
12024
12024
|
class ConfigServiceApi extends BaseAPI {
|
|
12025
12025
|
/**
|
|
12026
12026
|
*
|
|
12027
|
-
* @param {
|
|
12027
|
+
* @param {LoggerCreateConfigRequest} body
|
|
12028
12028
|
* @param {*} [options] Override http request option.
|
|
12029
12029
|
* @throws {RequiredError}
|
|
12030
12030
|
* @memberof ConfigServiceApi
|
|
12031
12031
|
*/
|
|
12032
|
-
|
|
12032
|
+
createConfig(body, options) {
|
|
12033
12033
|
return ConfigServiceApiFp(this.configuration)
|
|
12034
|
-
.
|
|
12034
|
+
.createConfig(body, options)
|
|
12035
12035
|
.then((request) => request(this.axios, this.basePath));
|
|
12036
12036
|
}
|
|
12037
12037
|
/**
|
|
12038
12038
|
*
|
|
12039
|
-
* @param {
|
|
12039
|
+
* @param {number} configId
|
|
12040
12040
|
* @param {*} [options] Override http request option.
|
|
12041
12041
|
* @throws {RequiredError}
|
|
12042
12042
|
* @memberof ConfigServiceApi
|
|
12043
12043
|
*/
|
|
12044
|
-
|
|
12044
|
+
deleteConfig(configId, options) {
|
|
12045
12045
|
return ConfigServiceApiFp(this.configuration)
|
|
12046
|
-
.
|
|
12046
|
+
.deleteConfig(configId, options)
|
|
12047
12047
|
.then((request) => request(this.axios, this.basePath));
|
|
12048
12048
|
}
|
|
12049
12049
|
/**
|
|
12050
12050
|
*
|
|
12051
|
-
* @param {
|
|
12052
|
-
* @param {number} [size]
|
|
12053
|
-
* @param {string} [q]
|
|
12054
|
-
* @param {string} [sort]
|
|
12055
|
-
* @param {Array<string>} [fields]
|
|
12051
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
12056
12052
|
* @param {*} [options] Override http request option.
|
|
12057
12053
|
* @throws {RequiredError}
|
|
12058
12054
|
* @memberof ConfigServiceApi
|
|
12059
12055
|
*/
|
|
12060
|
-
|
|
12056
|
+
deleteConfigBulk(body, options) {
|
|
12061
12057
|
return ConfigServiceApiFp(this.configuration)
|
|
12062
|
-
.
|
|
12058
|
+
.deleteConfigBulk(body, options)
|
|
12063
12059
|
.then((request) => request(this.axios, this.basePath));
|
|
12064
12060
|
}
|
|
12065
12061
|
/**
|
|
12066
12062
|
*
|
|
12067
12063
|
* @param {number} configId
|
|
12064
|
+
* @param {LoggerPatchConfigRequest} body
|
|
12068
12065
|
* @param {*} [options] Override http request option.
|
|
12069
12066
|
* @throws {RequiredError}
|
|
12070
12067
|
* @memberof ConfigServiceApi
|
|
12071
12068
|
*/
|
|
12072
|
-
|
|
12069
|
+
patchConfig(configId, body, options) {
|
|
12073
12070
|
return ConfigServiceApiFp(this.configuration)
|
|
12074
|
-
.
|
|
12071
|
+
.patchConfig(configId, body, options)
|
|
12075
12072
|
.then((request) => request(this.axios, this.basePath));
|
|
12076
12073
|
}
|
|
12077
12074
|
/**
|
|
12078
12075
|
*
|
|
12076
|
+
* @param {number} configId
|
|
12079
12077
|
* @param {*} [options] Override http request option.
|
|
12080
12078
|
* @throws {RequiredError}
|
|
12081
12079
|
* @memberof ConfigServiceApi
|
|
12082
12080
|
*/
|
|
12083
|
-
|
|
12081
|
+
readConfig(configId, options) {
|
|
12084
12082
|
return ConfigServiceApiFp(this.configuration)
|
|
12085
|
-
.
|
|
12083
|
+
.readConfig(configId, options)
|
|
12086
12084
|
.then((request) => request(this.axios, this.basePath));
|
|
12087
12085
|
}
|
|
12088
12086
|
/**
|
|
12089
12087
|
*
|
|
12090
|
-
* @param {LoggerInsertConfigRequest} body
|
|
12091
12088
|
* @param {*} [options] Override http request option.
|
|
12092
12089
|
* @throws {RequiredError}
|
|
12093
12090
|
* @memberof ConfigServiceApi
|
|
12094
12091
|
*/
|
|
12095
|
-
|
|
12092
|
+
readSystemObjects(options) {
|
|
12096
12093
|
return ConfigServiceApiFp(this.configuration)
|
|
12097
|
-
.
|
|
12094
|
+
.readSystemObjects(options)
|
|
12098
12095
|
.then((request) => request(this.axios, this.basePath));
|
|
12099
12096
|
}
|
|
12100
12097
|
/**
|
|
12101
12098
|
*
|
|
12102
|
-
* @param {number}
|
|
12103
|
-
* @param {
|
|
12099
|
+
* @param {number} [page]
|
|
12100
|
+
* @param {number} [size]
|
|
12101
|
+
* @param {string} [q]
|
|
12102
|
+
* @param {string} [sort]
|
|
12103
|
+
* @param {Array<string>} [fields]
|
|
12104
12104
|
* @param {*} [options] Override http request option.
|
|
12105
12105
|
* @throws {RequiredError}
|
|
12106
12106
|
* @memberof ConfigServiceApi
|
|
12107
12107
|
*/
|
|
12108
|
-
|
|
12108
|
+
searchConfig(page, size, q, sort, fields, options) {
|
|
12109
12109
|
return ConfigServiceApiFp(this.configuration)
|
|
12110
|
-
.
|
|
12110
|
+
.searchConfig(page, size, q, sort, fields, options)
|
|
12111
12111
|
.then((request) => request(this.axios, this.basePath));
|
|
12112
12112
|
}
|
|
12113
12113
|
/**
|
|
@@ -12118,9 +12118,9 @@ class ConfigServiceApi extends BaseAPI {
|
|
|
12118
12118
|
* @throws {RequiredError}
|
|
12119
12119
|
* @memberof ConfigServiceApi
|
|
12120
12120
|
*/
|
|
12121
|
-
|
|
12121
|
+
updateConfig(configId, body, options) {
|
|
12122
12122
|
return ConfigServiceApiFp(this.configuration)
|
|
12123
|
-
.
|
|
12123
|
+
.updateConfig(configId, body, options)
|
|
12124
12124
|
.then((request) => request(this.axios, this.basePath));
|
|
12125
12125
|
}
|
|
12126
12126
|
}
|
|
@@ -17398,19 +17398,25 @@ const LoggerServiceApiAxiosParamCreator = function (configuration) {
|
|
|
17398
17398
|
return {
|
|
17399
17399
|
/**
|
|
17400
17400
|
*
|
|
17401
|
-
* @param {number} configId
|
|
17401
|
+
* @param {number} configId REQUIRED filter
|
|
17402
17402
|
* @param {number} [page]
|
|
17403
17403
|
* @param {number} [size]
|
|
17404
17404
|
* @param {string} [q]
|
|
17405
17405
|
* @param {string} [sort]
|
|
17406
17406
|
* @param {Array<string>} [fields]
|
|
17407
|
+
* @param {number} [userId]
|
|
17408
|
+
* @param {string} [userName]
|
|
17409
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
17410
|
+
* @param {string} [userIp]
|
|
17411
|
+
* @param {string} [dateFrom]
|
|
17412
|
+
* @param {string} [dateTo]
|
|
17407
17413
|
* @param {*} [options] Override http request option.
|
|
17408
17414
|
* @throws {RequiredError}
|
|
17409
17415
|
*/
|
|
17410
|
-
|
|
17416
|
+
searchLogByConfigId: async (configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options = {}) => {
|
|
17411
17417
|
// verify required parameter 'configId' is not null or undefined
|
|
17412
17418
|
if (configId === null || configId === undefined) {
|
|
17413
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling
|
|
17419
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling searchLogByConfigId.');
|
|
17414
17420
|
}
|
|
17415
17421
|
const localVarPath = `/logger/config/{config_id}/logs`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
|
|
17416
17422
|
const localVarUrlObj = parse(localVarPath, true);
|
|
@@ -17447,6 +17453,24 @@ const LoggerServiceApiAxiosParamCreator = function (configuration) {
|
|
|
17447
17453
|
if (fields) {
|
|
17448
17454
|
localVarQueryParameter['fields'] = fields;
|
|
17449
17455
|
}
|
|
17456
|
+
if (userId !== undefined) {
|
|
17457
|
+
localVarQueryParameter['user.id'] = userId;
|
|
17458
|
+
}
|
|
17459
|
+
if (userName !== undefined) {
|
|
17460
|
+
localVarQueryParameter['user.name'] = userName;
|
|
17461
|
+
}
|
|
17462
|
+
if (action !== undefined) {
|
|
17463
|
+
localVarQueryParameter['action'] = action;
|
|
17464
|
+
}
|
|
17465
|
+
if (userIp !== undefined) {
|
|
17466
|
+
localVarQueryParameter['userIp'] = userIp;
|
|
17467
|
+
}
|
|
17468
|
+
if (dateFrom !== undefined) {
|
|
17469
|
+
localVarQueryParameter['dateFrom'] = dateFrom;
|
|
17470
|
+
}
|
|
17471
|
+
if (dateTo !== undefined) {
|
|
17472
|
+
localVarQueryParameter['dateTo'] = dateTo;
|
|
17473
|
+
}
|
|
17450
17474
|
localVarUrlObj.query = {
|
|
17451
17475
|
...localVarUrlObj.query,
|
|
17452
17476
|
...localVarQueryParameter,
|
|
@@ -17467,19 +17491,25 @@ const LoggerServiceApiAxiosParamCreator = function (configuration) {
|
|
|
17467
17491
|
},
|
|
17468
17492
|
/**
|
|
17469
17493
|
*
|
|
17470
|
-
* @param {number} userId
|
|
17494
|
+
* @param {number} userId REQUIRED filter
|
|
17471
17495
|
* @param {number} [page]
|
|
17472
17496
|
* @param {number} [size]
|
|
17473
17497
|
* @param {string} [q]
|
|
17474
17498
|
* @param {string} [sort]
|
|
17475
17499
|
* @param {Array<string>} [fields]
|
|
17500
|
+
* @param {number} [objectId]
|
|
17501
|
+
* @param {string} [objectName]
|
|
17502
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
17503
|
+
* @param {string} [userIp]
|
|
17504
|
+
* @param {string} [dateFrom]
|
|
17505
|
+
* @param {string} [dateTo]
|
|
17476
17506
|
* @param {*} [options] Override http request option.
|
|
17477
17507
|
* @throws {RequiredError}
|
|
17478
17508
|
*/
|
|
17479
|
-
|
|
17509
|
+
searchLogByUserId: async (userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options = {}) => {
|
|
17480
17510
|
// verify required parameter 'userId' is not null or undefined
|
|
17481
17511
|
if (userId === null || userId === undefined) {
|
|
17482
|
-
throw new RequiredError('userId', 'Required parameter userId was null or undefined when calling
|
|
17512
|
+
throw new RequiredError('userId', 'Required parameter userId was null or undefined when calling searchLogByUserId.');
|
|
17483
17513
|
}
|
|
17484
17514
|
const localVarPath = `/logger/user/{user_id}/logs`.replace(`{${'user_id'}}`, encodeURIComponent(String(userId)));
|
|
17485
17515
|
const localVarUrlObj = parse(localVarPath, true);
|
|
@@ -17516,6 +17546,24 @@ const LoggerServiceApiAxiosParamCreator = function (configuration) {
|
|
|
17516
17546
|
if (fields) {
|
|
17517
17547
|
localVarQueryParameter['fields'] = fields;
|
|
17518
17548
|
}
|
|
17549
|
+
if (objectId !== undefined) {
|
|
17550
|
+
localVarQueryParameter['object.id'] = objectId;
|
|
17551
|
+
}
|
|
17552
|
+
if (objectName !== undefined) {
|
|
17553
|
+
localVarQueryParameter['object.name'] = objectName;
|
|
17554
|
+
}
|
|
17555
|
+
if (action !== undefined) {
|
|
17556
|
+
localVarQueryParameter['action'] = action;
|
|
17557
|
+
}
|
|
17558
|
+
if (userIp !== undefined) {
|
|
17559
|
+
localVarQueryParameter['userIp'] = userIp;
|
|
17560
|
+
}
|
|
17561
|
+
if (dateFrom !== undefined) {
|
|
17562
|
+
localVarQueryParameter['dateFrom'] = dateFrom;
|
|
17563
|
+
}
|
|
17564
|
+
if (dateTo !== undefined) {
|
|
17565
|
+
localVarQueryParameter['dateTo'] = dateTo;
|
|
17566
|
+
}
|
|
17519
17567
|
localVarUrlObj.query = {
|
|
17520
17568
|
...localVarUrlObj.query,
|
|
17521
17569
|
...localVarQueryParameter,
|
|
@@ -17544,17 +17592,23 @@ const LoggerServiceApiFp = function (configuration) {
|
|
|
17544
17592
|
return {
|
|
17545
17593
|
/**
|
|
17546
17594
|
*
|
|
17547
|
-
* @param {number} configId
|
|
17595
|
+
* @param {number} configId REQUIRED filter
|
|
17548
17596
|
* @param {number} [page]
|
|
17549
17597
|
* @param {number} [size]
|
|
17550
17598
|
* @param {string} [q]
|
|
17551
17599
|
* @param {string} [sort]
|
|
17552
17600
|
* @param {Array<string>} [fields]
|
|
17601
|
+
* @param {number} [userId]
|
|
17602
|
+
* @param {string} [userName]
|
|
17603
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
17604
|
+
* @param {string} [userIp]
|
|
17605
|
+
* @param {string} [dateFrom]
|
|
17606
|
+
* @param {string} [dateTo]
|
|
17553
17607
|
* @param {*} [options] Override http request option.
|
|
17554
17608
|
* @throws {RequiredError}
|
|
17555
17609
|
*/
|
|
17556
|
-
async
|
|
17557
|
-
const localVarAxiosArgs = await LoggerServiceApiAxiosParamCreator(configuration).
|
|
17610
|
+
async searchLogByConfigId(configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options) {
|
|
17611
|
+
const localVarAxiosArgs = await LoggerServiceApiAxiosParamCreator(configuration).searchLogByConfigId(configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options);
|
|
17558
17612
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
17559
17613
|
const axiosRequestArgs = {
|
|
17560
17614
|
...localVarAxiosArgs.options,
|
|
@@ -17565,17 +17619,23 @@ const LoggerServiceApiFp = function (configuration) {
|
|
|
17565
17619
|
},
|
|
17566
17620
|
/**
|
|
17567
17621
|
*
|
|
17568
|
-
* @param {number} userId
|
|
17622
|
+
* @param {number} userId REQUIRED filter
|
|
17569
17623
|
* @param {number} [page]
|
|
17570
17624
|
* @param {number} [size]
|
|
17571
17625
|
* @param {string} [q]
|
|
17572
17626
|
* @param {string} [sort]
|
|
17573
17627
|
* @param {Array<string>} [fields]
|
|
17628
|
+
* @param {number} [objectId]
|
|
17629
|
+
* @param {string} [objectName]
|
|
17630
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
17631
|
+
* @param {string} [userIp]
|
|
17632
|
+
* @param {string} [dateFrom]
|
|
17633
|
+
* @param {string} [dateTo]
|
|
17574
17634
|
* @param {*} [options] Override http request option.
|
|
17575
17635
|
* @throws {RequiredError}
|
|
17576
17636
|
*/
|
|
17577
|
-
async
|
|
17578
|
-
const localVarAxiosArgs = await LoggerServiceApiAxiosParamCreator(configuration).
|
|
17637
|
+
async searchLogByUserId(userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options) {
|
|
17638
|
+
const localVarAxiosArgs = await LoggerServiceApiAxiosParamCreator(configuration).searchLogByUserId(userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options);
|
|
17579
17639
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
17580
17640
|
const axiosRequestArgs = {
|
|
17581
17641
|
...localVarAxiosArgs.options,
|
|
@@ -17594,34 +17654,46 @@ const LoggerServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
17594
17654
|
return {
|
|
17595
17655
|
/**
|
|
17596
17656
|
*
|
|
17597
|
-
* @param {number} configId
|
|
17657
|
+
* @param {number} configId REQUIRED filter
|
|
17598
17658
|
* @param {number} [page]
|
|
17599
17659
|
* @param {number} [size]
|
|
17600
17660
|
* @param {string} [q]
|
|
17601
17661
|
* @param {string} [sort]
|
|
17602
17662
|
* @param {Array<string>} [fields]
|
|
17663
|
+
* @param {number} [userId]
|
|
17664
|
+
* @param {string} [userName]
|
|
17665
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
17666
|
+
* @param {string} [userIp]
|
|
17667
|
+
* @param {string} [dateFrom]
|
|
17668
|
+
* @param {string} [dateTo]
|
|
17603
17669
|
* @param {*} [options] Override http request option.
|
|
17604
17670
|
* @throws {RequiredError}
|
|
17605
17671
|
*/
|
|
17606
|
-
|
|
17672
|
+
searchLogByConfigId(configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options) {
|
|
17607
17673
|
return LoggerServiceApiFp(configuration)
|
|
17608
|
-
.
|
|
17674
|
+
.searchLogByConfigId(configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options)
|
|
17609
17675
|
.then((request) => request(axios, basePath));
|
|
17610
17676
|
},
|
|
17611
17677
|
/**
|
|
17612
17678
|
*
|
|
17613
|
-
* @param {number} userId
|
|
17679
|
+
* @param {number} userId REQUIRED filter
|
|
17614
17680
|
* @param {number} [page]
|
|
17615
17681
|
* @param {number} [size]
|
|
17616
17682
|
* @param {string} [q]
|
|
17617
17683
|
* @param {string} [sort]
|
|
17618
17684
|
* @param {Array<string>} [fields]
|
|
17685
|
+
* @param {number} [objectId]
|
|
17686
|
+
* @param {string} [objectName]
|
|
17687
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
17688
|
+
* @param {string} [userIp]
|
|
17689
|
+
* @param {string} [dateFrom]
|
|
17690
|
+
* @param {string} [dateTo]
|
|
17619
17691
|
* @param {*} [options] Override http request option.
|
|
17620
17692
|
* @throws {RequiredError}
|
|
17621
17693
|
*/
|
|
17622
|
-
|
|
17694
|
+
searchLogByUserId(userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options) {
|
|
17623
17695
|
return LoggerServiceApiFp(configuration)
|
|
17624
|
-
.
|
|
17696
|
+
.searchLogByUserId(userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options)
|
|
17625
17697
|
.then((request) => request(axios, basePath));
|
|
17626
17698
|
},
|
|
17627
17699
|
};
|
|
@@ -17635,36 +17707,48 @@ const LoggerServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
17635
17707
|
class LoggerServiceApi extends BaseAPI {
|
|
17636
17708
|
/**
|
|
17637
17709
|
*
|
|
17638
|
-
* @param {number} configId
|
|
17710
|
+
* @param {number} configId REQUIRED filter
|
|
17639
17711
|
* @param {number} [page]
|
|
17640
17712
|
* @param {number} [size]
|
|
17641
17713
|
* @param {string} [q]
|
|
17642
17714
|
* @param {string} [sort]
|
|
17643
17715
|
* @param {Array<string>} [fields]
|
|
17716
|
+
* @param {number} [userId]
|
|
17717
|
+
* @param {string} [userName]
|
|
17718
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
17719
|
+
* @param {string} [userIp]
|
|
17720
|
+
* @param {string} [dateFrom]
|
|
17721
|
+
* @param {string} [dateTo]
|
|
17644
17722
|
* @param {*} [options] Override http request option.
|
|
17645
17723
|
* @throws {RequiredError}
|
|
17646
17724
|
* @memberof LoggerServiceApi
|
|
17647
17725
|
*/
|
|
17648
|
-
|
|
17726
|
+
searchLogByConfigId(configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options) {
|
|
17649
17727
|
return LoggerServiceApiFp(this.configuration)
|
|
17650
|
-
.
|
|
17728
|
+
.searchLogByConfigId(configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options)
|
|
17651
17729
|
.then((request) => request(this.axios, this.basePath));
|
|
17652
17730
|
}
|
|
17653
17731
|
/**
|
|
17654
17732
|
*
|
|
17655
|
-
* @param {number} userId
|
|
17733
|
+
* @param {number} userId REQUIRED filter
|
|
17656
17734
|
* @param {number} [page]
|
|
17657
17735
|
* @param {number} [size]
|
|
17658
17736
|
* @param {string} [q]
|
|
17659
17737
|
* @param {string} [sort]
|
|
17660
17738
|
* @param {Array<string>} [fields]
|
|
17739
|
+
* @param {number} [objectId]
|
|
17740
|
+
* @param {string} [objectName]
|
|
17741
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
17742
|
+
* @param {string} [userIp]
|
|
17743
|
+
* @param {string} [dateFrom]
|
|
17744
|
+
* @param {string} [dateTo]
|
|
17661
17745
|
* @param {*} [options] Override http request option.
|
|
17662
17746
|
* @throws {RequiredError}
|
|
17663
17747
|
* @memberof LoggerServiceApi
|
|
17664
17748
|
*/
|
|
17665
|
-
|
|
17749
|
+
searchLogByUserId(userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options) {
|
|
17666
17750
|
return LoggerServiceApiFp(this.configuration)
|
|
17667
|
-
.
|
|
17751
|
+
.searchLogByUserId(userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options)
|
|
17668
17752
|
.then((request) => request(this.axios, this.basePath));
|
|
17669
17753
|
}
|
|
17670
17754
|
}
|
|
@@ -37160,6 +37244,32 @@ var HistoryFileJobHistoryFileJobState;
|
|
|
37160
37244
|
* Do not edit the class manually.
|
|
37161
37245
|
*/
|
|
37162
37246
|
|
|
37247
|
+
// tslint:disable
|
|
37248
|
+
/**
|
|
37249
|
+
* Webitel engine API
|
|
37250
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
37251
|
+
*
|
|
37252
|
+
* The version of the OpenAPI document: 23.07.0
|
|
37253
|
+
* Contact: support@webitel.com
|
|
37254
|
+
*
|
|
37255
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
37256
|
+
* https://openapi-generator.tech
|
|
37257
|
+
* Do not edit the class manually.
|
|
37258
|
+
*/
|
|
37259
|
+
/**
|
|
37260
|
+
*
|
|
37261
|
+
* @export
|
|
37262
|
+
* @enum {string}
|
|
37263
|
+
*/
|
|
37264
|
+
var LoggerACTION;
|
|
37265
|
+
(function (LoggerACTION) {
|
|
37266
|
+
LoggerACTION["DEFAULTNOACTION"] = "DEFAULT_NO_ACTION";
|
|
37267
|
+
LoggerACTION["CREATE"] = "CREATE";
|
|
37268
|
+
LoggerACTION["UPDATE"] = "UPDATE";
|
|
37269
|
+
LoggerACTION["READ"] = "READ";
|
|
37270
|
+
LoggerACTION["DELETE"] = "DELETE";
|
|
37271
|
+
})(LoggerACTION || (LoggerACTION = {}));
|
|
37272
|
+
|
|
37163
37273
|
// tslint:disable
|
|
37164
37274
|
/**
|
|
37165
37275
|
* Webitel engine API
|
|
@@ -38828,6 +38938,52 @@ const getVersion = () => {
|
|
|
38828
38938
|
};
|
|
38829
38939
|
var version$1 = getVersion();
|
|
38830
38940
|
|
|
38941
|
+
var TypeErrors;
|
|
38942
|
+
(function (TypeErrors) {
|
|
38943
|
+
TypeErrors["RolePermission"] = "api.context.permissions.app_error";
|
|
38944
|
+
TypeErrors["LicencePermission"] = "api.context.permissions.license";
|
|
38945
|
+
TypeErrors["PauseNotAllow"] = "app.agent.set_pause.not_allow";
|
|
38946
|
+
})(TypeErrors || (TypeErrors = {}));
|
|
38947
|
+
class DeviceNotFoundError extends Error {
|
|
38948
|
+
constructor(msg) {
|
|
38949
|
+
super(msg);
|
|
38950
|
+
this.id = DeviceNotFoundError.id;
|
|
38951
|
+
}
|
|
38952
|
+
}
|
|
38953
|
+
DeviceNotFoundError.id = `device_not_found`;
|
|
38954
|
+
// tslint:disable-next-line: max-classes-per-file
|
|
38955
|
+
class DeviceNotAllowPermissionError extends Error {
|
|
38956
|
+
constructor(msg) {
|
|
38957
|
+
super(msg);
|
|
38958
|
+
this.id = DeviceNotAllowPermissionError.id;
|
|
38959
|
+
}
|
|
38960
|
+
}
|
|
38961
|
+
DeviceNotAllowPermissionError.id = `device_not_allow`;
|
|
38962
|
+
// tslint:disable-next-line: max-classes-per-file
|
|
38963
|
+
class RolePermissionError extends Error {
|
|
38964
|
+
constructor(msg) {
|
|
38965
|
+
super(msg);
|
|
38966
|
+
this.id = RolePermissionError.id;
|
|
38967
|
+
}
|
|
38968
|
+
}
|
|
38969
|
+
RolePermissionError.id = TypeErrors.RolePermission;
|
|
38970
|
+
// tslint:disable-next-line: max-classes-per-file
|
|
38971
|
+
class LicencePermissionError extends Error {
|
|
38972
|
+
constructor(msg) {
|
|
38973
|
+
super(msg);
|
|
38974
|
+
this.id = LicencePermissionError.id;
|
|
38975
|
+
}
|
|
38976
|
+
}
|
|
38977
|
+
LicencePermissionError.id = TypeErrors.LicencePermission;
|
|
38978
|
+
// tslint:disable-next-line: max-classes-per-file
|
|
38979
|
+
class PauseNotAllowedError extends Error {
|
|
38980
|
+
constructor(msg) {
|
|
38981
|
+
super(msg);
|
|
38982
|
+
this.id = PauseNotAllowedError.id;
|
|
38983
|
+
}
|
|
38984
|
+
}
|
|
38985
|
+
PauseNotAllowedError.id = TypeErrors.PauseNotAllow;
|
|
38986
|
+
|
|
38831
38987
|
var JobState;
|
|
38832
38988
|
(function (JobState) {
|
|
38833
38989
|
JobState["Distribute"] = "distribute";
|
|
@@ -39128,6 +39284,7 @@ class Agent {
|
|
|
39128
39284
|
this._channels = new Map();
|
|
39129
39285
|
this.initChannels(info.channels);
|
|
39130
39286
|
this._listOfflineMembers = null;
|
|
39287
|
+
this.waitingList = [];
|
|
39131
39288
|
this.lastStatusChange = Date.now() - this.info.status_duration * 1000;
|
|
39132
39289
|
}
|
|
39133
39290
|
get agentId() {
|
|
@@ -39167,6 +39324,30 @@ class Agent {
|
|
|
39167
39324
|
return Math.round((Date.now() - this.lastStatusChange) / 1000);
|
|
39168
39325
|
}
|
|
39169
39326
|
// todo need refactor
|
|
39327
|
+
setWaitingList(e) {
|
|
39328
|
+
if (e) {
|
|
39329
|
+
const list = e.list;
|
|
39330
|
+
this.waitingList.length = 0;
|
|
39331
|
+
this.waitingList = this.waitingList.concat(...list);
|
|
39332
|
+
}
|
|
39333
|
+
}
|
|
39334
|
+
deleteWaitingAttempt(e) {
|
|
39335
|
+
if (e) {
|
|
39336
|
+
const attemptId = e.attempt_id;
|
|
39337
|
+
for (let i = 0; i < this.waitingList.length; i++) {
|
|
39338
|
+
if (this.waitingList[i].attempt_id === attemptId) {
|
|
39339
|
+
this.waitingList.splice(i, 1);
|
|
39340
|
+
break;
|
|
39341
|
+
}
|
|
39342
|
+
}
|
|
39343
|
+
}
|
|
39344
|
+
}
|
|
39345
|
+
async interceptAttempt(id) {
|
|
39346
|
+
return this.client.request(`cc_intercept_attempt`, {
|
|
39347
|
+
attempt_id: id,
|
|
39348
|
+
agent_id: this.agentId,
|
|
39349
|
+
});
|
|
39350
|
+
}
|
|
39170
39351
|
onChannelEvent(e) {
|
|
39171
39352
|
let task;
|
|
39172
39353
|
switch (e.status) {
|
|
@@ -39304,7 +39485,15 @@ class Agent {
|
|
|
39304
39485
|
return this.client.agentSetWaiting(this.agentId, channel);
|
|
39305
39486
|
}
|
|
39306
39487
|
async pause(payload) {
|
|
39307
|
-
|
|
39488
|
+
try {
|
|
39489
|
+
return await this.client.agentSetPause(this.agentId, payload);
|
|
39490
|
+
}
|
|
39491
|
+
catch (e) {
|
|
39492
|
+
if (e.id === TypeErrors.PauseNotAllow) {
|
|
39493
|
+
return new PauseNotAllowedError(e.detail);
|
|
39494
|
+
}
|
|
39495
|
+
return e;
|
|
39496
|
+
}
|
|
39308
39497
|
}
|
|
39309
39498
|
async offline() {
|
|
39310
39499
|
return this.client.agentSetOffline(this.agentId);
|
|
@@ -40243,46 +40432,11 @@ function wrapChannelMember(m) {
|
|
|
40243
40432
|
return m;
|
|
40244
40433
|
}
|
|
40245
40434
|
|
|
40246
|
-
var TypeErrors;
|
|
40247
|
-
(function (TypeErrors) {
|
|
40248
|
-
TypeErrors["RolePermission"] = "api.context.permissions.app_error";
|
|
40249
|
-
TypeErrors["LicencePermission"] = "api.context.permissions.license";
|
|
40250
|
-
})(TypeErrors || (TypeErrors = {}));
|
|
40251
|
-
class DeviceNotFoundError extends Error {
|
|
40252
|
-
constructor(msg) {
|
|
40253
|
-
super(msg);
|
|
40254
|
-
this.id = DeviceNotFoundError.id;
|
|
40255
|
-
}
|
|
40256
|
-
}
|
|
40257
|
-
DeviceNotFoundError.id = `device_not_found`;
|
|
40258
|
-
// tslint:disable-next-line: max-classes-per-file
|
|
40259
|
-
class DeviceNotAllowPermissionError extends Error {
|
|
40260
|
-
constructor(msg) {
|
|
40261
|
-
super(msg);
|
|
40262
|
-
this.id = DeviceNotAllowPermissionError.id;
|
|
40263
|
-
}
|
|
40264
|
-
}
|
|
40265
|
-
DeviceNotAllowPermissionError.id = `device_not_allow`;
|
|
40266
|
-
// tslint:disable-next-line: max-classes-per-file
|
|
40267
|
-
class RolePermissionError extends Error {
|
|
40268
|
-
constructor(msg) {
|
|
40269
|
-
super(msg);
|
|
40270
|
-
this.id = RolePermissionError.id;
|
|
40271
|
-
}
|
|
40272
|
-
}
|
|
40273
|
-
RolePermissionError.id = TypeErrors.RolePermission;
|
|
40274
|
-
// tslint:disable-next-line: max-classes-per-file
|
|
40275
|
-
class LicencePermissionError extends Error {
|
|
40276
|
-
constructor(msg) {
|
|
40277
|
-
super(msg);
|
|
40278
|
-
this.id = LicencePermissionError.id;
|
|
40279
|
-
}
|
|
40280
|
-
}
|
|
40281
|
-
LicencePermissionError.id = TypeErrors.LicencePermission;
|
|
40282
|
-
|
|
40283
40435
|
var NotificationActions;
|
|
40284
40436
|
(function (NotificationActions) {
|
|
40285
40437
|
NotificationActions["HideMember"] = "hide_member";
|
|
40438
|
+
NotificationActions["HideAttempt"] = "hide_attempt";
|
|
40439
|
+
NotificationActions["WaitingList"] = "waiting_list";
|
|
40286
40440
|
})(NotificationActions || (NotificationActions = {}));
|
|
40287
40441
|
|
|
40288
40442
|
const SOCKET_URL_SUFFIX = 'websocket';
|
|
@@ -40887,6 +41041,16 @@ class Client extends EventEmitter {
|
|
|
40887
41041
|
}
|
|
40888
41042
|
}
|
|
40889
41043
|
break;
|
|
41044
|
+
case NotificationActions.WaitingList:
|
|
41045
|
+
if (this.agent) {
|
|
41046
|
+
this.agent.setWaitingList(e.body);
|
|
41047
|
+
}
|
|
41048
|
+
break;
|
|
41049
|
+
case NotificationActions.HideAttempt:
|
|
41050
|
+
if (this.agent) {
|
|
41051
|
+
this.agent.deleteWaitingAttempt(e.body);
|
|
41052
|
+
}
|
|
41053
|
+
break;
|
|
40890
41054
|
default:
|
|
40891
41055
|
this.log.error(`notification "${e.action}" not handled`);
|
|
40892
41056
|
}
|
|
@@ -41564,5 +41728,5 @@ class ExternalClient extends ee_3 {
|
|
|
41564
41728
|
|
|
41565
41729
|
// tslint:disable
|
|
41566
41730
|
|
|
41567
|
-
export { AgentPauseCauseServiceApiAxiosParamCreator, AgentPauseCauseServiceApiFp, AgentPauseCauseServiceApiFactory, AgentPauseCauseServiceApi, AgentServiceApiAxiosParamCreator, AgentServiceApiFp, AgentServiceApiFactory, AgentServiceApi, AgentSkillServiceApiAxiosParamCreator, AgentSkillServiceApiFp, AgentSkillServiceApiFactory, AgentSkillServiceApi, AgentTeamServiceApiAxiosParamCreator, AgentTeamServiceApiFp, AgentTeamServiceApiFactory, AgentTeamServiceApi, AuditFormServiceApiAxiosParamCreator, AuditFormServiceApiFp, AuditFormServiceApiFactory, AuditFormServiceApi, BackendProfileServiceApiAxiosParamCreator, BackendProfileServiceApiFp, BackendProfileServiceApiFactory, BackendProfileServiceApi, BucketServiceApiAxiosParamCreator, BucketServiceApiFp, BucketServiceApiFactory, BucketServiceApi, CalendarServiceApiAxiosParamCreator, CalendarServiceApiFp, CalendarServiceApiFactory, CalendarServiceApi, CallServiceApiAxiosParamCreator, CallServiceApiFp, CallServiceApiFactory, CallServiceApi, ChatHelperServiceApiAxiosParamCreator, ChatHelperServiceApiFp, ChatHelperServiceApiFactory, ChatHelperServiceApi, CognitiveProfileServiceApiAxiosParamCreator, CognitiveProfileServiceApiFp, CognitiveProfileServiceApiFactory, CognitiveProfileServiceApi, CommunicationTypeServiceApiAxiosParamCreator, CommunicationTypeServiceApiFp, CommunicationTypeServiceApiFactory, CommunicationTypeServiceApi, ConfigServiceApiAxiosParamCreator, ConfigServiceApiFp, ConfigServiceApiFactory, ConfigServiceApi, ContactsApiAxiosParamCreator, ContactsApiFp, ContactsApiFactory, ContactsApi, EmailProfileServiceApiAxiosParamCreator, EmailProfileServiceApiFp, EmailProfileServiceApiFactory, EmailProfileServiceApi, EmailsApiAxiosParamCreator, EmailsApiFp, EmailsApiFactory, EmailsApi, FileServiceApiAxiosParamCreator, FileServiceApiFp, FileServiceApiFactory, FileServiceApi, FileTranscriptServiceApiAxiosParamCreator, FileTranscriptServiceApiFp, FileTranscriptServiceApiFactory, FileTranscriptServiceApi, ImportTemplateServiceApiAxiosParamCreator, ImportTemplateServiceApiFp, ImportTemplateServiceApiFactory, ImportTemplateServiceApi, LabelsApiAxiosParamCreator, LabelsApiFp, LabelsApiFactory, LabelsApi, ListServiceApiAxiosParamCreator, ListServiceApiFp, ListServiceApiFactory, ListServiceApi, LoggerServiceApiAxiosParamCreator, LoggerServiceApiFp, LoggerServiceApiFactory, LoggerServiceApi, MediaFileServiceApiAxiosParamCreator, MediaFileServiceApiFp, MediaFileServiceApiFactory, MediaFileServiceApi, MemberServiceApiAxiosParamCreator, MemberServiceApiFp, MemberServiceApiFactory, MemberServiceApi, OutboundResourceGroupServiceApiAxiosParamCreator, OutboundResourceGroupServiceApiFp, OutboundResourceGroupServiceApiFactory, OutboundResourceGroupServiceApi, OutboundResourceServiceApiAxiosParamCreator, OutboundResourceServiceApiFp, OutboundResourceServiceApiFactory, OutboundResourceServiceApi, PresetQueryServiceApiAxiosParamCreator, PresetQueryServiceApiFp, PresetQueryServiceApiFactory, PresetQueryServiceApi, QueueBucketServiceApiAxiosParamCreator, QueueBucketServiceApiFp, QueueBucketServiceApiFactory, QueueBucketServiceApi, QueueHookServiceApiAxiosParamCreator, QueueHookServiceApiFp, QueueHookServiceApiFactory, QueueHookServiceApi, QueueResourcesServiceApiAxiosParamCreator, QueueResourcesServiceApiFp, QueueResourcesServiceApiFactory, QueueResourcesServiceApi, QueueServiceApiAxiosParamCreator, QueueServiceApiFp, QueueServiceApiFactory, QueueServiceApi, QueueSkillServiceApiAxiosParamCreator, QueueSkillServiceApiFp, QueueSkillServiceApiFactory, QueueSkillServiceApi, RegionServiceApiAxiosParamCreator, RegionServiceApiFp, RegionServiceApiFactory, RegionServiceApi, RoutingChatPlanServiceApiAxiosParamCreator, RoutingChatPlanServiceApiFp, RoutingChatPlanServiceApiFactory, RoutingChatPlanServiceApi, RoutingOutboundCallServiceApiAxiosParamCreator, RoutingOutboundCallServiceApiFp, RoutingOutboundCallServiceApiFactory, RoutingOutboundCallServiceApi, RoutingSchemaServiceApiAxiosParamCreator, RoutingSchemaServiceApiFp, RoutingSchemaServiceApiFactory, RoutingSchemaServiceApi, RoutingVariableServiceApiAxiosParamCreator, RoutingVariableServiceApiFp, RoutingVariableServiceApiFactory, RoutingVariableServiceApi, SkillServiceApiAxiosParamCreator, SkillServiceApiFp, SkillServiceApiFactory, SkillServiceApi, TriggerServiceApiAxiosParamCreator, TriggerServiceApiFp, TriggerServiceApiFactory, TriggerServiceApi, UserHelperServiceApiAxiosParamCreator, UserHelperServiceApiFp, UserHelperServiceApiFactory, UserHelperServiceApi, VariablesApiAxiosParamCreator, VariablesApiFp, VariablesApiFactory, VariablesApi, Configuration, EngineAuditQuestionType, EngineBoolFilter, EngineCommunicationChannels, EnginePresetQuerySection, EngineRoutingSchemaType, EngineTriggerJobState, EngineTriggerType, GoogleProtobufNullValue, HistoryFileJobHistoryFileJobAction, HistoryFileJobHistoryFileJobState, ProtobufNullValue, StorageImportSourceType, StorageProviderType, StorageServiceType, StorageUploadStatusCode, WebitelContactsAccessMode, JobState, Response, Client, CallReportingStatus, EavesdropState, EavesdropType, CallActions, CallDirection, Call, AgentStatus, ChannelState, ChannelType, Agent, DeclineCause, ChatActions, ConversationState, Conversation, TypeErrors, DeviceNotFoundError, DeviceNotAllowPermissionError, RolePermissionError, LicencePermissionError, SipClient, ExternalClient, SipPhone, Log };
|
|
41731
|
+
export { AgentPauseCauseServiceApiAxiosParamCreator, AgentPauseCauseServiceApiFp, AgentPauseCauseServiceApiFactory, AgentPauseCauseServiceApi, AgentServiceApiAxiosParamCreator, AgentServiceApiFp, AgentServiceApiFactory, AgentServiceApi, AgentSkillServiceApiAxiosParamCreator, AgentSkillServiceApiFp, AgentSkillServiceApiFactory, AgentSkillServiceApi, AgentTeamServiceApiAxiosParamCreator, AgentTeamServiceApiFp, AgentTeamServiceApiFactory, AgentTeamServiceApi, AuditFormServiceApiAxiosParamCreator, AuditFormServiceApiFp, AuditFormServiceApiFactory, AuditFormServiceApi, BackendProfileServiceApiAxiosParamCreator, BackendProfileServiceApiFp, BackendProfileServiceApiFactory, BackendProfileServiceApi, BucketServiceApiAxiosParamCreator, BucketServiceApiFp, BucketServiceApiFactory, BucketServiceApi, CalendarServiceApiAxiosParamCreator, CalendarServiceApiFp, CalendarServiceApiFactory, CalendarServiceApi, CallServiceApiAxiosParamCreator, CallServiceApiFp, CallServiceApiFactory, CallServiceApi, ChatHelperServiceApiAxiosParamCreator, ChatHelperServiceApiFp, ChatHelperServiceApiFactory, ChatHelperServiceApi, CognitiveProfileServiceApiAxiosParamCreator, CognitiveProfileServiceApiFp, CognitiveProfileServiceApiFactory, CognitiveProfileServiceApi, CommunicationTypeServiceApiAxiosParamCreator, CommunicationTypeServiceApiFp, CommunicationTypeServiceApiFactory, CommunicationTypeServiceApi, ConfigServiceApiAxiosParamCreator, ConfigServiceApiFp, ConfigServiceApiFactory, ConfigServiceApi, ContactsApiAxiosParamCreator, ContactsApiFp, ContactsApiFactory, ContactsApi, EmailProfileServiceApiAxiosParamCreator, EmailProfileServiceApiFp, EmailProfileServiceApiFactory, EmailProfileServiceApi, EmailsApiAxiosParamCreator, EmailsApiFp, EmailsApiFactory, EmailsApi, FileServiceApiAxiosParamCreator, FileServiceApiFp, FileServiceApiFactory, FileServiceApi, FileTranscriptServiceApiAxiosParamCreator, FileTranscriptServiceApiFp, FileTranscriptServiceApiFactory, FileTranscriptServiceApi, ImportTemplateServiceApiAxiosParamCreator, ImportTemplateServiceApiFp, ImportTemplateServiceApiFactory, ImportTemplateServiceApi, LabelsApiAxiosParamCreator, LabelsApiFp, LabelsApiFactory, LabelsApi, ListServiceApiAxiosParamCreator, ListServiceApiFp, ListServiceApiFactory, ListServiceApi, LoggerServiceApiAxiosParamCreator, LoggerServiceApiFp, LoggerServiceApiFactory, LoggerServiceApi, MediaFileServiceApiAxiosParamCreator, MediaFileServiceApiFp, MediaFileServiceApiFactory, MediaFileServiceApi, MemberServiceApiAxiosParamCreator, MemberServiceApiFp, MemberServiceApiFactory, MemberServiceApi, OutboundResourceGroupServiceApiAxiosParamCreator, OutboundResourceGroupServiceApiFp, OutboundResourceGroupServiceApiFactory, OutboundResourceGroupServiceApi, OutboundResourceServiceApiAxiosParamCreator, OutboundResourceServiceApiFp, OutboundResourceServiceApiFactory, OutboundResourceServiceApi, PresetQueryServiceApiAxiosParamCreator, PresetQueryServiceApiFp, PresetQueryServiceApiFactory, PresetQueryServiceApi, QueueBucketServiceApiAxiosParamCreator, QueueBucketServiceApiFp, QueueBucketServiceApiFactory, QueueBucketServiceApi, QueueHookServiceApiAxiosParamCreator, QueueHookServiceApiFp, QueueHookServiceApiFactory, QueueHookServiceApi, QueueResourcesServiceApiAxiosParamCreator, QueueResourcesServiceApiFp, QueueResourcesServiceApiFactory, QueueResourcesServiceApi, QueueServiceApiAxiosParamCreator, QueueServiceApiFp, QueueServiceApiFactory, QueueServiceApi, QueueSkillServiceApiAxiosParamCreator, QueueSkillServiceApiFp, QueueSkillServiceApiFactory, QueueSkillServiceApi, RegionServiceApiAxiosParamCreator, RegionServiceApiFp, RegionServiceApiFactory, RegionServiceApi, RoutingChatPlanServiceApiAxiosParamCreator, RoutingChatPlanServiceApiFp, RoutingChatPlanServiceApiFactory, RoutingChatPlanServiceApi, RoutingOutboundCallServiceApiAxiosParamCreator, RoutingOutboundCallServiceApiFp, RoutingOutboundCallServiceApiFactory, RoutingOutboundCallServiceApi, RoutingSchemaServiceApiAxiosParamCreator, RoutingSchemaServiceApiFp, RoutingSchemaServiceApiFactory, RoutingSchemaServiceApi, RoutingVariableServiceApiAxiosParamCreator, RoutingVariableServiceApiFp, RoutingVariableServiceApiFactory, RoutingVariableServiceApi, SkillServiceApiAxiosParamCreator, SkillServiceApiFp, SkillServiceApiFactory, SkillServiceApi, TriggerServiceApiAxiosParamCreator, TriggerServiceApiFp, TriggerServiceApiFactory, TriggerServiceApi, UserHelperServiceApiAxiosParamCreator, UserHelperServiceApiFp, UserHelperServiceApiFactory, UserHelperServiceApi, VariablesApiAxiosParamCreator, VariablesApiFp, VariablesApiFactory, VariablesApi, Configuration, EngineAuditQuestionType, EngineBoolFilter, EngineCommunicationChannels, EnginePresetQuerySection, EngineRoutingSchemaType, EngineTriggerJobState, EngineTriggerType, GoogleProtobufNullValue, HistoryFileJobHistoryFileJobAction, HistoryFileJobHistoryFileJobState, LoggerACTION, ProtobufNullValue, StorageImportSourceType, StorageProviderType, StorageServiceType, StorageUploadStatusCode, WebitelContactsAccessMode, JobState, Response, Client, CallReportingStatus, EavesdropState, EavesdropType, CallActions, CallDirection, Call, AgentStatus, ChannelState, ChannelType, Agent, DeclineCause, ChatActions, ConversationState, Conversation, TypeErrors, DeviceNotFoundError, DeviceNotAllowPermissionError, RolePermissionError, LicencePermissionError, PauseNotAllowedError, SipClient, ExternalClient, SipPhone, Log };
|
|
41568
41732
|
//# sourceMappingURL=index.esm.js.map
|