@virusis/api-client 0.1.16 → 0.1.19
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/base.d.ts +12 -1
- package/dist/base.js +174 -1
- package/dist/container.d.ts +15 -3
- package/dist/generated/clients/diagnostics-service.d.ts +2 -0
- package/dist/generated/clients/diagnostics-service.js +2 -0
- package/dist/generated/clients/feedbacks-service.d.ts +2 -0
- package/dist/generated/clients/feedbacks-service.js +2 -0
- package/dist/generated/clients/index.d.ts +5 -1
- package/dist/generated/clients/index.js +5 -1
- package/dist/generated/clients/portal-service.d.ts +2 -0
- package/dist/generated/clients/portal-service.js +2 -0
- package/dist/generated/clients/risk-service.d.ts +2 -0
- package/dist/generated/clients/risk-service.js +2 -0
- package/dist/generated/clients-rx/diagnostics-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/diagnostics-service-rx.js +12 -0
- package/dist/generated/clients-rx/feedbacks-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/feedbacks-service-rx.js +12 -0
- package/dist/generated/clients-rx/index.d.ts +5 -1
- package/dist/generated/clients-rx/index.js +5 -1
- package/dist/generated/clients-rx/portal-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/portal-service-rx.js +12 -0
- package/dist/generated/clients-rx/risk-service-rx.d.ts +16 -0
- package/dist/generated/clients-rx/risk-service-rx.js +12 -0
- package/dist/generated/index.d.ts +398 -67
- package/dist/generated/index.js +811 -138
- package/dist/generated/models/access-token-i-data-result.d.ts +4 -0
- package/dist/generated/models/access-token-i-data-result.js +1 -0
- package/dist/generated/models/access-token.d.ts +4 -0
- package/dist/generated/models/access-token.js +1 -0
- package/dist/generated/models/application-click-event-batch-dto.d.ts +4 -0
- package/dist/generated/models/application-click-event-batch-dto.js +1 -0
- package/dist/generated/models/application-click-event-create-dto.d.ts +4 -0
- package/dist/generated/models/application-click-event-create-dto.js +1 -0
- package/dist/generated/models/feedback-category-dto-list-i-data-result.d.ts +4 -0
- package/dist/generated/models/feedback-category-dto-list-i-data-result.js +1 -0
- package/dist/generated/models/feedback-category-dto.d.ts +4 -0
- package/dist/generated/models/feedback-category-dto.js +1 -0
- package/dist/generated/models/index.d.ts +17 -0
- package/dist/generated/models/index.js +17 -0
- package/dist/generated/models/otp-generate-result.d.ts +4 -0
- package/dist/generated/models/otp-generate-result.js +1 -0
- package/dist/generated/models/queue-monitor-workers-response.d.ts +4 -0
- package/dist/generated/models/queue-monitor-workers-response.js +1 -0
- package/dist/generated/models/risk-flag-request-dto.d.ts +4 -0
- package/dist/generated/models/risk-flag-request-dto.js +1 -0
- package/dist/generated/models/risk-signal-avg-dto.d.ts +4 -0
- package/dist/generated/models/risk-signal-avg-dto.js +1 -0
- package/dist/generated/models/risk-signal-client-dto.d.ts +4 -0
- package/dist/generated/models/risk-signal-client-dto.js +1 -0
- package/dist/generated/models/risk-signal-counts-dto.d.ts +4 -0
- package/dist/generated/models/risk-signal-counts-dto.js +1 -0
- package/dist/generated/models/risk-signals-dto.d.ts +4 -0
- package/dist/generated/models/risk-signals-dto.js +1 -0
- package/dist/generated/models/risk-state-dto.d.ts +4 -0
- package/dist/generated/models/risk-state-dto.js +1 -0
- package/dist/generated/models/risk-verify-dto.d.ts +4 -0
- package/dist/generated/models/risk-verify-dto.js +1 -0
- package/dist/generated/models/scan-status-dto-i-data-result.d.ts +4 -0
- package/dist/generated/models/scan-status-dto-i-data-result.js +1 -0
- package/dist/generated/models/scan-status-dto.d.ts +4 -0
- package/dist/generated/models/scan-status-dto.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/rx.d.ts +30 -6
- package/dist/security/index.d.ts +4 -0
- package/dist/security/index.js +2 -0
- package/dist/security/input-security-policy.d.ts +23 -0
- package/dist/security/input-security-policy.js +5 -0
- package/dist/security/input-security-service.d.ts +3 -0
- package/dist/security/input-security-service.js +153 -0
- package/dist/security/request-sanitizer.d.ts +18 -0
- package/dist/security/request-sanitizer.js +242 -0
- package/package.json +9 -4
package/dist/generated/index.js
CHANGED
|
@@ -882,6 +882,7 @@ export class AuthClient extends BaseApiClient {
|
|
|
882
882
|
signal,
|
|
883
883
|
headers: {
|
|
884
884
|
"Content-Type": "application/json",
|
|
885
|
+
"Accept": "application/json"
|
|
885
886
|
}
|
|
886
887
|
};
|
|
887
888
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
@@ -897,7 +898,8 @@ export class AuthClient extends BaseApiClient {
|
|
|
897
898
|
;
|
|
898
899
|
if (status === 200) {
|
|
899
900
|
return response.text().then((_responseText) => {
|
|
900
|
-
|
|
901
|
+
let result200 = null;
|
|
902
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
901
903
|
return result200;
|
|
902
904
|
});
|
|
903
905
|
}
|
|
@@ -922,6 +924,7 @@ export class AuthClient extends BaseApiClient {
|
|
|
922
924
|
signal,
|
|
923
925
|
headers: {
|
|
924
926
|
"Content-Type": "application/json",
|
|
927
|
+
"Accept": "application/json"
|
|
925
928
|
}
|
|
926
929
|
};
|
|
927
930
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
@@ -937,7 +940,8 @@ export class AuthClient extends BaseApiClient {
|
|
|
937
940
|
;
|
|
938
941
|
if (status === 200) {
|
|
939
942
|
return response.text().then((_responseText) => {
|
|
940
|
-
|
|
943
|
+
let result200 = null;
|
|
944
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
941
945
|
return result200;
|
|
942
946
|
});
|
|
943
947
|
}
|
|
@@ -962,7 +966,9 @@ export class AuthClient extends BaseApiClient {
|
|
|
962
966
|
let options_ = {
|
|
963
967
|
method: "POST",
|
|
964
968
|
signal,
|
|
965
|
-
headers: {
|
|
969
|
+
headers: {
|
|
970
|
+
"Accept": "application/json"
|
|
971
|
+
}
|
|
966
972
|
};
|
|
967
973
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
968
974
|
return this.processIsEmailVerif(_response);
|
|
@@ -977,7 +983,8 @@ export class AuthClient extends BaseApiClient {
|
|
|
977
983
|
;
|
|
978
984
|
if (status === 200) {
|
|
979
985
|
return response.text().then((_responseText) => {
|
|
980
|
-
|
|
986
|
+
let result200 = null;
|
|
987
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
981
988
|
return result200;
|
|
982
989
|
});
|
|
983
990
|
}
|
|
@@ -1002,6 +1009,7 @@ export class AuthClient extends BaseApiClient {
|
|
|
1002
1009
|
signal,
|
|
1003
1010
|
headers: {
|
|
1004
1011
|
"Content-Type": "application/json",
|
|
1012
|
+
"Accept": "application/json"
|
|
1005
1013
|
}
|
|
1006
1014
|
};
|
|
1007
1015
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
@@ -1017,7 +1025,8 @@ export class AuthClient extends BaseApiClient {
|
|
|
1017
1025
|
;
|
|
1018
1026
|
if (status === 200) {
|
|
1019
1027
|
return response.text().then((_responseText) => {
|
|
1020
|
-
|
|
1028
|
+
let result200 = null;
|
|
1029
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1021
1030
|
return result200;
|
|
1022
1031
|
});
|
|
1023
1032
|
}
|
|
@@ -1042,6 +1051,7 @@ export class AuthClient extends BaseApiClient {
|
|
|
1042
1051
|
signal,
|
|
1043
1052
|
headers: {
|
|
1044
1053
|
"Content-Type": "application/json",
|
|
1054
|
+
"Accept": "application/json"
|
|
1045
1055
|
}
|
|
1046
1056
|
};
|
|
1047
1057
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
@@ -1057,7 +1067,8 @@ export class AuthClient extends BaseApiClient {
|
|
|
1057
1067
|
;
|
|
1058
1068
|
if (status === 200) {
|
|
1059
1069
|
return response.text().then((_responseText) => {
|
|
1060
|
-
|
|
1070
|
+
let result200 = null;
|
|
1071
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1061
1072
|
return result200;
|
|
1062
1073
|
});
|
|
1063
1074
|
}
|
|
@@ -1082,7 +1093,9 @@ export class AuthClient extends BaseApiClient {
|
|
|
1082
1093
|
let options_ = {
|
|
1083
1094
|
method: "GET",
|
|
1084
1095
|
signal,
|
|
1085
|
-
headers: {
|
|
1096
|
+
headers: {
|
|
1097
|
+
"Accept": "application/json"
|
|
1098
|
+
}
|
|
1086
1099
|
};
|
|
1087
1100
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1088
1101
|
return this.processForgotPassword(_response);
|
|
@@ -1097,7 +1110,8 @@ export class AuthClient extends BaseApiClient {
|
|
|
1097
1110
|
;
|
|
1098
1111
|
if (status === 200) {
|
|
1099
1112
|
return response.text().then((_responseText) => {
|
|
1100
|
-
|
|
1113
|
+
let result200 = null;
|
|
1114
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1101
1115
|
return result200;
|
|
1102
1116
|
});
|
|
1103
1117
|
}
|
|
@@ -1117,7 +1131,9 @@ export class AuthClient extends BaseApiClient {
|
|
|
1117
1131
|
let options_ = {
|
|
1118
1132
|
method: "GET",
|
|
1119
1133
|
signal,
|
|
1120
|
-
headers: {
|
|
1134
|
+
headers: {
|
|
1135
|
+
"Accept": "application/json"
|
|
1136
|
+
}
|
|
1121
1137
|
};
|
|
1122
1138
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1123
1139
|
return this.processCsrfToken(_response);
|
|
@@ -1132,7 +1148,8 @@ export class AuthClient extends BaseApiClient {
|
|
|
1132
1148
|
;
|
|
1133
1149
|
if (status === 200) {
|
|
1134
1150
|
return response.text().then((_responseText) => {
|
|
1135
|
-
|
|
1151
|
+
let result200 = null;
|
|
1152
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1136
1153
|
return result200;
|
|
1137
1154
|
});
|
|
1138
1155
|
}
|
|
@@ -2407,6 +2424,243 @@ export class DevicesClient extends BaseApiClient {
|
|
|
2407
2424
|
return Promise.resolve(null);
|
|
2408
2425
|
}
|
|
2409
2426
|
}
|
|
2427
|
+
export class DiagnosticsClient extends BaseApiClient {
|
|
2428
|
+
constructor(configuration, baseUrl, http) {
|
|
2429
|
+
super(configuration);
|
|
2430
|
+
this.jsonParseReviver = undefined;
|
|
2431
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
2432
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
2433
|
+
}
|
|
2434
|
+
/**
|
|
2435
|
+
* @return OK
|
|
2436
|
+
*/
|
|
2437
|
+
testAspectLog(signal) {
|
|
2438
|
+
let url_ = this.baseUrl + "/api/diagnostics/test-aspect-log";
|
|
2439
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2440
|
+
let options_ = {
|
|
2441
|
+
method: "GET",
|
|
2442
|
+
signal,
|
|
2443
|
+
headers: {}
|
|
2444
|
+
};
|
|
2445
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
2446
|
+
return this.processTestAspectLog(_response);
|
|
2447
|
+
});
|
|
2448
|
+
}
|
|
2449
|
+
processTestAspectLog(response) {
|
|
2450
|
+
const status = response.status;
|
|
2451
|
+
let _headers = {};
|
|
2452
|
+
if (response.headers && response.headers.forEach) {
|
|
2453
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2454
|
+
}
|
|
2455
|
+
;
|
|
2456
|
+
if (status === 200) {
|
|
2457
|
+
return response.text().then((_responseText) => {
|
|
2458
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2459
|
+
return result200;
|
|
2460
|
+
});
|
|
2461
|
+
}
|
|
2462
|
+
else if (status !== 200 && status !== 204) {
|
|
2463
|
+
return response.text().then((_responseText) => {
|
|
2464
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2465
|
+
});
|
|
2466
|
+
}
|
|
2467
|
+
return Promise.resolve(null);
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
export class FeedbacksClient extends BaseApiClient {
|
|
2471
|
+
constructor(configuration, baseUrl, http) {
|
|
2472
|
+
super(configuration);
|
|
2473
|
+
this.jsonParseReviver = undefined;
|
|
2474
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
2475
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
2476
|
+
}
|
|
2477
|
+
/**
|
|
2478
|
+
* @param feedbackTypeId (optional)
|
|
2479
|
+
* @return OK
|
|
2480
|
+
*/
|
|
2481
|
+
categories(feedbackTypeId, signal) {
|
|
2482
|
+
let url_ = this.baseUrl + "/api/Feedbacks/categories?";
|
|
2483
|
+
if (feedbackTypeId === null)
|
|
2484
|
+
throw new globalThis.Error("The parameter 'feedbackTypeId' cannot be null.");
|
|
2485
|
+
else if (feedbackTypeId !== undefined)
|
|
2486
|
+
url_ += "feedbackTypeId=" + encodeURIComponent("" + feedbackTypeId) + "&";
|
|
2487
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2488
|
+
let options_ = {
|
|
2489
|
+
method: "GET",
|
|
2490
|
+
signal,
|
|
2491
|
+
headers: {
|
|
2492
|
+
"Accept": "application/json"
|
|
2493
|
+
}
|
|
2494
|
+
};
|
|
2495
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
2496
|
+
return this.processCategories(_response);
|
|
2497
|
+
});
|
|
2498
|
+
}
|
|
2499
|
+
processCategories(response) {
|
|
2500
|
+
const status = response.status;
|
|
2501
|
+
let _headers = {};
|
|
2502
|
+
if (response.headers && response.headers.forEach) {
|
|
2503
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2504
|
+
}
|
|
2505
|
+
;
|
|
2506
|
+
if (status === 200) {
|
|
2507
|
+
return response.text().then((_responseText) => {
|
|
2508
|
+
let result200 = null;
|
|
2509
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2510
|
+
return result200;
|
|
2511
|
+
});
|
|
2512
|
+
}
|
|
2513
|
+
else if (status !== 200 && status !== 204) {
|
|
2514
|
+
return response.text().then((_responseText) => {
|
|
2515
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
2518
|
+
return Promise.resolve(null);
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
export class ApiClient extends BaseApiClient {
|
|
2522
|
+
constructor(configuration, baseUrl, http) {
|
|
2523
|
+
super(configuration);
|
|
2524
|
+
this.jsonParseReviver = undefined;
|
|
2525
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
2526
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
2527
|
+
}
|
|
2528
|
+
/**
|
|
2529
|
+
* @param dto (optional)
|
|
2530
|
+
* @param screenshot (optional)
|
|
2531
|
+
* @param networkSnapshot (optional)
|
|
2532
|
+
* @return OK
|
|
2533
|
+
*/
|
|
2534
|
+
feedbacks(dto, screenshot, networkSnapshot, signal) {
|
|
2535
|
+
let url_ = this.baseUrl + "/api/Feedbacks";
|
|
2536
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2537
|
+
const content_ = new FormData();
|
|
2538
|
+
if (dto === null || dto === undefined)
|
|
2539
|
+
throw new globalThis.Error("The parameter 'dto' cannot be null.");
|
|
2540
|
+
else
|
|
2541
|
+
content_.append("Dto", dto.toString());
|
|
2542
|
+
if (screenshot === null || screenshot === undefined)
|
|
2543
|
+
throw new globalThis.Error("The parameter 'screenshot' cannot be null.");
|
|
2544
|
+
else
|
|
2545
|
+
content_.append("Screenshot", screenshot.data, screenshot.fileName ? screenshot.fileName : "Screenshot");
|
|
2546
|
+
if (networkSnapshot === null || networkSnapshot === undefined)
|
|
2547
|
+
throw new globalThis.Error("The parameter 'networkSnapshot' cannot be null.");
|
|
2548
|
+
else
|
|
2549
|
+
content_.append("NetworkSnapshot", networkSnapshot.data, networkSnapshot.fileName ? networkSnapshot.fileName : "NetworkSnapshot");
|
|
2550
|
+
let options_ = {
|
|
2551
|
+
body: content_,
|
|
2552
|
+
method: "POST",
|
|
2553
|
+
signal,
|
|
2554
|
+
headers: {}
|
|
2555
|
+
};
|
|
2556
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
2557
|
+
return this.processFeedbacks(_response);
|
|
2558
|
+
});
|
|
2559
|
+
}
|
|
2560
|
+
processFeedbacks(response) {
|
|
2561
|
+
const status = response.status;
|
|
2562
|
+
let _headers = {};
|
|
2563
|
+
if (response.headers && response.headers.forEach) {
|
|
2564
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2565
|
+
}
|
|
2566
|
+
;
|
|
2567
|
+
if (status === 200) {
|
|
2568
|
+
return response.text().then((_responseText) => {
|
|
2569
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2570
|
+
return result200;
|
|
2571
|
+
});
|
|
2572
|
+
}
|
|
2573
|
+
else if (status !== 200 && status !== 204) {
|
|
2574
|
+
return response.text().then((_responseText) => {
|
|
2575
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2576
|
+
});
|
|
2577
|
+
}
|
|
2578
|
+
return Promise.resolve(null);
|
|
2579
|
+
}
|
|
2580
|
+
/**
|
|
2581
|
+
* @param body (optional)
|
|
2582
|
+
* @return OK
|
|
2583
|
+
*/
|
|
2584
|
+
shareLinksPost(body, signal) {
|
|
2585
|
+
let url_ = this.baseUrl + "/api/share-links";
|
|
2586
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2587
|
+
const content_ = JSON.stringify(body);
|
|
2588
|
+
let options_ = {
|
|
2589
|
+
body: content_,
|
|
2590
|
+
method: "POST",
|
|
2591
|
+
signal,
|
|
2592
|
+
headers: {
|
|
2593
|
+
"Content-Type": "application/json",
|
|
2594
|
+
"Accept": "application/json"
|
|
2595
|
+
}
|
|
2596
|
+
};
|
|
2597
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
2598
|
+
return this.processShareLinksPost(_response);
|
|
2599
|
+
});
|
|
2600
|
+
}
|
|
2601
|
+
processShareLinksPost(response) {
|
|
2602
|
+
const status = response.status;
|
|
2603
|
+
let _headers = {};
|
|
2604
|
+
if (response.headers && response.headers.forEach) {
|
|
2605
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2606
|
+
}
|
|
2607
|
+
;
|
|
2608
|
+
if (status === 200) {
|
|
2609
|
+
return response.text().then((_responseText) => {
|
|
2610
|
+
let result200 = null;
|
|
2611
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2612
|
+
return result200;
|
|
2613
|
+
});
|
|
2614
|
+
}
|
|
2615
|
+
else if (status !== 200 && status !== 204) {
|
|
2616
|
+
return response.text().then((_responseText) => {
|
|
2617
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
return Promise.resolve(null);
|
|
2621
|
+
}
|
|
2622
|
+
/**
|
|
2623
|
+
* @return OK
|
|
2624
|
+
*/
|
|
2625
|
+
shareLinksGet(code, signal) {
|
|
2626
|
+
let url_ = this.baseUrl + "/api/share-links/{code}";
|
|
2627
|
+
if (code === undefined || code === null)
|
|
2628
|
+
throw new globalThis.Error("The parameter 'code' must be defined.");
|
|
2629
|
+
url_ = url_.replace("{code}", encodeURIComponent("" + code));
|
|
2630
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2631
|
+
let options_ = {
|
|
2632
|
+
method: "GET",
|
|
2633
|
+
signal,
|
|
2634
|
+
headers: {
|
|
2635
|
+
"Accept": "application/json"
|
|
2636
|
+
}
|
|
2637
|
+
};
|
|
2638
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
2639
|
+
return this.processShareLinksGet(_response);
|
|
2640
|
+
});
|
|
2641
|
+
}
|
|
2642
|
+
processShareLinksGet(response) {
|
|
2643
|
+
const status = response.status;
|
|
2644
|
+
let _headers = {};
|
|
2645
|
+
if (response.headers && response.headers.forEach) {
|
|
2646
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2647
|
+
}
|
|
2648
|
+
;
|
|
2649
|
+
if (status === 200) {
|
|
2650
|
+
return response.text().then((_responseText) => {
|
|
2651
|
+
let result200 = null;
|
|
2652
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2653
|
+
return result200;
|
|
2654
|
+
});
|
|
2655
|
+
}
|
|
2656
|
+
else if (status !== 200 && status !== 204) {
|
|
2657
|
+
return response.text().then((_responseText) => {
|
|
2658
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2659
|
+
});
|
|
2660
|
+
}
|
|
2661
|
+
return Promise.resolve(null);
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2410
2664
|
export class InteractionTrackersClient extends BaseApiClient {
|
|
2411
2665
|
constructor(configuration, baseUrl, http) {
|
|
2412
2666
|
super(configuration);
|
|
@@ -4242,6 +4496,7 @@ export class NotificationsClient extends BaseApiClient {
|
|
|
4242
4496
|
signal,
|
|
4243
4497
|
headers: {
|
|
4244
4498
|
"Content-Type": "application/json",
|
|
4499
|
+
"Accept": "application/json"
|
|
4245
4500
|
}
|
|
4246
4501
|
};
|
|
4247
4502
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
@@ -4257,7 +4512,8 @@ export class NotificationsClient extends BaseApiClient {
|
|
|
4257
4512
|
;
|
|
4258
4513
|
if (status === 200) {
|
|
4259
4514
|
return response.text().then((_responseText) => {
|
|
4260
|
-
|
|
4515
|
+
let result200 = null;
|
|
4516
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4261
4517
|
return result200;
|
|
4262
4518
|
});
|
|
4263
4519
|
}
|
|
@@ -4282,6 +4538,7 @@ export class NotificationsClient extends BaseApiClient {
|
|
|
4282
4538
|
signal,
|
|
4283
4539
|
headers: {
|
|
4284
4540
|
"Content-Type": "application/json",
|
|
4541
|
+
"Accept": "application/json"
|
|
4285
4542
|
}
|
|
4286
4543
|
};
|
|
4287
4544
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
@@ -4297,7 +4554,8 @@ export class NotificationsClient extends BaseApiClient {
|
|
|
4297
4554
|
;
|
|
4298
4555
|
if (status === 200) {
|
|
4299
4556
|
return response.text().then((_responseText) => {
|
|
4300
|
-
|
|
4557
|
+
let result200 = null;
|
|
4558
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4301
4559
|
return result200;
|
|
4302
4560
|
});
|
|
4303
4561
|
}
|
|
@@ -5079,7 +5337,7 @@ export class OperationClaimsClient extends BaseApiClient {
|
|
|
5079
5337
|
return Promise.resolve(null);
|
|
5080
5338
|
}
|
|
5081
5339
|
}
|
|
5082
|
-
export class
|
|
5340
|
+
export class PortalClient extends BaseApiClient {
|
|
5083
5341
|
constructor(configuration, baseUrl, http) {
|
|
5084
5342
|
super(configuration);
|
|
5085
5343
|
this.jsonParseReviver = undefined;
|
|
@@ -5087,10 +5345,25 @@ export class QueueMonitorClient extends BaseApiClient {
|
|
|
5087
5345
|
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
5088
5346
|
}
|
|
5089
5347
|
/**
|
|
5348
|
+
* @param category (optional)
|
|
5349
|
+
* @param featuredOnly (optional)
|
|
5350
|
+
* @param search (optional)
|
|
5090
5351
|
* @return OK
|
|
5091
5352
|
*/
|
|
5092
|
-
|
|
5093
|
-
let url_ = this.baseUrl + "/api/
|
|
5353
|
+
catalog(category, featuredOnly, search, signal) {
|
|
5354
|
+
let url_ = this.baseUrl + "/api/portal/catalog?";
|
|
5355
|
+
if (category === null)
|
|
5356
|
+
throw new globalThis.Error("The parameter 'category' cannot be null.");
|
|
5357
|
+
else if (category !== undefined)
|
|
5358
|
+
url_ += "category=" + encodeURIComponent("" + category) + "&";
|
|
5359
|
+
if (featuredOnly === null)
|
|
5360
|
+
throw new globalThis.Error("The parameter 'featuredOnly' cannot be null.");
|
|
5361
|
+
else if (featuredOnly !== undefined)
|
|
5362
|
+
url_ += "featuredOnly=" + encodeURIComponent("" + featuredOnly) + "&";
|
|
5363
|
+
if (search === null)
|
|
5364
|
+
throw new globalThis.Error("The parameter 'search' cannot be null.");
|
|
5365
|
+
else if (search !== undefined)
|
|
5366
|
+
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
5094
5367
|
url_ = url_.replace(/[?&]$/, "");
|
|
5095
5368
|
let options_ = {
|
|
5096
5369
|
method: "GET",
|
|
@@ -5098,10 +5371,10 @@ export class QueueMonitorClient extends BaseApiClient {
|
|
|
5098
5371
|
headers: {}
|
|
5099
5372
|
};
|
|
5100
5373
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5101
|
-
return this.
|
|
5374
|
+
return this.processCatalog(_response);
|
|
5102
5375
|
});
|
|
5103
5376
|
}
|
|
5104
|
-
|
|
5377
|
+
processCatalog(response) {
|
|
5105
5378
|
const status = response.status;
|
|
5106
5379
|
let _headers = {};
|
|
5107
5380
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5121,6 +5394,130 @@ export class QueueMonitorClient extends BaseApiClient {
|
|
|
5121
5394
|
}
|
|
5122
5395
|
return Promise.resolve(null);
|
|
5123
5396
|
}
|
|
5397
|
+
/**
|
|
5398
|
+
* @return OK
|
|
5399
|
+
*/
|
|
5400
|
+
application(appKey, signal) {
|
|
5401
|
+
let url_ = this.baseUrl + "/api/portal/application/{appKey}";
|
|
5402
|
+
if (appKey === undefined || appKey === null)
|
|
5403
|
+
throw new globalThis.Error("The parameter 'appKey' must be defined.");
|
|
5404
|
+
url_ = url_.replace("{appKey}", encodeURIComponent("" + appKey));
|
|
5405
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5406
|
+
let options_ = {
|
|
5407
|
+
method: "GET",
|
|
5408
|
+
signal,
|
|
5409
|
+
headers: {}
|
|
5410
|
+
};
|
|
5411
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5412
|
+
return this.processApplication(_response);
|
|
5413
|
+
});
|
|
5414
|
+
}
|
|
5415
|
+
processApplication(response) {
|
|
5416
|
+
const status = response.status;
|
|
5417
|
+
let _headers = {};
|
|
5418
|
+
if (response.headers && response.headers.forEach) {
|
|
5419
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5420
|
+
}
|
|
5421
|
+
;
|
|
5422
|
+
if (status === 200) {
|
|
5423
|
+
return response.text().then((_responseText) => {
|
|
5424
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5425
|
+
return result200;
|
|
5426
|
+
});
|
|
5427
|
+
}
|
|
5428
|
+
else if (status !== 200 && status !== 204) {
|
|
5429
|
+
return response.text().then((_responseText) => {
|
|
5430
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5431
|
+
});
|
|
5432
|
+
}
|
|
5433
|
+
return Promise.resolve(null);
|
|
5434
|
+
}
|
|
5435
|
+
/**
|
|
5436
|
+
* @param body (optional)
|
|
5437
|
+
* @return OK
|
|
5438
|
+
*/
|
|
5439
|
+
track(body, signal) {
|
|
5440
|
+
let url_ = this.baseUrl + "/api/portal/track";
|
|
5441
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5442
|
+
const content_ = JSON.stringify(body);
|
|
5443
|
+
let options_ = {
|
|
5444
|
+
body: content_,
|
|
5445
|
+
method: "POST",
|
|
5446
|
+
signal,
|
|
5447
|
+
headers: {
|
|
5448
|
+
"Content-Type": "application/json",
|
|
5449
|
+
}
|
|
5450
|
+
};
|
|
5451
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5452
|
+
return this.processTrack(_response);
|
|
5453
|
+
});
|
|
5454
|
+
}
|
|
5455
|
+
processTrack(response) {
|
|
5456
|
+
const status = response.status;
|
|
5457
|
+
let _headers = {};
|
|
5458
|
+
if (response.headers && response.headers.forEach) {
|
|
5459
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5460
|
+
}
|
|
5461
|
+
;
|
|
5462
|
+
if (status === 200) {
|
|
5463
|
+
return response.text().then((_responseText) => {
|
|
5464
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5465
|
+
return result200;
|
|
5466
|
+
});
|
|
5467
|
+
}
|
|
5468
|
+
else if (status !== 200 && status !== 204) {
|
|
5469
|
+
return response.text().then((_responseText) => {
|
|
5470
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5471
|
+
});
|
|
5472
|
+
}
|
|
5473
|
+
return Promise.resolve(null);
|
|
5474
|
+
}
|
|
5475
|
+
}
|
|
5476
|
+
export class QueueMonitorClient extends BaseApiClient {
|
|
5477
|
+
constructor(configuration, baseUrl, http) {
|
|
5478
|
+
super(configuration);
|
|
5479
|
+
this.jsonParseReviver = undefined;
|
|
5480
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
5481
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
5482
|
+
}
|
|
5483
|
+
/**
|
|
5484
|
+
* @return OK
|
|
5485
|
+
*/
|
|
5486
|
+
metrics(signal) {
|
|
5487
|
+
let url_ = this.baseUrl + "/api/QueueMonitor/metrics";
|
|
5488
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5489
|
+
let options_ = {
|
|
5490
|
+
method: "GET",
|
|
5491
|
+
signal,
|
|
5492
|
+
headers: {
|
|
5493
|
+
"Accept": "application/json"
|
|
5494
|
+
}
|
|
5495
|
+
};
|
|
5496
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5497
|
+
return this.processMetrics(_response);
|
|
5498
|
+
});
|
|
5499
|
+
}
|
|
5500
|
+
processMetrics(response) {
|
|
5501
|
+
const status = response.status;
|
|
5502
|
+
let _headers = {};
|
|
5503
|
+
if (response.headers && response.headers.forEach) {
|
|
5504
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5505
|
+
}
|
|
5506
|
+
;
|
|
5507
|
+
if (status === 200) {
|
|
5508
|
+
return response.text().then((_responseText) => {
|
|
5509
|
+
let result200 = null;
|
|
5510
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5511
|
+
return result200;
|
|
5512
|
+
});
|
|
5513
|
+
}
|
|
5514
|
+
else if (status !== 200 && status !== 204) {
|
|
5515
|
+
return response.text().then((_responseText) => {
|
|
5516
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5517
|
+
});
|
|
5518
|
+
}
|
|
5519
|
+
return Promise.resolve(null);
|
|
5520
|
+
}
|
|
5124
5521
|
/**
|
|
5125
5522
|
* @return OK
|
|
5126
5523
|
*/
|
|
@@ -5130,7 +5527,9 @@ export class QueueMonitorClient extends BaseApiClient {
|
|
|
5130
5527
|
let options_ = {
|
|
5131
5528
|
method: "GET",
|
|
5132
5529
|
signal,
|
|
5133
|
-
headers: {
|
|
5530
|
+
headers: {
|
|
5531
|
+
"Accept": "application/json"
|
|
5532
|
+
}
|
|
5134
5533
|
};
|
|
5135
5534
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5136
5535
|
return this.processWorkers(_response);
|
|
@@ -5145,7 +5544,8 @@ export class QueueMonitorClient extends BaseApiClient {
|
|
|
5145
5544
|
;
|
|
5146
5545
|
if (status === 200) {
|
|
5147
5546
|
return response.text().then((_responseText) => {
|
|
5148
|
-
|
|
5547
|
+
let result200 = null;
|
|
5548
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5149
5549
|
return result200;
|
|
5150
5550
|
});
|
|
5151
5551
|
}
|
|
@@ -5208,13 +5608,202 @@ export class MetricsClient extends BaseApiClient {
|
|
|
5208
5608
|
let options_ = {
|
|
5209
5609
|
method: "GET",
|
|
5210
5610
|
signal,
|
|
5211
|
-
headers: {}
|
|
5611
|
+
headers: {}
|
|
5612
|
+
};
|
|
5613
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5614
|
+
return this.processPrometheus(_response);
|
|
5615
|
+
});
|
|
5616
|
+
}
|
|
5617
|
+
processPrometheus(response) {
|
|
5618
|
+
const status = response.status;
|
|
5619
|
+
let _headers = {};
|
|
5620
|
+
if (response.headers && response.headers.forEach) {
|
|
5621
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5622
|
+
}
|
|
5623
|
+
;
|
|
5624
|
+
if (status === 200) {
|
|
5625
|
+
return response.text().then((_responseText) => {
|
|
5626
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5627
|
+
return result200;
|
|
5628
|
+
});
|
|
5629
|
+
}
|
|
5630
|
+
else if (status !== 200 && status !== 204) {
|
|
5631
|
+
return response.text().then((_responseText) => {
|
|
5632
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5633
|
+
});
|
|
5634
|
+
}
|
|
5635
|
+
return Promise.resolve(null);
|
|
5636
|
+
}
|
|
5637
|
+
}
|
|
5638
|
+
export class HealthClient extends BaseApiClient {
|
|
5639
|
+
constructor(configuration, baseUrl, http) {
|
|
5640
|
+
super(configuration);
|
|
5641
|
+
this.jsonParseReviver = undefined;
|
|
5642
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
5643
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
5644
|
+
}
|
|
5645
|
+
/**
|
|
5646
|
+
* @return OK
|
|
5647
|
+
*/
|
|
5648
|
+
live(signal) {
|
|
5649
|
+
let url_ = this.baseUrl + "/api/QueueMonitor/health/live";
|
|
5650
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5651
|
+
let options_ = {
|
|
5652
|
+
method: "GET",
|
|
5653
|
+
signal,
|
|
5654
|
+
headers: {
|
|
5655
|
+
"Accept": "application/json"
|
|
5656
|
+
}
|
|
5657
|
+
};
|
|
5658
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5659
|
+
return this.processLive(_response);
|
|
5660
|
+
});
|
|
5661
|
+
}
|
|
5662
|
+
processLive(response) {
|
|
5663
|
+
const status = response.status;
|
|
5664
|
+
let _headers = {};
|
|
5665
|
+
if (response.headers && response.headers.forEach) {
|
|
5666
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5667
|
+
}
|
|
5668
|
+
;
|
|
5669
|
+
if (status === 200) {
|
|
5670
|
+
return response.text().then((_responseText) => {
|
|
5671
|
+
let result200 = null;
|
|
5672
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5673
|
+
return result200;
|
|
5674
|
+
});
|
|
5675
|
+
}
|
|
5676
|
+
else if (status !== 200 && status !== 204) {
|
|
5677
|
+
return response.text().then((_responseText) => {
|
|
5678
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5679
|
+
});
|
|
5680
|
+
}
|
|
5681
|
+
return Promise.resolve(null);
|
|
5682
|
+
}
|
|
5683
|
+
}
|
|
5684
|
+
export class RiskClient extends BaseApiClient {
|
|
5685
|
+
constructor(configuration, baseUrl, http) {
|
|
5686
|
+
super(configuration);
|
|
5687
|
+
this.jsonParseReviver = undefined;
|
|
5688
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
5689
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
5690
|
+
}
|
|
5691
|
+
/**
|
|
5692
|
+
* @param body (optional)
|
|
5693
|
+
* @return OK
|
|
5694
|
+
*/
|
|
5695
|
+
flag(body, signal) {
|
|
5696
|
+
let url_ = this.baseUrl + "/api/Risk/flag";
|
|
5697
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5698
|
+
const content_ = JSON.stringify(body);
|
|
5699
|
+
let options_ = {
|
|
5700
|
+
body: content_,
|
|
5701
|
+
method: "POST",
|
|
5702
|
+
signal,
|
|
5703
|
+
headers: {
|
|
5704
|
+
"Content-Type": "application/json",
|
|
5705
|
+
"Accept": "application/json"
|
|
5706
|
+
}
|
|
5707
|
+
};
|
|
5708
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5709
|
+
return this.processFlag(_response);
|
|
5710
|
+
});
|
|
5711
|
+
}
|
|
5712
|
+
processFlag(response) {
|
|
5713
|
+
const status = response.status;
|
|
5714
|
+
let _headers = {};
|
|
5715
|
+
if (response.headers && response.headers.forEach) {
|
|
5716
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5717
|
+
}
|
|
5718
|
+
;
|
|
5719
|
+
if (status === 200) {
|
|
5720
|
+
return response.text().then((_responseText) => {
|
|
5721
|
+
let result200 = null;
|
|
5722
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5723
|
+
return result200;
|
|
5724
|
+
});
|
|
5725
|
+
}
|
|
5726
|
+
else if (status === 400) {
|
|
5727
|
+
return response.text().then((_responseText) => {
|
|
5728
|
+
let result400 = null;
|
|
5729
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5730
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
5731
|
+
});
|
|
5732
|
+
}
|
|
5733
|
+
else if (status !== 200 && status !== 204) {
|
|
5734
|
+
return response.text().then((_responseText) => {
|
|
5735
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5736
|
+
});
|
|
5737
|
+
}
|
|
5738
|
+
return Promise.resolve(null);
|
|
5739
|
+
}
|
|
5740
|
+
/**
|
|
5741
|
+
* @param body (optional)
|
|
5742
|
+
* @return OK
|
|
5743
|
+
*/
|
|
5744
|
+
verify(body, signal) {
|
|
5745
|
+
let url_ = this.baseUrl + "/api/Risk/verify";
|
|
5746
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5747
|
+
const content_ = JSON.stringify(body);
|
|
5748
|
+
let options_ = {
|
|
5749
|
+
body: content_,
|
|
5750
|
+
method: "POST",
|
|
5751
|
+
signal,
|
|
5752
|
+
headers: {
|
|
5753
|
+
"Content-Type": "application/json",
|
|
5754
|
+
"Accept": "application/json"
|
|
5755
|
+
}
|
|
5756
|
+
};
|
|
5757
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5758
|
+
return this.processVerify(_response);
|
|
5759
|
+
});
|
|
5760
|
+
}
|
|
5761
|
+
processVerify(response) {
|
|
5762
|
+
const status = response.status;
|
|
5763
|
+
let _headers = {};
|
|
5764
|
+
if (response.headers && response.headers.forEach) {
|
|
5765
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5766
|
+
}
|
|
5767
|
+
;
|
|
5768
|
+
if (status === 200) {
|
|
5769
|
+
return response.text().then((_responseText) => {
|
|
5770
|
+
let result200 = null;
|
|
5771
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5772
|
+
return result200;
|
|
5773
|
+
});
|
|
5774
|
+
}
|
|
5775
|
+
else if (status === 400) {
|
|
5776
|
+
return response.text().then((_responseText) => {
|
|
5777
|
+
let result400 = null;
|
|
5778
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5779
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
5780
|
+
});
|
|
5781
|
+
}
|
|
5782
|
+
else if (status !== 200 && status !== 204) {
|
|
5783
|
+
return response.text().then((_responseText) => {
|
|
5784
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5785
|
+
});
|
|
5786
|
+
}
|
|
5787
|
+
return Promise.resolve(null);
|
|
5788
|
+
}
|
|
5789
|
+
/**
|
|
5790
|
+
* @return OK
|
|
5791
|
+
*/
|
|
5792
|
+
otp(signal) {
|
|
5793
|
+
let url_ = this.baseUrl + "/api/Risk/otp";
|
|
5794
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5795
|
+
let options_ = {
|
|
5796
|
+
method: "POST",
|
|
5797
|
+
signal,
|
|
5798
|
+
headers: {
|
|
5799
|
+
"Accept": "application/json"
|
|
5800
|
+
}
|
|
5212
5801
|
};
|
|
5213
5802
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5214
|
-
return this.
|
|
5803
|
+
return this.processOtp(_response);
|
|
5215
5804
|
});
|
|
5216
5805
|
}
|
|
5217
|
-
|
|
5806
|
+
processOtp(response) {
|
|
5218
5807
|
const status = response.status;
|
|
5219
5808
|
let _headers = {};
|
|
5220
5809
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5223,10 +5812,18 @@ export class MetricsClient extends BaseApiClient {
|
|
|
5223
5812
|
;
|
|
5224
5813
|
if (status === 200) {
|
|
5225
5814
|
return response.text().then((_responseText) => {
|
|
5226
|
-
|
|
5815
|
+
let result200 = null;
|
|
5816
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5227
5817
|
return result200;
|
|
5228
5818
|
});
|
|
5229
5819
|
}
|
|
5820
|
+
else if (status === 429) {
|
|
5821
|
+
return response.text().then((_responseText) => {
|
|
5822
|
+
let result429 = null;
|
|
5823
|
+
result429 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5824
|
+
return throwException("Too Many Requests", status, _responseText, _headers, result429);
|
|
5825
|
+
});
|
|
5826
|
+
}
|
|
5230
5827
|
else if (status !== 200 && status !== 204) {
|
|
5231
5828
|
return response.text().then((_responseText) => {
|
|
5232
5829
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5234,30 +5831,46 @@ export class MetricsClient extends BaseApiClient {
|
|
|
5234
5831
|
}
|
|
5235
5832
|
return Promise.resolve(null);
|
|
5236
5833
|
}
|
|
5237
|
-
}
|
|
5238
|
-
export class HealthClient extends BaseApiClient {
|
|
5239
|
-
constructor(configuration, baseUrl, http) {
|
|
5240
|
-
super(configuration);
|
|
5241
|
-
this.jsonParseReviver = undefined;
|
|
5242
|
-
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
5243
|
-
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
5244
|
-
}
|
|
5245
5834
|
/**
|
|
5835
|
+
* @param email (optional)
|
|
5836
|
+
* @param subject (optional)
|
|
5837
|
+
* @param message (optional)
|
|
5838
|
+
* @param files (optional)
|
|
5246
5839
|
* @return OK
|
|
5247
5840
|
*/
|
|
5248
|
-
|
|
5249
|
-
let url_ = this.baseUrl + "/api/
|
|
5841
|
+
appeal(email, subject, message, files, signal) {
|
|
5842
|
+
let url_ = this.baseUrl + "/api/Risk/appeal";
|
|
5250
5843
|
url_ = url_.replace(/[?&]$/, "");
|
|
5844
|
+
const content_ = new FormData();
|
|
5845
|
+
if (email === null || email === undefined)
|
|
5846
|
+
throw new globalThis.Error("The parameter 'email' cannot be null.");
|
|
5847
|
+
else
|
|
5848
|
+
content_.append("Email", email.toString());
|
|
5849
|
+
if (subject === null || subject === undefined)
|
|
5850
|
+
throw new globalThis.Error("The parameter 'subject' cannot be null.");
|
|
5851
|
+
else
|
|
5852
|
+
content_.append("Subject", subject.toString());
|
|
5853
|
+
if (message === null || message === undefined)
|
|
5854
|
+
throw new globalThis.Error("The parameter 'message' cannot be null.");
|
|
5855
|
+
else
|
|
5856
|
+
content_.append("Message", message.toString());
|
|
5857
|
+
if (files === null || files === undefined)
|
|
5858
|
+
throw new globalThis.Error("The parameter 'files' cannot be null.");
|
|
5859
|
+
else
|
|
5860
|
+
files.forEach(item_ => content_.append("Files", item_.data, item_.fileName ? item_.fileName : "Files"));
|
|
5251
5861
|
let options_ = {
|
|
5252
|
-
|
|
5862
|
+
body: content_,
|
|
5863
|
+
method: "POST",
|
|
5253
5864
|
signal,
|
|
5254
|
-
headers: {
|
|
5865
|
+
headers: {
|
|
5866
|
+
"Accept": "application/json"
|
|
5867
|
+
}
|
|
5255
5868
|
};
|
|
5256
5869
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5257
|
-
return this.
|
|
5870
|
+
return this.processAppeal(_response);
|
|
5258
5871
|
});
|
|
5259
5872
|
}
|
|
5260
|
-
|
|
5873
|
+
processAppeal(response) {
|
|
5261
5874
|
const status = response.status;
|
|
5262
5875
|
let _headers = {};
|
|
5263
5876
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5266,10 +5879,18 @@ export class HealthClient extends BaseApiClient {
|
|
|
5266
5879
|
;
|
|
5267
5880
|
if (status === 200) {
|
|
5268
5881
|
return response.text().then((_responseText) => {
|
|
5269
|
-
|
|
5882
|
+
let result200 = null;
|
|
5883
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5270
5884
|
return result200;
|
|
5271
5885
|
});
|
|
5272
5886
|
}
|
|
5887
|
+
else if (status === 400) {
|
|
5888
|
+
return response.text().then((_responseText) => {
|
|
5889
|
+
let result400 = null;
|
|
5890
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5891
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
5892
|
+
});
|
|
5893
|
+
}
|
|
5273
5894
|
else if (status !== 200 && status !== 204) {
|
|
5274
5895
|
return response.text().then((_responseText) => {
|
|
5275
5896
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -12537,9 +13158,10 @@ export class ScanDatasClient extends BaseApiClient {
|
|
|
12537
13158
|
}
|
|
12538
13159
|
/**
|
|
12539
13160
|
* @param scanGuid (optional)
|
|
13161
|
+
* @param x_Internal_Api_Key (optional)
|
|
12540
13162
|
* @return OK
|
|
12541
13163
|
*/
|
|
12542
|
-
getScanDataForAlgorithmAnalysisDtoByGuidInternal(scanGuid, signal) {
|
|
13164
|
+
getScanDataForAlgorithmAnalysisDtoByGuidInternal(scanGuid, x_Internal_Api_Key, signal) {
|
|
12543
13165
|
let url_ = this.baseUrl + "/api/ScanDatas/GetScanDataForAlgorithmAnalysisDtoByGuidInternal?";
|
|
12544
13166
|
if (scanGuid === null)
|
|
12545
13167
|
throw new globalThis.Error("The parameter 'scanGuid' cannot be null.");
|
|
@@ -12550,6 +13172,7 @@ export class ScanDatasClient extends BaseApiClient {
|
|
|
12550
13172
|
method: "GET",
|
|
12551
13173
|
signal,
|
|
12552
13174
|
headers: {
|
|
13175
|
+
"X-Internal-Api-Key": x_Internal_Api_Key !== undefined && x_Internal_Api_Key !== null ? "" + x_Internal_Api_Key : "",
|
|
12553
13176
|
"Accept": "application/json"
|
|
12554
13177
|
}
|
|
12555
13178
|
};
|
|
@@ -13710,10 +14333,15 @@ export class ScanEngineImagesClient extends BaseApiClient {
|
|
|
13710
14333
|
return Promise.resolve(null);
|
|
13711
14334
|
}
|
|
13712
14335
|
/**
|
|
14336
|
+
* @param force (optional)
|
|
13713
14337
|
* @return OK
|
|
13714
14338
|
*/
|
|
13715
|
-
saveImagesBySearch(signal) {
|
|
13716
|
-
let url_ = this.baseUrl + "/api/ScanEngineImages/SaveImagesBySearch";
|
|
14339
|
+
saveImagesBySearch(force, signal) {
|
|
14340
|
+
let url_ = this.baseUrl + "/api/ScanEngineImages/SaveImagesBySearch?";
|
|
14341
|
+
if (force === null)
|
|
14342
|
+
throw new globalThis.Error("The parameter 'force' cannot be null.");
|
|
14343
|
+
else if (force !== undefined)
|
|
14344
|
+
url_ += "force=" + encodeURIComponent("" + force) + "&";
|
|
13717
14345
|
url_ = url_.replace(/[?&]$/, "");
|
|
13718
14346
|
let options_ = {
|
|
13719
14347
|
method: "GET",
|
|
@@ -15165,9 +15793,10 @@ export class ScanClient extends BaseApiClient {
|
|
|
15165
15793
|
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
15166
15794
|
}
|
|
15167
15795
|
/**
|
|
15796
|
+
* @param x_session_token (optional)
|
|
15168
15797
|
* @return OK
|
|
15169
15798
|
*/
|
|
15170
|
-
proxyGet(serviceName, path, signal) {
|
|
15799
|
+
proxyGet(serviceName, path, x_session_token, signal) {
|
|
15171
15800
|
let url_ = this.baseUrl + "/api/scan/proxy/{serviceName}/{path}";
|
|
15172
15801
|
if (serviceName === undefined || serviceName === null)
|
|
15173
15802
|
throw new globalThis.Error("The parameter 'serviceName' must be defined.");
|
|
@@ -15179,7 +15808,9 @@ export class ScanClient extends BaseApiClient {
|
|
|
15179
15808
|
let options_ = {
|
|
15180
15809
|
method: "GET",
|
|
15181
15810
|
signal,
|
|
15182
|
-
headers: {
|
|
15811
|
+
headers: {
|
|
15812
|
+
"x-session-token": x_session_token !== undefined && x_session_token !== null ? "" + x_session_token : "",
|
|
15813
|
+
}
|
|
15183
15814
|
};
|
|
15184
15815
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
15185
15816
|
return this.processProxyGet(_response);
|
|
@@ -15206,9 +15837,10 @@ export class ScanClient extends BaseApiClient {
|
|
|
15206
15837
|
return Promise.resolve(null);
|
|
15207
15838
|
}
|
|
15208
15839
|
/**
|
|
15840
|
+
* @param x_session_token (optional)
|
|
15209
15841
|
* @return OK
|
|
15210
15842
|
*/
|
|
15211
|
-
proxyPost(serviceName, path, signal) {
|
|
15843
|
+
proxyPost(serviceName, path, x_session_token, signal) {
|
|
15212
15844
|
let url_ = this.baseUrl + "/api/scan/proxy/{serviceName}/{path}";
|
|
15213
15845
|
if (serviceName === undefined || serviceName === null)
|
|
15214
15846
|
throw new globalThis.Error("The parameter 'serviceName' must be defined.");
|
|
@@ -15220,7 +15852,9 @@ export class ScanClient extends BaseApiClient {
|
|
|
15220
15852
|
let options_ = {
|
|
15221
15853
|
method: "POST",
|
|
15222
15854
|
signal,
|
|
15223
|
-
headers: {
|
|
15855
|
+
headers: {
|
|
15856
|
+
"x-session-token": x_session_token !== undefined && x_session_token !== null ? "" + x_session_token : "",
|
|
15857
|
+
}
|
|
15224
15858
|
};
|
|
15225
15859
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
15226
15860
|
return this.processProxyPost(_response);
|
|
@@ -15247,10 +15881,11 @@ export class ScanClient extends BaseApiClient {
|
|
|
15247
15881
|
return Promise.resolve(null);
|
|
15248
15882
|
}
|
|
15249
15883
|
/**
|
|
15884
|
+
* @param x_session_token (optional)
|
|
15250
15885
|
* @param body (optional)
|
|
15251
15886
|
* @return OK
|
|
15252
15887
|
*/
|
|
15253
|
-
execute(taskName, body, signal) {
|
|
15888
|
+
execute(taskName, x_session_token, body, signal) {
|
|
15254
15889
|
let url_ = this.baseUrl + "/api/scan/execute/{taskName}";
|
|
15255
15890
|
if (taskName === undefined || taskName === null)
|
|
15256
15891
|
throw new globalThis.Error("The parameter 'taskName' must be defined.");
|
|
@@ -15262,6 +15897,7 @@ export class ScanClient extends BaseApiClient {
|
|
|
15262
15897
|
method: "POST",
|
|
15263
15898
|
signal,
|
|
15264
15899
|
headers: {
|
|
15900
|
+
"x-session-token": x_session_token !== undefined && x_session_token !== null ? "" + x_session_token : "",
|
|
15265
15901
|
"Content-Type": "application/json",
|
|
15266
15902
|
}
|
|
15267
15903
|
};
|
|
@@ -15762,6 +16398,47 @@ export class ScansClient extends BaseApiClient {
|
|
|
15762
16398
|
}
|
|
15763
16399
|
return Promise.resolve(null);
|
|
15764
16400
|
}
|
|
16401
|
+
/**
|
|
16402
|
+
* @return OK
|
|
16403
|
+
*/
|
|
16404
|
+
status(guid, signal) {
|
|
16405
|
+
let url_ = this.baseUrl + "/api/Scans/{guid}/status";
|
|
16406
|
+
if (guid === undefined || guid === null)
|
|
16407
|
+
throw new globalThis.Error("The parameter 'guid' must be defined.");
|
|
16408
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
16409
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16410
|
+
let options_ = {
|
|
16411
|
+
method: "GET",
|
|
16412
|
+
signal,
|
|
16413
|
+
headers: {
|
|
16414
|
+
"Accept": "application/json"
|
|
16415
|
+
}
|
|
16416
|
+
};
|
|
16417
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
16418
|
+
return this.processStatus(_response);
|
|
16419
|
+
});
|
|
16420
|
+
}
|
|
16421
|
+
processStatus(response) {
|
|
16422
|
+
const status = response.status;
|
|
16423
|
+
let _headers = {};
|
|
16424
|
+
if (response.headers && response.headers.forEach) {
|
|
16425
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16426
|
+
}
|
|
16427
|
+
;
|
|
16428
|
+
if (status === 200) {
|
|
16429
|
+
return response.text().then((_responseText) => {
|
|
16430
|
+
let result200 = null;
|
|
16431
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16432
|
+
return result200;
|
|
16433
|
+
});
|
|
16434
|
+
}
|
|
16435
|
+
else if (status !== 200 && status !== 204) {
|
|
16436
|
+
return response.text().then((_responseText) => {
|
|
16437
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16438
|
+
});
|
|
16439
|
+
}
|
|
16440
|
+
return Promise.resolve(null);
|
|
16441
|
+
}
|
|
15765
16442
|
/**
|
|
15766
16443
|
* @param body (optional)
|
|
15767
16444
|
* @return OK
|
|
@@ -22500,92 +23177,6 @@ export class ScanVisibilityTypesClient extends BaseApiClient {
|
|
|
22500
23177
|
return Promise.resolve(null);
|
|
22501
23178
|
}
|
|
22502
23179
|
}
|
|
22503
|
-
export class ApiClient extends BaseApiClient {
|
|
22504
|
-
constructor(configuration, baseUrl, http) {
|
|
22505
|
-
super(configuration);
|
|
22506
|
-
this.jsonParseReviver = undefined;
|
|
22507
|
-
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
22508
|
-
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
22509
|
-
}
|
|
22510
|
-
/**
|
|
22511
|
-
* @param body (optional)
|
|
22512
|
-
* @return OK
|
|
22513
|
-
*/
|
|
22514
|
-
shareLinksPost(body, signal) {
|
|
22515
|
-
let url_ = this.baseUrl + "/api/share-links";
|
|
22516
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22517
|
-
const content_ = JSON.stringify(body);
|
|
22518
|
-
let options_ = {
|
|
22519
|
-
body: content_,
|
|
22520
|
-
method: "POST",
|
|
22521
|
-
signal,
|
|
22522
|
-
headers: {
|
|
22523
|
-
"Content-Type": "application/json",
|
|
22524
|
-
}
|
|
22525
|
-
};
|
|
22526
|
-
return this.http.fetch(url_, options_).then((_response) => {
|
|
22527
|
-
return this.processShareLinksPost(_response);
|
|
22528
|
-
});
|
|
22529
|
-
}
|
|
22530
|
-
processShareLinksPost(response) {
|
|
22531
|
-
const status = response.status;
|
|
22532
|
-
let _headers = {};
|
|
22533
|
-
if (response.headers && response.headers.forEach) {
|
|
22534
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22535
|
-
}
|
|
22536
|
-
;
|
|
22537
|
-
if (status === 200) {
|
|
22538
|
-
return response.text().then((_responseText) => {
|
|
22539
|
-
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22540
|
-
return result200;
|
|
22541
|
-
});
|
|
22542
|
-
}
|
|
22543
|
-
else if (status !== 200 && status !== 204) {
|
|
22544
|
-
return response.text().then((_responseText) => {
|
|
22545
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22546
|
-
});
|
|
22547
|
-
}
|
|
22548
|
-
return Promise.resolve(null);
|
|
22549
|
-
}
|
|
22550
|
-
/**
|
|
22551
|
-
* @return OK
|
|
22552
|
-
*/
|
|
22553
|
-
shareLinksGet(code, signal) {
|
|
22554
|
-
let url_ = this.baseUrl + "/api/share-links/{code}";
|
|
22555
|
-
if (code === undefined || code === null)
|
|
22556
|
-
throw new globalThis.Error("The parameter 'code' must be defined.");
|
|
22557
|
-
url_ = url_.replace("{code}", encodeURIComponent("" + code));
|
|
22558
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22559
|
-
let options_ = {
|
|
22560
|
-
method: "GET",
|
|
22561
|
-
signal,
|
|
22562
|
-
headers: {}
|
|
22563
|
-
};
|
|
22564
|
-
return this.http.fetch(url_, options_).then((_response) => {
|
|
22565
|
-
return this.processShareLinksGet(_response);
|
|
22566
|
-
});
|
|
22567
|
-
}
|
|
22568
|
-
processShareLinksGet(response) {
|
|
22569
|
-
const status = response.status;
|
|
22570
|
-
let _headers = {};
|
|
22571
|
-
if (response.headers && response.headers.forEach) {
|
|
22572
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22573
|
-
}
|
|
22574
|
-
;
|
|
22575
|
-
if (status === 200) {
|
|
22576
|
-
return response.text().then((_responseText) => {
|
|
22577
|
-
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22578
|
-
return result200;
|
|
22579
|
-
});
|
|
22580
|
-
}
|
|
22581
|
-
else if (status !== 200 && status !== 204) {
|
|
22582
|
-
return response.text().then((_responseText) => {
|
|
22583
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22584
|
-
});
|
|
22585
|
-
}
|
|
22586
|
-
return Promise.resolve(null);
|
|
22587
|
-
}
|
|
22588
|
-
}
|
|
22589
23180
|
export class InternalClient extends BaseApiClient {
|
|
22590
23181
|
constructor(configuration, baseUrl, http) {
|
|
22591
23182
|
super(configuration);
|
|
@@ -24747,6 +25338,41 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
24747
25338
|
}
|
|
24748
25339
|
return Promise.resolve(null);
|
|
24749
25340
|
}
|
|
25341
|
+
/**
|
|
25342
|
+
* @return OK
|
|
25343
|
+
*/
|
|
25344
|
+
shareToken(signal) {
|
|
25345
|
+
let url_ = this.baseUrl + "/api/TrialAuth/ShareToken";
|
|
25346
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25347
|
+
let options_ = {
|
|
25348
|
+
method: "GET",
|
|
25349
|
+
signal,
|
|
25350
|
+
headers: {}
|
|
25351
|
+
};
|
|
25352
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
25353
|
+
return this.processShareToken(_response);
|
|
25354
|
+
});
|
|
25355
|
+
}
|
|
25356
|
+
processShareToken(response) {
|
|
25357
|
+
const status = response.status;
|
|
25358
|
+
let _headers = {};
|
|
25359
|
+
if (response.headers && response.headers.forEach) {
|
|
25360
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25361
|
+
}
|
|
25362
|
+
;
|
|
25363
|
+
if (status === 200) {
|
|
25364
|
+
return response.text().then((_responseText) => {
|
|
25365
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25366
|
+
return result200;
|
|
25367
|
+
});
|
|
25368
|
+
}
|
|
25369
|
+
else if (status !== 200 && status !== 204) {
|
|
25370
|
+
return response.text().then((_responseText) => {
|
|
25371
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25372
|
+
});
|
|
25373
|
+
}
|
|
25374
|
+
return Promise.resolve(null);
|
|
25375
|
+
}
|
|
24750
25376
|
/**
|
|
24751
25377
|
* @return OK
|
|
24752
25378
|
*/
|
|
@@ -24791,7 +25417,9 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
24791
25417
|
let options_ = {
|
|
24792
25418
|
method: "POST",
|
|
24793
25419
|
signal,
|
|
24794
|
-
headers: {
|
|
25420
|
+
headers: {
|
|
25421
|
+
"Accept": "application/json"
|
|
25422
|
+
}
|
|
24795
25423
|
};
|
|
24796
25424
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
24797
25425
|
return this.processLogout(_response);
|
|
@@ -24806,7 +25434,8 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
24806
25434
|
;
|
|
24807
25435
|
if (status === 200) {
|
|
24808
25436
|
return response.text().then((_responseText) => {
|
|
24809
|
-
|
|
25437
|
+
let result200 = null;
|
|
25438
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24810
25439
|
return result200;
|
|
24811
25440
|
});
|
|
24812
25441
|
}
|
|
@@ -24826,7 +25455,9 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
24826
25455
|
let options_ = {
|
|
24827
25456
|
method: "GET",
|
|
24828
25457
|
signal,
|
|
24829
|
-
headers: {
|
|
25458
|
+
headers: {
|
|
25459
|
+
"Accept": "application/json"
|
|
25460
|
+
}
|
|
24830
25461
|
};
|
|
24831
25462
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
24832
25463
|
return this.processSessions(_response);
|
|
@@ -24841,7 +25472,8 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
24841
25472
|
;
|
|
24842
25473
|
if (status === 200) {
|
|
24843
25474
|
return response.text().then((_responseText) => {
|
|
24844
|
-
|
|
25475
|
+
let result200 = null;
|
|
25476
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24845
25477
|
return result200;
|
|
24846
25478
|
});
|
|
24847
25479
|
}
|
|
@@ -24869,7 +25501,9 @@ export class SessionsClient extends BaseApiClient {
|
|
|
24869
25501
|
let options_ = {
|
|
24870
25502
|
method: "POST",
|
|
24871
25503
|
signal,
|
|
24872
|
-
headers: {
|
|
25504
|
+
headers: {
|
|
25505
|
+
"Accept": "application/json"
|
|
25506
|
+
}
|
|
24873
25507
|
};
|
|
24874
25508
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
24875
25509
|
return this.processEndAll(_response);
|
|
@@ -24884,7 +25518,8 @@ export class SessionsClient extends BaseApiClient {
|
|
|
24884
25518
|
;
|
|
24885
25519
|
if (status === 200) {
|
|
24886
25520
|
return response.text().then((_responseText) => {
|
|
24887
|
-
|
|
25521
|
+
let result200 = null;
|
|
25522
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24888
25523
|
return result200;
|
|
24889
25524
|
});
|
|
24890
25525
|
}
|
|
@@ -25335,6 +25970,44 @@ export class TrialUsersClient extends BaseApiClient {
|
|
|
25335
25970
|
}
|
|
25336
25971
|
return Promise.resolve(null);
|
|
25337
25972
|
}
|
|
25973
|
+
/**
|
|
25974
|
+
* @return OK
|
|
25975
|
+
*/
|
|
25976
|
+
markFirstFeedbackShown(signal) {
|
|
25977
|
+
let url_ = this.baseUrl + "/api/TrialUsers/mark-first-feedback-shown";
|
|
25978
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25979
|
+
let options_ = {
|
|
25980
|
+
method: "POST",
|
|
25981
|
+
signal,
|
|
25982
|
+
headers: {
|
|
25983
|
+
"Accept": "application/json"
|
|
25984
|
+
}
|
|
25985
|
+
};
|
|
25986
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
25987
|
+
return this.processMarkFirstFeedbackShown(_response);
|
|
25988
|
+
});
|
|
25989
|
+
}
|
|
25990
|
+
processMarkFirstFeedbackShown(response) {
|
|
25991
|
+
const status = response.status;
|
|
25992
|
+
let _headers = {};
|
|
25993
|
+
if (response.headers && response.headers.forEach) {
|
|
25994
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25995
|
+
}
|
|
25996
|
+
;
|
|
25997
|
+
if (status === 200) {
|
|
25998
|
+
return response.text().then((_responseText) => {
|
|
25999
|
+
let result200 = null;
|
|
26000
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
26001
|
+
return result200;
|
|
26002
|
+
});
|
|
26003
|
+
}
|
|
26004
|
+
else if (status !== 200 && status !== 204) {
|
|
26005
|
+
return response.text().then((_responseText) => {
|
|
26006
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26007
|
+
});
|
|
26008
|
+
}
|
|
26009
|
+
return Promise.resolve(null);
|
|
26010
|
+
}
|
|
25338
26011
|
/**
|
|
25339
26012
|
* @param body (optional)
|
|
25340
26013
|
* @return OK
|