@virusis/api-client 0.1.8 → 0.1.9
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/dist/container.d.ts +21 -0
- package/dist/generated/clients/health-service.d.ts +2 -0
- package/dist/generated/clients/health-service.js +2 -0
- package/dist/generated/clients/index.d.ts +7 -0
- package/dist/generated/clients/index.js +7 -0
- package/dist/generated/clients/metrics-service.d.ts +2 -0
- package/dist/generated/clients/metrics-service.js +2 -0
- package/dist/generated/clients/queue-monitor-service.d.ts +2 -0
- package/dist/generated/clients/queue-monitor-service.js +2 -0
- package/dist/generated/clients/scan-service.d.ts +2 -0
- package/dist/generated/clients/scan-service.js +2 -0
- package/dist/generated/clients/scan-threat-detections-service.d.ts +2 -0
- package/dist/generated/clients/scan-threat-detections-service.js +2 -0
- package/dist/generated/clients/scan-threat-results-service.d.ts +2 -0
- package/dist/generated/clients/scan-threat-results-service.js +2 -0
- package/dist/generated/clients/sessions-service.d.ts +2 -0
- package/dist/generated/clients/sessions-service.js +2 -0
- package/dist/generated/clients-rx/health-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/health-service-rx.js +12 -0
- package/dist/generated/clients-rx/index.d.ts +7 -0
- package/dist/generated/clients-rx/index.js +7 -0
- package/dist/generated/clients-rx/metrics-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/metrics-service-rx.js +12 -0
- package/dist/generated/clients-rx/queue-monitor-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/queue-monitor-service-rx.js +12 -0
- package/dist/generated/clients-rx/scan-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/scan-service-rx.js +12 -0
- package/dist/generated/clients-rx/scan-threat-detections-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/scan-threat-detections-service-rx.js +12 -0
- package/dist/generated/clients-rx/scan-threat-results-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/scan-threat-results-service-rx.js +12 -0
- package/dist/generated/clients-rx/sessions-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/sessions-service-rx.js +12 -0
- package/dist/generated/index.d.ts +489 -1
- package/dist/generated/index.js +1201 -6
- package/dist/generated/models/index.d.ts +19 -0
- package/dist/generated/models/index.js +19 -0
- package/dist/generated/models/scan-proxy-request.d.ts +4 -0
- package/dist/generated/models/scan-proxy-request.js +1 -0
- package/dist/generated/models/scan-threat-detection-for-table-dto-list-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-threat-detection-for-table-dto-list-i-data-result.js +1 -0
- package/dist/generated/models/scan-threat-detection-for-table-dto-list-result-filter-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-threat-detection-for-table-dto-list-result-filter-i-data-result.js +1 -0
- package/dist/generated/models/scan-threat-detection-for-table-dto-list-result-filter.d.ts +4 -0
- package/dist/generated/models/scan-threat-detection-for-table-dto-list-result-filter.js +1 -0
- package/dist/generated/models/scan-threat-detection-for-table-dto.d.ts +4 -0
- package/dist/generated/models/scan-threat-detection-for-table-dto.js +1 -0
- package/dist/generated/models/scan-threat-detection-for-table-filter-data-table-query.d.ts +4 -0
- package/dist/generated/models/scan-threat-detection-for-table-filter-data-table-query.js +1 -0
- package/dist/generated/models/scan-threat-detection-for-table-filter.d.ts +4 -0
- package/dist/generated/models/scan-threat-detection-for-table-filter.js +1 -0
- package/dist/generated/models/scan-threat-detection-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-threat-detection-i-data-result.js +1 -0
- package/dist/generated/models/scan-threat-detection-list-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-threat-detection-list-i-data-result.js +1 -0
- package/dist/generated/models/scan-threat-detection.d.ts +4 -0
- package/dist/generated/models/scan-threat-detection.js +1 -0
- package/dist/generated/models/scan-threat-result-for-table-dto-list-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-threat-result-for-table-dto-list-i-data-result.js +1 -0
- package/dist/generated/models/scan-threat-result-for-table-dto-list-result-filter-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-threat-result-for-table-dto-list-result-filter-i-data-result.js +1 -0
- package/dist/generated/models/scan-threat-result-for-table-dto-list-result-filter.d.ts +4 -0
- package/dist/generated/models/scan-threat-result-for-table-dto-list-result-filter.js +1 -0
- package/dist/generated/models/scan-threat-result-for-table-dto.d.ts +4 -0
- package/dist/generated/models/scan-threat-result-for-table-dto.js +1 -0
- package/dist/generated/models/scan-threat-result-for-table-filter-data-table-query.d.ts +4 -0
- package/dist/generated/models/scan-threat-result-for-table-filter-data-table-query.js +1 -0
- package/dist/generated/models/scan-threat-result-for-table-filter.d.ts +4 -0
- package/dist/generated/models/scan-threat-result-for-table-filter.js +1 -0
- package/dist/generated/models/scan-threat-result-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-threat-result-i-data-result.js +1 -0
- package/dist/generated/models/scan-threat-result-list-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-threat-result-list-i-data-result.js +1 -0
- package/dist/generated/models/scan-threat-result.d.ts +4 -0
- package/dist/generated/models/scan-threat-result.js +1 -0
- package/dist/rx.d.ts +42 -0
- package/package.json +1 -1
package/dist/generated/index.js
CHANGED
|
@@ -4999,6 +4999,170 @@ export class OperationClaimsClient extends BaseApiClient {
|
|
|
4999
4999
|
return Promise.resolve(null);
|
|
5000
5000
|
}
|
|
5001
5001
|
}
|
|
5002
|
+
export class QueueMonitorClient extends BaseApiClient {
|
|
5003
|
+
constructor(configuration, baseUrl, http) {
|
|
5004
|
+
super(configuration);
|
|
5005
|
+
this.jsonParseReviver = undefined;
|
|
5006
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
5007
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
5008
|
+
}
|
|
5009
|
+
/**
|
|
5010
|
+
* @return OK
|
|
5011
|
+
*/
|
|
5012
|
+
metrics(signal) {
|
|
5013
|
+
let url_ = this.baseUrl + "/api/QueueMonitor/metrics";
|
|
5014
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5015
|
+
let options_ = {
|
|
5016
|
+
method: "GET",
|
|
5017
|
+
signal,
|
|
5018
|
+
headers: {}
|
|
5019
|
+
};
|
|
5020
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5021
|
+
return this.processMetrics(_response);
|
|
5022
|
+
});
|
|
5023
|
+
}
|
|
5024
|
+
processMetrics(response) {
|
|
5025
|
+
const status = response.status;
|
|
5026
|
+
let _headers = {};
|
|
5027
|
+
if (response.headers && response.headers.forEach) {
|
|
5028
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5029
|
+
}
|
|
5030
|
+
;
|
|
5031
|
+
if (status === 200) {
|
|
5032
|
+
return response.text().then((_responseText) => {
|
|
5033
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5034
|
+
return result200;
|
|
5035
|
+
});
|
|
5036
|
+
}
|
|
5037
|
+
else if (status !== 200 && status !== 204) {
|
|
5038
|
+
return response.text().then((_responseText) => {
|
|
5039
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5040
|
+
});
|
|
5041
|
+
}
|
|
5042
|
+
return Promise.resolve(null);
|
|
5043
|
+
}
|
|
5044
|
+
/**
|
|
5045
|
+
* @return OK
|
|
5046
|
+
*/
|
|
5047
|
+
health(signal) {
|
|
5048
|
+
let url_ = this.baseUrl + "/api/QueueMonitor/health";
|
|
5049
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5050
|
+
let options_ = {
|
|
5051
|
+
method: "GET",
|
|
5052
|
+
signal,
|
|
5053
|
+
headers: {}
|
|
5054
|
+
};
|
|
5055
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5056
|
+
return this.processHealth(_response);
|
|
5057
|
+
});
|
|
5058
|
+
}
|
|
5059
|
+
processHealth(response) {
|
|
5060
|
+
const status = response.status;
|
|
5061
|
+
let _headers = {};
|
|
5062
|
+
if (response.headers && response.headers.forEach) {
|
|
5063
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5064
|
+
}
|
|
5065
|
+
;
|
|
5066
|
+
if (status === 200) {
|
|
5067
|
+
return response.text().then((_responseText) => {
|
|
5068
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5069
|
+
return result200;
|
|
5070
|
+
});
|
|
5071
|
+
}
|
|
5072
|
+
else if (status !== 200 && status !== 204) {
|
|
5073
|
+
return response.text().then((_responseText) => {
|
|
5074
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5075
|
+
});
|
|
5076
|
+
}
|
|
5077
|
+
return Promise.resolve(null);
|
|
5078
|
+
}
|
|
5079
|
+
}
|
|
5080
|
+
export class MetricsClient extends BaseApiClient {
|
|
5081
|
+
constructor(configuration, baseUrl, http) {
|
|
5082
|
+
super(configuration);
|
|
5083
|
+
this.jsonParseReviver = undefined;
|
|
5084
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
5085
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
5086
|
+
}
|
|
5087
|
+
/**
|
|
5088
|
+
* @return OK
|
|
5089
|
+
*/
|
|
5090
|
+
prometheus(signal) {
|
|
5091
|
+
let url_ = this.baseUrl + "/api/QueueMonitor/metrics/prometheus";
|
|
5092
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5093
|
+
let options_ = {
|
|
5094
|
+
method: "GET",
|
|
5095
|
+
signal,
|
|
5096
|
+
headers: {}
|
|
5097
|
+
};
|
|
5098
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5099
|
+
return this.processPrometheus(_response);
|
|
5100
|
+
});
|
|
5101
|
+
}
|
|
5102
|
+
processPrometheus(response) {
|
|
5103
|
+
const status = response.status;
|
|
5104
|
+
let _headers = {};
|
|
5105
|
+
if (response.headers && response.headers.forEach) {
|
|
5106
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5107
|
+
}
|
|
5108
|
+
;
|
|
5109
|
+
if (status === 200) {
|
|
5110
|
+
return response.text().then((_responseText) => {
|
|
5111
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5112
|
+
return result200;
|
|
5113
|
+
});
|
|
5114
|
+
}
|
|
5115
|
+
else if (status !== 200 && status !== 204) {
|
|
5116
|
+
return response.text().then((_responseText) => {
|
|
5117
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5118
|
+
});
|
|
5119
|
+
}
|
|
5120
|
+
return Promise.resolve(null);
|
|
5121
|
+
}
|
|
5122
|
+
}
|
|
5123
|
+
export class HealthClient extends BaseApiClient {
|
|
5124
|
+
constructor(configuration, baseUrl, http) {
|
|
5125
|
+
super(configuration);
|
|
5126
|
+
this.jsonParseReviver = undefined;
|
|
5127
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
5128
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
5129
|
+
}
|
|
5130
|
+
/**
|
|
5131
|
+
* @return OK
|
|
5132
|
+
*/
|
|
5133
|
+
live(signal) {
|
|
5134
|
+
let url_ = this.baseUrl + "/api/QueueMonitor/health/live";
|
|
5135
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5136
|
+
let options_ = {
|
|
5137
|
+
method: "GET",
|
|
5138
|
+
signal,
|
|
5139
|
+
headers: {}
|
|
5140
|
+
};
|
|
5141
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5142
|
+
return this.processLive(_response);
|
|
5143
|
+
});
|
|
5144
|
+
}
|
|
5145
|
+
processLive(response) {
|
|
5146
|
+
const status = response.status;
|
|
5147
|
+
let _headers = {};
|
|
5148
|
+
if (response.headers && response.headers.forEach) {
|
|
5149
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5150
|
+
}
|
|
5151
|
+
;
|
|
5152
|
+
if (status === 200) {
|
|
5153
|
+
return response.text().then((_responseText) => {
|
|
5154
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5155
|
+
return result200;
|
|
5156
|
+
});
|
|
5157
|
+
}
|
|
5158
|
+
else if (status !== 200 && status !== 204) {
|
|
5159
|
+
return response.text().then((_responseText) => {
|
|
5160
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5161
|
+
});
|
|
5162
|
+
}
|
|
5163
|
+
return Promise.resolve(null);
|
|
5164
|
+
}
|
|
5165
|
+
}
|
|
5002
5166
|
export class ScanAlgorithmsClient extends BaseApiClient {
|
|
5003
5167
|
constructor(configuration, baseUrl, http) {
|
|
5004
5168
|
super(configuration);
|
|
@@ -13934,6 +14098,139 @@ export class ScanEnginesClient extends BaseApiClient {
|
|
|
13934
14098
|
return Promise.resolve(null);
|
|
13935
14099
|
}
|
|
13936
14100
|
}
|
|
14101
|
+
export class ScanClient extends BaseApiClient {
|
|
14102
|
+
constructor(configuration, baseUrl, http) {
|
|
14103
|
+
super(configuration);
|
|
14104
|
+
this.jsonParseReviver = undefined;
|
|
14105
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
14106
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
14107
|
+
}
|
|
14108
|
+
/**
|
|
14109
|
+
* @return OK
|
|
14110
|
+
*/
|
|
14111
|
+
proxyGet(serviceName, path, signal) {
|
|
14112
|
+
let url_ = this.baseUrl + "/api/scan/proxy/{serviceName}/{path}";
|
|
14113
|
+
if (serviceName === undefined || serviceName === null)
|
|
14114
|
+
throw new globalThis.Error("The parameter 'serviceName' must be defined.");
|
|
14115
|
+
url_ = url_.replace("{serviceName}", encodeURIComponent("" + serviceName));
|
|
14116
|
+
if (path === undefined || path === null)
|
|
14117
|
+
throw new globalThis.Error("The parameter 'path' must be defined.");
|
|
14118
|
+
url_ = url_.replace("{path}", encodeURIComponent("" + path));
|
|
14119
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14120
|
+
let options_ = {
|
|
14121
|
+
method: "GET",
|
|
14122
|
+
signal,
|
|
14123
|
+
headers: {}
|
|
14124
|
+
};
|
|
14125
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14126
|
+
return this.processProxyGet(_response);
|
|
14127
|
+
});
|
|
14128
|
+
}
|
|
14129
|
+
processProxyGet(response) {
|
|
14130
|
+
const status = response.status;
|
|
14131
|
+
let _headers = {};
|
|
14132
|
+
if (response.headers && response.headers.forEach) {
|
|
14133
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14134
|
+
}
|
|
14135
|
+
;
|
|
14136
|
+
if (status === 200) {
|
|
14137
|
+
return response.text().then((_responseText) => {
|
|
14138
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14139
|
+
return result200;
|
|
14140
|
+
});
|
|
14141
|
+
}
|
|
14142
|
+
else if (status !== 200 && status !== 204) {
|
|
14143
|
+
return response.text().then((_responseText) => {
|
|
14144
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14145
|
+
});
|
|
14146
|
+
}
|
|
14147
|
+
return Promise.resolve(null);
|
|
14148
|
+
}
|
|
14149
|
+
/**
|
|
14150
|
+
* @return OK
|
|
14151
|
+
*/
|
|
14152
|
+
proxyPost(serviceName, path, signal) {
|
|
14153
|
+
let url_ = this.baseUrl + "/api/scan/proxy/{serviceName}/{path}";
|
|
14154
|
+
if (serviceName === undefined || serviceName === null)
|
|
14155
|
+
throw new globalThis.Error("The parameter 'serviceName' must be defined.");
|
|
14156
|
+
url_ = url_.replace("{serviceName}", encodeURIComponent("" + serviceName));
|
|
14157
|
+
if (path === undefined || path === null)
|
|
14158
|
+
throw new globalThis.Error("The parameter 'path' must be defined.");
|
|
14159
|
+
url_ = url_.replace("{path}", encodeURIComponent("" + path));
|
|
14160
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14161
|
+
let options_ = {
|
|
14162
|
+
method: "POST",
|
|
14163
|
+
signal,
|
|
14164
|
+
headers: {}
|
|
14165
|
+
};
|
|
14166
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14167
|
+
return this.processProxyPost(_response);
|
|
14168
|
+
});
|
|
14169
|
+
}
|
|
14170
|
+
processProxyPost(response) {
|
|
14171
|
+
const status = response.status;
|
|
14172
|
+
let _headers = {};
|
|
14173
|
+
if (response.headers && response.headers.forEach) {
|
|
14174
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14175
|
+
}
|
|
14176
|
+
;
|
|
14177
|
+
if (status === 200) {
|
|
14178
|
+
return response.text().then((_responseText) => {
|
|
14179
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14180
|
+
return result200;
|
|
14181
|
+
});
|
|
14182
|
+
}
|
|
14183
|
+
else if (status !== 200 && status !== 204) {
|
|
14184
|
+
return response.text().then((_responseText) => {
|
|
14185
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14186
|
+
});
|
|
14187
|
+
}
|
|
14188
|
+
return Promise.resolve(null);
|
|
14189
|
+
}
|
|
14190
|
+
/**
|
|
14191
|
+
* @param body (optional)
|
|
14192
|
+
* @return OK
|
|
14193
|
+
*/
|
|
14194
|
+
execute(taskName, body, signal) {
|
|
14195
|
+
let url_ = this.baseUrl + "/api/scan/execute/{taskName}";
|
|
14196
|
+
if (taskName === undefined || taskName === null)
|
|
14197
|
+
throw new globalThis.Error("The parameter 'taskName' must be defined.");
|
|
14198
|
+
url_ = url_.replace("{taskName}", encodeURIComponent("" + taskName));
|
|
14199
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14200
|
+
const content_ = JSON.stringify(body);
|
|
14201
|
+
let options_ = {
|
|
14202
|
+
body: content_,
|
|
14203
|
+
method: "POST",
|
|
14204
|
+
signal,
|
|
14205
|
+
headers: {
|
|
14206
|
+
"Content-Type": "application/json",
|
|
14207
|
+
}
|
|
14208
|
+
};
|
|
14209
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14210
|
+
return this.processExecute(_response);
|
|
14211
|
+
});
|
|
14212
|
+
}
|
|
14213
|
+
processExecute(response) {
|
|
14214
|
+
const status = response.status;
|
|
14215
|
+
let _headers = {};
|
|
14216
|
+
if (response.headers && response.headers.forEach) {
|
|
14217
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14218
|
+
}
|
|
14219
|
+
;
|
|
14220
|
+
if (status === 200) {
|
|
14221
|
+
return response.text().then((_responseText) => {
|
|
14222
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14223
|
+
return result200;
|
|
14224
|
+
});
|
|
14225
|
+
}
|
|
14226
|
+
else if (status !== 200 && status !== 204) {
|
|
14227
|
+
return response.text().then((_responseText) => {
|
|
14228
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14229
|
+
});
|
|
14230
|
+
}
|
|
14231
|
+
return Promise.resolve(null);
|
|
14232
|
+
}
|
|
14233
|
+
}
|
|
13937
14234
|
export class ScansClient extends BaseApiClient {
|
|
13938
14235
|
constructor(configuration, baseUrl, http) {
|
|
13939
14236
|
super(configuration);
|
|
@@ -15455,7 +15752,7 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15455
15752
|
return Promise.resolve(null);
|
|
15456
15753
|
}
|
|
15457
15754
|
}
|
|
15458
|
-
export class
|
|
15755
|
+
export class ScanThreatDetectionsClient extends BaseApiClient {
|
|
15459
15756
|
constructor(configuration, baseUrl, http) {
|
|
15460
15757
|
super(configuration);
|
|
15461
15758
|
this.jsonParseReviver = undefined;
|
|
@@ -15467,7 +15764,7 @@ export class ScanTypesClient extends BaseApiClient {
|
|
|
15467
15764
|
* @return OK
|
|
15468
15765
|
*/
|
|
15469
15766
|
add(body, signal) {
|
|
15470
|
-
let url_ = this.baseUrl + "/api/
|
|
15767
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/Add";
|
|
15471
15768
|
url_ = url_.replace(/[?&]$/, "");
|
|
15472
15769
|
const content_ = JSON.stringify(body);
|
|
15473
15770
|
let options_ = {
|
|
@@ -15509,7 +15806,7 @@ export class ScanTypesClient extends BaseApiClient {
|
|
|
15509
15806
|
* @return OK
|
|
15510
15807
|
*/
|
|
15511
15808
|
addMultiple(body, signal) {
|
|
15512
|
-
let url_ = this.baseUrl + "/api/
|
|
15809
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/AddMultiple";
|
|
15513
15810
|
url_ = url_.replace(/[?&]$/, "");
|
|
15514
15811
|
const content_ = JSON.stringify(body);
|
|
15515
15812
|
let options_ = {
|
|
@@ -15551,7 +15848,7 @@ export class ScanTypesClient extends BaseApiClient {
|
|
|
15551
15848
|
* @return OK
|
|
15552
15849
|
*/
|
|
15553
15850
|
update(body, signal) {
|
|
15554
|
-
let url_ = this.baseUrl + "/api/
|
|
15851
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/Update";
|
|
15555
15852
|
url_ = url_.replace(/[?&]$/, "");
|
|
15556
15853
|
const content_ = JSON.stringify(body);
|
|
15557
15854
|
let options_ = {
|
|
@@ -15593,7 +15890,7 @@ export class ScanTypesClient extends BaseApiClient {
|
|
|
15593
15890
|
* @return OK
|
|
15594
15891
|
*/
|
|
15595
15892
|
delete(body, signal) {
|
|
15596
|
-
let url_ = this.baseUrl + "/api/
|
|
15893
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/Delete";
|
|
15597
15894
|
url_ = url_.replace(/[?&]$/, "");
|
|
15598
15895
|
const content_ = JSON.stringify(body);
|
|
15599
15896
|
let options_ = {
|
|
@@ -15635,7 +15932,827 @@ export class ScanTypesClient extends BaseApiClient {
|
|
|
15635
15932
|
* @return OK
|
|
15636
15933
|
*/
|
|
15637
15934
|
deleteMultiple(body, signal) {
|
|
15638
|
-
let url_ = this.baseUrl + "/api/
|
|
15935
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/DeleteMultiple";
|
|
15936
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15937
|
+
const content_ = JSON.stringify(body);
|
|
15938
|
+
let options_ = {
|
|
15939
|
+
body: content_,
|
|
15940
|
+
method: "POST",
|
|
15941
|
+
signal,
|
|
15942
|
+
headers: {
|
|
15943
|
+
"Content-Type": "application/json",
|
|
15944
|
+
"Accept": "application/json"
|
|
15945
|
+
}
|
|
15946
|
+
};
|
|
15947
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15948
|
+
return this.processDeleteMultiple(_response);
|
|
15949
|
+
});
|
|
15950
|
+
}
|
|
15951
|
+
processDeleteMultiple(response) {
|
|
15952
|
+
const status = response.status;
|
|
15953
|
+
let _headers = {};
|
|
15954
|
+
if (response.headers && response.headers.forEach) {
|
|
15955
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15956
|
+
}
|
|
15957
|
+
;
|
|
15958
|
+
if (status === 200) {
|
|
15959
|
+
return response.text().then((_responseText) => {
|
|
15960
|
+
let result200 = null;
|
|
15961
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15962
|
+
return result200;
|
|
15963
|
+
});
|
|
15964
|
+
}
|
|
15965
|
+
else if (status !== 200 && status !== 204) {
|
|
15966
|
+
return response.text().then((_responseText) => {
|
|
15967
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15968
|
+
});
|
|
15969
|
+
}
|
|
15970
|
+
return Promise.resolve(null);
|
|
15971
|
+
}
|
|
15972
|
+
/**
|
|
15973
|
+
* @param id (optional)
|
|
15974
|
+
* @return OK
|
|
15975
|
+
*/
|
|
15976
|
+
getById(id, signal) {
|
|
15977
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/GetById?";
|
|
15978
|
+
if (id === null)
|
|
15979
|
+
throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
15980
|
+
else if (id !== undefined)
|
|
15981
|
+
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
15982
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15983
|
+
let options_ = {
|
|
15984
|
+
method: "GET",
|
|
15985
|
+
signal,
|
|
15986
|
+
headers: {
|
|
15987
|
+
"Accept": "application/json"
|
|
15988
|
+
}
|
|
15989
|
+
};
|
|
15990
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15991
|
+
return this.processGetById(_response);
|
|
15992
|
+
});
|
|
15993
|
+
}
|
|
15994
|
+
processGetById(response) {
|
|
15995
|
+
const status = response.status;
|
|
15996
|
+
let _headers = {};
|
|
15997
|
+
if (response.headers && response.headers.forEach) {
|
|
15998
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15999
|
+
}
|
|
16000
|
+
;
|
|
16001
|
+
if (status === 200) {
|
|
16002
|
+
return response.text().then((_responseText) => {
|
|
16003
|
+
let result200 = null;
|
|
16004
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16005
|
+
return result200;
|
|
16006
|
+
});
|
|
16007
|
+
}
|
|
16008
|
+
else if (status !== 200 && status !== 204) {
|
|
16009
|
+
return response.text().then((_responseText) => {
|
|
16010
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16011
|
+
});
|
|
16012
|
+
}
|
|
16013
|
+
return Promise.resolve(null);
|
|
16014
|
+
}
|
|
16015
|
+
/**
|
|
16016
|
+
* @return OK
|
|
16017
|
+
*/
|
|
16018
|
+
getAll(signal) {
|
|
16019
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/GetAll";
|
|
16020
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16021
|
+
let options_ = {
|
|
16022
|
+
method: "GET",
|
|
16023
|
+
signal,
|
|
16024
|
+
headers: {
|
|
16025
|
+
"Accept": "application/json"
|
|
16026
|
+
}
|
|
16027
|
+
};
|
|
16028
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16029
|
+
return this.processGetAll(_response);
|
|
16030
|
+
});
|
|
16031
|
+
}
|
|
16032
|
+
processGetAll(response) {
|
|
16033
|
+
const status = response.status;
|
|
16034
|
+
let _headers = {};
|
|
16035
|
+
if (response.headers && response.headers.forEach) {
|
|
16036
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16037
|
+
}
|
|
16038
|
+
;
|
|
16039
|
+
if (status === 200) {
|
|
16040
|
+
return response.text().then((_responseText) => {
|
|
16041
|
+
let result200 = null;
|
|
16042
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16043
|
+
return result200;
|
|
16044
|
+
});
|
|
16045
|
+
}
|
|
16046
|
+
else if (status !== 200 && status !== 204) {
|
|
16047
|
+
return response.text().then((_responseText) => {
|
|
16048
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16049
|
+
});
|
|
16050
|
+
}
|
|
16051
|
+
return Promise.resolve(null);
|
|
16052
|
+
}
|
|
16053
|
+
/**
|
|
16054
|
+
* @param skip (optional)
|
|
16055
|
+
* @param take (optional)
|
|
16056
|
+
* @return OK
|
|
16057
|
+
*/
|
|
16058
|
+
pagination(skip, take, signal) {
|
|
16059
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/Pagination?";
|
|
16060
|
+
if (skip === null)
|
|
16061
|
+
throw new globalThis.Error("The parameter 'skip' cannot be null.");
|
|
16062
|
+
else if (skip !== undefined)
|
|
16063
|
+
url_ += "skip=" + encodeURIComponent("" + skip) + "&";
|
|
16064
|
+
if (take === null)
|
|
16065
|
+
throw new globalThis.Error("The parameter 'take' cannot be null.");
|
|
16066
|
+
else if (take !== undefined)
|
|
16067
|
+
url_ += "take=" + encodeURIComponent("" + take) + "&";
|
|
16068
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16069
|
+
let options_ = {
|
|
16070
|
+
method: "GET",
|
|
16071
|
+
signal,
|
|
16072
|
+
headers: {
|
|
16073
|
+
"Accept": "application/json"
|
|
16074
|
+
}
|
|
16075
|
+
};
|
|
16076
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16077
|
+
return this.processPagination(_response);
|
|
16078
|
+
});
|
|
16079
|
+
}
|
|
16080
|
+
processPagination(response) {
|
|
16081
|
+
const status = response.status;
|
|
16082
|
+
let _headers = {};
|
|
16083
|
+
if (response.headers && response.headers.forEach) {
|
|
16084
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16085
|
+
}
|
|
16086
|
+
;
|
|
16087
|
+
if (status === 200) {
|
|
16088
|
+
return response.text().then((_responseText) => {
|
|
16089
|
+
let result200 = null;
|
|
16090
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16091
|
+
return result200;
|
|
16092
|
+
});
|
|
16093
|
+
}
|
|
16094
|
+
else if (status !== 200 && status !== 204) {
|
|
16095
|
+
return response.text().then((_responseText) => {
|
|
16096
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16097
|
+
});
|
|
16098
|
+
}
|
|
16099
|
+
return Promise.resolve(null);
|
|
16100
|
+
}
|
|
16101
|
+
/**
|
|
16102
|
+
* @param body (optional)
|
|
16103
|
+
* @return OK
|
|
16104
|
+
*/
|
|
16105
|
+
getFiltersBase(body, signal) {
|
|
16106
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/GetFiltersBase";
|
|
16107
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16108
|
+
const content_ = JSON.stringify(body);
|
|
16109
|
+
let options_ = {
|
|
16110
|
+
body: content_,
|
|
16111
|
+
method: "POST",
|
|
16112
|
+
signal,
|
|
16113
|
+
headers: {
|
|
16114
|
+
"Content-Type": "application/json",
|
|
16115
|
+
"Accept": "application/json"
|
|
16116
|
+
}
|
|
16117
|
+
};
|
|
16118
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16119
|
+
return this.processGetFiltersBase(_response);
|
|
16120
|
+
});
|
|
16121
|
+
}
|
|
16122
|
+
processGetFiltersBase(response) {
|
|
16123
|
+
const status = response.status;
|
|
16124
|
+
let _headers = {};
|
|
16125
|
+
if (response.headers && response.headers.forEach) {
|
|
16126
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16127
|
+
}
|
|
16128
|
+
;
|
|
16129
|
+
if (status === 200) {
|
|
16130
|
+
return response.text().then((_responseText) => {
|
|
16131
|
+
let result200 = null;
|
|
16132
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16133
|
+
return result200;
|
|
16134
|
+
});
|
|
16135
|
+
}
|
|
16136
|
+
else if (status !== 200 && status !== 204) {
|
|
16137
|
+
return response.text().then((_responseText) => {
|
|
16138
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16139
|
+
});
|
|
16140
|
+
}
|
|
16141
|
+
return Promise.resolve(null);
|
|
16142
|
+
}
|
|
16143
|
+
}
|
|
16144
|
+
export class ScanThreatResultsClient extends BaseApiClient {
|
|
16145
|
+
constructor(configuration, baseUrl, http) {
|
|
16146
|
+
super(configuration);
|
|
16147
|
+
this.jsonParseReviver = undefined;
|
|
16148
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
16149
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
16150
|
+
}
|
|
16151
|
+
/**
|
|
16152
|
+
* @param body (optional)
|
|
16153
|
+
* @return OK
|
|
16154
|
+
*/
|
|
16155
|
+
processEnrichment(body, signal) {
|
|
16156
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/ProcessEnrichment";
|
|
16157
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16158
|
+
const content_ = JSON.stringify(body);
|
|
16159
|
+
let options_ = {
|
|
16160
|
+
body: content_,
|
|
16161
|
+
method: "POST",
|
|
16162
|
+
signal,
|
|
16163
|
+
headers: {
|
|
16164
|
+
"Content-Type": "application/json",
|
|
16165
|
+
"Accept": "application/json"
|
|
16166
|
+
}
|
|
16167
|
+
};
|
|
16168
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16169
|
+
return this.processProcessEnrichment(_response);
|
|
16170
|
+
});
|
|
16171
|
+
}
|
|
16172
|
+
processProcessEnrichment(response) {
|
|
16173
|
+
const status = response.status;
|
|
16174
|
+
let _headers = {};
|
|
16175
|
+
if (response.headers && response.headers.forEach) {
|
|
16176
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16177
|
+
}
|
|
16178
|
+
;
|
|
16179
|
+
if (status === 200) {
|
|
16180
|
+
return response.text().then((_responseText) => {
|
|
16181
|
+
let result200 = null;
|
|
16182
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16183
|
+
return result200;
|
|
16184
|
+
});
|
|
16185
|
+
}
|
|
16186
|
+
else if (status !== 200 && status !== 204) {
|
|
16187
|
+
return response.text().then((_responseText) => {
|
|
16188
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16189
|
+
});
|
|
16190
|
+
}
|
|
16191
|
+
return Promise.resolve(null);
|
|
16192
|
+
}
|
|
16193
|
+
/**
|
|
16194
|
+
* @param body (optional)
|
|
16195
|
+
* @return OK
|
|
16196
|
+
*/
|
|
16197
|
+
add(body, signal) {
|
|
16198
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/Add";
|
|
16199
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16200
|
+
const content_ = JSON.stringify(body);
|
|
16201
|
+
let options_ = {
|
|
16202
|
+
body: content_,
|
|
16203
|
+
method: "POST",
|
|
16204
|
+
signal,
|
|
16205
|
+
headers: {
|
|
16206
|
+
"Content-Type": "application/json",
|
|
16207
|
+
"Accept": "application/json"
|
|
16208
|
+
}
|
|
16209
|
+
};
|
|
16210
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16211
|
+
return this.processAdd(_response);
|
|
16212
|
+
});
|
|
16213
|
+
}
|
|
16214
|
+
processAdd(response) {
|
|
16215
|
+
const status = response.status;
|
|
16216
|
+
let _headers = {};
|
|
16217
|
+
if (response.headers && response.headers.forEach) {
|
|
16218
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16219
|
+
}
|
|
16220
|
+
;
|
|
16221
|
+
if (status === 200) {
|
|
16222
|
+
return response.text().then((_responseText) => {
|
|
16223
|
+
let result200 = null;
|
|
16224
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16225
|
+
return result200;
|
|
16226
|
+
});
|
|
16227
|
+
}
|
|
16228
|
+
else if (status !== 200 && status !== 204) {
|
|
16229
|
+
return response.text().then((_responseText) => {
|
|
16230
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16231
|
+
});
|
|
16232
|
+
}
|
|
16233
|
+
return Promise.resolve(null);
|
|
16234
|
+
}
|
|
16235
|
+
/**
|
|
16236
|
+
* @param body (optional)
|
|
16237
|
+
* @return OK
|
|
16238
|
+
*/
|
|
16239
|
+
addMultiple(body, signal) {
|
|
16240
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/AddMultiple";
|
|
16241
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16242
|
+
const content_ = JSON.stringify(body);
|
|
16243
|
+
let options_ = {
|
|
16244
|
+
body: content_,
|
|
16245
|
+
method: "POST",
|
|
16246
|
+
signal,
|
|
16247
|
+
headers: {
|
|
16248
|
+
"Content-Type": "application/json",
|
|
16249
|
+
"Accept": "application/json"
|
|
16250
|
+
}
|
|
16251
|
+
};
|
|
16252
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16253
|
+
return this.processAddMultiple(_response);
|
|
16254
|
+
});
|
|
16255
|
+
}
|
|
16256
|
+
processAddMultiple(response) {
|
|
16257
|
+
const status = response.status;
|
|
16258
|
+
let _headers = {};
|
|
16259
|
+
if (response.headers && response.headers.forEach) {
|
|
16260
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16261
|
+
}
|
|
16262
|
+
;
|
|
16263
|
+
if (status === 200) {
|
|
16264
|
+
return response.text().then((_responseText) => {
|
|
16265
|
+
let result200 = null;
|
|
16266
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16267
|
+
return result200;
|
|
16268
|
+
});
|
|
16269
|
+
}
|
|
16270
|
+
else if (status !== 200 && status !== 204) {
|
|
16271
|
+
return response.text().then((_responseText) => {
|
|
16272
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16273
|
+
});
|
|
16274
|
+
}
|
|
16275
|
+
return Promise.resolve(null);
|
|
16276
|
+
}
|
|
16277
|
+
/**
|
|
16278
|
+
* @param body (optional)
|
|
16279
|
+
* @return OK
|
|
16280
|
+
*/
|
|
16281
|
+
update(body, signal) {
|
|
16282
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/Update";
|
|
16283
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16284
|
+
const content_ = JSON.stringify(body);
|
|
16285
|
+
let options_ = {
|
|
16286
|
+
body: content_,
|
|
16287
|
+
method: "POST",
|
|
16288
|
+
signal,
|
|
16289
|
+
headers: {
|
|
16290
|
+
"Content-Type": "application/json",
|
|
16291
|
+
"Accept": "application/json"
|
|
16292
|
+
}
|
|
16293
|
+
};
|
|
16294
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16295
|
+
return this.processUpdate(_response);
|
|
16296
|
+
});
|
|
16297
|
+
}
|
|
16298
|
+
processUpdate(response) {
|
|
16299
|
+
const status = response.status;
|
|
16300
|
+
let _headers = {};
|
|
16301
|
+
if (response.headers && response.headers.forEach) {
|
|
16302
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16303
|
+
}
|
|
16304
|
+
;
|
|
16305
|
+
if (status === 200) {
|
|
16306
|
+
return response.text().then((_responseText) => {
|
|
16307
|
+
let result200 = null;
|
|
16308
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16309
|
+
return result200;
|
|
16310
|
+
});
|
|
16311
|
+
}
|
|
16312
|
+
else if (status !== 200 && status !== 204) {
|
|
16313
|
+
return response.text().then((_responseText) => {
|
|
16314
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16315
|
+
});
|
|
16316
|
+
}
|
|
16317
|
+
return Promise.resolve(null);
|
|
16318
|
+
}
|
|
16319
|
+
/**
|
|
16320
|
+
* @param body (optional)
|
|
16321
|
+
* @return OK
|
|
16322
|
+
*/
|
|
16323
|
+
delete(body, signal) {
|
|
16324
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/Delete";
|
|
16325
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16326
|
+
const content_ = JSON.stringify(body);
|
|
16327
|
+
let options_ = {
|
|
16328
|
+
body: content_,
|
|
16329
|
+
method: "POST",
|
|
16330
|
+
signal,
|
|
16331
|
+
headers: {
|
|
16332
|
+
"Content-Type": "application/json",
|
|
16333
|
+
"Accept": "application/json"
|
|
16334
|
+
}
|
|
16335
|
+
};
|
|
16336
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16337
|
+
return this.processDelete(_response);
|
|
16338
|
+
});
|
|
16339
|
+
}
|
|
16340
|
+
processDelete(response) {
|
|
16341
|
+
const status = response.status;
|
|
16342
|
+
let _headers = {};
|
|
16343
|
+
if (response.headers && response.headers.forEach) {
|
|
16344
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16345
|
+
}
|
|
16346
|
+
;
|
|
16347
|
+
if (status === 200) {
|
|
16348
|
+
return response.text().then((_responseText) => {
|
|
16349
|
+
let result200 = null;
|
|
16350
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16351
|
+
return result200;
|
|
16352
|
+
});
|
|
16353
|
+
}
|
|
16354
|
+
else if (status !== 200 && status !== 204) {
|
|
16355
|
+
return response.text().then((_responseText) => {
|
|
16356
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16357
|
+
});
|
|
16358
|
+
}
|
|
16359
|
+
return Promise.resolve(null);
|
|
16360
|
+
}
|
|
16361
|
+
/**
|
|
16362
|
+
* @param body (optional)
|
|
16363
|
+
* @return OK
|
|
16364
|
+
*/
|
|
16365
|
+
deleteMultiple(body, signal) {
|
|
16366
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/DeleteMultiple";
|
|
16367
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16368
|
+
const content_ = JSON.stringify(body);
|
|
16369
|
+
let options_ = {
|
|
16370
|
+
body: content_,
|
|
16371
|
+
method: "POST",
|
|
16372
|
+
signal,
|
|
16373
|
+
headers: {
|
|
16374
|
+
"Content-Type": "application/json",
|
|
16375
|
+
"Accept": "application/json"
|
|
16376
|
+
}
|
|
16377
|
+
};
|
|
16378
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16379
|
+
return this.processDeleteMultiple(_response);
|
|
16380
|
+
});
|
|
16381
|
+
}
|
|
16382
|
+
processDeleteMultiple(response) {
|
|
16383
|
+
const status = response.status;
|
|
16384
|
+
let _headers = {};
|
|
16385
|
+
if (response.headers && response.headers.forEach) {
|
|
16386
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16387
|
+
}
|
|
16388
|
+
;
|
|
16389
|
+
if (status === 200) {
|
|
16390
|
+
return response.text().then((_responseText) => {
|
|
16391
|
+
let result200 = null;
|
|
16392
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16393
|
+
return result200;
|
|
16394
|
+
});
|
|
16395
|
+
}
|
|
16396
|
+
else if (status !== 200 && status !== 204) {
|
|
16397
|
+
return response.text().then((_responseText) => {
|
|
16398
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16399
|
+
});
|
|
16400
|
+
}
|
|
16401
|
+
return Promise.resolve(null);
|
|
16402
|
+
}
|
|
16403
|
+
/**
|
|
16404
|
+
* @param id (optional)
|
|
16405
|
+
* @return OK
|
|
16406
|
+
*/
|
|
16407
|
+
getById(id, signal) {
|
|
16408
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/GetById?";
|
|
16409
|
+
if (id === null)
|
|
16410
|
+
throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
16411
|
+
else if (id !== undefined)
|
|
16412
|
+
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
16413
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16414
|
+
let options_ = {
|
|
16415
|
+
method: "GET",
|
|
16416
|
+
signal,
|
|
16417
|
+
headers: {
|
|
16418
|
+
"Accept": "application/json"
|
|
16419
|
+
}
|
|
16420
|
+
};
|
|
16421
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16422
|
+
return this.processGetById(_response);
|
|
16423
|
+
});
|
|
16424
|
+
}
|
|
16425
|
+
processGetById(response) {
|
|
16426
|
+
const status = response.status;
|
|
16427
|
+
let _headers = {};
|
|
16428
|
+
if (response.headers && response.headers.forEach) {
|
|
16429
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16430
|
+
}
|
|
16431
|
+
;
|
|
16432
|
+
if (status === 200) {
|
|
16433
|
+
return response.text().then((_responseText) => {
|
|
16434
|
+
let result200 = null;
|
|
16435
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16436
|
+
return result200;
|
|
16437
|
+
});
|
|
16438
|
+
}
|
|
16439
|
+
else if (status !== 200 && status !== 204) {
|
|
16440
|
+
return response.text().then((_responseText) => {
|
|
16441
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16442
|
+
});
|
|
16443
|
+
}
|
|
16444
|
+
return Promise.resolve(null);
|
|
16445
|
+
}
|
|
16446
|
+
/**
|
|
16447
|
+
* @return OK
|
|
16448
|
+
*/
|
|
16449
|
+
getAll(signal) {
|
|
16450
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/GetAll";
|
|
16451
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16452
|
+
let options_ = {
|
|
16453
|
+
method: "GET",
|
|
16454
|
+
signal,
|
|
16455
|
+
headers: {
|
|
16456
|
+
"Accept": "application/json"
|
|
16457
|
+
}
|
|
16458
|
+
};
|
|
16459
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16460
|
+
return this.processGetAll(_response);
|
|
16461
|
+
});
|
|
16462
|
+
}
|
|
16463
|
+
processGetAll(response) {
|
|
16464
|
+
const status = response.status;
|
|
16465
|
+
let _headers = {};
|
|
16466
|
+
if (response.headers && response.headers.forEach) {
|
|
16467
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16468
|
+
}
|
|
16469
|
+
;
|
|
16470
|
+
if (status === 200) {
|
|
16471
|
+
return response.text().then((_responseText) => {
|
|
16472
|
+
let result200 = null;
|
|
16473
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16474
|
+
return result200;
|
|
16475
|
+
});
|
|
16476
|
+
}
|
|
16477
|
+
else if (status !== 200 && status !== 204) {
|
|
16478
|
+
return response.text().then((_responseText) => {
|
|
16479
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16480
|
+
});
|
|
16481
|
+
}
|
|
16482
|
+
return Promise.resolve(null);
|
|
16483
|
+
}
|
|
16484
|
+
/**
|
|
16485
|
+
* @param skip (optional)
|
|
16486
|
+
* @param take (optional)
|
|
16487
|
+
* @return OK
|
|
16488
|
+
*/
|
|
16489
|
+
pagination(skip, take, signal) {
|
|
16490
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/Pagination?";
|
|
16491
|
+
if (skip === null)
|
|
16492
|
+
throw new globalThis.Error("The parameter 'skip' cannot be null.");
|
|
16493
|
+
else if (skip !== undefined)
|
|
16494
|
+
url_ += "skip=" + encodeURIComponent("" + skip) + "&";
|
|
16495
|
+
if (take === null)
|
|
16496
|
+
throw new globalThis.Error("The parameter 'take' cannot be null.");
|
|
16497
|
+
else if (take !== undefined)
|
|
16498
|
+
url_ += "take=" + encodeURIComponent("" + take) + "&";
|
|
16499
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16500
|
+
let options_ = {
|
|
16501
|
+
method: "GET",
|
|
16502
|
+
signal,
|
|
16503
|
+
headers: {
|
|
16504
|
+
"Accept": "application/json"
|
|
16505
|
+
}
|
|
16506
|
+
};
|
|
16507
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16508
|
+
return this.processPagination(_response);
|
|
16509
|
+
});
|
|
16510
|
+
}
|
|
16511
|
+
processPagination(response) {
|
|
16512
|
+
const status = response.status;
|
|
16513
|
+
let _headers = {};
|
|
16514
|
+
if (response.headers && response.headers.forEach) {
|
|
16515
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16516
|
+
}
|
|
16517
|
+
;
|
|
16518
|
+
if (status === 200) {
|
|
16519
|
+
return response.text().then((_responseText) => {
|
|
16520
|
+
let result200 = null;
|
|
16521
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16522
|
+
return result200;
|
|
16523
|
+
});
|
|
16524
|
+
}
|
|
16525
|
+
else if (status !== 200 && status !== 204) {
|
|
16526
|
+
return response.text().then((_responseText) => {
|
|
16527
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16528
|
+
});
|
|
16529
|
+
}
|
|
16530
|
+
return Promise.resolve(null);
|
|
16531
|
+
}
|
|
16532
|
+
/**
|
|
16533
|
+
* @param body (optional)
|
|
16534
|
+
* @return OK
|
|
16535
|
+
*/
|
|
16536
|
+
getFiltersBase(body, signal) {
|
|
16537
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/GetFiltersBase";
|
|
16538
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16539
|
+
const content_ = JSON.stringify(body);
|
|
16540
|
+
let options_ = {
|
|
16541
|
+
body: content_,
|
|
16542
|
+
method: "POST",
|
|
16543
|
+
signal,
|
|
16544
|
+
headers: {
|
|
16545
|
+
"Content-Type": "application/json",
|
|
16546
|
+
"Accept": "application/json"
|
|
16547
|
+
}
|
|
16548
|
+
};
|
|
16549
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16550
|
+
return this.processGetFiltersBase(_response);
|
|
16551
|
+
});
|
|
16552
|
+
}
|
|
16553
|
+
processGetFiltersBase(response) {
|
|
16554
|
+
const status = response.status;
|
|
16555
|
+
let _headers = {};
|
|
16556
|
+
if (response.headers && response.headers.forEach) {
|
|
16557
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16558
|
+
}
|
|
16559
|
+
;
|
|
16560
|
+
if (status === 200) {
|
|
16561
|
+
return response.text().then((_responseText) => {
|
|
16562
|
+
let result200 = null;
|
|
16563
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16564
|
+
return result200;
|
|
16565
|
+
});
|
|
16566
|
+
}
|
|
16567
|
+
else if (status !== 200 && status !== 204) {
|
|
16568
|
+
return response.text().then((_responseText) => {
|
|
16569
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16570
|
+
});
|
|
16571
|
+
}
|
|
16572
|
+
return Promise.resolve(null);
|
|
16573
|
+
}
|
|
16574
|
+
}
|
|
16575
|
+
export class ScanTypesClient extends BaseApiClient {
|
|
16576
|
+
constructor(configuration, baseUrl, http) {
|
|
16577
|
+
super(configuration);
|
|
16578
|
+
this.jsonParseReviver = undefined;
|
|
16579
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
16580
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
16581
|
+
}
|
|
16582
|
+
/**
|
|
16583
|
+
* @param body (optional)
|
|
16584
|
+
* @return OK
|
|
16585
|
+
*/
|
|
16586
|
+
add(body, signal) {
|
|
16587
|
+
let url_ = this.baseUrl + "/api/ScanTypes/Add";
|
|
16588
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16589
|
+
const content_ = JSON.stringify(body);
|
|
16590
|
+
let options_ = {
|
|
16591
|
+
body: content_,
|
|
16592
|
+
method: "POST",
|
|
16593
|
+
signal,
|
|
16594
|
+
headers: {
|
|
16595
|
+
"Content-Type": "application/json",
|
|
16596
|
+
"Accept": "application/json"
|
|
16597
|
+
}
|
|
16598
|
+
};
|
|
16599
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16600
|
+
return this.processAdd(_response);
|
|
16601
|
+
});
|
|
16602
|
+
}
|
|
16603
|
+
processAdd(response) {
|
|
16604
|
+
const status = response.status;
|
|
16605
|
+
let _headers = {};
|
|
16606
|
+
if (response.headers && response.headers.forEach) {
|
|
16607
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16608
|
+
}
|
|
16609
|
+
;
|
|
16610
|
+
if (status === 200) {
|
|
16611
|
+
return response.text().then((_responseText) => {
|
|
16612
|
+
let result200 = null;
|
|
16613
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16614
|
+
return result200;
|
|
16615
|
+
});
|
|
16616
|
+
}
|
|
16617
|
+
else if (status !== 200 && status !== 204) {
|
|
16618
|
+
return response.text().then((_responseText) => {
|
|
16619
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16620
|
+
});
|
|
16621
|
+
}
|
|
16622
|
+
return Promise.resolve(null);
|
|
16623
|
+
}
|
|
16624
|
+
/**
|
|
16625
|
+
* @param body (optional)
|
|
16626
|
+
* @return OK
|
|
16627
|
+
*/
|
|
16628
|
+
addMultiple(body, signal) {
|
|
16629
|
+
let url_ = this.baseUrl + "/api/ScanTypes/AddMultiple";
|
|
16630
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16631
|
+
const content_ = JSON.stringify(body);
|
|
16632
|
+
let options_ = {
|
|
16633
|
+
body: content_,
|
|
16634
|
+
method: "POST",
|
|
16635
|
+
signal,
|
|
16636
|
+
headers: {
|
|
16637
|
+
"Content-Type": "application/json",
|
|
16638
|
+
"Accept": "application/json"
|
|
16639
|
+
}
|
|
16640
|
+
};
|
|
16641
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16642
|
+
return this.processAddMultiple(_response);
|
|
16643
|
+
});
|
|
16644
|
+
}
|
|
16645
|
+
processAddMultiple(response) {
|
|
16646
|
+
const status = response.status;
|
|
16647
|
+
let _headers = {};
|
|
16648
|
+
if (response.headers && response.headers.forEach) {
|
|
16649
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16650
|
+
}
|
|
16651
|
+
;
|
|
16652
|
+
if (status === 200) {
|
|
16653
|
+
return response.text().then((_responseText) => {
|
|
16654
|
+
let result200 = null;
|
|
16655
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16656
|
+
return result200;
|
|
16657
|
+
});
|
|
16658
|
+
}
|
|
16659
|
+
else if (status !== 200 && status !== 204) {
|
|
16660
|
+
return response.text().then((_responseText) => {
|
|
16661
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16662
|
+
});
|
|
16663
|
+
}
|
|
16664
|
+
return Promise.resolve(null);
|
|
16665
|
+
}
|
|
16666
|
+
/**
|
|
16667
|
+
* @param body (optional)
|
|
16668
|
+
* @return OK
|
|
16669
|
+
*/
|
|
16670
|
+
update(body, signal) {
|
|
16671
|
+
let url_ = this.baseUrl + "/api/ScanTypes/Update";
|
|
16672
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16673
|
+
const content_ = JSON.stringify(body);
|
|
16674
|
+
let options_ = {
|
|
16675
|
+
body: content_,
|
|
16676
|
+
method: "POST",
|
|
16677
|
+
signal,
|
|
16678
|
+
headers: {
|
|
16679
|
+
"Content-Type": "application/json",
|
|
16680
|
+
"Accept": "application/json"
|
|
16681
|
+
}
|
|
16682
|
+
};
|
|
16683
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16684
|
+
return this.processUpdate(_response);
|
|
16685
|
+
});
|
|
16686
|
+
}
|
|
16687
|
+
processUpdate(response) {
|
|
16688
|
+
const status = response.status;
|
|
16689
|
+
let _headers = {};
|
|
16690
|
+
if (response.headers && response.headers.forEach) {
|
|
16691
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16692
|
+
}
|
|
16693
|
+
;
|
|
16694
|
+
if (status === 200) {
|
|
16695
|
+
return response.text().then((_responseText) => {
|
|
16696
|
+
let result200 = null;
|
|
16697
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16698
|
+
return result200;
|
|
16699
|
+
});
|
|
16700
|
+
}
|
|
16701
|
+
else if (status !== 200 && status !== 204) {
|
|
16702
|
+
return response.text().then((_responseText) => {
|
|
16703
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16704
|
+
});
|
|
16705
|
+
}
|
|
16706
|
+
return Promise.resolve(null);
|
|
16707
|
+
}
|
|
16708
|
+
/**
|
|
16709
|
+
* @param body (optional)
|
|
16710
|
+
* @return OK
|
|
16711
|
+
*/
|
|
16712
|
+
delete(body, signal) {
|
|
16713
|
+
let url_ = this.baseUrl + "/api/ScanTypes/Delete";
|
|
16714
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16715
|
+
const content_ = JSON.stringify(body);
|
|
16716
|
+
let options_ = {
|
|
16717
|
+
body: content_,
|
|
16718
|
+
method: "POST",
|
|
16719
|
+
signal,
|
|
16720
|
+
headers: {
|
|
16721
|
+
"Content-Type": "application/json",
|
|
16722
|
+
"Accept": "application/json"
|
|
16723
|
+
}
|
|
16724
|
+
};
|
|
16725
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16726
|
+
return this.processDelete(_response);
|
|
16727
|
+
});
|
|
16728
|
+
}
|
|
16729
|
+
processDelete(response) {
|
|
16730
|
+
const status = response.status;
|
|
16731
|
+
let _headers = {};
|
|
16732
|
+
if (response.headers && response.headers.forEach) {
|
|
16733
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16734
|
+
}
|
|
16735
|
+
;
|
|
16736
|
+
if (status === 200) {
|
|
16737
|
+
return response.text().then((_responseText) => {
|
|
16738
|
+
let result200 = null;
|
|
16739
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16740
|
+
return result200;
|
|
16741
|
+
});
|
|
16742
|
+
}
|
|
16743
|
+
else if (status !== 200 && status !== 204) {
|
|
16744
|
+
return response.text().then((_responseText) => {
|
|
16745
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16746
|
+
});
|
|
16747
|
+
}
|
|
16748
|
+
return Promise.resolve(null);
|
|
16749
|
+
}
|
|
16750
|
+
/**
|
|
16751
|
+
* @param body (optional)
|
|
16752
|
+
* @return OK
|
|
16753
|
+
*/
|
|
16754
|
+
deleteMultiple(body, signal) {
|
|
16755
|
+
let url_ = this.baseUrl + "/api/ScanTypes/DeleteMultiple";
|
|
15639
16756
|
url_ = url_.replace(/[?&]$/, "");
|
|
15640
16757
|
const content_ = JSON.stringify(body);
|
|
15641
16758
|
let options_ = {
|
|
@@ -18418,6 +19535,84 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
18418
19535
|
}
|
|
18419
19536
|
return Promise.resolve(null);
|
|
18420
19537
|
}
|
|
19538
|
+
/**
|
|
19539
|
+
* @return OK
|
|
19540
|
+
*/
|
|
19541
|
+
sessions(signal) {
|
|
19542
|
+
let url_ = this.baseUrl + "/api/TrialAuth/Sessions";
|
|
19543
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19544
|
+
let options_ = {
|
|
19545
|
+
method: "GET",
|
|
19546
|
+
signal,
|
|
19547
|
+
headers: {}
|
|
19548
|
+
};
|
|
19549
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
19550
|
+
return this.processSessions(_response);
|
|
19551
|
+
});
|
|
19552
|
+
}
|
|
19553
|
+
processSessions(response) {
|
|
19554
|
+
const status = response.status;
|
|
19555
|
+
let _headers = {};
|
|
19556
|
+
if (response.headers && response.headers.forEach) {
|
|
19557
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
19558
|
+
}
|
|
19559
|
+
;
|
|
19560
|
+
if (status === 200) {
|
|
19561
|
+
return response.text().then((_responseText) => {
|
|
19562
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19563
|
+
return result200;
|
|
19564
|
+
});
|
|
19565
|
+
}
|
|
19566
|
+
else if (status !== 200 && status !== 204) {
|
|
19567
|
+
return response.text().then((_responseText) => {
|
|
19568
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19569
|
+
});
|
|
19570
|
+
}
|
|
19571
|
+
return Promise.resolve(null);
|
|
19572
|
+
}
|
|
19573
|
+
}
|
|
19574
|
+
export class SessionsClient extends BaseApiClient {
|
|
19575
|
+
constructor(configuration, baseUrl, http) {
|
|
19576
|
+
super(configuration);
|
|
19577
|
+
this.jsonParseReviver = undefined;
|
|
19578
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
19579
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
19580
|
+
}
|
|
19581
|
+
/**
|
|
19582
|
+
* @return OK
|
|
19583
|
+
*/
|
|
19584
|
+
endAll(signal) {
|
|
19585
|
+
let url_ = this.baseUrl + "/api/TrialAuth/Sessions/EndAll";
|
|
19586
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19587
|
+
let options_ = {
|
|
19588
|
+
method: "POST",
|
|
19589
|
+
signal,
|
|
19590
|
+
headers: {}
|
|
19591
|
+
};
|
|
19592
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
19593
|
+
return this.processEndAll(_response);
|
|
19594
|
+
});
|
|
19595
|
+
}
|
|
19596
|
+
processEndAll(response) {
|
|
19597
|
+
const status = response.status;
|
|
19598
|
+
let _headers = {};
|
|
19599
|
+
if (response.headers && response.headers.forEach) {
|
|
19600
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
19601
|
+
}
|
|
19602
|
+
;
|
|
19603
|
+
if (status === 200) {
|
|
19604
|
+
return response.text().then((_responseText) => {
|
|
19605
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19606
|
+
return result200;
|
|
19607
|
+
});
|
|
19608
|
+
}
|
|
19609
|
+
else if (status !== 200 && status !== 204) {
|
|
19610
|
+
return response.text().then((_responseText) => {
|
|
19611
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19612
|
+
});
|
|
19613
|
+
}
|
|
19614
|
+
return Promise.resolve(null);
|
|
19615
|
+
}
|
|
18421
19616
|
}
|
|
18422
19617
|
export class TrialUserOperationClaimsClient extends BaseApiClient {
|
|
18423
19618
|
constructor(configuration, baseUrl, http) {
|