@ignos/api-client 20250318.0.11388 → 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 +79 -406
- package/lib/ignosportal-api.js +125 -1052
- package/package.json +1 -1
- package/src/ignosportal-api.ts +220 -1443
package/src/ignosportal-api.ts
CHANGED
|
@@ -684,38 +684,13 @@ 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
|
-
|
|
701
687
|
getMachineUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto>;
|
|
702
688
|
|
|
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
|
-
|
|
710
689
|
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
711
690
|
|
|
712
691
|
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
713
692
|
|
|
714
693
|
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>;
|
|
719
694
|
}
|
|
720
695
|
|
|
721
696
|
export class MachineUtilizationClient extends AuthorizedApiBase implements IMachineUtilizationClient {
|
|
@@ -729,64 +704,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
729
704
|
this.baseUrl = baseUrl ?? "";
|
|
730
705
|
}
|
|
731
706
|
|
|
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
|
-
|
|
790
707
|
getMachineUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto> {
|
|
791
708
|
let url_ = this.baseUrl + "/machineutilization/{id}?";
|
|
792
709
|
if (id === undefined || id === null)
|
|
@@ -832,54 +749,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
832
749
|
return Promise.resolve<UtilizationDetailsDto>(null as any);
|
|
833
750
|
}
|
|
834
751
|
|
|
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
|
-
|
|
883
752
|
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
884
753
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
|
|
885
754
|
if (id === undefined || id === null)
|
|
@@ -1009,88 +878,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1009
878
|
}
|
|
1010
879
|
return Promise.resolve<MachineUptimesAggregateDto>(null as any);
|
|
1011
880
|
}
|
|
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
|
-
}
|
|
1094
881
|
}
|
|
1095
882
|
|
|
1096
883
|
export interface IMeClient {
|
|
@@ -6755,12 +6542,6 @@ export interface IMachinesClient {
|
|
|
6755
6542
|
|
|
6756
6543
|
listMachineErpData(): Promise<MachineErpDataListDto>;
|
|
6757
6544
|
|
|
6758
|
-
getMachineErpData(id: number): Promise<MachineErpDataDto>;
|
|
6759
|
-
|
|
6760
|
-
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
6761
|
-
|
|
6762
|
-
getCrossCompanyUtilizationSummary(): Promise<CrossCompanyUtilizationSummaryDto>;
|
|
6763
|
-
|
|
6764
6545
|
listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
|
|
6765
6546
|
|
|
6766
6547
|
createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
|
|
@@ -7235,117 +7016,6 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
7235
7016
|
return Promise.resolve<MachineErpDataListDto>(null as any);
|
|
7236
7017
|
}
|
|
7237
7018
|
|
|
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
|
-
|
|
7349
7019
|
listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]> {
|
|
7350
7020
|
let url_ = this.baseUrl + "/machines/operators?";
|
|
7351
7021
|
if (machineExternalId !== undefined && machineExternalId !== null)
|
|
@@ -22718,329 +22388,6 @@ export interface IComponentSettingsDto {
|
|
|
22718
22388
|
disabledFields?: string[] | null;
|
|
22719
22389
|
}
|
|
22720
22390
|
|
|
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
|
-
|
|
23044
22391
|
export class UtilizationDetailsDto implements IUtilizationDetailsDto {
|
|
23045
22392
|
machineId!: number;
|
|
23046
22393
|
machineName!: string;
|
|
@@ -23097,96 +22444,7 @@ export interface IUtilizationDetailsDto {
|
|
|
23097
22444
|
powerOnUtilization?: number | null;
|
|
23098
22445
|
}
|
|
23099
22446
|
|
|
23100
|
-
export
|
|
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
|
-
}
|
|
22447
|
+
export type MachineState = "InCycle" | "MasterCam" | "MdiCycle" | "CamCycle" | "Idle" | "OptionalStop" | "ProgramStop" | "M0" | "AtcStopped" | "FeedHold" | "MdiMode" | "ManualMode" | "EStop" | "Alarm" | "PowerOff";
|
|
23190
22448
|
|
|
23191
22449
|
export class MachineStateDatapoint implements IMachineStateDatapoint {
|
|
23192
22450
|
machineStateText!: string;
|
|
@@ -23321,6 +22579,97 @@ export interface IDowntimePeriodReasonDto {
|
|
|
23321
22579
|
|
|
23322
22580
|
export type DowntimeReasonTypeDto = "Unplanned" | "Planned";
|
|
23323
22581
|
|
|
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
|
+
|
|
23324
22673
|
export class MachineUptimesAggregateDto implements IMachineUptimesAggregateDto {
|
|
23325
22674
|
machineUptimes!: MachineUptimeDto[];
|
|
23326
22675
|
sum!: MachineUptimeSumDto;
|
|
@@ -23505,150 +22854,6 @@ export interface IListMachineUptimesTodayRequest {
|
|
|
23505
22854
|
utcOffset?: number;
|
|
23506
22855
|
}
|
|
23507
22856
|
|
|
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
|
-
|
|
23652
22857
|
export class UserAppDto implements IUserAppDto {
|
|
23653
22858
|
key!: string;
|
|
23654
22859
|
name!: string;
|
|
@@ -25718,9 +24923,9 @@ export interface IUpdatePulseSettings {
|
|
|
25718
24923
|
|
|
25719
24924
|
export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
25720
24925
|
utilizationType!: UtilizationTypeDto;
|
|
25721
|
-
companyUtilization!:
|
|
25722
|
-
groups!:
|
|
25723
|
-
ungroupedMachines!:
|
|
24926
|
+
companyUtilization!: UtilizationDetailsDto2;
|
|
24927
|
+
groups!: MachineGroupUtilizationDto[];
|
|
24928
|
+
ungroupedMachines!: MachineUtilizationDto[];
|
|
25724
24929
|
|
|
25725
24930
|
constructor(data?: ICompanyUtilizationDto) {
|
|
25726
24931
|
if (data) {
|
|
@@ -25730,7 +24935,7 @@ export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
|
25730
24935
|
}
|
|
25731
24936
|
}
|
|
25732
24937
|
if (!data) {
|
|
25733
|
-
this.companyUtilization = new
|
|
24938
|
+
this.companyUtilization = new UtilizationDetailsDto2();
|
|
25734
24939
|
this.groups = [];
|
|
25735
24940
|
this.ungroupedMachines = [];
|
|
25736
24941
|
}
|
|
@@ -25739,16 +24944,16 @@ export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
|
25739
24944
|
init(_data?: any) {
|
|
25740
24945
|
if (_data) {
|
|
25741
24946
|
this.utilizationType = _data["utilizationType"];
|
|
25742
|
-
this.companyUtilization = _data["companyUtilization"] ?
|
|
24947
|
+
this.companyUtilization = _data["companyUtilization"] ? UtilizationDetailsDto2.fromJS(_data["companyUtilization"]) : new UtilizationDetailsDto2();
|
|
25743
24948
|
if (Array.isArray(_data["groups"])) {
|
|
25744
24949
|
this.groups = [] as any;
|
|
25745
24950
|
for (let item of _data["groups"])
|
|
25746
|
-
this.groups!.push(
|
|
24951
|
+
this.groups!.push(MachineGroupUtilizationDto.fromJS(item));
|
|
25747
24952
|
}
|
|
25748
24953
|
if (Array.isArray(_data["ungroupedMachines"])) {
|
|
25749
24954
|
this.ungroupedMachines = [] as any;
|
|
25750
24955
|
for (let item of _data["ungroupedMachines"])
|
|
25751
|
-
this.ungroupedMachines!.push(
|
|
24956
|
+
this.ungroupedMachines!.push(MachineUtilizationDto.fromJS(item));
|
|
25752
24957
|
}
|
|
25753
24958
|
}
|
|
25754
24959
|
}
|
|
@@ -25780,12 +24985,12 @@ export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
|
25780
24985
|
|
|
25781
24986
|
export interface ICompanyUtilizationDto {
|
|
25782
24987
|
utilizationType: UtilizationTypeDto;
|
|
25783
|
-
companyUtilization:
|
|
25784
|
-
groups:
|
|
25785
|
-
ungroupedMachines:
|
|
24988
|
+
companyUtilization: UtilizationDetailsDto2;
|
|
24989
|
+
groups: MachineGroupUtilizationDto[];
|
|
24990
|
+
ungroupedMachines: MachineUtilizationDto[];
|
|
25786
24991
|
}
|
|
25787
24992
|
|
|
25788
|
-
export class
|
|
24993
|
+
export class UtilizationDetailsDto2 implements IUtilizationDetailsDto2 {
|
|
25789
24994
|
utilizationPercent?: number | null;
|
|
25790
24995
|
uptimeInSeconds?: number | null;
|
|
25791
24996
|
downtimeInSeconds?: number | null;
|
|
@@ -25794,7 +24999,7 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
25794
24999
|
downtimeInMilliseconds?: number | null;
|
|
25795
25000
|
totalTimeInMilliseconds?: number | null;
|
|
25796
25001
|
|
|
25797
|
-
constructor(data?:
|
|
25002
|
+
constructor(data?: IUtilizationDetailsDto2) {
|
|
25798
25003
|
if (data) {
|
|
25799
25004
|
for (var property in data) {
|
|
25800
25005
|
if (data.hasOwnProperty(property))
|
|
@@ -25815,9 +25020,9 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
25815
25020
|
}
|
|
25816
25021
|
}
|
|
25817
25022
|
|
|
25818
|
-
static fromJS(data: any):
|
|
25023
|
+
static fromJS(data: any): UtilizationDetailsDto2 {
|
|
25819
25024
|
data = typeof data === 'object' ? data : {};
|
|
25820
|
-
let result = new
|
|
25025
|
+
let result = new UtilizationDetailsDto2();
|
|
25821
25026
|
result.init(data);
|
|
25822
25027
|
return result;
|
|
25823
25028
|
}
|
|
@@ -25835,7 +25040,7 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
25835
25040
|
}
|
|
25836
25041
|
}
|
|
25837
25042
|
|
|
25838
|
-
export interface
|
|
25043
|
+
export interface IUtilizationDetailsDto2 {
|
|
25839
25044
|
utilizationPercent?: number | null;
|
|
25840
25045
|
uptimeInSeconds?: number | null;
|
|
25841
25046
|
downtimeInSeconds?: number | null;
|
|
@@ -25845,12 +25050,12 @@ export interface IUtilizationDetailsV2Dto {
|
|
|
25845
25050
|
totalTimeInMilliseconds?: number | null;
|
|
25846
25051
|
}
|
|
25847
25052
|
|
|
25848
|
-
export class
|
|
25053
|
+
export class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|
|
25849
25054
|
name!: string;
|
|
25850
|
-
utilization!:
|
|
25851
|
-
machines!:
|
|
25055
|
+
utilization!: UtilizationDetailsDto2;
|
|
25056
|
+
machines!: MachineUtilizationDto[];
|
|
25852
25057
|
|
|
25853
|
-
constructor(data?:
|
|
25058
|
+
constructor(data?: IMachineGroupUtilizationDto) {
|
|
25854
25059
|
if (data) {
|
|
25855
25060
|
for (var property in data) {
|
|
25856
25061
|
if (data.hasOwnProperty(property))
|
|
@@ -25858,7 +25063,7 @@ export class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2D
|
|
|
25858
25063
|
}
|
|
25859
25064
|
}
|
|
25860
25065
|
if (!data) {
|
|
25861
|
-
this.utilization = new
|
|
25066
|
+
this.utilization = new UtilizationDetailsDto2();
|
|
25862
25067
|
this.machines = [];
|
|
25863
25068
|
}
|
|
25864
25069
|
}
|
|
@@ -25866,18 +25071,18 @@ export class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2D
|
|
|
25866
25071
|
init(_data?: any) {
|
|
25867
25072
|
if (_data) {
|
|
25868
25073
|
this.name = _data["name"];
|
|
25869
|
-
this.utilization = _data["utilization"] ?
|
|
25074
|
+
this.utilization = _data["utilization"] ? UtilizationDetailsDto2.fromJS(_data["utilization"]) : new UtilizationDetailsDto2();
|
|
25870
25075
|
if (Array.isArray(_data["machines"])) {
|
|
25871
25076
|
this.machines = [] as any;
|
|
25872
25077
|
for (let item of _data["machines"])
|
|
25873
|
-
this.machines!.push(
|
|
25078
|
+
this.machines!.push(MachineUtilizationDto.fromJS(item));
|
|
25874
25079
|
}
|
|
25875
25080
|
}
|
|
25876
25081
|
}
|
|
25877
25082
|
|
|
25878
|
-
static fromJS(data: any):
|
|
25083
|
+
static fromJS(data: any): MachineGroupUtilizationDto {
|
|
25879
25084
|
data = typeof data === 'object' ? data : {};
|
|
25880
|
-
let result = new
|
|
25085
|
+
let result = new MachineGroupUtilizationDto();
|
|
25881
25086
|
result.init(data);
|
|
25882
25087
|
return result;
|
|
25883
25088
|
}
|
|
@@ -25895,19 +25100,19 @@ export class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2D
|
|
|
25895
25100
|
}
|
|
25896
25101
|
}
|
|
25897
25102
|
|
|
25898
|
-
export interface
|
|
25103
|
+
export interface IMachineGroupUtilizationDto {
|
|
25899
25104
|
name: string;
|
|
25900
|
-
utilization:
|
|
25901
|
-
machines:
|
|
25105
|
+
utilization: UtilizationDetailsDto2;
|
|
25106
|
+
machines: MachineUtilizationDto[];
|
|
25902
25107
|
}
|
|
25903
25108
|
|
|
25904
|
-
export class
|
|
25109
|
+
export class MachineUtilizationDto implements IMachineUtilizationDto {
|
|
25905
25110
|
id?: number;
|
|
25906
25111
|
name!: string;
|
|
25907
25112
|
description?: string | null;
|
|
25908
|
-
utilization!:
|
|
25113
|
+
utilization!: UtilizationDetailsDto2;
|
|
25909
25114
|
|
|
25910
|
-
constructor(data?:
|
|
25115
|
+
constructor(data?: IMachineUtilizationDto) {
|
|
25911
25116
|
if (data) {
|
|
25912
25117
|
for (var property in data) {
|
|
25913
25118
|
if (data.hasOwnProperty(property))
|
|
@@ -25915,7 +25120,7 @@ export class MachineUtilizationV3Dto implements IMachineUtilizationV3Dto {
|
|
|
25915
25120
|
}
|
|
25916
25121
|
}
|
|
25917
25122
|
if (!data) {
|
|
25918
|
-
this.utilization = new
|
|
25123
|
+
this.utilization = new UtilizationDetailsDto2();
|
|
25919
25124
|
}
|
|
25920
25125
|
}
|
|
25921
25126
|
|
|
@@ -25924,13 +25129,13 @@ export class MachineUtilizationV3Dto implements IMachineUtilizationV3Dto {
|
|
|
25924
25129
|
this.id = _data["id"];
|
|
25925
25130
|
this.name = _data["name"];
|
|
25926
25131
|
this.description = _data["description"];
|
|
25927
|
-
this.utilization = _data["utilization"] ?
|
|
25132
|
+
this.utilization = _data["utilization"] ? UtilizationDetailsDto2.fromJS(_data["utilization"]) : new UtilizationDetailsDto2();
|
|
25928
25133
|
}
|
|
25929
25134
|
}
|
|
25930
25135
|
|
|
25931
|
-
static fromJS(data: any):
|
|
25136
|
+
static fromJS(data: any): MachineUtilizationDto {
|
|
25932
25137
|
data = typeof data === 'object' ? data : {};
|
|
25933
|
-
let result = new
|
|
25138
|
+
let result = new MachineUtilizationDto();
|
|
25934
25139
|
result.init(data);
|
|
25935
25140
|
return result;
|
|
25936
25141
|
}
|
|
@@ -25945,16 +25150,16 @@ export class MachineUtilizationV3Dto implements IMachineUtilizationV3Dto {
|
|
|
25945
25150
|
}
|
|
25946
25151
|
}
|
|
25947
25152
|
|
|
25948
|
-
export interface
|
|
25153
|
+
export interface IMachineUtilizationDto {
|
|
25949
25154
|
id?: number;
|
|
25950
25155
|
name: string;
|
|
25951
25156
|
description?: string | null;
|
|
25952
|
-
utilization:
|
|
25157
|
+
utilization: UtilizationDetailsDto2;
|
|
25953
25158
|
}
|
|
25954
25159
|
|
|
25955
25160
|
export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
25956
25161
|
utilizationType!: UtilizationTypeDto;
|
|
25957
|
-
crossCompanyUtilization!:
|
|
25162
|
+
crossCompanyUtilization!: UtilizationDetailsDto2;
|
|
25958
25163
|
companies!: NamedCompanyUtilizationDto[];
|
|
25959
25164
|
|
|
25960
25165
|
constructor(data?: ICrossCompanyUtilizationDto) {
|
|
@@ -25965,7 +25170,7 @@ export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
|
25965
25170
|
}
|
|
25966
25171
|
}
|
|
25967
25172
|
if (!data) {
|
|
25968
|
-
this.crossCompanyUtilization = new
|
|
25173
|
+
this.crossCompanyUtilization = new UtilizationDetailsDto2();
|
|
25969
25174
|
this.companies = [];
|
|
25970
25175
|
}
|
|
25971
25176
|
}
|
|
@@ -25973,7 +25178,7 @@ export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
|
25973
25178
|
init(_data?: any) {
|
|
25974
25179
|
if (_data) {
|
|
25975
25180
|
this.utilizationType = _data["utilizationType"];
|
|
25976
|
-
this.crossCompanyUtilization = _data["crossCompanyUtilization"] ?
|
|
25181
|
+
this.crossCompanyUtilization = _data["crossCompanyUtilization"] ? UtilizationDetailsDto2.fromJS(_data["crossCompanyUtilization"]) : new UtilizationDetailsDto2();
|
|
25977
25182
|
if (Array.isArray(_data["companies"])) {
|
|
25978
25183
|
this.companies = [] as any;
|
|
25979
25184
|
for (let item of _data["companies"])
|
|
@@ -26004,7 +25209,7 @@ export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
|
26004
25209
|
|
|
26005
25210
|
export interface ICrossCompanyUtilizationDto {
|
|
26006
25211
|
utilizationType: UtilizationTypeDto;
|
|
26007
|
-
crossCompanyUtilization:
|
|
25212
|
+
crossCompanyUtilization: UtilizationDetailsDto2;
|
|
26008
25213
|
companies: NamedCompanyUtilizationDto[];
|
|
26009
25214
|
}
|
|
26010
25215
|
|
|
@@ -26158,6 +25363,46 @@ export interface IMachineUtilizationDatapointListDto extends IUtilizationDatapoi
|
|
|
26158
25363
|
description?: string | null;
|
|
26159
25364
|
}
|
|
26160
25365
|
|
|
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
|
+
|
|
26161
25406
|
export class CompanyUtilizationDatapointListDto extends UtilizationDatapointListDto implements ICompanyUtilizationDatapointListDto {
|
|
26162
25407
|
groups?: MachineGroupUtilizationDatapointListDto[];
|
|
26163
25408
|
ungroupedMachines?: MachineUtilizationDatapointListDto[];
|
|
@@ -33332,522 +32577,6 @@ export interface IWorkOrderProjectDto {
|
|
|
33332
32577
|
projectManager?: string | null;
|
|
33333
32578
|
}
|
|
33334
32579
|
|
|
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
|
-
|
|
33851
32580
|
export class OperatorAndMachineDto implements IOperatorAndMachineDto {
|
|
33852
32581
|
operator?: EmployeeDto | null;
|
|
33853
32582
|
lastWorkOrderEventStartTime?: Date;
|
|
@@ -54401,6 +53130,54 @@ export interface IUpsertCustomerOrderRequest {
|
|
|
54401
53130
|
|
|
54402
53131
|
export type CustomerOrderStatus = "Draft" | "Ready" | "Ongoing" | "Completed" | "Deleted";
|
|
54403
53132
|
|
|
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
|
+
|
|
54404
53181
|
export class CustomerOrderLineDto implements ICustomerOrderLineDto {
|
|
54405
53182
|
line!: number;
|
|
54406
53183
|
quantity!: number;
|