@virusis/api-client 0.1.17 → 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 +10 -1
- package/dist/base.js +147 -1
- package/dist/container.d.ts +9 -0
- package/dist/generated/clients/diagnostics-service.d.ts +2 -0
- package/dist/generated/clients/diagnostics-service.js +2 -0
- package/dist/generated/clients/index.d.ts +3 -0
- package/dist/generated/clients/index.js +3 -0
- 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/index.d.ts +3 -0
- package/dist/generated/clients-rx/index.js +3 -0
- 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 +303 -41
- package/dist/generated/index.js +529 -37
- 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 +15 -0
- package/dist/generated/models/index.js +15 -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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/rx.d.ts +18 -0
- 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,49 @@ 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
|
+
}
|
|
2410
2470
|
export class FeedbacksClient extends BaseApiClient {
|
|
2411
2471
|
constructor(configuration, baseUrl, http) {
|
|
2412
2472
|
super(configuration);
|
|
@@ -2428,7 +2488,9 @@ export class FeedbacksClient extends BaseApiClient {
|
|
|
2428
2488
|
let options_ = {
|
|
2429
2489
|
method: "GET",
|
|
2430
2490
|
signal,
|
|
2431
|
-
headers: {
|
|
2491
|
+
headers: {
|
|
2492
|
+
"Accept": "application/json"
|
|
2493
|
+
}
|
|
2432
2494
|
};
|
|
2433
2495
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
2434
2496
|
return this.processCategories(_response);
|
|
@@ -2443,7 +2505,8 @@ export class FeedbacksClient extends BaseApiClient {
|
|
|
2443
2505
|
;
|
|
2444
2506
|
if (status === 200) {
|
|
2445
2507
|
return response.text().then((_responseText) => {
|
|
2446
|
-
|
|
2508
|
+
let result200 = null;
|
|
2509
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2447
2510
|
return result200;
|
|
2448
2511
|
});
|
|
2449
2512
|
}
|
|
@@ -2528,6 +2591,7 @@ export class ApiClient extends BaseApiClient {
|
|
|
2528
2591
|
signal,
|
|
2529
2592
|
headers: {
|
|
2530
2593
|
"Content-Type": "application/json",
|
|
2594
|
+
"Accept": "application/json"
|
|
2531
2595
|
}
|
|
2532
2596
|
};
|
|
2533
2597
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
@@ -2543,7 +2607,8 @@ export class ApiClient extends BaseApiClient {
|
|
|
2543
2607
|
;
|
|
2544
2608
|
if (status === 200) {
|
|
2545
2609
|
return response.text().then((_responseText) => {
|
|
2546
|
-
|
|
2610
|
+
let result200 = null;
|
|
2611
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2547
2612
|
return result200;
|
|
2548
2613
|
});
|
|
2549
2614
|
}
|
|
@@ -2566,7 +2631,9 @@ export class ApiClient extends BaseApiClient {
|
|
|
2566
2631
|
let options_ = {
|
|
2567
2632
|
method: "GET",
|
|
2568
2633
|
signal,
|
|
2569
|
-
headers: {
|
|
2634
|
+
headers: {
|
|
2635
|
+
"Accept": "application/json"
|
|
2636
|
+
}
|
|
2570
2637
|
};
|
|
2571
2638
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
2572
2639
|
return this.processShareLinksGet(_response);
|
|
@@ -2581,7 +2648,8 @@ export class ApiClient extends BaseApiClient {
|
|
|
2581
2648
|
;
|
|
2582
2649
|
if (status === 200) {
|
|
2583
2650
|
return response.text().then((_responseText) => {
|
|
2584
|
-
|
|
2651
|
+
let result200 = null;
|
|
2652
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2585
2653
|
return result200;
|
|
2586
2654
|
});
|
|
2587
2655
|
}
|
|
@@ -4428,6 +4496,7 @@ export class NotificationsClient extends BaseApiClient {
|
|
|
4428
4496
|
signal,
|
|
4429
4497
|
headers: {
|
|
4430
4498
|
"Content-Type": "application/json",
|
|
4499
|
+
"Accept": "application/json"
|
|
4431
4500
|
}
|
|
4432
4501
|
};
|
|
4433
4502
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
@@ -4443,7 +4512,8 @@ export class NotificationsClient extends BaseApiClient {
|
|
|
4443
4512
|
;
|
|
4444
4513
|
if (status === 200) {
|
|
4445
4514
|
return response.text().then((_responseText) => {
|
|
4446
|
-
|
|
4515
|
+
let result200 = null;
|
|
4516
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4447
4517
|
return result200;
|
|
4448
4518
|
});
|
|
4449
4519
|
}
|
|
@@ -4468,6 +4538,7 @@ export class NotificationsClient extends BaseApiClient {
|
|
|
4468
4538
|
signal,
|
|
4469
4539
|
headers: {
|
|
4470
4540
|
"Content-Type": "application/json",
|
|
4541
|
+
"Accept": "application/json"
|
|
4471
4542
|
}
|
|
4472
4543
|
};
|
|
4473
4544
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
@@ -4483,7 +4554,8 @@ export class NotificationsClient extends BaseApiClient {
|
|
|
4483
4554
|
;
|
|
4484
4555
|
if (status === 200) {
|
|
4485
4556
|
return response.text().then((_responseText) => {
|
|
4486
|
-
|
|
4557
|
+
let result200 = null;
|
|
4558
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4487
4559
|
return result200;
|
|
4488
4560
|
});
|
|
4489
4561
|
}
|
|
@@ -5265,6 +5337,142 @@ export class OperationClaimsClient extends BaseApiClient {
|
|
|
5265
5337
|
return Promise.resolve(null);
|
|
5266
5338
|
}
|
|
5267
5339
|
}
|
|
5340
|
+
export class PortalClient extends BaseApiClient {
|
|
5341
|
+
constructor(configuration, baseUrl, http) {
|
|
5342
|
+
super(configuration);
|
|
5343
|
+
this.jsonParseReviver = undefined;
|
|
5344
|
+
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
5345
|
+
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
5346
|
+
}
|
|
5347
|
+
/**
|
|
5348
|
+
* @param category (optional)
|
|
5349
|
+
* @param featuredOnly (optional)
|
|
5350
|
+
* @param search (optional)
|
|
5351
|
+
* @return OK
|
|
5352
|
+
*/
|
|
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) + "&";
|
|
5367
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5368
|
+
let options_ = {
|
|
5369
|
+
method: "GET",
|
|
5370
|
+
signal,
|
|
5371
|
+
headers: {}
|
|
5372
|
+
};
|
|
5373
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5374
|
+
return this.processCatalog(_response);
|
|
5375
|
+
});
|
|
5376
|
+
}
|
|
5377
|
+
processCatalog(response) {
|
|
5378
|
+
const status = response.status;
|
|
5379
|
+
let _headers = {};
|
|
5380
|
+
if (response.headers && response.headers.forEach) {
|
|
5381
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5382
|
+
}
|
|
5383
|
+
;
|
|
5384
|
+
if (status === 200) {
|
|
5385
|
+
return response.text().then((_responseText) => {
|
|
5386
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5387
|
+
return result200;
|
|
5388
|
+
});
|
|
5389
|
+
}
|
|
5390
|
+
else if (status !== 200 && status !== 204) {
|
|
5391
|
+
return response.text().then((_responseText) => {
|
|
5392
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5393
|
+
});
|
|
5394
|
+
}
|
|
5395
|
+
return Promise.resolve(null);
|
|
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
|
+
}
|
|
5268
5476
|
export class QueueMonitorClient extends BaseApiClient {
|
|
5269
5477
|
constructor(configuration, baseUrl, http) {
|
|
5270
5478
|
super(configuration);
|
|
@@ -5281,7 +5489,9 @@ export class QueueMonitorClient extends BaseApiClient {
|
|
|
5281
5489
|
let options_ = {
|
|
5282
5490
|
method: "GET",
|
|
5283
5491
|
signal,
|
|
5284
|
-
headers: {
|
|
5492
|
+
headers: {
|
|
5493
|
+
"Accept": "application/json"
|
|
5494
|
+
}
|
|
5285
5495
|
};
|
|
5286
5496
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5287
5497
|
return this.processMetrics(_response);
|
|
@@ -5296,7 +5506,8 @@ export class QueueMonitorClient extends BaseApiClient {
|
|
|
5296
5506
|
;
|
|
5297
5507
|
if (status === 200) {
|
|
5298
5508
|
return response.text().then((_responseText) => {
|
|
5299
|
-
|
|
5509
|
+
let result200 = null;
|
|
5510
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5300
5511
|
return result200;
|
|
5301
5512
|
});
|
|
5302
5513
|
}
|
|
@@ -5316,7 +5527,9 @@ export class QueueMonitorClient extends BaseApiClient {
|
|
|
5316
5527
|
let options_ = {
|
|
5317
5528
|
method: "GET",
|
|
5318
5529
|
signal,
|
|
5319
|
-
headers: {
|
|
5530
|
+
headers: {
|
|
5531
|
+
"Accept": "application/json"
|
|
5532
|
+
}
|
|
5320
5533
|
};
|
|
5321
5534
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5322
5535
|
return this.processWorkers(_response);
|
|
@@ -5331,7 +5544,8 @@ export class QueueMonitorClient extends BaseApiClient {
|
|
|
5331
5544
|
;
|
|
5332
5545
|
if (status === 200) {
|
|
5333
5546
|
return response.text().then((_responseText) => {
|
|
5334
|
-
|
|
5547
|
+
let result200 = null;
|
|
5548
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5335
5549
|
return result200;
|
|
5336
5550
|
});
|
|
5337
5551
|
}
|
|
@@ -5437,7 +5651,9 @@ export class HealthClient extends BaseApiClient {
|
|
|
5437
5651
|
let options_ = {
|
|
5438
5652
|
method: "GET",
|
|
5439
5653
|
signal,
|
|
5440
|
-
headers: {
|
|
5654
|
+
headers: {
|
|
5655
|
+
"Accept": "application/json"
|
|
5656
|
+
}
|
|
5441
5657
|
};
|
|
5442
5658
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5443
5659
|
return this.processLive(_response);
|
|
@@ -5452,7 +5668,8 @@ export class HealthClient extends BaseApiClient {
|
|
|
5452
5668
|
;
|
|
5453
5669
|
if (status === 200) {
|
|
5454
5670
|
return response.text().then((_responseText) => {
|
|
5455
|
-
|
|
5671
|
+
let result200 = null;
|
|
5672
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5456
5673
|
return result200;
|
|
5457
5674
|
});
|
|
5458
5675
|
}
|
|
@@ -5464,6 +5681,224 @@ export class HealthClient extends BaseApiClient {
|
|
|
5464
5681
|
return Promise.resolve(null);
|
|
5465
5682
|
}
|
|
5466
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
|
+
}
|
|
5801
|
+
};
|
|
5802
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5803
|
+
return this.processOtp(_response);
|
|
5804
|
+
});
|
|
5805
|
+
}
|
|
5806
|
+
processOtp(response) {
|
|
5807
|
+
const status = response.status;
|
|
5808
|
+
let _headers = {};
|
|
5809
|
+
if (response.headers && response.headers.forEach) {
|
|
5810
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5811
|
+
}
|
|
5812
|
+
;
|
|
5813
|
+
if (status === 200) {
|
|
5814
|
+
return response.text().then((_responseText) => {
|
|
5815
|
+
let result200 = null;
|
|
5816
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5817
|
+
return result200;
|
|
5818
|
+
});
|
|
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
|
+
}
|
|
5827
|
+
else if (status !== 200 && status !== 204) {
|
|
5828
|
+
return response.text().then((_responseText) => {
|
|
5829
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5830
|
+
});
|
|
5831
|
+
}
|
|
5832
|
+
return Promise.resolve(null);
|
|
5833
|
+
}
|
|
5834
|
+
/**
|
|
5835
|
+
* @param email (optional)
|
|
5836
|
+
* @param subject (optional)
|
|
5837
|
+
* @param message (optional)
|
|
5838
|
+
* @param files (optional)
|
|
5839
|
+
* @return OK
|
|
5840
|
+
*/
|
|
5841
|
+
appeal(email, subject, message, files, signal) {
|
|
5842
|
+
let url_ = this.baseUrl + "/api/Risk/appeal";
|
|
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"));
|
|
5861
|
+
let options_ = {
|
|
5862
|
+
body: content_,
|
|
5863
|
+
method: "POST",
|
|
5864
|
+
signal,
|
|
5865
|
+
headers: {
|
|
5866
|
+
"Accept": "application/json"
|
|
5867
|
+
}
|
|
5868
|
+
};
|
|
5869
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5870
|
+
return this.processAppeal(_response);
|
|
5871
|
+
});
|
|
5872
|
+
}
|
|
5873
|
+
processAppeal(response) {
|
|
5874
|
+
const status = response.status;
|
|
5875
|
+
let _headers = {};
|
|
5876
|
+
if (response.headers && response.headers.forEach) {
|
|
5877
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5878
|
+
}
|
|
5879
|
+
;
|
|
5880
|
+
if (status === 200) {
|
|
5881
|
+
return response.text().then((_responseText) => {
|
|
5882
|
+
let result200 = null;
|
|
5883
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5884
|
+
return result200;
|
|
5885
|
+
});
|
|
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
|
+
}
|
|
5894
|
+
else if (status !== 200 && status !== 204) {
|
|
5895
|
+
return response.text().then((_responseText) => {
|
|
5896
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5897
|
+
});
|
|
5898
|
+
}
|
|
5899
|
+
return Promise.resolve(null);
|
|
5900
|
+
}
|
|
5901
|
+
}
|
|
5467
5902
|
export class ScanApiBusSourcesClient extends BaseApiClient {
|
|
5468
5903
|
constructor(configuration, baseUrl, http) {
|
|
5469
5904
|
super(configuration);
|
|
@@ -12723,9 +13158,10 @@ export class ScanDatasClient extends BaseApiClient {
|
|
|
12723
13158
|
}
|
|
12724
13159
|
/**
|
|
12725
13160
|
* @param scanGuid (optional)
|
|
13161
|
+
* @param x_Internal_Api_Key (optional)
|
|
12726
13162
|
* @return OK
|
|
12727
13163
|
*/
|
|
12728
|
-
getScanDataForAlgorithmAnalysisDtoByGuidInternal(scanGuid, signal) {
|
|
13164
|
+
getScanDataForAlgorithmAnalysisDtoByGuidInternal(scanGuid, x_Internal_Api_Key, signal) {
|
|
12729
13165
|
let url_ = this.baseUrl + "/api/ScanDatas/GetScanDataForAlgorithmAnalysisDtoByGuidInternal?";
|
|
12730
13166
|
if (scanGuid === null)
|
|
12731
13167
|
throw new globalThis.Error("The parameter 'scanGuid' cannot be null.");
|
|
@@ -12736,6 +13172,7 @@ export class ScanDatasClient extends BaseApiClient {
|
|
|
12736
13172
|
method: "GET",
|
|
12737
13173
|
signal,
|
|
12738
13174
|
headers: {
|
|
13175
|
+
"X-Internal-Api-Key": x_Internal_Api_Key !== undefined && x_Internal_Api_Key !== null ? "" + x_Internal_Api_Key : "",
|
|
12739
13176
|
"Accept": "application/json"
|
|
12740
13177
|
}
|
|
12741
13178
|
};
|
|
@@ -15356,9 +15793,10 @@ export class ScanClient extends BaseApiClient {
|
|
|
15356
15793
|
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
15357
15794
|
}
|
|
15358
15795
|
/**
|
|
15796
|
+
* @param x_session_token (optional)
|
|
15359
15797
|
* @return OK
|
|
15360
15798
|
*/
|
|
15361
|
-
proxyGet(serviceName, path, signal) {
|
|
15799
|
+
proxyGet(serviceName, path, x_session_token, signal) {
|
|
15362
15800
|
let url_ = this.baseUrl + "/api/scan/proxy/{serviceName}/{path}";
|
|
15363
15801
|
if (serviceName === undefined || serviceName === null)
|
|
15364
15802
|
throw new globalThis.Error("The parameter 'serviceName' must be defined.");
|
|
@@ -15370,7 +15808,9 @@ export class ScanClient extends BaseApiClient {
|
|
|
15370
15808
|
let options_ = {
|
|
15371
15809
|
method: "GET",
|
|
15372
15810
|
signal,
|
|
15373
|
-
headers: {
|
|
15811
|
+
headers: {
|
|
15812
|
+
"x-session-token": x_session_token !== undefined && x_session_token !== null ? "" + x_session_token : "",
|
|
15813
|
+
}
|
|
15374
15814
|
};
|
|
15375
15815
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
15376
15816
|
return this.processProxyGet(_response);
|
|
@@ -15397,9 +15837,10 @@ export class ScanClient extends BaseApiClient {
|
|
|
15397
15837
|
return Promise.resolve(null);
|
|
15398
15838
|
}
|
|
15399
15839
|
/**
|
|
15840
|
+
* @param x_session_token (optional)
|
|
15400
15841
|
* @return OK
|
|
15401
15842
|
*/
|
|
15402
|
-
proxyPost(serviceName, path, signal) {
|
|
15843
|
+
proxyPost(serviceName, path, x_session_token, signal) {
|
|
15403
15844
|
let url_ = this.baseUrl + "/api/scan/proxy/{serviceName}/{path}";
|
|
15404
15845
|
if (serviceName === undefined || serviceName === null)
|
|
15405
15846
|
throw new globalThis.Error("The parameter 'serviceName' must be defined.");
|
|
@@ -15411,7 +15852,9 @@ export class ScanClient extends BaseApiClient {
|
|
|
15411
15852
|
let options_ = {
|
|
15412
15853
|
method: "POST",
|
|
15413
15854
|
signal,
|
|
15414
|
-
headers: {
|
|
15855
|
+
headers: {
|
|
15856
|
+
"x-session-token": x_session_token !== undefined && x_session_token !== null ? "" + x_session_token : "",
|
|
15857
|
+
}
|
|
15415
15858
|
};
|
|
15416
15859
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
15417
15860
|
return this.processProxyPost(_response);
|
|
@@ -15438,10 +15881,11 @@ export class ScanClient extends BaseApiClient {
|
|
|
15438
15881
|
return Promise.resolve(null);
|
|
15439
15882
|
}
|
|
15440
15883
|
/**
|
|
15884
|
+
* @param x_session_token (optional)
|
|
15441
15885
|
* @param body (optional)
|
|
15442
15886
|
* @return OK
|
|
15443
15887
|
*/
|
|
15444
|
-
execute(taskName, body, signal) {
|
|
15888
|
+
execute(taskName, x_session_token, body, signal) {
|
|
15445
15889
|
let url_ = this.baseUrl + "/api/scan/execute/{taskName}";
|
|
15446
15890
|
if (taskName === undefined || taskName === null)
|
|
15447
15891
|
throw new globalThis.Error("The parameter 'taskName' must be defined.");
|
|
@@ -15453,6 +15897,7 @@ export class ScanClient extends BaseApiClient {
|
|
|
15453
15897
|
method: "POST",
|
|
15454
15898
|
signal,
|
|
15455
15899
|
headers: {
|
|
15900
|
+
"x-session-token": x_session_token !== undefined && x_session_token !== null ? "" + x_session_token : "",
|
|
15456
15901
|
"Content-Type": "application/json",
|
|
15457
15902
|
}
|
|
15458
15903
|
};
|
|
@@ -24893,6 +25338,41 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
24893
25338
|
}
|
|
24894
25339
|
return Promise.resolve(null);
|
|
24895
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
|
+
}
|
|
24896
25376
|
/**
|
|
24897
25377
|
* @return OK
|
|
24898
25378
|
*/
|
|
@@ -24937,7 +25417,9 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
24937
25417
|
let options_ = {
|
|
24938
25418
|
method: "POST",
|
|
24939
25419
|
signal,
|
|
24940
|
-
headers: {
|
|
25420
|
+
headers: {
|
|
25421
|
+
"Accept": "application/json"
|
|
25422
|
+
}
|
|
24941
25423
|
};
|
|
24942
25424
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
24943
25425
|
return this.processLogout(_response);
|
|
@@ -24952,7 +25434,8 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
24952
25434
|
;
|
|
24953
25435
|
if (status === 200) {
|
|
24954
25436
|
return response.text().then((_responseText) => {
|
|
24955
|
-
|
|
25437
|
+
let result200 = null;
|
|
25438
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24956
25439
|
return result200;
|
|
24957
25440
|
});
|
|
24958
25441
|
}
|
|
@@ -24972,7 +25455,9 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
24972
25455
|
let options_ = {
|
|
24973
25456
|
method: "GET",
|
|
24974
25457
|
signal,
|
|
24975
|
-
headers: {
|
|
25458
|
+
headers: {
|
|
25459
|
+
"Accept": "application/json"
|
|
25460
|
+
}
|
|
24976
25461
|
};
|
|
24977
25462
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
24978
25463
|
return this.processSessions(_response);
|
|
@@ -24987,7 +25472,8 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
24987
25472
|
;
|
|
24988
25473
|
if (status === 200) {
|
|
24989
25474
|
return response.text().then((_responseText) => {
|
|
24990
|
-
|
|
25475
|
+
let result200 = null;
|
|
25476
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24991
25477
|
return result200;
|
|
24992
25478
|
});
|
|
24993
25479
|
}
|
|
@@ -25015,7 +25501,9 @@ export class SessionsClient extends BaseApiClient {
|
|
|
25015
25501
|
let options_ = {
|
|
25016
25502
|
method: "POST",
|
|
25017
25503
|
signal,
|
|
25018
|
-
headers: {
|
|
25504
|
+
headers: {
|
|
25505
|
+
"Accept": "application/json"
|
|
25506
|
+
}
|
|
25019
25507
|
};
|
|
25020
25508
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
25021
25509
|
return this.processEndAll(_response);
|
|
@@ -25030,7 +25518,8 @@ export class SessionsClient extends BaseApiClient {
|
|
|
25030
25518
|
;
|
|
25031
25519
|
if (status === 200) {
|
|
25032
25520
|
return response.text().then((_responseText) => {
|
|
25033
|
-
|
|
25521
|
+
let result200 = null;
|
|
25522
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25034
25523
|
return result200;
|
|
25035
25524
|
});
|
|
25036
25525
|
}
|
|
@@ -25490,7 +25979,9 @@ export class TrialUsersClient extends BaseApiClient {
|
|
|
25490
25979
|
let options_ = {
|
|
25491
25980
|
method: "POST",
|
|
25492
25981
|
signal,
|
|
25493
|
-
headers: {
|
|
25982
|
+
headers: {
|
|
25983
|
+
"Accept": "application/json"
|
|
25984
|
+
}
|
|
25494
25985
|
};
|
|
25495
25986
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
25496
25987
|
return this.processMarkFirstFeedbackShown(_response);
|
|
@@ -25505,7 +25996,8 @@ export class TrialUsersClient extends BaseApiClient {
|
|
|
25505
25996
|
;
|
|
25506
25997
|
if (status === 200) {
|
|
25507
25998
|
return response.text().then((_responseText) => {
|
|
25508
|
-
|
|
25999
|
+
let result200 = null;
|
|
26000
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25509
26001
|
return result200;
|
|
25510
26002
|
});
|
|
25511
26003
|
}
|