@ignos/api-client 20260723.192.1-alpha → 20260727.194.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 +213 -240
- package/lib/ignosportal-api.js +4 -383
- package/package.json +1 -1
- package/src/ignosportal-api.ts +232 -622
package/lib/ignosportal-api.js
CHANGED
|
@@ -20552,58 +20552,8 @@ export class MesOrMoveClient extends AuthorizedApiBase {
|
|
|
20552
20552
|
}
|
|
20553
20553
|
return Promise.resolve(null);
|
|
20554
20554
|
}
|
|
20555
|
-
|
|
20556
|
-
|
|
20557
|
-
constructor(configuration, baseUrl, http) {
|
|
20558
|
-
super(configuration);
|
|
20559
|
-
this.http = http ? http : window;
|
|
20560
|
-
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20561
|
-
}
|
|
20562
|
-
getPlan(resourceGroupId) {
|
|
20563
|
-
let url_ = this.baseUrl + "/mes/planner/plan?";
|
|
20564
|
-
if (resourceGroupId === null)
|
|
20565
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' cannot be null.");
|
|
20566
|
-
else if (resourceGroupId !== undefined)
|
|
20567
|
-
url_ += "resourceGroupId=" + encodeURIComponent("" + resourceGroupId) + "&";
|
|
20568
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
20569
|
-
let options_ = {
|
|
20570
|
-
method: "GET",
|
|
20571
|
-
headers: {
|
|
20572
|
-
"Accept": "application/json"
|
|
20573
|
-
}
|
|
20574
|
-
};
|
|
20575
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20576
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
20577
|
-
}).then((_response) => {
|
|
20578
|
-
return this.processGetPlan(_response);
|
|
20579
|
-
});
|
|
20580
|
-
}
|
|
20581
|
-
processGetPlan(response) {
|
|
20582
|
-
const status = response.status;
|
|
20583
|
-
let _headers = {};
|
|
20584
|
-
if (response.headers && response.headers.forEach) {
|
|
20585
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20586
|
-
}
|
|
20587
|
-
;
|
|
20588
|
-
if (status === 200) {
|
|
20589
|
-
return response.text().then((_responseText) => {
|
|
20590
|
-
let result200 = null;
|
|
20591
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20592
|
-
return result200;
|
|
20593
|
-
});
|
|
20594
|
-
}
|
|
20595
|
-
else if (status !== 200 && status !== 204) {
|
|
20596
|
-
return response.text().then((_responseText) => {
|
|
20597
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20598
|
-
});
|
|
20599
|
-
}
|
|
20600
|
-
return Promise.resolve(null);
|
|
20601
|
-
}
|
|
20602
|
-
publish(resourceGroupId, request) {
|
|
20603
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/publish";
|
|
20604
|
-
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20605
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20606
|
-
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20555
|
+
postListProductionOrders(request) {
|
|
20556
|
+
let url_ = this.baseUrl + "/mes/productionorders/list";
|
|
20607
20557
|
url_ = url_.replace(/[?&]$/, "");
|
|
20608
20558
|
const content_ = JSON.stringify(request);
|
|
20609
20559
|
let options_ = {
|
|
@@ -20617,339 +20567,10 @@ export class MesPlannerClient extends AuthorizedApiBase {
|
|
|
20617
20567
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20618
20568
|
return this.http.fetch(url_, transformedOptions_);
|
|
20619
20569
|
}).then((_response) => {
|
|
20620
|
-
return this.
|
|
20621
|
-
});
|
|
20622
|
-
}
|
|
20623
|
-
processPublish(response) {
|
|
20624
|
-
const status = response.status;
|
|
20625
|
-
let _headers = {};
|
|
20626
|
-
if (response.headers && response.headers.forEach) {
|
|
20627
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20628
|
-
}
|
|
20629
|
-
;
|
|
20630
|
-
if (status === 200) {
|
|
20631
|
-
return response.text().then((_responseText) => {
|
|
20632
|
-
let result200 = null;
|
|
20633
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20634
|
-
return result200;
|
|
20635
|
-
});
|
|
20636
|
-
}
|
|
20637
|
-
else if (status !== 200 && status !== 204) {
|
|
20638
|
-
return response.text().then((_responseText) => {
|
|
20639
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20640
|
-
});
|
|
20641
|
-
}
|
|
20642
|
-
return Promise.resolve(null);
|
|
20643
|
-
}
|
|
20644
|
-
updateSequence(resourceGroupId, sequence) {
|
|
20645
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/sequence";
|
|
20646
|
-
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20647
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20648
|
-
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20649
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
20650
|
-
const content_ = JSON.stringify(sequence);
|
|
20651
|
-
let options_ = {
|
|
20652
|
-
body: content_,
|
|
20653
|
-
method: "PUT",
|
|
20654
|
-
headers: {
|
|
20655
|
-
"Content-Type": "application/json",
|
|
20656
|
-
"Accept": "application/json"
|
|
20657
|
-
}
|
|
20658
|
-
};
|
|
20659
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20660
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
20661
|
-
}).then((_response) => {
|
|
20662
|
-
return this.processUpdateSequence(_response);
|
|
20663
|
-
});
|
|
20664
|
-
}
|
|
20665
|
-
processUpdateSequence(response) {
|
|
20666
|
-
const status = response.status;
|
|
20667
|
-
let _headers = {};
|
|
20668
|
-
if (response.headers && response.headers.forEach) {
|
|
20669
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20670
|
-
}
|
|
20671
|
-
;
|
|
20672
|
-
if (status === 200) {
|
|
20673
|
-
return response.text().then((_responseText) => {
|
|
20674
|
-
let result200 = null;
|
|
20675
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20676
|
-
return result200;
|
|
20677
|
-
});
|
|
20678
|
-
}
|
|
20679
|
-
else if (status !== 200 && status !== 204) {
|
|
20680
|
-
return response.text().then((_responseText) => {
|
|
20681
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20682
|
-
});
|
|
20683
|
-
}
|
|
20684
|
-
return Promise.resolve(null);
|
|
20685
|
-
}
|
|
20686
|
-
reset(resourceGroupId) {
|
|
20687
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/reset";
|
|
20688
|
-
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20689
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20690
|
-
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20691
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
20692
|
-
let options_ = {
|
|
20693
|
-
method: "POST",
|
|
20694
|
-
headers: {
|
|
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.processReset(_response);
|
|
20702
|
-
});
|
|
20703
|
-
}
|
|
20704
|
-
processReset(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
|
-
saveDraft(resourceGroupId, sequence) {
|
|
20726
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
|
|
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
|
-
const content_ = JSON.stringify(sequence);
|
|
20732
|
-
let options_ = {
|
|
20733
|
-
body: content_,
|
|
20734
|
-
method: "POST",
|
|
20735
|
-
headers: {
|
|
20736
|
-
"Content-Type": "application/json",
|
|
20737
|
-
"Accept": "application/json"
|
|
20738
|
-
}
|
|
20739
|
-
};
|
|
20740
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20741
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
20742
|
-
}).then((_response) => {
|
|
20743
|
-
return this.processSaveDraft(_response);
|
|
20744
|
-
});
|
|
20745
|
-
}
|
|
20746
|
-
processSaveDraft(response) {
|
|
20747
|
-
const status = response.status;
|
|
20748
|
-
let _headers = {};
|
|
20749
|
-
if (response.headers && response.headers.forEach) {
|
|
20750
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20751
|
-
}
|
|
20752
|
-
;
|
|
20753
|
-
if (status === 200) {
|
|
20754
|
-
return response.text().then((_responseText) => {
|
|
20755
|
-
let result200 = null;
|
|
20756
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20757
|
-
return result200;
|
|
20758
|
-
});
|
|
20759
|
-
}
|
|
20760
|
-
else if (status !== 200 && status !== 204) {
|
|
20761
|
-
return response.text().then((_responseText) => {
|
|
20762
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20763
|
-
});
|
|
20764
|
-
}
|
|
20765
|
-
return Promise.resolve(null);
|
|
20766
|
-
}
|
|
20767
|
-
discardDraft(resourceGroupId) {
|
|
20768
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
|
|
20769
|
-
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20770
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20771
|
-
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20772
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
20773
|
-
let options_ = {
|
|
20774
|
-
method: "DELETE",
|
|
20775
|
-
headers: {
|
|
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.processDiscardDraft(_response);
|
|
20783
|
-
});
|
|
20784
|
-
}
|
|
20785
|
-
processDiscardDraft(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
|
-
getCapacity(resourceGroupId, from, to) {
|
|
20807
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/capacity?";
|
|
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
|
-
if (from === null)
|
|
20812
|
-
throw new globalThis.Error("The parameter 'from' cannot be null.");
|
|
20813
|
-
else if (from !== undefined)
|
|
20814
|
-
url_ += "from=" + encodeURIComponent(from ? "" + from.toISOString() : "") + "&";
|
|
20815
|
-
if (to === null)
|
|
20816
|
-
throw new globalThis.Error("The parameter 'to' cannot be null.");
|
|
20817
|
-
else if (to !== undefined)
|
|
20818
|
-
url_ += "to=" + encodeURIComponent(to ? "" + to.toISOString() : "") + "&";
|
|
20819
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
20820
|
-
let options_ = {
|
|
20821
|
-
method: "GET",
|
|
20822
|
-
headers: {
|
|
20823
|
-
"Accept": "application/json"
|
|
20824
|
-
}
|
|
20825
|
-
};
|
|
20826
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20827
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
20828
|
-
}).then((_response) => {
|
|
20829
|
-
return this.processGetCapacity(_response);
|
|
20830
|
-
});
|
|
20831
|
-
}
|
|
20832
|
-
processGetCapacity(response) {
|
|
20833
|
-
const status = response.status;
|
|
20834
|
-
let _headers = {};
|
|
20835
|
-
if (response.headers && response.headers.forEach) {
|
|
20836
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20837
|
-
}
|
|
20838
|
-
;
|
|
20839
|
-
if (status === 200) {
|
|
20840
|
-
return response.text().then((_responseText) => {
|
|
20841
|
-
let result200 = null;
|
|
20842
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20843
|
-
return result200;
|
|
20844
|
-
});
|
|
20845
|
-
}
|
|
20846
|
-
else if (status !== 200 && status !== 204) {
|
|
20847
|
-
return response.text().then((_responseText) => {
|
|
20848
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20849
|
-
});
|
|
20850
|
-
}
|
|
20851
|
-
return Promise.resolve(null);
|
|
20852
|
-
}
|
|
20853
|
-
getVersions(resourceGroupId) {
|
|
20854
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions";
|
|
20855
|
-
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20856
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20857
|
-
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
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.processGetVersions(_response);
|
|
20869
|
-
});
|
|
20870
|
-
}
|
|
20871
|
-
processGetVersions(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
|
-
getVersion(resourceGroupId, eventId) {
|
|
20893
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions/{eventId}";
|
|
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
|
-
if (eventId === undefined || eventId === null)
|
|
20898
|
-
throw new globalThis.Error("The parameter 'eventId' must be defined.");
|
|
20899
|
-
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
20900
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
20901
|
-
let options_ = {
|
|
20902
|
-
method: "GET",
|
|
20903
|
-
headers: {
|
|
20904
|
-
"Accept": "application/json"
|
|
20905
|
-
}
|
|
20906
|
-
};
|
|
20907
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20908
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
20909
|
-
}).then((_response) => {
|
|
20910
|
-
return this.processGetVersion(_response);
|
|
20911
|
-
});
|
|
20912
|
-
}
|
|
20913
|
-
processGetVersion(response) {
|
|
20914
|
-
const status = response.status;
|
|
20915
|
-
let _headers = {};
|
|
20916
|
-
if (response.headers && response.headers.forEach) {
|
|
20917
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20918
|
-
}
|
|
20919
|
-
;
|
|
20920
|
-
if (status === 200) {
|
|
20921
|
-
return response.text().then((_responseText) => {
|
|
20922
|
-
let result200 = null;
|
|
20923
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20924
|
-
return result200;
|
|
20925
|
-
});
|
|
20926
|
-
}
|
|
20927
|
-
else if (status !== 200 && status !== 204) {
|
|
20928
|
-
return response.text().then((_responseText) => {
|
|
20929
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20930
|
-
});
|
|
20931
|
-
}
|
|
20932
|
-
return Promise.resolve(null);
|
|
20933
|
-
}
|
|
20934
|
-
setProgramStatus(command) {
|
|
20935
|
-
let url_ = this.baseUrl + "/mes/planner/operations/program-status";
|
|
20936
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
20937
|
-
const content_ = JSON.stringify(command);
|
|
20938
|
-
let options_ = {
|
|
20939
|
-
body: content_,
|
|
20940
|
-
method: "PUT",
|
|
20941
|
-
headers: {
|
|
20942
|
-
"Content-Type": "application/json",
|
|
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.processSetProgramStatus(_response);
|
|
20570
|
+
return this.processPostListProductionOrders(_response);
|
|
20950
20571
|
});
|
|
20951
20572
|
}
|
|
20952
|
-
|
|
20573
|
+
processPostListProductionOrders(response) {
|
|
20953
20574
|
const status = response.status;
|
|
20954
20575
|
let _headers = {};
|
|
20955
20576
|
if (response.headers && response.headers.forEach) {
|