@ignos/api-client 20250107.0.10915 → 20250114.0.10945
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 +174 -0
- package/lib/ignosportal-api.js +595 -1
- package/package.json +1 -1
- package/src/ignosportal-api.ts +760 -1
package/lib/ignosportal-api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//----------------------
|
|
2
2
|
// <auto-generated>
|
|
3
|
-
// Generated using the NSwag toolchain v14.
|
|
3
|
+
// Generated using the NSwag toolchain v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
4
4
|
// </auto-generated>
|
|
5
5
|
//----------------------
|
|
6
6
|
/* tslint:disable */
|
|
@@ -5529,6 +5529,224 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
|
5529
5529
|
}
|
|
5530
5530
|
return Promise.resolve(null);
|
|
5531
5531
|
}
|
|
5532
|
+
createReport(request) {
|
|
5533
|
+
let url_ = this.baseUrl + "/downtimereasons/report";
|
|
5534
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5535
|
+
const content_ = JSON.stringify(request);
|
|
5536
|
+
let options_ = {
|
|
5537
|
+
body: content_,
|
|
5538
|
+
method: "POST",
|
|
5539
|
+
headers: {
|
|
5540
|
+
"Content-Type": "application/json",
|
|
5541
|
+
"Accept": "application/json"
|
|
5542
|
+
}
|
|
5543
|
+
};
|
|
5544
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5545
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5546
|
+
}).then((_response) => {
|
|
5547
|
+
return this.processCreateReport(_response);
|
|
5548
|
+
});
|
|
5549
|
+
}
|
|
5550
|
+
processCreateReport(response) {
|
|
5551
|
+
const status = response.status;
|
|
5552
|
+
let _headers = {};
|
|
5553
|
+
if (response.headers && response.headers.forEach) {
|
|
5554
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5555
|
+
}
|
|
5556
|
+
;
|
|
5557
|
+
if (status === 200) {
|
|
5558
|
+
return response.text().then((_responseText) => {
|
|
5559
|
+
let result200 = null;
|
|
5560
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5561
|
+
result200 = DowntimeReasonsReportDto.fromJS(resultData200);
|
|
5562
|
+
return result200;
|
|
5563
|
+
});
|
|
5564
|
+
}
|
|
5565
|
+
else if (status !== 200 && status !== 204) {
|
|
5566
|
+
return response.text().then((_responseText) => {
|
|
5567
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5568
|
+
});
|
|
5569
|
+
}
|
|
5570
|
+
return Promise.resolve(null);
|
|
5571
|
+
}
|
|
5572
|
+
}
|
|
5573
|
+
export class KpiAdminClient extends AuthorizedApiBase {
|
|
5574
|
+
constructor(configuration, baseUrl, http) {
|
|
5575
|
+
super(configuration);
|
|
5576
|
+
this.jsonParseReviver = undefined;
|
|
5577
|
+
this.http = http ? http : window;
|
|
5578
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
5579
|
+
}
|
|
5580
|
+
getMachineCapacityAdmin() {
|
|
5581
|
+
let url_ = this.baseUrl + "/kpiadmin/capacity";
|
|
5582
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5583
|
+
let options_ = {
|
|
5584
|
+
method: "GET",
|
|
5585
|
+
headers: {
|
|
5586
|
+
"Accept": "application/json"
|
|
5587
|
+
}
|
|
5588
|
+
};
|
|
5589
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5590
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5591
|
+
}).then((_response) => {
|
|
5592
|
+
return this.processGetMachineCapacityAdmin(_response);
|
|
5593
|
+
});
|
|
5594
|
+
}
|
|
5595
|
+
processGetMachineCapacityAdmin(response) {
|
|
5596
|
+
const status = response.status;
|
|
5597
|
+
let _headers = {};
|
|
5598
|
+
if (response.headers && response.headers.forEach) {
|
|
5599
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5600
|
+
}
|
|
5601
|
+
;
|
|
5602
|
+
if (status === 200) {
|
|
5603
|
+
return response.text().then((_responseText) => {
|
|
5604
|
+
let result200 = null;
|
|
5605
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5606
|
+
if (Array.isArray(resultData200)) {
|
|
5607
|
+
result200 = [];
|
|
5608
|
+
for (let item of resultData200)
|
|
5609
|
+
result200.push(MachineGroupCapacityDto.fromJS(item));
|
|
5610
|
+
}
|
|
5611
|
+
return result200;
|
|
5612
|
+
});
|
|
5613
|
+
}
|
|
5614
|
+
else if (status !== 200 && status !== 204) {
|
|
5615
|
+
return response.text().then((_responseText) => {
|
|
5616
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5617
|
+
});
|
|
5618
|
+
}
|
|
5619
|
+
return Promise.resolve(null);
|
|
5620
|
+
}
|
|
5621
|
+
updateMachineCapacityAdmin(request) {
|
|
5622
|
+
let url_ = this.baseUrl + "/kpiadmin/capacity";
|
|
5623
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5624
|
+
const content_ = JSON.stringify(request);
|
|
5625
|
+
let options_ = {
|
|
5626
|
+
body: content_,
|
|
5627
|
+
method: "PUT",
|
|
5628
|
+
headers: {
|
|
5629
|
+
"Content-Type": "application/json",
|
|
5630
|
+
"Accept": "application/json"
|
|
5631
|
+
}
|
|
5632
|
+
};
|
|
5633
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5634
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5635
|
+
}).then((_response) => {
|
|
5636
|
+
return this.processUpdateMachineCapacityAdmin(_response);
|
|
5637
|
+
});
|
|
5638
|
+
}
|
|
5639
|
+
processUpdateMachineCapacityAdmin(response) {
|
|
5640
|
+
const status = response.status;
|
|
5641
|
+
let _headers = {};
|
|
5642
|
+
if (response.headers && response.headers.forEach) {
|
|
5643
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5644
|
+
}
|
|
5645
|
+
;
|
|
5646
|
+
if (status === 200) {
|
|
5647
|
+
return response.text().then((_responseText) => {
|
|
5648
|
+
let result200 = null;
|
|
5649
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5650
|
+
result200 = MachineCapacityDto.fromJS(resultData200);
|
|
5651
|
+
return result200;
|
|
5652
|
+
});
|
|
5653
|
+
}
|
|
5654
|
+
else if (status !== 200 && status !== 204) {
|
|
5655
|
+
return response.text().then((_responseText) => {
|
|
5656
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5657
|
+
});
|
|
5658
|
+
}
|
|
5659
|
+
return Promise.resolve(null);
|
|
5660
|
+
}
|
|
5661
|
+
getCalenderCapacityAdmin(startDate, endDate) {
|
|
5662
|
+
let url_ = this.baseUrl + "/kpiadmin/calender?";
|
|
5663
|
+
if (startDate === null)
|
|
5664
|
+
throw new Error("The parameter 'startDate' cannot be null.");
|
|
5665
|
+
else if (startDate !== undefined)
|
|
5666
|
+
url_ += "startDate=" + encodeURIComponent(startDate ? "" + startDate.toISOString() : "") + "&";
|
|
5667
|
+
if (endDate === null)
|
|
5668
|
+
throw new Error("The parameter 'endDate' cannot be null.");
|
|
5669
|
+
else if (endDate !== undefined)
|
|
5670
|
+
url_ += "endDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
|
|
5671
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5672
|
+
let options_ = {
|
|
5673
|
+
method: "GET",
|
|
5674
|
+
headers: {
|
|
5675
|
+
"Accept": "application/json"
|
|
5676
|
+
}
|
|
5677
|
+
};
|
|
5678
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5679
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5680
|
+
}).then((_response) => {
|
|
5681
|
+
return this.processGetCalenderCapacityAdmin(_response);
|
|
5682
|
+
});
|
|
5683
|
+
}
|
|
5684
|
+
processGetCalenderCapacityAdmin(response) {
|
|
5685
|
+
const status = response.status;
|
|
5686
|
+
let _headers = {};
|
|
5687
|
+
if (response.headers && response.headers.forEach) {
|
|
5688
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5689
|
+
}
|
|
5690
|
+
;
|
|
5691
|
+
if (status === 200) {
|
|
5692
|
+
return response.text().then((_responseText) => {
|
|
5693
|
+
let result200 = null;
|
|
5694
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5695
|
+
if (Array.isArray(resultData200)) {
|
|
5696
|
+
result200 = [];
|
|
5697
|
+
for (let item of resultData200)
|
|
5698
|
+
result200.push(CalenderCapacityDto.fromJS(item));
|
|
5699
|
+
}
|
|
5700
|
+
return result200;
|
|
5701
|
+
});
|
|
5702
|
+
}
|
|
5703
|
+
else if (status !== 200 && status !== 204) {
|
|
5704
|
+
return response.text().then((_responseText) => {
|
|
5705
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5706
|
+
});
|
|
5707
|
+
}
|
|
5708
|
+
return Promise.resolve(null);
|
|
5709
|
+
}
|
|
5710
|
+
updateCalenderCapacityAdmin(request) {
|
|
5711
|
+
let url_ = this.baseUrl + "/kpiadmin/calender";
|
|
5712
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5713
|
+
const content_ = JSON.stringify(request);
|
|
5714
|
+
let options_ = {
|
|
5715
|
+
body: content_,
|
|
5716
|
+
method: "PUT",
|
|
5717
|
+
headers: {
|
|
5718
|
+
"Content-Type": "application/json",
|
|
5719
|
+
"Accept": "application/json"
|
|
5720
|
+
}
|
|
5721
|
+
};
|
|
5722
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5723
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5724
|
+
}).then((_response) => {
|
|
5725
|
+
return this.processUpdateCalenderCapacityAdmin(_response);
|
|
5726
|
+
});
|
|
5727
|
+
}
|
|
5728
|
+
processUpdateCalenderCapacityAdmin(response) {
|
|
5729
|
+
const status = response.status;
|
|
5730
|
+
let _headers = {};
|
|
5731
|
+
if (response.headers && response.headers.forEach) {
|
|
5732
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5733
|
+
}
|
|
5734
|
+
;
|
|
5735
|
+
if (status === 200) {
|
|
5736
|
+
return response.text().then((_responseText) => {
|
|
5737
|
+
let result200 = null;
|
|
5738
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5739
|
+
result200 = CalenderCapacityDto.fromJS(resultData200);
|
|
5740
|
+
return result200;
|
|
5741
|
+
});
|
|
5742
|
+
}
|
|
5743
|
+
else if (status !== 200 && status !== 204) {
|
|
5744
|
+
return response.text().then((_responseText) => {
|
|
5745
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5746
|
+
});
|
|
5747
|
+
}
|
|
5748
|
+
return Promise.resolve(null);
|
|
5749
|
+
}
|
|
5532
5750
|
}
|
|
5533
5751
|
export class MachinesClient extends AuthorizedApiBase {
|
|
5534
5752
|
constructor(configuration, baseUrl, http) {
|
|
@@ -25726,6 +25944,380 @@ export class DowntimeReasonCountDto {
|
|
|
25726
25944
|
return data;
|
|
25727
25945
|
}
|
|
25728
25946
|
}
|
|
25947
|
+
export class DowntimeReasonsReportDto {
|
|
25948
|
+
constructor(data) {
|
|
25949
|
+
if (data) {
|
|
25950
|
+
for (var property in data) {
|
|
25951
|
+
if (data.hasOwnProperty(property))
|
|
25952
|
+
this[property] = data[property];
|
|
25953
|
+
}
|
|
25954
|
+
}
|
|
25955
|
+
}
|
|
25956
|
+
init(_data) {
|
|
25957
|
+
if (_data) {
|
|
25958
|
+
this.companyId = _data["companyId"];
|
|
25959
|
+
this.totalDowntimeDurationMilliseconds = _data["totalDowntimeDurationMilliseconds"];
|
|
25960
|
+
if (Array.isArray(_data["downtimeReasons"])) {
|
|
25961
|
+
this.downtimeReasons = [];
|
|
25962
|
+
for (let item of _data["downtimeReasons"])
|
|
25963
|
+
this.downtimeReasons.push(DowntimeReasonReport.fromJS(item));
|
|
25964
|
+
}
|
|
25965
|
+
}
|
|
25966
|
+
}
|
|
25967
|
+
static fromJS(data) {
|
|
25968
|
+
data = typeof data === 'object' ? data : {};
|
|
25969
|
+
let result = new DowntimeReasonsReportDto();
|
|
25970
|
+
result.init(data);
|
|
25971
|
+
return result;
|
|
25972
|
+
}
|
|
25973
|
+
toJSON(data) {
|
|
25974
|
+
data = typeof data === 'object' ? data : {};
|
|
25975
|
+
data["companyId"] = this.companyId;
|
|
25976
|
+
data["totalDowntimeDurationMilliseconds"] = this.totalDowntimeDurationMilliseconds;
|
|
25977
|
+
if (Array.isArray(this.downtimeReasons)) {
|
|
25978
|
+
data["downtimeReasons"] = [];
|
|
25979
|
+
for (let item of this.downtimeReasons)
|
|
25980
|
+
data["downtimeReasons"].push(item.toJSON());
|
|
25981
|
+
}
|
|
25982
|
+
return data;
|
|
25983
|
+
}
|
|
25984
|
+
}
|
|
25985
|
+
export class DowntimeReasonReport {
|
|
25986
|
+
constructor(data) {
|
|
25987
|
+
if (data) {
|
|
25988
|
+
for (var property in data) {
|
|
25989
|
+
if (data.hasOwnProperty(property))
|
|
25990
|
+
this[property] = data[property];
|
|
25991
|
+
}
|
|
25992
|
+
}
|
|
25993
|
+
if (!data) {
|
|
25994
|
+
this.details = [];
|
|
25995
|
+
}
|
|
25996
|
+
}
|
|
25997
|
+
init(_data) {
|
|
25998
|
+
if (_data) {
|
|
25999
|
+
this.reasonId = _data["reasonId"];
|
|
26000
|
+
this.reasonType = _data["reasonType"];
|
|
26001
|
+
this.reason = _data["reason"];
|
|
26002
|
+
this.totalDurationMilliseconds = _data["totalDurationMilliseconds"];
|
|
26003
|
+
this.count = _data["count"];
|
|
26004
|
+
if (Array.isArray(_data["details"])) {
|
|
26005
|
+
this.details = [];
|
|
26006
|
+
for (let item of _data["details"])
|
|
26007
|
+
this.details.push(DowntimeReasonInformation.fromJS(item));
|
|
26008
|
+
}
|
|
26009
|
+
}
|
|
26010
|
+
}
|
|
26011
|
+
static fromJS(data) {
|
|
26012
|
+
data = typeof data === 'object' ? data : {};
|
|
26013
|
+
let result = new DowntimeReasonReport();
|
|
26014
|
+
result.init(data);
|
|
26015
|
+
return result;
|
|
26016
|
+
}
|
|
26017
|
+
toJSON(data) {
|
|
26018
|
+
data = typeof data === 'object' ? data : {};
|
|
26019
|
+
data["reasonId"] = this.reasonId;
|
|
26020
|
+
data["reasonType"] = this.reasonType;
|
|
26021
|
+
data["reason"] = this.reason;
|
|
26022
|
+
data["totalDurationMilliseconds"] = this.totalDurationMilliseconds;
|
|
26023
|
+
data["count"] = this.count;
|
|
26024
|
+
if (Array.isArray(this.details)) {
|
|
26025
|
+
data["details"] = [];
|
|
26026
|
+
for (let item of this.details)
|
|
26027
|
+
data["details"].push(item.toJSON());
|
|
26028
|
+
}
|
|
26029
|
+
return data;
|
|
26030
|
+
}
|
|
26031
|
+
}
|
|
26032
|
+
export class DowntimeReasonInformation {
|
|
26033
|
+
constructor(data) {
|
|
26034
|
+
if (data) {
|
|
26035
|
+
for (var property in data) {
|
|
26036
|
+
if (data.hasOwnProperty(property))
|
|
26037
|
+
this[property] = data[property];
|
|
26038
|
+
}
|
|
26039
|
+
}
|
|
26040
|
+
if (!data) {
|
|
26041
|
+
this.downtimeReason = new DowntimePeriodReasonDto();
|
|
26042
|
+
}
|
|
26043
|
+
}
|
|
26044
|
+
init(_data) {
|
|
26045
|
+
if (_data) {
|
|
26046
|
+
this.downtimeReason = _data["downtimeReason"] ? DowntimePeriodReasonDto.fromJS(_data["downtimeReason"]) : new DowntimePeriodReasonDto();
|
|
26047
|
+
this.machine = _data["machine"];
|
|
26048
|
+
}
|
|
26049
|
+
}
|
|
26050
|
+
static fromJS(data) {
|
|
26051
|
+
data = typeof data === 'object' ? data : {};
|
|
26052
|
+
let result = new DowntimeReasonInformation();
|
|
26053
|
+
result.init(data);
|
|
26054
|
+
return result;
|
|
26055
|
+
}
|
|
26056
|
+
toJSON(data) {
|
|
26057
|
+
data = typeof data === 'object' ? data : {};
|
|
26058
|
+
data["downtimeReason"] = this.downtimeReason ? this.downtimeReason.toJSON() : undefined;
|
|
26059
|
+
data["machine"] = this.machine;
|
|
26060
|
+
return data;
|
|
26061
|
+
}
|
|
26062
|
+
}
|
|
26063
|
+
export class CreateDowntimeReasonsReportRequest {
|
|
26064
|
+
constructor(data) {
|
|
26065
|
+
if (data) {
|
|
26066
|
+
for (var property in data) {
|
|
26067
|
+
if (data.hasOwnProperty(property))
|
|
26068
|
+
this[property] = data[property];
|
|
26069
|
+
}
|
|
26070
|
+
}
|
|
26071
|
+
}
|
|
26072
|
+
init(_data) {
|
|
26073
|
+
if (_data) {
|
|
26074
|
+
if (Array.isArray(_data["machineExternalIds"])) {
|
|
26075
|
+
this.machineExternalIds = [];
|
|
26076
|
+
for (let item of _data["machineExternalIds"])
|
|
26077
|
+
this.machineExternalIds.push(item);
|
|
26078
|
+
}
|
|
26079
|
+
if (Array.isArray(_data["machineGroupNames"])) {
|
|
26080
|
+
this.machineGroupNames = [];
|
|
26081
|
+
for (let item of _data["machineGroupNames"])
|
|
26082
|
+
this.machineGroupNames.push(item);
|
|
26083
|
+
}
|
|
26084
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
26085
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
26086
|
+
}
|
|
26087
|
+
}
|
|
26088
|
+
static fromJS(data) {
|
|
26089
|
+
data = typeof data === 'object' ? data : {};
|
|
26090
|
+
let result = new CreateDowntimeReasonsReportRequest();
|
|
26091
|
+
result.init(data);
|
|
26092
|
+
return result;
|
|
26093
|
+
}
|
|
26094
|
+
toJSON(data) {
|
|
26095
|
+
data = typeof data === 'object' ? data : {};
|
|
26096
|
+
if (Array.isArray(this.machineExternalIds)) {
|
|
26097
|
+
data["machineExternalIds"] = [];
|
|
26098
|
+
for (let item of this.machineExternalIds)
|
|
26099
|
+
data["machineExternalIds"].push(item);
|
|
26100
|
+
}
|
|
26101
|
+
if (Array.isArray(this.machineGroupNames)) {
|
|
26102
|
+
data["machineGroupNames"] = [];
|
|
26103
|
+
for (let item of this.machineGroupNames)
|
|
26104
|
+
data["machineGroupNames"].push(item);
|
|
26105
|
+
}
|
|
26106
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
26107
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
26108
|
+
return data;
|
|
26109
|
+
}
|
|
26110
|
+
}
|
|
26111
|
+
export class MachineGroupCapacityDto {
|
|
26112
|
+
constructor(data) {
|
|
26113
|
+
if (data) {
|
|
26114
|
+
for (var property in data) {
|
|
26115
|
+
if (data.hasOwnProperty(property))
|
|
26116
|
+
this[property] = data[property];
|
|
26117
|
+
}
|
|
26118
|
+
}
|
|
26119
|
+
if (!data) {
|
|
26120
|
+
this.machine = [];
|
|
26121
|
+
}
|
|
26122
|
+
}
|
|
26123
|
+
init(_data) {
|
|
26124
|
+
if (_data) {
|
|
26125
|
+
this.machineGroupName = _data["machineGroupName"];
|
|
26126
|
+
if (Array.isArray(_data["machine"])) {
|
|
26127
|
+
this.machine = [];
|
|
26128
|
+
for (let item of _data["machine"])
|
|
26129
|
+
this.machine.push(MachineCapacityDto.fromJS(item));
|
|
26130
|
+
}
|
|
26131
|
+
}
|
|
26132
|
+
}
|
|
26133
|
+
static fromJS(data) {
|
|
26134
|
+
data = typeof data === 'object' ? data : {};
|
|
26135
|
+
let result = new MachineGroupCapacityDto();
|
|
26136
|
+
result.init(data);
|
|
26137
|
+
return result;
|
|
26138
|
+
}
|
|
26139
|
+
toJSON(data) {
|
|
26140
|
+
data = typeof data === 'object' ? data : {};
|
|
26141
|
+
data["machineGroupName"] = this.machineGroupName;
|
|
26142
|
+
if (Array.isArray(this.machine)) {
|
|
26143
|
+
data["machine"] = [];
|
|
26144
|
+
for (let item of this.machine)
|
|
26145
|
+
data["machine"].push(item.toJSON());
|
|
26146
|
+
}
|
|
26147
|
+
return data;
|
|
26148
|
+
}
|
|
26149
|
+
}
|
|
26150
|
+
export class MachineCapacityDto {
|
|
26151
|
+
constructor(data) {
|
|
26152
|
+
if (data) {
|
|
26153
|
+
for (var property in data) {
|
|
26154
|
+
if (data.hasOwnProperty(property))
|
|
26155
|
+
this[property] = data[property];
|
|
26156
|
+
}
|
|
26157
|
+
}
|
|
26158
|
+
}
|
|
26159
|
+
init(_data) {
|
|
26160
|
+
if (_data) {
|
|
26161
|
+
this.machineExternalId = _data["machineExternalId"];
|
|
26162
|
+
this.name = _data["name"];
|
|
26163
|
+
this.comment = _data["comment"];
|
|
26164
|
+
if (Array.isArray(_data["capacity"])) {
|
|
26165
|
+
this.capacity = [];
|
|
26166
|
+
for (let item of _data["capacity"])
|
|
26167
|
+
this.capacity.push(MachineCapacitySettingsDto.fromJS(item));
|
|
26168
|
+
}
|
|
26169
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
26170
|
+
this.updatedBy = _data["updatedBy"];
|
|
26171
|
+
this.updatedById = _data["updatedById"];
|
|
26172
|
+
}
|
|
26173
|
+
}
|
|
26174
|
+
static fromJS(data) {
|
|
26175
|
+
data = typeof data === 'object' ? data : {};
|
|
26176
|
+
let result = new MachineCapacityDto();
|
|
26177
|
+
result.init(data);
|
|
26178
|
+
return result;
|
|
26179
|
+
}
|
|
26180
|
+
toJSON(data) {
|
|
26181
|
+
data = typeof data === 'object' ? data : {};
|
|
26182
|
+
data["machineExternalId"] = this.machineExternalId;
|
|
26183
|
+
data["name"] = this.name;
|
|
26184
|
+
data["comment"] = this.comment;
|
|
26185
|
+
if (Array.isArray(this.capacity)) {
|
|
26186
|
+
data["capacity"] = [];
|
|
26187
|
+
for (let item of this.capacity)
|
|
26188
|
+
data["capacity"].push(item.toJSON());
|
|
26189
|
+
}
|
|
26190
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
26191
|
+
data["updatedBy"] = this.updatedBy;
|
|
26192
|
+
data["updatedById"] = this.updatedById;
|
|
26193
|
+
return data;
|
|
26194
|
+
}
|
|
26195
|
+
}
|
|
26196
|
+
export class MachineCapacitySettingsDto {
|
|
26197
|
+
constructor(data) {
|
|
26198
|
+
if (data) {
|
|
26199
|
+
for (var property in data) {
|
|
26200
|
+
if (data.hasOwnProperty(property))
|
|
26201
|
+
this[property] = data[property];
|
|
26202
|
+
}
|
|
26203
|
+
}
|
|
26204
|
+
}
|
|
26205
|
+
init(_data) {
|
|
26206
|
+
if (_data) {
|
|
26207
|
+
this.capacityHours = _data["capacityHours"];
|
|
26208
|
+
this.utilizationPercent = _data["utilizationPercent"];
|
|
26209
|
+
}
|
|
26210
|
+
}
|
|
26211
|
+
static fromJS(data) {
|
|
26212
|
+
data = typeof data === 'object' ? data : {};
|
|
26213
|
+
let result = new MachineCapacitySettingsDto();
|
|
26214
|
+
result.init(data);
|
|
26215
|
+
return result;
|
|
26216
|
+
}
|
|
26217
|
+
toJSON(data) {
|
|
26218
|
+
data = typeof data === 'object' ? data : {};
|
|
26219
|
+
data["capacityHours"] = this.capacityHours;
|
|
26220
|
+
data["utilizationPercent"] = this.utilizationPercent;
|
|
26221
|
+
return data;
|
|
26222
|
+
}
|
|
26223
|
+
}
|
|
26224
|
+
export class UpdateMachinesCapacity {
|
|
26225
|
+
constructor(data) {
|
|
26226
|
+
if (data) {
|
|
26227
|
+
for (var property in data) {
|
|
26228
|
+
if (data.hasOwnProperty(property))
|
|
26229
|
+
this[property] = data[property];
|
|
26230
|
+
}
|
|
26231
|
+
}
|
|
26232
|
+
if (!data) {
|
|
26233
|
+
this.capacity = [];
|
|
26234
|
+
}
|
|
26235
|
+
}
|
|
26236
|
+
init(_data) {
|
|
26237
|
+
if (_data) {
|
|
26238
|
+
this.machineExternalId = _data["machineExternalId"];
|
|
26239
|
+
this.comment = _data["comment"];
|
|
26240
|
+
if (Array.isArray(_data["capacity"])) {
|
|
26241
|
+
this.capacity = [];
|
|
26242
|
+
for (let item of _data["capacity"])
|
|
26243
|
+
this.capacity.push(MachineCapacitySettingsDto.fromJS(item));
|
|
26244
|
+
}
|
|
26245
|
+
}
|
|
26246
|
+
}
|
|
26247
|
+
static fromJS(data) {
|
|
26248
|
+
data = typeof data === 'object' ? data : {};
|
|
26249
|
+
let result = new UpdateMachinesCapacity();
|
|
26250
|
+
result.init(data);
|
|
26251
|
+
return result;
|
|
26252
|
+
}
|
|
26253
|
+
toJSON(data) {
|
|
26254
|
+
data = typeof data === 'object' ? data : {};
|
|
26255
|
+
data["machineExternalId"] = this.machineExternalId;
|
|
26256
|
+
data["comment"] = this.comment;
|
|
26257
|
+
if (Array.isArray(this.capacity)) {
|
|
26258
|
+
data["capacity"] = [];
|
|
26259
|
+
for (let item of this.capacity)
|
|
26260
|
+
data["capacity"].push(item.toJSON());
|
|
26261
|
+
}
|
|
26262
|
+
return data;
|
|
26263
|
+
}
|
|
26264
|
+
}
|
|
26265
|
+
export class CalenderCapacityDto {
|
|
26266
|
+
constructor(data) {
|
|
26267
|
+
if (data) {
|
|
26268
|
+
for (var property in data) {
|
|
26269
|
+
if (data.hasOwnProperty(property))
|
|
26270
|
+
this[property] = data[property];
|
|
26271
|
+
}
|
|
26272
|
+
}
|
|
26273
|
+
}
|
|
26274
|
+
init(_data) {
|
|
26275
|
+
if (_data) {
|
|
26276
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
26277
|
+
this.dayCapacity = _data["dayCapacity"];
|
|
26278
|
+
}
|
|
26279
|
+
}
|
|
26280
|
+
static fromJS(data) {
|
|
26281
|
+
data = typeof data === 'object' ? data : {};
|
|
26282
|
+
let result = new CalenderCapacityDto();
|
|
26283
|
+
result.init(data);
|
|
26284
|
+
return result;
|
|
26285
|
+
}
|
|
26286
|
+
toJSON(data) {
|
|
26287
|
+
data = typeof data === 'object' ? data : {};
|
|
26288
|
+
data["date"] = this.date ? formatDate(this.date) : undefined;
|
|
26289
|
+
data["dayCapacity"] = this.dayCapacity;
|
|
26290
|
+
return data;
|
|
26291
|
+
}
|
|
26292
|
+
}
|
|
26293
|
+
export class UpdateCalenderCapacity {
|
|
26294
|
+
constructor(data) {
|
|
26295
|
+
if (data) {
|
|
26296
|
+
for (var property in data) {
|
|
26297
|
+
if (data.hasOwnProperty(property))
|
|
26298
|
+
this[property] = data[property];
|
|
26299
|
+
}
|
|
26300
|
+
}
|
|
26301
|
+
}
|
|
26302
|
+
init(_data) {
|
|
26303
|
+
if (_data) {
|
|
26304
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
26305
|
+
this.dayCapacity = _data["dayCapacity"];
|
|
26306
|
+
}
|
|
26307
|
+
}
|
|
26308
|
+
static fromJS(data) {
|
|
26309
|
+
data = typeof data === 'object' ? data : {};
|
|
26310
|
+
let result = new UpdateCalenderCapacity();
|
|
26311
|
+
result.init(data);
|
|
26312
|
+
return result;
|
|
26313
|
+
}
|
|
26314
|
+
toJSON(data) {
|
|
26315
|
+
data = typeof data === 'object' ? data : {};
|
|
26316
|
+
data["date"] = this.date ? formatDate(this.date) : undefined;
|
|
26317
|
+
data["dayCapacity"] = this.dayCapacity;
|
|
26318
|
+
return data;
|
|
26319
|
+
}
|
|
26320
|
+
}
|
|
25729
26321
|
export class MachineDto {
|
|
25730
26322
|
constructor(data) {
|
|
25731
26323
|
if (data) {
|
|
@@ -31469,6 +32061,7 @@ export class BookingParcelDto {
|
|
|
31469
32061
|
this.materialOperation = _data["materialOperation"];
|
|
31470
32062
|
this.materialLine = _data["materialLine"];
|
|
31471
32063
|
this.materialQuantity = _data["materialQuantity"];
|
|
32064
|
+
this.materialUnit = _data["materialUnit"];
|
|
31472
32065
|
this.materialPartName = _data["materialPartName"];
|
|
31473
32066
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
31474
32067
|
this.covered = _data["covered"];
|
|
@@ -31492,6 +32085,7 @@ export class BookingParcelDto {
|
|
|
31492
32085
|
data["materialOperation"] = this.materialOperation;
|
|
31493
32086
|
data["materialLine"] = this.materialLine;
|
|
31494
32087
|
data["materialQuantity"] = this.materialQuantity;
|
|
32088
|
+
data["materialUnit"] = this.materialUnit;
|
|
31495
32089
|
data["materialPartName"] = this.materialPartName;
|
|
31496
32090
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
31497
32091
|
data["covered"] = this.covered;
|