@ignos/api-client 20250318.0.11386 → 20250320.0.11395-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 +92 -409
- package/lib/ignosportal-api.js +224 -1113
- package/package.json +1 -1
- package/src/ignosportal-api.ts +276 -1450
package/lib/ignosportal-api.js
CHANGED
|
@@ -600,65 +600,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
600
600
|
this.http = http ? http : window;
|
|
601
601
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
602
602
|
}
|
|
603
|
-
/**
|
|
604
|
-
* Get machine utilization data. Historic utilizations start from now, whereas the start for current utilization is
|
|
605
|
-
calculated based on startTimeToday or utcOffset. An UTC offset is
|
|
606
|
-
obtained either from startTimeToday, utcOffset or the server's local
|
|
607
|
-
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
608
|
-
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
609
|
-
client and server
|
|
610
|
-
* @param assetId (optional)
|
|
611
|
-
* @param favorites (optional)
|
|
612
|
-
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
613
|
-
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
614
|
-
*/
|
|
615
|
-
getMachineUtilizations(assetId, favorites, startTimeToday, utcOffset) {
|
|
616
|
-
let url_ = this.baseUrl + "/machineutilization?";
|
|
617
|
-
if (assetId !== undefined && assetId !== null)
|
|
618
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
619
|
-
if (favorites === null)
|
|
620
|
-
throw new Error("The parameter 'favorites' cannot be null.");
|
|
621
|
-
else if (favorites !== undefined)
|
|
622
|
-
url_ += "favorites=" + encodeURIComponent("" + favorites) + "&";
|
|
623
|
-
if (startTimeToday !== undefined && startTimeToday !== null)
|
|
624
|
-
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
625
|
-
if (utcOffset !== undefined && utcOffset !== null)
|
|
626
|
-
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
627
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
628
|
-
let options_ = {
|
|
629
|
-
method: "GET",
|
|
630
|
-
headers: {
|
|
631
|
-
"Accept": "application/json"
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
635
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
636
|
-
}).then((_response) => {
|
|
637
|
-
return this.processGetMachineUtilizations(_response);
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
processGetMachineUtilizations(response) {
|
|
641
|
-
const status = response.status;
|
|
642
|
-
let _headers = {};
|
|
643
|
-
if (response.headers && response.headers.forEach) {
|
|
644
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
645
|
-
}
|
|
646
|
-
;
|
|
647
|
-
if (status === 200) {
|
|
648
|
-
return response.text().then((_responseText) => {
|
|
649
|
-
let result200 = null;
|
|
650
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
651
|
-
result200 = UtilizationListDto.fromJS(resultData200);
|
|
652
|
-
return result200;
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
else if (status !== 200 && status !== 204) {
|
|
656
|
-
return response.text().then((_responseText) => {
|
|
657
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
return Promise.resolve(null);
|
|
661
|
-
}
|
|
662
603
|
getMachineUtilization(id, startTime, endTime) {
|
|
663
604
|
let url_ = this.baseUrl + "/machineutilization/{id}?";
|
|
664
605
|
if (id === undefined || id === null)
|
|
@@ -705,55 +646,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
705
646
|
}
|
|
706
647
|
return Promise.resolve(null);
|
|
707
648
|
}
|
|
708
|
-
/**
|
|
709
|
-
* @param startTime (optional)
|
|
710
|
-
* @param endTime (optional)
|
|
711
|
-
* @deprecated
|
|
712
|
-
*/
|
|
713
|
-
getUtilizationDetailsForMachine(id, startTime, endTime) {
|
|
714
|
-
let url_ = this.baseUrl + "/machineutilization/{id}/utilization?";
|
|
715
|
-
if (id === undefined || id === null)
|
|
716
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
717
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
718
|
-
if (startTime !== undefined && startTime !== null)
|
|
719
|
-
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
720
|
-
if (endTime !== undefined && endTime !== null)
|
|
721
|
-
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
722
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
723
|
-
let options_ = {
|
|
724
|
-
method: "GET",
|
|
725
|
-
headers: {
|
|
726
|
-
"Accept": "application/json"
|
|
727
|
-
}
|
|
728
|
-
};
|
|
729
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
730
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
731
|
-
}).then((_response) => {
|
|
732
|
-
return this.processGetUtilizationDetailsForMachine(_response);
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
processGetUtilizationDetailsForMachine(response) {
|
|
736
|
-
const status = response.status;
|
|
737
|
-
let _headers = {};
|
|
738
|
-
if (response.headers && response.headers.forEach) {
|
|
739
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
740
|
-
}
|
|
741
|
-
;
|
|
742
|
-
if (status === 200) {
|
|
743
|
-
return response.text().then((_responseText) => {
|
|
744
|
-
let result200 = null;
|
|
745
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
746
|
-
result200 = MachineStatesSummaryDto.fromJS(resultData200);
|
|
747
|
-
return result200;
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
else if (status !== 200 && status !== 204) {
|
|
751
|
-
return response.text().then((_responseText) => {
|
|
752
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
753
|
-
});
|
|
754
|
-
}
|
|
755
|
-
return Promise.resolve(null);
|
|
756
|
-
}
|
|
757
649
|
listMachineStates(id, startTime, endTime) {
|
|
758
650
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
|
|
759
651
|
if (id === undefined || id === null)
|
|
@@ -886,90 +778,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
886
778
|
}
|
|
887
779
|
return Promise.resolve(null);
|
|
888
780
|
}
|
|
889
|
-
listPowerOnUtilizationDatapoints(id, externalId, nDays, startTime, endTime) {
|
|
890
|
-
let url_ = this.baseUrl + "/machineutilization/power-on/datapoints?";
|
|
891
|
-
if (id !== undefined && id !== null)
|
|
892
|
-
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
893
|
-
if (externalId !== undefined && externalId !== null)
|
|
894
|
-
url_ += "externalId=" + encodeURIComponent("" + externalId) + "&";
|
|
895
|
-
if (nDays !== undefined && nDays !== null)
|
|
896
|
-
url_ += "nDays=" + encodeURIComponent("" + nDays) + "&";
|
|
897
|
-
if (startTime !== undefined && startTime !== null)
|
|
898
|
-
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
899
|
-
if (endTime !== undefined && endTime !== null)
|
|
900
|
-
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
901
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
902
|
-
let options_ = {
|
|
903
|
-
method: "GET",
|
|
904
|
-
headers: {
|
|
905
|
-
"Accept": "application/json"
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
909
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
910
|
-
}).then((_response) => {
|
|
911
|
-
return this.processListPowerOnUtilizationDatapoints(_response);
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
processListPowerOnUtilizationDatapoints(response) {
|
|
915
|
-
const status = response.status;
|
|
916
|
-
let _headers = {};
|
|
917
|
-
if (response.headers && response.headers.forEach) {
|
|
918
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
919
|
-
}
|
|
920
|
-
;
|
|
921
|
-
if (status === 200) {
|
|
922
|
-
return response.text().then((_responseText) => {
|
|
923
|
-
let result200 = null;
|
|
924
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
925
|
-
result200 = PowerOnUtilizationList.fromJS(resultData200);
|
|
926
|
-
return result200;
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
else if (status !== 200 && status !== 204) {
|
|
930
|
-
return response.text().then((_responseText) => {
|
|
931
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
return Promise.resolve(null);
|
|
935
|
-
}
|
|
936
|
-
getFactoryUtilization() {
|
|
937
|
-
let url_ = this.baseUrl + "/machineutilization/factory";
|
|
938
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
939
|
-
let options_ = {
|
|
940
|
-
method: "GET",
|
|
941
|
-
headers: {
|
|
942
|
-
"Accept": "application/json"
|
|
943
|
-
}
|
|
944
|
-
};
|
|
945
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
946
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
947
|
-
}).then((_response) => {
|
|
948
|
-
return this.processGetFactoryUtilization(_response);
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
processGetFactoryUtilization(response) {
|
|
952
|
-
const status = response.status;
|
|
953
|
-
let _headers = {};
|
|
954
|
-
if (response.headers && response.headers.forEach) {
|
|
955
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
956
|
-
}
|
|
957
|
-
;
|
|
958
|
-
if (status === 200) {
|
|
959
|
-
return response.text().then((_responseText) => {
|
|
960
|
-
let result200 = null;
|
|
961
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
962
|
-
result200 = PowerOnUtilizationDto.fromJS(resultData200);
|
|
963
|
-
return result200;
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
else if (status !== 200 && status !== 204) {
|
|
967
|
-
return response.text().then((_responseText) => {
|
|
968
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
969
|
-
});
|
|
970
|
-
}
|
|
971
|
-
return Promise.resolve(null);
|
|
972
|
-
}
|
|
973
781
|
}
|
|
974
782
|
export class MeClient extends AuthorizedApiBase {
|
|
975
783
|
constructor(configuration, baseUrl, http) {
|
|
@@ -6740,120 +6548,6 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
6740
6548
|
}
|
|
6741
6549
|
return Promise.resolve(null);
|
|
6742
6550
|
}
|
|
6743
|
-
getMachineErpData(id) {
|
|
6744
|
-
let url_ = this.baseUrl + "/machines/{id}/erp";
|
|
6745
|
-
if (id === undefined || id === null)
|
|
6746
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6747
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6748
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
6749
|
-
let options_ = {
|
|
6750
|
-
method: "GET",
|
|
6751
|
-
headers: {
|
|
6752
|
-
"Accept": "application/json"
|
|
6753
|
-
}
|
|
6754
|
-
};
|
|
6755
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6756
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
6757
|
-
}).then((_response) => {
|
|
6758
|
-
return this.processGetMachineErpData(_response);
|
|
6759
|
-
});
|
|
6760
|
-
}
|
|
6761
|
-
processGetMachineErpData(response) {
|
|
6762
|
-
const status = response.status;
|
|
6763
|
-
let _headers = {};
|
|
6764
|
-
if (response.headers && response.headers.forEach) {
|
|
6765
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6766
|
-
}
|
|
6767
|
-
;
|
|
6768
|
-
if (status === 200) {
|
|
6769
|
-
return response.text().then((_responseText) => {
|
|
6770
|
-
let result200 = null;
|
|
6771
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6772
|
-
result200 = MachineErpDataDto.fromJS(resultData200);
|
|
6773
|
-
return result200;
|
|
6774
|
-
});
|
|
6775
|
-
}
|
|
6776
|
-
else if (status !== 200 && status !== 204) {
|
|
6777
|
-
return response.text().then((_responseText) => {
|
|
6778
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6779
|
-
});
|
|
6780
|
-
}
|
|
6781
|
-
return Promise.resolve(null);
|
|
6782
|
-
}
|
|
6783
|
-
getMachineUtilizationSummary() {
|
|
6784
|
-
let url_ = this.baseUrl + "/machines/utilization/summary";
|
|
6785
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
6786
|
-
let options_ = {
|
|
6787
|
-
method: "GET",
|
|
6788
|
-
headers: {
|
|
6789
|
-
"Accept": "application/json"
|
|
6790
|
-
}
|
|
6791
|
-
};
|
|
6792
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6793
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
6794
|
-
}).then((_response) => {
|
|
6795
|
-
return this.processGetMachineUtilizationSummary(_response);
|
|
6796
|
-
});
|
|
6797
|
-
}
|
|
6798
|
-
processGetMachineUtilizationSummary(response) {
|
|
6799
|
-
const status = response.status;
|
|
6800
|
-
let _headers = {};
|
|
6801
|
-
if (response.headers && response.headers.forEach) {
|
|
6802
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6803
|
-
}
|
|
6804
|
-
;
|
|
6805
|
-
if (status === 200) {
|
|
6806
|
-
return response.text().then((_responseText) => {
|
|
6807
|
-
let result200 = null;
|
|
6808
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6809
|
-
result200 = UtilizationSummaryDto.fromJS(resultData200);
|
|
6810
|
-
return result200;
|
|
6811
|
-
});
|
|
6812
|
-
}
|
|
6813
|
-
else if (status !== 200 && status !== 204) {
|
|
6814
|
-
return response.text().then((_responseText) => {
|
|
6815
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6816
|
-
});
|
|
6817
|
-
}
|
|
6818
|
-
return Promise.resolve(null);
|
|
6819
|
-
}
|
|
6820
|
-
getCrossCompanyUtilizationSummary() {
|
|
6821
|
-
let url_ = this.baseUrl + "/machines/utilization/cross-company";
|
|
6822
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
6823
|
-
let options_ = {
|
|
6824
|
-
method: "GET",
|
|
6825
|
-
headers: {
|
|
6826
|
-
"Accept": "application/json"
|
|
6827
|
-
}
|
|
6828
|
-
};
|
|
6829
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6830
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
6831
|
-
}).then((_response) => {
|
|
6832
|
-
return this.processGetCrossCompanyUtilizationSummary(_response);
|
|
6833
|
-
});
|
|
6834
|
-
}
|
|
6835
|
-
processGetCrossCompanyUtilizationSummary(response) {
|
|
6836
|
-
const status = response.status;
|
|
6837
|
-
let _headers = {};
|
|
6838
|
-
if (response.headers && response.headers.forEach) {
|
|
6839
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6840
|
-
}
|
|
6841
|
-
;
|
|
6842
|
-
if (status === 200) {
|
|
6843
|
-
return response.text().then((_responseText) => {
|
|
6844
|
-
let result200 = null;
|
|
6845
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6846
|
-
result200 = CrossCompanyUtilizationSummaryDto.fromJS(resultData200);
|
|
6847
|
-
return result200;
|
|
6848
|
-
});
|
|
6849
|
-
}
|
|
6850
|
-
else if (status !== 200 && status !== 204) {
|
|
6851
|
-
return response.text().then((_responseText) => {
|
|
6852
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6853
|
-
});
|
|
6854
|
-
}
|
|
6855
|
-
return Promise.resolve(null);
|
|
6856
|
-
}
|
|
6857
6551
|
listCurrentMachineOperators(machineExternalId, operatorNameQuery) {
|
|
6858
6552
|
let url_ = this.baseUrl + "/machines/operators?";
|
|
6859
6553
|
if (machineExternalId !== undefined && machineExternalId !== null)
|
|
@@ -15760,50 +15454,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
15760
15454
|
}
|
|
15761
15455
|
return Promise.resolve(null);
|
|
15762
15456
|
}
|
|
15763
|
-
|
|
15764
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/
|
|
15765
|
-
if (id === undefined || id === null)
|
|
15766
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
15767
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
15768
|
-
if (ballonId !== undefined && ballonId !== null)
|
|
15769
|
-
url_ += "ballonId=" + encodeURIComponent("" + ballonId) + "&";
|
|
15770
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
15771
|
-
let options_ = {
|
|
15772
|
-
method: "DELETE",
|
|
15773
|
-
headers: {
|
|
15774
|
-
"Accept": "application/json"
|
|
15775
|
-
}
|
|
15776
|
-
};
|
|
15777
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
15778
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
15779
|
-
}).then((_response) => {
|
|
15780
|
-
return this.processDeleteSchemaRow(_response);
|
|
15781
|
-
});
|
|
15782
|
-
}
|
|
15783
|
-
processDeleteSchemaRow(response) {
|
|
15784
|
-
const status = response.status;
|
|
15785
|
-
let _headers = {};
|
|
15786
|
-
if (response.headers && response.headers.forEach) {
|
|
15787
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15788
|
-
}
|
|
15789
|
-
;
|
|
15790
|
-
if (status === 200) {
|
|
15791
|
-
return response.text().then((_responseText) => {
|
|
15792
|
-
let result200 = null;
|
|
15793
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15794
|
-
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
15795
|
-
return result200;
|
|
15796
|
-
});
|
|
15797
|
-
}
|
|
15798
|
-
else if (status !== 200 && status !== 204) {
|
|
15799
|
-
return response.text().then((_responseText) => {
|
|
15800
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15801
|
-
});
|
|
15802
|
-
}
|
|
15803
|
-
return Promise.resolve(null);
|
|
15804
|
-
}
|
|
15805
|
-
uploadMeasurementImage(id, request) {
|
|
15806
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
|
|
15457
|
+
deleteSchemaRows(id, request) {
|
|
15458
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterows";
|
|
15807
15459
|
if (id === undefined || id === null)
|
|
15808
15460
|
throw new Error("The parameter 'id' must be defined.");
|
|
15809
15461
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -15811,7 +15463,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
15811
15463
|
const content_ = JSON.stringify(request);
|
|
15812
15464
|
let options_ = {
|
|
15813
15465
|
body: content_,
|
|
15814
|
-
method: "
|
|
15466
|
+
method: "DELETE",
|
|
15815
15467
|
headers: {
|
|
15816
15468
|
"Content-Type": "application/json",
|
|
15817
15469
|
"Accept": "application/json"
|
|
@@ -15820,10 +15472,53 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
15820
15472
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
15821
15473
|
return this.http.fetch(url_, transformedOptions_);
|
|
15822
15474
|
}).then((_response) => {
|
|
15823
|
-
return this.
|
|
15475
|
+
return this.processDeleteSchemaRows(_response);
|
|
15824
15476
|
});
|
|
15825
15477
|
}
|
|
15826
|
-
|
|
15478
|
+
processDeleteSchemaRows(response) {
|
|
15479
|
+
const status = response.status;
|
|
15480
|
+
let _headers = {};
|
|
15481
|
+
if (response.headers && response.headers.forEach) {
|
|
15482
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15483
|
+
}
|
|
15484
|
+
;
|
|
15485
|
+
if (status === 200) {
|
|
15486
|
+
return response.text().then((_responseText) => {
|
|
15487
|
+
let result200 = null;
|
|
15488
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15489
|
+
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
15490
|
+
return result200;
|
|
15491
|
+
});
|
|
15492
|
+
}
|
|
15493
|
+
else if (status !== 200 && status !== 204) {
|
|
15494
|
+
return response.text().then((_responseText) => {
|
|
15495
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15496
|
+
});
|
|
15497
|
+
}
|
|
15498
|
+
return Promise.resolve(null);
|
|
15499
|
+
}
|
|
15500
|
+
uploadMeasurementImage(id, request) {
|
|
15501
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
|
|
15502
|
+
if (id === undefined || id === null)
|
|
15503
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
15504
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
15505
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15506
|
+
const content_ = JSON.stringify(request);
|
|
15507
|
+
let options_ = {
|
|
15508
|
+
body: content_,
|
|
15509
|
+
method: "PUT",
|
|
15510
|
+
headers: {
|
|
15511
|
+
"Content-Type": "application/json",
|
|
15512
|
+
"Accept": "application/json"
|
|
15513
|
+
}
|
|
15514
|
+
};
|
|
15515
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
15516
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
15517
|
+
}).then((_response) => {
|
|
15518
|
+
return this.processUploadMeasurementImage(_response);
|
|
15519
|
+
});
|
|
15520
|
+
}
|
|
15521
|
+
processUploadMeasurementImage(response) {
|
|
15827
15522
|
const status = response.status;
|
|
15828
15523
|
let _headers = {};
|
|
15829
15524
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21216,217 +20911,6 @@ export class ComponentSettingsDto {
|
|
|
21216
20911
|
return data;
|
|
21217
20912
|
}
|
|
21218
20913
|
}
|
|
21219
|
-
export class UtilizationListDto {
|
|
21220
|
-
constructor(data) {
|
|
21221
|
-
if (data) {
|
|
21222
|
-
for (var property in data) {
|
|
21223
|
-
if (data.hasOwnProperty(property))
|
|
21224
|
-
this[property] = data[property];
|
|
21225
|
-
}
|
|
21226
|
-
}
|
|
21227
|
-
}
|
|
21228
|
-
init(_data) {
|
|
21229
|
-
if (_data) {
|
|
21230
|
-
if (Array.isArray(_data["machines"])) {
|
|
21231
|
-
this.machines = [];
|
|
21232
|
-
for (let item of _data["machines"])
|
|
21233
|
-
this.machines.push(MachineUtilizationDto.fromJS(item));
|
|
21234
|
-
}
|
|
21235
|
-
}
|
|
21236
|
-
}
|
|
21237
|
-
static fromJS(data) {
|
|
21238
|
-
data = typeof data === 'object' ? data : {};
|
|
21239
|
-
let result = new UtilizationListDto();
|
|
21240
|
-
result.init(data);
|
|
21241
|
-
return result;
|
|
21242
|
-
}
|
|
21243
|
-
toJSON(data) {
|
|
21244
|
-
data = typeof data === 'object' ? data : {};
|
|
21245
|
-
if (Array.isArray(this.machines)) {
|
|
21246
|
-
data["machines"] = [];
|
|
21247
|
-
for (let item of this.machines)
|
|
21248
|
-
data["machines"].push(item.toJSON());
|
|
21249
|
-
}
|
|
21250
|
-
return data;
|
|
21251
|
-
}
|
|
21252
|
-
}
|
|
21253
|
-
export class MachineUtilizationDto {
|
|
21254
|
-
constructor(data) {
|
|
21255
|
-
if (data) {
|
|
21256
|
-
for (var property in data) {
|
|
21257
|
-
if (data.hasOwnProperty(property))
|
|
21258
|
-
this[property] = data[property];
|
|
21259
|
-
}
|
|
21260
|
-
}
|
|
21261
|
-
}
|
|
21262
|
-
init(_data) {
|
|
21263
|
-
if (_data) {
|
|
21264
|
-
this.assetId = _data["assetId"];
|
|
21265
|
-
this.name = _data["name"];
|
|
21266
|
-
this.description = _data["description"];
|
|
21267
|
-
this.state = _data["state"];
|
|
21268
|
-
this.machineState = _data["machineState"];
|
|
21269
|
-
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
21270
|
-
this.workorder = _data["workorder"] ? UtilizationWorkorderDto.fromJS(_data["workorder"]) : undefined;
|
|
21271
|
-
this.powerOn = _data["powerOn"] ? PowerOnUtilizationDto.fromJS(_data["powerOn"]) : undefined;
|
|
21272
|
-
}
|
|
21273
|
-
}
|
|
21274
|
-
static fromJS(data) {
|
|
21275
|
-
data = typeof data === 'object' ? data : {};
|
|
21276
|
-
let result = new MachineUtilizationDto();
|
|
21277
|
-
result.init(data);
|
|
21278
|
-
return result;
|
|
21279
|
-
}
|
|
21280
|
-
toJSON(data) {
|
|
21281
|
-
data = typeof data === 'object' ? data : {};
|
|
21282
|
-
data["assetId"] = this.assetId;
|
|
21283
|
-
data["name"] = this.name;
|
|
21284
|
-
data["description"] = this.description;
|
|
21285
|
-
data["state"] = this.state;
|
|
21286
|
-
data["machineState"] = this.machineState;
|
|
21287
|
-
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
21288
|
-
data["workorder"] = this.workorder ? this.workorder.toJSON() : undefined;
|
|
21289
|
-
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : undefined;
|
|
21290
|
-
return data;
|
|
21291
|
-
}
|
|
21292
|
-
}
|
|
21293
|
-
export class UtilizationWorkorderDto {
|
|
21294
|
-
constructor(data) {
|
|
21295
|
-
if (data) {
|
|
21296
|
-
for (var property in data) {
|
|
21297
|
-
if (data.hasOwnProperty(property))
|
|
21298
|
-
this[property] = data[property];
|
|
21299
|
-
}
|
|
21300
|
-
}
|
|
21301
|
-
}
|
|
21302
|
-
init(_data) {
|
|
21303
|
-
if (_data) {
|
|
21304
|
-
this.id = _data["id"];
|
|
21305
|
-
this.operation = _data["operation"];
|
|
21306
|
-
this.isSetup = _data["isSetup"];
|
|
21307
|
-
this.partNumber = _data["partNumber"];
|
|
21308
|
-
this.partName = _data["partName"];
|
|
21309
|
-
this.customer = _data["customer"] ? CustomerDto.fromJS(_data["customer"]) : undefined;
|
|
21310
|
-
this.customerOrder = _data["customerOrder"];
|
|
21311
|
-
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
21312
|
-
this.workorderUtilization = _data["workorderUtilization"];
|
|
21313
|
-
this.comparedToAverage = _data["comparedToAverage"];
|
|
21314
|
-
this.workorderDescription = _data["workorderDescription"];
|
|
21315
|
-
this.operationDescription = _data["operationDescription"];
|
|
21316
|
-
}
|
|
21317
|
-
}
|
|
21318
|
-
static fromJS(data) {
|
|
21319
|
-
data = typeof data === 'object' ? data : {};
|
|
21320
|
-
let result = new UtilizationWorkorderDto();
|
|
21321
|
-
result.init(data);
|
|
21322
|
-
return result;
|
|
21323
|
-
}
|
|
21324
|
-
toJSON(data) {
|
|
21325
|
-
data = typeof data === 'object' ? data : {};
|
|
21326
|
-
data["id"] = this.id;
|
|
21327
|
-
data["operation"] = this.operation;
|
|
21328
|
-
data["isSetup"] = this.isSetup;
|
|
21329
|
-
data["partNumber"] = this.partNumber;
|
|
21330
|
-
data["partName"] = this.partName;
|
|
21331
|
-
data["customer"] = this.customer ? this.customer.toJSON() : undefined;
|
|
21332
|
-
data["customerOrder"] = this.customerOrder;
|
|
21333
|
-
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
21334
|
-
data["workorderUtilization"] = this.workorderUtilization;
|
|
21335
|
-
data["comparedToAverage"] = this.comparedToAverage;
|
|
21336
|
-
data["workorderDescription"] = this.workorderDescription;
|
|
21337
|
-
data["operationDescription"] = this.operationDescription;
|
|
21338
|
-
return data;
|
|
21339
|
-
}
|
|
21340
|
-
}
|
|
21341
|
-
export class CustomerDto {
|
|
21342
|
-
constructor(data) {
|
|
21343
|
-
if (data) {
|
|
21344
|
-
for (var property in data) {
|
|
21345
|
-
if (data.hasOwnProperty(property))
|
|
21346
|
-
this[property] = data[property];
|
|
21347
|
-
}
|
|
21348
|
-
}
|
|
21349
|
-
}
|
|
21350
|
-
init(_data) {
|
|
21351
|
-
if (_data) {
|
|
21352
|
-
this.id = _data["id"];
|
|
21353
|
-
this.name = _data["name"];
|
|
21354
|
-
this.groupId = _data["groupId"];
|
|
21355
|
-
this.groupName = _data["groupName"];
|
|
21356
|
-
}
|
|
21357
|
-
}
|
|
21358
|
-
static fromJS(data) {
|
|
21359
|
-
data = typeof data === 'object' ? data : {};
|
|
21360
|
-
let result = new CustomerDto();
|
|
21361
|
-
result.init(data);
|
|
21362
|
-
return result;
|
|
21363
|
-
}
|
|
21364
|
-
toJSON(data) {
|
|
21365
|
-
data = typeof data === 'object' ? data : {};
|
|
21366
|
-
data["id"] = this.id;
|
|
21367
|
-
data["name"] = this.name;
|
|
21368
|
-
data["groupId"] = this.groupId;
|
|
21369
|
-
data["groupName"] = this.groupName;
|
|
21370
|
-
return data;
|
|
21371
|
-
}
|
|
21372
|
-
}
|
|
21373
|
-
export class UtilizationAveragesDto {
|
|
21374
|
-
constructor(data) {
|
|
21375
|
-
if (data) {
|
|
21376
|
-
for (var property in data) {
|
|
21377
|
-
if (data.hasOwnProperty(property))
|
|
21378
|
-
this[property] = data[property];
|
|
21379
|
-
}
|
|
21380
|
-
}
|
|
21381
|
-
}
|
|
21382
|
-
init(_data) {
|
|
21383
|
-
if (_data) {
|
|
21384
|
-
this.averageUtilization90Days = _data["averageUtilization90Days"];
|
|
21385
|
-
this.averageUtilization30Days = _data["averageUtilization30Days"];
|
|
21386
|
-
this.averageUtilization7Days = _data["averageUtilization7Days"];
|
|
21387
|
-
this.averageUtilizationYearToDate = _data["averageUtilizationYearToDate"];
|
|
21388
|
-
}
|
|
21389
|
-
}
|
|
21390
|
-
static fromJS(data) {
|
|
21391
|
-
data = typeof data === 'object' ? data : {};
|
|
21392
|
-
let result = new UtilizationAveragesDto();
|
|
21393
|
-
result.init(data);
|
|
21394
|
-
return result;
|
|
21395
|
-
}
|
|
21396
|
-
toJSON(data) {
|
|
21397
|
-
data = typeof data === 'object' ? data : {};
|
|
21398
|
-
data["averageUtilization90Days"] = this.averageUtilization90Days;
|
|
21399
|
-
data["averageUtilization30Days"] = this.averageUtilization30Days;
|
|
21400
|
-
data["averageUtilization7Days"] = this.averageUtilization7Days;
|
|
21401
|
-
data["averageUtilizationYearToDate"] = this.averageUtilizationYearToDate;
|
|
21402
|
-
return data;
|
|
21403
|
-
}
|
|
21404
|
-
}
|
|
21405
|
-
export class PowerOnUtilizationDto extends UtilizationAveragesDto {
|
|
21406
|
-
constructor(data) {
|
|
21407
|
-
super(data);
|
|
21408
|
-
}
|
|
21409
|
-
init(_data) {
|
|
21410
|
-
super.init(_data);
|
|
21411
|
-
if (_data) {
|
|
21412
|
-
this.powerOnUtilization = _data["powerOnUtilization"];
|
|
21413
|
-
this.comparedToAverage = _data["comparedToAverage"];
|
|
21414
|
-
}
|
|
21415
|
-
}
|
|
21416
|
-
static fromJS(data) {
|
|
21417
|
-
data = typeof data === 'object' ? data : {};
|
|
21418
|
-
let result = new PowerOnUtilizationDto();
|
|
21419
|
-
result.init(data);
|
|
21420
|
-
return result;
|
|
21421
|
-
}
|
|
21422
|
-
toJSON(data) {
|
|
21423
|
-
data = typeof data === 'object' ? data : {};
|
|
21424
|
-
data["powerOnUtilization"] = this.powerOnUtilization;
|
|
21425
|
-
data["comparedToAverage"] = this.comparedToAverage;
|
|
21426
|
-
super.toJSON(data);
|
|
21427
|
-
return data;
|
|
21428
|
-
}
|
|
21429
|
-
}
|
|
21430
20914
|
export class UtilizationDetailsDto {
|
|
21431
20915
|
constructor(data) {
|
|
21432
20916
|
if (data) {
|
|
@@ -21463,73 +20947,6 @@ export class UtilizationDetailsDto {
|
|
|
21463
20947
|
return data;
|
|
21464
20948
|
}
|
|
21465
20949
|
}
|
|
21466
|
-
export class MachineStatesSummaryDto {
|
|
21467
|
-
constructor(data) {
|
|
21468
|
-
if (data) {
|
|
21469
|
-
for (var property in data) {
|
|
21470
|
-
if (data.hasOwnProperty(property))
|
|
21471
|
-
this[property] = data[property];
|
|
21472
|
-
}
|
|
21473
|
-
}
|
|
21474
|
-
if (!data) {
|
|
21475
|
-
this.states = [];
|
|
21476
|
-
}
|
|
21477
|
-
}
|
|
21478
|
-
init(_data) {
|
|
21479
|
-
if (_data) {
|
|
21480
|
-
if (Array.isArray(_data["states"])) {
|
|
21481
|
-
this.states = [];
|
|
21482
|
-
for (let item of _data["states"])
|
|
21483
|
-
this.states.push(StateDto.fromJS(item));
|
|
21484
|
-
}
|
|
21485
|
-
}
|
|
21486
|
-
}
|
|
21487
|
-
static fromJS(data) {
|
|
21488
|
-
data = typeof data === 'object' ? data : {};
|
|
21489
|
-
let result = new MachineStatesSummaryDto();
|
|
21490
|
-
result.init(data);
|
|
21491
|
-
return result;
|
|
21492
|
-
}
|
|
21493
|
-
toJSON(data) {
|
|
21494
|
-
data = typeof data === 'object' ? data : {};
|
|
21495
|
-
if (Array.isArray(this.states)) {
|
|
21496
|
-
data["states"] = [];
|
|
21497
|
-
for (let item of this.states)
|
|
21498
|
-
data["states"].push(item.toJSON());
|
|
21499
|
-
}
|
|
21500
|
-
return data;
|
|
21501
|
-
}
|
|
21502
|
-
}
|
|
21503
|
-
export class StateDto {
|
|
21504
|
-
constructor(data) {
|
|
21505
|
-
if (data) {
|
|
21506
|
-
for (var property in data) {
|
|
21507
|
-
if (data.hasOwnProperty(property))
|
|
21508
|
-
this[property] = data[property];
|
|
21509
|
-
}
|
|
21510
|
-
}
|
|
21511
|
-
}
|
|
21512
|
-
init(_data) {
|
|
21513
|
-
if (_data) {
|
|
21514
|
-
this.state = _data["state"];
|
|
21515
|
-
this.machineState = _data["machineState"];
|
|
21516
|
-
this.seconds = _data["seconds"];
|
|
21517
|
-
}
|
|
21518
|
-
}
|
|
21519
|
-
static fromJS(data) {
|
|
21520
|
-
data = typeof data === 'object' ? data : {};
|
|
21521
|
-
let result = new StateDto();
|
|
21522
|
-
result.init(data);
|
|
21523
|
-
return result;
|
|
21524
|
-
}
|
|
21525
|
-
toJSON(data) {
|
|
21526
|
-
data = typeof data === 'object' ? data : {};
|
|
21527
|
-
data["state"] = this.state;
|
|
21528
|
-
data["machineState"] = this.machineState;
|
|
21529
|
-
data["seconds"] = this.seconds;
|
|
21530
|
-
return data;
|
|
21531
|
-
}
|
|
21532
|
-
}
|
|
21533
20950
|
export class MachineStateDatapoint {
|
|
21534
20951
|
constructor(data) {
|
|
21535
20952
|
if (data) {
|
|
@@ -21617,7 +21034,7 @@ export class DowntimePeriodReasonDto {
|
|
|
21617
21034
|
return data;
|
|
21618
21035
|
}
|
|
21619
21036
|
}
|
|
21620
|
-
export class
|
|
21037
|
+
export class MachineStatesSummaryDto {
|
|
21621
21038
|
constructor(data) {
|
|
21622
21039
|
if (data) {
|
|
21623
21040
|
for (var property in data) {
|
|
@@ -21626,38 +21043,35 @@ export class MachineUptimesAggregateDto {
|
|
|
21626
21043
|
}
|
|
21627
21044
|
}
|
|
21628
21045
|
if (!data) {
|
|
21629
|
-
this.
|
|
21630
|
-
this.sum = new MachineUptimeSumDto();
|
|
21046
|
+
this.states = [];
|
|
21631
21047
|
}
|
|
21632
21048
|
}
|
|
21633
21049
|
init(_data) {
|
|
21634
21050
|
if (_data) {
|
|
21635
|
-
if (Array.isArray(_data["
|
|
21636
|
-
this.
|
|
21637
|
-
for (let item of _data["
|
|
21638
|
-
this.
|
|
21051
|
+
if (Array.isArray(_data["states"])) {
|
|
21052
|
+
this.states = [];
|
|
21053
|
+
for (let item of _data["states"])
|
|
21054
|
+
this.states.push(StateDto.fromJS(item));
|
|
21639
21055
|
}
|
|
21640
|
-
this.sum = _data["sum"] ? MachineUptimeSumDto.fromJS(_data["sum"]) : new MachineUptimeSumDto();
|
|
21641
21056
|
}
|
|
21642
21057
|
}
|
|
21643
21058
|
static fromJS(data) {
|
|
21644
21059
|
data = typeof data === 'object' ? data : {};
|
|
21645
|
-
let result = new
|
|
21060
|
+
let result = new MachineStatesSummaryDto();
|
|
21646
21061
|
result.init(data);
|
|
21647
21062
|
return result;
|
|
21648
21063
|
}
|
|
21649
21064
|
toJSON(data) {
|
|
21650
21065
|
data = typeof data === 'object' ? data : {};
|
|
21651
|
-
if (Array.isArray(this.
|
|
21652
|
-
data["
|
|
21653
|
-
for (let item of this.
|
|
21654
|
-
data["
|
|
21066
|
+
if (Array.isArray(this.states)) {
|
|
21067
|
+
data["states"] = [];
|
|
21068
|
+
for (let item of this.states)
|
|
21069
|
+
data["states"].push(item.toJSON());
|
|
21655
21070
|
}
|
|
21656
|
-
data["sum"] = this.sum ? this.sum.toJSON() : undefined;
|
|
21657
21071
|
return data;
|
|
21658
21072
|
}
|
|
21659
21073
|
}
|
|
21660
|
-
export class
|
|
21074
|
+
export class StateDto {
|
|
21661
21075
|
constructor(data) {
|
|
21662
21076
|
if (data) {
|
|
21663
21077
|
for (var property in data) {
|
|
@@ -21668,26 +21082,26 @@ export class MachineUptimeDto {
|
|
|
21668
21082
|
}
|
|
21669
21083
|
init(_data) {
|
|
21670
21084
|
if (_data) {
|
|
21671
|
-
this.
|
|
21672
|
-
this.
|
|
21673
|
-
this.
|
|
21085
|
+
this.state = _data["state"];
|
|
21086
|
+
this.machineState = _data["machineState"];
|
|
21087
|
+
this.seconds = _data["seconds"];
|
|
21674
21088
|
}
|
|
21675
21089
|
}
|
|
21676
21090
|
static fromJS(data) {
|
|
21677
21091
|
data = typeof data === 'object' ? data : {};
|
|
21678
|
-
let result = new
|
|
21092
|
+
let result = new StateDto();
|
|
21679
21093
|
result.init(data);
|
|
21680
21094
|
return result;
|
|
21681
21095
|
}
|
|
21682
21096
|
toJSON(data) {
|
|
21683
21097
|
data = typeof data === 'object' ? data : {};
|
|
21684
|
-
data["
|
|
21685
|
-
data["
|
|
21686
|
-
data["
|
|
21098
|
+
data["state"] = this.state;
|
|
21099
|
+
data["machineState"] = this.machineState;
|
|
21100
|
+
data["seconds"] = this.seconds;
|
|
21687
21101
|
return data;
|
|
21688
21102
|
}
|
|
21689
21103
|
}
|
|
21690
|
-
export class
|
|
21104
|
+
export class MachineUptimesAggregateDto {
|
|
21691
21105
|
constructor(data) {
|
|
21692
21106
|
if (data) {
|
|
21693
21107
|
for (var property in data) {
|
|
@@ -21695,63 +21109,39 @@ export class MachineUptimeSumDto {
|
|
|
21695
21109
|
this[property] = data[property];
|
|
21696
21110
|
}
|
|
21697
21111
|
}
|
|
21698
|
-
|
|
21699
|
-
|
|
21700
|
-
|
|
21701
|
-
this.percent = _data["percent"];
|
|
21702
|
-
this.numberOfSeconds = _data["numberOfSeconds"];
|
|
21703
|
-
}
|
|
21704
|
-
}
|
|
21705
|
-
static fromJS(data) {
|
|
21706
|
-
data = typeof data === 'object' ? data : {};
|
|
21707
|
-
let result = new MachineUptimeSumDto();
|
|
21708
|
-
result.init(data);
|
|
21709
|
-
return result;
|
|
21710
|
-
}
|
|
21711
|
-
toJSON(data) {
|
|
21712
|
-
data = typeof data === 'object' ? data : {};
|
|
21713
|
-
data["percent"] = this.percent;
|
|
21714
|
-
data["numberOfSeconds"] = this.numberOfSeconds;
|
|
21715
|
-
return data;
|
|
21716
|
-
}
|
|
21717
|
-
}
|
|
21718
|
-
export class ListMachineUptimesTodayRequest {
|
|
21719
|
-
constructor(data) {
|
|
21720
|
-
if (data) {
|
|
21721
|
-
for (var property in data) {
|
|
21722
|
-
if (data.hasOwnProperty(property))
|
|
21723
|
-
this[property] = data[property];
|
|
21724
|
-
}
|
|
21112
|
+
if (!data) {
|
|
21113
|
+
this.machineUptimes = [];
|
|
21114
|
+
this.sum = new MachineUptimeSumDto();
|
|
21725
21115
|
}
|
|
21726
21116
|
}
|
|
21727
21117
|
init(_data) {
|
|
21728
21118
|
if (_data) {
|
|
21729
|
-
if (Array.isArray(_data["
|
|
21730
|
-
this.
|
|
21731
|
-
for (let item of _data["
|
|
21732
|
-
this.
|
|
21119
|
+
if (Array.isArray(_data["machineUptimes"])) {
|
|
21120
|
+
this.machineUptimes = [];
|
|
21121
|
+
for (let item of _data["machineUptimes"])
|
|
21122
|
+
this.machineUptimes.push(MachineUptimeDto.fromJS(item));
|
|
21733
21123
|
}
|
|
21734
|
-
this.
|
|
21124
|
+
this.sum = _data["sum"] ? MachineUptimeSumDto.fromJS(_data["sum"]) : new MachineUptimeSumDto();
|
|
21735
21125
|
}
|
|
21736
21126
|
}
|
|
21737
21127
|
static fromJS(data) {
|
|
21738
21128
|
data = typeof data === 'object' ? data : {};
|
|
21739
|
-
let result = new
|
|
21129
|
+
let result = new MachineUptimesAggregateDto();
|
|
21740
21130
|
result.init(data);
|
|
21741
21131
|
return result;
|
|
21742
21132
|
}
|
|
21743
21133
|
toJSON(data) {
|
|
21744
21134
|
data = typeof data === 'object' ? data : {};
|
|
21745
|
-
if (Array.isArray(this.
|
|
21746
|
-
data["
|
|
21747
|
-
for (let item of this.
|
|
21748
|
-
data["
|
|
21135
|
+
if (Array.isArray(this.machineUptimes)) {
|
|
21136
|
+
data["machineUptimes"] = [];
|
|
21137
|
+
for (let item of this.machineUptimes)
|
|
21138
|
+
data["machineUptimes"].push(item.toJSON());
|
|
21749
21139
|
}
|
|
21750
|
-
data["
|
|
21140
|
+
data["sum"] = this.sum ? this.sum.toJSON() : undefined;
|
|
21751
21141
|
return data;
|
|
21752
21142
|
}
|
|
21753
21143
|
}
|
|
21754
|
-
export class
|
|
21144
|
+
export class MachineUptimeDto {
|
|
21755
21145
|
constructor(data) {
|
|
21756
21146
|
if (data) {
|
|
21757
21147
|
for (var property in data) {
|
|
@@ -21762,30 +21152,26 @@ export class PowerOnUtilizationList {
|
|
|
21762
21152
|
}
|
|
21763
21153
|
init(_data) {
|
|
21764
21154
|
if (_data) {
|
|
21765
|
-
|
|
21766
|
-
|
|
21767
|
-
|
|
21768
|
-
this.machines.push(Machine.fromJS(item));
|
|
21769
|
-
}
|
|
21155
|
+
this.assetExternalId = _data["assetExternalId"];
|
|
21156
|
+
this.percent = _data["percent"];
|
|
21157
|
+
this.numberOfSeconds = _data["numberOfSeconds"];
|
|
21770
21158
|
}
|
|
21771
21159
|
}
|
|
21772
21160
|
static fromJS(data) {
|
|
21773
21161
|
data = typeof data === 'object' ? data : {};
|
|
21774
|
-
let result = new
|
|
21162
|
+
let result = new MachineUptimeDto();
|
|
21775
21163
|
result.init(data);
|
|
21776
21164
|
return result;
|
|
21777
21165
|
}
|
|
21778
21166
|
toJSON(data) {
|
|
21779
21167
|
data = typeof data === 'object' ? data : {};
|
|
21780
|
-
|
|
21781
|
-
|
|
21782
|
-
|
|
21783
|
-
data["machines"].push(item.toJSON());
|
|
21784
|
-
}
|
|
21168
|
+
data["assetExternalId"] = this.assetExternalId;
|
|
21169
|
+
data["percent"] = this.percent;
|
|
21170
|
+
data["numberOfSeconds"] = this.numberOfSeconds;
|
|
21785
21171
|
return data;
|
|
21786
21172
|
}
|
|
21787
21173
|
}
|
|
21788
|
-
export class
|
|
21174
|
+
export class MachineUptimeSumDto {
|
|
21789
21175
|
constructor(data) {
|
|
21790
21176
|
if (data) {
|
|
21791
21177
|
for (var property in data) {
|
|
@@ -21796,38 +21182,24 @@ export class Machine {
|
|
|
21796
21182
|
}
|
|
21797
21183
|
init(_data) {
|
|
21798
21184
|
if (_data) {
|
|
21799
|
-
this.
|
|
21800
|
-
this.
|
|
21801
|
-
this.name = _data["name"];
|
|
21802
|
-
this.description = _data["description"];
|
|
21803
|
-
if (Array.isArray(_data["datapoints"])) {
|
|
21804
|
-
this.datapoints = [];
|
|
21805
|
-
for (let item of _data["datapoints"])
|
|
21806
|
-
this.datapoints.push(NumericNullableValueWithTimestamp.fromJS(item));
|
|
21807
|
-
}
|
|
21185
|
+
this.percent = _data["percent"];
|
|
21186
|
+
this.numberOfSeconds = _data["numberOfSeconds"];
|
|
21808
21187
|
}
|
|
21809
21188
|
}
|
|
21810
21189
|
static fromJS(data) {
|
|
21811
21190
|
data = typeof data === 'object' ? data : {};
|
|
21812
|
-
let result = new
|
|
21191
|
+
let result = new MachineUptimeSumDto();
|
|
21813
21192
|
result.init(data);
|
|
21814
21193
|
return result;
|
|
21815
21194
|
}
|
|
21816
21195
|
toJSON(data) {
|
|
21817
21196
|
data = typeof data === 'object' ? data : {};
|
|
21818
|
-
data["
|
|
21819
|
-
data["
|
|
21820
|
-
data["name"] = this.name;
|
|
21821
|
-
data["description"] = this.description;
|
|
21822
|
-
if (Array.isArray(this.datapoints)) {
|
|
21823
|
-
data["datapoints"] = [];
|
|
21824
|
-
for (let item of this.datapoints)
|
|
21825
|
-
data["datapoints"].push(item.toJSON());
|
|
21826
|
-
}
|
|
21197
|
+
data["percent"] = this.percent;
|
|
21198
|
+
data["numberOfSeconds"] = this.numberOfSeconds;
|
|
21827
21199
|
return data;
|
|
21828
21200
|
}
|
|
21829
21201
|
}
|
|
21830
|
-
export class
|
|
21202
|
+
export class ListMachineUptimesTodayRequest {
|
|
21831
21203
|
constructor(data) {
|
|
21832
21204
|
if (data) {
|
|
21833
21205
|
for (var property in data) {
|
|
@@ -21838,20 +21210,28 @@ export class NumericNullableValueWithTimestamp {
|
|
|
21838
21210
|
}
|
|
21839
21211
|
init(_data) {
|
|
21840
21212
|
if (_data) {
|
|
21841
|
-
|
|
21842
|
-
|
|
21213
|
+
if (Array.isArray(_data["machineExternalIds"])) {
|
|
21214
|
+
this.machineExternalIds = [];
|
|
21215
|
+
for (let item of _data["machineExternalIds"])
|
|
21216
|
+
this.machineExternalIds.push(item);
|
|
21217
|
+
}
|
|
21218
|
+
this.utcOffset = _data["utcOffset"];
|
|
21843
21219
|
}
|
|
21844
21220
|
}
|
|
21845
21221
|
static fromJS(data) {
|
|
21846
21222
|
data = typeof data === 'object' ? data : {};
|
|
21847
|
-
let result = new
|
|
21223
|
+
let result = new ListMachineUptimesTodayRequest();
|
|
21848
21224
|
result.init(data);
|
|
21849
21225
|
return result;
|
|
21850
21226
|
}
|
|
21851
21227
|
toJSON(data) {
|
|
21852
21228
|
data = typeof data === 'object' ? data : {};
|
|
21853
|
-
|
|
21854
|
-
|
|
21229
|
+
if (Array.isArray(this.machineExternalIds)) {
|
|
21230
|
+
data["machineExternalIds"] = [];
|
|
21231
|
+
for (let item of this.machineExternalIds)
|
|
21232
|
+
data["machineExternalIds"].push(item);
|
|
21233
|
+
}
|
|
21234
|
+
data["utcOffset"] = this.utcOffset;
|
|
21855
21235
|
return data;
|
|
21856
21236
|
}
|
|
21857
21237
|
}
|
|
@@ -23275,7 +22655,7 @@ export class CompanyUtilizationDto {
|
|
|
23275
22655
|
}
|
|
23276
22656
|
}
|
|
23277
22657
|
if (!data) {
|
|
23278
|
-
this.companyUtilization = new
|
|
22658
|
+
this.companyUtilization = new UtilizationDetailsDto2();
|
|
23279
22659
|
this.groups = [];
|
|
23280
22660
|
this.ungroupedMachines = [];
|
|
23281
22661
|
}
|
|
@@ -23283,16 +22663,16 @@ export class CompanyUtilizationDto {
|
|
|
23283
22663
|
init(_data) {
|
|
23284
22664
|
if (_data) {
|
|
23285
22665
|
this.utilizationType = _data["utilizationType"];
|
|
23286
|
-
this.companyUtilization = _data["companyUtilization"] ?
|
|
22666
|
+
this.companyUtilization = _data["companyUtilization"] ? UtilizationDetailsDto2.fromJS(_data["companyUtilization"]) : new UtilizationDetailsDto2();
|
|
23287
22667
|
if (Array.isArray(_data["groups"])) {
|
|
23288
22668
|
this.groups = [];
|
|
23289
22669
|
for (let item of _data["groups"])
|
|
23290
|
-
this.groups.push(
|
|
22670
|
+
this.groups.push(MachineGroupUtilizationDto.fromJS(item));
|
|
23291
22671
|
}
|
|
23292
22672
|
if (Array.isArray(_data["ungroupedMachines"])) {
|
|
23293
22673
|
this.ungroupedMachines = [];
|
|
23294
22674
|
for (let item of _data["ungroupedMachines"])
|
|
23295
|
-
this.ungroupedMachines.push(
|
|
22675
|
+
this.ungroupedMachines.push(MachineUtilizationDto.fromJS(item));
|
|
23296
22676
|
}
|
|
23297
22677
|
}
|
|
23298
22678
|
}
|
|
@@ -23319,7 +22699,7 @@ export class CompanyUtilizationDto {
|
|
|
23319
22699
|
return data;
|
|
23320
22700
|
}
|
|
23321
22701
|
}
|
|
23322
|
-
export class
|
|
22702
|
+
export class UtilizationDetailsDto2 {
|
|
23323
22703
|
constructor(data) {
|
|
23324
22704
|
if (data) {
|
|
23325
22705
|
for (var property in data) {
|
|
@@ -23341,7 +22721,7 @@ export class UtilizationDetailsV2Dto {
|
|
|
23341
22721
|
}
|
|
23342
22722
|
static fromJS(data) {
|
|
23343
22723
|
data = typeof data === 'object' ? data : {};
|
|
23344
|
-
let result = new
|
|
22724
|
+
let result = new UtilizationDetailsDto2();
|
|
23345
22725
|
result.init(data);
|
|
23346
22726
|
return result;
|
|
23347
22727
|
}
|
|
@@ -23357,7 +22737,7 @@ export class UtilizationDetailsV2Dto {
|
|
|
23357
22737
|
return data;
|
|
23358
22738
|
}
|
|
23359
22739
|
}
|
|
23360
|
-
export class
|
|
22740
|
+
export class MachineGroupUtilizationDto {
|
|
23361
22741
|
constructor(data) {
|
|
23362
22742
|
if (data) {
|
|
23363
22743
|
for (var property in data) {
|
|
@@ -23366,24 +22746,24 @@ export class MachineGroupUtilizationV2Dto {
|
|
|
23366
22746
|
}
|
|
23367
22747
|
}
|
|
23368
22748
|
if (!data) {
|
|
23369
|
-
this.utilization = new
|
|
22749
|
+
this.utilization = new UtilizationDetailsDto2();
|
|
23370
22750
|
this.machines = [];
|
|
23371
22751
|
}
|
|
23372
22752
|
}
|
|
23373
22753
|
init(_data) {
|
|
23374
22754
|
if (_data) {
|
|
23375
22755
|
this.name = _data["name"];
|
|
23376
|
-
this.utilization = _data["utilization"] ?
|
|
22756
|
+
this.utilization = _data["utilization"] ? UtilizationDetailsDto2.fromJS(_data["utilization"]) : new UtilizationDetailsDto2();
|
|
23377
22757
|
if (Array.isArray(_data["machines"])) {
|
|
23378
22758
|
this.machines = [];
|
|
23379
22759
|
for (let item of _data["machines"])
|
|
23380
|
-
this.machines.push(
|
|
22760
|
+
this.machines.push(MachineUtilizationDto.fromJS(item));
|
|
23381
22761
|
}
|
|
23382
22762
|
}
|
|
23383
22763
|
}
|
|
23384
22764
|
static fromJS(data) {
|
|
23385
22765
|
data = typeof data === 'object' ? data : {};
|
|
23386
|
-
let result = new
|
|
22766
|
+
let result = new MachineGroupUtilizationDto();
|
|
23387
22767
|
result.init(data);
|
|
23388
22768
|
return result;
|
|
23389
22769
|
}
|
|
@@ -23399,7 +22779,7 @@ export class MachineGroupUtilizationV2Dto {
|
|
|
23399
22779
|
return data;
|
|
23400
22780
|
}
|
|
23401
22781
|
}
|
|
23402
|
-
export class
|
|
22782
|
+
export class MachineUtilizationDto {
|
|
23403
22783
|
constructor(data) {
|
|
23404
22784
|
if (data) {
|
|
23405
22785
|
for (var property in data) {
|
|
@@ -23408,7 +22788,7 @@ export class MachineUtilizationV3Dto {
|
|
|
23408
22788
|
}
|
|
23409
22789
|
}
|
|
23410
22790
|
if (!data) {
|
|
23411
|
-
this.utilization = new
|
|
22791
|
+
this.utilization = new UtilizationDetailsDto2();
|
|
23412
22792
|
}
|
|
23413
22793
|
}
|
|
23414
22794
|
init(_data) {
|
|
@@ -23416,12 +22796,12 @@ export class MachineUtilizationV3Dto {
|
|
|
23416
22796
|
this.id = _data["id"];
|
|
23417
22797
|
this.name = _data["name"];
|
|
23418
22798
|
this.description = _data["description"];
|
|
23419
|
-
this.utilization = _data["utilization"] ?
|
|
22799
|
+
this.utilization = _data["utilization"] ? UtilizationDetailsDto2.fromJS(_data["utilization"]) : new UtilizationDetailsDto2();
|
|
23420
22800
|
}
|
|
23421
22801
|
}
|
|
23422
22802
|
static fromJS(data) {
|
|
23423
22803
|
data = typeof data === 'object' ? data : {};
|
|
23424
|
-
let result = new
|
|
22804
|
+
let result = new MachineUtilizationDto();
|
|
23425
22805
|
result.init(data);
|
|
23426
22806
|
return result;
|
|
23427
22807
|
}
|
|
@@ -23443,14 +22823,14 @@ export class CrossCompanyUtilizationDto {
|
|
|
23443
22823
|
}
|
|
23444
22824
|
}
|
|
23445
22825
|
if (!data) {
|
|
23446
|
-
this.crossCompanyUtilization = new
|
|
22826
|
+
this.crossCompanyUtilization = new UtilizationDetailsDto2();
|
|
23447
22827
|
this.companies = [];
|
|
23448
22828
|
}
|
|
23449
22829
|
}
|
|
23450
22830
|
init(_data) {
|
|
23451
22831
|
if (_data) {
|
|
23452
22832
|
this.utilizationType = _data["utilizationType"];
|
|
23453
|
-
this.crossCompanyUtilization = _data["crossCompanyUtilization"] ?
|
|
22833
|
+
this.crossCompanyUtilization = _data["crossCompanyUtilization"] ? UtilizationDetailsDto2.fromJS(_data["crossCompanyUtilization"]) : new UtilizationDetailsDto2();
|
|
23454
22834
|
if (Array.isArray(_data["companies"])) {
|
|
23455
22835
|
this.companies = [];
|
|
23456
22836
|
for (let item of _data["companies"])
|
|
@@ -23584,6 +22964,34 @@ export class MachineUtilizationDatapointListDto extends UtilizationDatapointList
|
|
|
23584
22964
|
return data;
|
|
23585
22965
|
}
|
|
23586
22966
|
}
|
|
22967
|
+
export class NumericNullableValueWithTimestamp {
|
|
22968
|
+
constructor(data) {
|
|
22969
|
+
if (data) {
|
|
22970
|
+
for (var property in data) {
|
|
22971
|
+
if (data.hasOwnProperty(property))
|
|
22972
|
+
this[property] = data[property];
|
|
22973
|
+
}
|
|
22974
|
+
}
|
|
22975
|
+
}
|
|
22976
|
+
init(_data) {
|
|
22977
|
+
if (_data) {
|
|
22978
|
+
this.timestamp = _data["timestamp"];
|
|
22979
|
+
this.value = _data["value"];
|
|
22980
|
+
}
|
|
22981
|
+
}
|
|
22982
|
+
static fromJS(data) {
|
|
22983
|
+
data = typeof data === 'object' ? data : {};
|
|
22984
|
+
let result = new NumericNullableValueWithTimestamp();
|
|
22985
|
+
result.init(data);
|
|
22986
|
+
return result;
|
|
22987
|
+
}
|
|
22988
|
+
toJSON(data) {
|
|
22989
|
+
data = typeof data === 'object' ? data : {};
|
|
22990
|
+
data["timestamp"] = this.timestamp;
|
|
22991
|
+
data["value"] = this.value;
|
|
22992
|
+
return data;
|
|
22993
|
+
}
|
|
22994
|
+
}
|
|
23587
22995
|
export class CompanyUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
23588
22996
|
constructor(data) {
|
|
23589
22997
|
super(data);
|
|
@@ -28462,372 +27870,6 @@ export class WorkOrderProjectDto {
|
|
|
28462
27870
|
return data;
|
|
28463
27871
|
}
|
|
28464
27872
|
}
|
|
28465
|
-
export class UtilizationSummaryDto {
|
|
28466
|
-
constructor(data) {
|
|
28467
|
-
if (data) {
|
|
28468
|
-
for (var property in data) {
|
|
28469
|
-
if (data.hasOwnProperty(property))
|
|
28470
|
-
this[property] = data[property];
|
|
28471
|
-
}
|
|
28472
|
-
}
|
|
28473
|
-
if (!data) {
|
|
28474
|
-
this.factory = new FactoryUtilizationDto();
|
|
28475
|
-
this.groups = [];
|
|
28476
|
-
this.ungroupedMachines = [];
|
|
28477
|
-
}
|
|
28478
|
-
}
|
|
28479
|
-
init(_data) {
|
|
28480
|
-
if (_data) {
|
|
28481
|
-
this.factory = _data["factory"] ? FactoryUtilizationDto.fromJS(_data["factory"]) : new FactoryUtilizationDto();
|
|
28482
|
-
if (Array.isArray(_data["groups"])) {
|
|
28483
|
-
this.groups = [];
|
|
28484
|
-
for (let item of _data["groups"])
|
|
28485
|
-
this.groups.push(MachineGroupUtilizationDto.fromJS(item));
|
|
28486
|
-
}
|
|
28487
|
-
if (Array.isArray(_data["ungroupedMachines"])) {
|
|
28488
|
-
this.ungroupedMachines = [];
|
|
28489
|
-
for (let item of _data["ungroupedMachines"])
|
|
28490
|
-
this.ungroupedMachines.push(MachineUtilizationV2Dto.fromJS(item));
|
|
28491
|
-
}
|
|
28492
|
-
}
|
|
28493
|
-
}
|
|
28494
|
-
static fromJS(data) {
|
|
28495
|
-
data = typeof data === 'object' ? data : {};
|
|
28496
|
-
let result = new UtilizationSummaryDto();
|
|
28497
|
-
result.init(data);
|
|
28498
|
-
return result;
|
|
28499
|
-
}
|
|
28500
|
-
toJSON(data) {
|
|
28501
|
-
data = typeof data === 'object' ? data : {};
|
|
28502
|
-
data["factory"] = this.factory ? this.factory.toJSON() : undefined;
|
|
28503
|
-
if (Array.isArray(this.groups)) {
|
|
28504
|
-
data["groups"] = [];
|
|
28505
|
-
for (let item of this.groups)
|
|
28506
|
-
data["groups"].push(item.toJSON());
|
|
28507
|
-
}
|
|
28508
|
-
if (Array.isArray(this.ungroupedMachines)) {
|
|
28509
|
-
data["ungroupedMachines"] = [];
|
|
28510
|
-
for (let item of this.ungroupedMachines)
|
|
28511
|
-
data["ungroupedMachines"].push(item.toJSON());
|
|
28512
|
-
}
|
|
28513
|
-
return data;
|
|
28514
|
-
}
|
|
28515
|
-
}
|
|
28516
|
-
export class FactoryUtilizationDto {
|
|
28517
|
-
constructor(data) {
|
|
28518
|
-
if (data) {
|
|
28519
|
-
for (var property in data) {
|
|
28520
|
-
if (data.hasOwnProperty(property))
|
|
28521
|
-
this[property] = data[property];
|
|
28522
|
-
}
|
|
28523
|
-
}
|
|
28524
|
-
if (!data) {
|
|
28525
|
-
this.utilization = new UtilizationDto();
|
|
28526
|
-
}
|
|
28527
|
-
}
|
|
28528
|
-
init(_data) {
|
|
28529
|
-
if (_data) {
|
|
28530
|
-
this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
|
|
28531
|
-
}
|
|
28532
|
-
}
|
|
28533
|
-
static fromJS(data) {
|
|
28534
|
-
data = typeof data === 'object' ? data : {};
|
|
28535
|
-
let result = new FactoryUtilizationDto();
|
|
28536
|
-
result.init(data);
|
|
28537
|
-
return result;
|
|
28538
|
-
}
|
|
28539
|
-
toJSON(data) {
|
|
28540
|
-
data = typeof data === 'object' ? data : {};
|
|
28541
|
-
data["utilization"] = this.utilization ? this.utilization.toJSON() : undefined;
|
|
28542
|
-
return data;
|
|
28543
|
-
}
|
|
28544
|
-
}
|
|
28545
|
-
export class UtilizationDto {
|
|
28546
|
-
constructor(data) {
|
|
28547
|
-
if (data) {
|
|
28548
|
-
for (var property in data) {
|
|
28549
|
-
if (data.hasOwnProperty(property))
|
|
28550
|
-
this[property] = data[property];
|
|
28551
|
-
}
|
|
28552
|
-
}
|
|
28553
|
-
if (!data) {
|
|
28554
|
-
this.powerOn = new PowerOnUtilizationV2Dto();
|
|
28555
|
-
this.uptimeDowntimes = new UptimeDowntimesDto();
|
|
28556
|
-
this.twentyFourSeven = new TwentyFourSevenUtilizationDto();
|
|
28557
|
-
}
|
|
28558
|
-
}
|
|
28559
|
-
init(_data) {
|
|
28560
|
-
if (_data) {
|
|
28561
|
-
this.powerOn = _data["powerOn"] ? PowerOnUtilizationV2Dto.fromJS(_data["powerOn"]) : new PowerOnUtilizationV2Dto();
|
|
28562
|
-
this.uptimeDowntimes = _data["uptimeDowntimes"] ? UptimeDowntimesDto.fromJS(_data["uptimeDowntimes"]) : new UptimeDowntimesDto();
|
|
28563
|
-
this.twentyFourSeven = _data["twentyFourSeven"] ? TwentyFourSevenUtilizationDto.fromJS(_data["twentyFourSeven"]) : new TwentyFourSevenUtilizationDto();
|
|
28564
|
-
}
|
|
28565
|
-
}
|
|
28566
|
-
static fromJS(data) {
|
|
28567
|
-
data = typeof data === 'object' ? data : {};
|
|
28568
|
-
let result = new UtilizationDto();
|
|
28569
|
-
result.init(data);
|
|
28570
|
-
return result;
|
|
28571
|
-
}
|
|
28572
|
-
toJSON(data) {
|
|
28573
|
-
data = typeof data === 'object' ? data : {};
|
|
28574
|
-
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : undefined;
|
|
28575
|
-
data["uptimeDowntimes"] = this.uptimeDowntimes ? this.uptimeDowntimes.toJSON() : undefined;
|
|
28576
|
-
data["twentyFourSeven"] = this.twentyFourSeven ? this.twentyFourSeven.toJSON() : undefined;
|
|
28577
|
-
return data;
|
|
28578
|
-
}
|
|
28579
|
-
}
|
|
28580
|
-
export class PowerOnUtilizationV2Dto {
|
|
28581
|
-
constructor(data) {
|
|
28582
|
-
if (data) {
|
|
28583
|
-
for (var property in data) {
|
|
28584
|
-
if (data.hasOwnProperty(property))
|
|
28585
|
-
this[property] = data[property];
|
|
28586
|
-
}
|
|
28587
|
-
}
|
|
28588
|
-
}
|
|
28589
|
-
init(_data) {
|
|
28590
|
-
if (_data) {
|
|
28591
|
-
this.today = _data["today"];
|
|
28592
|
-
this.sevenDays = _data["sevenDays"];
|
|
28593
|
-
this.thirtyDays = _data["thirtyDays"];
|
|
28594
|
-
this.ninetyDays = _data["ninetyDays"];
|
|
28595
|
-
this.yearToDate = _data["yearToDate"];
|
|
28596
|
-
}
|
|
28597
|
-
}
|
|
28598
|
-
static fromJS(data) {
|
|
28599
|
-
data = typeof data === 'object' ? data : {};
|
|
28600
|
-
let result = new PowerOnUtilizationV2Dto();
|
|
28601
|
-
result.init(data);
|
|
28602
|
-
return result;
|
|
28603
|
-
}
|
|
28604
|
-
toJSON(data) {
|
|
28605
|
-
data = typeof data === 'object' ? data : {};
|
|
28606
|
-
data["today"] = this.today;
|
|
28607
|
-
data["sevenDays"] = this.sevenDays;
|
|
28608
|
-
data["thirtyDays"] = this.thirtyDays;
|
|
28609
|
-
data["ninetyDays"] = this.ninetyDays;
|
|
28610
|
-
data["yearToDate"] = this.yearToDate;
|
|
28611
|
-
return data;
|
|
28612
|
-
}
|
|
28613
|
-
}
|
|
28614
|
-
export class UptimeDowntimesDto {
|
|
28615
|
-
constructor(data) {
|
|
28616
|
-
if (data) {
|
|
28617
|
-
for (var property in data) {
|
|
28618
|
-
if (data.hasOwnProperty(property))
|
|
28619
|
-
this[property] = data[property];
|
|
28620
|
-
}
|
|
28621
|
-
}
|
|
28622
|
-
}
|
|
28623
|
-
init(_data) {
|
|
28624
|
-
if (_data) {
|
|
28625
|
-
this.today = _data["today"] ? UptimeDowntimeDto.fromJS(_data["today"]) : undefined;
|
|
28626
|
-
this.sevenDays = _data["sevenDays"] ? UptimeDowntimeDto.fromJS(_data["sevenDays"]) : undefined;
|
|
28627
|
-
this.thirtyDays = _data["thirtyDays"] ? UptimeDowntimeDto.fromJS(_data["thirtyDays"]) : undefined;
|
|
28628
|
-
this.ninetyDays = _data["ninetyDays"] ? UptimeDowntimeDto.fromJS(_data["ninetyDays"]) : undefined;
|
|
28629
|
-
this.yearToDate = _data["yearToDate"] ? UptimeDowntimeDto.fromJS(_data["yearToDate"]) : undefined;
|
|
28630
|
-
this.total = _data["total"] ? UptimeDowntimeDto.fromJS(_data["total"]) : undefined;
|
|
28631
|
-
}
|
|
28632
|
-
}
|
|
28633
|
-
static fromJS(data) {
|
|
28634
|
-
data = typeof data === 'object' ? data : {};
|
|
28635
|
-
let result = new UptimeDowntimesDto();
|
|
28636
|
-
result.init(data);
|
|
28637
|
-
return result;
|
|
28638
|
-
}
|
|
28639
|
-
toJSON(data) {
|
|
28640
|
-
data = typeof data === 'object' ? data : {};
|
|
28641
|
-
data["today"] = this.today ? this.today.toJSON() : undefined;
|
|
28642
|
-
data["sevenDays"] = this.sevenDays ? this.sevenDays.toJSON() : undefined;
|
|
28643
|
-
data["thirtyDays"] = this.thirtyDays ? this.thirtyDays.toJSON() : undefined;
|
|
28644
|
-
data["ninetyDays"] = this.ninetyDays ? this.ninetyDays.toJSON() : undefined;
|
|
28645
|
-
data["yearToDate"] = this.yearToDate ? this.yearToDate.toJSON() : undefined;
|
|
28646
|
-
data["total"] = this.total ? this.total.toJSON() : undefined;
|
|
28647
|
-
return data;
|
|
28648
|
-
}
|
|
28649
|
-
}
|
|
28650
|
-
export class UptimeDowntimeDto {
|
|
28651
|
-
constructor(data) {
|
|
28652
|
-
if (data) {
|
|
28653
|
-
for (var property in data) {
|
|
28654
|
-
if (data.hasOwnProperty(property))
|
|
28655
|
-
this[property] = data[property];
|
|
28656
|
-
}
|
|
28657
|
-
}
|
|
28658
|
-
}
|
|
28659
|
-
init(_data) {
|
|
28660
|
-
if (_data) {
|
|
28661
|
-
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
28662
|
-
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
28663
|
-
this.powerOnTimeInSeconds = _data["powerOnTimeInSeconds"];
|
|
28664
|
-
this.twentyFourSevenTimeInSeconds = _data["twentyFourSevenTimeInSeconds"];
|
|
28665
|
-
}
|
|
28666
|
-
}
|
|
28667
|
-
static fromJS(data) {
|
|
28668
|
-
data = typeof data === 'object' ? data : {};
|
|
28669
|
-
let result = new UptimeDowntimeDto();
|
|
28670
|
-
result.init(data);
|
|
28671
|
-
return result;
|
|
28672
|
-
}
|
|
28673
|
-
toJSON(data) {
|
|
28674
|
-
data = typeof data === 'object' ? data : {};
|
|
28675
|
-
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
28676
|
-
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
28677
|
-
data["powerOnTimeInSeconds"] = this.powerOnTimeInSeconds;
|
|
28678
|
-
data["twentyFourSevenTimeInSeconds"] = this.twentyFourSevenTimeInSeconds;
|
|
28679
|
-
return data;
|
|
28680
|
-
}
|
|
28681
|
-
}
|
|
28682
|
-
export class TwentyFourSevenUtilizationDto {
|
|
28683
|
-
constructor(data) {
|
|
28684
|
-
if (data) {
|
|
28685
|
-
for (var property in data) {
|
|
28686
|
-
if (data.hasOwnProperty(property))
|
|
28687
|
-
this[property] = data[property];
|
|
28688
|
-
}
|
|
28689
|
-
}
|
|
28690
|
-
}
|
|
28691
|
-
init(_data) {
|
|
28692
|
-
if (_data) {
|
|
28693
|
-
this.sevenDays = _data["sevenDays"];
|
|
28694
|
-
this.thirtyDays = _data["thirtyDays"];
|
|
28695
|
-
this.ninetyDays = _data["ninetyDays"];
|
|
28696
|
-
this.yearToDate = _data["yearToDate"];
|
|
28697
|
-
}
|
|
28698
|
-
}
|
|
28699
|
-
static fromJS(data) {
|
|
28700
|
-
data = typeof data === 'object' ? data : {};
|
|
28701
|
-
let result = new TwentyFourSevenUtilizationDto();
|
|
28702
|
-
result.init(data);
|
|
28703
|
-
return result;
|
|
28704
|
-
}
|
|
28705
|
-
toJSON(data) {
|
|
28706
|
-
data = typeof data === 'object' ? data : {};
|
|
28707
|
-
data["sevenDays"] = this.sevenDays;
|
|
28708
|
-
data["thirtyDays"] = this.thirtyDays;
|
|
28709
|
-
data["ninetyDays"] = this.ninetyDays;
|
|
28710
|
-
data["yearToDate"] = this.yearToDate;
|
|
28711
|
-
return data;
|
|
28712
|
-
}
|
|
28713
|
-
}
|
|
28714
|
-
export class MachineGroupUtilizationDto {
|
|
28715
|
-
constructor(data) {
|
|
28716
|
-
if (data) {
|
|
28717
|
-
for (var property in data) {
|
|
28718
|
-
if (data.hasOwnProperty(property))
|
|
28719
|
-
this[property] = data[property];
|
|
28720
|
-
}
|
|
28721
|
-
}
|
|
28722
|
-
if (!data) {
|
|
28723
|
-
this.utilization = new UtilizationDto();
|
|
28724
|
-
this.machines = [];
|
|
28725
|
-
}
|
|
28726
|
-
}
|
|
28727
|
-
init(_data) {
|
|
28728
|
-
if (_data) {
|
|
28729
|
-
this.name = _data["name"];
|
|
28730
|
-
this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
|
|
28731
|
-
if (Array.isArray(_data["machines"])) {
|
|
28732
|
-
this.machines = [];
|
|
28733
|
-
for (let item of _data["machines"])
|
|
28734
|
-
this.machines.push(MachineUtilizationV2Dto.fromJS(item));
|
|
28735
|
-
}
|
|
28736
|
-
}
|
|
28737
|
-
}
|
|
28738
|
-
static fromJS(data) {
|
|
28739
|
-
data = typeof data === 'object' ? data : {};
|
|
28740
|
-
let result = new MachineGroupUtilizationDto();
|
|
28741
|
-
result.init(data);
|
|
28742
|
-
return result;
|
|
28743
|
-
}
|
|
28744
|
-
toJSON(data) {
|
|
28745
|
-
data = typeof data === 'object' ? data : {};
|
|
28746
|
-
data["name"] = this.name;
|
|
28747
|
-
data["utilization"] = this.utilization ? this.utilization.toJSON() : undefined;
|
|
28748
|
-
if (Array.isArray(this.machines)) {
|
|
28749
|
-
data["machines"] = [];
|
|
28750
|
-
for (let item of this.machines)
|
|
28751
|
-
data["machines"].push(item.toJSON());
|
|
28752
|
-
}
|
|
28753
|
-
return data;
|
|
28754
|
-
}
|
|
28755
|
-
}
|
|
28756
|
-
export class MachineUtilizationV2Dto {
|
|
28757
|
-
constructor(data) {
|
|
28758
|
-
if (data) {
|
|
28759
|
-
for (var property in data) {
|
|
28760
|
-
if (data.hasOwnProperty(property))
|
|
28761
|
-
this[property] = data[property];
|
|
28762
|
-
}
|
|
28763
|
-
}
|
|
28764
|
-
if (!data) {
|
|
28765
|
-
this.utilization = new UtilizationDto();
|
|
28766
|
-
}
|
|
28767
|
-
}
|
|
28768
|
-
init(_data) {
|
|
28769
|
-
if (_data) {
|
|
28770
|
-
this.id = _data["id"];
|
|
28771
|
-
this.name = _data["name"];
|
|
28772
|
-
this.description = _data["description"];
|
|
28773
|
-
this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
|
|
28774
|
-
}
|
|
28775
|
-
}
|
|
28776
|
-
static fromJS(data) {
|
|
28777
|
-
data = typeof data === 'object' ? data : {};
|
|
28778
|
-
let result = new MachineUtilizationV2Dto();
|
|
28779
|
-
result.init(data);
|
|
28780
|
-
return result;
|
|
28781
|
-
}
|
|
28782
|
-
toJSON(data) {
|
|
28783
|
-
data = typeof data === 'object' ? data : {};
|
|
28784
|
-
data["id"] = this.id;
|
|
28785
|
-
data["name"] = this.name;
|
|
28786
|
-
data["description"] = this.description;
|
|
28787
|
-
data["utilization"] = this.utilization ? this.utilization.toJSON() : undefined;
|
|
28788
|
-
return data;
|
|
28789
|
-
}
|
|
28790
|
-
}
|
|
28791
|
-
export class CrossCompanyUtilizationSummaryDto {
|
|
28792
|
-
constructor(data) {
|
|
28793
|
-
if (data) {
|
|
28794
|
-
for (var property in data) {
|
|
28795
|
-
if (data.hasOwnProperty(property))
|
|
28796
|
-
this[property] = data[property];
|
|
28797
|
-
}
|
|
28798
|
-
}
|
|
28799
|
-
if (!data) {
|
|
28800
|
-
this.crossCompany = new FactoryUtilizationDto();
|
|
28801
|
-
this.companies = [];
|
|
28802
|
-
}
|
|
28803
|
-
}
|
|
28804
|
-
init(_data) {
|
|
28805
|
-
if (_data) {
|
|
28806
|
-
this.crossCompany = _data["crossCompany"] ? FactoryUtilizationDto.fromJS(_data["crossCompany"]) : new FactoryUtilizationDto();
|
|
28807
|
-
if (Array.isArray(_data["companies"])) {
|
|
28808
|
-
this.companies = [];
|
|
28809
|
-
for (let item of _data["companies"])
|
|
28810
|
-
this.companies.push(MachineGroupUtilizationDto.fromJS(item));
|
|
28811
|
-
}
|
|
28812
|
-
}
|
|
28813
|
-
}
|
|
28814
|
-
static fromJS(data) {
|
|
28815
|
-
data = typeof data === 'object' ? data : {};
|
|
28816
|
-
let result = new CrossCompanyUtilizationSummaryDto();
|
|
28817
|
-
result.init(data);
|
|
28818
|
-
return result;
|
|
28819
|
-
}
|
|
28820
|
-
toJSON(data) {
|
|
28821
|
-
data = typeof data === 'object' ? data : {};
|
|
28822
|
-
data["crossCompany"] = this.crossCompany ? this.crossCompany.toJSON() : undefined;
|
|
28823
|
-
if (Array.isArray(this.companies)) {
|
|
28824
|
-
data["companies"] = [];
|
|
28825
|
-
for (let item of this.companies)
|
|
28826
|
-
data["companies"].push(item.toJSON());
|
|
28827
|
-
}
|
|
28828
|
-
return data;
|
|
28829
|
-
}
|
|
28830
|
-
}
|
|
28831
27873
|
export class OperatorAndMachineDto {
|
|
28832
27874
|
constructor(data) {
|
|
28833
27875
|
if (data) {
|
|
@@ -38790,6 +37832,43 @@ export class UpdateSchemaGroupedElementRowDto {
|
|
|
38790
37832
|
return data;
|
|
38791
37833
|
}
|
|
38792
37834
|
}
|
|
37835
|
+
export class DeleteSchemaGroupedElementRowsDto {
|
|
37836
|
+
constructor(data) {
|
|
37837
|
+
if (data) {
|
|
37838
|
+
for (var property in data) {
|
|
37839
|
+
if (data.hasOwnProperty(property))
|
|
37840
|
+
this[property] = data[property];
|
|
37841
|
+
}
|
|
37842
|
+
}
|
|
37843
|
+
if (!data) {
|
|
37844
|
+
this.balloonIds = [];
|
|
37845
|
+
}
|
|
37846
|
+
}
|
|
37847
|
+
init(_data) {
|
|
37848
|
+
if (_data) {
|
|
37849
|
+
if (Array.isArray(_data["balloonIds"])) {
|
|
37850
|
+
this.balloonIds = [];
|
|
37851
|
+
for (let item of _data["balloonIds"])
|
|
37852
|
+
this.balloonIds.push(item);
|
|
37853
|
+
}
|
|
37854
|
+
}
|
|
37855
|
+
}
|
|
37856
|
+
static fromJS(data) {
|
|
37857
|
+
data = typeof data === 'object' ? data : {};
|
|
37858
|
+
let result = new DeleteSchemaGroupedElementRowsDto();
|
|
37859
|
+
result.init(data);
|
|
37860
|
+
return result;
|
|
37861
|
+
}
|
|
37862
|
+
toJSON(data) {
|
|
37863
|
+
data = typeof data === 'object' ? data : {};
|
|
37864
|
+
if (Array.isArray(this.balloonIds)) {
|
|
37865
|
+
data["balloonIds"] = [];
|
|
37866
|
+
for (let item of this.balloonIds)
|
|
37867
|
+
data["balloonIds"].push(item);
|
|
37868
|
+
}
|
|
37869
|
+
return data;
|
|
37870
|
+
}
|
|
37871
|
+
}
|
|
38793
37872
|
export class UploadMeasurementImageRequest {
|
|
38794
37873
|
constructor(data) {
|
|
38795
37874
|
if (data) {
|
|
@@ -42414,6 +41493,38 @@ export class UpsertCustomerOrderRequest {
|
|
|
42414
41493
|
return data;
|
|
42415
41494
|
}
|
|
42416
41495
|
}
|
|
41496
|
+
export class CustomerDto {
|
|
41497
|
+
constructor(data) {
|
|
41498
|
+
if (data) {
|
|
41499
|
+
for (var property in data) {
|
|
41500
|
+
if (data.hasOwnProperty(property))
|
|
41501
|
+
this[property] = data[property];
|
|
41502
|
+
}
|
|
41503
|
+
}
|
|
41504
|
+
}
|
|
41505
|
+
init(_data) {
|
|
41506
|
+
if (_data) {
|
|
41507
|
+
this.id = _data["id"];
|
|
41508
|
+
this.name = _data["name"];
|
|
41509
|
+
this.groupId = _data["groupId"];
|
|
41510
|
+
this.groupName = _data["groupName"];
|
|
41511
|
+
}
|
|
41512
|
+
}
|
|
41513
|
+
static fromJS(data) {
|
|
41514
|
+
data = typeof data === 'object' ? data : {};
|
|
41515
|
+
let result = new CustomerDto();
|
|
41516
|
+
result.init(data);
|
|
41517
|
+
return result;
|
|
41518
|
+
}
|
|
41519
|
+
toJSON(data) {
|
|
41520
|
+
data = typeof data === 'object' ? data : {};
|
|
41521
|
+
data["id"] = this.id;
|
|
41522
|
+
data["name"] = this.name;
|
|
41523
|
+
data["groupId"] = this.groupId;
|
|
41524
|
+
data["groupName"] = this.groupName;
|
|
41525
|
+
return data;
|
|
41526
|
+
}
|
|
41527
|
+
}
|
|
42417
41528
|
export class CustomerOrderLineDto {
|
|
42418
41529
|
constructor(data) {
|
|
42419
41530
|
if (data) {
|