@ignos/api-client 20250320.0.11395-alpha → 20250320.0.11399
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 +408 -79
- package/lib/ignosportal-api.js +1054 -125
- package/package.json +1 -1
- package/src/ignosportal-api.ts +1447 -220
package/src/ignosportal-api.ts
CHANGED
|
@@ -684,13 +684,38 @@ export class PresentationClient extends AuthorizedApiBase implements IPresentati
|
|
|
684
684
|
|
|
685
685
|
export interface IMachineUtilizationClient {
|
|
686
686
|
|
|
687
|
+
/**
|
|
688
|
+
* Get machine utilization data. Historic utilizations start from now, whereas the start for current utilization is
|
|
689
|
+
calculated based on startTimeToday or utcOffset. An UTC offset is
|
|
690
|
+
obtained either from startTimeToday, utcOffset or the server's local
|
|
691
|
+
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
692
|
+
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
693
|
+
client and server
|
|
694
|
+
* @param assetId (optional)
|
|
695
|
+
* @param favorites (optional)
|
|
696
|
+
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
697
|
+
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
698
|
+
*/
|
|
699
|
+
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto>;
|
|
700
|
+
|
|
687
701
|
getMachineUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto>;
|
|
688
702
|
|
|
703
|
+
/**
|
|
704
|
+
* @param startTime (optional)
|
|
705
|
+
* @param endTime (optional)
|
|
706
|
+
* @deprecated
|
|
707
|
+
*/
|
|
708
|
+
getUtilizationDetailsForMachine(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
709
|
+
|
|
689
710
|
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
690
711
|
|
|
691
712
|
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
692
713
|
|
|
693
714
|
listMachineUptimesToday(request: ListMachineUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
|
|
715
|
+
|
|
716
|
+
listPowerOnUtilizationDatapoints(id: number | null | undefined, externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList>;
|
|
717
|
+
|
|
718
|
+
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
694
719
|
}
|
|
695
720
|
|
|
696
721
|
export class MachineUtilizationClient extends AuthorizedApiBase implements IMachineUtilizationClient {
|
|
@@ -704,6 +729,64 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
704
729
|
this.baseUrl = baseUrl ?? "";
|
|
705
730
|
}
|
|
706
731
|
|
|
732
|
+
/**
|
|
733
|
+
* Get machine utilization data. Historic utilizations start from now, whereas the start for current utilization is
|
|
734
|
+
calculated based on startTimeToday or utcOffset. An UTC offset is
|
|
735
|
+
obtained either from startTimeToday, utcOffset or the server's local
|
|
736
|
+
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
737
|
+
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
738
|
+
client and server
|
|
739
|
+
* @param assetId (optional)
|
|
740
|
+
* @param favorites (optional)
|
|
741
|
+
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
742
|
+
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
743
|
+
*/
|
|
744
|
+
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto> {
|
|
745
|
+
let url_ = this.baseUrl + "/machineutilization?";
|
|
746
|
+
if (assetId !== undefined && assetId !== null)
|
|
747
|
+
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
748
|
+
if (favorites === null)
|
|
749
|
+
throw new Error("The parameter 'favorites' cannot be null.");
|
|
750
|
+
else if (favorites !== undefined)
|
|
751
|
+
url_ += "favorites=" + encodeURIComponent("" + favorites) + "&";
|
|
752
|
+
if (startTimeToday !== undefined && startTimeToday !== null)
|
|
753
|
+
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
754
|
+
if (utcOffset !== undefined && utcOffset !== null)
|
|
755
|
+
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
756
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
757
|
+
|
|
758
|
+
let options_: RequestInit = {
|
|
759
|
+
method: "GET",
|
|
760
|
+
headers: {
|
|
761
|
+
"Accept": "application/json"
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
766
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
767
|
+
}).then((_response: Response) => {
|
|
768
|
+
return this.processGetMachineUtilizations(_response);
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
protected processGetMachineUtilizations(response: Response): Promise<UtilizationListDto> {
|
|
773
|
+
const status = response.status;
|
|
774
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
775
|
+
if (status === 200) {
|
|
776
|
+
return response.text().then((_responseText) => {
|
|
777
|
+
let result200: any = null;
|
|
778
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
779
|
+
result200 = UtilizationListDto.fromJS(resultData200);
|
|
780
|
+
return result200;
|
|
781
|
+
});
|
|
782
|
+
} else if (status !== 200 && status !== 204) {
|
|
783
|
+
return response.text().then((_responseText) => {
|
|
784
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
return Promise.resolve<UtilizationListDto>(null as any);
|
|
788
|
+
}
|
|
789
|
+
|
|
707
790
|
getMachineUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto> {
|
|
708
791
|
let url_ = this.baseUrl + "/machineutilization/{id}?";
|
|
709
792
|
if (id === undefined || id === null)
|
|
@@ -749,6 +832,54 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
749
832
|
return Promise.resolve<UtilizationDetailsDto>(null as any);
|
|
750
833
|
}
|
|
751
834
|
|
|
835
|
+
/**
|
|
836
|
+
* @param startTime (optional)
|
|
837
|
+
* @param endTime (optional)
|
|
838
|
+
* @deprecated
|
|
839
|
+
*/
|
|
840
|
+
getUtilizationDetailsForMachine(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
841
|
+
let url_ = this.baseUrl + "/machineutilization/{id}/utilization?";
|
|
842
|
+
if (id === undefined || id === null)
|
|
843
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
844
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
845
|
+
if (startTime !== undefined && startTime !== null)
|
|
846
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
847
|
+
if (endTime !== undefined && endTime !== null)
|
|
848
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
849
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
850
|
+
|
|
851
|
+
let options_: RequestInit = {
|
|
852
|
+
method: "GET",
|
|
853
|
+
headers: {
|
|
854
|
+
"Accept": "application/json"
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
859
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
860
|
+
}).then((_response: Response) => {
|
|
861
|
+
return this.processGetUtilizationDetailsForMachine(_response);
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
protected processGetUtilizationDetailsForMachine(response: Response): Promise<MachineStatesSummaryDto> {
|
|
866
|
+
const status = response.status;
|
|
867
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
868
|
+
if (status === 200) {
|
|
869
|
+
return response.text().then((_responseText) => {
|
|
870
|
+
let result200: any = null;
|
|
871
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
872
|
+
result200 = MachineStatesSummaryDto.fromJS(resultData200);
|
|
873
|
+
return result200;
|
|
874
|
+
});
|
|
875
|
+
} else if (status !== 200 && status !== 204) {
|
|
876
|
+
return response.text().then((_responseText) => {
|
|
877
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
return Promise.resolve<MachineStatesSummaryDto>(null as any);
|
|
881
|
+
}
|
|
882
|
+
|
|
752
883
|
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
753
884
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
|
|
754
885
|
if (id === undefined || id === null)
|
|
@@ -878,6 +1009,88 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
878
1009
|
}
|
|
879
1010
|
return Promise.resolve<MachineUptimesAggregateDto>(null as any);
|
|
880
1011
|
}
|
|
1012
|
+
|
|
1013
|
+
listPowerOnUtilizationDatapoints(id: number | null | undefined, externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList> {
|
|
1014
|
+
let url_ = this.baseUrl + "/machineutilization/power-on/datapoints?";
|
|
1015
|
+
if (id !== undefined && id !== null)
|
|
1016
|
+
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
1017
|
+
if (externalId !== undefined && externalId !== null)
|
|
1018
|
+
url_ += "externalId=" + encodeURIComponent("" + externalId) + "&";
|
|
1019
|
+
if (nDays !== undefined && nDays !== null)
|
|
1020
|
+
url_ += "nDays=" + encodeURIComponent("" + nDays) + "&";
|
|
1021
|
+
if (startTime !== undefined && startTime !== null)
|
|
1022
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
1023
|
+
if (endTime !== undefined && endTime !== null)
|
|
1024
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
1025
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1026
|
+
|
|
1027
|
+
let options_: RequestInit = {
|
|
1028
|
+
method: "GET",
|
|
1029
|
+
headers: {
|
|
1030
|
+
"Accept": "application/json"
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
1033
|
+
|
|
1034
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1035
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1036
|
+
}).then((_response: Response) => {
|
|
1037
|
+
return this.processListPowerOnUtilizationDatapoints(_response);
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
protected processListPowerOnUtilizationDatapoints(response: Response): Promise<PowerOnUtilizationList> {
|
|
1042
|
+
const status = response.status;
|
|
1043
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1044
|
+
if (status === 200) {
|
|
1045
|
+
return response.text().then((_responseText) => {
|
|
1046
|
+
let result200: any = null;
|
|
1047
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1048
|
+
result200 = PowerOnUtilizationList.fromJS(resultData200);
|
|
1049
|
+
return result200;
|
|
1050
|
+
});
|
|
1051
|
+
} else if (status !== 200 && status !== 204) {
|
|
1052
|
+
return response.text().then((_responseText) => {
|
|
1053
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
return Promise.resolve<PowerOnUtilizationList>(null as any);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
getFactoryUtilization(): Promise<PowerOnUtilizationDto> {
|
|
1060
|
+
let url_ = this.baseUrl + "/machineutilization/factory";
|
|
1061
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1062
|
+
|
|
1063
|
+
let options_: RequestInit = {
|
|
1064
|
+
method: "GET",
|
|
1065
|
+
headers: {
|
|
1066
|
+
"Accept": "application/json"
|
|
1067
|
+
}
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1071
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1072
|
+
}).then((_response: Response) => {
|
|
1073
|
+
return this.processGetFactoryUtilization(_response);
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
protected processGetFactoryUtilization(response: Response): Promise<PowerOnUtilizationDto> {
|
|
1078
|
+
const status = response.status;
|
|
1079
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1080
|
+
if (status === 200) {
|
|
1081
|
+
return response.text().then((_responseText) => {
|
|
1082
|
+
let result200: any = null;
|
|
1083
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1084
|
+
result200 = PowerOnUtilizationDto.fromJS(resultData200);
|
|
1085
|
+
return result200;
|
|
1086
|
+
});
|
|
1087
|
+
} else if (status !== 200 && status !== 204) {
|
|
1088
|
+
return response.text().then((_responseText) => {
|
|
1089
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
return Promise.resolve<PowerOnUtilizationDto>(null as any);
|
|
1093
|
+
}
|
|
881
1094
|
}
|
|
882
1095
|
|
|
883
1096
|
export interface IMeClient {
|
|
@@ -6542,6 +6755,12 @@ export interface IMachinesClient {
|
|
|
6542
6755
|
|
|
6543
6756
|
listMachineErpData(): Promise<MachineErpDataListDto>;
|
|
6544
6757
|
|
|
6758
|
+
getMachineErpData(id: number): Promise<MachineErpDataDto>;
|
|
6759
|
+
|
|
6760
|
+
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
6761
|
+
|
|
6762
|
+
getCrossCompanyUtilizationSummary(): Promise<CrossCompanyUtilizationSummaryDto>;
|
|
6763
|
+
|
|
6545
6764
|
listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
|
|
6546
6765
|
|
|
6547
6766
|
createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
|
|
@@ -7016,6 +7235,117 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
7016
7235
|
return Promise.resolve<MachineErpDataListDto>(null as any);
|
|
7017
7236
|
}
|
|
7018
7237
|
|
|
7238
|
+
getMachineErpData(id: number): Promise<MachineErpDataDto> {
|
|
7239
|
+
let url_ = this.baseUrl + "/machines/{id}/erp";
|
|
7240
|
+
if (id === undefined || id === null)
|
|
7241
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
7242
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7243
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7244
|
+
|
|
7245
|
+
let options_: RequestInit = {
|
|
7246
|
+
method: "GET",
|
|
7247
|
+
headers: {
|
|
7248
|
+
"Accept": "application/json"
|
|
7249
|
+
}
|
|
7250
|
+
};
|
|
7251
|
+
|
|
7252
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7253
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
7254
|
+
}).then((_response: Response) => {
|
|
7255
|
+
return this.processGetMachineErpData(_response);
|
|
7256
|
+
});
|
|
7257
|
+
}
|
|
7258
|
+
|
|
7259
|
+
protected processGetMachineErpData(response: Response): Promise<MachineErpDataDto> {
|
|
7260
|
+
const status = response.status;
|
|
7261
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7262
|
+
if (status === 200) {
|
|
7263
|
+
return response.text().then((_responseText) => {
|
|
7264
|
+
let result200: any = null;
|
|
7265
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7266
|
+
result200 = MachineErpDataDto.fromJS(resultData200);
|
|
7267
|
+
return result200;
|
|
7268
|
+
});
|
|
7269
|
+
} else if (status !== 200 && status !== 204) {
|
|
7270
|
+
return response.text().then((_responseText) => {
|
|
7271
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7272
|
+
});
|
|
7273
|
+
}
|
|
7274
|
+
return Promise.resolve<MachineErpDataDto>(null as any);
|
|
7275
|
+
}
|
|
7276
|
+
|
|
7277
|
+
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto> {
|
|
7278
|
+
let url_ = this.baseUrl + "/machines/utilization/summary";
|
|
7279
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7280
|
+
|
|
7281
|
+
let options_: RequestInit = {
|
|
7282
|
+
method: "GET",
|
|
7283
|
+
headers: {
|
|
7284
|
+
"Accept": "application/json"
|
|
7285
|
+
}
|
|
7286
|
+
};
|
|
7287
|
+
|
|
7288
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7289
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
7290
|
+
}).then((_response: Response) => {
|
|
7291
|
+
return this.processGetMachineUtilizationSummary(_response);
|
|
7292
|
+
});
|
|
7293
|
+
}
|
|
7294
|
+
|
|
7295
|
+
protected processGetMachineUtilizationSummary(response: Response): Promise<UtilizationSummaryDto> {
|
|
7296
|
+
const status = response.status;
|
|
7297
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7298
|
+
if (status === 200) {
|
|
7299
|
+
return response.text().then((_responseText) => {
|
|
7300
|
+
let result200: any = null;
|
|
7301
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7302
|
+
result200 = UtilizationSummaryDto.fromJS(resultData200);
|
|
7303
|
+
return result200;
|
|
7304
|
+
});
|
|
7305
|
+
} else if (status !== 200 && status !== 204) {
|
|
7306
|
+
return response.text().then((_responseText) => {
|
|
7307
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7308
|
+
});
|
|
7309
|
+
}
|
|
7310
|
+
return Promise.resolve<UtilizationSummaryDto>(null as any);
|
|
7311
|
+
}
|
|
7312
|
+
|
|
7313
|
+
getCrossCompanyUtilizationSummary(): Promise<CrossCompanyUtilizationSummaryDto> {
|
|
7314
|
+
let url_ = this.baseUrl + "/machines/utilization/cross-company";
|
|
7315
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7316
|
+
|
|
7317
|
+
let options_: RequestInit = {
|
|
7318
|
+
method: "GET",
|
|
7319
|
+
headers: {
|
|
7320
|
+
"Accept": "application/json"
|
|
7321
|
+
}
|
|
7322
|
+
};
|
|
7323
|
+
|
|
7324
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7325
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
7326
|
+
}).then((_response: Response) => {
|
|
7327
|
+
return this.processGetCrossCompanyUtilizationSummary(_response);
|
|
7328
|
+
});
|
|
7329
|
+
}
|
|
7330
|
+
|
|
7331
|
+
protected processGetCrossCompanyUtilizationSummary(response: Response): Promise<CrossCompanyUtilizationSummaryDto> {
|
|
7332
|
+
const status = response.status;
|
|
7333
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7334
|
+
if (status === 200) {
|
|
7335
|
+
return response.text().then((_responseText) => {
|
|
7336
|
+
let result200: any = null;
|
|
7337
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7338
|
+
result200 = CrossCompanyUtilizationSummaryDto.fromJS(resultData200);
|
|
7339
|
+
return result200;
|
|
7340
|
+
});
|
|
7341
|
+
} else if (status !== 200 && status !== 204) {
|
|
7342
|
+
return response.text().then((_responseText) => {
|
|
7343
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7344
|
+
});
|
|
7345
|
+
}
|
|
7346
|
+
return Promise.resolve<CrossCompanyUtilizationSummaryDto>(null as any);
|
|
7347
|
+
}
|
|
7348
|
+
|
|
7019
7349
|
listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]> {
|
|
7020
7350
|
let url_ = this.baseUrl + "/machines/operators?";
|
|
7021
7351
|
if (machineExternalId !== undefined && machineExternalId !== null)
|
|
@@ -22388,6 +22718,329 @@ export interface IComponentSettingsDto {
|
|
|
22388
22718
|
disabledFields?: string[] | null;
|
|
22389
22719
|
}
|
|
22390
22720
|
|
|
22721
|
+
export class UtilizationListDto implements IUtilizationListDto {
|
|
22722
|
+
machines?: MachineUtilizationDto[] | null;
|
|
22723
|
+
|
|
22724
|
+
constructor(data?: IUtilizationListDto) {
|
|
22725
|
+
if (data) {
|
|
22726
|
+
for (var property in data) {
|
|
22727
|
+
if (data.hasOwnProperty(property))
|
|
22728
|
+
(<any>this)[property] = (<any>data)[property];
|
|
22729
|
+
}
|
|
22730
|
+
}
|
|
22731
|
+
}
|
|
22732
|
+
|
|
22733
|
+
init(_data?: any) {
|
|
22734
|
+
if (_data) {
|
|
22735
|
+
if (Array.isArray(_data["machines"])) {
|
|
22736
|
+
this.machines = [] as any;
|
|
22737
|
+
for (let item of _data["machines"])
|
|
22738
|
+
this.machines!.push(MachineUtilizationDto.fromJS(item));
|
|
22739
|
+
}
|
|
22740
|
+
}
|
|
22741
|
+
}
|
|
22742
|
+
|
|
22743
|
+
static fromJS(data: any): UtilizationListDto {
|
|
22744
|
+
data = typeof data === 'object' ? data : {};
|
|
22745
|
+
let result = new UtilizationListDto();
|
|
22746
|
+
result.init(data);
|
|
22747
|
+
return result;
|
|
22748
|
+
}
|
|
22749
|
+
|
|
22750
|
+
toJSON(data?: any) {
|
|
22751
|
+
data = typeof data === 'object' ? data : {};
|
|
22752
|
+
if (Array.isArray(this.machines)) {
|
|
22753
|
+
data["machines"] = [];
|
|
22754
|
+
for (let item of this.machines)
|
|
22755
|
+
data["machines"].push(item.toJSON());
|
|
22756
|
+
}
|
|
22757
|
+
return data;
|
|
22758
|
+
}
|
|
22759
|
+
}
|
|
22760
|
+
|
|
22761
|
+
export interface IUtilizationListDto {
|
|
22762
|
+
machines?: MachineUtilizationDto[] | null;
|
|
22763
|
+
}
|
|
22764
|
+
|
|
22765
|
+
export class MachineUtilizationDto implements IMachineUtilizationDto {
|
|
22766
|
+
assetId!: number;
|
|
22767
|
+
name!: string;
|
|
22768
|
+
description?: string | null;
|
|
22769
|
+
state!: string;
|
|
22770
|
+
machineState!: MachineState;
|
|
22771
|
+
startTime?: Date;
|
|
22772
|
+
workorder?: UtilizationWorkorderDto | null;
|
|
22773
|
+
powerOn?: PowerOnUtilizationDto | null;
|
|
22774
|
+
|
|
22775
|
+
constructor(data?: IMachineUtilizationDto) {
|
|
22776
|
+
if (data) {
|
|
22777
|
+
for (var property in data) {
|
|
22778
|
+
if (data.hasOwnProperty(property))
|
|
22779
|
+
(<any>this)[property] = (<any>data)[property];
|
|
22780
|
+
}
|
|
22781
|
+
}
|
|
22782
|
+
}
|
|
22783
|
+
|
|
22784
|
+
init(_data?: any) {
|
|
22785
|
+
if (_data) {
|
|
22786
|
+
this.assetId = _data["assetId"];
|
|
22787
|
+
this.name = _data["name"];
|
|
22788
|
+
this.description = _data["description"];
|
|
22789
|
+
this.state = _data["state"];
|
|
22790
|
+
this.machineState = _data["machineState"];
|
|
22791
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
22792
|
+
this.workorder = _data["workorder"] ? UtilizationWorkorderDto.fromJS(_data["workorder"]) : <any>undefined;
|
|
22793
|
+
this.powerOn = _data["powerOn"] ? PowerOnUtilizationDto.fromJS(_data["powerOn"]) : <any>undefined;
|
|
22794
|
+
}
|
|
22795
|
+
}
|
|
22796
|
+
|
|
22797
|
+
static fromJS(data: any): MachineUtilizationDto {
|
|
22798
|
+
data = typeof data === 'object' ? data : {};
|
|
22799
|
+
let result = new MachineUtilizationDto();
|
|
22800
|
+
result.init(data);
|
|
22801
|
+
return result;
|
|
22802
|
+
}
|
|
22803
|
+
|
|
22804
|
+
toJSON(data?: any) {
|
|
22805
|
+
data = typeof data === 'object' ? data : {};
|
|
22806
|
+
data["assetId"] = this.assetId;
|
|
22807
|
+
data["name"] = this.name;
|
|
22808
|
+
data["description"] = this.description;
|
|
22809
|
+
data["state"] = this.state;
|
|
22810
|
+
data["machineState"] = this.machineState;
|
|
22811
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
22812
|
+
data["workorder"] = this.workorder ? this.workorder.toJSON() : <any>undefined;
|
|
22813
|
+
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : <any>undefined;
|
|
22814
|
+
return data;
|
|
22815
|
+
}
|
|
22816
|
+
}
|
|
22817
|
+
|
|
22818
|
+
export interface IMachineUtilizationDto {
|
|
22819
|
+
assetId: number;
|
|
22820
|
+
name: string;
|
|
22821
|
+
description?: string | null;
|
|
22822
|
+
state: string;
|
|
22823
|
+
machineState: MachineState;
|
|
22824
|
+
startTime?: Date;
|
|
22825
|
+
workorder?: UtilizationWorkorderDto | null;
|
|
22826
|
+
powerOn?: PowerOnUtilizationDto | null;
|
|
22827
|
+
}
|
|
22828
|
+
|
|
22829
|
+
export type MachineState = "InCycle" | "MasterCam" | "MdiCycle" | "CamCycle" | "Idle" | "OptionalStop" | "ProgramStop" | "M0" | "AtcStopped" | "FeedHold" | "MdiMode" | "ManualMode" | "EStop" | "Alarm" | "PowerOff";
|
|
22830
|
+
|
|
22831
|
+
export class UtilizationWorkorderDto implements IUtilizationWorkorderDto {
|
|
22832
|
+
id?: string | null;
|
|
22833
|
+
operation?: number;
|
|
22834
|
+
isSetup?: boolean;
|
|
22835
|
+
partNumber?: string | null;
|
|
22836
|
+
partName?: string | null;
|
|
22837
|
+
customer?: CustomerDto | null;
|
|
22838
|
+
customerOrder?: string | null;
|
|
22839
|
+
startTime?: Date;
|
|
22840
|
+
workorderUtilization?: number | null;
|
|
22841
|
+
comparedToAverage?: number | null;
|
|
22842
|
+
workorderDescription?: string | null;
|
|
22843
|
+
operationDescription?: string | null;
|
|
22844
|
+
|
|
22845
|
+
constructor(data?: IUtilizationWorkorderDto) {
|
|
22846
|
+
if (data) {
|
|
22847
|
+
for (var property in data) {
|
|
22848
|
+
if (data.hasOwnProperty(property))
|
|
22849
|
+
(<any>this)[property] = (<any>data)[property];
|
|
22850
|
+
}
|
|
22851
|
+
}
|
|
22852
|
+
}
|
|
22853
|
+
|
|
22854
|
+
init(_data?: any) {
|
|
22855
|
+
if (_data) {
|
|
22856
|
+
this.id = _data["id"];
|
|
22857
|
+
this.operation = _data["operation"];
|
|
22858
|
+
this.isSetup = _data["isSetup"];
|
|
22859
|
+
this.partNumber = _data["partNumber"];
|
|
22860
|
+
this.partName = _data["partName"];
|
|
22861
|
+
this.customer = _data["customer"] ? CustomerDto.fromJS(_data["customer"]) : <any>undefined;
|
|
22862
|
+
this.customerOrder = _data["customerOrder"];
|
|
22863
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
22864
|
+
this.workorderUtilization = _data["workorderUtilization"];
|
|
22865
|
+
this.comparedToAverage = _data["comparedToAverage"];
|
|
22866
|
+
this.workorderDescription = _data["workorderDescription"];
|
|
22867
|
+
this.operationDescription = _data["operationDescription"];
|
|
22868
|
+
}
|
|
22869
|
+
}
|
|
22870
|
+
|
|
22871
|
+
static fromJS(data: any): UtilizationWorkorderDto {
|
|
22872
|
+
data = typeof data === 'object' ? data : {};
|
|
22873
|
+
let result = new UtilizationWorkorderDto();
|
|
22874
|
+
result.init(data);
|
|
22875
|
+
return result;
|
|
22876
|
+
}
|
|
22877
|
+
|
|
22878
|
+
toJSON(data?: any) {
|
|
22879
|
+
data = typeof data === 'object' ? data : {};
|
|
22880
|
+
data["id"] = this.id;
|
|
22881
|
+
data["operation"] = this.operation;
|
|
22882
|
+
data["isSetup"] = this.isSetup;
|
|
22883
|
+
data["partNumber"] = this.partNumber;
|
|
22884
|
+
data["partName"] = this.partName;
|
|
22885
|
+
data["customer"] = this.customer ? this.customer.toJSON() : <any>undefined;
|
|
22886
|
+
data["customerOrder"] = this.customerOrder;
|
|
22887
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
22888
|
+
data["workorderUtilization"] = this.workorderUtilization;
|
|
22889
|
+
data["comparedToAverage"] = this.comparedToAverage;
|
|
22890
|
+
data["workorderDescription"] = this.workorderDescription;
|
|
22891
|
+
data["operationDescription"] = this.operationDescription;
|
|
22892
|
+
return data;
|
|
22893
|
+
}
|
|
22894
|
+
}
|
|
22895
|
+
|
|
22896
|
+
export interface IUtilizationWorkorderDto {
|
|
22897
|
+
id?: string | null;
|
|
22898
|
+
operation?: number;
|
|
22899
|
+
isSetup?: boolean;
|
|
22900
|
+
partNumber?: string | null;
|
|
22901
|
+
partName?: string | null;
|
|
22902
|
+
customer?: CustomerDto | null;
|
|
22903
|
+
customerOrder?: string | null;
|
|
22904
|
+
startTime?: Date;
|
|
22905
|
+
workorderUtilization?: number | null;
|
|
22906
|
+
comparedToAverage?: number | null;
|
|
22907
|
+
workorderDescription?: string | null;
|
|
22908
|
+
operationDescription?: string | null;
|
|
22909
|
+
}
|
|
22910
|
+
|
|
22911
|
+
export class CustomerDto implements ICustomerDto {
|
|
22912
|
+
id!: string;
|
|
22913
|
+
name!: string;
|
|
22914
|
+
groupId?: string | null;
|
|
22915
|
+
groupName?: string | null;
|
|
22916
|
+
|
|
22917
|
+
constructor(data?: ICustomerDto) {
|
|
22918
|
+
if (data) {
|
|
22919
|
+
for (var property in data) {
|
|
22920
|
+
if (data.hasOwnProperty(property))
|
|
22921
|
+
(<any>this)[property] = (<any>data)[property];
|
|
22922
|
+
}
|
|
22923
|
+
}
|
|
22924
|
+
}
|
|
22925
|
+
|
|
22926
|
+
init(_data?: any) {
|
|
22927
|
+
if (_data) {
|
|
22928
|
+
this.id = _data["id"];
|
|
22929
|
+
this.name = _data["name"];
|
|
22930
|
+
this.groupId = _data["groupId"];
|
|
22931
|
+
this.groupName = _data["groupName"];
|
|
22932
|
+
}
|
|
22933
|
+
}
|
|
22934
|
+
|
|
22935
|
+
static fromJS(data: any): CustomerDto {
|
|
22936
|
+
data = typeof data === 'object' ? data : {};
|
|
22937
|
+
let result = new CustomerDto();
|
|
22938
|
+
result.init(data);
|
|
22939
|
+
return result;
|
|
22940
|
+
}
|
|
22941
|
+
|
|
22942
|
+
toJSON(data?: any) {
|
|
22943
|
+
data = typeof data === 'object' ? data : {};
|
|
22944
|
+
data["id"] = this.id;
|
|
22945
|
+
data["name"] = this.name;
|
|
22946
|
+
data["groupId"] = this.groupId;
|
|
22947
|
+
data["groupName"] = this.groupName;
|
|
22948
|
+
return data;
|
|
22949
|
+
}
|
|
22950
|
+
}
|
|
22951
|
+
|
|
22952
|
+
export interface ICustomerDto {
|
|
22953
|
+
id: string;
|
|
22954
|
+
name: string;
|
|
22955
|
+
groupId?: string | null;
|
|
22956
|
+
groupName?: string | null;
|
|
22957
|
+
}
|
|
22958
|
+
|
|
22959
|
+
export class UtilizationAveragesDto implements IUtilizationAveragesDto {
|
|
22960
|
+
averageUtilization90Days?: number | null;
|
|
22961
|
+
averageUtilization30Days?: number | null;
|
|
22962
|
+
averageUtilization7Days?: number | null;
|
|
22963
|
+
averageUtilizationYearToDate?: number | null;
|
|
22964
|
+
|
|
22965
|
+
constructor(data?: IUtilizationAveragesDto) {
|
|
22966
|
+
if (data) {
|
|
22967
|
+
for (var property in data) {
|
|
22968
|
+
if (data.hasOwnProperty(property))
|
|
22969
|
+
(<any>this)[property] = (<any>data)[property];
|
|
22970
|
+
}
|
|
22971
|
+
}
|
|
22972
|
+
}
|
|
22973
|
+
|
|
22974
|
+
init(_data?: any) {
|
|
22975
|
+
if (_data) {
|
|
22976
|
+
this.averageUtilization90Days = _data["averageUtilization90Days"];
|
|
22977
|
+
this.averageUtilization30Days = _data["averageUtilization30Days"];
|
|
22978
|
+
this.averageUtilization7Days = _data["averageUtilization7Days"];
|
|
22979
|
+
this.averageUtilizationYearToDate = _data["averageUtilizationYearToDate"];
|
|
22980
|
+
}
|
|
22981
|
+
}
|
|
22982
|
+
|
|
22983
|
+
static fromJS(data: any): UtilizationAveragesDto {
|
|
22984
|
+
data = typeof data === 'object' ? data : {};
|
|
22985
|
+
let result = new UtilizationAveragesDto();
|
|
22986
|
+
result.init(data);
|
|
22987
|
+
return result;
|
|
22988
|
+
}
|
|
22989
|
+
|
|
22990
|
+
toJSON(data?: any) {
|
|
22991
|
+
data = typeof data === 'object' ? data : {};
|
|
22992
|
+
data["averageUtilization90Days"] = this.averageUtilization90Days;
|
|
22993
|
+
data["averageUtilization30Days"] = this.averageUtilization30Days;
|
|
22994
|
+
data["averageUtilization7Days"] = this.averageUtilization7Days;
|
|
22995
|
+
data["averageUtilizationYearToDate"] = this.averageUtilizationYearToDate;
|
|
22996
|
+
return data;
|
|
22997
|
+
}
|
|
22998
|
+
}
|
|
22999
|
+
|
|
23000
|
+
export interface IUtilizationAveragesDto {
|
|
23001
|
+
averageUtilization90Days?: number | null;
|
|
23002
|
+
averageUtilization30Days?: number | null;
|
|
23003
|
+
averageUtilization7Days?: number | null;
|
|
23004
|
+
averageUtilizationYearToDate?: number | null;
|
|
23005
|
+
}
|
|
23006
|
+
|
|
23007
|
+
export class PowerOnUtilizationDto extends UtilizationAveragesDto implements IPowerOnUtilizationDto {
|
|
23008
|
+
powerOnUtilization?: number | null;
|
|
23009
|
+
comparedToAverage?: number | null;
|
|
23010
|
+
|
|
23011
|
+
constructor(data?: IPowerOnUtilizationDto) {
|
|
23012
|
+
super(data);
|
|
23013
|
+
}
|
|
23014
|
+
|
|
23015
|
+
override init(_data?: any) {
|
|
23016
|
+
super.init(_data);
|
|
23017
|
+
if (_data) {
|
|
23018
|
+
this.powerOnUtilization = _data["powerOnUtilization"];
|
|
23019
|
+
this.comparedToAverage = _data["comparedToAverage"];
|
|
23020
|
+
}
|
|
23021
|
+
}
|
|
23022
|
+
|
|
23023
|
+
static override fromJS(data: any): PowerOnUtilizationDto {
|
|
23024
|
+
data = typeof data === 'object' ? data : {};
|
|
23025
|
+
let result = new PowerOnUtilizationDto();
|
|
23026
|
+
result.init(data);
|
|
23027
|
+
return result;
|
|
23028
|
+
}
|
|
23029
|
+
|
|
23030
|
+
override toJSON(data?: any) {
|
|
23031
|
+
data = typeof data === 'object' ? data : {};
|
|
23032
|
+
data["powerOnUtilization"] = this.powerOnUtilization;
|
|
23033
|
+
data["comparedToAverage"] = this.comparedToAverage;
|
|
23034
|
+
super.toJSON(data);
|
|
23035
|
+
return data;
|
|
23036
|
+
}
|
|
23037
|
+
}
|
|
23038
|
+
|
|
23039
|
+
export interface IPowerOnUtilizationDto extends IUtilizationAveragesDto {
|
|
23040
|
+
powerOnUtilization?: number | null;
|
|
23041
|
+
comparedToAverage?: number | null;
|
|
23042
|
+
}
|
|
23043
|
+
|
|
22391
23044
|
export class UtilizationDetailsDto implements IUtilizationDetailsDto {
|
|
22392
23045
|
machineId!: number;
|
|
22393
23046
|
machineName!: string;
|
|
@@ -22444,7 +23097,96 @@ export interface IUtilizationDetailsDto {
|
|
|
22444
23097
|
powerOnUtilization?: number | null;
|
|
22445
23098
|
}
|
|
22446
23099
|
|
|
22447
|
-
export
|
|
23100
|
+
export class MachineStatesSummaryDto implements IMachineStatesSummaryDto {
|
|
23101
|
+
states!: StateDto[];
|
|
23102
|
+
|
|
23103
|
+
constructor(data?: IMachineStatesSummaryDto) {
|
|
23104
|
+
if (data) {
|
|
23105
|
+
for (var property in data) {
|
|
23106
|
+
if (data.hasOwnProperty(property))
|
|
23107
|
+
(<any>this)[property] = (<any>data)[property];
|
|
23108
|
+
}
|
|
23109
|
+
}
|
|
23110
|
+
if (!data) {
|
|
23111
|
+
this.states = [];
|
|
23112
|
+
}
|
|
23113
|
+
}
|
|
23114
|
+
|
|
23115
|
+
init(_data?: any) {
|
|
23116
|
+
if (_data) {
|
|
23117
|
+
if (Array.isArray(_data["states"])) {
|
|
23118
|
+
this.states = [] as any;
|
|
23119
|
+
for (let item of _data["states"])
|
|
23120
|
+
this.states!.push(StateDto.fromJS(item));
|
|
23121
|
+
}
|
|
23122
|
+
}
|
|
23123
|
+
}
|
|
23124
|
+
|
|
23125
|
+
static fromJS(data: any): MachineStatesSummaryDto {
|
|
23126
|
+
data = typeof data === 'object' ? data : {};
|
|
23127
|
+
let result = new MachineStatesSummaryDto();
|
|
23128
|
+
result.init(data);
|
|
23129
|
+
return result;
|
|
23130
|
+
}
|
|
23131
|
+
|
|
23132
|
+
toJSON(data?: any) {
|
|
23133
|
+
data = typeof data === 'object' ? data : {};
|
|
23134
|
+
if (Array.isArray(this.states)) {
|
|
23135
|
+
data["states"] = [];
|
|
23136
|
+
for (let item of this.states)
|
|
23137
|
+
data["states"].push(item.toJSON());
|
|
23138
|
+
}
|
|
23139
|
+
return data;
|
|
23140
|
+
}
|
|
23141
|
+
}
|
|
23142
|
+
|
|
23143
|
+
export interface IMachineStatesSummaryDto {
|
|
23144
|
+
states: StateDto[];
|
|
23145
|
+
}
|
|
23146
|
+
|
|
23147
|
+
export class StateDto implements IStateDto {
|
|
23148
|
+
state!: string;
|
|
23149
|
+
machineState!: MachineState;
|
|
23150
|
+
seconds!: number;
|
|
23151
|
+
|
|
23152
|
+
constructor(data?: IStateDto) {
|
|
23153
|
+
if (data) {
|
|
23154
|
+
for (var property in data) {
|
|
23155
|
+
if (data.hasOwnProperty(property))
|
|
23156
|
+
(<any>this)[property] = (<any>data)[property];
|
|
23157
|
+
}
|
|
23158
|
+
}
|
|
23159
|
+
}
|
|
23160
|
+
|
|
23161
|
+
init(_data?: any) {
|
|
23162
|
+
if (_data) {
|
|
23163
|
+
this.state = _data["state"];
|
|
23164
|
+
this.machineState = _data["machineState"];
|
|
23165
|
+
this.seconds = _data["seconds"];
|
|
23166
|
+
}
|
|
23167
|
+
}
|
|
23168
|
+
|
|
23169
|
+
static fromJS(data: any): StateDto {
|
|
23170
|
+
data = typeof data === 'object' ? data : {};
|
|
23171
|
+
let result = new StateDto();
|
|
23172
|
+
result.init(data);
|
|
23173
|
+
return result;
|
|
23174
|
+
}
|
|
23175
|
+
|
|
23176
|
+
toJSON(data?: any) {
|
|
23177
|
+
data = typeof data === 'object' ? data : {};
|
|
23178
|
+
data["state"] = this.state;
|
|
23179
|
+
data["machineState"] = this.machineState;
|
|
23180
|
+
data["seconds"] = this.seconds;
|
|
23181
|
+
return data;
|
|
23182
|
+
}
|
|
23183
|
+
}
|
|
23184
|
+
|
|
23185
|
+
export interface IStateDto {
|
|
23186
|
+
state: string;
|
|
23187
|
+
machineState: MachineState;
|
|
23188
|
+
seconds: number;
|
|
23189
|
+
}
|
|
22448
23190
|
|
|
22449
23191
|
export class MachineStateDatapoint implements IMachineStateDatapoint {
|
|
22450
23192
|
machineStateText!: string;
|
|
@@ -22579,97 +23321,6 @@ export interface IDowntimePeriodReasonDto {
|
|
|
22579
23321
|
|
|
22580
23322
|
export type DowntimeReasonTypeDto = "Unplanned" | "Planned";
|
|
22581
23323
|
|
|
22582
|
-
export class MachineStatesSummaryDto implements IMachineStatesSummaryDto {
|
|
22583
|
-
states!: StateDto[];
|
|
22584
|
-
|
|
22585
|
-
constructor(data?: IMachineStatesSummaryDto) {
|
|
22586
|
-
if (data) {
|
|
22587
|
-
for (var property in data) {
|
|
22588
|
-
if (data.hasOwnProperty(property))
|
|
22589
|
-
(<any>this)[property] = (<any>data)[property];
|
|
22590
|
-
}
|
|
22591
|
-
}
|
|
22592
|
-
if (!data) {
|
|
22593
|
-
this.states = [];
|
|
22594
|
-
}
|
|
22595
|
-
}
|
|
22596
|
-
|
|
22597
|
-
init(_data?: any) {
|
|
22598
|
-
if (_data) {
|
|
22599
|
-
if (Array.isArray(_data["states"])) {
|
|
22600
|
-
this.states = [] as any;
|
|
22601
|
-
for (let item of _data["states"])
|
|
22602
|
-
this.states!.push(StateDto.fromJS(item));
|
|
22603
|
-
}
|
|
22604
|
-
}
|
|
22605
|
-
}
|
|
22606
|
-
|
|
22607
|
-
static fromJS(data: any): MachineStatesSummaryDto {
|
|
22608
|
-
data = typeof data === 'object' ? data : {};
|
|
22609
|
-
let result = new MachineStatesSummaryDto();
|
|
22610
|
-
result.init(data);
|
|
22611
|
-
return result;
|
|
22612
|
-
}
|
|
22613
|
-
|
|
22614
|
-
toJSON(data?: any) {
|
|
22615
|
-
data = typeof data === 'object' ? data : {};
|
|
22616
|
-
if (Array.isArray(this.states)) {
|
|
22617
|
-
data["states"] = [];
|
|
22618
|
-
for (let item of this.states)
|
|
22619
|
-
data["states"].push(item.toJSON());
|
|
22620
|
-
}
|
|
22621
|
-
return data;
|
|
22622
|
-
}
|
|
22623
|
-
}
|
|
22624
|
-
|
|
22625
|
-
export interface IMachineStatesSummaryDto {
|
|
22626
|
-
states: StateDto[];
|
|
22627
|
-
}
|
|
22628
|
-
|
|
22629
|
-
export class StateDto implements IStateDto {
|
|
22630
|
-
state!: string;
|
|
22631
|
-
machineState!: MachineState;
|
|
22632
|
-
seconds!: number;
|
|
22633
|
-
|
|
22634
|
-
constructor(data?: IStateDto) {
|
|
22635
|
-
if (data) {
|
|
22636
|
-
for (var property in data) {
|
|
22637
|
-
if (data.hasOwnProperty(property))
|
|
22638
|
-
(<any>this)[property] = (<any>data)[property];
|
|
22639
|
-
}
|
|
22640
|
-
}
|
|
22641
|
-
}
|
|
22642
|
-
|
|
22643
|
-
init(_data?: any) {
|
|
22644
|
-
if (_data) {
|
|
22645
|
-
this.state = _data["state"];
|
|
22646
|
-
this.machineState = _data["machineState"];
|
|
22647
|
-
this.seconds = _data["seconds"];
|
|
22648
|
-
}
|
|
22649
|
-
}
|
|
22650
|
-
|
|
22651
|
-
static fromJS(data: any): StateDto {
|
|
22652
|
-
data = typeof data === 'object' ? data : {};
|
|
22653
|
-
let result = new StateDto();
|
|
22654
|
-
result.init(data);
|
|
22655
|
-
return result;
|
|
22656
|
-
}
|
|
22657
|
-
|
|
22658
|
-
toJSON(data?: any) {
|
|
22659
|
-
data = typeof data === 'object' ? data : {};
|
|
22660
|
-
data["state"] = this.state;
|
|
22661
|
-
data["machineState"] = this.machineState;
|
|
22662
|
-
data["seconds"] = this.seconds;
|
|
22663
|
-
return data;
|
|
22664
|
-
}
|
|
22665
|
-
}
|
|
22666
|
-
|
|
22667
|
-
export interface IStateDto {
|
|
22668
|
-
state: string;
|
|
22669
|
-
machineState: MachineState;
|
|
22670
|
-
seconds: number;
|
|
22671
|
-
}
|
|
22672
|
-
|
|
22673
23324
|
export class MachineUptimesAggregateDto implements IMachineUptimesAggregateDto {
|
|
22674
23325
|
machineUptimes!: MachineUptimeDto[];
|
|
22675
23326
|
sum!: MachineUptimeSumDto;
|
|
@@ -22854,6 +23505,150 @@ export interface IListMachineUptimesTodayRequest {
|
|
|
22854
23505
|
utcOffset?: number;
|
|
22855
23506
|
}
|
|
22856
23507
|
|
|
23508
|
+
export class PowerOnUtilizationList implements IPowerOnUtilizationList {
|
|
23509
|
+
machines?: Machine[];
|
|
23510
|
+
|
|
23511
|
+
constructor(data?: IPowerOnUtilizationList) {
|
|
23512
|
+
if (data) {
|
|
23513
|
+
for (var property in data) {
|
|
23514
|
+
if (data.hasOwnProperty(property))
|
|
23515
|
+
(<any>this)[property] = (<any>data)[property];
|
|
23516
|
+
}
|
|
23517
|
+
}
|
|
23518
|
+
}
|
|
23519
|
+
|
|
23520
|
+
init(_data?: any) {
|
|
23521
|
+
if (_data) {
|
|
23522
|
+
if (Array.isArray(_data["machines"])) {
|
|
23523
|
+
this.machines = [] as any;
|
|
23524
|
+
for (let item of _data["machines"])
|
|
23525
|
+
this.machines!.push(Machine.fromJS(item));
|
|
23526
|
+
}
|
|
23527
|
+
}
|
|
23528
|
+
}
|
|
23529
|
+
|
|
23530
|
+
static fromJS(data: any): PowerOnUtilizationList {
|
|
23531
|
+
data = typeof data === 'object' ? data : {};
|
|
23532
|
+
let result = new PowerOnUtilizationList();
|
|
23533
|
+
result.init(data);
|
|
23534
|
+
return result;
|
|
23535
|
+
}
|
|
23536
|
+
|
|
23537
|
+
toJSON(data?: any) {
|
|
23538
|
+
data = typeof data === 'object' ? data : {};
|
|
23539
|
+
if (Array.isArray(this.machines)) {
|
|
23540
|
+
data["machines"] = [];
|
|
23541
|
+
for (let item of this.machines)
|
|
23542
|
+
data["machines"].push(item.toJSON());
|
|
23543
|
+
}
|
|
23544
|
+
return data;
|
|
23545
|
+
}
|
|
23546
|
+
}
|
|
23547
|
+
|
|
23548
|
+
export interface IPowerOnUtilizationList {
|
|
23549
|
+
machines?: Machine[];
|
|
23550
|
+
}
|
|
23551
|
+
|
|
23552
|
+
export class Machine implements IMachine {
|
|
23553
|
+
externalId?: string;
|
|
23554
|
+
id?: number;
|
|
23555
|
+
name?: string;
|
|
23556
|
+
description?: string | null;
|
|
23557
|
+
datapoints?: NumericNullableValueWithTimestamp[];
|
|
23558
|
+
|
|
23559
|
+
constructor(data?: IMachine) {
|
|
23560
|
+
if (data) {
|
|
23561
|
+
for (var property in data) {
|
|
23562
|
+
if (data.hasOwnProperty(property))
|
|
23563
|
+
(<any>this)[property] = (<any>data)[property];
|
|
23564
|
+
}
|
|
23565
|
+
}
|
|
23566
|
+
}
|
|
23567
|
+
|
|
23568
|
+
init(_data?: any) {
|
|
23569
|
+
if (_data) {
|
|
23570
|
+
this.externalId = _data["externalId"];
|
|
23571
|
+
this.id = _data["id"];
|
|
23572
|
+
this.name = _data["name"];
|
|
23573
|
+
this.description = _data["description"];
|
|
23574
|
+
if (Array.isArray(_data["datapoints"])) {
|
|
23575
|
+
this.datapoints = [] as any;
|
|
23576
|
+
for (let item of _data["datapoints"])
|
|
23577
|
+
this.datapoints!.push(NumericNullableValueWithTimestamp.fromJS(item));
|
|
23578
|
+
}
|
|
23579
|
+
}
|
|
23580
|
+
}
|
|
23581
|
+
|
|
23582
|
+
static fromJS(data: any): Machine {
|
|
23583
|
+
data = typeof data === 'object' ? data : {};
|
|
23584
|
+
let result = new Machine();
|
|
23585
|
+
result.init(data);
|
|
23586
|
+
return result;
|
|
23587
|
+
}
|
|
23588
|
+
|
|
23589
|
+
toJSON(data?: any) {
|
|
23590
|
+
data = typeof data === 'object' ? data : {};
|
|
23591
|
+
data["externalId"] = this.externalId;
|
|
23592
|
+
data["id"] = this.id;
|
|
23593
|
+
data["name"] = this.name;
|
|
23594
|
+
data["description"] = this.description;
|
|
23595
|
+
if (Array.isArray(this.datapoints)) {
|
|
23596
|
+
data["datapoints"] = [];
|
|
23597
|
+
for (let item of this.datapoints)
|
|
23598
|
+
data["datapoints"].push(item.toJSON());
|
|
23599
|
+
}
|
|
23600
|
+
return data;
|
|
23601
|
+
}
|
|
23602
|
+
}
|
|
23603
|
+
|
|
23604
|
+
export interface IMachine {
|
|
23605
|
+
externalId?: string;
|
|
23606
|
+
id?: number;
|
|
23607
|
+
name?: string;
|
|
23608
|
+
description?: string | null;
|
|
23609
|
+
datapoints?: NumericNullableValueWithTimestamp[];
|
|
23610
|
+
}
|
|
23611
|
+
|
|
23612
|
+
export class NumericNullableValueWithTimestamp implements INumericNullableValueWithTimestamp {
|
|
23613
|
+
timestamp?: number;
|
|
23614
|
+
value?: number | null;
|
|
23615
|
+
|
|
23616
|
+
constructor(data?: INumericNullableValueWithTimestamp) {
|
|
23617
|
+
if (data) {
|
|
23618
|
+
for (var property in data) {
|
|
23619
|
+
if (data.hasOwnProperty(property))
|
|
23620
|
+
(<any>this)[property] = (<any>data)[property];
|
|
23621
|
+
}
|
|
23622
|
+
}
|
|
23623
|
+
}
|
|
23624
|
+
|
|
23625
|
+
init(_data?: any) {
|
|
23626
|
+
if (_data) {
|
|
23627
|
+
this.timestamp = _data["timestamp"];
|
|
23628
|
+
this.value = _data["value"];
|
|
23629
|
+
}
|
|
23630
|
+
}
|
|
23631
|
+
|
|
23632
|
+
static fromJS(data: any): NumericNullableValueWithTimestamp {
|
|
23633
|
+
data = typeof data === 'object' ? data : {};
|
|
23634
|
+
let result = new NumericNullableValueWithTimestamp();
|
|
23635
|
+
result.init(data);
|
|
23636
|
+
return result;
|
|
23637
|
+
}
|
|
23638
|
+
|
|
23639
|
+
toJSON(data?: any) {
|
|
23640
|
+
data = typeof data === 'object' ? data : {};
|
|
23641
|
+
data["timestamp"] = this.timestamp;
|
|
23642
|
+
data["value"] = this.value;
|
|
23643
|
+
return data;
|
|
23644
|
+
}
|
|
23645
|
+
}
|
|
23646
|
+
|
|
23647
|
+
export interface INumericNullableValueWithTimestamp {
|
|
23648
|
+
timestamp?: number;
|
|
23649
|
+
value?: number | null;
|
|
23650
|
+
}
|
|
23651
|
+
|
|
22857
23652
|
export class UserAppDto implements IUserAppDto {
|
|
22858
23653
|
key!: string;
|
|
22859
23654
|
name!: string;
|
|
@@ -24923,9 +25718,9 @@ export interface IUpdatePulseSettings {
|
|
|
24923
25718
|
|
|
24924
25719
|
export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
24925
25720
|
utilizationType!: UtilizationTypeDto;
|
|
24926
|
-
companyUtilization!:
|
|
24927
|
-
groups!:
|
|
24928
|
-
ungroupedMachines!:
|
|
25721
|
+
companyUtilization!: UtilizationDetailsV2Dto;
|
|
25722
|
+
groups!: MachineGroupUtilizationV2Dto[];
|
|
25723
|
+
ungroupedMachines!: MachineUtilizationV3Dto[];
|
|
24929
25724
|
|
|
24930
25725
|
constructor(data?: ICompanyUtilizationDto) {
|
|
24931
25726
|
if (data) {
|
|
@@ -24935,7 +25730,7 @@ export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
|
24935
25730
|
}
|
|
24936
25731
|
}
|
|
24937
25732
|
if (!data) {
|
|
24938
|
-
this.companyUtilization = new
|
|
25733
|
+
this.companyUtilization = new UtilizationDetailsV2Dto();
|
|
24939
25734
|
this.groups = [];
|
|
24940
25735
|
this.ungroupedMachines = [];
|
|
24941
25736
|
}
|
|
@@ -24944,16 +25739,16 @@ export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
|
24944
25739
|
init(_data?: any) {
|
|
24945
25740
|
if (_data) {
|
|
24946
25741
|
this.utilizationType = _data["utilizationType"];
|
|
24947
|
-
this.companyUtilization = _data["companyUtilization"] ?
|
|
25742
|
+
this.companyUtilization = _data["companyUtilization"] ? UtilizationDetailsV2Dto.fromJS(_data["companyUtilization"]) : new UtilizationDetailsV2Dto();
|
|
24948
25743
|
if (Array.isArray(_data["groups"])) {
|
|
24949
25744
|
this.groups = [] as any;
|
|
24950
25745
|
for (let item of _data["groups"])
|
|
24951
|
-
this.groups!.push(
|
|
25746
|
+
this.groups!.push(MachineGroupUtilizationV2Dto.fromJS(item));
|
|
24952
25747
|
}
|
|
24953
25748
|
if (Array.isArray(_data["ungroupedMachines"])) {
|
|
24954
25749
|
this.ungroupedMachines = [] as any;
|
|
24955
25750
|
for (let item of _data["ungroupedMachines"])
|
|
24956
|
-
this.ungroupedMachines!.push(
|
|
25751
|
+
this.ungroupedMachines!.push(MachineUtilizationV3Dto.fromJS(item));
|
|
24957
25752
|
}
|
|
24958
25753
|
}
|
|
24959
25754
|
}
|
|
@@ -24985,12 +25780,12 @@ export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
|
24985
25780
|
|
|
24986
25781
|
export interface ICompanyUtilizationDto {
|
|
24987
25782
|
utilizationType: UtilizationTypeDto;
|
|
24988
|
-
companyUtilization:
|
|
24989
|
-
groups:
|
|
24990
|
-
ungroupedMachines:
|
|
25783
|
+
companyUtilization: UtilizationDetailsV2Dto;
|
|
25784
|
+
groups: MachineGroupUtilizationV2Dto[];
|
|
25785
|
+
ungroupedMachines: MachineUtilizationV3Dto[];
|
|
24991
25786
|
}
|
|
24992
25787
|
|
|
24993
|
-
export class
|
|
25788
|
+
export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
24994
25789
|
utilizationPercent?: number | null;
|
|
24995
25790
|
uptimeInSeconds?: number | null;
|
|
24996
25791
|
downtimeInSeconds?: number | null;
|
|
@@ -24999,7 +25794,7 @@ export class UtilizationDetailsDto2 implements IUtilizationDetailsDto2 {
|
|
|
24999
25794
|
downtimeInMilliseconds?: number | null;
|
|
25000
25795
|
totalTimeInMilliseconds?: number | null;
|
|
25001
25796
|
|
|
25002
|
-
constructor(data?:
|
|
25797
|
+
constructor(data?: IUtilizationDetailsV2Dto) {
|
|
25003
25798
|
if (data) {
|
|
25004
25799
|
for (var property in data) {
|
|
25005
25800
|
if (data.hasOwnProperty(property))
|
|
@@ -25020,9 +25815,9 @@ export class UtilizationDetailsDto2 implements IUtilizationDetailsDto2 {
|
|
|
25020
25815
|
}
|
|
25021
25816
|
}
|
|
25022
25817
|
|
|
25023
|
-
static fromJS(data: any):
|
|
25818
|
+
static fromJS(data: any): UtilizationDetailsV2Dto {
|
|
25024
25819
|
data = typeof data === 'object' ? data : {};
|
|
25025
|
-
let result = new
|
|
25820
|
+
let result = new UtilizationDetailsV2Dto();
|
|
25026
25821
|
result.init(data);
|
|
25027
25822
|
return result;
|
|
25028
25823
|
}
|
|
@@ -25040,7 +25835,7 @@ export class UtilizationDetailsDto2 implements IUtilizationDetailsDto2 {
|
|
|
25040
25835
|
}
|
|
25041
25836
|
}
|
|
25042
25837
|
|
|
25043
|
-
export interface
|
|
25838
|
+
export interface IUtilizationDetailsV2Dto {
|
|
25044
25839
|
utilizationPercent?: number | null;
|
|
25045
25840
|
uptimeInSeconds?: number | null;
|
|
25046
25841
|
downtimeInSeconds?: number | null;
|
|
@@ -25050,12 +25845,12 @@ export interface IUtilizationDetailsDto2 {
|
|
|
25050
25845
|
totalTimeInMilliseconds?: number | null;
|
|
25051
25846
|
}
|
|
25052
25847
|
|
|
25053
|
-
export class
|
|
25848
|
+
export class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2Dto {
|
|
25054
25849
|
name!: string;
|
|
25055
|
-
utilization!:
|
|
25056
|
-
machines!:
|
|
25850
|
+
utilization!: UtilizationDetailsV2Dto;
|
|
25851
|
+
machines!: MachineUtilizationV3Dto[];
|
|
25057
25852
|
|
|
25058
|
-
constructor(data?:
|
|
25853
|
+
constructor(data?: IMachineGroupUtilizationV2Dto) {
|
|
25059
25854
|
if (data) {
|
|
25060
25855
|
for (var property in data) {
|
|
25061
25856
|
if (data.hasOwnProperty(property))
|
|
@@ -25063,7 +25858,7 @@ export class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|
|
|
25063
25858
|
}
|
|
25064
25859
|
}
|
|
25065
25860
|
if (!data) {
|
|
25066
|
-
this.utilization = new
|
|
25861
|
+
this.utilization = new UtilizationDetailsV2Dto();
|
|
25067
25862
|
this.machines = [];
|
|
25068
25863
|
}
|
|
25069
25864
|
}
|
|
@@ -25071,18 +25866,18 @@ export class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|
|
|
25071
25866
|
init(_data?: any) {
|
|
25072
25867
|
if (_data) {
|
|
25073
25868
|
this.name = _data["name"];
|
|
25074
|
-
this.utilization = _data["utilization"] ?
|
|
25869
|
+
this.utilization = _data["utilization"] ? UtilizationDetailsV2Dto.fromJS(_data["utilization"]) : new UtilizationDetailsV2Dto();
|
|
25075
25870
|
if (Array.isArray(_data["machines"])) {
|
|
25076
25871
|
this.machines = [] as any;
|
|
25077
25872
|
for (let item of _data["machines"])
|
|
25078
|
-
this.machines!.push(
|
|
25873
|
+
this.machines!.push(MachineUtilizationV3Dto.fromJS(item));
|
|
25079
25874
|
}
|
|
25080
25875
|
}
|
|
25081
25876
|
}
|
|
25082
25877
|
|
|
25083
|
-
static fromJS(data: any):
|
|
25878
|
+
static fromJS(data: any): MachineGroupUtilizationV2Dto {
|
|
25084
25879
|
data = typeof data === 'object' ? data : {};
|
|
25085
|
-
let result = new
|
|
25880
|
+
let result = new MachineGroupUtilizationV2Dto();
|
|
25086
25881
|
result.init(data);
|
|
25087
25882
|
return result;
|
|
25088
25883
|
}
|
|
@@ -25100,19 +25895,19 @@ export class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|
|
|
25100
25895
|
}
|
|
25101
25896
|
}
|
|
25102
25897
|
|
|
25103
|
-
export interface
|
|
25898
|
+
export interface IMachineGroupUtilizationV2Dto {
|
|
25104
25899
|
name: string;
|
|
25105
|
-
utilization:
|
|
25106
|
-
machines:
|
|
25900
|
+
utilization: UtilizationDetailsV2Dto;
|
|
25901
|
+
machines: MachineUtilizationV3Dto[];
|
|
25107
25902
|
}
|
|
25108
25903
|
|
|
25109
|
-
export class
|
|
25904
|
+
export class MachineUtilizationV3Dto implements IMachineUtilizationV3Dto {
|
|
25110
25905
|
id?: number;
|
|
25111
25906
|
name!: string;
|
|
25112
25907
|
description?: string | null;
|
|
25113
|
-
utilization!:
|
|
25908
|
+
utilization!: UtilizationDetailsV2Dto;
|
|
25114
25909
|
|
|
25115
|
-
constructor(data?:
|
|
25910
|
+
constructor(data?: IMachineUtilizationV3Dto) {
|
|
25116
25911
|
if (data) {
|
|
25117
25912
|
for (var property in data) {
|
|
25118
25913
|
if (data.hasOwnProperty(property))
|
|
@@ -25120,7 +25915,7 @@ export class MachineUtilizationDto implements IMachineUtilizationDto {
|
|
|
25120
25915
|
}
|
|
25121
25916
|
}
|
|
25122
25917
|
if (!data) {
|
|
25123
|
-
this.utilization = new
|
|
25918
|
+
this.utilization = new UtilizationDetailsV2Dto();
|
|
25124
25919
|
}
|
|
25125
25920
|
}
|
|
25126
25921
|
|
|
@@ -25129,13 +25924,13 @@ export class MachineUtilizationDto implements IMachineUtilizationDto {
|
|
|
25129
25924
|
this.id = _data["id"];
|
|
25130
25925
|
this.name = _data["name"];
|
|
25131
25926
|
this.description = _data["description"];
|
|
25132
|
-
this.utilization = _data["utilization"] ?
|
|
25927
|
+
this.utilization = _data["utilization"] ? UtilizationDetailsV2Dto.fromJS(_data["utilization"]) : new UtilizationDetailsV2Dto();
|
|
25133
25928
|
}
|
|
25134
25929
|
}
|
|
25135
25930
|
|
|
25136
|
-
static fromJS(data: any):
|
|
25931
|
+
static fromJS(data: any): MachineUtilizationV3Dto {
|
|
25137
25932
|
data = typeof data === 'object' ? data : {};
|
|
25138
|
-
let result = new
|
|
25933
|
+
let result = new MachineUtilizationV3Dto();
|
|
25139
25934
|
result.init(data);
|
|
25140
25935
|
return result;
|
|
25141
25936
|
}
|
|
@@ -25150,16 +25945,16 @@ export class MachineUtilizationDto implements IMachineUtilizationDto {
|
|
|
25150
25945
|
}
|
|
25151
25946
|
}
|
|
25152
25947
|
|
|
25153
|
-
export interface
|
|
25948
|
+
export interface IMachineUtilizationV3Dto {
|
|
25154
25949
|
id?: number;
|
|
25155
25950
|
name: string;
|
|
25156
25951
|
description?: string | null;
|
|
25157
|
-
utilization:
|
|
25952
|
+
utilization: UtilizationDetailsV2Dto;
|
|
25158
25953
|
}
|
|
25159
25954
|
|
|
25160
25955
|
export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
25161
25956
|
utilizationType!: UtilizationTypeDto;
|
|
25162
|
-
crossCompanyUtilization!:
|
|
25957
|
+
crossCompanyUtilization!: UtilizationDetailsV2Dto;
|
|
25163
25958
|
companies!: NamedCompanyUtilizationDto[];
|
|
25164
25959
|
|
|
25165
25960
|
constructor(data?: ICrossCompanyUtilizationDto) {
|
|
@@ -25170,7 +25965,7 @@ export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
|
25170
25965
|
}
|
|
25171
25966
|
}
|
|
25172
25967
|
if (!data) {
|
|
25173
|
-
this.crossCompanyUtilization = new
|
|
25968
|
+
this.crossCompanyUtilization = new UtilizationDetailsV2Dto();
|
|
25174
25969
|
this.companies = [];
|
|
25175
25970
|
}
|
|
25176
25971
|
}
|
|
@@ -25178,7 +25973,7 @@ export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
|
25178
25973
|
init(_data?: any) {
|
|
25179
25974
|
if (_data) {
|
|
25180
25975
|
this.utilizationType = _data["utilizationType"];
|
|
25181
|
-
this.crossCompanyUtilization = _data["crossCompanyUtilization"] ?
|
|
25976
|
+
this.crossCompanyUtilization = _data["crossCompanyUtilization"] ? UtilizationDetailsV2Dto.fromJS(_data["crossCompanyUtilization"]) : new UtilizationDetailsV2Dto();
|
|
25182
25977
|
if (Array.isArray(_data["companies"])) {
|
|
25183
25978
|
this.companies = [] as any;
|
|
25184
25979
|
for (let item of _data["companies"])
|
|
@@ -25209,7 +26004,7 @@ export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
|
25209
26004
|
|
|
25210
26005
|
export interface ICrossCompanyUtilizationDto {
|
|
25211
26006
|
utilizationType: UtilizationTypeDto;
|
|
25212
|
-
crossCompanyUtilization:
|
|
26007
|
+
crossCompanyUtilization: UtilizationDetailsV2Dto;
|
|
25213
26008
|
companies: NamedCompanyUtilizationDto[];
|
|
25214
26009
|
}
|
|
25215
26010
|
|
|
@@ -25363,46 +26158,6 @@ export interface IMachineUtilizationDatapointListDto extends IUtilizationDatapoi
|
|
|
25363
26158
|
description?: string | null;
|
|
25364
26159
|
}
|
|
25365
26160
|
|
|
25366
|
-
export class NumericNullableValueWithTimestamp implements INumericNullableValueWithTimestamp {
|
|
25367
|
-
timestamp?: number;
|
|
25368
|
-
value?: number | null;
|
|
25369
|
-
|
|
25370
|
-
constructor(data?: INumericNullableValueWithTimestamp) {
|
|
25371
|
-
if (data) {
|
|
25372
|
-
for (var property in data) {
|
|
25373
|
-
if (data.hasOwnProperty(property))
|
|
25374
|
-
(<any>this)[property] = (<any>data)[property];
|
|
25375
|
-
}
|
|
25376
|
-
}
|
|
25377
|
-
}
|
|
25378
|
-
|
|
25379
|
-
init(_data?: any) {
|
|
25380
|
-
if (_data) {
|
|
25381
|
-
this.timestamp = _data["timestamp"];
|
|
25382
|
-
this.value = _data["value"];
|
|
25383
|
-
}
|
|
25384
|
-
}
|
|
25385
|
-
|
|
25386
|
-
static fromJS(data: any): NumericNullableValueWithTimestamp {
|
|
25387
|
-
data = typeof data === 'object' ? data : {};
|
|
25388
|
-
let result = new NumericNullableValueWithTimestamp();
|
|
25389
|
-
result.init(data);
|
|
25390
|
-
return result;
|
|
25391
|
-
}
|
|
25392
|
-
|
|
25393
|
-
toJSON(data?: any) {
|
|
25394
|
-
data = typeof data === 'object' ? data : {};
|
|
25395
|
-
data["timestamp"] = this.timestamp;
|
|
25396
|
-
data["value"] = this.value;
|
|
25397
|
-
return data;
|
|
25398
|
-
}
|
|
25399
|
-
}
|
|
25400
|
-
|
|
25401
|
-
export interface INumericNullableValueWithTimestamp {
|
|
25402
|
-
timestamp?: number;
|
|
25403
|
-
value?: number | null;
|
|
25404
|
-
}
|
|
25405
|
-
|
|
25406
26161
|
export class CompanyUtilizationDatapointListDto extends UtilizationDatapointListDto implements ICompanyUtilizationDatapointListDto {
|
|
25407
26162
|
groups?: MachineGroupUtilizationDatapointListDto[];
|
|
25408
26163
|
ungroupedMachines?: MachineUtilizationDatapointListDto[];
|
|
@@ -32577,6 +33332,522 @@ export interface IWorkOrderProjectDto {
|
|
|
32577
33332
|
projectManager?: string | null;
|
|
32578
33333
|
}
|
|
32579
33334
|
|
|
33335
|
+
export class UtilizationSummaryDto implements IUtilizationSummaryDto {
|
|
33336
|
+
factory!: FactoryUtilizationDto;
|
|
33337
|
+
groups!: MachineGroupUtilizationDto[];
|
|
33338
|
+
ungroupedMachines!: MachineUtilizationV2Dto[];
|
|
33339
|
+
|
|
33340
|
+
constructor(data?: IUtilizationSummaryDto) {
|
|
33341
|
+
if (data) {
|
|
33342
|
+
for (var property in data) {
|
|
33343
|
+
if (data.hasOwnProperty(property))
|
|
33344
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33345
|
+
}
|
|
33346
|
+
}
|
|
33347
|
+
if (!data) {
|
|
33348
|
+
this.factory = new FactoryUtilizationDto();
|
|
33349
|
+
this.groups = [];
|
|
33350
|
+
this.ungroupedMachines = [];
|
|
33351
|
+
}
|
|
33352
|
+
}
|
|
33353
|
+
|
|
33354
|
+
init(_data?: any) {
|
|
33355
|
+
if (_data) {
|
|
33356
|
+
this.factory = _data["factory"] ? FactoryUtilizationDto.fromJS(_data["factory"]) : new FactoryUtilizationDto();
|
|
33357
|
+
if (Array.isArray(_data["groups"])) {
|
|
33358
|
+
this.groups = [] as any;
|
|
33359
|
+
for (let item of _data["groups"])
|
|
33360
|
+
this.groups!.push(MachineGroupUtilizationDto.fromJS(item));
|
|
33361
|
+
}
|
|
33362
|
+
if (Array.isArray(_data["ungroupedMachines"])) {
|
|
33363
|
+
this.ungroupedMachines = [] as any;
|
|
33364
|
+
for (let item of _data["ungroupedMachines"])
|
|
33365
|
+
this.ungroupedMachines!.push(MachineUtilizationV2Dto.fromJS(item));
|
|
33366
|
+
}
|
|
33367
|
+
}
|
|
33368
|
+
}
|
|
33369
|
+
|
|
33370
|
+
static fromJS(data: any): UtilizationSummaryDto {
|
|
33371
|
+
data = typeof data === 'object' ? data : {};
|
|
33372
|
+
let result = new UtilizationSummaryDto();
|
|
33373
|
+
result.init(data);
|
|
33374
|
+
return result;
|
|
33375
|
+
}
|
|
33376
|
+
|
|
33377
|
+
toJSON(data?: any) {
|
|
33378
|
+
data = typeof data === 'object' ? data : {};
|
|
33379
|
+
data["factory"] = this.factory ? this.factory.toJSON() : <any>undefined;
|
|
33380
|
+
if (Array.isArray(this.groups)) {
|
|
33381
|
+
data["groups"] = [];
|
|
33382
|
+
for (let item of this.groups)
|
|
33383
|
+
data["groups"].push(item.toJSON());
|
|
33384
|
+
}
|
|
33385
|
+
if (Array.isArray(this.ungroupedMachines)) {
|
|
33386
|
+
data["ungroupedMachines"] = [];
|
|
33387
|
+
for (let item of this.ungroupedMachines)
|
|
33388
|
+
data["ungroupedMachines"].push(item.toJSON());
|
|
33389
|
+
}
|
|
33390
|
+
return data;
|
|
33391
|
+
}
|
|
33392
|
+
}
|
|
33393
|
+
|
|
33394
|
+
export interface IUtilizationSummaryDto {
|
|
33395
|
+
factory: FactoryUtilizationDto;
|
|
33396
|
+
groups: MachineGroupUtilizationDto[];
|
|
33397
|
+
ungroupedMachines: MachineUtilizationV2Dto[];
|
|
33398
|
+
}
|
|
33399
|
+
|
|
33400
|
+
export class FactoryUtilizationDto implements IFactoryUtilizationDto {
|
|
33401
|
+
utilization!: UtilizationDto;
|
|
33402
|
+
|
|
33403
|
+
constructor(data?: IFactoryUtilizationDto) {
|
|
33404
|
+
if (data) {
|
|
33405
|
+
for (var property in data) {
|
|
33406
|
+
if (data.hasOwnProperty(property))
|
|
33407
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33408
|
+
}
|
|
33409
|
+
}
|
|
33410
|
+
if (!data) {
|
|
33411
|
+
this.utilization = new UtilizationDto();
|
|
33412
|
+
}
|
|
33413
|
+
}
|
|
33414
|
+
|
|
33415
|
+
init(_data?: any) {
|
|
33416
|
+
if (_data) {
|
|
33417
|
+
this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
|
|
33418
|
+
}
|
|
33419
|
+
}
|
|
33420
|
+
|
|
33421
|
+
static fromJS(data: any): FactoryUtilizationDto {
|
|
33422
|
+
data = typeof data === 'object' ? data : {};
|
|
33423
|
+
let result = new FactoryUtilizationDto();
|
|
33424
|
+
result.init(data);
|
|
33425
|
+
return result;
|
|
33426
|
+
}
|
|
33427
|
+
|
|
33428
|
+
toJSON(data?: any) {
|
|
33429
|
+
data = typeof data === 'object' ? data : {};
|
|
33430
|
+
data["utilization"] = this.utilization ? this.utilization.toJSON() : <any>undefined;
|
|
33431
|
+
return data;
|
|
33432
|
+
}
|
|
33433
|
+
}
|
|
33434
|
+
|
|
33435
|
+
export interface IFactoryUtilizationDto {
|
|
33436
|
+
utilization: UtilizationDto;
|
|
33437
|
+
}
|
|
33438
|
+
|
|
33439
|
+
export class UtilizationDto implements IUtilizationDto {
|
|
33440
|
+
powerOn!: PowerOnUtilizationV2Dto;
|
|
33441
|
+
uptimeDowntimes!: UptimeDowntimesDto;
|
|
33442
|
+
twentyFourSeven!: TwentyFourSevenUtilizationDto;
|
|
33443
|
+
|
|
33444
|
+
constructor(data?: IUtilizationDto) {
|
|
33445
|
+
if (data) {
|
|
33446
|
+
for (var property in data) {
|
|
33447
|
+
if (data.hasOwnProperty(property))
|
|
33448
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33449
|
+
}
|
|
33450
|
+
}
|
|
33451
|
+
if (!data) {
|
|
33452
|
+
this.powerOn = new PowerOnUtilizationV2Dto();
|
|
33453
|
+
this.uptimeDowntimes = new UptimeDowntimesDto();
|
|
33454
|
+
this.twentyFourSeven = new TwentyFourSevenUtilizationDto();
|
|
33455
|
+
}
|
|
33456
|
+
}
|
|
33457
|
+
|
|
33458
|
+
init(_data?: any) {
|
|
33459
|
+
if (_data) {
|
|
33460
|
+
this.powerOn = _data["powerOn"] ? PowerOnUtilizationV2Dto.fromJS(_data["powerOn"]) : new PowerOnUtilizationV2Dto();
|
|
33461
|
+
this.uptimeDowntimes = _data["uptimeDowntimes"] ? UptimeDowntimesDto.fromJS(_data["uptimeDowntimes"]) : new UptimeDowntimesDto();
|
|
33462
|
+
this.twentyFourSeven = _data["twentyFourSeven"] ? TwentyFourSevenUtilizationDto.fromJS(_data["twentyFourSeven"]) : new TwentyFourSevenUtilizationDto();
|
|
33463
|
+
}
|
|
33464
|
+
}
|
|
33465
|
+
|
|
33466
|
+
static fromJS(data: any): UtilizationDto {
|
|
33467
|
+
data = typeof data === 'object' ? data : {};
|
|
33468
|
+
let result = new UtilizationDto();
|
|
33469
|
+
result.init(data);
|
|
33470
|
+
return result;
|
|
33471
|
+
}
|
|
33472
|
+
|
|
33473
|
+
toJSON(data?: any) {
|
|
33474
|
+
data = typeof data === 'object' ? data : {};
|
|
33475
|
+
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : <any>undefined;
|
|
33476
|
+
data["uptimeDowntimes"] = this.uptimeDowntimes ? this.uptimeDowntimes.toJSON() : <any>undefined;
|
|
33477
|
+
data["twentyFourSeven"] = this.twentyFourSeven ? this.twentyFourSeven.toJSON() : <any>undefined;
|
|
33478
|
+
return data;
|
|
33479
|
+
}
|
|
33480
|
+
}
|
|
33481
|
+
|
|
33482
|
+
export interface IUtilizationDto {
|
|
33483
|
+
powerOn: PowerOnUtilizationV2Dto;
|
|
33484
|
+
uptimeDowntimes: UptimeDowntimesDto;
|
|
33485
|
+
twentyFourSeven: TwentyFourSevenUtilizationDto;
|
|
33486
|
+
}
|
|
33487
|
+
|
|
33488
|
+
export class PowerOnUtilizationV2Dto implements IPowerOnUtilizationV2Dto {
|
|
33489
|
+
today?: number | null;
|
|
33490
|
+
sevenDays?: number | null;
|
|
33491
|
+
thirtyDays?: number | null;
|
|
33492
|
+
ninetyDays?: number | null;
|
|
33493
|
+
yearToDate?: number | null;
|
|
33494
|
+
|
|
33495
|
+
constructor(data?: IPowerOnUtilizationV2Dto) {
|
|
33496
|
+
if (data) {
|
|
33497
|
+
for (var property in data) {
|
|
33498
|
+
if (data.hasOwnProperty(property))
|
|
33499
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33500
|
+
}
|
|
33501
|
+
}
|
|
33502
|
+
}
|
|
33503
|
+
|
|
33504
|
+
init(_data?: any) {
|
|
33505
|
+
if (_data) {
|
|
33506
|
+
this.today = _data["today"];
|
|
33507
|
+
this.sevenDays = _data["sevenDays"];
|
|
33508
|
+
this.thirtyDays = _data["thirtyDays"];
|
|
33509
|
+
this.ninetyDays = _data["ninetyDays"];
|
|
33510
|
+
this.yearToDate = _data["yearToDate"];
|
|
33511
|
+
}
|
|
33512
|
+
}
|
|
33513
|
+
|
|
33514
|
+
static fromJS(data: any): PowerOnUtilizationV2Dto {
|
|
33515
|
+
data = typeof data === 'object' ? data : {};
|
|
33516
|
+
let result = new PowerOnUtilizationV2Dto();
|
|
33517
|
+
result.init(data);
|
|
33518
|
+
return result;
|
|
33519
|
+
}
|
|
33520
|
+
|
|
33521
|
+
toJSON(data?: any) {
|
|
33522
|
+
data = typeof data === 'object' ? data : {};
|
|
33523
|
+
data["today"] = this.today;
|
|
33524
|
+
data["sevenDays"] = this.sevenDays;
|
|
33525
|
+
data["thirtyDays"] = this.thirtyDays;
|
|
33526
|
+
data["ninetyDays"] = this.ninetyDays;
|
|
33527
|
+
data["yearToDate"] = this.yearToDate;
|
|
33528
|
+
return data;
|
|
33529
|
+
}
|
|
33530
|
+
}
|
|
33531
|
+
|
|
33532
|
+
export interface IPowerOnUtilizationV2Dto {
|
|
33533
|
+
today?: number | null;
|
|
33534
|
+
sevenDays?: number | null;
|
|
33535
|
+
thirtyDays?: number | null;
|
|
33536
|
+
ninetyDays?: number | null;
|
|
33537
|
+
yearToDate?: number | null;
|
|
33538
|
+
}
|
|
33539
|
+
|
|
33540
|
+
export class UptimeDowntimesDto implements IUptimeDowntimesDto {
|
|
33541
|
+
today?: UptimeDowntimeDto | null;
|
|
33542
|
+
sevenDays?: UptimeDowntimeDto | null;
|
|
33543
|
+
thirtyDays?: UptimeDowntimeDto | null;
|
|
33544
|
+
ninetyDays?: UptimeDowntimeDto | null;
|
|
33545
|
+
yearToDate?: UptimeDowntimeDto | null;
|
|
33546
|
+
total?: UptimeDowntimeDto | null;
|
|
33547
|
+
|
|
33548
|
+
constructor(data?: IUptimeDowntimesDto) {
|
|
33549
|
+
if (data) {
|
|
33550
|
+
for (var property in data) {
|
|
33551
|
+
if (data.hasOwnProperty(property))
|
|
33552
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33553
|
+
}
|
|
33554
|
+
}
|
|
33555
|
+
}
|
|
33556
|
+
|
|
33557
|
+
init(_data?: any) {
|
|
33558
|
+
if (_data) {
|
|
33559
|
+
this.today = _data["today"] ? UptimeDowntimeDto.fromJS(_data["today"]) : <any>undefined;
|
|
33560
|
+
this.sevenDays = _data["sevenDays"] ? UptimeDowntimeDto.fromJS(_data["sevenDays"]) : <any>undefined;
|
|
33561
|
+
this.thirtyDays = _data["thirtyDays"] ? UptimeDowntimeDto.fromJS(_data["thirtyDays"]) : <any>undefined;
|
|
33562
|
+
this.ninetyDays = _data["ninetyDays"] ? UptimeDowntimeDto.fromJS(_data["ninetyDays"]) : <any>undefined;
|
|
33563
|
+
this.yearToDate = _data["yearToDate"] ? UptimeDowntimeDto.fromJS(_data["yearToDate"]) : <any>undefined;
|
|
33564
|
+
this.total = _data["total"] ? UptimeDowntimeDto.fromJS(_data["total"]) : <any>undefined;
|
|
33565
|
+
}
|
|
33566
|
+
}
|
|
33567
|
+
|
|
33568
|
+
static fromJS(data: any): UptimeDowntimesDto {
|
|
33569
|
+
data = typeof data === 'object' ? data : {};
|
|
33570
|
+
let result = new UptimeDowntimesDto();
|
|
33571
|
+
result.init(data);
|
|
33572
|
+
return result;
|
|
33573
|
+
}
|
|
33574
|
+
|
|
33575
|
+
toJSON(data?: any) {
|
|
33576
|
+
data = typeof data === 'object' ? data : {};
|
|
33577
|
+
data["today"] = this.today ? this.today.toJSON() : <any>undefined;
|
|
33578
|
+
data["sevenDays"] = this.sevenDays ? this.sevenDays.toJSON() : <any>undefined;
|
|
33579
|
+
data["thirtyDays"] = this.thirtyDays ? this.thirtyDays.toJSON() : <any>undefined;
|
|
33580
|
+
data["ninetyDays"] = this.ninetyDays ? this.ninetyDays.toJSON() : <any>undefined;
|
|
33581
|
+
data["yearToDate"] = this.yearToDate ? this.yearToDate.toJSON() : <any>undefined;
|
|
33582
|
+
data["total"] = this.total ? this.total.toJSON() : <any>undefined;
|
|
33583
|
+
return data;
|
|
33584
|
+
}
|
|
33585
|
+
}
|
|
33586
|
+
|
|
33587
|
+
export interface IUptimeDowntimesDto {
|
|
33588
|
+
today?: UptimeDowntimeDto | null;
|
|
33589
|
+
sevenDays?: UptimeDowntimeDto | null;
|
|
33590
|
+
thirtyDays?: UptimeDowntimeDto | null;
|
|
33591
|
+
ninetyDays?: UptimeDowntimeDto | null;
|
|
33592
|
+
yearToDate?: UptimeDowntimeDto | null;
|
|
33593
|
+
total?: UptimeDowntimeDto | null;
|
|
33594
|
+
}
|
|
33595
|
+
|
|
33596
|
+
export class UptimeDowntimeDto implements IUptimeDowntimeDto {
|
|
33597
|
+
uptimeInSeconds?: number | null;
|
|
33598
|
+
downtimeInSeconds?: number | null;
|
|
33599
|
+
powerOnTimeInSeconds?: number | null;
|
|
33600
|
+
twentyFourSevenTimeInSeconds?: number | null;
|
|
33601
|
+
|
|
33602
|
+
constructor(data?: IUptimeDowntimeDto) {
|
|
33603
|
+
if (data) {
|
|
33604
|
+
for (var property in data) {
|
|
33605
|
+
if (data.hasOwnProperty(property))
|
|
33606
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33607
|
+
}
|
|
33608
|
+
}
|
|
33609
|
+
}
|
|
33610
|
+
|
|
33611
|
+
init(_data?: any) {
|
|
33612
|
+
if (_data) {
|
|
33613
|
+
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
33614
|
+
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
33615
|
+
this.powerOnTimeInSeconds = _data["powerOnTimeInSeconds"];
|
|
33616
|
+
this.twentyFourSevenTimeInSeconds = _data["twentyFourSevenTimeInSeconds"];
|
|
33617
|
+
}
|
|
33618
|
+
}
|
|
33619
|
+
|
|
33620
|
+
static fromJS(data: any): UptimeDowntimeDto {
|
|
33621
|
+
data = typeof data === 'object' ? data : {};
|
|
33622
|
+
let result = new UptimeDowntimeDto();
|
|
33623
|
+
result.init(data);
|
|
33624
|
+
return result;
|
|
33625
|
+
}
|
|
33626
|
+
|
|
33627
|
+
toJSON(data?: any) {
|
|
33628
|
+
data = typeof data === 'object' ? data : {};
|
|
33629
|
+
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
33630
|
+
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
33631
|
+
data["powerOnTimeInSeconds"] = this.powerOnTimeInSeconds;
|
|
33632
|
+
data["twentyFourSevenTimeInSeconds"] = this.twentyFourSevenTimeInSeconds;
|
|
33633
|
+
return data;
|
|
33634
|
+
}
|
|
33635
|
+
}
|
|
33636
|
+
|
|
33637
|
+
export interface IUptimeDowntimeDto {
|
|
33638
|
+
uptimeInSeconds?: number | null;
|
|
33639
|
+
downtimeInSeconds?: number | null;
|
|
33640
|
+
powerOnTimeInSeconds?: number | null;
|
|
33641
|
+
twentyFourSevenTimeInSeconds?: number | null;
|
|
33642
|
+
}
|
|
33643
|
+
|
|
33644
|
+
export class TwentyFourSevenUtilizationDto implements ITwentyFourSevenUtilizationDto {
|
|
33645
|
+
sevenDays?: number | null;
|
|
33646
|
+
thirtyDays?: number | null;
|
|
33647
|
+
ninetyDays?: number | null;
|
|
33648
|
+
yearToDate?: number | null;
|
|
33649
|
+
|
|
33650
|
+
constructor(data?: ITwentyFourSevenUtilizationDto) {
|
|
33651
|
+
if (data) {
|
|
33652
|
+
for (var property in data) {
|
|
33653
|
+
if (data.hasOwnProperty(property))
|
|
33654
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33655
|
+
}
|
|
33656
|
+
}
|
|
33657
|
+
}
|
|
33658
|
+
|
|
33659
|
+
init(_data?: any) {
|
|
33660
|
+
if (_data) {
|
|
33661
|
+
this.sevenDays = _data["sevenDays"];
|
|
33662
|
+
this.thirtyDays = _data["thirtyDays"];
|
|
33663
|
+
this.ninetyDays = _data["ninetyDays"];
|
|
33664
|
+
this.yearToDate = _data["yearToDate"];
|
|
33665
|
+
}
|
|
33666
|
+
}
|
|
33667
|
+
|
|
33668
|
+
static fromJS(data: any): TwentyFourSevenUtilizationDto {
|
|
33669
|
+
data = typeof data === 'object' ? data : {};
|
|
33670
|
+
let result = new TwentyFourSevenUtilizationDto();
|
|
33671
|
+
result.init(data);
|
|
33672
|
+
return result;
|
|
33673
|
+
}
|
|
33674
|
+
|
|
33675
|
+
toJSON(data?: any) {
|
|
33676
|
+
data = typeof data === 'object' ? data : {};
|
|
33677
|
+
data["sevenDays"] = this.sevenDays;
|
|
33678
|
+
data["thirtyDays"] = this.thirtyDays;
|
|
33679
|
+
data["ninetyDays"] = this.ninetyDays;
|
|
33680
|
+
data["yearToDate"] = this.yearToDate;
|
|
33681
|
+
return data;
|
|
33682
|
+
}
|
|
33683
|
+
}
|
|
33684
|
+
|
|
33685
|
+
export interface ITwentyFourSevenUtilizationDto {
|
|
33686
|
+
sevenDays?: number | null;
|
|
33687
|
+
thirtyDays?: number | null;
|
|
33688
|
+
ninetyDays?: number | null;
|
|
33689
|
+
yearToDate?: number | null;
|
|
33690
|
+
}
|
|
33691
|
+
|
|
33692
|
+
export class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|
|
33693
|
+
name!: string;
|
|
33694
|
+
utilization!: UtilizationDto;
|
|
33695
|
+
machines!: MachineUtilizationV2Dto[];
|
|
33696
|
+
|
|
33697
|
+
constructor(data?: IMachineGroupUtilizationDto) {
|
|
33698
|
+
if (data) {
|
|
33699
|
+
for (var property in data) {
|
|
33700
|
+
if (data.hasOwnProperty(property))
|
|
33701
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33702
|
+
}
|
|
33703
|
+
}
|
|
33704
|
+
if (!data) {
|
|
33705
|
+
this.utilization = new UtilizationDto();
|
|
33706
|
+
this.machines = [];
|
|
33707
|
+
}
|
|
33708
|
+
}
|
|
33709
|
+
|
|
33710
|
+
init(_data?: any) {
|
|
33711
|
+
if (_data) {
|
|
33712
|
+
this.name = _data["name"];
|
|
33713
|
+
this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
|
|
33714
|
+
if (Array.isArray(_data["machines"])) {
|
|
33715
|
+
this.machines = [] as any;
|
|
33716
|
+
for (let item of _data["machines"])
|
|
33717
|
+
this.machines!.push(MachineUtilizationV2Dto.fromJS(item));
|
|
33718
|
+
}
|
|
33719
|
+
}
|
|
33720
|
+
}
|
|
33721
|
+
|
|
33722
|
+
static fromJS(data: any): MachineGroupUtilizationDto {
|
|
33723
|
+
data = typeof data === 'object' ? data : {};
|
|
33724
|
+
let result = new MachineGroupUtilizationDto();
|
|
33725
|
+
result.init(data);
|
|
33726
|
+
return result;
|
|
33727
|
+
}
|
|
33728
|
+
|
|
33729
|
+
toJSON(data?: any) {
|
|
33730
|
+
data = typeof data === 'object' ? data : {};
|
|
33731
|
+
data["name"] = this.name;
|
|
33732
|
+
data["utilization"] = this.utilization ? this.utilization.toJSON() : <any>undefined;
|
|
33733
|
+
if (Array.isArray(this.machines)) {
|
|
33734
|
+
data["machines"] = [];
|
|
33735
|
+
for (let item of this.machines)
|
|
33736
|
+
data["machines"].push(item.toJSON());
|
|
33737
|
+
}
|
|
33738
|
+
return data;
|
|
33739
|
+
}
|
|
33740
|
+
}
|
|
33741
|
+
|
|
33742
|
+
export interface IMachineGroupUtilizationDto {
|
|
33743
|
+
name: string;
|
|
33744
|
+
utilization: UtilizationDto;
|
|
33745
|
+
machines: MachineUtilizationV2Dto[];
|
|
33746
|
+
}
|
|
33747
|
+
|
|
33748
|
+
export class MachineUtilizationV2Dto implements IMachineUtilizationV2Dto {
|
|
33749
|
+
id?: number;
|
|
33750
|
+
name!: string;
|
|
33751
|
+
description?: string | null;
|
|
33752
|
+
utilization!: UtilizationDto;
|
|
33753
|
+
|
|
33754
|
+
constructor(data?: IMachineUtilizationV2Dto) {
|
|
33755
|
+
if (data) {
|
|
33756
|
+
for (var property in data) {
|
|
33757
|
+
if (data.hasOwnProperty(property))
|
|
33758
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33759
|
+
}
|
|
33760
|
+
}
|
|
33761
|
+
if (!data) {
|
|
33762
|
+
this.utilization = new UtilizationDto();
|
|
33763
|
+
}
|
|
33764
|
+
}
|
|
33765
|
+
|
|
33766
|
+
init(_data?: any) {
|
|
33767
|
+
if (_data) {
|
|
33768
|
+
this.id = _data["id"];
|
|
33769
|
+
this.name = _data["name"];
|
|
33770
|
+
this.description = _data["description"];
|
|
33771
|
+
this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
|
|
33772
|
+
}
|
|
33773
|
+
}
|
|
33774
|
+
|
|
33775
|
+
static fromJS(data: any): MachineUtilizationV2Dto {
|
|
33776
|
+
data = typeof data === 'object' ? data : {};
|
|
33777
|
+
let result = new MachineUtilizationV2Dto();
|
|
33778
|
+
result.init(data);
|
|
33779
|
+
return result;
|
|
33780
|
+
}
|
|
33781
|
+
|
|
33782
|
+
toJSON(data?: any) {
|
|
33783
|
+
data = typeof data === 'object' ? data : {};
|
|
33784
|
+
data["id"] = this.id;
|
|
33785
|
+
data["name"] = this.name;
|
|
33786
|
+
data["description"] = this.description;
|
|
33787
|
+
data["utilization"] = this.utilization ? this.utilization.toJSON() : <any>undefined;
|
|
33788
|
+
return data;
|
|
33789
|
+
}
|
|
33790
|
+
}
|
|
33791
|
+
|
|
33792
|
+
export interface IMachineUtilizationV2Dto {
|
|
33793
|
+
id?: number;
|
|
33794
|
+
name: string;
|
|
33795
|
+
description?: string | null;
|
|
33796
|
+
utilization: UtilizationDto;
|
|
33797
|
+
}
|
|
33798
|
+
|
|
33799
|
+
export class CrossCompanyUtilizationSummaryDto implements ICrossCompanyUtilizationSummaryDto {
|
|
33800
|
+
crossCompany!: FactoryUtilizationDto;
|
|
33801
|
+
companies!: MachineGroupUtilizationDto[];
|
|
33802
|
+
|
|
33803
|
+
constructor(data?: ICrossCompanyUtilizationSummaryDto) {
|
|
33804
|
+
if (data) {
|
|
33805
|
+
for (var property in data) {
|
|
33806
|
+
if (data.hasOwnProperty(property))
|
|
33807
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33808
|
+
}
|
|
33809
|
+
}
|
|
33810
|
+
if (!data) {
|
|
33811
|
+
this.crossCompany = new FactoryUtilizationDto();
|
|
33812
|
+
this.companies = [];
|
|
33813
|
+
}
|
|
33814
|
+
}
|
|
33815
|
+
|
|
33816
|
+
init(_data?: any) {
|
|
33817
|
+
if (_data) {
|
|
33818
|
+
this.crossCompany = _data["crossCompany"] ? FactoryUtilizationDto.fromJS(_data["crossCompany"]) : new FactoryUtilizationDto();
|
|
33819
|
+
if (Array.isArray(_data["companies"])) {
|
|
33820
|
+
this.companies = [] as any;
|
|
33821
|
+
for (let item of _data["companies"])
|
|
33822
|
+
this.companies!.push(MachineGroupUtilizationDto.fromJS(item));
|
|
33823
|
+
}
|
|
33824
|
+
}
|
|
33825
|
+
}
|
|
33826
|
+
|
|
33827
|
+
static fromJS(data: any): CrossCompanyUtilizationSummaryDto {
|
|
33828
|
+
data = typeof data === 'object' ? data : {};
|
|
33829
|
+
let result = new CrossCompanyUtilizationSummaryDto();
|
|
33830
|
+
result.init(data);
|
|
33831
|
+
return result;
|
|
33832
|
+
}
|
|
33833
|
+
|
|
33834
|
+
toJSON(data?: any) {
|
|
33835
|
+
data = typeof data === 'object' ? data : {};
|
|
33836
|
+
data["crossCompany"] = this.crossCompany ? this.crossCompany.toJSON() : <any>undefined;
|
|
33837
|
+
if (Array.isArray(this.companies)) {
|
|
33838
|
+
data["companies"] = [];
|
|
33839
|
+
for (let item of this.companies)
|
|
33840
|
+
data["companies"].push(item.toJSON());
|
|
33841
|
+
}
|
|
33842
|
+
return data;
|
|
33843
|
+
}
|
|
33844
|
+
}
|
|
33845
|
+
|
|
33846
|
+
export interface ICrossCompanyUtilizationSummaryDto {
|
|
33847
|
+
crossCompany: FactoryUtilizationDto;
|
|
33848
|
+
companies: MachineGroupUtilizationDto[];
|
|
33849
|
+
}
|
|
33850
|
+
|
|
32580
33851
|
export class OperatorAndMachineDto implements IOperatorAndMachineDto {
|
|
32581
33852
|
operator?: EmployeeDto | null;
|
|
32582
33853
|
lastWorkOrderEventStartTime?: Date;
|
|
@@ -50619,6 +51890,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
50619
51890
|
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
50620
51891
|
progress!: MeasurementFormProgressDto;
|
|
50621
51892
|
approvedReportUrl?: string | null;
|
|
51893
|
+
currentResource?: ResourceDto | null;
|
|
50622
51894
|
|
|
50623
51895
|
constructor(data?: IMeasurementFormInstanceDto) {
|
|
50624
51896
|
if (data) {
|
|
@@ -50665,6 +51937,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
50665
51937
|
}
|
|
50666
51938
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
50667
51939
|
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
51940
|
+
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : <any>undefined;
|
|
50668
51941
|
}
|
|
50669
51942
|
}
|
|
50670
51943
|
|
|
@@ -50705,6 +51978,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
50705
51978
|
}
|
|
50706
51979
|
data["progress"] = this.progress ? this.progress.toJSON() : <any>undefined;
|
|
50707
51980
|
data["approvedReportUrl"] = this.approvedReportUrl;
|
|
51981
|
+
data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : <any>undefined;
|
|
50708
51982
|
return data;
|
|
50709
51983
|
}
|
|
50710
51984
|
}
|
|
@@ -50726,6 +52000,7 @@ export interface IMeasurementFormInstanceDto {
|
|
|
50726
52000
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
50727
52001
|
progress: MeasurementFormProgressDto;
|
|
50728
52002
|
approvedReportUrl?: string | null;
|
|
52003
|
+
currentResource?: ResourceDto | null;
|
|
50729
52004
|
}
|
|
50730
52005
|
|
|
50731
52006
|
export class MeasurementFormWorkorderSchemaDto implements IMeasurementFormWorkorderSchemaDto {
|
|
@@ -53130,54 +54405,6 @@ export interface IUpsertCustomerOrderRequest {
|
|
|
53130
54405
|
|
|
53131
54406
|
export type CustomerOrderStatus = "Draft" | "Ready" | "Ongoing" | "Completed" | "Deleted";
|
|
53132
54407
|
|
|
53133
|
-
export class CustomerDto implements ICustomerDto {
|
|
53134
|
-
id!: string;
|
|
53135
|
-
name!: string;
|
|
53136
|
-
groupId?: string | null;
|
|
53137
|
-
groupName?: string | null;
|
|
53138
|
-
|
|
53139
|
-
constructor(data?: ICustomerDto) {
|
|
53140
|
-
if (data) {
|
|
53141
|
-
for (var property in data) {
|
|
53142
|
-
if (data.hasOwnProperty(property))
|
|
53143
|
-
(<any>this)[property] = (<any>data)[property];
|
|
53144
|
-
}
|
|
53145
|
-
}
|
|
53146
|
-
}
|
|
53147
|
-
|
|
53148
|
-
init(_data?: any) {
|
|
53149
|
-
if (_data) {
|
|
53150
|
-
this.id = _data["id"];
|
|
53151
|
-
this.name = _data["name"];
|
|
53152
|
-
this.groupId = _data["groupId"];
|
|
53153
|
-
this.groupName = _data["groupName"];
|
|
53154
|
-
}
|
|
53155
|
-
}
|
|
53156
|
-
|
|
53157
|
-
static fromJS(data: any): CustomerDto {
|
|
53158
|
-
data = typeof data === 'object' ? data : {};
|
|
53159
|
-
let result = new CustomerDto();
|
|
53160
|
-
result.init(data);
|
|
53161
|
-
return result;
|
|
53162
|
-
}
|
|
53163
|
-
|
|
53164
|
-
toJSON(data?: any) {
|
|
53165
|
-
data = typeof data === 'object' ? data : {};
|
|
53166
|
-
data["id"] = this.id;
|
|
53167
|
-
data["name"] = this.name;
|
|
53168
|
-
data["groupId"] = this.groupId;
|
|
53169
|
-
data["groupName"] = this.groupName;
|
|
53170
|
-
return data;
|
|
53171
|
-
}
|
|
53172
|
-
}
|
|
53173
|
-
|
|
53174
|
-
export interface ICustomerDto {
|
|
53175
|
-
id: string;
|
|
53176
|
-
name: string;
|
|
53177
|
-
groupId?: string | null;
|
|
53178
|
-
groupName?: string | null;
|
|
53179
|
-
}
|
|
53180
|
-
|
|
53181
54408
|
export class CustomerOrderLineDto implements ICustomerOrderLineDto {
|
|
53182
54409
|
line!: number;
|
|
53183
54410
|
quantity!: number;
|