@virusis/api-client 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/container.d.ts +6 -0
  2. package/dist/generated/clients/index.d.ts +2 -0
  3. package/dist/generated/clients/index.js +2 -0
  4. package/dist/generated/clients/scan-timing-events-service.d.ts +2 -0
  5. package/dist/generated/clients/scan-timing-events-service.js +2 -0
  6. package/dist/generated/clients/scan-timing-runs-service.d.ts +2 -0
  7. package/dist/generated/clients/scan-timing-runs-service.js +2 -0
  8. package/dist/generated/clients-rx/index.d.ts +2 -0
  9. package/dist/generated/clients-rx/index.js +2 -0
  10. package/dist/generated/clients-rx/scan-timing-events-service-rx.d.ts +16 -0
  11. package/dist/generated/clients-rx/scan-timing-events-service-rx.js +12 -0
  12. package/dist/generated/clients-rx/scan-timing-runs-service-rx.d.ts +16 -0
  13. package/dist/generated/clients-rx/scan-timing-runs-service-rx.js +12 -0
  14. package/dist/generated/index.d.ts +411 -0
  15. package/dist/generated/index.js +998 -0
  16. package/dist/generated/models/index.d.ts +18 -0
  17. package/dist/generated/models/index.js +18 -0
  18. package/dist/generated/models/scan-timing-event-for-table-dto-list-i-data-result.d.ts +4 -0
  19. package/dist/generated/models/scan-timing-event-for-table-dto-list-i-data-result.js +1 -0
  20. package/dist/generated/models/scan-timing-event-for-table-dto-list-result-filter-i-data-result.d.ts +4 -0
  21. package/dist/generated/models/scan-timing-event-for-table-dto-list-result-filter-i-data-result.js +1 -0
  22. package/dist/generated/models/scan-timing-event-for-table-dto-list-result-filter.d.ts +4 -0
  23. package/dist/generated/models/scan-timing-event-for-table-dto-list-result-filter.js +1 -0
  24. package/dist/generated/models/scan-timing-event-for-table-dto.d.ts +4 -0
  25. package/dist/generated/models/scan-timing-event-for-table-dto.js +1 -0
  26. package/dist/generated/models/scan-timing-event-for-table-filter-data-table-query.d.ts +4 -0
  27. package/dist/generated/models/scan-timing-event-for-table-filter-data-table-query.js +1 -0
  28. package/dist/generated/models/scan-timing-event-for-table-filter.d.ts +4 -0
  29. package/dist/generated/models/scan-timing-event-for-table-filter.js +1 -0
  30. package/dist/generated/models/scan-timing-event-i-data-result.d.ts +4 -0
  31. package/dist/generated/models/scan-timing-event-i-data-result.js +1 -0
  32. package/dist/generated/models/scan-timing-event-list-i-data-result.d.ts +4 -0
  33. package/dist/generated/models/scan-timing-event-list-i-data-result.js +1 -0
  34. package/dist/generated/models/scan-timing-event.d.ts +4 -0
  35. package/dist/generated/models/scan-timing-event.js +1 -0
  36. package/dist/generated/models/scan-timing-run-for-table-dto-list-i-data-result.d.ts +4 -0
  37. package/dist/generated/models/scan-timing-run-for-table-dto-list-i-data-result.js +1 -0
  38. package/dist/generated/models/scan-timing-run-for-table-dto-list-result-filter-i-data-result.d.ts +4 -0
  39. package/dist/generated/models/scan-timing-run-for-table-dto-list-result-filter-i-data-result.js +1 -0
  40. package/dist/generated/models/scan-timing-run-for-table-dto-list-result-filter.d.ts +4 -0
  41. package/dist/generated/models/scan-timing-run-for-table-dto-list-result-filter.js +1 -0
  42. package/dist/generated/models/scan-timing-run-for-table-dto.d.ts +4 -0
  43. package/dist/generated/models/scan-timing-run-for-table-dto.js +1 -0
  44. package/dist/generated/models/scan-timing-run-for-table-filter-data-table-query.d.ts +4 -0
  45. package/dist/generated/models/scan-timing-run-for-table-filter-data-table-query.js +1 -0
  46. package/dist/generated/models/scan-timing-run-for-table-filter.d.ts +4 -0
  47. package/dist/generated/models/scan-timing-run-for-table-filter.js +1 -0
  48. package/dist/generated/models/scan-timing-run-i-data-result.d.ts +4 -0
  49. package/dist/generated/models/scan-timing-run-i-data-result.js +1 -0
  50. package/dist/generated/models/scan-timing-run-list-i-data-result.d.ts +4 -0
  51. package/dist/generated/models/scan-timing-run-list-i-data-result.js +1 -0
  52. package/dist/generated/models/scan-timing-run.d.ts +4 -0
  53. package/dist/generated/models/scan-timing-run.js +1 -0
  54. package/dist/rx.d.ts +12 -0
  55. package/package.json +1 -1
@@ -14238,6 +14238,44 @@ export class ScansClient extends BaseApiClient {
14238
14238
  this.http = http ? http : { fetch: buildAuthFetch(configuration) };
14239
14239
  this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
14240
14240
  }
14241
+ /**
14242
+ * @return OK
14243
+ */
14244
+ verify(signal) {
14245
+ let url_ = this.baseUrl + "/api/Scans/Verify";
14246
+ url_ = url_.replace(/[?&]$/, "");
14247
+ let options_ = {
14248
+ method: "GET",
14249
+ signal,
14250
+ headers: {
14251
+ "Accept": "application/json"
14252
+ }
14253
+ };
14254
+ return this.http.fetch(url_, options_).then((_response) => {
14255
+ return this.processVerify(_response);
14256
+ });
14257
+ }
14258
+ processVerify(response) {
14259
+ const status = response.status;
14260
+ let _headers = {};
14261
+ if (response.headers && response.headers.forEach) {
14262
+ response.headers.forEach((v, k) => _headers[k] = v);
14263
+ }
14264
+ ;
14265
+ if (status === 200) {
14266
+ return response.text().then((_responseText) => {
14267
+ let result200 = null;
14268
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14269
+ return result200;
14270
+ });
14271
+ }
14272
+ else if (status !== 200 && status !== 204) {
14273
+ return response.text().then((_responseText) => {
14274
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14275
+ });
14276
+ }
14277
+ return Promise.resolve(null);
14278
+ }
14241
14279
  /**
14242
14280
  * @return OK
14243
14281
  */
@@ -16572,6 +16610,966 @@ export class ScanThreatResultsClient extends BaseApiClient {
16572
16610
  return Promise.resolve(null);
16573
16611
  }
16574
16612
  }
16613
+ export class ScanTimingEventsClient extends BaseApiClient {
16614
+ constructor(configuration, baseUrl, http) {
16615
+ super(configuration);
16616
+ this.jsonParseReviver = undefined;
16617
+ this.http = http ? http : { fetch: buildAuthFetch(configuration) };
16618
+ this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
16619
+ }
16620
+ /**
16621
+ * @param runId (optional)
16622
+ * @return OK
16623
+ */
16624
+ getByRunId(runId, signal) {
16625
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/GetByRunId?";
16626
+ if (runId === null)
16627
+ throw new globalThis.Error("The parameter 'runId' cannot be null.");
16628
+ else if (runId !== undefined)
16629
+ url_ += "runId=" + encodeURIComponent("" + runId) + "&";
16630
+ url_ = url_.replace(/[?&]$/, "");
16631
+ let options_ = {
16632
+ method: "GET",
16633
+ signal,
16634
+ headers: {
16635
+ "Accept": "application/json"
16636
+ }
16637
+ };
16638
+ return this.http.fetch(url_, options_).then((_response) => {
16639
+ return this.processGetByRunId(_response);
16640
+ });
16641
+ }
16642
+ processGetByRunId(response) {
16643
+ const status = response.status;
16644
+ let _headers = {};
16645
+ if (response.headers && response.headers.forEach) {
16646
+ response.headers.forEach((v, k) => _headers[k] = v);
16647
+ }
16648
+ ;
16649
+ if (status === 200) {
16650
+ return response.text().then((_responseText) => {
16651
+ let result200 = null;
16652
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16653
+ return result200;
16654
+ });
16655
+ }
16656
+ else if (status !== 200 && status !== 204) {
16657
+ return response.text().then((_responseText) => {
16658
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16659
+ });
16660
+ }
16661
+ return Promise.resolve(null);
16662
+ }
16663
+ /**
16664
+ * @param runId (optional)
16665
+ * @param timingId (optional)
16666
+ * @return OK
16667
+ */
16668
+ getByRunIdAndTimingId(runId, timingId, signal) {
16669
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/GetByRunIdAndTimingId?";
16670
+ if (runId === null)
16671
+ throw new globalThis.Error("The parameter 'runId' cannot be null.");
16672
+ else if (runId !== undefined)
16673
+ url_ += "runId=" + encodeURIComponent("" + runId) + "&";
16674
+ if (timingId === null)
16675
+ throw new globalThis.Error("The parameter 'timingId' cannot be null.");
16676
+ else if (timingId !== undefined)
16677
+ url_ += "timingId=" + encodeURIComponent("" + timingId) + "&";
16678
+ url_ = url_.replace(/[?&]$/, "");
16679
+ let options_ = {
16680
+ method: "GET",
16681
+ signal,
16682
+ headers: {
16683
+ "Accept": "application/json"
16684
+ }
16685
+ };
16686
+ return this.http.fetch(url_, options_).then((_response) => {
16687
+ return this.processGetByRunIdAndTimingId(_response);
16688
+ });
16689
+ }
16690
+ processGetByRunIdAndTimingId(response) {
16691
+ const status = response.status;
16692
+ let _headers = {};
16693
+ if (response.headers && response.headers.forEach) {
16694
+ response.headers.forEach((v, k) => _headers[k] = v);
16695
+ }
16696
+ ;
16697
+ if (status === 200) {
16698
+ return response.text().then((_responseText) => {
16699
+ let result200 = null;
16700
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16701
+ return result200;
16702
+ });
16703
+ }
16704
+ else if (status !== 200 && status !== 204) {
16705
+ return response.text().then((_responseText) => {
16706
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16707
+ });
16708
+ }
16709
+ return Promise.resolve(null);
16710
+ }
16711
+ /**
16712
+ * @param body (optional)
16713
+ * @return OK
16714
+ */
16715
+ add(body, signal) {
16716
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/Add";
16717
+ url_ = url_.replace(/[?&]$/, "");
16718
+ const content_ = JSON.stringify(body);
16719
+ let options_ = {
16720
+ body: content_,
16721
+ method: "POST",
16722
+ signal,
16723
+ headers: {
16724
+ "Content-Type": "application/json",
16725
+ "Accept": "application/json"
16726
+ }
16727
+ };
16728
+ return this.http.fetch(url_, options_).then((_response) => {
16729
+ return this.processAdd(_response);
16730
+ });
16731
+ }
16732
+ processAdd(response) {
16733
+ const status = response.status;
16734
+ let _headers = {};
16735
+ if (response.headers && response.headers.forEach) {
16736
+ response.headers.forEach((v, k) => _headers[k] = v);
16737
+ }
16738
+ ;
16739
+ if (status === 200) {
16740
+ return response.text().then((_responseText) => {
16741
+ let result200 = null;
16742
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16743
+ return result200;
16744
+ });
16745
+ }
16746
+ else if (status !== 200 && status !== 204) {
16747
+ return response.text().then((_responseText) => {
16748
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16749
+ });
16750
+ }
16751
+ return Promise.resolve(null);
16752
+ }
16753
+ /**
16754
+ * @param body (optional)
16755
+ * @return OK
16756
+ */
16757
+ addMultiple(body, signal) {
16758
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/AddMultiple";
16759
+ url_ = url_.replace(/[?&]$/, "");
16760
+ const content_ = JSON.stringify(body);
16761
+ let options_ = {
16762
+ body: content_,
16763
+ method: "POST",
16764
+ signal,
16765
+ headers: {
16766
+ "Content-Type": "application/json",
16767
+ "Accept": "application/json"
16768
+ }
16769
+ };
16770
+ return this.http.fetch(url_, options_).then((_response) => {
16771
+ return this.processAddMultiple(_response);
16772
+ });
16773
+ }
16774
+ processAddMultiple(response) {
16775
+ const status = response.status;
16776
+ let _headers = {};
16777
+ if (response.headers && response.headers.forEach) {
16778
+ response.headers.forEach((v, k) => _headers[k] = v);
16779
+ }
16780
+ ;
16781
+ if (status === 200) {
16782
+ return response.text().then((_responseText) => {
16783
+ let result200 = null;
16784
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16785
+ return result200;
16786
+ });
16787
+ }
16788
+ else if (status !== 200 && status !== 204) {
16789
+ return response.text().then((_responseText) => {
16790
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16791
+ });
16792
+ }
16793
+ return Promise.resolve(null);
16794
+ }
16795
+ /**
16796
+ * @param body (optional)
16797
+ * @return OK
16798
+ */
16799
+ update(body, signal) {
16800
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/Update";
16801
+ url_ = url_.replace(/[?&]$/, "");
16802
+ const content_ = JSON.stringify(body);
16803
+ let options_ = {
16804
+ body: content_,
16805
+ method: "POST",
16806
+ signal,
16807
+ headers: {
16808
+ "Content-Type": "application/json",
16809
+ "Accept": "application/json"
16810
+ }
16811
+ };
16812
+ return this.http.fetch(url_, options_).then((_response) => {
16813
+ return this.processUpdate(_response);
16814
+ });
16815
+ }
16816
+ processUpdate(response) {
16817
+ const status = response.status;
16818
+ let _headers = {};
16819
+ if (response.headers && response.headers.forEach) {
16820
+ response.headers.forEach((v, k) => _headers[k] = v);
16821
+ }
16822
+ ;
16823
+ if (status === 200) {
16824
+ return response.text().then((_responseText) => {
16825
+ let result200 = null;
16826
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16827
+ return result200;
16828
+ });
16829
+ }
16830
+ else if (status !== 200 && status !== 204) {
16831
+ return response.text().then((_responseText) => {
16832
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16833
+ });
16834
+ }
16835
+ return Promise.resolve(null);
16836
+ }
16837
+ /**
16838
+ * @param body (optional)
16839
+ * @return OK
16840
+ */
16841
+ delete(body, signal) {
16842
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/Delete";
16843
+ url_ = url_.replace(/[?&]$/, "");
16844
+ const content_ = JSON.stringify(body);
16845
+ let options_ = {
16846
+ body: content_,
16847
+ method: "POST",
16848
+ signal,
16849
+ headers: {
16850
+ "Content-Type": "application/json",
16851
+ "Accept": "application/json"
16852
+ }
16853
+ };
16854
+ return this.http.fetch(url_, options_).then((_response) => {
16855
+ return this.processDelete(_response);
16856
+ });
16857
+ }
16858
+ processDelete(response) {
16859
+ const status = response.status;
16860
+ let _headers = {};
16861
+ if (response.headers && response.headers.forEach) {
16862
+ response.headers.forEach((v, k) => _headers[k] = v);
16863
+ }
16864
+ ;
16865
+ if (status === 200) {
16866
+ return response.text().then((_responseText) => {
16867
+ let result200 = null;
16868
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16869
+ return result200;
16870
+ });
16871
+ }
16872
+ else if (status !== 200 && status !== 204) {
16873
+ return response.text().then((_responseText) => {
16874
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16875
+ });
16876
+ }
16877
+ return Promise.resolve(null);
16878
+ }
16879
+ /**
16880
+ * @param body (optional)
16881
+ * @return OK
16882
+ */
16883
+ deleteMultiple(body, signal) {
16884
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/DeleteMultiple";
16885
+ url_ = url_.replace(/[?&]$/, "");
16886
+ const content_ = JSON.stringify(body);
16887
+ let options_ = {
16888
+ body: content_,
16889
+ method: "POST",
16890
+ signal,
16891
+ headers: {
16892
+ "Content-Type": "application/json",
16893
+ "Accept": "application/json"
16894
+ }
16895
+ };
16896
+ return this.http.fetch(url_, options_).then((_response) => {
16897
+ return this.processDeleteMultiple(_response);
16898
+ });
16899
+ }
16900
+ processDeleteMultiple(response) {
16901
+ const status = response.status;
16902
+ let _headers = {};
16903
+ if (response.headers && response.headers.forEach) {
16904
+ response.headers.forEach((v, k) => _headers[k] = v);
16905
+ }
16906
+ ;
16907
+ if (status === 200) {
16908
+ return response.text().then((_responseText) => {
16909
+ let result200 = null;
16910
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16911
+ return result200;
16912
+ });
16913
+ }
16914
+ else if (status !== 200 && status !== 204) {
16915
+ return response.text().then((_responseText) => {
16916
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16917
+ });
16918
+ }
16919
+ return Promise.resolve(null);
16920
+ }
16921
+ /**
16922
+ * @param id (optional)
16923
+ * @return OK
16924
+ */
16925
+ getById(id, signal) {
16926
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/GetById?";
16927
+ if (id === null)
16928
+ throw new globalThis.Error("The parameter 'id' cannot be null.");
16929
+ else if (id !== undefined)
16930
+ url_ += "id=" + encodeURIComponent("" + id) + "&";
16931
+ url_ = url_.replace(/[?&]$/, "");
16932
+ let options_ = {
16933
+ method: "GET",
16934
+ signal,
16935
+ headers: {
16936
+ "Accept": "application/json"
16937
+ }
16938
+ };
16939
+ return this.http.fetch(url_, options_).then((_response) => {
16940
+ return this.processGetById(_response);
16941
+ });
16942
+ }
16943
+ processGetById(response) {
16944
+ const status = response.status;
16945
+ let _headers = {};
16946
+ if (response.headers && response.headers.forEach) {
16947
+ response.headers.forEach((v, k) => _headers[k] = v);
16948
+ }
16949
+ ;
16950
+ if (status === 200) {
16951
+ return response.text().then((_responseText) => {
16952
+ let result200 = null;
16953
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16954
+ return result200;
16955
+ });
16956
+ }
16957
+ else if (status !== 200 && status !== 204) {
16958
+ return response.text().then((_responseText) => {
16959
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16960
+ });
16961
+ }
16962
+ return Promise.resolve(null);
16963
+ }
16964
+ /**
16965
+ * @return OK
16966
+ */
16967
+ getAll(signal) {
16968
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/GetAll";
16969
+ url_ = url_.replace(/[?&]$/, "");
16970
+ let options_ = {
16971
+ method: "GET",
16972
+ signal,
16973
+ headers: {
16974
+ "Accept": "application/json"
16975
+ }
16976
+ };
16977
+ return this.http.fetch(url_, options_).then((_response) => {
16978
+ return this.processGetAll(_response);
16979
+ });
16980
+ }
16981
+ processGetAll(response) {
16982
+ const status = response.status;
16983
+ let _headers = {};
16984
+ if (response.headers && response.headers.forEach) {
16985
+ response.headers.forEach((v, k) => _headers[k] = v);
16986
+ }
16987
+ ;
16988
+ if (status === 200) {
16989
+ return response.text().then((_responseText) => {
16990
+ let result200 = null;
16991
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16992
+ return result200;
16993
+ });
16994
+ }
16995
+ else if (status !== 200 && status !== 204) {
16996
+ return response.text().then((_responseText) => {
16997
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16998
+ });
16999
+ }
17000
+ return Promise.resolve(null);
17001
+ }
17002
+ /**
17003
+ * @param skip (optional)
17004
+ * @param take (optional)
17005
+ * @return OK
17006
+ */
17007
+ pagination(skip, take, signal) {
17008
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/Pagination?";
17009
+ if (skip === null)
17010
+ throw new globalThis.Error("The parameter 'skip' cannot be null.");
17011
+ else if (skip !== undefined)
17012
+ url_ += "skip=" + encodeURIComponent("" + skip) + "&";
17013
+ if (take === null)
17014
+ throw new globalThis.Error("The parameter 'take' cannot be null.");
17015
+ else if (take !== undefined)
17016
+ url_ += "take=" + encodeURIComponent("" + take) + "&";
17017
+ url_ = url_.replace(/[?&]$/, "");
17018
+ let options_ = {
17019
+ method: "GET",
17020
+ signal,
17021
+ headers: {
17022
+ "Accept": "application/json"
17023
+ }
17024
+ };
17025
+ return this.http.fetch(url_, options_).then((_response) => {
17026
+ return this.processPagination(_response);
17027
+ });
17028
+ }
17029
+ processPagination(response) {
17030
+ const status = response.status;
17031
+ let _headers = {};
17032
+ if (response.headers && response.headers.forEach) {
17033
+ response.headers.forEach((v, k) => _headers[k] = v);
17034
+ }
17035
+ ;
17036
+ if (status === 200) {
17037
+ return response.text().then((_responseText) => {
17038
+ let result200 = null;
17039
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17040
+ return result200;
17041
+ });
17042
+ }
17043
+ else if (status !== 200 && status !== 204) {
17044
+ return response.text().then((_responseText) => {
17045
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17046
+ });
17047
+ }
17048
+ return Promise.resolve(null);
17049
+ }
17050
+ /**
17051
+ * @param body (optional)
17052
+ * @return OK
17053
+ */
17054
+ getFiltersBase(body, signal) {
17055
+ let url_ = this.baseUrl + "/api/ScanTimingEvents/GetFiltersBase";
17056
+ url_ = url_.replace(/[?&]$/, "");
17057
+ const content_ = JSON.stringify(body);
17058
+ let options_ = {
17059
+ body: content_,
17060
+ method: "POST",
17061
+ signal,
17062
+ headers: {
17063
+ "Content-Type": "application/json",
17064
+ "Accept": "application/json"
17065
+ }
17066
+ };
17067
+ return this.http.fetch(url_, options_).then((_response) => {
17068
+ return this.processGetFiltersBase(_response);
17069
+ });
17070
+ }
17071
+ processGetFiltersBase(response) {
17072
+ const status = response.status;
17073
+ let _headers = {};
17074
+ if (response.headers && response.headers.forEach) {
17075
+ response.headers.forEach((v, k) => _headers[k] = v);
17076
+ }
17077
+ ;
17078
+ if (status === 200) {
17079
+ return response.text().then((_responseText) => {
17080
+ let result200 = null;
17081
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17082
+ return result200;
17083
+ });
17084
+ }
17085
+ else if (status !== 200 && status !== 204) {
17086
+ return response.text().then((_responseText) => {
17087
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17088
+ });
17089
+ }
17090
+ return Promise.resolve(null);
17091
+ }
17092
+ }
17093
+ export class ScanTimingRunsClient extends BaseApiClient {
17094
+ constructor(configuration, baseUrl, http) {
17095
+ super(configuration);
17096
+ this.jsonParseReviver = undefined;
17097
+ this.http = http ? http : { fetch: buildAuthFetch(configuration) };
17098
+ this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
17099
+ }
17100
+ /**
17101
+ * @param scanId (optional)
17102
+ * @return OK
17103
+ */
17104
+ getByScanId(scanId, signal) {
17105
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/GetByScanId?";
17106
+ if (scanId === null)
17107
+ throw new globalThis.Error("The parameter 'scanId' cannot be null.");
17108
+ else if (scanId !== undefined)
17109
+ url_ += "scanId=" + encodeURIComponent("" + scanId) + "&";
17110
+ url_ = url_.replace(/[?&]$/, "");
17111
+ let options_ = {
17112
+ method: "GET",
17113
+ signal,
17114
+ headers: {
17115
+ "Accept": "application/json"
17116
+ }
17117
+ };
17118
+ return this.http.fetch(url_, options_).then((_response) => {
17119
+ return this.processGetByScanId(_response);
17120
+ });
17121
+ }
17122
+ processGetByScanId(response) {
17123
+ const status = response.status;
17124
+ let _headers = {};
17125
+ if (response.headers && response.headers.forEach) {
17126
+ response.headers.forEach((v, k) => _headers[k] = v);
17127
+ }
17128
+ ;
17129
+ if (status === 200) {
17130
+ return response.text().then((_responseText) => {
17131
+ let result200 = null;
17132
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17133
+ return result200;
17134
+ });
17135
+ }
17136
+ else if (status !== 200 && status !== 204) {
17137
+ return response.text().then((_responseText) => {
17138
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17139
+ });
17140
+ }
17141
+ return Promise.resolve(null);
17142
+ }
17143
+ /**
17144
+ * @param scanId (optional)
17145
+ * @param take (optional)
17146
+ * @return OK
17147
+ */
17148
+ getLastRunsByScan(scanId, take, signal) {
17149
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/GetLastRunsByScan?";
17150
+ if (scanId === null)
17151
+ throw new globalThis.Error("The parameter 'scanId' cannot be null.");
17152
+ else if (scanId !== undefined)
17153
+ url_ += "scanId=" + encodeURIComponent("" + scanId) + "&";
17154
+ if (take === null)
17155
+ throw new globalThis.Error("The parameter 'take' cannot be null.");
17156
+ else if (take !== undefined)
17157
+ url_ += "take=" + encodeURIComponent("" + take) + "&";
17158
+ url_ = url_.replace(/[?&]$/, "");
17159
+ let options_ = {
17160
+ method: "GET",
17161
+ signal,
17162
+ headers: {
17163
+ "Accept": "application/json"
17164
+ }
17165
+ };
17166
+ return this.http.fetch(url_, options_).then((_response) => {
17167
+ return this.processGetLastRunsByScan(_response);
17168
+ });
17169
+ }
17170
+ processGetLastRunsByScan(response) {
17171
+ const status = response.status;
17172
+ let _headers = {};
17173
+ if (response.headers && response.headers.forEach) {
17174
+ response.headers.forEach((v, k) => _headers[k] = v);
17175
+ }
17176
+ ;
17177
+ if (status === 200) {
17178
+ return response.text().then((_responseText) => {
17179
+ let result200 = null;
17180
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17181
+ return result200;
17182
+ });
17183
+ }
17184
+ else if (status !== 200 && status !== 204) {
17185
+ return response.text().then((_responseText) => {
17186
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17187
+ });
17188
+ }
17189
+ return Promise.resolve(null);
17190
+ }
17191
+ /**
17192
+ * @param body (optional)
17193
+ * @return OK
17194
+ */
17195
+ add(body, signal) {
17196
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/Add";
17197
+ url_ = url_.replace(/[?&]$/, "");
17198
+ const content_ = JSON.stringify(body);
17199
+ let options_ = {
17200
+ body: content_,
17201
+ method: "POST",
17202
+ signal,
17203
+ headers: {
17204
+ "Content-Type": "application/json",
17205
+ "Accept": "application/json"
17206
+ }
17207
+ };
17208
+ return this.http.fetch(url_, options_).then((_response) => {
17209
+ return this.processAdd(_response);
17210
+ });
17211
+ }
17212
+ processAdd(response) {
17213
+ const status = response.status;
17214
+ let _headers = {};
17215
+ if (response.headers && response.headers.forEach) {
17216
+ response.headers.forEach((v, k) => _headers[k] = v);
17217
+ }
17218
+ ;
17219
+ if (status === 200) {
17220
+ return response.text().then((_responseText) => {
17221
+ let result200 = null;
17222
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17223
+ return result200;
17224
+ });
17225
+ }
17226
+ else if (status !== 200 && status !== 204) {
17227
+ return response.text().then((_responseText) => {
17228
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17229
+ });
17230
+ }
17231
+ return Promise.resolve(null);
17232
+ }
17233
+ /**
17234
+ * @param body (optional)
17235
+ * @return OK
17236
+ */
17237
+ addMultiple(body, signal) {
17238
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/AddMultiple";
17239
+ url_ = url_.replace(/[?&]$/, "");
17240
+ const content_ = JSON.stringify(body);
17241
+ let options_ = {
17242
+ body: content_,
17243
+ method: "POST",
17244
+ signal,
17245
+ headers: {
17246
+ "Content-Type": "application/json",
17247
+ "Accept": "application/json"
17248
+ }
17249
+ };
17250
+ return this.http.fetch(url_, options_).then((_response) => {
17251
+ return this.processAddMultiple(_response);
17252
+ });
17253
+ }
17254
+ processAddMultiple(response) {
17255
+ const status = response.status;
17256
+ let _headers = {};
17257
+ if (response.headers && response.headers.forEach) {
17258
+ response.headers.forEach((v, k) => _headers[k] = v);
17259
+ }
17260
+ ;
17261
+ if (status === 200) {
17262
+ return response.text().then((_responseText) => {
17263
+ let result200 = null;
17264
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17265
+ return result200;
17266
+ });
17267
+ }
17268
+ else if (status !== 200 && status !== 204) {
17269
+ return response.text().then((_responseText) => {
17270
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17271
+ });
17272
+ }
17273
+ return Promise.resolve(null);
17274
+ }
17275
+ /**
17276
+ * @param body (optional)
17277
+ * @return OK
17278
+ */
17279
+ update(body, signal) {
17280
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/Update";
17281
+ url_ = url_.replace(/[?&]$/, "");
17282
+ const content_ = JSON.stringify(body);
17283
+ let options_ = {
17284
+ body: content_,
17285
+ method: "POST",
17286
+ signal,
17287
+ headers: {
17288
+ "Content-Type": "application/json",
17289
+ "Accept": "application/json"
17290
+ }
17291
+ };
17292
+ return this.http.fetch(url_, options_).then((_response) => {
17293
+ return this.processUpdate(_response);
17294
+ });
17295
+ }
17296
+ processUpdate(response) {
17297
+ const status = response.status;
17298
+ let _headers = {};
17299
+ if (response.headers && response.headers.forEach) {
17300
+ response.headers.forEach((v, k) => _headers[k] = v);
17301
+ }
17302
+ ;
17303
+ if (status === 200) {
17304
+ return response.text().then((_responseText) => {
17305
+ let result200 = null;
17306
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17307
+ return result200;
17308
+ });
17309
+ }
17310
+ else if (status !== 200 && status !== 204) {
17311
+ return response.text().then((_responseText) => {
17312
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17313
+ });
17314
+ }
17315
+ return Promise.resolve(null);
17316
+ }
17317
+ /**
17318
+ * @param body (optional)
17319
+ * @return OK
17320
+ */
17321
+ delete(body, signal) {
17322
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/Delete";
17323
+ url_ = url_.replace(/[?&]$/, "");
17324
+ const content_ = JSON.stringify(body);
17325
+ let options_ = {
17326
+ body: content_,
17327
+ method: "POST",
17328
+ signal,
17329
+ headers: {
17330
+ "Content-Type": "application/json",
17331
+ "Accept": "application/json"
17332
+ }
17333
+ };
17334
+ return this.http.fetch(url_, options_).then((_response) => {
17335
+ return this.processDelete(_response);
17336
+ });
17337
+ }
17338
+ processDelete(response) {
17339
+ const status = response.status;
17340
+ let _headers = {};
17341
+ if (response.headers && response.headers.forEach) {
17342
+ response.headers.forEach((v, k) => _headers[k] = v);
17343
+ }
17344
+ ;
17345
+ if (status === 200) {
17346
+ return response.text().then((_responseText) => {
17347
+ let result200 = null;
17348
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17349
+ return result200;
17350
+ });
17351
+ }
17352
+ else if (status !== 200 && status !== 204) {
17353
+ return response.text().then((_responseText) => {
17354
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17355
+ });
17356
+ }
17357
+ return Promise.resolve(null);
17358
+ }
17359
+ /**
17360
+ * @param body (optional)
17361
+ * @return OK
17362
+ */
17363
+ deleteMultiple(body, signal) {
17364
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/DeleteMultiple";
17365
+ url_ = url_.replace(/[?&]$/, "");
17366
+ const content_ = JSON.stringify(body);
17367
+ let options_ = {
17368
+ body: content_,
17369
+ method: "POST",
17370
+ signal,
17371
+ headers: {
17372
+ "Content-Type": "application/json",
17373
+ "Accept": "application/json"
17374
+ }
17375
+ };
17376
+ return this.http.fetch(url_, options_).then((_response) => {
17377
+ return this.processDeleteMultiple(_response);
17378
+ });
17379
+ }
17380
+ processDeleteMultiple(response) {
17381
+ const status = response.status;
17382
+ let _headers = {};
17383
+ if (response.headers && response.headers.forEach) {
17384
+ response.headers.forEach((v, k) => _headers[k] = v);
17385
+ }
17386
+ ;
17387
+ if (status === 200) {
17388
+ return response.text().then((_responseText) => {
17389
+ let result200 = null;
17390
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17391
+ return result200;
17392
+ });
17393
+ }
17394
+ else if (status !== 200 && status !== 204) {
17395
+ return response.text().then((_responseText) => {
17396
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17397
+ });
17398
+ }
17399
+ return Promise.resolve(null);
17400
+ }
17401
+ /**
17402
+ * @param id (optional)
17403
+ * @return OK
17404
+ */
17405
+ getById(id, signal) {
17406
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/GetById?";
17407
+ if (id === null)
17408
+ throw new globalThis.Error("The parameter 'id' cannot be null.");
17409
+ else if (id !== undefined)
17410
+ url_ += "id=" + encodeURIComponent("" + id) + "&";
17411
+ url_ = url_.replace(/[?&]$/, "");
17412
+ let options_ = {
17413
+ method: "GET",
17414
+ signal,
17415
+ headers: {
17416
+ "Accept": "application/json"
17417
+ }
17418
+ };
17419
+ return this.http.fetch(url_, options_).then((_response) => {
17420
+ return this.processGetById(_response);
17421
+ });
17422
+ }
17423
+ processGetById(response) {
17424
+ const status = response.status;
17425
+ let _headers = {};
17426
+ if (response.headers && response.headers.forEach) {
17427
+ response.headers.forEach((v, k) => _headers[k] = v);
17428
+ }
17429
+ ;
17430
+ if (status === 200) {
17431
+ return response.text().then((_responseText) => {
17432
+ let result200 = null;
17433
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17434
+ return result200;
17435
+ });
17436
+ }
17437
+ else if (status !== 200 && status !== 204) {
17438
+ return response.text().then((_responseText) => {
17439
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17440
+ });
17441
+ }
17442
+ return Promise.resolve(null);
17443
+ }
17444
+ /**
17445
+ * @return OK
17446
+ */
17447
+ getAll(signal) {
17448
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/GetAll";
17449
+ url_ = url_.replace(/[?&]$/, "");
17450
+ let options_ = {
17451
+ method: "GET",
17452
+ signal,
17453
+ headers: {
17454
+ "Accept": "application/json"
17455
+ }
17456
+ };
17457
+ return this.http.fetch(url_, options_).then((_response) => {
17458
+ return this.processGetAll(_response);
17459
+ });
17460
+ }
17461
+ processGetAll(response) {
17462
+ const status = response.status;
17463
+ let _headers = {};
17464
+ if (response.headers && response.headers.forEach) {
17465
+ response.headers.forEach((v, k) => _headers[k] = v);
17466
+ }
17467
+ ;
17468
+ if (status === 200) {
17469
+ return response.text().then((_responseText) => {
17470
+ let result200 = null;
17471
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17472
+ return result200;
17473
+ });
17474
+ }
17475
+ else if (status !== 200 && status !== 204) {
17476
+ return response.text().then((_responseText) => {
17477
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17478
+ });
17479
+ }
17480
+ return Promise.resolve(null);
17481
+ }
17482
+ /**
17483
+ * @param skip (optional)
17484
+ * @param take (optional)
17485
+ * @return OK
17486
+ */
17487
+ pagination(skip, take, signal) {
17488
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/Pagination?";
17489
+ if (skip === null)
17490
+ throw new globalThis.Error("The parameter 'skip' cannot be null.");
17491
+ else if (skip !== undefined)
17492
+ url_ += "skip=" + encodeURIComponent("" + skip) + "&";
17493
+ if (take === null)
17494
+ throw new globalThis.Error("The parameter 'take' cannot be null.");
17495
+ else if (take !== undefined)
17496
+ url_ += "take=" + encodeURIComponent("" + take) + "&";
17497
+ url_ = url_.replace(/[?&]$/, "");
17498
+ let options_ = {
17499
+ method: "GET",
17500
+ signal,
17501
+ headers: {
17502
+ "Accept": "application/json"
17503
+ }
17504
+ };
17505
+ return this.http.fetch(url_, options_).then((_response) => {
17506
+ return this.processPagination(_response);
17507
+ });
17508
+ }
17509
+ processPagination(response) {
17510
+ const status = response.status;
17511
+ let _headers = {};
17512
+ if (response.headers && response.headers.forEach) {
17513
+ response.headers.forEach((v, k) => _headers[k] = v);
17514
+ }
17515
+ ;
17516
+ if (status === 200) {
17517
+ return response.text().then((_responseText) => {
17518
+ let result200 = null;
17519
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17520
+ return result200;
17521
+ });
17522
+ }
17523
+ else if (status !== 200 && status !== 204) {
17524
+ return response.text().then((_responseText) => {
17525
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17526
+ });
17527
+ }
17528
+ return Promise.resolve(null);
17529
+ }
17530
+ /**
17531
+ * @param body (optional)
17532
+ * @return OK
17533
+ */
17534
+ getFiltersBase(body, signal) {
17535
+ let url_ = this.baseUrl + "/api/ScanTimingRuns/GetFiltersBase";
17536
+ url_ = url_.replace(/[?&]$/, "");
17537
+ const content_ = JSON.stringify(body);
17538
+ let options_ = {
17539
+ body: content_,
17540
+ method: "POST",
17541
+ signal,
17542
+ headers: {
17543
+ "Content-Type": "application/json",
17544
+ "Accept": "application/json"
17545
+ }
17546
+ };
17547
+ return this.http.fetch(url_, options_).then((_response) => {
17548
+ return this.processGetFiltersBase(_response);
17549
+ });
17550
+ }
17551
+ processGetFiltersBase(response) {
17552
+ const status = response.status;
17553
+ let _headers = {};
17554
+ if (response.headers && response.headers.forEach) {
17555
+ response.headers.forEach((v, k) => _headers[k] = v);
17556
+ }
17557
+ ;
17558
+ if (status === 200) {
17559
+ return response.text().then((_responseText) => {
17560
+ let result200 = null;
17561
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17562
+ return result200;
17563
+ });
17564
+ }
17565
+ else if (status !== 200 && status !== 204) {
17566
+ return response.text().then((_responseText) => {
17567
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17568
+ });
17569
+ }
17570
+ return Promise.resolve(null);
17571
+ }
17572
+ }
16575
17573
  export class ScanTypesClient extends BaseApiClient {
16576
17574
  constructor(configuration, baseUrl, http) {
16577
17575
  super(configuration);