webitel-sdk 23.7.2 → 23.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/index.esm.js +338 -162
- package/bundles/index.esm.js.map +1 -1
- package/bundles/index.esm.min.js +1 -1
- package/bundles/index.esm.min.js.map +1 -1
- package/bundles/index.umd.js +336 -164
- package/bundles/index.umd.js.map +1 -1
- package/bundles/index.umd.min.js +1 -1
- package/bundles/index.umd.min.js.map +1 -1
- package/esm2015/api/config-service-api.js +203 -137
- package/esm2015/api/config-service-api.js.map +1 -1
- package/esm2015/api/index.js +5 -4
- package/esm2015/api/index.js.map +1 -1
- package/esm2015/api/logger-action.js +26 -0
- package/esm2015/api/logger-action.js.map +1 -0
- package/esm2015/api/logger-create-config-request.js +13 -0
- package/esm2015/api/logger-create-config-request.js.map +1 -0
- package/esm2015/api/logger-delete-config-bulk-request.js +13 -0
- package/esm2015/api/logger-delete-config-bulk-request.js.map +1 -0
- package/esm2015/api/logger-patch-config-request.js +13 -0
- package/esm2015/api/logger-patch-config-request.js.map +1 -0
- package/esm2015/api/logger-service-api.js +108 -24
- package/esm2015/api/logger-service-api.js.map +1 -1
- package/esm2015/api/logger-system-objects.js +13 -0
- package/esm2015/api/logger-system-objects.js.map +1 -0
- package/esm5/api/config-service-api.js +219 -140
- package/esm5/api/config-service-api.js.map +1 -1
- package/esm5/api/index.js +5 -4
- package/esm5/api/index.js.map +1 -1
- package/esm5/api/logger-action.js +26 -0
- package/esm5/api/logger-action.js.map +1 -0
- package/esm5/api/logger-create-config-request.js +13 -0
- package/esm5/api/logger-create-config-request.js.map +1 -0
- package/esm5/api/logger-delete-config-bulk-request.js +13 -0
- package/esm5/api/logger-delete-config-bulk-request.js.map +1 -0
- package/esm5/api/logger-patch-config-request.js +13 -0
- package/esm5/api/logger-patch-config-request.js.map +1 -0
- package/esm5/api/logger-service-api.js +108 -24
- package/esm5/api/logger-service-api.js.map +1 -1
- package/esm5/api/logger-system-objects.js +13 -0
- package/esm5/api/logger-system-objects.js.map +1 -0
- package/package.json +1 -1
- package/types/api/agent-in-queue-agents-in-queue.d.ts +6 -0
- package/types/api/agent-in-queue-agents-in-queue.d.ts.map +1 -1
- package/types/api/config-service-api.d.ts +89 -68
- package/types/api/config-service-api.d.ts.map +1 -1
- package/types/api/index.d.ts +5 -4
- package/types/api/index.d.ts.map +1 -1
- package/types/api/logger-action.d.ts +24 -0
- package/types/api/logger-action.d.ts.map +1 -0
- package/types/api/logger-config.d.ts +8 -2
- package/types/api/logger-config.d.ts.map +1 -1
- package/types/api/logger-create-config-request.d.ts +56 -0
- package/types/api/logger-create-config-request.d.ts.map +1 -0
- package/types/api/logger-delete-config-bulk-request.d.ts +25 -0
- package/types/api/logger-delete-config-bulk-request.d.ts.map +1 -0
- package/types/api/logger-insert-config-request.d.ts +7 -6
- package/types/api/logger-insert-config-request.d.ts.map +1 -1
- package/types/api/logger-log.d.ts +6 -0
- package/types/api/logger-log.d.ts.map +1 -1
- package/types/api/logger-patch-config-request.d.ts +62 -0
- package/types/api/logger-patch-config-request.d.ts.map +1 -0
- package/types/api/logger-patch-update-config-request.d.ts +5 -4
- package/types/api/logger-patch-update-config-request.d.ts.map +1 -1
- package/types/api/logger-service-api.d.ts +64 -16
- package/types/api/logger-service-api.d.ts.map +1 -1
- package/types/api/logger-system-objects.d.ts +26 -0
- package/types/api/logger-system-objects.d.ts.map +1 -0
- package/types/api/logger-update-config-request.d.ts +11 -4
- package/types/api/logger-update-config-request.d.ts.map +1 -1
package/bundles/index.umd.js
CHANGED
|
@@ -12667,32 +12667,27 @@
|
|
|
12667
12667
|
return {
|
|
12668
12668
|
/**
|
|
12669
12669
|
*
|
|
12670
|
-
* @param {
|
|
12671
|
-
* @param {LoggerDeleteConfigRequest} body
|
|
12670
|
+
* @param {LoggerCreateConfigRequest} body
|
|
12672
12671
|
* @param {*} [options] Override http request option.
|
|
12673
12672
|
* @throws {RequiredError}
|
|
12674
12673
|
*/
|
|
12675
|
-
|
|
12674
|
+
createConfig: function (body, options) {
|
|
12676
12675
|
if (options === void 0) { options = {}; }
|
|
12677
12676
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
12678
12677
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
|
|
12679
12678
|
return tslib.__generator(this, function (_b) {
|
|
12680
12679
|
switch (_b.label) {
|
|
12681
12680
|
case 0:
|
|
12682
|
-
// verify required parameter 'configId' is not null or undefined
|
|
12683
|
-
if (configId === null || configId === undefined) {
|
|
12684
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling deleteConfig.');
|
|
12685
|
-
}
|
|
12686
12681
|
// verify required parameter 'body' is not null or undefined
|
|
12687
12682
|
if (body === null || body === undefined) {
|
|
12688
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling
|
|
12683
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling createConfig.');
|
|
12689
12684
|
}
|
|
12690
|
-
localVarPath = "/logger/config
|
|
12685
|
+
localVarPath = "/logger/config";
|
|
12691
12686
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
12692
12687
|
if (configuration) {
|
|
12693
12688
|
baseOptions = configuration.baseOptions;
|
|
12694
12689
|
}
|
|
12695
|
-
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: '
|
|
12690
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'POST' }, baseOptions), options);
|
|
12696
12691
|
localVarHeaderParameter = {};
|
|
12697
12692
|
localVarQueryParameter = {};
|
|
12698
12693
|
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
@@ -12731,11 +12726,64 @@
|
|
|
12731
12726
|
},
|
|
12732
12727
|
/**
|
|
12733
12728
|
*
|
|
12734
|
-
* @param {
|
|
12729
|
+
* @param {number} configId
|
|
12730
|
+
* @param {*} [options] Override http request option.
|
|
12731
|
+
* @throws {RequiredError}
|
|
12732
|
+
*/
|
|
12733
|
+
deleteConfig: function (configId, options) {
|
|
12734
|
+
if (options === void 0) { options = {}; }
|
|
12735
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
12736
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
12737
|
+
return tslib.__generator(this, function (_b) {
|
|
12738
|
+
switch (_b.label) {
|
|
12739
|
+
case 0:
|
|
12740
|
+
// verify required parameter 'configId' is not null or undefined
|
|
12741
|
+
if (configId === null || configId === undefined) {
|
|
12742
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling deleteConfig.');
|
|
12743
|
+
}
|
|
12744
|
+
localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
|
|
12745
|
+
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
12746
|
+
if (configuration) {
|
|
12747
|
+
baseOptions = configuration.baseOptions;
|
|
12748
|
+
}
|
|
12749
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'DELETE' }, baseOptions), options);
|
|
12750
|
+
localVarHeaderParameter = {};
|
|
12751
|
+
localVarQueryParameter = {};
|
|
12752
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
12753
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
12754
|
+
return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
|
|
12755
|
+
case 1:
|
|
12756
|
+
_a = _b.sent();
|
|
12757
|
+
return [3 /*break*/, 4];
|
|
12758
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
12759
|
+
case 3:
|
|
12760
|
+
_a = _b.sent();
|
|
12761
|
+
_b.label = 4;
|
|
12762
|
+
case 4:
|
|
12763
|
+
localVarApiKeyValue = _a;
|
|
12764
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
12765
|
+
_b.label = 5;
|
|
12766
|
+
case 5:
|
|
12767
|
+
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
12768
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
12769
|
+
delete localVarUrlObj.search;
|
|
12770
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12771
|
+
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12772
|
+
return [2 /*return*/, {
|
|
12773
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
12774
|
+
options: localVarRequestOptions,
|
|
12775
|
+
}];
|
|
12776
|
+
}
|
|
12777
|
+
});
|
|
12778
|
+
});
|
|
12779
|
+
},
|
|
12780
|
+
/**
|
|
12781
|
+
*
|
|
12782
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
12735
12783
|
* @param {*} [options] Override http request option.
|
|
12736
12784
|
* @throws {RequiredError}
|
|
12737
12785
|
*/
|
|
12738
|
-
|
|
12786
|
+
deleteConfigBulk: function (body, options) {
|
|
12739
12787
|
if (options === void 0) { options = {}; }
|
|
12740
12788
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
12741
12789
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
|
|
@@ -12744,7 +12792,7 @@
|
|
|
12744
12792
|
case 0:
|
|
12745
12793
|
// verify required parameter 'body' is not null or undefined
|
|
12746
12794
|
if (body === null || body === undefined) {
|
|
12747
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling
|
|
12795
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling deleteConfigBulk.');
|
|
12748
12796
|
}
|
|
12749
12797
|
localVarPath = "/logger/config";
|
|
12750
12798
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
@@ -12790,27 +12838,32 @@
|
|
|
12790
12838
|
},
|
|
12791
12839
|
/**
|
|
12792
12840
|
*
|
|
12793
|
-
* @param {number}
|
|
12794
|
-
* @param {
|
|
12795
|
-
* @param {string} [q]
|
|
12796
|
-
* @param {string} [sort]
|
|
12797
|
-
* @param {Array<string>} [fields]
|
|
12841
|
+
* @param {number} configId
|
|
12842
|
+
* @param {LoggerPatchConfigRequest} body
|
|
12798
12843
|
* @param {*} [options] Override http request option.
|
|
12799
12844
|
* @throws {RequiredError}
|
|
12800
12845
|
*/
|
|
12801
|
-
|
|
12846
|
+
patchConfig: function (configId, body, options) {
|
|
12802
12847
|
if (options === void 0) { options = {}; }
|
|
12803
12848
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
12804
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
12849
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
|
|
12805
12850
|
return tslib.__generator(this, function (_b) {
|
|
12806
12851
|
switch (_b.label) {
|
|
12807
12852
|
case 0:
|
|
12808
|
-
|
|
12853
|
+
// verify required parameter 'configId' is not null or undefined
|
|
12854
|
+
if (configId === null || configId === undefined) {
|
|
12855
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling patchConfig.');
|
|
12856
|
+
}
|
|
12857
|
+
// verify required parameter 'body' is not null or undefined
|
|
12858
|
+
if (body === null || body === undefined) {
|
|
12859
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchConfig.');
|
|
12860
|
+
}
|
|
12861
|
+
localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
|
|
12809
12862
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
12810
12863
|
if (configuration) {
|
|
12811
12864
|
baseOptions = configuration.baseOptions;
|
|
12812
12865
|
}
|
|
12813
|
-
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: '
|
|
12866
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PATCH' }, baseOptions), options);
|
|
12814
12867
|
localVarHeaderParameter = {};
|
|
12815
12868
|
localVarQueryParameter = {};
|
|
12816
12869
|
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
@@ -12828,26 +12881,17 @@
|
|
|
12828
12881
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
12829
12882
|
_b.label = 5;
|
|
12830
12883
|
case 5:
|
|
12831
|
-
|
|
12832
|
-
localVarQueryParameter['page'] = page;
|
|
12833
|
-
}
|
|
12834
|
-
if (size !== undefined) {
|
|
12835
|
-
localVarQueryParameter['size'] = size;
|
|
12836
|
-
}
|
|
12837
|
-
if (q !== undefined) {
|
|
12838
|
-
localVarQueryParameter['q'] = q;
|
|
12839
|
-
}
|
|
12840
|
-
if (sort !== undefined) {
|
|
12841
|
-
localVarQueryParameter['sort'] = sort;
|
|
12842
|
-
}
|
|
12843
|
-
if (fields) {
|
|
12844
|
-
localVarQueryParameter['fields'] = fields;
|
|
12845
|
-
}
|
|
12884
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12846
12885
|
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
12847
12886
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
12848
12887
|
delete localVarUrlObj.search;
|
|
12849
12888
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12850
12889
|
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12890
|
+
needsSerialization = typeof body !== 'string' ||
|
|
12891
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
12892
|
+
localVarRequestOptions.data = needsSerialization
|
|
12893
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
12894
|
+
: body || '';
|
|
12851
12895
|
return [2 /*return*/, {
|
|
12852
12896
|
url: globalImportUrl.format(localVarUrlObj),
|
|
12853
12897
|
options: localVarRequestOptions,
|
|
@@ -12862,7 +12906,7 @@
|
|
|
12862
12906
|
* @param {*} [options] Override http request option.
|
|
12863
12907
|
* @throws {RequiredError}
|
|
12864
12908
|
*/
|
|
12865
|
-
|
|
12909
|
+
readConfig: function (configId, options) {
|
|
12866
12910
|
if (options === void 0) { options = {}; }
|
|
12867
12911
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
12868
12912
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
@@ -12871,7 +12915,7 @@
|
|
|
12871
12915
|
case 0:
|
|
12872
12916
|
// verify required parameter 'configId' is not null or undefined
|
|
12873
12917
|
if (configId === null || configId === undefined) {
|
|
12874
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling
|
|
12918
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling readConfig.');
|
|
12875
12919
|
}
|
|
12876
12920
|
localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
|
|
12877
12921
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
@@ -12911,27 +12955,22 @@
|
|
|
12911
12955
|
},
|
|
12912
12956
|
/**
|
|
12913
12957
|
*
|
|
12914
|
-
* @param {LoggerInsertConfigRequest} body
|
|
12915
12958
|
* @param {*} [options] Override http request option.
|
|
12916
12959
|
* @throws {RequiredError}
|
|
12917
12960
|
*/
|
|
12918
|
-
|
|
12961
|
+
readSystemObjects: function (options) {
|
|
12919
12962
|
if (options === void 0) { options = {}; }
|
|
12920
12963
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
12921
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions
|
|
12964
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
12922
12965
|
return tslib.__generator(this, function (_b) {
|
|
12923
12966
|
switch (_b.label) {
|
|
12924
12967
|
case 0:
|
|
12925
|
-
|
|
12926
|
-
if (body === null || body === undefined) {
|
|
12927
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling insertConfig.');
|
|
12928
|
-
}
|
|
12929
|
-
localVarPath = "/logger/config";
|
|
12968
|
+
localVarPath = "/logger/available_objects";
|
|
12930
12969
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
12931
12970
|
if (configuration) {
|
|
12932
12971
|
baseOptions = configuration.baseOptions;
|
|
12933
12972
|
}
|
|
12934
|
-
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: '
|
|
12973
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'GET' }, baseOptions), options);
|
|
12935
12974
|
localVarHeaderParameter = {};
|
|
12936
12975
|
localVarQueryParameter = {};
|
|
12937
12976
|
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
@@ -12949,17 +12988,11 @@
|
|
|
12949
12988
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
12950
12989
|
_b.label = 5;
|
|
12951
12990
|
case 5:
|
|
12952
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12953
12991
|
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
12954
12992
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
12955
12993
|
delete localVarUrlObj.search;
|
|
12956
12994
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12957
12995
|
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12958
|
-
needsSerialization = typeof body !== 'string' ||
|
|
12959
|
-
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
12960
|
-
localVarRequestOptions.data = needsSerialization
|
|
12961
|
-
? JSON.stringify(body !== undefined ? body : {})
|
|
12962
|
-
: body || '';
|
|
12963
12996
|
return [2 /*return*/, {
|
|
12964
12997
|
url: globalImportUrl.format(localVarUrlObj),
|
|
12965
12998
|
options: localVarRequestOptions,
|
|
@@ -12970,32 +13003,27 @@
|
|
|
12970
13003
|
},
|
|
12971
13004
|
/**
|
|
12972
13005
|
*
|
|
12973
|
-
* @param {number}
|
|
12974
|
-
* @param {
|
|
13006
|
+
* @param {number} [page]
|
|
13007
|
+
* @param {number} [size]
|
|
13008
|
+
* @param {string} [q]
|
|
13009
|
+
* @param {string} [sort]
|
|
13010
|
+
* @param {Array<string>} [fields]
|
|
12975
13011
|
* @param {*} [options] Override http request option.
|
|
12976
13012
|
* @throws {RequiredError}
|
|
12977
13013
|
*/
|
|
12978
|
-
|
|
13014
|
+
searchConfig: function (page, size, q, sort, fields, options) {
|
|
12979
13015
|
if (options === void 0) { options = {}; }
|
|
12980
13016
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
12981
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions
|
|
13017
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
12982
13018
|
return tslib.__generator(this, function (_b) {
|
|
12983
13019
|
switch (_b.label) {
|
|
12984
13020
|
case 0:
|
|
12985
|
-
|
|
12986
|
-
if (configId === null || configId === undefined) {
|
|
12987
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling patchUpdateConfig.');
|
|
12988
|
-
}
|
|
12989
|
-
// verify required parameter 'body' is not null or undefined
|
|
12990
|
-
if (body === null || body === undefined) {
|
|
12991
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchUpdateConfig.');
|
|
12992
|
-
}
|
|
12993
|
-
localVarPath = "/logger/config/{config_id}".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
|
|
13021
|
+
localVarPath = "/logger/config";
|
|
12994
13022
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
12995
13023
|
if (configuration) {
|
|
12996
13024
|
baseOptions = configuration.baseOptions;
|
|
12997
13025
|
}
|
|
12998
|
-
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: '
|
|
13026
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'GET' }, baseOptions), options);
|
|
12999
13027
|
localVarHeaderParameter = {};
|
|
13000
13028
|
localVarQueryParameter = {};
|
|
13001
13029
|
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
@@ -13013,17 +13041,26 @@
|
|
|
13013
13041
|
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
13014
13042
|
_b.label = 5;
|
|
13015
13043
|
case 5:
|
|
13016
|
-
|
|
13044
|
+
if (page !== undefined) {
|
|
13045
|
+
localVarQueryParameter['page'] = page;
|
|
13046
|
+
}
|
|
13047
|
+
if (size !== undefined) {
|
|
13048
|
+
localVarQueryParameter['size'] = size;
|
|
13049
|
+
}
|
|
13050
|
+
if (q !== undefined) {
|
|
13051
|
+
localVarQueryParameter['q'] = q;
|
|
13052
|
+
}
|
|
13053
|
+
if (sort !== undefined) {
|
|
13054
|
+
localVarQueryParameter['sort'] = sort;
|
|
13055
|
+
}
|
|
13056
|
+
if (fields) {
|
|
13057
|
+
localVarQueryParameter['fields'] = fields;
|
|
13058
|
+
}
|
|
13017
13059
|
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
13018
13060
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
13019
13061
|
delete localVarUrlObj.search;
|
|
13020
13062
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13021
13063
|
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13022
|
-
needsSerialization = typeof body !== 'string' ||
|
|
13023
|
-
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
13024
|
-
localVarRequestOptions.data = needsSerialization
|
|
13025
|
-
? JSON.stringify(body !== undefined ? body : {})
|
|
13026
|
-
: body || '';
|
|
13027
13064
|
return [2 /*return*/, {
|
|
13028
13065
|
url: globalImportUrl.format(localVarUrlObj),
|
|
13029
13066
|
options: localVarRequestOptions,
|
|
@@ -13104,19 +13141,42 @@
|
|
|
13104
13141
|
*/
|
|
13105
13142
|
var ConfigServiceApiFp = function (configuration) {
|
|
13106
13143
|
return {
|
|
13144
|
+
/**
|
|
13145
|
+
*
|
|
13146
|
+
* @param {LoggerCreateConfigRequest} body
|
|
13147
|
+
* @param {*} [options] Override http request option.
|
|
13148
|
+
* @throws {RequiredError}
|
|
13149
|
+
*/
|
|
13150
|
+
createConfig: function (body, options) {
|
|
13151
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
13152
|
+
var localVarAxiosArgs;
|
|
13153
|
+
return tslib.__generator(this, function (_a) {
|
|
13154
|
+
switch (_a.label) {
|
|
13155
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).createConfig(body, options)];
|
|
13156
|
+
case 1:
|
|
13157
|
+
localVarAxiosArgs = _a.sent();
|
|
13158
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
13159
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
13160
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
13161
|
+
var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
13162
|
+
return axios.request(axiosRequestArgs);
|
|
13163
|
+
}];
|
|
13164
|
+
}
|
|
13165
|
+
});
|
|
13166
|
+
});
|
|
13167
|
+
},
|
|
13107
13168
|
/**
|
|
13108
13169
|
*
|
|
13109
13170
|
* @param {number} configId
|
|
13110
|
-
* @param {LoggerDeleteConfigRequest} body
|
|
13111
13171
|
* @param {*} [options] Override http request option.
|
|
13112
13172
|
* @throws {RequiredError}
|
|
13113
13173
|
*/
|
|
13114
|
-
deleteConfig: function (configId,
|
|
13174
|
+
deleteConfig: function (configId, options) {
|
|
13115
13175
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
13116
13176
|
var localVarAxiosArgs;
|
|
13117
13177
|
return tslib.__generator(this, function (_a) {
|
|
13118
13178
|
switch (_a.label) {
|
|
13119
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).deleteConfig(configId,
|
|
13179
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).deleteConfig(configId, options)];
|
|
13120
13180
|
case 1:
|
|
13121
13181
|
localVarAxiosArgs = _a.sent();
|
|
13122
13182
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -13131,16 +13191,16 @@
|
|
|
13131
13191
|
},
|
|
13132
13192
|
/**
|
|
13133
13193
|
*
|
|
13134
|
-
* @param {
|
|
13194
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
13135
13195
|
* @param {*} [options] Override http request option.
|
|
13136
13196
|
* @throws {RequiredError}
|
|
13137
13197
|
*/
|
|
13138
|
-
|
|
13198
|
+
deleteConfigBulk: function (body, options) {
|
|
13139
13199
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
13140
13200
|
var localVarAxiosArgs;
|
|
13141
13201
|
return tslib.__generator(this, function (_a) {
|
|
13142
13202
|
switch (_a.label) {
|
|
13143
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).
|
|
13203
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).deleteConfigBulk(body, options)];
|
|
13144
13204
|
case 1:
|
|
13145
13205
|
localVarAxiosArgs = _a.sent();
|
|
13146
13206
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -13155,20 +13215,17 @@
|
|
|
13155
13215
|
},
|
|
13156
13216
|
/**
|
|
13157
13217
|
*
|
|
13158
|
-
* @param {number}
|
|
13159
|
-
* @param {
|
|
13160
|
-
* @param {string} [q]
|
|
13161
|
-
* @param {string} [sort]
|
|
13162
|
-
* @param {Array<string>} [fields]
|
|
13218
|
+
* @param {number} configId
|
|
13219
|
+
* @param {LoggerPatchConfigRequest} body
|
|
13163
13220
|
* @param {*} [options] Override http request option.
|
|
13164
13221
|
* @throws {RequiredError}
|
|
13165
13222
|
*/
|
|
13166
|
-
|
|
13223
|
+
patchConfig: function (configId, body, options) {
|
|
13167
13224
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
13168
13225
|
var localVarAxiosArgs;
|
|
13169
13226
|
return tslib.__generator(this, function (_a) {
|
|
13170
13227
|
switch (_a.label) {
|
|
13171
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).
|
|
13228
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).patchConfig(configId, body, options)];
|
|
13172
13229
|
case 1:
|
|
13173
13230
|
localVarAxiosArgs = _a.sent();
|
|
13174
13231
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -13187,12 +13244,12 @@
|
|
|
13187
13244
|
* @param {*} [options] Override http request option.
|
|
13188
13245
|
* @throws {RequiredError}
|
|
13189
13246
|
*/
|
|
13190
|
-
|
|
13247
|
+
readConfig: function (configId, options) {
|
|
13191
13248
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
13192
13249
|
var localVarAxiosArgs;
|
|
13193
13250
|
return tslib.__generator(this, function (_a) {
|
|
13194
13251
|
switch (_a.label) {
|
|
13195
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).
|
|
13252
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).readConfig(configId, options)];
|
|
13196
13253
|
case 1:
|
|
13197
13254
|
localVarAxiosArgs = _a.sent();
|
|
13198
13255
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -13207,16 +13264,15 @@
|
|
|
13207
13264
|
},
|
|
13208
13265
|
/**
|
|
13209
13266
|
*
|
|
13210
|
-
* @param {LoggerInsertConfigRequest} body
|
|
13211
13267
|
* @param {*} [options] Override http request option.
|
|
13212
13268
|
* @throws {RequiredError}
|
|
13213
13269
|
*/
|
|
13214
|
-
|
|
13270
|
+
readSystemObjects: function (options) {
|
|
13215
13271
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
13216
13272
|
var localVarAxiosArgs;
|
|
13217
13273
|
return tslib.__generator(this, function (_a) {
|
|
13218
13274
|
switch (_a.label) {
|
|
13219
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).
|
|
13275
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).readSystemObjects(options)];
|
|
13220
13276
|
case 1:
|
|
13221
13277
|
localVarAxiosArgs = _a.sent();
|
|
13222
13278
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -13231,17 +13287,20 @@
|
|
|
13231
13287
|
},
|
|
13232
13288
|
/**
|
|
13233
13289
|
*
|
|
13234
|
-
* @param {number}
|
|
13235
|
-
* @param {
|
|
13290
|
+
* @param {number} [page]
|
|
13291
|
+
* @param {number} [size]
|
|
13292
|
+
* @param {string} [q]
|
|
13293
|
+
* @param {string} [sort]
|
|
13294
|
+
* @param {Array<string>} [fields]
|
|
13236
13295
|
* @param {*} [options] Override http request option.
|
|
13237
13296
|
* @throws {RequiredError}
|
|
13238
13297
|
*/
|
|
13239
|
-
|
|
13298
|
+
searchConfig: function (page, size, q, sort, fields, options) {
|
|
13240
13299
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
13241
13300
|
var localVarAxiosArgs;
|
|
13242
13301
|
return tslib.__generator(this, function (_a) {
|
|
13243
13302
|
switch (_a.label) {
|
|
13244
|
-
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).
|
|
13303
|
+
case 0: return [4 /*yield*/, ConfigServiceApiAxiosParamCreator(configuration).searchConfig(page, size, q, sort, fields, options)];
|
|
13245
13304
|
case 1:
|
|
13246
13305
|
localVarAxiosArgs = _a.sent();
|
|
13247
13306
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -13287,42 +13346,49 @@
|
|
|
13287
13346
|
*/
|
|
13288
13347
|
var ConfigServiceApiFactory = function (configuration, basePath, axios) {
|
|
13289
13348
|
return {
|
|
13349
|
+
/**
|
|
13350
|
+
*
|
|
13351
|
+
* @param {LoggerCreateConfigRequest} body
|
|
13352
|
+
* @param {*} [options] Override http request option.
|
|
13353
|
+
* @throws {RequiredError}
|
|
13354
|
+
*/
|
|
13355
|
+
createConfig: function (body, options) {
|
|
13356
|
+
return ConfigServiceApiFp(configuration)
|
|
13357
|
+
.createConfig(body, options)
|
|
13358
|
+
.then(function (request) { return request(axios, basePath); });
|
|
13359
|
+
},
|
|
13290
13360
|
/**
|
|
13291
13361
|
*
|
|
13292
13362
|
* @param {number} configId
|
|
13293
|
-
* @param {LoggerDeleteConfigRequest} body
|
|
13294
13363
|
* @param {*} [options] Override http request option.
|
|
13295
13364
|
* @throws {RequiredError}
|
|
13296
13365
|
*/
|
|
13297
|
-
deleteConfig: function (configId,
|
|
13366
|
+
deleteConfig: function (configId, options) {
|
|
13298
13367
|
return ConfigServiceApiFp(configuration)
|
|
13299
|
-
.deleteConfig(configId,
|
|
13368
|
+
.deleteConfig(configId, options)
|
|
13300
13369
|
.then(function (request) { return request(axios, basePath); });
|
|
13301
13370
|
},
|
|
13302
13371
|
/**
|
|
13303
13372
|
*
|
|
13304
|
-
* @param {
|
|
13373
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
13305
13374
|
* @param {*} [options] Override http request option.
|
|
13306
13375
|
* @throws {RequiredError}
|
|
13307
13376
|
*/
|
|
13308
|
-
|
|
13377
|
+
deleteConfigBulk: function (body, options) {
|
|
13309
13378
|
return ConfigServiceApiFp(configuration)
|
|
13310
|
-
.
|
|
13379
|
+
.deleteConfigBulk(body, options)
|
|
13311
13380
|
.then(function (request) { return request(axios, basePath); });
|
|
13312
13381
|
},
|
|
13313
13382
|
/**
|
|
13314
13383
|
*
|
|
13315
|
-
* @param {number}
|
|
13316
|
-
* @param {
|
|
13317
|
-
* @param {string} [q]
|
|
13318
|
-
* @param {string} [sort]
|
|
13319
|
-
* @param {Array<string>} [fields]
|
|
13384
|
+
* @param {number} configId
|
|
13385
|
+
* @param {LoggerPatchConfigRequest} body
|
|
13320
13386
|
* @param {*} [options] Override http request option.
|
|
13321
13387
|
* @throws {RequiredError}
|
|
13322
13388
|
*/
|
|
13323
|
-
|
|
13389
|
+
patchConfig: function (configId, body, options) {
|
|
13324
13390
|
return ConfigServiceApiFp(configuration)
|
|
13325
|
-
.
|
|
13391
|
+
.patchConfig(configId, body, options)
|
|
13326
13392
|
.then(function (request) { return request(axios, basePath); });
|
|
13327
13393
|
},
|
|
13328
13394
|
/**
|
|
@@ -13331,32 +13397,34 @@
|
|
|
13331
13397
|
* @param {*} [options] Override http request option.
|
|
13332
13398
|
* @throws {RequiredError}
|
|
13333
13399
|
*/
|
|
13334
|
-
|
|
13400
|
+
readConfig: function (configId, options) {
|
|
13335
13401
|
return ConfigServiceApiFp(configuration)
|
|
13336
|
-
.
|
|
13402
|
+
.readConfig(configId, options)
|
|
13337
13403
|
.then(function (request) { return request(axios, basePath); });
|
|
13338
13404
|
},
|
|
13339
13405
|
/**
|
|
13340
13406
|
*
|
|
13341
|
-
* @param {LoggerInsertConfigRequest} body
|
|
13342
13407
|
* @param {*} [options] Override http request option.
|
|
13343
13408
|
* @throws {RequiredError}
|
|
13344
13409
|
*/
|
|
13345
|
-
|
|
13410
|
+
readSystemObjects: function (options) {
|
|
13346
13411
|
return ConfigServiceApiFp(configuration)
|
|
13347
|
-
.
|
|
13412
|
+
.readSystemObjects(options)
|
|
13348
13413
|
.then(function (request) { return request(axios, basePath); });
|
|
13349
13414
|
},
|
|
13350
13415
|
/**
|
|
13351
13416
|
*
|
|
13352
|
-
* @param {number}
|
|
13353
|
-
* @param {
|
|
13417
|
+
* @param {number} [page]
|
|
13418
|
+
* @param {number} [size]
|
|
13419
|
+
* @param {string} [q]
|
|
13420
|
+
* @param {string} [sort]
|
|
13421
|
+
* @param {Array<string>} [fields]
|
|
13354
13422
|
* @param {*} [options] Override http request option.
|
|
13355
13423
|
* @throws {RequiredError}
|
|
13356
13424
|
*/
|
|
13357
|
-
|
|
13425
|
+
searchConfig: function (page, size, q, sort, fields, options) {
|
|
13358
13426
|
return ConfigServiceApiFp(configuration)
|
|
13359
|
-
.
|
|
13427
|
+
.searchConfig(page, size, q, sort, fields, options)
|
|
13360
13428
|
.then(function (request) { return request(axios, basePath); });
|
|
13361
13429
|
},
|
|
13362
13430
|
/**
|
|
@@ -13384,48 +13452,57 @@
|
|
|
13384
13452
|
function ConfigServiceApi() {
|
|
13385
13453
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
13386
13454
|
}
|
|
13455
|
+
/**
|
|
13456
|
+
*
|
|
13457
|
+
* @param {LoggerCreateConfigRequest} body
|
|
13458
|
+
* @param {*} [options] Override http request option.
|
|
13459
|
+
* @throws {RequiredError}
|
|
13460
|
+
* @memberof ConfigServiceApi
|
|
13461
|
+
*/
|
|
13462
|
+
ConfigServiceApi.prototype.createConfig = function (body, options) {
|
|
13463
|
+
var _this = this;
|
|
13464
|
+
return ConfigServiceApiFp(this.configuration)
|
|
13465
|
+
.createConfig(body, options)
|
|
13466
|
+
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13467
|
+
};
|
|
13387
13468
|
/**
|
|
13388
13469
|
*
|
|
13389
13470
|
* @param {number} configId
|
|
13390
|
-
* @param {LoggerDeleteConfigRequest} body
|
|
13391
13471
|
* @param {*} [options] Override http request option.
|
|
13392
13472
|
* @throws {RequiredError}
|
|
13393
13473
|
* @memberof ConfigServiceApi
|
|
13394
13474
|
*/
|
|
13395
|
-
ConfigServiceApi.prototype.deleteConfig = function (configId,
|
|
13475
|
+
ConfigServiceApi.prototype.deleteConfig = function (configId, options) {
|
|
13396
13476
|
var _this = this;
|
|
13397
13477
|
return ConfigServiceApiFp(this.configuration)
|
|
13398
|
-
.deleteConfig(configId,
|
|
13478
|
+
.deleteConfig(configId, options)
|
|
13399
13479
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13400
13480
|
};
|
|
13401
13481
|
/**
|
|
13402
13482
|
*
|
|
13403
|
-
* @param {
|
|
13483
|
+
* @param {LoggerDeleteConfigBulkRequest} body
|
|
13404
13484
|
* @param {*} [options] Override http request option.
|
|
13405
13485
|
* @throws {RequiredError}
|
|
13406
13486
|
* @memberof ConfigServiceApi
|
|
13407
13487
|
*/
|
|
13408
|
-
ConfigServiceApi.prototype.
|
|
13488
|
+
ConfigServiceApi.prototype.deleteConfigBulk = function (body, options) {
|
|
13409
13489
|
var _this = this;
|
|
13410
13490
|
return ConfigServiceApiFp(this.configuration)
|
|
13411
|
-
.
|
|
13491
|
+
.deleteConfigBulk(body, options)
|
|
13412
13492
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13413
13493
|
};
|
|
13414
13494
|
/**
|
|
13415
13495
|
*
|
|
13416
|
-
* @param {number}
|
|
13417
|
-
* @param {
|
|
13418
|
-
* @param {string} [q]
|
|
13419
|
-
* @param {string} [sort]
|
|
13420
|
-
* @param {Array<string>} [fields]
|
|
13496
|
+
* @param {number} configId
|
|
13497
|
+
* @param {LoggerPatchConfigRequest} body
|
|
13421
13498
|
* @param {*} [options] Override http request option.
|
|
13422
13499
|
* @throws {RequiredError}
|
|
13423
13500
|
* @memberof ConfigServiceApi
|
|
13424
13501
|
*/
|
|
13425
|
-
ConfigServiceApi.prototype.
|
|
13502
|
+
ConfigServiceApi.prototype.patchConfig = function (configId, body, options) {
|
|
13426
13503
|
var _this = this;
|
|
13427
13504
|
return ConfigServiceApiFp(this.configuration)
|
|
13428
|
-
.
|
|
13505
|
+
.patchConfig(configId, body, options)
|
|
13429
13506
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13430
13507
|
};
|
|
13431
13508
|
/**
|
|
@@ -13435,37 +13512,39 @@
|
|
|
13435
13512
|
* @throws {RequiredError}
|
|
13436
13513
|
* @memberof ConfigServiceApi
|
|
13437
13514
|
*/
|
|
13438
|
-
ConfigServiceApi.prototype.
|
|
13515
|
+
ConfigServiceApi.prototype.readConfig = function (configId, options) {
|
|
13439
13516
|
var _this = this;
|
|
13440
13517
|
return ConfigServiceApiFp(this.configuration)
|
|
13441
|
-
.
|
|
13518
|
+
.readConfig(configId, options)
|
|
13442
13519
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13443
13520
|
};
|
|
13444
13521
|
/**
|
|
13445
13522
|
*
|
|
13446
|
-
* @param {LoggerInsertConfigRequest} body
|
|
13447
13523
|
* @param {*} [options] Override http request option.
|
|
13448
13524
|
* @throws {RequiredError}
|
|
13449
13525
|
* @memberof ConfigServiceApi
|
|
13450
13526
|
*/
|
|
13451
|
-
ConfigServiceApi.prototype.
|
|
13527
|
+
ConfigServiceApi.prototype.readSystemObjects = function (options) {
|
|
13452
13528
|
var _this = this;
|
|
13453
13529
|
return ConfigServiceApiFp(this.configuration)
|
|
13454
|
-
.
|
|
13530
|
+
.readSystemObjects(options)
|
|
13455
13531
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13456
13532
|
};
|
|
13457
13533
|
/**
|
|
13458
13534
|
*
|
|
13459
|
-
* @param {number}
|
|
13460
|
-
* @param {
|
|
13535
|
+
* @param {number} [page]
|
|
13536
|
+
* @param {number} [size]
|
|
13537
|
+
* @param {string} [q]
|
|
13538
|
+
* @param {string} [sort]
|
|
13539
|
+
* @param {Array<string>} [fields]
|
|
13461
13540
|
* @param {*} [options] Override http request option.
|
|
13462
13541
|
* @throws {RequiredError}
|
|
13463
13542
|
* @memberof ConfigServiceApi
|
|
13464
13543
|
*/
|
|
13465
|
-
ConfigServiceApi.prototype.
|
|
13544
|
+
ConfigServiceApi.prototype.searchConfig = function (page, size, q, sort, fields, options) {
|
|
13466
13545
|
var _this = this;
|
|
13467
13546
|
return ConfigServiceApiFp(this.configuration)
|
|
13468
|
-
.
|
|
13547
|
+
.searchConfig(page, size, q, sort, fields, options)
|
|
13469
13548
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13470
13549
|
};
|
|
13471
13550
|
/**
|
|
@@ -19405,16 +19484,22 @@
|
|
|
19405
19484
|
return {
|
|
19406
19485
|
/**
|
|
19407
19486
|
*
|
|
19408
|
-
* @param {number} configId
|
|
19487
|
+
* @param {number} configId REQUIRED filter
|
|
19409
19488
|
* @param {number} [page]
|
|
19410
19489
|
* @param {number} [size]
|
|
19411
19490
|
* @param {string} [q]
|
|
19412
19491
|
* @param {string} [sort]
|
|
19413
19492
|
* @param {Array<string>} [fields]
|
|
19493
|
+
* @param {number} [userId]
|
|
19494
|
+
* @param {string} [userName]
|
|
19495
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
19496
|
+
* @param {string} [userIp]
|
|
19497
|
+
* @param {string} [dateFrom]
|
|
19498
|
+
* @param {string} [dateTo]
|
|
19414
19499
|
* @param {*} [options] Override http request option.
|
|
19415
19500
|
* @throws {RequiredError}
|
|
19416
19501
|
*/
|
|
19417
|
-
|
|
19502
|
+
searchLogByConfigId: function (configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options) {
|
|
19418
19503
|
if (options === void 0) { options = {}; }
|
|
19419
19504
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
19420
19505
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
@@ -19423,7 +19508,7 @@
|
|
|
19423
19508
|
case 0:
|
|
19424
19509
|
// verify required parameter 'configId' is not null or undefined
|
|
19425
19510
|
if (configId === null || configId === undefined) {
|
|
19426
|
-
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling
|
|
19511
|
+
throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling searchLogByConfigId.');
|
|
19427
19512
|
}
|
|
19428
19513
|
localVarPath = "/logger/config/{config_id}/logs".replace("{" + 'config_id' + "}", encodeURIComponent(String(configId)));
|
|
19429
19514
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
@@ -19463,6 +19548,24 @@
|
|
|
19463
19548
|
if (fields) {
|
|
19464
19549
|
localVarQueryParameter['fields'] = fields;
|
|
19465
19550
|
}
|
|
19551
|
+
if (userId !== undefined) {
|
|
19552
|
+
localVarQueryParameter['user.id'] = userId;
|
|
19553
|
+
}
|
|
19554
|
+
if (userName !== undefined) {
|
|
19555
|
+
localVarQueryParameter['user.name'] = userName;
|
|
19556
|
+
}
|
|
19557
|
+
if (action !== undefined) {
|
|
19558
|
+
localVarQueryParameter['action'] = action;
|
|
19559
|
+
}
|
|
19560
|
+
if (userIp !== undefined) {
|
|
19561
|
+
localVarQueryParameter['userIp'] = userIp;
|
|
19562
|
+
}
|
|
19563
|
+
if (dateFrom !== undefined) {
|
|
19564
|
+
localVarQueryParameter['dateFrom'] = dateFrom;
|
|
19565
|
+
}
|
|
19566
|
+
if (dateTo !== undefined) {
|
|
19567
|
+
localVarQueryParameter['dateTo'] = dateTo;
|
|
19568
|
+
}
|
|
19466
19569
|
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
19467
19570
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
19468
19571
|
delete localVarUrlObj.search;
|
|
@@ -19478,16 +19581,22 @@
|
|
|
19478
19581
|
},
|
|
19479
19582
|
/**
|
|
19480
19583
|
*
|
|
19481
|
-
* @param {number} userId
|
|
19584
|
+
* @param {number} userId REQUIRED filter
|
|
19482
19585
|
* @param {number} [page]
|
|
19483
19586
|
* @param {number} [size]
|
|
19484
19587
|
* @param {string} [q]
|
|
19485
19588
|
* @param {string} [sort]
|
|
19486
19589
|
* @param {Array<string>} [fields]
|
|
19590
|
+
* @param {number} [objectId]
|
|
19591
|
+
* @param {string} [objectName]
|
|
19592
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
19593
|
+
* @param {string} [userIp]
|
|
19594
|
+
* @param {string} [dateFrom]
|
|
19595
|
+
* @param {string} [dateTo]
|
|
19487
19596
|
* @param {*} [options] Override http request option.
|
|
19488
19597
|
* @throws {RequiredError}
|
|
19489
19598
|
*/
|
|
19490
|
-
|
|
19599
|
+
searchLogByUserId: function (userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options) {
|
|
19491
19600
|
if (options === void 0) { options = {}; }
|
|
19492
19601
|
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
19493
19602
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
@@ -19496,7 +19605,7 @@
|
|
|
19496
19605
|
case 0:
|
|
19497
19606
|
// verify required parameter 'userId' is not null or undefined
|
|
19498
19607
|
if (userId === null || userId === undefined) {
|
|
19499
|
-
throw new RequiredError('userId', 'Required parameter userId was null or undefined when calling
|
|
19608
|
+
throw new RequiredError('userId', 'Required parameter userId was null or undefined when calling searchLogByUserId.');
|
|
19500
19609
|
}
|
|
19501
19610
|
localVarPath = "/logger/user/{user_id}/logs".replace("{" + 'user_id' + "}", encodeURIComponent(String(userId)));
|
|
19502
19611
|
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
@@ -19536,6 +19645,24 @@
|
|
|
19536
19645
|
if (fields) {
|
|
19537
19646
|
localVarQueryParameter['fields'] = fields;
|
|
19538
19647
|
}
|
|
19648
|
+
if (objectId !== undefined) {
|
|
19649
|
+
localVarQueryParameter['object.id'] = objectId;
|
|
19650
|
+
}
|
|
19651
|
+
if (objectName !== undefined) {
|
|
19652
|
+
localVarQueryParameter['object.name'] = objectName;
|
|
19653
|
+
}
|
|
19654
|
+
if (action !== undefined) {
|
|
19655
|
+
localVarQueryParameter['action'] = action;
|
|
19656
|
+
}
|
|
19657
|
+
if (userIp !== undefined) {
|
|
19658
|
+
localVarQueryParameter['userIp'] = userIp;
|
|
19659
|
+
}
|
|
19660
|
+
if (dateFrom !== undefined) {
|
|
19661
|
+
localVarQueryParameter['dateFrom'] = dateFrom;
|
|
19662
|
+
}
|
|
19663
|
+
if (dateTo !== undefined) {
|
|
19664
|
+
localVarQueryParameter['dateTo'] = dateTo;
|
|
19665
|
+
}
|
|
19539
19666
|
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
19540
19667
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
19541
19668
|
delete localVarUrlObj.search;
|
|
@@ -19559,21 +19686,27 @@
|
|
|
19559
19686
|
return {
|
|
19560
19687
|
/**
|
|
19561
19688
|
*
|
|
19562
|
-
* @param {number} configId
|
|
19689
|
+
* @param {number} configId REQUIRED filter
|
|
19563
19690
|
* @param {number} [page]
|
|
19564
19691
|
* @param {number} [size]
|
|
19565
19692
|
* @param {string} [q]
|
|
19566
19693
|
* @param {string} [sort]
|
|
19567
19694
|
* @param {Array<string>} [fields]
|
|
19695
|
+
* @param {number} [userId]
|
|
19696
|
+
* @param {string} [userName]
|
|
19697
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
19698
|
+
* @param {string} [userIp]
|
|
19699
|
+
* @param {string} [dateFrom]
|
|
19700
|
+
* @param {string} [dateTo]
|
|
19568
19701
|
* @param {*} [options] Override http request option.
|
|
19569
19702
|
* @throws {RequiredError}
|
|
19570
19703
|
*/
|
|
19571
|
-
|
|
19704
|
+
searchLogByConfigId: function (configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options) {
|
|
19572
19705
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
19573
19706
|
var localVarAxiosArgs;
|
|
19574
19707
|
return tslib.__generator(this, function (_a) {
|
|
19575
19708
|
switch (_a.label) {
|
|
19576
|
-
case 0: return [4 /*yield*/, LoggerServiceApiAxiosParamCreator(configuration).
|
|
19709
|
+
case 0: return [4 /*yield*/, LoggerServiceApiAxiosParamCreator(configuration).searchLogByConfigId(configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options)];
|
|
19577
19710
|
case 1:
|
|
19578
19711
|
localVarAxiosArgs = _a.sent();
|
|
19579
19712
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -19588,21 +19721,27 @@
|
|
|
19588
19721
|
},
|
|
19589
19722
|
/**
|
|
19590
19723
|
*
|
|
19591
|
-
* @param {number} userId
|
|
19724
|
+
* @param {number} userId REQUIRED filter
|
|
19592
19725
|
* @param {number} [page]
|
|
19593
19726
|
* @param {number} [size]
|
|
19594
19727
|
* @param {string} [q]
|
|
19595
19728
|
* @param {string} [sort]
|
|
19596
19729
|
* @param {Array<string>} [fields]
|
|
19730
|
+
* @param {number} [objectId]
|
|
19731
|
+
* @param {string} [objectName]
|
|
19732
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
19733
|
+
* @param {string} [userIp]
|
|
19734
|
+
* @param {string} [dateFrom]
|
|
19735
|
+
* @param {string} [dateTo]
|
|
19597
19736
|
* @param {*} [options] Override http request option.
|
|
19598
19737
|
* @throws {RequiredError}
|
|
19599
19738
|
*/
|
|
19600
|
-
|
|
19739
|
+
searchLogByUserId: function (userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options) {
|
|
19601
19740
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
19602
19741
|
var localVarAxiosArgs;
|
|
19603
19742
|
return tslib.__generator(this, function (_a) {
|
|
19604
19743
|
switch (_a.label) {
|
|
19605
|
-
case 0: return [4 /*yield*/, LoggerServiceApiAxiosParamCreator(configuration).
|
|
19744
|
+
case 0: return [4 /*yield*/, LoggerServiceApiAxiosParamCreator(configuration).searchLogByUserId(userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options)];
|
|
19606
19745
|
case 1:
|
|
19607
19746
|
localVarAxiosArgs = _a.sent();
|
|
19608
19747
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -19625,34 +19764,46 @@
|
|
|
19625
19764
|
return {
|
|
19626
19765
|
/**
|
|
19627
19766
|
*
|
|
19628
|
-
* @param {number} configId
|
|
19767
|
+
* @param {number} configId REQUIRED filter
|
|
19629
19768
|
* @param {number} [page]
|
|
19630
19769
|
* @param {number} [size]
|
|
19631
19770
|
* @param {string} [q]
|
|
19632
19771
|
* @param {string} [sort]
|
|
19633
19772
|
* @param {Array<string>} [fields]
|
|
19773
|
+
* @param {number} [userId]
|
|
19774
|
+
* @param {string} [userName]
|
|
19775
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
19776
|
+
* @param {string} [userIp]
|
|
19777
|
+
* @param {string} [dateFrom]
|
|
19778
|
+
* @param {string} [dateTo]
|
|
19634
19779
|
* @param {*} [options] Override http request option.
|
|
19635
19780
|
* @throws {RequiredError}
|
|
19636
19781
|
*/
|
|
19637
|
-
|
|
19782
|
+
searchLogByConfigId: function (configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options) {
|
|
19638
19783
|
return LoggerServiceApiFp(configuration)
|
|
19639
|
-
.
|
|
19784
|
+
.searchLogByConfigId(configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options)
|
|
19640
19785
|
.then(function (request) { return request(axios, basePath); });
|
|
19641
19786
|
},
|
|
19642
19787
|
/**
|
|
19643
19788
|
*
|
|
19644
|
-
* @param {number} userId
|
|
19789
|
+
* @param {number} userId REQUIRED filter
|
|
19645
19790
|
* @param {number} [page]
|
|
19646
19791
|
* @param {number} [size]
|
|
19647
19792
|
* @param {string} [q]
|
|
19648
19793
|
* @param {string} [sort]
|
|
19649
19794
|
* @param {Array<string>} [fields]
|
|
19795
|
+
* @param {number} [objectId]
|
|
19796
|
+
* @param {string} [objectName]
|
|
19797
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
19798
|
+
* @param {string} [userIp]
|
|
19799
|
+
* @param {string} [dateFrom]
|
|
19800
|
+
* @param {string} [dateTo]
|
|
19650
19801
|
* @param {*} [options] Override http request option.
|
|
19651
19802
|
* @throws {RequiredError}
|
|
19652
19803
|
*/
|
|
19653
|
-
|
|
19804
|
+
searchLogByUserId: function (userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options) {
|
|
19654
19805
|
return LoggerServiceApiFp(configuration)
|
|
19655
|
-
.
|
|
19806
|
+
.searchLogByUserId(userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options)
|
|
19656
19807
|
.then(function (request) { return request(axios, basePath); });
|
|
19657
19808
|
},
|
|
19658
19809
|
};
|
|
@@ -19670,38 +19821,50 @@
|
|
|
19670
19821
|
}
|
|
19671
19822
|
/**
|
|
19672
19823
|
*
|
|
19673
|
-
* @param {number} configId
|
|
19824
|
+
* @param {number} configId REQUIRED filter
|
|
19674
19825
|
* @param {number} [page]
|
|
19675
19826
|
* @param {number} [size]
|
|
19676
19827
|
* @param {string} [q]
|
|
19677
19828
|
* @param {string} [sort]
|
|
19678
19829
|
* @param {Array<string>} [fields]
|
|
19830
|
+
* @param {number} [userId]
|
|
19831
|
+
* @param {string} [userName]
|
|
19832
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
19833
|
+
* @param {string} [userIp]
|
|
19834
|
+
* @param {string} [dateFrom]
|
|
19835
|
+
* @param {string} [dateTo]
|
|
19679
19836
|
* @param {*} [options] Override http request option.
|
|
19680
19837
|
* @throws {RequiredError}
|
|
19681
19838
|
* @memberof LoggerServiceApi
|
|
19682
19839
|
*/
|
|
19683
|
-
LoggerServiceApi.prototype.
|
|
19840
|
+
LoggerServiceApi.prototype.searchLogByConfigId = function (configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options) {
|
|
19684
19841
|
var _this = this;
|
|
19685
19842
|
return LoggerServiceApiFp(this.configuration)
|
|
19686
|
-
.
|
|
19843
|
+
.searchLogByConfigId(configId, page, size, q, sort, fields, userId, userName, action, userIp, dateFrom, dateTo, options)
|
|
19687
19844
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19688
19845
|
};
|
|
19689
19846
|
/**
|
|
19690
19847
|
*
|
|
19691
|
-
* @param {number} userId
|
|
19848
|
+
* @param {number} userId REQUIRED filter
|
|
19692
19849
|
* @param {number} [page]
|
|
19693
19850
|
* @param {number} [size]
|
|
19694
19851
|
* @param {string} [q]
|
|
19695
19852
|
* @param {string} [sort]
|
|
19696
19853
|
* @param {Array<string>} [fields]
|
|
19854
|
+
* @param {number} [objectId]
|
|
19855
|
+
* @param {string} [objectName]
|
|
19856
|
+
* @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
|
|
19857
|
+
* @param {string} [userIp]
|
|
19858
|
+
* @param {string} [dateFrom]
|
|
19859
|
+
* @param {string} [dateTo]
|
|
19697
19860
|
* @param {*} [options] Override http request option.
|
|
19698
19861
|
* @throws {RequiredError}
|
|
19699
19862
|
* @memberof LoggerServiceApi
|
|
19700
19863
|
*/
|
|
19701
|
-
LoggerServiceApi.prototype.
|
|
19864
|
+
LoggerServiceApi.prototype.searchLogByUserId = function (userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options) {
|
|
19702
19865
|
var _this = this;
|
|
19703
19866
|
return LoggerServiceApiFp(this.configuration)
|
|
19704
|
-
.
|
|
19867
|
+
.searchLogByUserId(userId, page, size, q, sort, fields, objectId, objectName, action, userIp, dateFrom, dateTo, options)
|
|
19705
19868
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19706
19869
|
};
|
|
19707
19870
|
return LoggerServiceApi;
|
|
@@ -40899,6 +41062,15 @@
|
|
|
40899
41062
|
* Do not edit the class manually.
|
|
40900
41063
|
*/
|
|
40901
41064
|
|
|
41065
|
+
// tslint:disable
|
|
41066
|
+
(function (LoggerACTION) {
|
|
41067
|
+
LoggerACTION["DEFAULTNOACTION"] = "DEFAULT_NO_ACTION";
|
|
41068
|
+
LoggerACTION["CREATE"] = "CREATE";
|
|
41069
|
+
LoggerACTION["UPDATE"] = "UPDATE";
|
|
41070
|
+
LoggerACTION["READ"] = "READ";
|
|
41071
|
+
LoggerACTION["DELETE"] = "DELETE";
|
|
41072
|
+
})(exports.LoggerACTION || (exports.LoggerACTION = {}));
|
|
41073
|
+
|
|
40902
41074
|
// tslint:disable
|
|
40903
41075
|
/**
|
|
40904
41076
|
* Webitel engine API
|