@ignos/api-client 20260317.78.1 → 20260318.79.1
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 +149 -134
- package/lib/ignosportal-api.js +180 -54
- package/package.json +1 -1
- package/src/ignosportal-api.ts +348 -211
package/lib/ignosportal-api.js
CHANGED
|
@@ -20311,7 +20311,7 @@ export class WeldingClient extends AuthorizedApiBase {
|
|
|
20311
20311
|
return Promise.resolve(null);
|
|
20312
20312
|
}
|
|
20313
20313
|
}
|
|
20314
|
-
export class
|
|
20314
|
+
export class InspectMatchCertificateChecksClient extends AuthorizedApiBase {
|
|
20315
20315
|
constructor(configuration, baseUrl, http) {
|
|
20316
20316
|
super(configuration);
|
|
20317
20317
|
this.http = http ? http : window;
|
|
@@ -20471,14 +20471,14 @@ export class MaterialCertificateChecksClient extends AuthorizedApiBase {
|
|
|
20471
20471
|
return Promise.resolve(null);
|
|
20472
20472
|
}
|
|
20473
20473
|
}
|
|
20474
|
-
export class
|
|
20474
|
+
export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
20475
20475
|
constructor(configuration, baseUrl, http) {
|
|
20476
20476
|
super(configuration);
|
|
20477
20477
|
this.http = http ? http : window;
|
|
20478
20478
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20479
20479
|
}
|
|
20480
|
-
|
|
20481
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
20480
|
+
listMaterialCertificateTypes() {
|
|
20481
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/list";
|
|
20482
20482
|
url_ = url_.replace(/[?&]$/, "");
|
|
20483
20483
|
let options_ = {
|
|
20484
20484
|
method: "GET",
|
|
@@ -20489,10 +20489,10 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
20489
20489
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20490
20490
|
return this.http.fetch(url_, transformedOptions_);
|
|
20491
20491
|
}).then((_response) => {
|
|
20492
|
-
return this.
|
|
20492
|
+
return this.processListMaterialCertificateTypes(_response);
|
|
20493
20493
|
});
|
|
20494
20494
|
}
|
|
20495
|
-
|
|
20495
|
+
processListMaterialCertificateTypes(response) {
|
|
20496
20496
|
const status = response.status;
|
|
20497
20497
|
let _headers = {};
|
|
20498
20498
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20513,8 +20513,8 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
20513
20513
|
}
|
|
20514
20514
|
return Promise.resolve(null);
|
|
20515
20515
|
}
|
|
20516
|
-
|
|
20517
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
20516
|
+
getMaterialCertificateTypes(id, version) {
|
|
20517
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
20518
20518
|
if (id === undefined || id === null)
|
|
20519
20519
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20520
20520
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -20530,10 +20530,10 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
20530
20530
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20531
20531
|
return this.http.fetch(url_, transformedOptions_);
|
|
20532
20532
|
}).then((_response) => {
|
|
20533
|
-
return this.
|
|
20533
|
+
return this.processGetMaterialCertificateTypes(_response);
|
|
20534
20534
|
});
|
|
20535
20535
|
}
|
|
20536
|
-
|
|
20536
|
+
processGetMaterialCertificateTypes(response) {
|
|
20537
20537
|
const status = response.status;
|
|
20538
20538
|
let _headers = {};
|
|
20539
20539
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20554,15 +20554,15 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
20554
20554
|
}
|
|
20555
20555
|
return Promise.resolve(null);
|
|
20556
20556
|
}
|
|
20557
|
-
|
|
20558
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
20557
|
+
updateMaterialCertificateTypes(id, version, payload) {
|
|
20558
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
20559
20559
|
if (id === undefined || id === null)
|
|
20560
20560
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20561
20561
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20562
20562
|
if (version !== undefined && version !== null)
|
|
20563
20563
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
20564
20564
|
url_ = url_.replace(/[?&]$/, "");
|
|
20565
|
-
const content_ = JSON.stringify(
|
|
20565
|
+
const content_ = JSON.stringify(payload);
|
|
20566
20566
|
let options_ = {
|
|
20567
20567
|
body: content_,
|
|
20568
20568
|
method: "PUT",
|
|
@@ -20574,10 +20574,10 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
20574
20574
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20575
20575
|
return this.http.fetch(url_, transformedOptions_);
|
|
20576
20576
|
}).then((_response) => {
|
|
20577
|
-
return this.
|
|
20577
|
+
return this.processUpdateMaterialCertificateTypes(_response);
|
|
20578
20578
|
});
|
|
20579
20579
|
}
|
|
20580
|
-
|
|
20580
|
+
processUpdateMaterialCertificateTypes(response) {
|
|
20581
20581
|
const status = response.status;
|
|
20582
20582
|
let _headers = {};
|
|
20583
20583
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20599,7 +20599,7 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
20599
20599
|
return Promise.resolve(null);
|
|
20600
20600
|
}
|
|
20601
20601
|
deleteMaterialCertificateTypes(id, version) {
|
|
20602
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
20602
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
20603
20603
|
if (id === undefined || id === null)
|
|
20604
20604
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20605
20605
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -20635,10 +20635,10 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
20635
20635
|
}
|
|
20636
20636
|
return Promise.resolve(null);
|
|
20637
20637
|
}
|
|
20638
|
-
|
|
20639
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
20638
|
+
createMaterialCertificateTypes(payload) {
|
|
20639
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types";
|
|
20640
20640
|
url_ = url_.replace(/[?&]$/, "");
|
|
20641
|
-
const content_ = JSON.stringify(
|
|
20641
|
+
const content_ = JSON.stringify(payload);
|
|
20642
20642
|
let options_ = {
|
|
20643
20643
|
body: content_,
|
|
20644
20644
|
method: "POST",
|
|
@@ -20650,10 +20650,136 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
20650
20650
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20651
20651
|
return this.http.fetch(url_, transformedOptions_);
|
|
20652
20652
|
}).then((_response) => {
|
|
20653
|
-
return this.
|
|
20653
|
+
return this.processCreateMaterialCertificateTypes(_response);
|
|
20654
20654
|
});
|
|
20655
20655
|
}
|
|
20656
|
-
|
|
20656
|
+
processCreateMaterialCertificateTypes(response) {
|
|
20657
|
+
const status = response.status;
|
|
20658
|
+
let _headers = {};
|
|
20659
|
+
if (response.headers && response.headers.forEach) {
|
|
20660
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20661
|
+
}
|
|
20662
|
+
;
|
|
20663
|
+
if (status === 200) {
|
|
20664
|
+
return response.text().then((_responseText) => {
|
|
20665
|
+
let result200 = null;
|
|
20666
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20667
|
+
return result200;
|
|
20668
|
+
});
|
|
20669
|
+
}
|
|
20670
|
+
else if (status !== 200 && status !== 204) {
|
|
20671
|
+
return response.text().then((_responseText) => {
|
|
20672
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20673
|
+
});
|
|
20674
|
+
}
|
|
20675
|
+
return Promise.resolve(null);
|
|
20676
|
+
}
|
|
20677
|
+
copyMaterialCertificateType(id, version, payload) {
|
|
20678
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/copy?";
|
|
20679
|
+
if (id === undefined || id === null)
|
|
20680
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20681
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20682
|
+
if (version !== undefined && version !== null)
|
|
20683
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
20684
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20685
|
+
const content_ = JSON.stringify(payload);
|
|
20686
|
+
let options_ = {
|
|
20687
|
+
body: content_,
|
|
20688
|
+
method: "POST",
|
|
20689
|
+
headers: {
|
|
20690
|
+
"Content-Type": "application/json",
|
|
20691
|
+
"Accept": "application/json"
|
|
20692
|
+
}
|
|
20693
|
+
};
|
|
20694
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20695
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20696
|
+
}).then((_response) => {
|
|
20697
|
+
return this.processCopyMaterialCertificateType(_response);
|
|
20698
|
+
});
|
|
20699
|
+
}
|
|
20700
|
+
processCopyMaterialCertificateType(response) {
|
|
20701
|
+
const status = response.status;
|
|
20702
|
+
let _headers = {};
|
|
20703
|
+
if (response.headers && response.headers.forEach) {
|
|
20704
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20705
|
+
}
|
|
20706
|
+
;
|
|
20707
|
+
if (status === 200) {
|
|
20708
|
+
return response.text().then((_responseText) => {
|
|
20709
|
+
let result200 = null;
|
|
20710
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20711
|
+
return result200;
|
|
20712
|
+
});
|
|
20713
|
+
}
|
|
20714
|
+
else if (status !== 200 && status !== 204) {
|
|
20715
|
+
return response.text().then((_responseText) => {
|
|
20716
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20717
|
+
});
|
|
20718
|
+
}
|
|
20719
|
+
return Promise.resolve(null);
|
|
20720
|
+
}
|
|
20721
|
+
createNewVersionForCertificateType(id, version) {
|
|
20722
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/new-version?";
|
|
20723
|
+
if (id === undefined || id === null)
|
|
20724
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20725
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20726
|
+
if (version !== undefined && version !== null)
|
|
20727
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
20728
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20729
|
+
let options_ = {
|
|
20730
|
+
method: "POST",
|
|
20731
|
+
headers: {
|
|
20732
|
+
"Accept": "application/json"
|
|
20733
|
+
}
|
|
20734
|
+
};
|
|
20735
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20736
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20737
|
+
}).then((_response) => {
|
|
20738
|
+
return this.processCreateNewVersionForCertificateType(_response);
|
|
20739
|
+
});
|
|
20740
|
+
}
|
|
20741
|
+
processCreateNewVersionForCertificateType(response) {
|
|
20742
|
+
const status = response.status;
|
|
20743
|
+
let _headers = {};
|
|
20744
|
+
if (response.headers && response.headers.forEach) {
|
|
20745
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20746
|
+
}
|
|
20747
|
+
;
|
|
20748
|
+
if (status === 200) {
|
|
20749
|
+
return response.text().then((_responseText) => {
|
|
20750
|
+
let result200 = null;
|
|
20751
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20752
|
+
return result200;
|
|
20753
|
+
});
|
|
20754
|
+
}
|
|
20755
|
+
else if (status !== 200 && status !== 204) {
|
|
20756
|
+
return response.text().then((_responseText) => {
|
|
20757
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20758
|
+
});
|
|
20759
|
+
}
|
|
20760
|
+
return Promise.resolve(null);
|
|
20761
|
+
}
|
|
20762
|
+
releaseMaterialCertificateType(id, version) {
|
|
20763
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/release?";
|
|
20764
|
+
if (id === undefined || id === null)
|
|
20765
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20766
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20767
|
+
if (version !== undefined && version !== null)
|
|
20768
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
20769
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20770
|
+
let options_ = {
|
|
20771
|
+
method: "POST",
|
|
20772
|
+
headers: {
|
|
20773
|
+
"Accept": "application/json"
|
|
20774
|
+
}
|
|
20775
|
+
};
|
|
20776
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20777
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20778
|
+
}).then((_response) => {
|
|
20779
|
+
return this.processReleaseMaterialCertificateType(_response);
|
|
20780
|
+
});
|
|
20781
|
+
}
|
|
20782
|
+
processReleaseMaterialCertificateType(response) {
|
|
20657
20783
|
const status = response.status;
|
|
20658
20784
|
let _headers = {};
|
|
20659
20785
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20675,14 +20801,14 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
20675
20801
|
return Promise.resolve(null);
|
|
20676
20802
|
}
|
|
20677
20803
|
}
|
|
20678
|
-
export class
|
|
20804
|
+
export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
20679
20805
|
constructor(configuration, baseUrl, http) {
|
|
20680
20806
|
super(configuration);
|
|
20681
20807
|
this.http = http ? http : window;
|
|
20682
20808
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20683
20809
|
}
|
|
20684
|
-
|
|
20685
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
20810
|
+
listSpecifications() {
|
|
20811
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/list";
|
|
20686
20812
|
url_ = url_.replace(/[?&]$/, "");
|
|
20687
20813
|
let options_ = {
|
|
20688
20814
|
method: "GET",
|
|
@@ -20693,10 +20819,10 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20693
20819
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20694
20820
|
return this.http.fetch(url_, transformedOptions_);
|
|
20695
20821
|
}).then((_response) => {
|
|
20696
|
-
return this.
|
|
20822
|
+
return this.processListSpecifications(_response);
|
|
20697
20823
|
});
|
|
20698
20824
|
}
|
|
20699
|
-
|
|
20825
|
+
processListSpecifications(response) {
|
|
20700
20826
|
const status = response.status;
|
|
20701
20827
|
let _headers = {};
|
|
20702
20828
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20717,8 +20843,8 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20717
20843
|
}
|
|
20718
20844
|
return Promise.resolve(null);
|
|
20719
20845
|
}
|
|
20720
|
-
|
|
20721
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
20846
|
+
getSpecification(id, version) {
|
|
20847
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
20722
20848
|
if (id === undefined || id === null)
|
|
20723
20849
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20724
20850
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -20734,10 +20860,10 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20734
20860
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20735
20861
|
return this.http.fetch(url_, transformedOptions_);
|
|
20736
20862
|
}).then((_response) => {
|
|
20737
|
-
return this.
|
|
20863
|
+
return this.processGetSpecification(_response);
|
|
20738
20864
|
});
|
|
20739
20865
|
}
|
|
20740
|
-
|
|
20866
|
+
processGetSpecification(response) {
|
|
20741
20867
|
const status = response.status;
|
|
20742
20868
|
let _headers = {};
|
|
20743
20869
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20758,15 +20884,15 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20758
20884
|
}
|
|
20759
20885
|
return Promise.resolve(null);
|
|
20760
20886
|
}
|
|
20761
|
-
|
|
20762
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
20887
|
+
updateSpecifications(id, version, dto) {
|
|
20888
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
20763
20889
|
if (id === undefined || id === null)
|
|
20764
20890
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20765
20891
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20766
20892
|
if (version !== undefined && version !== null)
|
|
20767
20893
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
20768
20894
|
url_ = url_.replace(/[?&]$/, "");
|
|
20769
|
-
const content_ = JSON.stringify(
|
|
20895
|
+
const content_ = JSON.stringify(dto);
|
|
20770
20896
|
let options_ = {
|
|
20771
20897
|
body: content_,
|
|
20772
20898
|
method: "PUT",
|
|
@@ -20778,10 +20904,10 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20778
20904
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20779
20905
|
return this.http.fetch(url_, transformedOptions_);
|
|
20780
20906
|
}).then((_response) => {
|
|
20781
|
-
return this.
|
|
20907
|
+
return this.processUpdateSpecifications(_response);
|
|
20782
20908
|
});
|
|
20783
20909
|
}
|
|
20784
|
-
|
|
20910
|
+
processUpdateSpecifications(response) {
|
|
20785
20911
|
const status = response.status;
|
|
20786
20912
|
let _headers = {};
|
|
20787
20913
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20803,7 +20929,7 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20803
20929
|
return Promise.resolve(null);
|
|
20804
20930
|
}
|
|
20805
20931
|
deleteMaterialCertificateTypes(id, version) {
|
|
20806
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
20932
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
20807
20933
|
if (id === undefined || id === null)
|
|
20808
20934
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20809
20935
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -20839,10 +20965,10 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20839
20965
|
}
|
|
20840
20966
|
return Promise.resolve(null);
|
|
20841
20967
|
}
|
|
20842
|
-
|
|
20843
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
20968
|
+
createSpecifications(createRequestDto) {
|
|
20969
|
+
let url_ = this.baseUrl + "/inspect/match/specifications";
|
|
20844
20970
|
url_ = url_.replace(/[?&]$/, "");
|
|
20845
|
-
const content_ = JSON.stringify(
|
|
20971
|
+
const content_ = JSON.stringify(createRequestDto);
|
|
20846
20972
|
let options_ = {
|
|
20847
20973
|
body: content_,
|
|
20848
20974
|
method: "POST",
|
|
@@ -20854,10 +20980,10 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20854
20980
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20855
20981
|
return this.http.fetch(url_, transformedOptions_);
|
|
20856
20982
|
}).then((_response) => {
|
|
20857
|
-
return this.
|
|
20983
|
+
return this.processCreateSpecifications(_response);
|
|
20858
20984
|
});
|
|
20859
20985
|
}
|
|
20860
|
-
|
|
20986
|
+
processCreateSpecifications(response) {
|
|
20861
20987
|
const status = response.status;
|
|
20862
20988
|
let _headers = {};
|
|
20863
20989
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20878,15 +21004,15 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20878
21004
|
}
|
|
20879
21005
|
return Promise.resolve(null);
|
|
20880
21006
|
}
|
|
20881
|
-
|
|
20882
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21007
|
+
copySpecification(id, version, copyDto) {
|
|
21008
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}/copy?";
|
|
20883
21009
|
if (id === undefined || id === null)
|
|
20884
21010
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20885
21011
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20886
21012
|
if (version !== undefined && version !== null)
|
|
20887
21013
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
20888
21014
|
url_ = url_.replace(/[?&]$/, "");
|
|
20889
|
-
const content_ = JSON.stringify(
|
|
21015
|
+
const content_ = JSON.stringify(copyDto);
|
|
20890
21016
|
let options_ = {
|
|
20891
21017
|
body: content_,
|
|
20892
21018
|
method: "POST",
|
|
@@ -20898,10 +21024,10 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20898
21024
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20899
21025
|
return this.http.fetch(url_, transformedOptions_);
|
|
20900
21026
|
}).then((_response) => {
|
|
20901
|
-
return this.
|
|
21027
|
+
return this.processCopySpecification(_response);
|
|
20902
21028
|
});
|
|
20903
21029
|
}
|
|
20904
|
-
|
|
21030
|
+
processCopySpecification(response) {
|
|
20905
21031
|
const status = response.status;
|
|
20906
21032
|
let _headers = {};
|
|
20907
21033
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20922,8 +21048,8 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20922
21048
|
}
|
|
20923
21049
|
return Promise.resolve(null);
|
|
20924
21050
|
}
|
|
20925
|
-
|
|
20926
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21051
|
+
createNewVersionForSpecification(id, version) {
|
|
21052
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}/new-version?";
|
|
20927
21053
|
if (id === undefined || id === null)
|
|
20928
21054
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20929
21055
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -20939,10 +21065,10 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20939
21065
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20940
21066
|
return this.http.fetch(url_, transformedOptions_);
|
|
20941
21067
|
}).then((_response) => {
|
|
20942
|
-
return this.
|
|
21068
|
+
return this.processCreateNewVersionForSpecification(_response);
|
|
20943
21069
|
});
|
|
20944
21070
|
}
|
|
20945
|
-
|
|
21071
|
+
processCreateNewVersionForSpecification(response) {
|
|
20946
21072
|
const status = response.status;
|
|
20947
21073
|
let _headers = {};
|
|
20948
21074
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20963,8 +21089,8 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20963
21089
|
}
|
|
20964
21090
|
return Promise.resolve(null);
|
|
20965
21091
|
}
|
|
20966
|
-
|
|
20967
|
-
let url_ = this.baseUrl + "/inspect/match/
|
|
21092
|
+
releaseSpecification(id, version) {
|
|
21093
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}/release?";
|
|
20968
21094
|
if (id === undefined || id === null)
|
|
20969
21095
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20970
21096
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -20980,10 +21106,10 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
20980
21106
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20981
21107
|
return this.http.fetch(url_, transformedOptions_);
|
|
20982
21108
|
}).then((_response) => {
|
|
20983
|
-
return this.
|
|
21109
|
+
return this.processReleaseSpecification(_response);
|
|
20984
21110
|
});
|
|
20985
21111
|
}
|
|
20986
|
-
|
|
21112
|
+
processReleaseSpecification(response) {
|
|
20987
21113
|
const status = response.status;
|
|
20988
21114
|
let _headers = {};
|
|
20989
21115
|
if (response.headers && response.headers.forEach) {
|