@virusis/api-client 0.1.8 → 0.1.10
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 +27 -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 +9 -0
- package/dist/generated/clients/index.js +9 -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/scan-timing-events-service.d.ts +2 -0
- package/dist/generated/clients/scan-timing-events-service.js +2 -0
- package/dist/generated/clients/scan-timing-runs-service.d.ts +2 -0
- package/dist/generated/clients/scan-timing-runs-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 +9 -0
- package/dist/generated/clients-rx/index.js +9 -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/scan-timing-events-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/scan-timing-events-service-rx.js +12 -0
- package/dist/generated/clients-rx/scan-timing-runs-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/scan-timing-runs-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 +977 -78
- package/dist/generated/index.js +2312 -119
- package/dist/generated/models/index.d.ts +37 -0
- package/dist/generated/models/index.js +37 -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/generated/models/scan-timing-event-for-table-dto-list-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-timing-event-for-table-dto-list-i-data-result.js +1 -0
- package/dist/generated/models/scan-timing-event-for-table-dto-list-result-filter-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-timing-event-for-table-dto-list-result-filter-i-data-result.js +1 -0
- package/dist/generated/models/scan-timing-event-for-table-dto-list-result-filter.d.ts +4 -0
- package/dist/generated/models/scan-timing-event-for-table-dto-list-result-filter.js +1 -0
- package/dist/generated/models/scan-timing-event-for-table-dto.d.ts +4 -0
- package/dist/generated/models/scan-timing-event-for-table-dto.js +1 -0
- package/dist/generated/models/scan-timing-event-for-table-filter-data-table-query.d.ts +4 -0
- package/dist/generated/models/scan-timing-event-for-table-filter-data-table-query.js +1 -0
- package/dist/generated/models/scan-timing-event-for-table-filter.d.ts +4 -0
- package/dist/generated/models/scan-timing-event-for-table-filter.js +1 -0
- package/dist/generated/models/scan-timing-event-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-timing-event-i-data-result.js +1 -0
- package/dist/generated/models/scan-timing-event-list-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-timing-event-list-i-data-result.js +1 -0
- package/dist/generated/models/scan-timing-event.d.ts +4 -0
- package/dist/generated/models/scan-timing-event.js +1 -0
- package/dist/generated/models/scan-timing-run-for-table-dto-list-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-timing-run-for-table-dto-list-i-data-result.js +1 -0
- package/dist/generated/models/scan-timing-run-for-table-dto-list-result-filter-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-timing-run-for-table-dto-list-result-filter-i-data-result.js +1 -0
- package/dist/generated/models/scan-timing-run-for-table-dto-list-result-filter.d.ts +4 -0
- package/dist/generated/models/scan-timing-run-for-table-dto-list-result-filter.js +1 -0
- package/dist/generated/models/scan-timing-run-for-table-dto.d.ts +4 -0
- package/dist/generated/models/scan-timing-run-for-table-dto.js +1 -0
- package/dist/generated/models/scan-timing-run-for-table-filter-data-table-query.d.ts +4 -0
- package/dist/generated/models/scan-timing-run-for-table-filter-data-table-query.js +1 -0
- package/dist/generated/models/scan-timing-run-for-table-filter.d.ts +4 -0
- package/dist/generated/models/scan-timing-run-for-table-filter.js +1 -0
- package/dist/generated/models/scan-timing-run-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-timing-run-i-data-result.js +1 -0
- package/dist/generated/models/scan-timing-run-list-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-timing-run-list-i-data-result.js +1 -0
- package/dist/generated/models/scan-timing-run.d.ts +4 -0
- package/dist/generated/models/scan-timing-run.js +1 -0
- package/dist/rx.d.ts +54 -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,7 +14098,7 @@ export class ScanEnginesClient extends BaseApiClient {
|
|
|
13934
14098
|
return Promise.resolve(null);
|
|
13935
14099
|
}
|
|
13936
14100
|
}
|
|
13937
|
-
export class
|
|
14101
|
+
export class ScanClient extends BaseApiClient {
|
|
13938
14102
|
constructor(configuration, baseUrl, http) {
|
|
13939
14103
|
super(configuration);
|
|
13940
14104
|
this.jsonParseReviver = undefined;
|
|
@@ -13944,21 +14108,25 @@ export class ScansClient extends BaseApiClient {
|
|
|
13944
14108
|
/**
|
|
13945
14109
|
* @return OK
|
|
13946
14110
|
*/
|
|
13947
|
-
|
|
13948
|
-
let url_ = this.baseUrl + "/api/
|
|
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));
|
|
13949
14119
|
url_ = url_.replace(/[?&]$/, "");
|
|
13950
14120
|
let options_ = {
|
|
13951
14121
|
method: "GET",
|
|
13952
14122
|
signal,
|
|
13953
|
-
headers: {
|
|
13954
|
-
"Accept": "application/json"
|
|
13955
|
-
}
|
|
14123
|
+
headers: {}
|
|
13956
14124
|
};
|
|
13957
14125
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
13958
|
-
return this.
|
|
14126
|
+
return this.processProxyGet(_response);
|
|
13959
14127
|
});
|
|
13960
14128
|
}
|
|
13961
|
-
|
|
14129
|
+
processProxyGet(response) {
|
|
13962
14130
|
const status = response.status;
|
|
13963
14131
|
let _headers = {};
|
|
13964
14132
|
if (response.headers && response.headers.forEach) {
|
|
@@ -13967,8 +14135,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
13967
14135
|
;
|
|
13968
14136
|
if (status === 200) {
|
|
13969
14137
|
return response.text().then((_responseText) => {
|
|
13970
|
-
|
|
13971
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14138
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13972
14139
|
return result200;
|
|
13973
14140
|
});
|
|
13974
14141
|
}
|
|
@@ -13980,28 +14147,27 @@ export class ScansClient extends BaseApiClient {
|
|
|
13980
14147
|
return Promise.resolve(null);
|
|
13981
14148
|
}
|
|
13982
14149
|
/**
|
|
13983
|
-
* @param guid (optional)
|
|
13984
14150
|
* @return OK
|
|
13985
14151
|
*/
|
|
13986
|
-
|
|
13987
|
-
let url_ = this.baseUrl + "/api/
|
|
13988
|
-
if (
|
|
13989
|
-
throw new globalThis.Error("The parameter '
|
|
13990
|
-
|
|
13991
|
-
|
|
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));
|
|
13992
14160
|
url_ = url_.replace(/[?&]$/, "");
|
|
13993
14161
|
let options_ = {
|
|
13994
|
-
method: "
|
|
14162
|
+
method: "POST",
|
|
13995
14163
|
signal,
|
|
13996
|
-
headers: {
|
|
13997
|
-
"Accept": "application/json"
|
|
13998
|
-
}
|
|
14164
|
+
headers: {}
|
|
13999
14165
|
};
|
|
14000
14166
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
14001
|
-
return this.
|
|
14167
|
+
return this.processProxyPost(_response);
|
|
14002
14168
|
});
|
|
14003
14169
|
}
|
|
14004
|
-
|
|
14170
|
+
processProxyPost(response) {
|
|
14005
14171
|
const status = response.status;
|
|
14006
14172
|
let _headers = {};
|
|
14007
14173
|
if (response.headers && response.headers.forEach) {
|
|
@@ -14010,8 +14176,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14010
14176
|
;
|
|
14011
14177
|
if (status === 200) {
|
|
14012
14178
|
return response.text().then((_responseText) => {
|
|
14013
|
-
|
|
14014
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14179
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14015
14180
|
return result200;
|
|
14016
14181
|
});
|
|
14017
14182
|
}
|
|
@@ -14023,28 +14188,29 @@ export class ScansClient extends BaseApiClient {
|
|
|
14023
14188
|
return Promise.resolve(null);
|
|
14024
14189
|
}
|
|
14025
14190
|
/**
|
|
14026
|
-
* @param
|
|
14191
|
+
* @param body (optional)
|
|
14027
14192
|
* @return OK
|
|
14028
14193
|
*/
|
|
14029
|
-
|
|
14030
|
-
let url_ = this.baseUrl + "/api/
|
|
14031
|
-
if (
|
|
14032
|
-
throw new globalThis.Error("The parameter '
|
|
14033
|
-
|
|
14034
|
-
url_ += "sha256=" + encodeURIComponent("" + sha256) + "&";
|
|
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));
|
|
14035
14199
|
url_ = url_.replace(/[?&]$/, "");
|
|
14200
|
+
const content_ = JSON.stringify(body);
|
|
14036
14201
|
let options_ = {
|
|
14037
|
-
|
|
14202
|
+
body: content_,
|
|
14203
|
+
method: "POST",
|
|
14038
14204
|
signal,
|
|
14039
14205
|
headers: {
|
|
14040
|
-
"
|
|
14206
|
+
"Content-Type": "application/json",
|
|
14041
14207
|
}
|
|
14042
14208
|
};
|
|
14043
14209
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
14044
|
-
return this.
|
|
14210
|
+
return this.processExecute(_response);
|
|
14045
14211
|
});
|
|
14046
14212
|
}
|
|
14047
|
-
|
|
14213
|
+
processExecute(response) {
|
|
14048
14214
|
const status = response.status;
|
|
14049
14215
|
let _headers = {};
|
|
14050
14216
|
if (response.headers && response.headers.forEach) {
|
|
@@ -14053,8 +14219,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14053
14219
|
;
|
|
14054
14220
|
if (status === 200) {
|
|
14055
14221
|
return response.text().then((_responseText) => {
|
|
14056
|
-
|
|
14057
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14222
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14058
14223
|
return result200;
|
|
14059
14224
|
});
|
|
14060
14225
|
}
|
|
@@ -14065,16 +14230,19 @@ export class ScansClient extends BaseApiClient {
|
|
|
14065
14230
|
}
|
|
14066
14231
|
return Promise.resolve(null);
|
|
14067
14232
|
}
|
|
14233
|
+
}
|
|
14234
|
+
export class ScansClient extends BaseApiClient {
|
|
14235
|
+
constructor(configuration, baseUrl, http) {
|
|
14236
|
+
super(configuration);
|
|
14237
|
+
this.jsonParseReviver = undefined;
|
|
14238
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
14239
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
14240
|
+
}
|
|
14068
14241
|
/**
|
|
14069
|
-
* @param sha256List (optional)
|
|
14070
14242
|
* @return OK
|
|
14071
14243
|
*/
|
|
14072
|
-
|
|
14073
|
-
let url_ = this.baseUrl + "/api/Scans/
|
|
14074
|
-
if (sha256List === null)
|
|
14075
|
-
throw new globalThis.Error("The parameter 'sha256List' cannot be null.");
|
|
14076
|
-
else if (sha256List !== undefined)
|
|
14077
|
-
sha256List && sha256List.forEach(item => { url_ += "sha256List=" + encodeURIComponent("" + item) + "&"; });
|
|
14244
|
+
verify(signal) {
|
|
14245
|
+
let url_ = this.baseUrl + "/api/Scans/Verify";
|
|
14078
14246
|
url_ = url_.replace(/[?&]$/, "");
|
|
14079
14247
|
let options_ = {
|
|
14080
14248
|
method: "GET",
|
|
@@ -14084,10 +14252,10 @@ export class ScansClient extends BaseApiClient {
|
|
|
14084
14252
|
}
|
|
14085
14253
|
};
|
|
14086
14254
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
14087
|
-
return this.
|
|
14255
|
+
return this.processVerify(_response);
|
|
14088
14256
|
});
|
|
14089
14257
|
}
|
|
14090
|
-
|
|
14258
|
+
processVerify(response) {
|
|
14091
14259
|
const status = response.status;
|
|
14092
14260
|
let _headers = {};
|
|
14093
14261
|
if (response.headers && response.headers.forEach) {
|
|
@@ -14109,15 +14277,10 @@ export class ScansClient extends BaseApiClient {
|
|
|
14109
14277
|
return Promise.resolve(null);
|
|
14110
14278
|
}
|
|
14111
14279
|
/**
|
|
14112
|
-
* @param scanGuid (optional)
|
|
14113
14280
|
* @return OK
|
|
14114
14281
|
*/
|
|
14115
|
-
|
|
14116
|
-
let url_ = this.baseUrl + "/api/Scans/
|
|
14117
|
-
if (scanGuid === null)
|
|
14118
|
-
throw new globalThis.Error("The parameter 'scanGuid' cannot be null.");
|
|
14119
|
-
else if (scanGuid !== undefined)
|
|
14120
|
-
url_ += "scanGuid=" + encodeURIComponent("" + scanGuid) + "&";
|
|
14282
|
+
getScanCount(signal) {
|
|
14283
|
+
let url_ = this.baseUrl + "/api/Scans/GetScanCount";
|
|
14121
14284
|
url_ = url_.replace(/[?&]$/, "");
|
|
14122
14285
|
let options_ = {
|
|
14123
14286
|
method: "GET",
|
|
@@ -14127,10 +14290,10 @@ export class ScansClient extends BaseApiClient {
|
|
|
14127
14290
|
}
|
|
14128
14291
|
};
|
|
14129
14292
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
14130
|
-
return this.
|
|
14293
|
+
return this.processGetScanCount(_response);
|
|
14131
14294
|
});
|
|
14132
14295
|
}
|
|
14133
|
-
|
|
14296
|
+
processGetScanCount(response) {
|
|
14134
14297
|
const status = response.status;
|
|
14135
14298
|
let _headers = {};
|
|
14136
14299
|
if (response.headers && response.headers.forEach) {
|
|
@@ -14152,20 +14315,15 @@ export class ScansClient extends BaseApiClient {
|
|
|
14152
14315
|
return Promise.resolve(null);
|
|
14153
14316
|
}
|
|
14154
14317
|
/**
|
|
14155
|
-
* @param
|
|
14156
|
-
* @param end (optional)
|
|
14318
|
+
* @param guid (optional)
|
|
14157
14319
|
* @return OK
|
|
14158
14320
|
*/
|
|
14159
|
-
|
|
14160
|
-
let url_ = this.baseUrl + "/api/Scans/
|
|
14161
|
-
if (
|
|
14162
|
-
throw new globalThis.Error("The parameter '
|
|
14163
|
-
else if (
|
|
14164
|
-
url_ += "
|
|
14165
|
-
if (end === null)
|
|
14166
|
-
throw new globalThis.Error("The parameter 'end' cannot be null.");
|
|
14167
|
-
else if (end !== undefined)
|
|
14168
|
-
url_ += "end=" + encodeURIComponent(end ? "" + end.toISOString() : "") + "&";
|
|
14321
|
+
getScanByGuid(guid, signal) {
|
|
14322
|
+
let url_ = this.baseUrl + "/api/Scans/GetScanByGuid?";
|
|
14323
|
+
if (guid === null)
|
|
14324
|
+
throw new globalThis.Error("The parameter 'guid' cannot be null.");
|
|
14325
|
+
else if (guid !== undefined)
|
|
14326
|
+
url_ += "guid=" + encodeURIComponent("" + guid) + "&";
|
|
14169
14327
|
url_ = url_.replace(/[?&]$/, "");
|
|
14170
14328
|
let options_ = {
|
|
14171
14329
|
method: "GET",
|
|
@@ -14175,10 +14333,10 @@ export class ScansClient extends BaseApiClient {
|
|
|
14175
14333
|
}
|
|
14176
14334
|
};
|
|
14177
14335
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
14178
|
-
return this.
|
|
14336
|
+
return this.processGetScanByGuid(_response);
|
|
14179
14337
|
});
|
|
14180
14338
|
}
|
|
14181
|
-
|
|
14339
|
+
processGetScanByGuid(response) {
|
|
14182
14340
|
const status = response.status;
|
|
14183
14341
|
let _headers = {};
|
|
14184
14342
|
if (response.headers && response.headers.forEach) {
|
|
@@ -14200,16 +14358,193 @@ export class ScansClient extends BaseApiClient {
|
|
|
14200
14358
|
return Promise.resolve(null);
|
|
14201
14359
|
}
|
|
14202
14360
|
/**
|
|
14203
|
-
* @param
|
|
14204
|
-
* @param end (optional)
|
|
14205
|
-
* @param nickName (optional)
|
|
14361
|
+
* @param sha256 (optional)
|
|
14206
14362
|
* @return OK
|
|
14207
14363
|
*/
|
|
14208
|
-
|
|
14209
|
-
let url_ = this.baseUrl + "/api/Scans/
|
|
14210
|
-
if (
|
|
14211
|
-
throw new globalThis.Error("The parameter '
|
|
14212
|
-
else if (
|
|
14364
|
+
getScanBySha256(sha256, signal) {
|
|
14365
|
+
let url_ = this.baseUrl + "/api/Scans/GetScanBySha256?";
|
|
14366
|
+
if (sha256 === null)
|
|
14367
|
+
throw new globalThis.Error("The parameter 'sha256' cannot be null.");
|
|
14368
|
+
else if (sha256 !== undefined)
|
|
14369
|
+
url_ += "sha256=" + encodeURIComponent("" + sha256) + "&";
|
|
14370
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14371
|
+
let options_ = {
|
|
14372
|
+
method: "GET",
|
|
14373
|
+
signal,
|
|
14374
|
+
headers: {
|
|
14375
|
+
"Accept": "application/json"
|
|
14376
|
+
}
|
|
14377
|
+
};
|
|
14378
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14379
|
+
return this.processGetScanBySha256(_response);
|
|
14380
|
+
});
|
|
14381
|
+
}
|
|
14382
|
+
processGetScanBySha256(response) {
|
|
14383
|
+
const status = response.status;
|
|
14384
|
+
let _headers = {};
|
|
14385
|
+
if (response.headers && response.headers.forEach) {
|
|
14386
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14387
|
+
}
|
|
14388
|
+
;
|
|
14389
|
+
if (status === 200) {
|
|
14390
|
+
return response.text().then((_responseText) => {
|
|
14391
|
+
let result200 = null;
|
|
14392
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14393
|
+
return result200;
|
|
14394
|
+
});
|
|
14395
|
+
}
|
|
14396
|
+
else if (status !== 200 && status !== 204) {
|
|
14397
|
+
return response.text().then((_responseText) => {
|
|
14398
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14399
|
+
});
|
|
14400
|
+
}
|
|
14401
|
+
return Promise.resolve(null);
|
|
14402
|
+
}
|
|
14403
|
+
/**
|
|
14404
|
+
* @param sha256List (optional)
|
|
14405
|
+
* @return OK
|
|
14406
|
+
*/
|
|
14407
|
+
getScansBySha256List(sha256List, signal) {
|
|
14408
|
+
let url_ = this.baseUrl + "/api/Scans/GetScansBySha256List?";
|
|
14409
|
+
if (sha256List === null)
|
|
14410
|
+
throw new globalThis.Error("The parameter 'sha256List' cannot be null.");
|
|
14411
|
+
else if (sha256List !== undefined)
|
|
14412
|
+
sha256List && sha256List.forEach(item => { url_ += "sha256List=" + encodeURIComponent("" + item) + "&"; });
|
|
14413
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14414
|
+
let options_ = {
|
|
14415
|
+
method: "GET",
|
|
14416
|
+
signal,
|
|
14417
|
+
headers: {
|
|
14418
|
+
"Accept": "application/json"
|
|
14419
|
+
}
|
|
14420
|
+
};
|
|
14421
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14422
|
+
return this.processGetScansBySha256List(_response);
|
|
14423
|
+
});
|
|
14424
|
+
}
|
|
14425
|
+
processGetScansBySha256List(response) {
|
|
14426
|
+
const status = response.status;
|
|
14427
|
+
let _headers = {};
|
|
14428
|
+
if (response.headers && response.headers.forEach) {
|
|
14429
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14430
|
+
}
|
|
14431
|
+
;
|
|
14432
|
+
if (status === 200) {
|
|
14433
|
+
return response.text().then((_responseText) => {
|
|
14434
|
+
let result200 = null;
|
|
14435
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14436
|
+
return result200;
|
|
14437
|
+
});
|
|
14438
|
+
}
|
|
14439
|
+
else if (status !== 200 && status !== 204) {
|
|
14440
|
+
return response.text().then((_responseText) => {
|
|
14441
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14442
|
+
});
|
|
14443
|
+
}
|
|
14444
|
+
return Promise.resolve(null);
|
|
14445
|
+
}
|
|
14446
|
+
/**
|
|
14447
|
+
* @param scanGuid (optional)
|
|
14448
|
+
* @return OK
|
|
14449
|
+
*/
|
|
14450
|
+
getConsolidatedScanData(scanGuid, signal) {
|
|
14451
|
+
let url_ = this.baseUrl + "/api/Scans/GetConsolidatedScanData?";
|
|
14452
|
+
if (scanGuid === null)
|
|
14453
|
+
throw new globalThis.Error("The parameter 'scanGuid' cannot be null.");
|
|
14454
|
+
else if (scanGuid !== undefined)
|
|
14455
|
+
url_ += "scanGuid=" + encodeURIComponent("" + scanGuid) + "&";
|
|
14456
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14457
|
+
let options_ = {
|
|
14458
|
+
method: "GET",
|
|
14459
|
+
signal,
|
|
14460
|
+
headers: {
|
|
14461
|
+
"Accept": "application/json"
|
|
14462
|
+
}
|
|
14463
|
+
};
|
|
14464
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14465
|
+
return this.processGetConsolidatedScanData(_response);
|
|
14466
|
+
});
|
|
14467
|
+
}
|
|
14468
|
+
processGetConsolidatedScanData(response) {
|
|
14469
|
+
const status = response.status;
|
|
14470
|
+
let _headers = {};
|
|
14471
|
+
if (response.headers && response.headers.forEach) {
|
|
14472
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14473
|
+
}
|
|
14474
|
+
;
|
|
14475
|
+
if (status === 200) {
|
|
14476
|
+
return response.text().then((_responseText) => {
|
|
14477
|
+
let result200 = null;
|
|
14478
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14479
|
+
return result200;
|
|
14480
|
+
});
|
|
14481
|
+
}
|
|
14482
|
+
else if (status !== 200 && status !== 204) {
|
|
14483
|
+
return response.text().then((_responseText) => {
|
|
14484
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14485
|
+
});
|
|
14486
|
+
}
|
|
14487
|
+
return Promise.resolve(null);
|
|
14488
|
+
}
|
|
14489
|
+
/**
|
|
14490
|
+
* @param start (optional)
|
|
14491
|
+
* @param end (optional)
|
|
14492
|
+
* @return OK
|
|
14493
|
+
*/
|
|
14494
|
+
getScansByDateRange(start, end, signal) {
|
|
14495
|
+
let url_ = this.baseUrl + "/api/Scans/GetScansByDateRange?";
|
|
14496
|
+
if (start === null)
|
|
14497
|
+
throw new globalThis.Error("The parameter 'start' cannot be null.");
|
|
14498
|
+
else if (start !== undefined)
|
|
14499
|
+
url_ += "start=" + encodeURIComponent(start ? "" + start.toISOString() : "") + "&";
|
|
14500
|
+
if (end === null)
|
|
14501
|
+
throw new globalThis.Error("The parameter 'end' cannot be null.");
|
|
14502
|
+
else if (end !== undefined)
|
|
14503
|
+
url_ += "end=" + encodeURIComponent(end ? "" + end.toISOString() : "") + "&";
|
|
14504
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14505
|
+
let options_ = {
|
|
14506
|
+
method: "GET",
|
|
14507
|
+
signal,
|
|
14508
|
+
headers: {
|
|
14509
|
+
"Accept": "application/json"
|
|
14510
|
+
}
|
|
14511
|
+
};
|
|
14512
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14513
|
+
return this.processGetScansByDateRange(_response);
|
|
14514
|
+
});
|
|
14515
|
+
}
|
|
14516
|
+
processGetScansByDateRange(response) {
|
|
14517
|
+
const status = response.status;
|
|
14518
|
+
let _headers = {};
|
|
14519
|
+
if (response.headers && response.headers.forEach) {
|
|
14520
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14521
|
+
}
|
|
14522
|
+
;
|
|
14523
|
+
if (status === 200) {
|
|
14524
|
+
return response.text().then((_responseText) => {
|
|
14525
|
+
let result200 = null;
|
|
14526
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14527
|
+
return result200;
|
|
14528
|
+
});
|
|
14529
|
+
}
|
|
14530
|
+
else if (status !== 200 && status !== 204) {
|
|
14531
|
+
return response.text().then((_responseText) => {
|
|
14532
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14533
|
+
});
|
|
14534
|
+
}
|
|
14535
|
+
return Promise.resolve(null);
|
|
14536
|
+
}
|
|
14537
|
+
/**
|
|
14538
|
+
* @param start (optional)
|
|
14539
|
+
* @param end (optional)
|
|
14540
|
+
* @param nickName (optional)
|
|
14541
|
+
* @return OK
|
|
14542
|
+
*/
|
|
14543
|
+
getScansByDateRangeUser(start, end, nickName, signal) {
|
|
14544
|
+
let url_ = this.baseUrl + "/api/Scans/GetScansByDateRangeUser?";
|
|
14545
|
+
if (start === null)
|
|
14546
|
+
throw new globalThis.Error("The parameter 'start' cannot be null.");
|
|
14547
|
+
else if (start !== undefined)
|
|
14213
14548
|
url_ += "start=" + encodeURIComponent(start ? "" + start.toISOString() : "") + "&";
|
|
14214
14549
|
if (end === null)
|
|
14215
14550
|
throw new globalThis.Error("The parameter 'end' cannot be null.");
|
|
@@ -14221,17 +14556,1658 @@ export class ScansClient extends BaseApiClient {
|
|
|
14221
14556
|
url_ += "nickName=" + encodeURIComponent("" + nickName) + "&";
|
|
14222
14557
|
url_ = url_.replace(/[?&]$/, "");
|
|
14223
14558
|
let options_ = {
|
|
14224
|
-
method: "GET",
|
|
14559
|
+
method: "GET",
|
|
14560
|
+
signal,
|
|
14561
|
+
headers: {
|
|
14562
|
+
"Accept": "application/json"
|
|
14563
|
+
}
|
|
14564
|
+
};
|
|
14565
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14566
|
+
return this.processGetScansByDateRangeUser(_response);
|
|
14567
|
+
});
|
|
14568
|
+
}
|
|
14569
|
+
processGetScansByDateRangeUser(response) {
|
|
14570
|
+
const status = response.status;
|
|
14571
|
+
let _headers = {};
|
|
14572
|
+
if (response.headers && response.headers.forEach) {
|
|
14573
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14574
|
+
}
|
|
14575
|
+
;
|
|
14576
|
+
if (status === 200) {
|
|
14577
|
+
return response.text().then((_responseText) => {
|
|
14578
|
+
let result200 = null;
|
|
14579
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14580
|
+
return result200;
|
|
14581
|
+
});
|
|
14582
|
+
}
|
|
14583
|
+
else if (status !== 200 && status !== 204) {
|
|
14584
|
+
return response.text().then((_responseText) => {
|
|
14585
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14586
|
+
});
|
|
14587
|
+
}
|
|
14588
|
+
return Promise.resolve(null);
|
|
14589
|
+
}
|
|
14590
|
+
/**
|
|
14591
|
+
* @param body (optional)
|
|
14592
|
+
* @return OK
|
|
14593
|
+
*/
|
|
14594
|
+
add(body, signal) {
|
|
14595
|
+
let url_ = this.baseUrl + "/api/Scans/Add";
|
|
14596
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14597
|
+
const content_ = JSON.stringify(body);
|
|
14598
|
+
let options_ = {
|
|
14599
|
+
body: content_,
|
|
14600
|
+
method: "POST",
|
|
14601
|
+
signal,
|
|
14602
|
+
headers: {
|
|
14603
|
+
"Content-Type": "application/json",
|
|
14604
|
+
"Accept": "application/json"
|
|
14605
|
+
}
|
|
14606
|
+
};
|
|
14607
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14608
|
+
return this.processAdd(_response);
|
|
14609
|
+
});
|
|
14610
|
+
}
|
|
14611
|
+
processAdd(response) {
|
|
14612
|
+
const status = response.status;
|
|
14613
|
+
let _headers = {};
|
|
14614
|
+
if (response.headers && response.headers.forEach) {
|
|
14615
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14616
|
+
}
|
|
14617
|
+
;
|
|
14618
|
+
if (status === 200) {
|
|
14619
|
+
return response.text().then((_responseText) => {
|
|
14620
|
+
let result200 = null;
|
|
14621
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14622
|
+
return result200;
|
|
14623
|
+
});
|
|
14624
|
+
}
|
|
14625
|
+
else if (status !== 200 && status !== 204) {
|
|
14626
|
+
return response.text().then((_responseText) => {
|
|
14627
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14628
|
+
});
|
|
14629
|
+
}
|
|
14630
|
+
return Promise.resolve(null);
|
|
14631
|
+
}
|
|
14632
|
+
/**
|
|
14633
|
+
* @param body (optional)
|
|
14634
|
+
* @return OK
|
|
14635
|
+
*/
|
|
14636
|
+
addMultiple(body, signal) {
|
|
14637
|
+
let url_ = this.baseUrl + "/api/Scans/AddMultiple";
|
|
14638
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14639
|
+
const content_ = JSON.stringify(body);
|
|
14640
|
+
let options_ = {
|
|
14641
|
+
body: content_,
|
|
14642
|
+
method: "POST",
|
|
14643
|
+
signal,
|
|
14644
|
+
headers: {
|
|
14645
|
+
"Content-Type": "application/json",
|
|
14646
|
+
"Accept": "application/json"
|
|
14647
|
+
}
|
|
14648
|
+
};
|
|
14649
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14650
|
+
return this.processAddMultiple(_response);
|
|
14651
|
+
});
|
|
14652
|
+
}
|
|
14653
|
+
processAddMultiple(response) {
|
|
14654
|
+
const status = response.status;
|
|
14655
|
+
let _headers = {};
|
|
14656
|
+
if (response.headers && response.headers.forEach) {
|
|
14657
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14658
|
+
}
|
|
14659
|
+
;
|
|
14660
|
+
if (status === 200) {
|
|
14661
|
+
return response.text().then((_responseText) => {
|
|
14662
|
+
let result200 = null;
|
|
14663
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14664
|
+
return result200;
|
|
14665
|
+
});
|
|
14666
|
+
}
|
|
14667
|
+
else if (status !== 200 && status !== 204) {
|
|
14668
|
+
return response.text().then((_responseText) => {
|
|
14669
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14670
|
+
});
|
|
14671
|
+
}
|
|
14672
|
+
return Promise.resolve(null);
|
|
14673
|
+
}
|
|
14674
|
+
/**
|
|
14675
|
+
* @param body (optional)
|
|
14676
|
+
* @return OK
|
|
14677
|
+
*/
|
|
14678
|
+
update(body, signal) {
|
|
14679
|
+
let url_ = this.baseUrl + "/api/Scans/Update";
|
|
14680
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14681
|
+
const content_ = JSON.stringify(body);
|
|
14682
|
+
let options_ = {
|
|
14683
|
+
body: content_,
|
|
14684
|
+
method: "POST",
|
|
14685
|
+
signal,
|
|
14686
|
+
headers: {
|
|
14687
|
+
"Content-Type": "application/json",
|
|
14688
|
+
"Accept": "application/json"
|
|
14689
|
+
}
|
|
14690
|
+
};
|
|
14691
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14692
|
+
return this.processUpdate(_response);
|
|
14693
|
+
});
|
|
14694
|
+
}
|
|
14695
|
+
processUpdate(response) {
|
|
14696
|
+
const status = response.status;
|
|
14697
|
+
let _headers = {};
|
|
14698
|
+
if (response.headers && response.headers.forEach) {
|
|
14699
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14700
|
+
}
|
|
14701
|
+
;
|
|
14702
|
+
if (status === 200) {
|
|
14703
|
+
return response.text().then((_responseText) => {
|
|
14704
|
+
let result200 = null;
|
|
14705
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14706
|
+
return result200;
|
|
14707
|
+
});
|
|
14708
|
+
}
|
|
14709
|
+
else if (status !== 200 && status !== 204) {
|
|
14710
|
+
return response.text().then((_responseText) => {
|
|
14711
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14712
|
+
});
|
|
14713
|
+
}
|
|
14714
|
+
return Promise.resolve(null);
|
|
14715
|
+
}
|
|
14716
|
+
/**
|
|
14717
|
+
* @param body (optional)
|
|
14718
|
+
* @return OK
|
|
14719
|
+
*/
|
|
14720
|
+
delete(body, signal) {
|
|
14721
|
+
let url_ = this.baseUrl + "/api/Scans/Delete";
|
|
14722
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14723
|
+
const content_ = JSON.stringify(body);
|
|
14724
|
+
let options_ = {
|
|
14725
|
+
body: content_,
|
|
14726
|
+
method: "POST",
|
|
14727
|
+
signal,
|
|
14728
|
+
headers: {
|
|
14729
|
+
"Content-Type": "application/json",
|
|
14730
|
+
"Accept": "application/json"
|
|
14731
|
+
}
|
|
14732
|
+
};
|
|
14733
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14734
|
+
return this.processDelete(_response);
|
|
14735
|
+
});
|
|
14736
|
+
}
|
|
14737
|
+
processDelete(response) {
|
|
14738
|
+
const status = response.status;
|
|
14739
|
+
let _headers = {};
|
|
14740
|
+
if (response.headers && response.headers.forEach) {
|
|
14741
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14742
|
+
}
|
|
14743
|
+
;
|
|
14744
|
+
if (status === 200) {
|
|
14745
|
+
return response.text().then((_responseText) => {
|
|
14746
|
+
let result200 = null;
|
|
14747
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14748
|
+
return result200;
|
|
14749
|
+
});
|
|
14750
|
+
}
|
|
14751
|
+
else if (status !== 200 && status !== 204) {
|
|
14752
|
+
return response.text().then((_responseText) => {
|
|
14753
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14754
|
+
});
|
|
14755
|
+
}
|
|
14756
|
+
return Promise.resolve(null);
|
|
14757
|
+
}
|
|
14758
|
+
/**
|
|
14759
|
+
* @param body (optional)
|
|
14760
|
+
* @return OK
|
|
14761
|
+
*/
|
|
14762
|
+
deleteMultiple(body, signal) {
|
|
14763
|
+
let url_ = this.baseUrl + "/api/Scans/DeleteMultiple";
|
|
14764
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14765
|
+
const content_ = JSON.stringify(body);
|
|
14766
|
+
let options_ = {
|
|
14767
|
+
body: content_,
|
|
14768
|
+
method: "POST",
|
|
14769
|
+
signal,
|
|
14770
|
+
headers: {
|
|
14771
|
+
"Content-Type": "application/json",
|
|
14772
|
+
"Accept": "application/json"
|
|
14773
|
+
}
|
|
14774
|
+
};
|
|
14775
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14776
|
+
return this.processDeleteMultiple(_response);
|
|
14777
|
+
});
|
|
14778
|
+
}
|
|
14779
|
+
processDeleteMultiple(response) {
|
|
14780
|
+
const status = response.status;
|
|
14781
|
+
let _headers = {};
|
|
14782
|
+
if (response.headers && response.headers.forEach) {
|
|
14783
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14784
|
+
}
|
|
14785
|
+
;
|
|
14786
|
+
if (status === 200) {
|
|
14787
|
+
return response.text().then((_responseText) => {
|
|
14788
|
+
let result200 = null;
|
|
14789
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14790
|
+
return result200;
|
|
14791
|
+
});
|
|
14792
|
+
}
|
|
14793
|
+
else if (status !== 200 && status !== 204) {
|
|
14794
|
+
return response.text().then((_responseText) => {
|
|
14795
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14796
|
+
});
|
|
14797
|
+
}
|
|
14798
|
+
return Promise.resolve(null);
|
|
14799
|
+
}
|
|
14800
|
+
/**
|
|
14801
|
+
* @param id (optional)
|
|
14802
|
+
* @return OK
|
|
14803
|
+
*/
|
|
14804
|
+
getById(id, signal) {
|
|
14805
|
+
let url_ = this.baseUrl + "/api/Scans/GetById?";
|
|
14806
|
+
if (id === null)
|
|
14807
|
+
throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
14808
|
+
else if (id !== undefined)
|
|
14809
|
+
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
14810
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14811
|
+
let options_ = {
|
|
14812
|
+
method: "GET",
|
|
14813
|
+
signal,
|
|
14814
|
+
headers: {
|
|
14815
|
+
"Accept": "application/json"
|
|
14816
|
+
}
|
|
14817
|
+
};
|
|
14818
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14819
|
+
return this.processGetById(_response);
|
|
14820
|
+
});
|
|
14821
|
+
}
|
|
14822
|
+
processGetById(response) {
|
|
14823
|
+
const status = response.status;
|
|
14824
|
+
let _headers = {};
|
|
14825
|
+
if (response.headers && response.headers.forEach) {
|
|
14826
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14827
|
+
}
|
|
14828
|
+
;
|
|
14829
|
+
if (status === 200) {
|
|
14830
|
+
return response.text().then((_responseText) => {
|
|
14831
|
+
let result200 = null;
|
|
14832
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14833
|
+
return result200;
|
|
14834
|
+
});
|
|
14835
|
+
}
|
|
14836
|
+
else if (status !== 200 && status !== 204) {
|
|
14837
|
+
return response.text().then((_responseText) => {
|
|
14838
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14839
|
+
});
|
|
14840
|
+
}
|
|
14841
|
+
return Promise.resolve(null);
|
|
14842
|
+
}
|
|
14843
|
+
/**
|
|
14844
|
+
* @return OK
|
|
14845
|
+
*/
|
|
14846
|
+
getAll(signal) {
|
|
14847
|
+
let url_ = this.baseUrl + "/api/Scans/GetAll";
|
|
14848
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14849
|
+
let options_ = {
|
|
14850
|
+
method: "GET",
|
|
14851
|
+
signal,
|
|
14852
|
+
headers: {
|
|
14853
|
+
"Accept": "application/json"
|
|
14854
|
+
}
|
|
14855
|
+
};
|
|
14856
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14857
|
+
return this.processGetAll(_response);
|
|
14858
|
+
});
|
|
14859
|
+
}
|
|
14860
|
+
processGetAll(response) {
|
|
14861
|
+
const status = response.status;
|
|
14862
|
+
let _headers = {};
|
|
14863
|
+
if (response.headers && response.headers.forEach) {
|
|
14864
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14865
|
+
}
|
|
14866
|
+
;
|
|
14867
|
+
if (status === 200) {
|
|
14868
|
+
return response.text().then((_responseText) => {
|
|
14869
|
+
let result200 = null;
|
|
14870
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14871
|
+
return result200;
|
|
14872
|
+
});
|
|
14873
|
+
}
|
|
14874
|
+
else if (status !== 200 && status !== 204) {
|
|
14875
|
+
return response.text().then((_responseText) => {
|
|
14876
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14877
|
+
});
|
|
14878
|
+
}
|
|
14879
|
+
return Promise.resolve(null);
|
|
14880
|
+
}
|
|
14881
|
+
/**
|
|
14882
|
+
* @param skip (optional)
|
|
14883
|
+
* @param take (optional)
|
|
14884
|
+
* @return OK
|
|
14885
|
+
*/
|
|
14886
|
+
pagination(skip, take, signal) {
|
|
14887
|
+
let url_ = this.baseUrl + "/api/Scans/Pagination?";
|
|
14888
|
+
if (skip === null)
|
|
14889
|
+
throw new globalThis.Error("The parameter 'skip' cannot be null.");
|
|
14890
|
+
else if (skip !== undefined)
|
|
14891
|
+
url_ += "skip=" + encodeURIComponent("" + skip) + "&";
|
|
14892
|
+
if (take === null)
|
|
14893
|
+
throw new globalThis.Error("The parameter 'take' cannot be null.");
|
|
14894
|
+
else if (take !== undefined)
|
|
14895
|
+
url_ += "take=" + encodeURIComponent("" + take) + "&";
|
|
14896
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14897
|
+
let options_ = {
|
|
14898
|
+
method: "GET",
|
|
14899
|
+
signal,
|
|
14900
|
+
headers: {
|
|
14901
|
+
"Accept": "application/json"
|
|
14902
|
+
}
|
|
14903
|
+
};
|
|
14904
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14905
|
+
return this.processPagination(_response);
|
|
14906
|
+
});
|
|
14907
|
+
}
|
|
14908
|
+
processPagination(response) {
|
|
14909
|
+
const status = response.status;
|
|
14910
|
+
let _headers = {};
|
|
14911
|
+
if (response.headers && response.headers.forEach) {
|
|
14912
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14913
|
+
}
|
|
14914
|
+
;
|
|
14915
|
+
if (status === 200) {
|
|
14916
|
+
return response.text().then((_responseText) => {
|
|
14917
|
+
let result200 = null;
|
|
14918
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14919
|
+
return result200;
|
|
14920
|
+
});
|
|
14921
|
+
}
|
|
14922
|
+
else if (status !== 200 && status !== 204) {
|
|
14923
|
+
return response.text().then((_responseText) => {
|
|
14924
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14925
|
+
});
|
|
14926
|
+
}
|
|
14927
|
+
return Promise.resolve(null);
|
|
14928
|
+
}
|
|
14929
|
+
/**
|
|
14930
|
+
* @param body (optional)
|
|
14931
|
+
* @return OK
|
|
14932
|
+
*/
|
|
14933
|
+
getFiltersBase(body, signal) {
|
|
14934
|
+
let url_ = this.baseUrl + "/api/Scans/GetFiltersBase";
|
|
14935
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14936
|
+
const content_ = JSON.stringify(body);
|
|
14937
|
+
let options_ = {
|
|
14938
|
+
body: content_,
|
|
14939
|
+
method: "POST",
|
|
14940
|
+
signal,
|
|
14941
|
+
headers: {
|
|
14942
|
+
"Content-Type": "application/json",
|
|
14943
|
+
"Accept": "application/json"
|
|
14944
|
+
}
|
|
14945
|
+
};
|
|
14946
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14947
|
+
return this.processGetFiltersBase(_response);
|
|
14948
|
+
});
|
|
14949
|
+
}
|
|
14950
|
+
processGetFiltersBase(response) {
|
|
14951
|
+
const status = response.status;
|
|
14952
|
+
let _headers = {};
|
|
14953
|
+
if (response.headers && response.headers.forEach) {
|
|
14954
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14955
|
+
}
|
|
14956
|
+
;
|
|
14957
|
+
if (status === 200) {
|
|
14958
|
+
return response.text().then((_responseText) => {
|
|
14959
|
+
let result200 = null;
|
|
14960
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14961
|
+
return result200;
|
|
14962
|
+
});
|
|
14963
|
+
}
|
|
14964
|
+
else if (status !== 200 && status !== 204) {
|
|
14965
|
+
return response.text().then((_responseText) => {
|
|
14966
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14967
|
+
});
|
|
14968
|
+
}
|
|
14969
|
+
return Promise.resolve(null);
|
|
14970
|
+
}
|
|
14971
|
+
}
|
|
14972
|
+
export class ScanScoresClient extends BaseApiClient {
|
|
14973
|
+
constructor(configuration, baseUrl, http) {
|
|
14974
|
+
super(configuration);
|
|
14975
|
+
this.jsonParseReviver = undefined;
|
|
14976
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
14977
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
14978
|
+
}
|
|
14979
|
+
/**
|
|
14980
|
+
* @param body (optional)
|
|
14981
|
+
* @return OK
|
|
14982
|
+
*/
|
|
14983
|
+
add(body, signal) {
|
|
14984
|
+
let url_ = this.baseUrl + "/api/ScanScores/Add";
|
|
14985
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14986
|
+
const content_ = JSON.stringify(body);
|
|
14987
|
+
let options_ = {
|
|
14988
|
+
body: content_,
|
|
14989
|
+
method: "POST",
|
|
14990
|
+
signal,
|
|
14991
|
+
headers: {
|
|
14992
|
+
"Content-Type": "application/json",
|
|
14993
|
+
"Accept": "application/json"
|
|
14994
|
+
}
|
|
14995
|
+
};
|
|
14996
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
14997
|
+
return this.processAdd(_response);
|
|
14998
|
+
});
|
|
14999
|
+
}
|
|
15000
|
+
processAdd(response) {
|
|
15001
|
+
const status = response.status;
|
|
15002
|
+
let _headers = {};
|
|
15003
|
+
if (response.headers && response.headers.forEach) {
|
|
15004
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15005
|
+
}
|
|
15006
|
+
;
|
|
15007
|
+
if (status === 200) {
|
|
15008
|
+
return response.text().then((_responseText) => {
|
|
15009
|
+
let result200 = null;
|
|
15010
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15011
|
+
return result200;
|
|
15012
|
+
});
|
|
15013
|
+
}
|
|
15014
|
+
else if (status !== 200 && status !== 204) {
|
|
15015
|
+
return response.text().then((_responseText) => {
|
|
15016
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15017
|
+
});
|
|
15018
|
+
}
|
|
15019
|
+
return Promise.resolve(null);
|
|
15020
|
+
}
|
|
15021
|
+
/**
|
|
15022
|
+
* @param body (optional)
|
|
15023
|
+
* @return OK
|
|
15024
|
+
*/
|
|
15025
|
+
addMultiple(body, signal) {
|
|
15026
|
+
let url_ = this.baseUrl + "/api/ScanScores/AddMultiple";
|
|
15027
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15028
|
+
const content_ = JSON.stringify(body);
|
|
15029
|
+
let options_ = {
|
|
15030
|
+
body: content_,
|
|
15031
|
+
method: "POST",
|
|
15032
|
+
signal,
|
|
15033
|
+
headers: {
|
|
15034
|
+
"Content-Type": "application/json",
|
|
15035
|
+
"Accept": "application/json"
|
|
15036
|
+
}
|
|
15037
|
+
};
|
|
15038
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15039
|
+
return this.processAddMultiple(_response);
|
|
15040
|
+
});
|
|
15041
|
+
}
|
|
15042
|
+
processAddMultiple(response) {
|
|
15043
|
+
const status = response.status;
|
|
15044
|
+
let _headers = {};
|
|
15045
|
+
if (response.headers && response.headers.forEach) {
|
|
15046
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15047
|
+
}
|
|
15048
|
+
;
|
|
15049
|
+
if (status === 200) {
|
|
15050
|
+
return response.text().then((_responseText) => {
|
|
15051
|
+
let result200 = null;
|
|
15052
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15053
|
+
return result200;
|
|
15054
|
+
});
|
|
15055
|
+
}
|
|
15056
|
+
else if (status !== 200 && status !== 204) {
|
|
15057
|
+
return response.text().then((_responseText) => {
|
|
15058
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15059
|
+
});
|
|
15060
|
+
}
|
|
15061
|
+
return Promise.resolve(null);
|
|
15062
|
+
}
|
|
15063
|
+
/**
|
|
15064
|
+
* @param body (optional)
|
|
15065
|
+
* @return OK
|
|
15066
|
+
*/
|
|
15067
|
+
update(body, signal) {
|
|
15068
|
+
let url_ = this.baseUrl + "/api/ScanScores/Update";
|
|
15069
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15070
|
+
const content_ = JSON.stringify(body);
|
|
15071
|
+
let options_ = {
|
|
15072
|
+
body: content_,
|
|
15073
|
+
method: "POST",
|
|
15074
|
+
signal,
|
|
15075
|
+
headers: {
|
|
15076
|
+
"Content-Type": "application/json",
|
|
15077
|
+
"Accept": "application/json"
|
|
15078
|
+
}
|
|
15079
|
+
};
|
|
15080
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15081
|
+
return this.processUpdate(_response);
|
|
15082
|
+
});
|
|
15083
|
+
}
|
|
15084
|
+
processUpdate(response) {
|
|
15085
|
+
const status = response.status;
|
|
15086
|
+
let _headers = {};
|
|
15087
|
+
if (response.headers && response.headers.forEach) {
|
|
15088
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15089
|
+
}
|
|
15090
|
+
;
|
|
15091
|
+
if (status === 200) {
|
|
15092
|
+
return response.text().then((_responseText) => {
|
|
15093
|
+
let result200 = null;
|
|
15094
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15095
|
+
return result200;
|
|
15096
|
+
});
|
|
15097
|
+
}
|
|
15098
|
+
else if (status !== 200 && status !== 204) {
|
|
15099
|
+
return response.text().then((_responseText) => {
|
|
15100
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15101
|
+
});
|
|
15102
|
+
}
|
|
15103
|
+
return Promise.resolve(null);
|
|
15104
|
+
}
|
|
15105
|
+
/**
|
|
15106
|
+
* @param body (optional)
|
|
15107
|
+
* @return OK
|
|
15108
|
+
*/
|
|
15109
|
+
delete(body, signal) {
|
|
15110
|
+
let url_ = this.baseUrl + "/api/ScanScores/Delete";
|
|
15111
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15112
|
+
const content_ = JSON.stringify(body);
|
|
15113
|
+
let options_ = {
|
|
15114
|
+
body: content_,
|
|
15115
|
+
method: "POST",
|
|
15116
|
+
signal,
|
|
15117
|
+
headers: {
|
|
15118
|
+
"Content-Type": "application/json",
|
|
15119
|
+
"Accept": "application/json"
|
|
15120
|
+
}
|
|
15121
|
+
};
|
|
15122
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15123
|
+
return this.processDelete(_response);
|
|
15124
|
+
});
|
|
15125
|
+
}
|
|
15126
|
+
processDelete(response) {
|
|
15127
|
+
const status = response.status;
|
|
15128
|
+
let _headers = {};
|
|
15129
|
+
if (response.headers && response.headers.forEach) {
|
|
15130
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15131
|
+
}
|
|
15132
|
+
;
|
|
15133
|
+
if (status === 200) {
|
|
15134
|
+
return response.text().then((_responseText) => {
|
|
15135
|
+
let result200 = null;
|
|
15136
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15137
|
+
return result200;
|
|
15138
|
+
});
|
|
15139
|
+
}
|
|
15140
|
+
else if (status !== 200 && status !== 204) {
|
|
15141
|
+
return response.text().then((_responseText) => {
|
|
15142
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15143
|
+
});
|
|
15144
|
+
}
|
|
15145
|
+
return Promise.resolve(null);
|
|
15146
|
+
}
|
|
15147
|
+
/**
|
|
15148
|
+
* @param body (optional)
|
|
15149
|
+
* @return OK
|
|
15150
|
+
*/
|
|
15151
|
+
deleteMultiple(body, signal) {
|
|
15152
|
+
let url_ = this.baseUrl + "/api/ScanScores/DeleteMultiple";
|
|
15153
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15154
|
+
const content_ = JSON.stringify(body);
|
|
15155
|
+
let options_ = {
|
|
15156
|
+
body: content_,
|
|
15157
|
+
method: "POST",
|
|
15158
|
+
signal,
|
|
15159
|
+
headers: {
|
|
15160
|
+
"Content-Type": "application/json",
|
|
15161
|
+
"Accept": "application/json"
|
|
15162
|
+
}
|
|
15163
|
+
};
|
|
15164
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15165
|
+
return this.processDeleteMultiple(_response);
|
|
15166
|
+
});
|
|
15167
|
+
}
|
|
15168
|
+
processDeleteMultiple(response) {
|
|
15169
|
+
const status = response.status;
|
|
15170
|
+
let _headers = {};
|
|
15171
|
+
if (response.headers && response.headers.forEach) {
|
|
15172
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15173
|
+
}
|
|
15174
|
+
;
|
|
15175
|
+
if (status === 200) {
|
|
15176
|
+
return response.text().then((_responseText) => {
|
|
15177
|
+
let result200 = null;
|
|
15178
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15179
|
+
return result200;
|
|
15180
|
+
});
|
|
15181
|
+
}
|
|
15182
|
+
else if (status !== 200 && status !== 204) {
|
|
15183
|
+
return response.text().then((_responseText) => {
|
|
15184
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15185
|
+
});
|
|
15186
|
+
}
|
|
15187
|
+
return Promise.resolve(null);
|
|
15188
|
+
}
|
|
15189
|
+
/**
|
|
15190
|
+
* @param id (optional)
|
|
15191
|
+
* @return OK
|
|
15192
|
+
*/
|
|
15193
|
+
getById(id, signal) {
|
|
15194
|
+
let url_ = this.baseUrl + "/api/ScanScores/GetById?";
|
|
15195
|
+
if (id === null)
|
|
15196
|
+
throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
15197
|
+
else if (id !== undefined)
|
|
15198
|
+
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
15199
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15200
|
+
let options_ = {
|
|
15201
|
+
method: "GET",
|
|
15202
|
+
signal,
|
|
15203
|
+
headers: {
|
|
15204
|
+
"Accept": "application/json"
|
|
15205
|
+
}
|
|
15206
|
+
};
|
|
15207
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15208
|
+
return this.processGetById(_response);
|
|
15209
|
+
});
|
|
15210
|
+
}
|
|
15211
|
+
processGetById(response) {
|
|
15212
|
+
const status = response.status;
|
|
15213
|
+
let _headers = {};
|
|
15214
|
+
if (response.headers && response.headers.forEach) {
|
|
15215
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15216
|
+
}
|
|
15217
|
+
;
|
|
15218
|
+
if (status === 200) {
|
|
15219
|
+
return response.text().then((_responseText) => {
|
|
15220
|
+
let result200 = null;
|
|
15221
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15222
|
+
return result200;
|
|
15223
|
+
});
|
|
15224
|
+
}
|
|
15225
|
+
else if (status !== 200 && status !== 204) {
|
|
15226
|
+
return response.text().then((_responseText) => {
|
|
15227
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15228
|
+
});
|
|
15229
|
+
}
|
|
15230
|
+
return Promise.resolve(null);
|
|
15231
|
+
}
|
|
15232
|
+
/**
|
|
15233
|
+
* @return OK
|
|
15234
|
+
*/
|
|
15235
|
+
getAll(signal) {
|
|
15236
|
+
let url_ = this.baseUrl + "/api/ScanScores/GetAll";
|
|
15237
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15238
|
+
let options_ = {
|
|
15239
|
+
method: "GET",
|
|
15240
|
+
signal,
|
|
15241
|
+
headers: {
|
|
15242
|
+
"Accept": "application/json"
|
|
15243
|
+
}
|
|
15244
|
+
};
|
|
15245
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15246
|
+
return this.processGetAll(_response);
|
|
15247
|
+
});
|
|
15248
|
+
}
|
|
15249
|
+
processGetAll(response) {
|
|
15250
|
+
const status = response.status;
|
|
15251
|
+
let _headers = {};
|
|
15252
|
+
if (response.headers && response.headers.forEach) {
|
|
15253
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15254
|
+
}
|
|
15255
|
+
;
|
|
15256
|
+
if (status === 200) {
|
|
15257
|
+
return response.text().then((_responseText) => {
|
|
15258
|
+
let result200 = null;
|
|
15259
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15260
|
+
return result200;
|
|
15261
|
+
});
|
|
15262
|
+
}
|
|
15263
|
+
else if (status !== 200 && status !== 204) {
|
|
15264
|
+
return response.text().then((_responseText) => {
|
|
15265
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15266
|
+
});
|
|
15267
|
+
}
|
|
15268
|
+
return Promise.resolve(null);
|
|
15269
|
+
}
|
|
15270
|
+
/**
|
|
15271
|
+
* @param skip (optional)
|
|
15272
|
+
* @param take (optional)
|
|
15273
|
+
* @return OK
|
|
15274
|
+
*/
|
|
15275
|
+
pagination(skip, take, signal) {
|
|
15276
|
+
let url_ = this.baseUrl + "/api/ScanScores/Pagination?";
|
|
15277
|
+
if (skip === null)
|
|
15278
|
+
throw new globalThis.Error("The parameter 'skip' cannot be null.");
|
|
15279
|
+
else if (skip !== undefined)
|
|
15280
|
+
url_ += "skip=" + encodeURIComponent("" + skip) + "&";
|
|
15281
|
+
if (take === null)
|
|
15282
|
+
throw new globalThis.Error("The parameter 'take' cannot be null.");
|
|
15283
|
+
else if (take !== undefined)
|
|
15284
|
+
url_ += "take=" + encodeURIComponent("" + take) + "&";
|
|
15285
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15286
|
+
let options_ = {
|
|
15287
|
+
method: "GET",
|
|
15288
|
+
signal,
|
|
15289
|
+
headers: {
|
|
15290
|
+
"Accept": "application/json"
|
|
15291
|
+
}
|
|
15292
|
+
};
|
|
15293
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15294
|
+
return this.processPagination(_response);
|
|
15295
|
+
});
|
|
15296
|
+
}
|
|
15297
|
+
processPagination(response) {
|
|
15298
|
+
const status = response.status;
|
|
15299
|
+
let _headers = {};
|
|
15300
|
+
if (response.headers && response.headers.forEach) {
|
|
15301
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15302
|
+
}
|
|
15303
|
+
;
|
|
15304
|
+
if (status === 200) {
|
|
15305
|
+
return response.text().then((_responseText) => {
|
|
15306
|
+
let result200 = null;
|
|
15307
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15308
|
+
return result200;
|
|
15309
|
+
});
|
|
15310
|
+
}
|
|
15311
|
+
else if (status !== 200 && status !== 204) {
|
|
15312
|
+
return response.text().then((_responseText) => {
|
|
15313
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15314
|
+
});
|
|
15315
|
+
}
|
|
15316
|
+
return Promise.resolve(null);
|
|
15317
|
+
}
|
|
15318
|
+
/**
|
|
15319
|
+
* @param body (optional)
|
|
15320
|
+
* @return OK
|
|
15321
|
+
*/
|
|
15322
|
+
getFiltersBase(body, signal) {
|
|
15323
|
+
let url_ = this.baseUrl + "/api/ScanScores/GetFiltersBase";
|
|
15324
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15325
|
+
const content_ = JSON.stringify(body);
|
|
15326
|
+
let options_ = {
|
|
15327
|
+
body: content_,
|
|
15328
|
+
method: "POST",
|
|
15329
|
+
signal,
|
|
15330
|
+
headers: {
|
|
15331
|
+
"Content-Type": "application/json",
|
|
15332
|
+
"Accept": "application/json"
|
|
15333
|
+
}
|
|
15334
|
+
};
|
|
15335
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15336
|
+
return this.processGetFiltersBase(_response);
|
|
15337
|
+
});
|
|
15338
|
+
}
|
|
15339
|
+
processGetFiltersBase(response) {
|
|
15340
|
+
const status = response.status;
|
|
15341
|
+
let _headers = {};
|
|
15342
|
+
if (response.headers && response.headers.forEach) {
|
|
15343
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15344
|
+
}
|
|
15345
|
+
;
|
|
15346
|
+
if (status === 200) {
|
|
15347
|
+
return response.text().then((_responseText) => {
|
|
15348
|
+
let result200 = null;
|
|
15349
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15350
|
+
return result200;
|
|
15351
|
+
});
|
|
15352
|
+
}
|
|
15353
|
+
else if (status !== 200 && status !== 204) {
|
|
15354
|
+
return response.text().then((_responseText) => {
|
|
15355
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15356
|
+
});
|
|
15357
|
+
}
|
|
15358
|
+
return Promise.resolve(null);
|
|
15359
|
+
}
|
|
15360
|
+
}
|
|
15361
|
+
export class ScanScoreTypesClient extends BaseApiClient {
|
|
15362
|
+
constructor(configuration, baseUrl, http) {
|
|
15363
|
+
super(configuration);
|
|
15364
|
+
this.jsonParseReviver = undefined;
|
|
15365
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
15366
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
15367
|
+
}
|
|
15368
|
+
/**
|
|
15369
|
+
* @param code (optional)
|
|
15370
|
+
* @return OK
|
|
15371
|
+
*/
|
|
15372
|
+
getByCode(code, signal) {
|
|
15373
|
+
let url_ = this.baseUrl + "/api/ScanScoreTypes/GetByCode?";
|
|
15374
|
+
if (code === null)
|
|
15375
|
+
throw new globalThis.Error("The parameter 'code' cannot be null.");
|
|
15376
|
+
else if (code !== undefined)
|
|
15377
|
+
url_ += "code=" + encodeURIComponent("" + code) + "&";
|
|
15378
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15379
|
+
let options_ = {
|
|
15380
|
+
method: "GET",
|
|
15381
|
+
signal,
|
|
15382
|
+
headers: {
|
|
15383
|
+
"Accept": "application/json"
|
|
15384
|
+
}
|
|
15385
|
+
};
|
|
15386
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15387
|
+
return this.processGetByCode(_response);
|
|
15388
|
+
});
|
|
15389
|
+
}
|
|
15390
|
+
processGetByCode(response) {
|
|
15391
|
+
const status = response.status;
|
|
15392
|
+
let _headers = {};
|
|
15393
|
+
if (response.headers && response.headers.forEach) {
|
|
15394
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15395
|
+
}
|
|
15396
|
+
;
|
|
15397
|
+
if (status === 200) {
|
|
15398
|
+
return response.text().then((_responseText) => {
|
|
15399
|
+
let result200 = null;
|
|
15400
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15401
|
+
return result200;
|
|
15402
|
+
});
|
|
15403
|
+
}
|
|
15404
|
+
else if (status !== 200 && status !== 204) {
|
|
15405
|
+
return response.text().then((_responseText) => {
|
|
15406
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15407
|
+
});
|
|
15408
|
+
}
|
|
15409
|
+
return Promise.resolve(null);
|
|
15410
|
+
}
|
|
15411
|
+
/**
|
|
15412
|
+
* @param body (optional)
|
|
15413
|
+
* @return OK
|
|
15414
|
+
*/
|
|
15415
|
+
add(body, signal) {
|
|
15416
|
+
let url_ = this.baseUrl + "/api/ScanScoreTypes/Add";
|
|
15417
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15418
|
+
const content_ = JSON.stringify(body);
|
|
15419
|
+
let options_ = {
|
|
15420
|
+
body: content_,
|
|
15421
|
+
method: "POST",
|
|
15422
|
+
signal,
|
|
15423
|
+
headers: {
|
|
15424
|
+
"Content-Type": "application/json",
|
|
15425
|
+
"Accept": "application/json"
|
|
15426
|
+
}
|
|
15427
|
+
};
|
|
15428
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15429
|
+
return this.processAdd(_response);
|
|
15430
|
+
});
|
|
15431
|
+
}
|
|
15432
|
+
processAdd(response) {
|
|
15433
|
+
const status = response.status;
|
|
15434
|
+
let _headers = {};
|
|
15435
|
+
if (response.headers && response.headers.forEach) {
|
|
15436
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15437
|
+
}
|
|
15438
|
+
;
|
|
15439
|
+
if (status === 200) {
|
|
15440
|
+
return response.text().then((_responseText) => {
|
|
15441
|
+
let result200 = null;
|
|
15442
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15443
|
+
return result200;
|
|
15444
|
+
});
|
|
15445
|
+
}
|
|
15446
|
+
else if (status !== 200 && status !== 204) {
|
|
15447
|
+
return response.text().then((_responseText) => {
|
|
15448
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15449
|
+
});
|
|
15450
|
+
}
|
|
15451
|
+
return Promise.resolve(null);
|
|
15452
|
+
}
|
|
15453
|
+
/**
|
|
15454
|
+
* @param body (optional)
|
|
15455
|
+
* @return OK
|
|
15456
|
+
*/
|
|
15457
|
+
addMultiple(body, signal) {
|
|
15458
|
+
let url_ = this.baseUrl + "/api/ScanScoreTypes/AddMultiple";
|
|
15459
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15460
|
+
const content_ = JSON.stringify(body);
|
|
15461
|
+
let options_ = {
|
|
15462
|
+
body: content_,
|
|
15463
|
+
method: "POST",
|
|
15464
|
+
signal,
|
|
15465
|
+
headers: {
|
|
15466
|
+
"Content-Type": "application/json",
|
|
15467
|
+
"Accept": "application/json"
|
|
15468
|
+
}
|
|
15469
|
+
};
|
|
15470
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15471
|
+
return this.processAddMultiple(_response);
|
|
15472
|
+
});
|
|
15473
|
+
}
|
|
15474
|
+
processAddMultiple(response) {
|
|
15475
|
+
const status = response.status;
|
|
15476
|
+
let _headers = {};
|
|
15477
|
+
if (response.headers && response.headers.forEach) {
|
|
15478
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15479
|
+
}
|
|
15480
|
+
;
|
|
15481
|
+
if (status === 200) {
|
|
15482
|
+
return response.text().then((_responseText) => {
|
|
15483
|
+
let result200 = null;
|
|
15484
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15485
|
+
return result200;
|
|
15486
|
+
});
|
|
15487
|
+
}
|
|
15488
|
+
else if (status !== 200 && status !== 204) {
|
|
15489
|
+
return response.text().then((_responseText) => {
|
|
15490
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15491
|
+
});
|
|
15492
|
+
}
|
|
15493
|
+
return Promise.resolve(null);
|
|
15494
|
+
}
|
|
15495
|
+
/**
|
|
15496
|
+
* @param body (optional)
|
|
15497
|
+
* @return OK
|
|
15498
|
+
*/
|
|
15499
|
+
update(body, signal) {
|
|
15500
|
+
let url_ = this.baseUrl + "/api/ScanScoreTypes/Update";
|
|
15501
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15502
|
+
const content_ = JSON.stringify(body);
|
|
15503
|
+
let options_ = {
|
|
15504
|
+
body: content_,
|
|
15505
|
+
method: "POST",
|
|
15506
|
+
signal,
|
|
15507
|
+
headers: {
|
|
15508
|
+
"Content-Type": "application/json",
|
|
15509
|
+
"Accept": "application/json"
|
|
15510
|
+
}
|
|
15511
|
+
};
|
|
15512
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15513
|
+
return this.processUpdate(_response);
|
|
15514
|
+
});
|
|
15515
|
+
}
|
|
15516
|
+
processUpdate(response) {
|
|
15517
|
+
const status = response.status;
|
|
15518
|
+
let _headers = {};
|
|
15519
|
+
if (response.headers && response.headers.forEach) {
|
|
15520
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15521
|
+
}
|
|
15522
|
+
;
|
|
15523
|
+
if (status === 200) {
|
|
15524
|
+
return response.text().then((_responseText) => {
|
|
15525
|
+
let result200 = null;
|
|
15526
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15527
|
+
return result200;
|
|
15528
|
+
});
|
|
15529
|
+
}
|
|
15530
|
+
else if (status !== 200 && status !== 204) {
|
|
15531
|
+
return response.text().then((_responseText) => {
|
|
15532
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15533
|
+
});
|
|
15534
|
+
}
|
|
15535
|
+
return Promise.resolve(null);
|
|
15536
|
+
}
|
|
15537
|
+
/**
|
|
15538
|
+
* @param body (optional)
|
|
15539
|
+
* @return OK
|
|
15540
|
+
*/
|
|
15541
|
+
delete(body, signal) {
|
|
15542
|
+
let url_ = this.baseUrl + "/api/ScanScoreTypes/Delete";
|
|
15543
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15544
|
+
const content_ = JSON.stringify(body);
|
|
15545
|
+
let options_ = {
|
|
15546
|
+
body: content_,
|
|
15547
|
+
method: "POST",
|
|
15548
|
+
signal,
|
|
15549
|
+
headers: {
|
|
15550
|
+
"Content-Type": "application/json",
|
|
15551
|
+
"Accept": "application/json"
|
|
15552
|
+
}
|
|
15553
|
+
};
|
|
15554
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15555
|
+
return this.processDelete(_response);
|
|
15556
|
+
});
|
|
15557
|
+
}
|
|
15558
|
+
processDelete(response) {
|
|
15559
|
+
const status = response.status;
|
|
15560
|
+
let _headers = {};
|
|
15561
|
+
if (response.headers && response.headers.forEach) {
|
|
15562
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15563
|
+
}
|
|
15564
|
+
;
|
|
15565
|
+
if (status === 200) {
|
|
15566
|
+
return response.text().then((_responseText) => {
|
|
15567
|
+
let result200 = null;
|
|
15568
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15569
|
+
return result200;
|
|
15570
|
+
});
|
|
15571
|
+
}
|
|
15572
|
+
else if (status !== 200 && status !== 204) {
|
|
15573
|
+
return response.text().then((_responseText) => {
|
|
15574
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15575
|
+
});
|
|
15576
|
+
}
|
|
15577
|
+
return Promise.resolve(null);
|
|
15578
|
+
}
|
|
15579
|
+
/**
|
|
15580
|
+
* @param body (optional)
|
|
15581
|
+
* @return OK
|
|
15582
|
+
*/
|
|
15583
|
+
deleteMultiple(body, signal) {
|
|
15584
|
+
let url_ = this.baseUrl + "/api/ScanScoreTypes/DeleteMultiple";
|
|
15585
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15586
|
+
const content_ = JSON.stringify(body);
|
|
15587
|
+
let options_ = {
|
|
15588
|
+
body: content_,
|
|
15589
|
+
method: "POST",
|
|
15590
|
+
signal,
|
|
15591
|
+
headers: {
|
|
15592
|
+
"Content-Type": "application/json",
|
|
15593
|
+
"Accept": "application/json"
|
|
15594
|
+
}
|
|
15595
|
+
};
|
|
15596
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15597
|
+
return this.processDeleteMultiple(_response);
|
|
15598
|
+
});
|
|
15599
|
+
}
|
|
15600
|
+
processDeleteMultiple(response) {
|
|
15601
|
+
const status = response.status;
|
|
15602
|
+
let _headers = {};
|
|
15603
|
+
if (response.headers && response.headers.forEach) {
|
|
15604
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15605
|
+
}
|
|
15606
|
+
;
|
|
15607
|
+
if (status === 200) {
|
|
15608
|
+
return response.text().then((_responseText) => {
|
|
15609
|
+
let result200 = null;
|
|
15610
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15611
|
+
return result200;
|
|
15612
|
+
});
|
|
15613
|
+
}
|
|
15614
|
+
else if (status !== 200 && status !== 204) {
|
|
15615
|
+
return response.text().then((_responseText) => {
|
|
15616
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15617
|
+
});
|
|
15618
|
+
}
|
|
15619
|
+
return Promise.resolve(null);
|
|
15620
|
+
}
|
|
15621
|
+
/**
|
|
15622
|
+
* @param id (optional)
|
|
15623
|
+
* @return OK
|
|
15624
|
+
*/
|
|
15625
|
+
getById(id, signal) {
|
|
15626
|
+
let url_ = this.baseUrl + "/api/ScanScoreTypes/GetById?";
|
|
15627
|
+
if (id === null)
|
|
15628
|
+
throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
15629
|
+
else if (id !== undefined)
|
|
15630
|
+
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
15631
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15632
|
+
let options_ = {
|
|
15633
|
+
method: "GET",
|
|
15634
|
+
signal,
|
|
15635
|
+
headers: {
|
|
15636
|
+
"Accept": "application/json"
|
|
15637
|
+
}
|
|
15638
|
+
};
|
|
15639
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15640
|
+
return this.processGetById(_response);
|
|
15641
|
+
});
|
|
15642
|
+
}
|
|
15643
|
+
processGetById(response) {
|
|
15644
|
+
const status = response.status;
|
|
15645
|
+
let _headers = {};
|
|
15646
|
+
if (response.headers && response.headers.forEach) {
|
|
15647
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15648
|
+
}
|
|
15649
|
+
;
|
|
15650
|
+
if (status === 200) {
|
|
15651
|
+
return response.text().then((_responseText) => {
|
|
15652
|
+
let result200 = null;
|
|
15653
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15654
|
+
return result200;
|
|
15655
|
+
});
|
|
15656
|
+
}
|
|
15657
|
+
else if (status !== 200 && status !== 204) {
|
|
15658
|
+
return response.text().then((_responseText) => {
|
|
15659
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15660
|
+
});
|
|
15661
|
+
}
|
|
15662
|
+
return Promise.resolve(null);
|
|
15663
|
+
}
|
|
15664
|
+
/**
|
|
15665
|
+
* @return OK
|
|
15666
|
+
*/
|
|
15667
|
+
getAll(signal) {
|
|
15668
|
+
let url_ = this.baseUrl + "/api/ScanScoreTypes/GetAll";
|
|
15669
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15670
|
+
let options_ = {
|
|
15671
|
+
method: "GET",
|
|
15672
|
+
signal,
|
|
15673
|
+
headers: {
|
|
15674
|
+
"Accept": "application/json"
|
|
15675
|
+
}
|
|
15676
|
+
};
|
|
15677
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15678
|
+
return this.processGetAll(_response);
|
|
15679
|
+
});
|
|
15680
|
+
}
|
|
15681
|
+
processGetAll(response) {
|
|
15682
|
+
const status = response.status;
|
|
15683
|
+
let _headers = {};
|
|
15684
|
+
if (response.headers && response.headers.forEach) {
|
|
15685
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15686
|
+
}
|
|
15687
|
+
;
|
|
15688
|
+
if (status === 200) {
|
|
15689
|
+
return response.text().then((_responseText) => {
|
|
15690
|
+
let result200 = null;
|
|
15691
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15692
|
+
return result200;
|
|
15693
|
+
});
|
|
15694
|
+
}
|
|
15695
|
+
else if (status !== 200 && status !== 204) {
|
|
15696
|
+
return response.text().then((_responseText) => {
|
|
15697
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15698
|
+
});
|
|
15699
|
+
}
|
|
15700
|
+
return Promise.resolve(null);
|
|
15701
|
+
}
|
|
15702
|
+
/**
|
|
15703
|
+
* @param skip (optional)
|
|
15704
|
+
* @param take (optional)
|
|
15705
|
+
* @return OK
|
|
15706
|
+
*/
|
|
15707
|
+
pagination(skip, take, signal) {
|
|
15708
|
+
let url_ = this.baseUrl + "/api/ScanScoreTypes/Pagination?";
|
|
15709
|
+
if (skip === null)
|
|
15710
|
+
throw new globalThis.Error("The parameter 'skip' cannot be null.");
|
|
15711
|
+
else if (skip !== undefined)
|
|
15712
|
+
url_ += "skip=" + encodeURIComponent("" + skip) + "&";
|
|
15713
|
+
if (take === null)
|
|
15714
|
+
throw new globalThis.Error("The parameter 'take' cannot be null.");
|
|
15715
|
+
else if (take !== undefined)
|
|
15716
|
+
url_ += "take=" + encodeURIComponent("" + take) + "&";
|
|
15717
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15718
|
+
let options_ = {
|
|
15719
|
+
method: "GET",
|
|
15720
|
+
signal,
|
|
15721
|
+
headers: {
|
|
15722
|
+
"Accept": "application/json"
|
|
15723
|
+
}
|
|
15724
|
+
};
|
|
15725
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15726
|
+
return this.processPagination(_response);
|
|
15727
|
+
});
|
|
15728
|
+
}
|
|
15729
|
+
processPagination(response) {
|
|
15730
|
+
const status = response.status;
|
|
15731
|
+
let _headers = {};
|
|
15732
|
+
if (response.headers && response.headers.forEach) {
|
|
15733
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15734
|
+
}
|
|
15735
|
+
;
|
|
15736
|
+
if (status === 200) {
|
|
15737
|
+
return response.text().then((_responseText) => {
|
|
15738
|
+
let result200 = null;
|
|
15739
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15740
|
+
return result200;
|
|
15741
|
+
});
|
|
15742
|
+
}
|
|
15743
|
+
else if (status !== 200 && status !== 204) {
|
|
15744
|
+
return response.text().then((_responseText) => {
|
|
15745
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15746
|
+
});
|
|
15747
|
+
}
|
|
15748
|
+
return Promise.resolve(null);
|
|
15749
|
+
}
|
|
15750
|
+
/**
|
|
15751
|
+
* @param body (optional)
|
|
15752
|
+
* @return OK
|
|
15753
|
+
*/
|
|
15754
|
+
getFiltersBase(body, signal) {
|
|
15755
|
+
let url_ = this.baseUrl + "/api/ScanScoreTypes/GetFiltersBase";
|
|
15756
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15757
|
+
const content_ = JSON.stringify(body);
|
|
15758
|
+
let options_ = {
|
|
15759
|
+
body: content_,
|
|
15760
|
+
method: "POST",
|
|
15761
|
+
signal,
|
|
15762
|
+
headers: {
|
|
15763
|
+
"Content-Type": "application/json",
|
|
15764
|
+
"Accept": "application/json"
|
|
15765
|
+
}
|
|
15766
|
+
};
|
|
15767
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15768
|
+
return this.processGetFiltersBase(_response);
|
|
15769
|
+
});
|
|
15770
|
+
}
|
|
15771
|
+
processGetFiltersBase(response) {
|
|
15772
|
+
const status = response.status;
|
|
15773
|
+
let _headers = {};
|
|
15774
|
+
if (response.headers && response.headers.forEach) {
|
|
15775
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15776
|
+
}
|
|
15777
|
+
;
|
|
15778
|
+
if (status === 200) {
|
|
15779
|
+
return response.text().then((_responseText) => {
|
|
15780
|
+
let result200 = null;
|
|
15781
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15782
|
+
return result200;
|
|
15783
|
+
});
|
|
15784
|
+
}
|
|
15785
|
+
else if (status !== 200 && status !== 204) {
|
|
15786
|
+
return response.text().then((_responseText) => {
|
|
15787
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15788
|
+
});
|
|
15789
|
+
}
|
|
15790
|
+
return Promise.resolve(null);
|
|
15791
|
+
}
|
|
15792
|
+
}
|
|
15793
|
+
export class ScanThreatDetectionsClient extends BaseApiClient {
|
|
15794
|
+
constructor(configuration, baseUrl, http) {
|
|
15795
|
+
super(configuration);
|
|
15796
|
+
this.jsonParseReviver = undefined;
|
|
15797
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
15798
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
15799
|
+
}
|
|
15800
|
+
/**
|
|
15801
|
+
* @param body (optional)
|
|
15802
|
+
* @return OK
|
|
15803
|
+
*/
|
|
15804
|
+
add(body, signal) {
|
|
15805
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/Add";
|
|
15806
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15807
|
+
const content_ = JSON.stringify(body);
|
|
15808
|
+
let options_ = {
|
|
15809
|
+
body: content_,
|
|
15810
|
+
method: "POST",
|
|
15811
|
+
signal,
|
|
15812
|
+
headers: {
|
|
15813
|
+
"Content-Type": "application/json",
|
|
15814
|
+
"Accept": "application/json"
|
|
15815
|
+
}
|
|
15816
|
+
};
|
|
15817
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15818
|
+
return this.processAdd(_response);
|
|
15819
|
+
});
|
|
15820
|
+
}
|
|
15821
|
+
processAdd(response) {
|
|
15822
|
+
const status = response.status;
|
|
15823
|
+
let _headers = {};
|
|
15824
|
+
if (response.headers && response.headers.forEach) {
|
|
15825
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15826
|
+
}
|
|
15827
|
+
;
|
|
15828
|
+
if (status === 200) {
|
|
15829
|
+
return response.text().then((_responseText) => {
|
|
15830
|
+
let result200 = null;
|
|
15831
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15832
|
+
return result200;
|
|
15833
|
+
});
|
|
15834
|
+
}
|
|
15835
|
+
else if (status !== 200 && status !== 204) {
|
|
15836
|
+
return response.text().then((_responseText) => {
|
|
15837
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15838
|
+
});
|
|
15839
|
+
}
|
|
15840
|
+
return Promise.resolve(null);
|
|
15841
|
+
}
|
|
15842
|
+
/**
|
|
15843
|
+
* @param body (optional)
|
|
15844
|
+
* @return OK
|
|
15845
|
+
*/
|
|
15846
|
+
addMultiple(body, signal) {
|
|
15847
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/AddMultiple";
|
|
15848
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15849
|
+
const content_ = JSON.stringify(body);
|
|
15850
|
+
let options_ = {
|
|
15851
|
+
body: content_,
|
|
15852
|
+
method: "POST",
|
|
15853
|
+
signal,
|
|
15854
|
+
headers: {
|
|
15855
|
+
"Content-Type": "application/json",
|
|
15856
|
+
"Accept": "application/json"
|
|
15857
|
+
}
|
|
15858
|
+
};
|
|
15859
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15860
|
+
return this.processAddMultiple(_response);
|
|
15861
|
+
});
|
|
15862
|
+
}
|
|
15863
|
+
processAddMultiple(response) {
|
|
15864
|
+
const status = response.status;
|
|
15865
|
+
let _headers = {};
|
|
15866
|
+
if (response.headers && response.headers.forEach) {
|
|
15867
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15868
|
+
}
|
|
15869
|
+
;
|
|
15870
|
+
if (status === 200) {
|
|
15871
|
+
return response.text().then((_responseText) => {
|
|
15872
|
+
let result200 = null;
|
|
15873
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15874
|
+
return result200;
|
|
15875
|
+
});
|
|
15876
|
+
}
|
|
15877
|
+
else if (status !== 200 && status !== 204) {
|
|
15878
|
+
return response.text().then((_responseText) => {
|
|
15879
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15880
|
+
});
|
|
15881
|
+
}
|
|
15882
|
+
return Promise.resolve(null);
|
|
15883
|
+
}
|
|
15884
|
+
/**
|
|
15885
|
+
* @param body (optional)
|
|
15886
|
+
* @return OK
|
|
15887
|
+
*/
|
|
15888
|
+
update(body, signal) {
|
|
15889
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/Update";
|
|
15890
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15891
|
+
const content_ = JSON.stringify(body);
|
|
15892
|
+
let options_ = {
|
|
15893
|
+
body: content_,
|
|
15894
|
+
method: "POST",
|
|
15895
|
+
signal,
|
|
15896
|
+
headers: {
|
|
15897
|
+
"Content-Type": "application/json",
|
|
15898
|
+
"Accept": "application/json"
|
|
15899
|
+
}
|
|
15900
|
+
};
|
|
15901
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15902
|
+
return this.processUpdate(_response);
|
|
15903
|
+
});
|
|
15904
|
+
}
|
|
15905
|
+
processUpdate(response) {
|
|
15906
|
+
const status = response.status;
|
|
15907
|
+
let _headers = {};
|
|
15908
|
+
if (response.headers && response.headers.forEach) {
|
|
15909
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15910
|
+
}
|
|
15911
|
+
;
|
|
15912
|
+
if (status === 200) {
|
|
15913
|
+
return response.text().then((_responseText) => {
|
|
15914
|
+
let result200 = null;
|
|
15915
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15916
|
+
return result200;
|
|
15917
|
+
});
|
|
15918
|
+
}
|
|
15919
|
+
else if (status !== 200 && status !== 204) {
|
|
15920
|
+
return response.text().then((_responseText) => {
|
|
15921
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15922
|
+
});
|
|
15923
|
+
}
|
|
15924
|
+
return Promise.resolve(null);
|
|
15925
|
+
}
|
|
15926
|
+
/**
|
|
15927
|
+
* @param body (optional)
|
|
15928
|
+
* @return OK
|
|
15929
|
+
*/
|
|
15930
|
+
delete(body, signal) {
|
|
15931
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/Delete";
|
|
15932
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15933
|
+
const content_ = JSON.stringify(body);
|
|
15934
|
+
let options_ = {
|
|
15935
|
+
body: content_,
|
|
15936
|
+
method: "POST",
|
|
15937
|
+
signal,
|
|
15938
|
+
headers: {
|
|
15939
|
+
"Content-Type": "application/json",
|
|
15940
|
+
"Accept": "application/json"
|
|
15941
|
+
}
|
|
15942
|
+
};
|
|
15943
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15944
|
+
return this.processDelete(_response);
|
|
15945
|
+
});
|
|
15946
|
+
}
|
|
15947
|
+
processDelete(response) {
|
|
15948
|
+
const status = response.status;
|
|
15949
|
+
let _headers = {};
|
|
15950
|
+
if (response.headers && response.headers.forEach) {
|
|
15951
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15952
|
+
}
|
|
15953
|
+
;
|
|
15954
|
+
if (status === 200) {
|
|
15955
|
+
return response.text().then((_responseText) => {
|
|
15956
|
+
let result200 = null;
|
|
15957
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15958
|
+
return result200;
|
|
15959
|
+
});
|
|
15960
|
+
}
|
|
15961
|
+
else if (status !== 200 && status !== 204) {
|
|
15962
|
+
return response.text().then((_responseText) => {
|
|
15963
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15964
|
+
});
|
|
15965
|
+
}
|
|
15966
|
+
return Promise.resolve(null);
|
|
15967
|
+
}
|
|
15968
|
+
/**
|
|
15969
|
+
* @param body (optional)
|
|
15970
|
+
* @return OK
|
|
15971
|
+
*/
|
|
15972
|
+
deleteMultiple(body, signal) {
|
|
15973
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/DeleteMultiple";
|
|
15974
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15975
|
+
const content_ = JSON.stringify(body);
|
|
15976
|
+
let options_ = {
|
|
15977
|
+
body: content_,
|
|
15978
|
+
method: "POST",
|
|
15979
|
+
signal,
|
|
15980
|
+
headers: {
|
|
15981
|
+
"Content-Type": "application/json",
|
|
15982
|
+
"Accept": "application/json"
|
|
15983
|
+
}
|
|
15984
|
+
};
|
|
15985
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
15986
|
+
return this.processDeleteMultiple(_response);
|
|
15987
|
+
});
|
|
15988
|
+
}
|
|
15989
|
+
processDeleteMultiple(response) {
|
|
15990
|
+
const status = response.status;
|
|
15991
|
+
let _headers = {};
|
|
15992
|
+
if (response.headers && response.headers.forEach) {
|
|
15993
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15994
|
+
}
|
|
15995
|
+
;
|
|
15996
|
+
if (status === 200) {
|
|
15997
|
+
return response.text().then((_responseText) => {
|
|
15998
|
+
let result200 = null;
|
|
15999
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16000
|
+
return result200;
|
|
16001
|
+
});
|
|
16002
|
+
}
|
|
16003
|
+
else if (status !== 200 && status !== 204) {
|
|
16004
|
+
return response.text().then((_responseText) => {
|
|
16005
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16006
|
+
});
|
|
16007
|
+
}
|
|
16008
|
+
return Promise.resolve(null);
|
|
16009
|
+
}
|
|
16010
|
+
/**
|
|
16011
|
+
* @param id (optional)
|
|
16012
|
+
* @return OK
|
|
16013
|
+
*/
|
|
16014
|
+
getById(id, signal) {
|
|
16015
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/GetById?";
|
|
16016
|
+
if (id === null)
|
|
16017
|
+
throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
16018
|
+
else if (id !== undefined)
|
|
16019
|
+
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
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.processGetById(_response);
|
|
16030
|
+
});
|
|
16031
|
+
}
|
|
16032
|
+
processGetById(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
|
+
* @return OK
|
|
16055
|
+
*/
|
|
16056
|
+
getAll(signal) {
|
|
16057
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/GetAll";
|
|
16058
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16059
|
+
let options_ = {
|
|
16060
|
+
method: "GET",
|
|
16061
|
+
signal,
|
|
16062
|
+
headers: {
|
|
16063
|
+
"Accept": "application/json"
|
|
16064
|
+
}
|
|
16065
|
+
};
|
|
16066
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16067
|
+
return this.processGetAll(_response);
|
|
16068
|
+
});
|
|
16069
|
+
}
|
|
16070
|
+
processGetAll(response) {
|
|
16071
|
+
const status = response.status;
|
|
16072
|
+
let _headers = {};
|
|
16073
|
+
if (response.headers && response.headers.forEach) {
|
|
16074
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16075
|
+
}
|
|
16076
|
+
;
|
|
16077
|
+
if (status === 200) {
|
|
16078
|
+
return response.text().then((_responseText) => {
|
|
16079
|
+
let result200 = null;
|
|
16080
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16081
|
+
return result200;
|
|
16082
|
+
});
|
|
16083
|
+
}
|
|
16084
|
+
else if (status !== 200 && status !== 204) {
|
|
16085
|
+
return response.text().then((_responseText) => {
|
|
16086
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16087
|
+
});
|
|
16088
|
+
}
|
|
16089
|
+
return Promise.resolve(null);
|
|
16090
|
+
}
|
|
16091
|
+
/**
|
|
16092
|
+
* @param skip (optional)
|
|
16093
|
+
* @param take (optional)
|
|
16094
|
+
* @return OK
|
|
16095
|
+
*/
|
|
16096
|
+
pagination(skip, take, signal) {
|
|
16097
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/Pagination?";
|
|
16098
|
+
if (skip === null)
|
|
16099
|
+
throw new globalThis.Error("The parameter 'skip' cannot be null.");
|
|
16100
|
+
else if (skip !== undefined)
|
|
16101
|
+
url_ += "skip=" + encodeURIComponent("" + skip) + "&";
|
|
16102
|
+
if (take === null)
|
|
16103
|
+
throw new globalThis.Error("The parameter 'take' cannot be null.");
|
|
16104
|
+
else if (take !== undefined)
|
|
16105
|
+
url_ += "take=" + encodeURIComponent("" + take) + "&";
|
|
16106
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16107
|
+
let options_ = {
|
|
16108
|
+
method: "GET",
|
|
16109
|
+
signal,
|
|
16110
|
+
headers: {
|
|
16111
|
+
"Accept": "application/json"
|
|
16112
|
+
}
|
|
16113
|
+
};
|
|
16114
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16115
|
+
return this.processPagination(_response);
|
|
16116
|
+
});
|
|
16117
|
+
}
|
|
16118
|
+
processPagination(response) {
|
|
16119
|
+
const status = response.status;
|
|
16120
|
+
let _headers = {};
|
|
16121
|
+
if (response.headers && response.headers.forEach) {
|
|
16122
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16123
|
+
}
|
|
16124
|
+
;
|
|
16125
|
+
if (status === 200) {
|
|
16126
|
+
return response.text().then((_responseText) => {
|
|
16127
|
+
let result200 = null;
|
|
16128
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16129
|
+
return result200;
|
|
16130
|
+
});
|
|
16131
|
+
}
|
|
16132
|
+
else if (status !== 200 && status !== 204) {
|
|
16133
|
+
return response.text().then((_responseText) => {
|
|
16134
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16135
|
+
});
|
|
16136
|
+
}
|
|
16137
|
+
return Promise.resolve(null);
|
|
16138
|
+
}
|
|
16139
|
+
/**
|
|
16140
|
+
* @param body (optional)
|
|
16141
|
+
* @return OK
|
|
16142
|
+
*/
|
|
16143
|
+
getFiltersBase(body, signal) {
|
|
16144
|
+
let url_ = this.baseUrl + "/api/ScanThreatDetections/GetFiltersBase";
|
|
16145
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16146
|
+
const content_ = JSON.stringify(body);
|
|
16147
|
+
let options_ = {
|
|
16148
|
+
body: content_,
|
|
16149
|
+
method: "POST",
|
|
16150
|
+
signal,
|
|
16151
|
+
headers: {
|
|
16152
|
+
"Content-Type": "application/json",
|
|
16153
|
+
"Accept": "application/json"
|
|
16154
|
+
}
|
|
16155
|
+
};
|
|
16156
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16157
|
+
return this.processGetFiltersBase(_response);
|
|
16158
|
+
});
|
|
16159
|
+
}
|
|
16160
|
+
processGetFiltersBase(response) {
|
|
16161
|
+
const status = response.status;
|
|
16162
|
+
let _headers = {};
|
|
16163
|
+
if (response.headers && response.headers.forEach) {
|
|
16164
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16165
|
+
}
|
|
16166
|
+
;
|
|
16167
|
+
if (status === 200) {
|
|
16168
|
+
return response.text().then((_responseText) => {
|
|
16169
|
+
let result200 = null;
|
|
16170
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16171
|
+
return result200;
|
|
16172
|
+
});
|
|
16173
|
+
}
|
|
16174
|
+
else if (status !== 200 && status !== 204) {
|
|
16175
|
+
return response.text().then((_responseText) => {
|
|
16176
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16177
|
+
});
|
|
16178
|
+
}
|
|
16179
|
+
return Promise.resolve(null);
|
|
16180
|
+
}
|
|
16181
|
+
}
|
|
16182
|
+
export class ScanThreatResultsClient extends BaseApiClient {
|
|
16183
|
+
constructor(configuration, baseUrl, http) {
|
|
16184
|
+
super(configuration);
|
|
16185
|
+
this.jsonParseReviver = undefined;
|
|
16186
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
16187
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
16188
|
+
}
|
|
16189
|
+
/**
|
|
16190
|
+
* @param body (optional)
|
|
16191
|
+
* @return OK
|
|
16192
|
+
*/
|
|
16193
|
+
processEnrichment(body, signal) {
|
|
16194
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/ProcessEnrichment";
|
|
16195
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16196
|
+
const content_ = JSON.stringify(body);
|
|
16197
|
+
let options_ = {
|
|
16198
|
+
body: content_,
|
|
16199
|
+
method: "POST",
|
|
14225
16200
|
signal,
|
|
14226
16201
|
headers: {
|
|
16202
|
+
"Content-Type": "application/json",
|
|
14227
16203
|
"Accept": "application/json"
|
|
14228
16204
|
}
|
|
14229
16205
|
};
|
|
14230
16206
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
14231
|
-
return this.
|
|
16207
|
+
return this.processProcessEnrichment(_response);
|
|
14232
16208
|
});
|
|
14233
16209
|
}
|
|
14234
|
-
|
|
16210
|
+
processProcessEnrichment(response) {
|
|
14235
16211
|
const status = response.status;
|
|
14236
16212
|
let _headers = {};
|
|
14237
16213
|
if (response.headers && response.headers.forEach) {
|
|
@@ -14257,7 +16233,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14257
16233
|
* @return OK
|
|
14258
16234
|
*/
|
|
14259
16235
|
add(body, signal) {
|
|
14260
|
-
let url_ = this.baseUrl + "/api/
|
|
16236
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/Add";
|
|
14261
16237
|
url_ = url_.replace(/[?&]$/, "");
|
|
14262
16238
|
const content_ = JSON.stringify(body);
|
|
14263
16239
|
let options_ = {
|
|
@@ -14299,7 +16275,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14299
16275
|
* @return OK
|
|
14300
16276
|
*/
|
|
14301
16277
|
addMultiple(body, signal) {
|
|
14302
|
-
let url_ = this.baseUrl + "/api/
|
|
16278
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/AddMultiple";
|
|
14303
16279
|
url_ = url_.replace(/[?&]$/, "");
|
|
14304
16280
|
const content_ = JSON.stringify(body);
|
|
14305
16281
|
let options_ = {
|
|
@@ -14341,7 +16317,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14341
16317
|
* @return OK
|
|
14342
16318
|
*/
|
|
14343
16319
|
update(body, signal) {
|
|
14344
|
-
let url_ = this.baseUrl + "/api/
|
|
16320
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/Update";
|
|
14345
16321
|
url_ = url_.replace(/[?&]$/, "");
|
|
14346
16322
|
const content_ = JSON.stringify(body);
|
|
14347
16323
|
let options_ = {
|
|
@@ -14383,7 +16359,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14383
16359
|
* @return OK
|
|
14384
16360
|
*/
|
|
14385
16361
|
delete(body, signal) {
|
|
14386
|
-
let url_ = this.baseUrl + "/api/
|
|
16362
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/Delete";
|
|
14387
16363
|
url_ = url_.replace(/[?&]$/, "");
|
|
14388
16364
|
const content_ = JSON.stringify(body);
|
|
14389
16365
|
let options_ = {
|
|
@@ -14425,7 +16401,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14425
16401
|
* @return OK
|
|
14426
16402
|
*/
|
|
14427
16403
|
deleteMultiple(body, signal) {
|
|
14428
|
-
let url_ = this.baseUrl + "/api/
|
|
16404
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/DeleteMultiple";
|
|
14429
16405
|
url_ = url_.replace(/[?&]$/, "");
|
|
14430
16406
|
const content_ = JSON.stringify(body);
|
|
14431
16407
|
let options_ = {
|
|
@@ -14467,7 +16443,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14467
16443
|
* @return OK
|
|
14468
16444
|
*/
|
|
14469
16445
|
getById(id, signal) {
|
|
14470
|
-
let url_ = this.baseUrl + "/api/
|
|
16446
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/GetById?";
|
|
14471
16447
|
if (id === null)
|
|
14472
16448
|
throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
14473
16449
|
else if (id !== undefined)
|
|
@@ -14509,7 +16485,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14509
16485
|
* @return OK
|
|
14510
16486
|
*/
|
|
14511
16487
|
getAll(signal) {
|
|
14512
|
-
let url_ = this.baseUrl + "/api/
|
|
16488
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/GetAll";
|
|
14513
16489
|
url_ = url_.replace(/[?&]$/, "");
|
|
14514
16490
|
let options_ = {
|
|
14515
16491
|
method: "GET",
|
|
@@ -14549,7 +16525,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14549
16525
|
* @return OK
|
|
14550
16526
|
*/
|
|
14551
16527
|
pagination(skip, take, signal) {
|
|
14552
|
-
let url_ = this.baseUrl + "/api/
|
|
16528
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/Pagination?";
|
|
14553
16529
|
if (skip === null)
|
|
14554
16530
|
throw new globalThis.Error("The parameter 'skip' cannot be null.");
|
|
14555
16531
|
else if (skip !== undefined)
|
|
@@ -14596,7 +16572,7 @@ export class ScansClient extends BaseApiClient {
|
|
|
14596
16572
|
* @return OK
|
|
14597
16573
|
*/
|
|
14598
16574
|
getFiltersBase(body, signal) {
|
|
14599
|
-
let url_ = this.baseUrl + "/api/
|
|
16575
|
+
let url_ = this.baseUrl + "/api/ScanThreatResults/GetFiltersBase";
|
|
14600
16576
|
url_ = url_.replace(/[?&]$/, "");
|
|
14601
16577
|
const content_ = JSON.stringify(body);
|
|
14602
16578
|
let options_ = {
|
|
@@ -14634,19 +16610,110 @@ export class ScansClient extends BaseApiClient {
|
|
|
14634
16610
|
return Promise.resolve(null);
|
|
14635
16611
|
}
|
|
14636
16612
|
}
|
|
14637
|
-
export class
|
|
16613
|
+
export class ScanTimingEventsClient extends BaseApiClient {
|
|
14638
16614
|
constructor(configuration, baseUrl, http) {
|
|
14639
16615
|
super(configuration);
|
|
14640
16616
|
this.jsonParseReviver = undefined;
|
|
14641
16617
|
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
14642
16618
|
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
14643
16619
|
}
|
|
16620
|
+
/**
|
|
16621
|
+
* @param runId (optional)
|
|
16622
|
+
* @return OK
|
|
16623
|
+
*/
|
|
16624
|
+
getByRunId(runId, signal) {
|
|
16625
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/GetByRunId?";
|
|
16626
|
+
if (runId === null)
|
|
16627
|
+
throw new globalThis.Error("The parameter 'runId' cannot be null.");
|
|
16628
|
+
else if (runId !== undefined)
|
|
16629
|
+
url_ += "runId=" + encodeURIComponent("" + runId) + "&";
|
|
16630
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16631
|
+
let options_ = {
|
|
16632
|
+
method: "GET",
|
|
16633
|
+
signal,
|
|
16634
|
+
headers: {
|
|
16635
|
+
"Accept": "application/json"
|
|
16636
|
+
}
|
|
16637
|
+
};
|
|
16638
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16639
|
+
return this.processGetByRunId(_response);
|
|
16640
|
+
});
|
|
16641
|
+
}
|
|
16642
|
+
processGetByRunId(response) {
|
|
16643
|
+
const status = response.status;
|
|
16644
|
+
let _headers = {};
|
|
16645
|
+
if (response.headers && response.headers.forEach) {
|
|
16646
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16647
|
+
}
|
|
16648
|
+
;
|
|
16649
|
+
if (status === 200) {
|
|
16650
|
+
return response.text().then((_responseText) => {
|
|
16651
|
+
let result200 = null;
|
|
16652
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16653
|
+
return result200;
|
|
16654
|
+
});
|
|
16655
|
+
}
|
|
16656
|
+
else if (status !== 200 && status !== 204) {
|
|
16657
|
+
return response.text().then((_responseText) => {
|
|
16658
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16659
|
+
});
|
|
16660
|
+
}
|
|
16661
|
+
return Promise.resolve(null);
|
|
16662
|
+
}
|
|
16663
|
+
/**
|
|
16664
|
+
* @param runId (optional)
|
|
16665
|
+
* @param timingId (optional)
|
|
16666
|
+
* @return OK
|
|
16667
|
+
*/
|
|
16668
|
+
getByRunIdAndTimingId(runId, timingId, signal) {
|
|
16669
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/GetByRunIdAndTimingId?";
|
|
16670
|
+
if (runId === null)
|
|
16671
|
+
throw new globalThis.Error("The parameter 'runId' cannot be null.");
|
|
16672
|
+
else if (runId !== undefined)
|
|
16673
|
+
url_ += "runId=" + encodeURIComponent("" + runId) + "&";
|
|
16674
|
+
if (timingId === null)
|
|
16675
|
+
throw new globalThis.Error("The parameter 'timingId' cannot be null.");
|
|
16676
|
+
else if (timingId !== undefined)
|
|
16677
|
+
url_ += "timingId=" + encodeURIComponent("" + timingId) + "&";
|
|
16678
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16679
|
+
let options_ = {
|
|
16680
|
+
method: "GET",
|
|
16681
|
+
signal,
|
|
16682
|
+
headers: {
|
|
16683
|
+
"Accept": "application/json"
|
|
16684
|
+
}
|
|
16685
|
+
};
|
|
16686
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16687
|
+
return this.processGetByRunIdAndTimingId(_response);
|
|
16688
|
+
});
|
|
16689
|
+
}
|
|
16690
|
+
processGetByRunIdAndTimingId(response) {
|
|
16691
|
+
const status = response.status;
|
|
16692
|
+
let _headers = {};
|
|
16693
|
+
if (response.headers && response.headers.forEach) {
|
|
16694
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16695
|
+
}
|
|
16696
|
+
;
|
|
16697
|
+
if (status === 200) {
|
|
16698
|
+
return response.text().then((_responseText) => {
|
|
16699
|
+
let result200 = null;
|
|
16700
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16701
|
+
return result200;
|
|
16702
|
+
});
|
|
16703
|
+
}
|
|
16704
|
+
else if (status !== 200 && status !== 204) {
|
|
16705
|
+
return response.text().then((_responseText) => {
|
|
16706
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16707
|
+
});
|
|
16708
|
+
}
|
|
16709
|
+
return Promise.resolve(null);
|
|
16710
|
+
}
|
|
14644
16711
|
/**
|
|
14645
16712
|
* @param body (optional)
|
|
14646
16713
|
* @return OK
|
|
14647
16714
|
*/
|
|
14648
16715
|
add(body, signal) {
|
|
14649
|
-
let url_ = this.baseUrl + "/api/
|
|
16716
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/Add";
|
|
14650
16717
|
url_ = url_.replace(/[?&]$/, "");
|
|
14651
16718
|
const content_ = JSON.stringify(body);
|
|
14652
16719
|
let options_ = {
|
|
@@ -14688,7 +16755,7 @@ export class ScanScoresClient extends BaseApiClient {
|
|
|
14688
16755
|
* @return OK
|
|
14689
16756
|
*/
|
|
14690
16757
|
addMultiple(body, signal) {
|
|
14691
|
-
let url_ = this.baseUrl + "/api/
|
|
16758
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/AddMultiple";
|
|
14692
16759
|
url_ = url_.replace(/[?&]$/, "");
|
|
14693
16760
|
const content_ = JSON.stringify(body);
|
|
14694
16761
|
let options_ = {
|
|
@@ -14730,7 +16797,7 @@ export class ScanScoresClient extends BaseApiClient {
|
|
|
14730
16797
|
* @return OK
|
|
14731
16798
|
*/
|
|
14732
16799
|
update(body, signal) {
|
|
14733
|
-
let url_ = this.baseUrl + "/api/
|
|
16800
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/Update";
|
|
14734
16801
|
url_ = url_.replace(/[?&]$/, "");
|
|
14735
16802
|
const content_ = JSON.stringify(body);
|
|
14736
16803
|
let options_ = {
|
|
@@ -14772,7 +16839,7 @@ export class ScanScoresClient extends BaseApiClient {
|
|
|
14772
16839
|
* @return OK
|
|
14773
16840
|
*/
|
|
14774
16841
|
delete(body, signal) {
|
|
14775
|
-
let url_ = this.baseUrl + "/api/
|
|
16842
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/Delete";
|
|
14776
16843
|
url_ = url_.replace(/[?&]$/, "");
|
|
14777
16844
|
const content_ = JSON.stringify(body);
|
|
14778
16845
|
let options_ = {
|
|
@@ -14814,7 +16881,7 @@ export class ScanScoresClient extends BaseApiClient {
|
|
|
14814
16881
|
* @return OK
|
|
14815
16882
|
*/
|
|
14816
16883
|
deleteMultiple(body, signal) {
|
|
14817
|
-
let url_ = this.baseUrl + "/api/
|
|
16884
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/DeleteMultiple";
|
|
14818
16885
|
url_ = url_.replace(/[?&]$/, "");
|
|
14819
16886
|
const content_ = JSON.stringify(body);
|
|
14820
16887
|
let options_ = {
|
|
@@ -14856,7 +16923,7 @@ export class ScanScoresClient extends BaseApiClient {
|
|
|
14856
16923
|
* @return OK
|
|
14857
16924
|
*/
|
|
14858
16925
|
getById(id, signal) {
|
|
14859
|
-
let url_ = this.baseUrl + "/api/
|
|
16926
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/GetById?";
|
|
14860
16927
|
if (id === null)
|
|
14861
16928
|
throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
14862
16929
|
else if (id !== undefined)
|
|
@@ -14898,7 +16965,7 @@ export class ScanScoresClient extends BaseApiClient {
|
|
|
14898
16965
|
* @return OK
|
|
14899
16966
|
*/
|
|
14900
16967
|
getAll(signal) {
|
|
14901
|
-
let url_ = this.baseUrl + "/api/
|
|
16968
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/GetAll";
|
|
14902
16969
|
url_ = url_.replace(/[?&]$/, "");
|
|
14903
16970
|
let options_ = {
|
|
14904
16971
|
method: "GET",
|
|
@@ -14938,7 +17005,7 @@ export class ScanScoresClient extends BaseApiClient {
|
|
|
14938
17005
|
* @return OK
|
|
14939
17006
|
*/
|
|
14940
17007
|
pagination(skip, take, signal) {
|
|
14941
|
-
let url_ = this.baseUrl + "/api/
|
|
17008
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/Pagination?";
|
|
14942
17009
|
if (skip === null)
|
|
14943
17010
|
throw new globalThis.Error("The parameter 'skip' cannot be null.");
|
|
14944
17011
|
else if (skip !== undefined)
|
|
@@ -14985,7 +17052,7 @@ export class ScanScoresClient extends BaseApiClient {
|
|
|
14985
17052
|
* @return OK
|
|
14986
17053
|
*/
|
|
14987
17054
|
getFiltersBase(body, signal) {
|
|
14988
|
-
let url_ = this.baseUrl + "/api/
|
|
17055
|
+
let url_ = this.baseUrl + "/api/ScanTimingEvents/GetFiltersBase";
|
|
14989
17056
|
url_ = url_.replace(/[?&]$/, "");
|
|
14990
17057
|
const content_ = JSON.stringify(body);
|
|
14991
17058
|
let options_ = {
|
|
@@ -15023,7 +17090,7 @@ export class ScanScoresClient extends BaseApiClient {
|
|
|
15023
17090
|
return Promise.resolve(null);
|
|
15024
17091
|
}
|
|
15025
17092
|
}
|
|
15026
|
-
export class
|
|
17093
|
+
export class ScanTimingRunsClient extends BaseApiClient {
|
|
15027
17094
|
constructor(configuration, baseUrl, http) {
|
|
15028
17095
|
super(configuration);
|
|
15029
17096
|
this.jsonParseReviver = undefined;
|
|
@@ -15031,15 +17098,15 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15031
17098
|
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
15032
17099
|
}
|
|
15033
17100
|
/**
|
|
15034
|
-
* @param
|
|
17101
|
+
* @param scanId (optional)
|
|
15035
17102
|
* @return OK
|
|
15036
17103
|
*/
|
|
15037
|
-
|
|
15038
|
-
let url_ = this.baseUrl + "/api/
|
|
15039
|
-
if (
|
|
15040
|
-
throw new globalThis.Error("The parameter '
|
|
15041
|
-
else if (
|
|
15042
|
-
url_ += "
|
|
17104
|
+
getByScanId(scanId, signal) {
|
|
17105
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/GetByScanId?";
|
|
17106
|
+
if (scanId === null)
|
|
17107
|
+
throw new globalThis.Error("The parameter 'scanId' cannot be null.");
|
|
17108
|
+
else if (scanId !== undefined)
|
|
17109
|
+
url_ += "scanId=" + encodeURIComponent("" + scanId) + "&";
|
|
15043
17110
|
url_ = url_.replace(/[?&]$/, "");
|
|
15044
17111
|
let options_ = {
|
|
15045
17112
|
method: "GET",
|
|
@@ -15049,10 +17116,58 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15049
17116
|
}
|
|
15050
17117
|
};
|
|
15051
17118
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
15052
|
-
return this.
|
|
17119
|
+
return this.processGetByScanId(_response);
|
|
15053
17120
|
});
|
|
15054
17121
|
}
|
|
15055
|
-
|
|
17122
|
+
processGetByScanId(response) {
|
|
17123
|
+
const status = response.status;
|
|
17124
|
+
let _headers = {};
|
|
17125
|
+
if (response.headers && response.headers.forEach) {
|
|
17126
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
17127
|
+
}
|
|
17128
|
+
;
|
|
17129
|
+
if (status === 200) {
|
|
17130
|
+
return response.text().then((_responseText) => {
|
|
17131
|
+
let result200 = null;
|
|
17132
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17133
|
+
return result200;
|
|
17134
|
+
});
|
|
17135
|
+
}
|
|
17136
|
+
else if (status !== 200 && status !== 204) {
|
|
17137
|
+
return response.text().then((_responseText) => {
|
|
17138
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17139
|
+
});
|
|
17140
|
+
}
|
|
17141
|
+
return Promise.resolve(null);
|
|
17142
|
+
}
|
|
17143
|
+
/**
|
|
17144
|
+
* @param scanId (optional)
|
|
17145
|
+
* @param take (optional)
|
|
17146
|
+
* @return OK
|
|
17147
|
+
*/
|
|
17148
|
+
getLastRunsByScan(scanId, take, signal) {
|
|
17149
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/GetLastRunsByScan?";
|
|
17150
|
+
if (scanId === null)
|
|
17151
|
+
throw new globalThis.Error("The parameter 'scanId' cannot be null.");
|
|
17152
|
+
else if (scanId !== undefined)
|
|
17153
|
+
url_ += "scanId=" + encodeURIComponent("" + scanId) + "&";
|
|
17154
|
+
if (take === null)
|
|
17155
|
+
throw new globalThis.Error("The parameter 'take' cannot be null.");
|
|
17156
|
+
else if (take !== undefined)
|
|
17157
|
+
url_ += "take=" + encodeURIComponent("" + take) + "&";
|
|
17158
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
17159
|
+
let options_ = {
|
|
17160
|
+
method: "GET",
|
|
17161
|
+
signal,
|
|
17162
|
+
headers: {
|
|
17163
|
+
"Accept": "application/json"
|
|
17164
|
+
}
|
|
17165
|
+
};
|
|
17166
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
17167
|
+
return this.processGetLastRunsByScan(_response);
|
|
17168
|
+
});
|
|
17169
|
+
}
|
|
17170
|
+
processGetLastRunsByScan(response) {
|
|
15056
17171
|
const status = response.status;
|
|
15057
17172
|
let _headers = {};
|
|
15058
17173
|
if (response.headers && response.headers.forEach) {
|
|
@@ -15078,7 +17193,7 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15078
17193
|
* @return OK
|
|
15079
17194
|
*/
|
|
15080
17195
|
add(body, signal) {
|
|
15081
|
-
let url_ = this.baseUrl + "/api/
|
|
17196
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/Add";
|
|
15082
17197
|
url_ = url_.replace(/[?&]$/, "");
|
|
15083
17198
|
const content_ = JSON.stringify(body);
|
|
15084
17199
|
let options_ = {
|
|
@@ -15120,7 +17235,7 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15120
17235
|
* @return OK
|
|
15121
17236
|
*/
|
|
15122
17237
|
addMultiple(body, signal) {
|
|
15123
|
-
let url_ = this.baseUrl + "/api/
|
|
17238
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/AddMultiple";
|
|
15124
17239
|
url_ = url_.replace(/[?&]$/, "");
|
|
15125
17240
|
const content_ = JSON.stringify(body);
|
|
15126
17241
|
let options_ = {
|
|
@@ -15162,7 +17277,7 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15162
17277
|
* @return OK
|
|
15163
17278
|
*/
|
|
15164
17279
|
update(body, signal) {
|
|
15165
|
-
let url_ = this.baseUrl + "/api/
|
|
17280
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/Update";
|
|
15166
17281
|
url_ = url_.replace(/[?&]$/, "");
|
|
15167
17282
|
const content_ = JSON.stringify(body);
|
|
15168
17283
|
let options_ = {
|
|
@@ -15204,7 +17319,7 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15204
17319
|
* @return OK
|
|
15205
17320
|
*/
|
|
15206
17321
|
delete(body, signal) {
|
|
15207
|
-
let url_ = this.baseUrl + "/api/
|
|
17322
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/Delete";
|
|
15208
17323
|
url_ = url_.replace(/[?&]$/, "");
|
|
15209
17324
|
const content_ = JSON.stringify(body);
|
|
15210
17325
|
let options_ = {
|
|
@@ -15246,7 +17361,7 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15246
17361
|
* @return OK
|
|
15247
17362
|
*/
|
|
15248
17363
|
deleteMultiple(body, signal) {
|
|
15249
|
-
let url_ = this.baseUrl + "/api/
|
|
17364
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/DeleteMultiple";
|
|
15250
17365
|
url_ = url_.replace(/[?&]$/, "");
|
|
15251
17366
|
const content_ = JSON.stringify(body);
|
|
15252
17367
|
let options_ = {
|
|
@@ -15288,7 +17403,7 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15288
17403
|
* @return OK
|
|
15289
17404
|
*/
|
|
15290
17405
|
getById(id, signal) {
|
|
15291
|
-
let url_ = this.baseUrl + "/api/
|
|
17406
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/GetById?";
|
|
15292
17407
|
if (id === null)
|
|
15293
17408
|
throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
15294
17409
|
else if (id !== undefined)
|
|
@@ -15330,7 +17445,7 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15330
17445
|
* @return OK
|
|
15331
17446
|
*/
|
|
15332
17447
|
getAll(signal) {
|
|
15333
|
-
let url_ = this.baseUrl + "/api/
|
|
17448
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/GetAll";
|
|
15334
17449
|
url_ = url_.replace(/[?&]$/, "");
|
|
15335
17450
|
let options_ = {
|
|
15336
17451
|
method: "GET",
|
|
@@ -15370,7 +17485,7 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15370
17485
|
* @return OK
|
|
15371
17486
|
*/
|
|
15372
17487
|
pagination(skip, take, signal) {
|
|
15373
|
-
let url_ = this.baseUrl + "/api/
|
|
17488
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/Pagination?";
|
|
15374
17489
|
if (skip === null)
|
|
15375
17490
|
throw new globalThis.Error("The parameter 'skip' cannot be null.");
|
|
15376
17491
|
else if (skip !== undefined)
|
|
@@ -15417,7 +17532,7 @@ export class ScanScoreTypesClient extends BaseApiClient {
|
|
|
15417
17532
|
* @return OK
|
|
15418
17533
|
*/
|
|
15419
17534
|
getFiltersBase(body, signal) {
|
|
15420
|
-
let url_ = this.baseUrl + "/api/
|
|
17535
|
+
let url_ = this.baseUrl + "/api/ScanTimingRuns/GetFiltersBase";
|
|
15421
17536
|
url_ = url_.replace(/[?&]$/, "");
|
|
15422
17537
|
const content_ = JSON.stringify(body);
|
|
15423
17538
|
let options_ = {
|
|
@@ -18418,6 +20533,84 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
18418
20533
|
}
|
|
18419
20534
|
return Promise.resolve(null);
|
|
18420
20535
|
}
|
|
20536
|
+
/**
|
|
20537
|
+
* @return OK
|
|
20538
|
+
*/
|
|
20539
|
+
sessions(signal) {
|
|
20540
|
+
let url_ = this.baseUrl + "/api/TrialAuth/Sessions";
|
|
20541
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20542
|
+
let options_ = {
|
|
20543
|
+
method: "GET",
|
|
20544
|
+
signal,
|
|
20545
|
+
headers: {}
|
|
20546
|
+
};
|
|
20547
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
20548
|
+
return this.processSessions(_response);
|
|
20549
|
+
});
|
|
20550
|
+
}
|
|
20551
|
+
processSessions(response) {
|
|
20552
|
+
const status = response.status;
|
|
20553
|
+
let _headers = {};
|
|
20554
|
+
if (response.headers && response.headers.forEach) {
|
|
20555
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20556
|
+
}
|
|
20557
|
+
;
|
|
20558
|
+
if (status === 200) {
|
|
20559
|
+
return response.text().then((_responseText) => {
|
|
20560
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20561
|
+
return result200;
|
|
20562
|
+
});
|
|
20563
|
+
}
|
|
20564
|
+
else if (status !== 200 && status !== 204) {
|
|
20565
|
+
return response.text().then((_responseText) => {
|
|
20566
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20567
|
+
});
|
|
20568
|
+
}
|
|
20569
|
+
return Promise.resolve(null);
|
|
20570
|
+
}
|
|
20571
|
+
}
|
|
20572
|
+
export class SessionsClient extends BaseApiClient {
|
|
20573
|
+
constructor(configuration, baseUrl, http) {
|
|
20574
|
+
super(configuration);
|
|
20575
|
+
this.jsonParseReviver = undefined;
|
|
20576
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
20577
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
20578
|
+
}
|
|
20579
|
+
/**
|
|
20580
|
+
* @return OK
|
|
20581
|
+
*/
|
|
20582
|
+
endAll(signal) {
|
|
20583
|
+
let url_ = this.baseUrl + "/api/TrialAuth/Sessions/EndAll";
|
|
20584
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20585
|
+
let options_ = {
|
|
20586
|
+
method: "POST",
|
|
20587
|
+
signal,
|
|
20588
|
+
headers: {}
|
|
20589
|
+
};
|
|
20590
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
20591
|
+
return this.processEndAll(_response);
|
|
20592
|
+
});
|
|
20593
|
+
}
|
|
20594
|
+
processEndAll(response) {
|
|
20595
|
+
const status = response.status;
|
|
20596
|
+
let _headers = {};
|
|
20597
|
+
if (response.headers && response.headers.forEach) {
|
|
20598
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20599
|
+
}
|
|
20600
|
+
;
|
|
20601
|
+
if (status === 200) {
|
|
20602
|
+
return response.text().then((_responseText) => {
|
|
20603
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20604
|
+
return result200;
|
|
20605
|
+
});
|
|
20606
|
+
}
|
|
20607
|
+
else if (status !== 200 && status !== 204) {
|
|
20608
|
+
return response.text().then((_responseText) => {
|
|
20609
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20610
|
+
});
|
|
20611
|
+
}
|
|
20612
|
+
return Promise.resolve(null);
|
|
20613
|
+
}
|
|
18421
20614
|
}
|
|
18422
20615
|
export class TrialUserOperationClaimsClient extends BaseApiClient {
|
|
18423
20616
|
constructor(configuration, baseUrl, http) {
|