@ignos/api-client 20260727.195.1-alpha → 20260728.197.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 +299 -126
- package/lib/ignosportal-api.js +418 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +721 -135
package/lib/ignosportal-api.js
CHANGED
|
@@ -20592,6 +20592,424 @@ export class MesOrMoveClient extends AuthorizedApiBase {
|
|
|
20592
20592
|
return Promise.resolve(null);
|
|
20593
20593
|
}
|
|
20594
20594
|
}
|
|
20595
|
+
export class MesPlannerClient extends AuthorizedApiBase {
|
|
20596
|
+
constructor(configuration, baseUrl, http) {
|
|
20597
|
+
super(configuration);
|
|
20598
|
+
this.http = http ? http : window;
|
|
20599
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20600
|
+
}
|
|
20601
|
+
getPlan(resourceGroupId) {
|
|
20602
|
+
let url_ = this.baseUrl + "/mes/planner/plan?";
|
|
20603
|
+
if (resourceGroupId === null)
|
|
20604
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' cannot be null.");
|
|
20605
|
+
else if (resourceGroupId !== undefined)
|
|
20606
|
+
url_ += "resourceGroupId=" + encodeURIComponent("" + resourceGroupId) + "&";
|
|
20607
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20608
|
+
let options_ = {
|
|
20609
|
+
method: "GET",
|
|
20610
|
+
headers: {
|
|
20611
|
+
"Accept": "application/json"
|
|
20612
|
+
}
|
|
20613
|
+
};
|
|
20614
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20615
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20616
|
+
}).then((_response) => {
|
|
20617
|
+
return this.processGetPlan(_response);
|
|
20618
|
+
});
|
|
20619
|
+
}
|
|
20620
|
+
processGetPlan(response) {
|
|
20621
|
+
const status = response.status;
|
|
20622
|
+
let _headers = {};
|
|
20623
|
+
if (response.headers && response.headers.forEach) {
|
|
20624
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20625
|
+
}
|
|
20626
|
+
;
|
|
20627
|
+
if (status === 200) {
|
|
20628
|
+
return response.text().then((_responseText) => {
|
|
20629
|
+
let result200 = null;
|
|
20630
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20631
|
+
return result200;
|
|
20632
|
+
});
|
|
20633
|
+
}
|
|
20634
|
+
else if (status !== 200 && status !== 204) {
|
|
20635
|
+
return response.text().then((_responseText) => {
|
|
20636
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20637
|
+
});
|
|
20638
|
+
}
|
|
20639
|
+
return Promise.resolve(null);
|
|
20640
|
+
}
|
|
20641
|
+
publish(resourceGroupId, request) {
|
|
20642
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/publish";
|
|
20643
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20644
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20645
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20646
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20647
|
+
const content_ = JSON.stringify(request);
|
|
20648
|
+
let options_ = {
|
|
20649
|
+
body: content_,
|
|
20650
|
+
method: "POST",
|
|
20651
|
+
headers: {
|
|
20652
|
+
"Content-Type": "application/json",
|
|
20653
|
+
"Accept": "application/json"
|
|
20654
|
+
}
|
|
20655
|
+
};
|
|
20656
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20657
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20658
|
+
}).then((_response) => {
|
|
20659
|
+
return this.processPublish(_response);
|
|
20660
|
+
});
|
|
20661
|
+
}
|
|
20662
|
+
processPublish(response) {
|
|
20663
|
+
const status = response.status;
|
|
20664
|
+
let _headers = {};
|
|
20665
|
+
if (response.headers && response.headers.forEach) {
|
|
20666
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20667
|
+
}
|
|
20668
|
+
;
|
|
20669
|
+
if (status === 200) {
|
|
20670
|
+
return response.text().then((_responseText) => {
|
|
20671
|
+
let result200 = null;
|
|
20672
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20673
|
+
return result200;
|
|
20674
|
+
});
|
|
20675
|
+
}
|
|
20676
|
+
else if (status !== 200 && status !== 204) {
|
|
20677
|
+
return response.text().then((_responseText) => {
|
|
20678
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20679
|
+
});
|
|
20680
|
+
}
|
|
20681
|
+
return Promise.resolve(null);
|
|
20682
|
+
}
|
|
20683
|
+
updateSequence(resourceGroupId, sequence) {
|
|
20684
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/sequence";
|
|
20685
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20686
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20687
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20688
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20689
|
+
const content_ = JSON.stringify(sequence);
|
|
20690
|
+
let options_ = {
|
|
20691
|
+
body: content_,
|
|
20692
|
+
method: "PUT",
|
|
20693
|
+
headers: {
|
|
20694
|
+
"Content-Type": "application/json",
|
|
20695
|
+
"Accept": "application/json"
|
|
20696
|
+
}
|
|
20697
|
+
};
|
|
20698
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20699
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20700
|
+
}).then((_response) => {
|
|
20701
|
+
return this.processUpdateSequence(_response);
|
|
20702
|
+
});
|
|
20703
|
+
}
|
|
20704
|
+
processUpdateSequence(response) {
|
|
20705
|
+
const status = response.status;
|
|
20706
|
+
let _headers = {};
|
|
20707
|
+
if (response.headers && response.headers.forEach) {
|
|
20708
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20709
|
+
}
|
|
20710
|
+
;
|
|
20711
|
+
if (status === 200) {
|
|
20712
|
+
return response.text().then((_responseText) => {
|
|
20713
|
+
let result200 = null;
|
|
20714
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20715
|
+
return result200;
|
|
20716
|
+
});
|
|
20717
|
+
}
|
|
20718
|
+
else if (status !== 200 && status !== 204) {
|
|
20719
|
+
return response.text().then((_responseText) => {
|
|
20720
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20721
|
+
});
|
|
20722
|
+
}
|
|
20723
|
+
return Promise.resolve(null);
|
|
20724
|
+
}
|
|
20725
|
+
reset(resourceGroupId) {
|
|
20726
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/reset";
|
|
20727
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20728
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20729
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20730
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20731
|
+
let options_ = {
|
|
20732
|
+
method: "POST",
|
|
20733
|
+
headers: {
|
|
20734
|
+
"Accept": "application/json"
|
|
20735
|
+
}
|
|
20736
|
+
};
|
|
20737
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20738
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20739
|
+
}).then((_response) => {
|
|
20740
|
+
return this.processReset(_response);
|
|
20741
|
+
});
|
|
20742
|
+
}
|
|
20743
|
+
processReset(response) {
|
|
20744
|
+
const status = response.status;
|
|
20745
|
+
let _headers = {};
|
|
20746
|
+
if (response.headers && response.headers.forEach) {
|
|
20747
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20748
|
+
}
|
|
20749
|
+
;
|
|
20750
|
+
if (status === 200) {
|
|
20751
|
+
return response.text().then((_responseText) => {
|
|
20752
|
+
let result200 = null;
|
|
20753
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20754
|
+
return result200;
|
|
20755
|
+
});
|
|
20756
|
+
}
|
|
20757
|
+
else if (status !== 200 && status !== 204) {
|
|
20758
|
+
return response.text().then((_responseText) => {
|
|
20759
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20760
|
+
});
|
|
20761
|
+
}
|
|
20762
|
+
return Promise.resolve(null);
|
|
20763
|
+
}
|
|
20764
|
+
saveDraft(resourceGroupId, sequence) {
|
|
20765
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
|
|
20766
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20767
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20768
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20769
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20770
|
+
const content_ = JSON.stringify(sequence);
|
|
20771
|
+
let options_ = {
|
|
20772
|
+
body: content_,
|
|
20773
|
+
method: "POST",
|
|
20774
|
+
headers: {
|
|
20775
|
+
"Content-Type": "application/json",
|
|
20776
|
+
"Accept": "application/json"
|
|
20777
|
+
}
|
|
20778
|
+
};
|
|
20779
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20780
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20781
|
+
}).then((_response) => {
|
|
20782
|
+
return this.processSaveDraft(_response);
|
|
20783
|
+
});
|
|
20784
|
+
}
|
|
20785
|
+
processSaveDraft(response) {
|
|
20786
|
+
const status = response.status;
|
|
20787
|
+
let _headers = {};
|
|
20788
|
+
if (response.headers && response.headers.forEach) {
|
|
20789
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20790
|
+
}
|
|
20791
|
+
;
|
|
20792
|
+
if (status === 200) {
|
|
20793
|
+
return response.text().then((_responseText) => {
|
|
20794
|
+
let result200 = null;
|
|
20795
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20796
|
+
return result200;
|
|
20797
|
+
});
|
|
20798
|
+
}
|
|
20799
|
+
else if (status !== 200 && status !== 204) {
|
|
20800
|
+
return response.text().then((_responseText) => {
|
|
20801
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20802
|
+
});
|
|
20803
|
+
}
|
|
20804
|
+
return Promise.resolve(null);
|
|
20805
|
+
}
|
|
20806
|
+
discardDraft(resourceGroupId) {
|
|
20807
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
|
|
20808
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20809
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20810
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20811
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20812
|
+
let options_ = {
|
|
20813
|
+
method: "DELETE",
|
|
20814
|
+
headers: {
|
|
20815
|
+
"Accept": "application/json"
|
|
20816
|
+
}
|
|
20817
|
+
};
|
|
20818
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20819
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20820
|
+
}).then((_response) => {
|
|
20821
|
+
return this.processDiscardDraft(_response);
|
|
20822
|
+
});
|
|
20823
|
+
}
|
|
20824
|
+
processDiscardDraft(response) {
|
|
20825
|
+
const status = response.status;
|
|
20826
|
+
let _headers = {};
|
|
20827
|
+
if (response.headers && response.headers.forEach) {
|
|
20828
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20829
|
+
}
|
|
20830
|
+
;
|
|
20831
|
+
if (status === 200) {
|
|
20832
|
+
return response.text().then((_responseText) => {
|
|
20833
|
+
let result200 = null;
|
|
20834
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20835
|
+
return result200;
|
|
20836
|
+
});
|
|
20837
|
+
}
|
|
20838
|
+
else if (status !== 200 && status !== 204) {
|
|
20839
|
+
return response.text().then((_responseText) => {
|
|
20840
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20841
|
+
});
|
|
20842
|
+
}
|
|
20843
|
+
return Promise.resolve(null);
|
|
20844
|
+
}
|
|
20845
|
+
getCapacity(resourceGroupId, from, to) {
|
|
20846
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/capacity?";
|
|
20847
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20848
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20849
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20850
|
+
if (from === null)
|
|
20851
|
+
throw new globalThis.Error("The parameter 'from' cannot be null.");
|
|
20852
|
+
else if (from !== undefined)
|
|
20853
|
+
url_ += "from=" + encodeURIComponent(from ? "" + from.toISOString() : "") + "&";
|
|
20854
|
+
if (to === null)
|
|
20855
|
+
throw new globalThis.Error("The parameter 'to' cannot be null.");
|
|
20856
|
+
else if (to !== undefined)
|
|
20857
|
+
url_ += "to=" + encodeURIComponent(to ? "" + to.toISOString() : "") + "&";
|
|
20858
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20859
|
+
let options_ = {
|
|
20860
|
+
method: "GET",
|
|
20861
|
+
headers: {
|
|
20862
|
+
"Accept": "application/json"
|
|
20863
|
+
}
|
|
20864
|
+
};
|
|
20865
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20866
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20867
|
+
}).then((_response) => {
|
|
20868
|
+
return this.processGetCapacity(_response);
|
|
20869
|
+
});
|
|
20870
|
+
}
|
|
20871
|
+
processGetCapacity(response) {
|
|
20872
|
+
const status = response.status;
|
|
20873
|
+
let _headers = {};
|
|
20874
|
+
if (response.headers && response.headers.forEach) {
|
|
20875
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20876
|
+
}
|
|
20877
|
+
;
|
|
20878
|
+
if (status === 200) {
|
|
20879
|
+
return response.text().then((_responseText) => {
|
|
20880
|
+
let result200 = null;
|
|
20881
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20882
|
+
return result200;
|
|
20883
|
+
});
|
|
20884
|
+
}
|
|
20885
|
+
else if (status !== 200 && status !== 204) {
|
|
20886
|
+
return response.text().then((_responseText) => {
|
|
20887
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20888
|
+
});
|
|
20889
|
+
}
|
|
20890
|
+
return Promise.resolve(null);
|
|
20891
|
+
}
|
|
20892
|
+
getVersions(resourceGroupId) {
|
|
20893
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions";
|
|
20894
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20895
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20896
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20897
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20898
|
+
let options_ = {
|
|
20899
|
+
method: "GET",
|
|
20900
|
+
headers: {
|
|
20901
|
+
"Accept": "application/json"
|
|
20902
|
+
}
|
|
20903
|
+
};
|
|
20904
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20905
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20906
|
+
}).then((_response) => {
|
|
20907
|
+
return this.processGetVersions(_response);
|
|
20908
|
+
});
|
|
20909
|
+
}
|
|
20910
|
+
processGetVersions(response) {
|
|
20911
|
+
const status = response.status;
|
|
20912
|
+
let _headers = {};
|
|
20913
|
+
if (response.headers && response.headers.forEach) {
|
|
20914
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20915
|
+
}
|
|
20916
|
+
;
|
|
20917
|
+
if (status === 200) {
|
|
20918
|
+
return response.text().then((_responseText) => {
|
|
20919
|
+
let result200 = null;
|
|
20920
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20921
|
+
return result200;
|
|
20922
|
+
});
|
|
20923
|
+
}
|
|
20924
|
+
else if (status !== 200 && status !== 204) {
|
|
20925
|
+
return response.text().then((_responseText) => {
|
|
20926
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20927
|
+
});
|
|
20928
|
+
}
|
|
20929
|
+
return Promise.resolve(null);
|
|
20930
|
+
}
|
|
20931
|
+
getVersion(resourceGroupId, eventId) {
|
|
20932
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions/{eventId}";
|
|
20933
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20934
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20935
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20936
|
+
if (eventId === undefined || eventId === null)
|
|
20937
|
+
throw new globalThis.Error("The parameter 'eventId' must be defined.");
|
|
20938
|
+
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
20939
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20940
|
+
let options_ = {
|
|
20941
|
+
method: "GET",
|
|
20942
|
+
headers: {
|
|
20943
|
+
"Accept": "application/json"
|
|
20944
|
+
}
|
|
20945
|
+
};
|
|
20946
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20947
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20948
|
+
}).then((_response) => {
|
|
20949
|
+
return this.processGetVersion(_response);
|
|
20950
|
+
});
|
|
20951
|
+
}
|
|
20952
|
+
processGetVersion(response) {
|
|
20953
|
+
const status = response.status;
|
|
20954
|
+
let _headers = {};
|
|
20955
|
+
if (response.headers && response.headers.forEach) {
|
|
20956
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20957
|
+
}
|
|
20958
|
+
;
|
|
20959
|
+
if (status === 200) {
|
|
20960
|
+
return response.text().then((_responseText) => {
|
|
20961
|
+
let result200 = null;
|
|
20962
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20963
|
+
return result200;
|
|
20964
|
+
});
|
|
20965
|
+
}
|
|
20966
|
+
else if (status !== 200 && status !== 204) {
|
|
20967
|
+
return response.text().then((_responseText) => {
|
|
20968
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20969
|
+
});
|
|
20970
|
+
}
|
|
20971
|
+
return Promise.resolve(null);
|
|
20972
|
+
}
|
|
20973
|
+
setProgramStatus(command) {
|
|
20974
|
+
let url_ = this.baseUrl + "/mes/planner/operations/program-status";
|
|
20975
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20976
|
+
const content_ = JSON.stringify(command);
|
|
20977
|
+
let options_ = {
|
|
20978
|
+
body: content_,
|
|
20979
|
+
method: "PUT",
|
|
20980
|
+
headers: {
|
|
20981
|
+
"Content-Type": "application/json",
|
|
20982
|
+
"Accept": "application/json"
|
|
20983
|
+
}
|
|
20984
|
+
};
|
|
20985
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20986
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20987
|
+
}).then((_response) => {
|
|
20988
|
+
return this.processSetProgramStatus(_response);
|
|
20989
|
+
});
|
|
20990
|
+
}
|
|
20991
|
+
processSetProgramStatus(response) {
|
|
20992
|
+
const status = response.status;
|
|
20993
|
+
let _headers = {};
|
|
20994
|
+
if (response.headers && response.headers.forEach) {
|
|
20995
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20996
|
+
}
|
|
20997
|
+
;
|
|
20998
|
+
if (status === 200) {
|
|
20999
|
+
return response.text().then((_responseText) => {
|
|
21000
|
+
let result200 = null;
|
|
21001
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21002
|
+
return result200;
|
|
21003
|
+
});
|
|
21004
|
+
}
|
|
21005
|
+
else if (status !== 200 && status !== 204) {
|
|
21006
|
+
return response.text().then((_responseText) => {
|
|
21007
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21008
|
+
});
|
|
21009
|
+
}
|
|
21010
|
+
return Promise.resolve(null);
|
|
21011
|
+
}
|
|
21012
|
+
}
|
|
20595
21013
|
export class MesProductionOrderAttachmentClient extends AuthorizedApiBase {
|
|
20596
21014
|
constructor(configuration, baseUrl, http) {
|
|
20597
21015
|
super(configuration);
|