@ignos/api-client 20261104.345.1-alpha → 20261104.346.1-alpha
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/lib/ignosportal-api.d.ts +172 -17
- package/lib/ignosportal-api.js +288 -72
- package/package.json +1 -1
- package/src/ignosportal-api.ts +459 -91
package/lib/ignosportal-api.js
CHANGED
|
@@ -2818,78 +2818,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
|
2818
2818
|
}
|
|
2819
2819
|
return Promise.resolve(null);
|
|
2820
2820
|
}
|
|
2821
|
-
getFavoriteRoutesUserSettings() {
|
|
2822
|
-
let url_ = this.baseUrl + "/userappsettings/favorite-routes";
|
|
2823
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
2824
|
-
let options_ = {
|
|
2825
|
-
method: "GET",
|
|
2826
|
-
headers: {
|
|
2827
|
-
"Accept": "application/json"
|
|
2828
|
-
}
|
|
2829
|
-
};
|
|
2830
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2831
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
2832
|
-
}).then((_response) => {
|
|
2833
|
-
return this.processGetFavoriteRoutesUserSettings(_response);
|
|
2834
|
-
});
|
|
2835
|
-
}
|
|
2836
|
-
processGetFavoriteRoutesUserSettings(response) {
|
|
2837
|
-
const status = response.status;
|
|
2838
|
-
let _headers = {};
|
|
2839
|
-
if (response.headers && response.headers.forEach) {
|
|
2840
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2841
|
-
}
|
|
2842
|
-
;
|
|
2843
|
-
if (status === 200) {
|
|
2844
|
-
return response.text().then((_responseText) => {
|
|
2845
|
-
let result200 = null;
|
|
2846
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2847
|
-
return result200;
|
|
2848
|
-
});
|
|
2849
|
-
}
|
|
2850
|
-
else if (status !== 200 && status !== 204) {
|
|
2851
|
-
return response.text().then((_responseText) => {
|
|
2852
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2853
|
-
});
|
|
2854
|
-
}
|
|
2855
|
-
return Promise.resolve(null);
|
|
2856
|
-
}
|
|
2857
|
-
setFavoriteRoutesUserSettings(settings) {
|
|
2858
|
-
let url_ = this.baseUrl + "/userappsettings/favorite-routes";
|
|
2859
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
2860
|
-
const content_ = JSON.stringify(settings);
|
|
2861
|
-
let options_ = {
|
|
2862
|
-
body: content_,
|
|
2863
|
-
method: "PUT",
|
|
2864
|
-
headers: {
|
|
2865
|
-
"Content-Type": "application/json",
|
|
2866
|
-
}
|
|
2867
|
-
};
|
|
2868
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2869
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
2870
|
-
}).then((_response) => {
|
|
2871
|
-
return this.processSetFavoriteRoutesUserSettings(_response);
|
|
2872
|
-
});
|
|
2873
|
-
}
|
|
2874
|
-
processSetFavoriteRoutesUserSettings(response) {
|
|
2875
|
-
const status = response.status;
|
|
2876
|
-
let _headers = {};
|
|
2877
|
-
if (response.headers && response.headers.forEach) {
|
|
2878
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2879
|
-
}
|
|
2880
|
-
;
|
|
2881
|
-
if (status === 204) {
|
|
2882
|
-
return response.text().then((_responseText) => {
|
|
2883
|
-
return;
|
|
2884
|
-
});
|
|
2885
|
-
}
|
|
2886
|
-
else if (status !== 200 && status !== 204) {
|
|
2887
|
-
return response.text().then((_responseText) => {
|
|
2888
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2889
|
-
});
|
|
2890
|
-
}
|
|
2891
|
-
return Promise.resolve(null);
|
|
2892
|
-
}
|
|
2893
2821
|
}
|
|
2894
2822
|
export class UploadClient extends AuthorizedApiBase {
|
|
2895
2823
|
http;
|
|
@@ -18517,6 +18445,54 @@ export class CdfClient extends AuthorizedApiBase {
|
|
|
18517
18445
|
return Promise.resolve(null);
|
|
18518
18446
|
}
|
|
18519
18447
|
}
|
|
18448
|
+
export class InspectAdminClient extends AuthorizedApiBase {
|
|
18449
|
+
http;
|
|
18450
|
+
baseUrl;
|
|
18451
|
+
constructor(configuration, baseUrl, http) {
|
|
18452
|
+
super(configuration);
|
|
18453
|
+
this.http = http ? http : window;
|
|
18454
|
+
this.baseUrl = baseUrl ?? "";
|
|
18455
|
+
}
|
|
18456
|
+
/**
|
|
18457
|
+
* One-off: flags the current tenant's schema versions that have a schema creator document.
|
|
18458
|
+
*/
|
|
18459
|
+
backfillSchemaCreatorFlags() {
|
|
18460
|
+
let url_ = this.baseUrl + "/admin/inspect/schemas/backfill-schema-creator-flags";
|
|
18461
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18462
|
+
let options_ = {
|
|
18463
|
+
method: "POST",
|
|
18464
|
+
headers: {
|
|
18465
|
+
"Accept": "application/json"
|
|
18466
|
+
}
|
|
18467
|
+
};
|
|
18468
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18469
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18470
|
+
}).then((_response) => {
|
|
18471
|
+
return this.processBackfillSchemaCreatorFlags(_response);
|
|
18472
|
+
});
|
|
18473
|
+
}
|
|
18474
|
+
processBackfillSchemaCreatorFlags(response) {
|
|
18475
|
+
const status = response.status;
|
|
18476
|
+
let _headers = {};
|
|
18477
|
+
if (response.headers && response.headers.forEach) {
|
|
18478
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18479
|
+
}
|
|
18480
|
+
;
|
|
18481
|
+
if (status === 200) {
|
|
18482
|
+
return response.text().then((_responseText) => {
|
|
18483
|
+
let result200 = null;
|
|
18484
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18485
|
+
return result200;
|
|
18486
|
+
});
|
|
18487
|
+
}
|
|
18488
|
+
else if (status !== 200 && status !== 204) {
|
|
18489
|
+
return response.text().then((_responseText) => {
|
|
18490
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18491
|
+
});
|
|
18492
|
+
}
|
|
18493
|
+
return Promise.resolve(null);
|
|
18494
|
+
}
|
|
18495
|
+
}
|
|
18520
18496
|
export class WorkspaceDefaultsAdminClient extends AuthorizedApiBase {
|
|
18521
18497
|
http;
|
|
18522
18498
|
baseUrl;
|
|
@@ -27874,6 +27850,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
27874
27850
|
}
|
|
27875
27851
|
return Promise.resolve(null);
|
|
27876
27852
|
}
|
|
27853
|
+
postCountMeasurementFormSchemas(request) {
|
|
27854
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/list/counts";
|
|
27855
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27856
|
+
const content_ = JSON.stringify(request);
|
|
27857
|
+
let options_ = {
|
|
27858
|
+
body: content_,
|
|
27859
|
+
method: "POST",
|
|
27860
|
+
headers: {
|
|
27861
|
+
"Content-Type": "application/json",
|
|
27862
|
+
"Accept": "application/json"
|
|
27863
|
+
}
|
|
27864
|
+
};
|
|
27865
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27866
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27867
|
+
}).then((_response) => {
|
|
27868
|
+
return this.processPostCountMeasurementFormSchemas(_response);
|
|
27869
|
+
});
|
|
27870
|
+
}
|
|
27871
|
+
processPostCountMeasurementFormSchemas(response) {
|
|
27872
|
+
const status = response.status;
|
|
27873
|
+
let _headers = {};
|
|
27874
|
+
if (response.headers && response.headers.forEach) {
|
|
27875
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27876
|
+
}
|
|
27877
|
+
;
|
|
27878
|
+
if (status === 200) {
|
|
27879
|
+
return response.text().then((_responseText) => {
|
|
27880
|
+
let result200 = null;
|
|
27881
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27882
|
+
return result200;
|
|
27883
|
+
});
|
|
27884
|
+
}
|
|
27885
|
+
else if (status !== 200 && status !== 204) {
|
|
27886
|
+
return response.text().then((_responseText) => {
|
|
27887
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27888
|
+
});
|
|
27889
|
+
}
|
|
27890
|
+
return Promise.resolve(null);
|
|
27891
|
+
}
|
|
27877
27892
|
listMeasurementFormSchemaVersions(id) {
|
|
27878
27893
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
27879
27894
|
if (id === undefined || id === null)
|
|
@@ -27913,6 +27928,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
27913
27928
|
}
|
|
27914
27929
|
return Promise.resolve(null);
|
|
27915
27930
|
}
|
|
27931
|
+
listMeasurementFormSchemaInstances(id) {
|
|
27932
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/instances";
|
|
27933
|
+
if (id === undefined || id === null)
|
|
27934
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27935
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27936
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27937
|
+
let options_ = {
|
|
27938
|
+
method: "GET",
|
|
27939
|
+
headers: {
|
|
27940
|
+
"Accept": "application/json"
|
|
27941
|
+
}
|
|
27942
|
+
};
|
|
27943
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27944
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27945
|
+
}).then((_response) => {
|
|
27946
|
+
return this.processListMeasurementFormSchemaInstances(_response);
|
|
27947
|
+
});
|
|
27948
|
+
}
|
|
27949
|
+
processListMeasurementFormSchemaInstances(response) {
|
|
27950
|
+
const status = response.status;
|
|
27951
|
+
let _headers = {};
|
|
27952
|
+
if (response.headers && response.headers.forEach) {
|
|
27953
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27954
|
+
}
|
|
27955
|
+
;
|
|
27956
|
+
if (status === 200) {
|
|
27957
|
+
return response.text().then((_responseText) => {
|
|
27958
|
+
let result200 = null;
|
|
27959
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27960
|
+
return result200;
|
|
27961
|
+
});
|
|
27962
|
+
}
|
|
27963
|
+
else if (status !== 200 && status !== 204) {
|
|
27964
|
+
return response.text().then((_responseText) => {
|
|
27965
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27966
|
+
});
|
|
27967
|
+
}
|
|
27968
|
+
return Promise.resolve(null);
|
|
27969
|
+
}
|
|
27916
27970
|
listMeasurementFormSchemaVersionChanges(id) {
|
|
27917
27971
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions/changes";
|
|
27918
27972
|
if (id === undefined || id === null)
|
|
@@ -29394,6 +29448,9 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
29394
29448
|
}
|
|
29395
29449
|
return Promise.resolve(null);
|
|
29396
29450
|
}
|
|
29451
|
+
/**
|
|
29452
|
+
* @deprecated
|
|
29453
|
+
*/
|
|
29397
29454
|
updateMeasurementFormInstance(id, request) {
|
|
29398
29455
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
29399
29456
|
if (id === undefined || id === null)
|
|
@@ -29563,6 +29620,84 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
29563
29620
|
}
|
|
29564
29621
|
return Promise.resolve(null);
|
|
29565
29622
|
}
|
|
29623
|
+
postCountMeasurementFormsByStatus(request) {
|
|
29624
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bystatus/v2/counts";
|
|
29625
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29626
|
+
const content_ = JSON.stringify(request);
|
|
29627
|
+
let options_ = {
|
|
29628
|
+
body: content_,
|
|
29629
|
+
method: "POST",
|
|
29630
|
+
headers: {
|
|
29631
|
+
"Content-Type": "application/json",
|
|
29632
|
+
"Accept": "application/json"
|
|
29633
|
+
}
|
|
29634
|
+
};
|
|
29635
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29636
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29637
|
+
}).then((_response) => {
|
|
29638
|
+
return this.processPostCountMeasurementFormsByStatus(_response);
|
|
29639
|
+
});
|
|
29640
|
+
}
|
|
29641
|
+
processPostCountMeasurementFormsByStatus(response) {
|
|
29642
|
+
const status = response.status;
|
|
29643
|
+
let _headers = {};
|
|
29644
|
+
if (response.headers && response.headers.forEach) {
|
|
29645
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
29646
|
+
}
|
|
29647
|
+
;
|
|
29648
|
+
if (status === 200) {
|
|
29649
|
+
return response.text().then((_responseText) => {
|
|
29650
|
+
let result200 = null;
|
|
29651
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
29652
|
+
return result200;
|
|
29653
|
+
});
|
|
29654
|
+
}
|
|
29655
|
+
else if (status !== 200 && status !== 204) {
|
|
29656
|
+
return response.text().then((_responseText) => {
|
|
29657
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29658
|
+
});
|
|
29659
|
+
}
|
|
29660
|
+
return Promise.resolve(null);
|
|
29661
|
+
}
|
|
29662
|
+
postListMeasurementFormsByStatusV2(request) {
|
|
29663
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bystatus/v2";
|
|
29664
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29665
|
+
const content_ = JSON.stringify(request);
|
|
29666
|
+
let options_ = {
|
|
29667
|
+
body: content_,
|
|
29668
|
+
method: "POST",
|
|
29669
|
+
headers: {
|
|
29670
|
+
"Content-Type": "application/json",
|
|
29671
|
+
"Accept": "application/json"
|
|
29672
|
+
}
|
|
29673
|
+
};
|
|
29674
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29675
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29676
|
+
}).then((_response) => {
|
|
29677
|
+
return this.processPostListMeasurementFormsByStatusV2(_response);
|
|
29678
|
+
});
|
|
29679
|
+
}
|
|
29680
|
+
processPostListMeasurementFormsByStatusV2(response) {
|
|
29681
|
+
const status = response.status;
|
|
29682
|
+
let _headers = {};
|
|
29683
|
+
if (response.headers && response.headers.forEach) {
|
|
29684
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
29685
|
+
}
|
|
29686
|
+
;
|
|
29687
|
+
if (status === 200) {
|
|
29688
|
+
return response.text().then((_responseText) => {
|
|
29689
|
+
let result200 = null;
|
|
29690
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
29691
|
+
return result200;
|
|
29692
|
+
});
|
|
29693
|
+
}
|
|
29694
|
+
else if (status !== 200 && status !== 204) {
|
|
29695
|
+
return response.text().then((_responseText) => {
|
|
29696
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29697
|
+
});
|
|
29698
|
+
}
|
|
29699
|
+
return Promise.resolve(null);
|
|
29700
|
+
}
|
|
29566
29701
|
createMeasurementFormInstance2(id, request) {
|
|
29567
29702
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
29568
29703
|
if (id === undefined || id === null)
|
|
@@ -29605,6 +29740,87 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
29605
29740
|
}
|
|
29606
29741
|
return Promise.resolve(null);
|
|
29607
29742
|
}
|
|
29743
|
+
editMeasurementFormInstance(id, request) {
|
|
29744
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/edit";
|
|
29745
|
+
if (id === undefined || id === null)
|
|
29746
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29747
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29748
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29749
|
+
const content_ = JSON.stringify(request);
|
|
29750
|
+
let options_ = {
|
|
29751
|
+
body: content_,
|
|
29752
|
+
method: "PUT",
|
|
29753
|
+
headers: {
|
|
29754
|
+
"Content-Type": "application/json",
|
|
29755
|
+
"Accept": "application/json"
|
|
29756
|
+
}
|
|
29757
|
+
};
|
|
29758
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29759
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29760
|
+
}).then((_response) => {
|
|
29761
|
+
return this.processEditMeasurementFormInstance(_response);
|
|
29762
|
+
});
|
|
29763
|
+
}
|
|
29764
|
+
processEditMeasurementFormInstance(response) {
|
|
29765
|
+
const status = response.status;
|
|
29766
|
+
let _headers = {};
|
|
29767
|
+
if (response.headers && response.headers.forEach) {
|
|
29768
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
29769
|
+
}
|
|
29770
|
+
;
|
|
29771
|
+
if (status === 200) {
|
|
29772
|
+
return response.text().then((_responseText) => {
|
|
29773
|
+
let result200 = null;
|
|
29774
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
29775
|
+
return result200;
|
|
29776
|
+
});
|
|
29777
|
+
}
|
|
29778
|
+
else if (status !== 200 && status !== 204) {
|
|
29779
|
+
return response.text().then((_responseText) => {
|
|
29780
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29781
|
+
});
|
|
29782
|
+
}
|
|
29783
|
+
return Promise.resolve(null);
|
|
29784
|
+
}
|
|
29785
|
+
getSerialNumberMeasurements(id) {
|
|
29786
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/serial-number-measurements";
|
|
29787
|
+
if (id === undefined || id === null)
|
|
29788
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29789
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29790
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29791
|
+
let options_ = {
|
|
29792
|
+
method: "GET",
|
|
29793
|
+
headers: {
|
|
29794
|
+
"Accept": "application/json"
|
|
29795
|
+
}
|
|
29796
|
+
};
|
|
29797
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29798
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29799
|
+
}).then((_response) => {
|
|
29800
|
+
return this.processGetSerialNumberMeasurements(_response);
|
|
29801
|
+
});
|
|
29802
|
+
}
|
|
29803
|
+
processGetSerialNumberMeasurements(response) {
|
|
29804
|
+
const status = response.status;
|
|
29805
|
+
let _headers = {};
|
|
29806
|
+
if (response.headers && response.headers.forEach) {
|
|
29807
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
29808
|
+
}
|
|
29809
|
+
;
|
|
29810
|
+
if (status === 200) {
|
|
29811
|
+
return response.text().then((_responseText) => {
|
|
29812
|
+
let result200 = null;
|
|
29813
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
29814
|
+
return result200;
|
|
29815
|
+
});
|
|
29816
|
+
}
|
|
29817
|
+
else if (status !== 200 && status !== 204) {
|
|
29818
|
+
return response.text().then((_responseText) => {
|
|
29819
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29820
|
+
});
|
|
29821
|
+
}
|
|
29822
|
+
return Promise.resolve(null);
|
|
29823
|
+
}
|
|
29608
29824
|
reactivateMeasurementFormInstance(id) {
|
|
29609
29825
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
|
|
29610
29826
|
if (id === undefined || id === null)
|