@ignos/api-client 20250318.0.11386 → 20250320.0.11395-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +92 -409
- package/lib/ignosportal-api.js +224 -1113
- package/package.json +1 -1
- package/src/ignosportal-api.ts +276 -1450
package/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)
|
|
@@ -16538,7 +16208,7 @@ export interface IMeasurementFormSchemasClient {
|
|
|
16538
16208
|
|
|
16539
16209
|
updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
|
|
16540
16210
|
|
|
16541
|
-
|
|
16211
|
+
deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto>;
|
|
16542
16212
|
|
|
16543
16213
|
uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
|
|
16544
16214
|
|
|
@@ -16951,18 +16621,20 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
16951
16621
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
16952
16622
|
}
|
|
16953
16623
|
|
|
16954
|
-
|
|
16955
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/
|
|
16624
|
+
deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto> {
|
|
16625
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterows";
|
|
16956
16626
|
if (id === undefined || id === null)
|
|
16957
16627
|
throw new Error("The parameter 'id' must be defined.");
|
|
16958
16628
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16959
|
-
if (ballonId !== undefined && ballonId !== null)
|
|
16960
|
-
url_ += "ballonId=" + encodeURIComponent("" + ballonId) + "&";
|
|
16961
16629
|
url_ = url_.replace(/[?&]$/, "");
|
|
16962
16630
|
|
|
16631
|
+
const content_ = JSON.stringify(request);
|
|
16632
|
+
|
|
16963
16633
|
let options_: RequestInit = {
|
|
16634
|
+
body: content_,
|
|
16964
16635
|
method: "DELETE",
|
|
16965
16636
|
headers: {
|
|
16637
|
+
"Content-Type": "application/json",
|
|
16966
16638
|
"Accept": "application/json"
|
|
16967
16639
|
}
|
|
16968
16640
|
};
|
|
@@ -16970,11 +16642,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
16970
16642
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
16971
16643
|
return this.http.fetch(url_, transformedOptions_);
|
|
16972
16644
|
}).then((_response: Response) => {
|
|
16973
|
-
return this.
|
|
16645
|
+
return this.processDeleteSchemaRows(_response);
|
|
16974
16646
|
});
|
|
16975
16647
|
}
|
|
16976
16648
|
|
|
16977
|
-
protected
|
|
16649
|
+
protected processDeleteSchemaRows(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
16978
16650
|
const status = response.status;
|
|
16979
16651
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
16980
16652
|
if (status === 200) {
|
|
@@ -22716,329 +22388,6 @@ export interface IComponentSettingsDto {
|
|
|
22716
22388
|
disabledFields?: string[] | null;
|
|
22717
22389
|
}
|
|
22718
22390
|
|
|
22719
|
-
export class UtilizationListDto implements IUtilizationListDto {
|
|
22720
|
-
machines?: MachineUtilizationDto[] | null;
|
|
22721
|
-
|
|
22722
|
-
constructor(data?: IUtilizationListDto) {
|
|
22723
|
-
if (data) {
|
|
22724
|
-
for (var property in data) {
|
|
22725
|
-
if (data.hasOwnProperty(property))
|
|
22726
|
-
(<any>this)[property] = (<any>data)[property];
|
|
22727
|
-
}
|
|
22728
|
-
}
|
|
22729
|
-
}
|
|
22730
|
-
|
|
22731
|
-
init(_data?: any) {
|
|
22732
|
-
if (_data) {
|
|
22733
|
-
if (Array.isArray(_data["machines"])) {
|
|
22734
|
-
this.machines = [] as any;
|
|
22735
|
-
for (let item of _data["machines"])
|
|
22736
|
-
this.machines!.push(MachineUtilizationDto.fromJS(item));
|
|
22737
|
-
}
|
|
22738
|
-
}
|
|
22739
|
-
}
|
|
22740
|
-
|
|
22741
|
-
static fromJS(data: any): UtilizationListDto {
|
|
22742
|
-
data = typeof data === 'object' ? data : {};
|
|
22743
|
-
let result = new UtilizationListDto();
|
|
22744
|
-
result.init(data);
|
|
22745
|
-
return result;
|
|
22746
|
-
}
|
|
22747
|
-
|
|
22748
|
-
toJSON(data?: any) {
|
|
22749
|
-
data = typeof data === 'object' ? data : {};
|
|
22750
|
-
if (Array.isArray(this.machines)) {
|
|
22751
|
-
data["machines"] = [];
|
|
22752
|
-
for (let item of this.machines)
|
|
22753
|
-
data["machines"].push(item.toJSON());
|
|
22754
|
-
}
|
|
22755
|
-
return data;
|
|
22756
|
-
}
|
|
22757
|
-
}
|
|
22758
|
-
|
|
22759
|
-
export interface IUtilizationListDto {
|
|
22760
|
-
machines?: MachineUtilizationDto[] | null;
|
|
22761
|
-
}
|
|
22762
|
-
|
|
22763
|
-
export class MachineUtilizationDto implements IMachineUtilizationDto {
|
|
22764
|
-
assetId!: number;
|
|
22765
|
-
name!: string;
|
|
22766
|
-
description?: string | null;
|
|
22767
|
-
state!: string;
|
|
22768
|
-
machineState!: MachineState;
|
|
22769
|
-
startTime?: Date;
|
|
22770
|
-
workorder?: UtilizationWorkorderDto | null;
|
|
22771
|
-
powerOn?: PowerOnUtilizationDto | null;
|
|
22772
|
-
|
|
22773
|
-
constructor(data?: IMachineUtilizationDto) {
|
|
22774
|
-
if (data) {
|
|
22775
|
-
for (var property in data) {
|
|
22776
|
-
if (data.hasOwnProperty(property))
|
|
22777
|
-
(<any>this)[property] = (<any>data)[property];
|
|
22778
|
-
}
|
|
22779
|
-
}
|
|
22780
|
-
}
|
|
22781
|
-
|
|
22782
|
-
init(_data?: any) {
|
|
22783
|
-
if (_data) {
|
|
22784
|
-
this.assetId = _data["assetId"];
|
|
22785
|
-
this.name = _data["name"];
|
|
22786
|
-
this.description = _data["description"];
|
|
22787
|
-
this.state = _data["state"];
|
|
22788
|
-
this.machineState = _data["machineState"];
|
|
22789
|
-
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
22790
|
-
this.workorder = _data["workorder"] ? UtilizationWorkorderDto.fromJS(_data["workorder"]) : <any>undefined;
|
|
22791
|
-
this.powerOn = _data["powerOn"] ? PowerOnUtilizationDto.fromJS(_data["powerOn"]) : <any>undefined;
|
|
22792
|
-
}
|
|
22793
|
-
}
|
|
22794
|
-
|
|
22795
|
-
static fromJS(data: any): MachineUtilizationDto {
|
|
22796
|
-
data = typeof data === 'object' ? data : {};
|
|
22797
|
-
let result = new MachineUtilizationDto();
|
|
22798
|
-
result.init(data);
|
|
22799
|
-
return result;
|
|
22800
|
-
}
|
|
22801
|
-
|
|
22802
|
-
toJSON(data?: any) {
|
|
22803
|
-
data = typeof data === 'object' ? data : {};
|
|
22804
|
-
data["assetId"] = this.assetId;
|
|
22805
|
-
data["name"] = this.name;
|
|
22806
|
-
data["description"] = this.description;
|
|
22807
|
-
data["state"] = this.state;
|
|
22808
|
-
data["machineState"] = this.machineState;
|
|
22809
|
-
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
22810
|
-
data["workorder"] = this.workorder ? this.workorder.toJSON() : <any>undefined;
|
|
22811
|
-
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : <any>undefined;
|
|
22812
|
-
return data;
|
|
22813
|
-
}
|
|
22814
|
-
}
|
|
22815
|
-
|
|
22816
|
-
export interface IMachineUtilizationDto {
|
|
22817
|
-
assetId: number;
|
|
22818
|
-
name: string;
|
|
22819
|
-
description?: string | null;
|
|
22820
|
-
state: string;
|
|
22821
|
-
machineState: MachineState;
|
|
22822
|
-
startTime?: Date;
|
|
22823
|
-
workorder?: UtilizationWorkorderDto | null;
|
|
22824
|
-
powerOn?: PowerOnUtilizationDto | null;
|
|
22825
|
-
}
|
|
22826
|
-
|
|
22827
|
-
export type MachineState = "InCycle" | "MasterCam" | "MdiCycle" | "CamCycle" | "Idle" | "OptionalStop" | "ProgramStop" | "M0" | "AtcStopped" | "FeedHold" | "MdiMode" | "ManualMode" | "EStop" | "Alarm" | "PowerOff";
|
|
22828
|
-
|
|
22829
|
-
export class UtilizationWorkorderDto implements IUtilizationWorkorderDto {
|
|
22830
|
-
id?: string | null;
|
|
22831
|
-
operation?: number;
|
|
22832
|
-
isSetup?: boolean;
|
|
22833
|
-
partNumber?: string | null;
|
|
22834
|
-
partName?: string | null;
|
|
22835
|
-
customer?: CustomerDto | null;
|
|
22836
|
-
customerOrder?: string | null;
|
|
22837
|
-
startTime?: Date;
|
|
22838
|
-
workorderUtilization?: number | null;
|
|
22839
|
-
comparedToAverage?: number | null;
|
|
22840
|
-
workorderDescription?: string | null;
|
|
22841
|
-
operationDescription?: string | null;
|
|
22842
|
-
|
|
22843
|
-
constructor(data?: IUtilizationWorkorderDto) {
|
|
22844
|
-
if (data) {
|
|
22845
|
-
for (var property in data) {
|
|
22846
|
-
if (data.hasOwnProperty(property))
|
|
22847
|
-
(<any>this)[property] = (<any>data)[property];
|
|
22848
|
-
}
|
|
22849
|
-
}
|
|
22850
|
-
}
|
|
22851
|
-
|
|
22852
|
-
init(_data?: any) {
|
|
22853
|
-
if (_data) {
|
|
22854
|
-
this.id = _data["id"];
|
|
22855
|
-
this.operation = _data["operation"];
|
|
22856
|
-
this.isSetup = _data["isSetup"];
|
|
22857
|
-
this.partNumber = _data["partNumber"];
|
|
22858
|
-
this.partName = _data["partName"];
|
|
22859
|
-
this.customer = _data["customer"] ? CustomerDto.fromJS(_data["customer"]) : <any>undefined;
|
|
22860
|
-
this.customerOrder = _data["customerOrder"];
|
|
22861
|
-
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
22862
|
-
this.workorderUtilization = _data["workorderUtilization"];
|
|
22863
|
-
this.comparedToAverage = _data["comparedToAverage"];
|
|
22864
|
-
this.workorderDescription = _data["workorderDescription"];
|
|
22865
|
-
this.operationDescription = _data["operationDescription"];
|
|
22866
|
-
}
|
|
22867
|
-
}
|
|
22868
|
-
|
|
22869
|
-
static fromJS(data: any): UtilizationWorkorderDto {
|
|
22870
|
-
data = typeof data === 'object' ? data : {};
|
|
22871
|
-
let result = new UtilizationWorkorderDto();
|
|
22872
|
-
result.init(data);
|
|
22873
|
-
return result;
|
|
22874
|
-
}
|
|
22875
|
-
|
|
22876
|
-
toJSON(data?: any) {
|
|
22877
|
-
data = typeof data === 'object' ? data : {};
|
|
22878
|
-
data["id"] = this.id;
|
|
22879
|
-
data["operation"] = this.operation;
|
|
22880
|
-
data["isSetup"] = this.isSetup;
|
|
22881
|
-
data["partNumber"] = this.partNumber;
|
|
22882
|
-
data["partName"] = this.partName;
|
|
22883
|
-
data["customer"] = this.customer ? this.customer.toJSON() : <any>undefined;
|
|
22884
|
-
data["customerOrder"] = this.customerOrder;
|
|
22885
|
-
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
22886
|
-
data["workorderUtilization"] = this.workorderUtilization;
|
|
22887
|
-
data["comparedToAverage"] = this.comparedToAverage;
|
|
22888
|
-
data["workorderDescription"] = this.workorderDescription;
|
|
22889
|
-
data["operationDescription"] = this.operationDescription;
|
|
22890
|
-
return data;
|
|
22891
|
-
}
|
|
22892
|
-
}
|
|
22893
|
-
|
|
22894
|
-
export interface IUtilizationWorkorderDto {
|
|
22895
|
-
id?: string | null;
|
|
22896
|
-
operation?: number;
|
|
22897
|
-
isSetup?: boolean;
|
|
22898
|
-
partNumber?: string | null;
|
|
22899
|
-
partName?: string | null;
|
|
22900
|
-
customer?: CustomerDto | null;
|
|
22901
|
-
customerOrder?: string | null;
|
|
22902
|
-
startTime?: Date;
|
|
22903
|
-
workorderUtilization?: number | null;
|
|
22904
|
-
comparedToAverage?: number | null;
|
|
22905
|
-
workorderDescription?: string | null;
|
|
22906
|
-
operationDescription?: string | null;
|
|
22907
|
-
}
|
|
22908
|
-
|
|
22909
|
-
export class CustomerDto implements ICustomerDto {
|
|
22910
|
-
id!: string;
|
|
22911
|
-
name!: string;
|
|
22912
|
-
groupId?: string | null;
|
|
22913
|
-
groupName?: string | null;
|
|
22914
|
-
|
|
22915
|
-
constructor(data?: ICustomerDto) {
|
|
22916
|
-
if (data) {
|
|
22917
|
-
for (var property in data) {
|
|
22918
|
-
if (data.hasOwnProperty(property))
|
|
22919
|
-
(<any>this)[property] = (<any>data)[property];
|
|
22920
|
-
}
|
|
22921
|
-
}
|
|
22922
|
-
}
|
|
22923
|
-
|
|
22924
|
-
init(_data?: any) {
|
|
22925
|
-
if (_data) {
|
|
22926
|
-
this.id = _data["id"];
|
|
22927
|
-
this.name = _data["name"];
|
|
22928
|
-
this.groupId = _data["groupId"];
|
|
22929
|
-
this.groupName = _data["groupName"];
|
|
22930
|
-
}
|
|
22931
|
-
}
|
|
22932
|
-
|
|
22933
|
-
static fromJS(data: any): CustomerDto {
|
|
22934
|
-
data = typeof data === 'object' ? data : {};
|
|
22935
|
-
let result = new CustomerDto();
|
|
22936
|
-
result.init(data);
|
|
22937
|
-
return result;
|
|
22938
|
-
}
|
|
22939
|
-
|
|
22940
|
-
toJSON(data?: any) {
|
|
22941
|
-
data = typeof data === 'object' ? data : {};
|
|
22942
|
-
data["id"] = this.id;
|
|
22943
|
-
data["name"] = this.name;
|
|
22944
|
-
data["groupId"] = this.groupId;
|
|
22945
|
-
data["groupName"] = this.groupName;
|
|
22946
|
-
return data;
|
|
22947
|
-
}
|
|
22948
|
-
}
|
|
22949
|
-
|
|
22950
|
-
export interface ICustomerDto {
|
|
22951
|
-
id: string;
|
|
22952
|
-
name: string;
|
|
22953
|
-
groupId?: string | null;
|
|
22954
|
-
groupName?: string | null;
|
|
22955
|
-
}
|
|
22956
|
-
|
|
22957
|
-
export class UtilizationAveragesDto implements IUtilizationAveragesDto {
|
|
22958
|
-
averageUtilization90Days?: number | null;
|
|
22959
|
-
averageUtilization30Days?: number | null;
|
|
22960
|
-
averageUtilization7Days?: number | null;
|
|
22961
|
-
averageUtilizationYearToDate?: number | null;
|
|
22962
|
-
|
|
22963
|
-
constructor(data?: IUtilizationAveragesDto) {
|
|
22964
|
-
if (data) {
|
|
22965
|
-
for (var property in data) {
|
|
22966
|
-
if (data.hasOwnProperty(property))
|
|
22967
|
-
(<any>this)[property] = (<any>data)[property];
|
|
22968
|
-
}
|
|
22969
|
-
}
|
|
22970
|
-
}
|
|
22971
|
-
|
|
22972
|
-
init(_data?: any) {
|
|
22973
|
-
if (_data) {
|
|
22974
|
-
this.averageUtilization90Days = _data["averageUtilization90Days"];
|
|
22975
|
-
this.averageUtilization30Days = _data["averageUtilization30Days"];
|
|
22976
|
-
this.averageUtilization7Days = _data["averageUtilization7Days"];
|
|
22977
|
-
this.averageUtilizationYearToDate = _data["averageUtilizationYearToDate"];
|
|
22978
|
-
}
|
|
22979
|
-
}
|
|
22980
|
-
|
|
22981
|
-
static fromJS(data: any): UtilizationAveragesDto {
|
|
22982
|
-
data = typeof data === 'object' ? data : {};
|
|
22983
|
-
let result = new UtilizationAveragesDto();
|
|
22984
|
-
result.init(data);
|
|
22985
|
-
return result;
|
|
22986
|
-
}
|
|
22987
|
-
|
|
22988
|
-
toJSON(data?: any) {
|
|
22989
|
-
data = typeof data === 'object' ? data : {};
|
|
22990
|
-
data["averageUtilization90Days"] = this.averageUtilization90Days;
|
|
22991
|
-
data["averageUtilization30Days"] = this.averageUtilization30Days;
|
|
22992
|
-
data["averageUtilization7Days"] = this.averageUtilization7Days;
|
|
22993
|
-
data["averageUtilizationYearToDate"] = this.averageUtilizationYearToDate;
|
|
22994
|
-
return data;
|
|
22995
|
-
}
|
|
22996
|
-
}
|
|
22997
|
-
|
|
22998
|
-
export interface IUtilizationAveragesDto {
|
|
22999
|
-
averageUtilization90Days?: number | null;
|
|
23000
|
-
averageUtilization30Days?: number | null;
|
|
23001
|
-
averageUtilization7Days?: number | null;
|
|
23002
|
-
averageUtilizationYearToDate?: number | null;
|
|
23003
|
-
}
|
|
23004
|
-
|
|
23005
|
-
export class PowerOnUtilizationDto extends UtilizationAveragesDto implements IPowerOnUtilizationDto {
|
|
23006
|
-
powerOnUtilization?: number | null;
|
|
23007
|
-
comparedToAverage?: number | null;
|
|
23008
|
-
|
|
23009
|
-
constructor(data?: IPowerOnUtilizationDto) {
|
|
23010
|
-
super(data);
|
|
23011
|
-
}
|
|
23012
|
-
|
|
23013
|
-
override init(_data?: any) {
|
|
23014
|
-
super.init(_data);
|
|
23015
|
-
if (_data) {
|
|
23016
|
-
this.powerOnUtilization = _data["powerOnUtilization"];
|
|
23017
|
-
this.comparedToAverage = _data["comparedToAverage"];
|
|
23018
|
-
}
|
|
23019
|
-
}
|
|
23020
|
-
|
|
23021
|
-
static override fromJS(data: any): PowerOnUtilizationDto {
|
|
23022
|
-
data = typeof data === 'object' ? data : {};
|
|
23023
|
-
let result = new PowerOnUtilizationDto();
|
|
23024
|
-
result.init(data);
|
|
23025
|
-
return result;
|
|
23026
|
-
}
|
|
23027
|
-
|
|
23028
|
-
override toJSON(data?: any) {
|
|
23029
|
-
data = typeof data === 'object' ? data : {};
|
|
23030
|
-
data["powerOnUtilization"] = this.powerOnUtilization;
|
|
23031
|
-
data["comparedToAverage"] = this.comparedToAverage;
|
|
23032
|
-
super.toJSON(data);
|
|
23033
|
-
return data;
|
|
23034
|
-
}
|
|
23035
|
-
}
|
|
23036
|
-
|
|
23037
|
-
export interface IPowerOnUtilizationDto extends IUtilizationAveragesDto {
|
|
23038
|
-
powerOnUtilization?: number | null;
|
|
23039
|
-
comparedToAverage?: number | null;
|
|
23040
|
-
}
|
|
23041
|
-
|
|
23042
22391
|
export class UtilizationDetailsDto implements IUtilizationDetailsDto {
|
|
23043
22392
|
machineId!: number;
|
|
23044
22393
|
machineName!: string;
|
|
@@ -23095,96 +22444,7 @@ export interface IUtilizationDetailsDto {
|
|
|
23095
22444
|
powerOnUtilization?: number | null;
|
|
23096
22445
|
}
|
|
23097
22446
|
|
|
23098
|
-
export
|
|
23099
|
-
states!: StateDto[];
|
|
23100
|
-
|
|
23101
|
-
constructor(data?: IMachineStatesSummaryDto) {
|
|
23102
|
-
if (data) {
|
|
23103
|
-
for (var property in data) {
|
|
23104
|
-
if (data.hasOwnProperty(property))
|
|
23105
|
-
(<any>this)[property] = (<any>data)[property];
|
|
23106
|
-
}
|
|
23107
|
-
}
|
|
23108
|
-
if (!data) {
|
|
23109
|
-
this.states = [];
|
|
23110
|
-
}
|
|
23111
|
-
}
|
|
23112
|
-
|
|
23113
|
-
init(_data?: any) {
|
|
23114
|
-
if (_data) {
|
|
23115
|
-
if (Array.isArray(_data["states"])) {
|
|
23116
|
-
this.states = [] as any;
|
|
23117
|
-
for (let item of _data["states"])
|
|
23118
|
-
this.states!.push(StateDto.fromJS(item));
|
|
23119
|
-
}
|
|
23120
|
-
}
|
|
23121
|
-
}
|
|
23122
|
-
|
|
23123
|
-
static fromJS(data: any): MachineStatesSummaryDto {
|
|
23124
|
-
data = typeof data === 'object' ? data : {};
|
|
23125
|
-
let result = new MachineStatesSummaryDto();
|
|
23126
|
-
result.init(data);
|
|
23127
|
-
return result;
|
|
23128
|
-
}
|
|
23129
|
-
|
|
23130
|
-
toJSON(data?: any) {
|
|
23131
|
-
data = typeof data === 'object' ? data : {};
|
|
23132
|
-
if (Array.isArray(this.states)) {
|
|
23133
|
-
data["states"] = [];
|
|
23134
|
-
for (let item of this.states)
|
|
23135
|
-
data["states"].push(item.toJSON());
|
|
23136
|
-
}
|
|
23137
|
-
return data;
|
|
23138
|
-
}
|
|
23139
|
-
}
|
|
23140
|
-
|
|
23141
|
-
export interface IMachineStatesSummaryDto {
|
|
23142
|
-
states: StateDto[];
|
|
23143
|
-
}
|
|
23144
|
-
|
|
23145
|
-
export class StateDto implements IStateDto {
|
|
23146
|
-
state!: string;
|
|
23147
|
-
machineState!: MachineState;
|
|
23148
|
-
seconds!: number;
|
|
23149
|
-
|
|
23150
|
-
constructor(data?: IStateDto) {
|
|
23151
|
-
if (data) {
|
|
23152
|
-
for (var property in data) {
|
|
23153
|
-
if (data.hasOwnProperty(property))
|
|
23154
|
-
(<any>this)[property] = (<any>data)[property];
|
|
23155
|
-
}
|
|
23156
|
-
}
|
|
23157
|
-
}
|
|
23158
|
-
|
|
23159
|
-
init(_data?: any) {
|
|
23160
|
-
if (_data) {
|
|
23161
|
-
this.state = _data["state"];
|
|
23162
|
-
this.machineState = _data["machineState"];
|
|
23163
|
-
this.seconds = _data["seconds"];
|
|
23164
|
-
}
|
|
23165
|
-
}
|
|
23166
|
-
|
|
23167
|
-
static fromJS(data: any): StateDto {
|
|
23168
|
-
data = typeof data === 'object' ? data : {};
|
|
23169
|
-
let result = new StateDto();
|
|
23170
|
-
result.init(data);
|
|
23171
|
-
return result;
|
|
23172
|
-
}
|
|
23173
|
-
|
|
23174
|
-
toJSON(data?: any) {
|
|
23175
|
-
data = typeof data === 'object' ? data : {};
|
|
23176
|
-
data["state"] = this.state;
|
|
23177
|
-
data["machineState"] = this.machineState;
|
|
23178
|
-
data["seconds"] = this.seconds;
|
|
23179
|
-
return data;
|
|
23180
|
-
}
|
|
23181
|
-
}
|
|
23182
|
-
|
|
23183
|
-
export interface IStateDto {
|
|
23184
|
-
state: string;
|
|
23185
|
-
machineState: MachineState;
|
|
23186
|
-
seconds: number;
|
|
23187
|
-
}
|
|
22447
|
+
export type MachineState = "InCycle" | "MasterCam" | "MdiCycle" | "CamCycle" | "Idle" | "OptionalStop" | "ProgramStop" | "M0" | "AtcStopped" | "FeedHold" | "MdiMode" | "ManualMode" | "EStop" | "Alarm" | "PowerOff";
|
|
23188
22448
|
|
|
23189
22449
|
export class MachineStateDatapoint implements IMachineStateDatapoint {
|
|
23190
22450
|
machineStateText!: string;
|
|
@@ -23319,6 +22579,97 @@ export interface IDowntimePeriodReasonDto {
|
|
|
23319
22579
|
|
|
23320
22580
|
export type DowntimeReasonTypeDto = "Unplanned" | "Planned";
|
|
23321
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
|
+
|
|
23322
22673
|
export class MachineUptimesAggregateDto implements IMachineUptimesAggregateDto {
|
|
23323
22674
|
machineUptimes!: MachineUptimeDto[];
|
|
23324
22675
|
sum!: MachineUptimeSumDto;
|
|
@@ -23503,150 +22854,6 @@ export interface IListMachineUptimesTodayRequest {
|
|
|
23503
22854
|
utcOffset?: number;
|
|
23504
22855
|
}
|
|
23505
22856
|
|
|
23506
|
-
export class PowerOnUtilizationList implements IPowerOnUtilizationList {
|
|
23507
|
-
machines?: Machine[];
|
|
23508
|
-
|
|
23509
|
-
constructor(data?: IPowerOnUtilizationList) {
|
|
23510
|
-
if (data) {
|
|
23511
|
-
for (var property in data) {
|
|
23512
|
-
if (data.hasOwnProperty(property))
|
|
23513
|
-
(<any>this)[property] = (<any>data)[property];
|
|
23514
|
-
}
|
|
23515
|
-
}
|
|
23516
|
-
}
|
|
23517
|
-
|
|
23518
|
-
init(_data?: any) {
|
|
23519
|
-
if (_data) {
|
|
23520
|
-
if (Array.isArray(_data["machines"])) {
|
|
23521
|
-
this.machines = [] as any;
|
|
23522
|
-
for (let item of _data["machines"])
|
|
23523
|
-
this.machines!.push(Machine.fromJS(item));
|
|
23524
|
-
}
|
|
23525
|
-
}
|
|
23526
|
-
}
|
|
23527
|
-
|
|
23528
|
-
static fromJS(data: any): PowerOnUtilizationList {
|
|
23529
|
-
data = typeof data === 'object' ? data : {};
|
|
23530
|
-
let result = new PowerOnUtilizationList();
|
|
23531
|
-
result.init(data);
|
|
23532
|
-
return result;
|
|
23533
|
-
}
|
|
23534
|
-
|
|
23535
|
-
toJSON(data?: any) {
|
|
23536
|
-
data = typeof data === 'object' ? data : {};
|
|
23537
|
-
if (Array.isArray(this.machines)) {
|
|
23538
|
-
data["machines"] = [];
|
|
23539
|
-
for (let item of this.machines)
|
|
23540
|
-
data["machines"].push(item.toJSON());
|
|
23541
|
-
}
|
|
23542
|
-
return data;
|
|
23543
|
-
}
|
|
23544
|
-
}
|
|
23545
|
-
|
|
23546
|
-
export interface IPowerOnUtilizationList {
|
|
23547
|
-
machines?: Machine[];
|
|
23548
|
-
}
|
|
23549
|
-
|
|
23550
|
-
export class Machine implements IMachine {
|
|
23551
|
-
externalId?: string;
|
|
23552
|
-
id?: number;
|
|
23553
|
-
name?: string;
|
|
23554
|
-
description?: string | null;
|
|
23555
|
-
datapoints?: NumericNullableValueWithTimestamp[];
|
|
23556
|
-
|
|
23557
|
-
constructor(data?: IMachine) {
|
|
23558
|
-
if (data) {
|
|
23559
|
-
for (var property in data) {
|
|
23560
|
-
if (data.hasOwnProperty(property))
|
|
23561
|
-
(<any>this)[property] = (<any>data)[property];
|
|
23562
|
-
}
|
|
23563
|
-
}
|
|
23564
|
-
}
|
|
23565
|
-
|
|
23566
|
-
init(_data?: any) {
|
|
23567
|
-
if (_data) {
|
|
23568
|
-
this.externalId = _data["externalId"];
|
|
23569
|
-
this.id = _data["id"];
|
|
23570
|
-
this.name = _data["name"];
|
|
23571
|
-
this.description = _data["description"];
|
|
23572
|
-
if (Array.isArray(_data["datapoints"])) {
|
|
23573
|
-
this.datapoints = [] as any;
|
|
23574
|
-
for (let item of _data["datapoints"])
|
|
23575
|
-
this.datapoints!.push(NumericNullableValueWithTimestamp.fromJS(item));
|
|
23576
|
-
}
|
|
23577
|
-
}
|
|
23578
|
-
}
|
|
23579
|
-
|
|
23580
|
-
static fromJS(data: any): Machine {
|
|
23581
|
-
data = typeof data === 'object' ? data : {};
|
|
23582
|
-
let result = new Machine();
|
|
23583
|
-
result.init(data);
|
|
23584
|
-
return result;
|
|
23585
|
-
}
|
|
23586
|
-
|
|
23587
|
-
toJSON(data?: any) {
|
|
23588
|
-
data = typeof data === 'object' ? data : {};
|
|
23589
|
-
data["externalId"] = this.externalId;
|
|
23590
|
-
data["id"] = this.id;
|
|
23591
|
-
data["name"] = this.name;
|
|
23592
|
-
data["description"] = this.description;
|
|
23593
|
-
if (Array.isArray(this.datapoints)) {
|
|
23594
|
-
data["datapoints"] = [];
|
|
23595
|
-
for (let item of this.datapoints)
|
|
23596
|
-
data["datapoints"].push(item.toJSON());
|
|
23597
|
-
}
|
|
23598
|
-
return data;
|
|
23599
|
-
}
|
|
23600
|
-
}
|
|
23601
|
-
|
|
23602
|
-
export interface IMachine {
|
|
23603
|
-
externalId?: string;
|
|
23604
|
-
id?: number;
|
|
23605
|
-
name?: string;
|
|
23606
|
-
description?: string | null;
|
|
23607
|
-
datapoints?: NumericNullableValueWithTimestamp[];
|
|
23608
|
-
}
|
|
23609
|
-
|
|
23610
|
-
export class NumericNullableValueWithTimestamp implements INumericNullableValueWithTimestamp {
|
|
23611
|
-
timestamp?: number;
|
|
23612
|
-
value?: number | null;
|
|
23613
|
-
|
|
23614
|
-
constructor(data?: INumericNullableValueWithTimestamp) {
|
|
23615
|
-
if (data) {
|
|
23616
|
-
for (var property in data) {
|
|
23617
|
-
if (data.hasOwnProperty(property))
|
|
23618
|
-
(<any>this)[property] = (<any>data)[property];
|
|
23619
|
-
}
|
|
23620
|
-
}
|
|
23621
|
-
}
|
|
23622
|
-
|
|
23623
|
-
init(_data?: any) {
|
|
23624
|
-
if (_data) {
|
|
23625
|
-
this.timestamp = _data["timestamp"];
|
|
23626
|
-
this.value = _data["value"];
|
|
23627
|
-
}
|
|
23628
|
-
}
|
|
23629
|
-
|
|
23630
|
-
static fromJS(data: any): NumericNullableValueWithTimestamp {
|
|
23631
|
-
data = typeof data === 'object' ? data : {};
|
|
23632
|
-
let result = new NumericNullableValueWithTimestamp();
|
|
23633
|
-
result.init(data);
|
|
23634
|
-
return result;
|
|
23635
|
-
}
|
|
23636
|
-
|
|
23637
|
-
toJSON(data?: any) {
|
|
23638
|
-
data = typeof data === 'object' ? data : {};
|
|
23639
|
-
data["timestamp"] = this.timestamp;
|
|
23640
|
-
data["value"] = this.value;
|
|
23641
|
-
return data;
|
|
23642
|
-
}
|
|
23643
|
-
}
|
|
23644
|
-
|
|
23645
|
-
export interface INumericNullableValueWithTimestamp {
|
|
23646
|
-
timestamp?: number;
|
|
23647
|
-
value?: number | null;
|
|
23648
|
-
}
|
|
23649
|
-
|
|
23650
22857
|
export class UserAppDto implements IUserAppDto {
|
|
23651
22858
|
key!: string;
|
|
23652
22859
|
name!: string;
|
|
@@ -25716,9 +24923,9 @@ export interface IUpdatePulseSettings {
|
|
|
25716
24923
|
|
|
25717
24924
|
export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
25718
24925
|
utilizationType!: UtilizationTypeDto;
|
|
25719
|
-
companyUtilization!:
|
|
25720
|
-
groups!:
|
|
25721
|
-
ungroupedMachines!:
|
|
24926
|
+
companyUtilization!: UtilizationDetailsDto2;
|
|
24927
|
+
groups!: MachineGroupUtilizationDto[];
|
|
24928
|
+
ungroupedMachines!: MachineUtilizationDto[];
|
|
25722
24929
|
|
|
25723
24930
|
constructor(data?: ICompanyUtilizationDto) {
|
|
25724
24931
|
if (data) {
|
|
@@ -25728,7 +24935,7 @@ export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
|
25728
24935
|
}
|
|
25729
24936
|
}
|
|
25730
24937
|
if (!data) {
|
|
25731
|
-
this.companyUtilization = new
|
|
24938
|
+
this.companyUtilization = new UtilizationDetailsDto2();
|
|
25732
24939
|
this.groups = [];
|
|
25733
24940
|
this.ungroupedMachines = [];
|
|
25734
24941
|
}
|
|
@@ -25737,16 +24944,16 @@ export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
|
25737
24944
|
init(_data?: any) {
|
|
25738
24945
|
if (_data) {
|
|
25739
24946
|
this.utilizationType = _data["utilizationType"];
|
|
25740
|
-
this.companyUtilization = _data["companyUtilization"] ?
|
|
24947
|
+
this.companyUtilization = _data["companyUtilization"] ? UtilizationDetailsDto2.fromJS(_data["companyUtilization"]) : new UtilizationDetailsDto2();
|
|
25741
24948
|
if (Array.isArray(_data["groups"])) {
|
|
25742
24949
|
this.groups = [] as any;
|
|
25743
24950
|
for (let item of _data["groups"])
|
|
25744
|
-
this.groups!.push(
|
|
24951
|
+
this.groups!.push(MachineGroupUtilizationDto.fromJS(item));
|
|
25745
24952
|
}
|
|
25746
24953
|
if (Array.isArray(_data["ungroupedMachines"])) {
|
|
25747
24954
|
this.ungroupedMachines = [] as any;
|
|
25748
24955
|
for (let item of _data["ungroupedMachines"])
|
|
25749
|
-
this.ungroupedMachines!.push(
|
|
24956
|
+
this.ungroupedMachines!.push(MachineUtilizationDto.fromJS(item));
|
|
25750
24957
|
}
|
|
25751
24958
|
}
|
|
25752
24959
|
}
|
|
@@ -25778,12 +24985,12 @@ export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
|
25778
24985
|
|
|
25779
24986
|
export interface ICompanyUtilizationDto {
|
|
25780
24987
|
utilizationType: UtilizationTypeDto;
|
|
25781
|
-
companyUtilization:
|
|
25782
|
-
groups:
|
|
25783
|
-
ungroupedMachines:
|
|
24988
|
+
companyUtilization: UtilizationDetailsDto2;
|
|
24989
|
+
groups: MachineGroupUtilizationDto[];
|
|
24990
|
+
ungroupedMachines: MachineUtilizationDto[];
|
|
25784
24991
|
}
|
|
25785
24992
|
|
|
25786
|
-
export class
|
|
24993
|
+
export class UtilizationDetailsDto2 implements IUtilizationDetailsDto2 {
|
|
25787
24994
|
utilizationPercent?: number | null;
|
|
25788
24995
|
uptimeInSeconds?: number | null;
|
|
25789
24996
|
downtimeInSeconds?: number | null;
|
|
@@ -25792,7 +24999,7 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
25792
24999
|
downtimeInMilliseconds?: number | null;
|
|
25793
25000
|
totalTimeInMilliseconds?: number | null;
|
|
25794
25001
|
|
|
25795
|
-
constructor(data?:
|
|
25002
|
+
constructor(data?: IUtilizationDetailsDto2) {
|
|
25796
25003
|
if (data) {
|
|
25797
25004
|
for (var property in data) {
|
|
25798
25005
|
if (data.hasOwnProperty(property))
|
|
@@ -25813,9 +25020,9 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
25813
25020
|
}
|
|
25814
25021
|
}
|
|
25815
25022
|
|
|
25816
|
-
static fromJS(data: any):
|
|
25023
|
+
static fromJS(data: any): UtilizationDetailsDto2 {
|
|
25817
25024
|
data = typeof data === 'object' ? data : {};
|
|
25818
|
-
let result = new
|
|
25025
|
+
let result = new UtilizationDetailsDto2();
|
|
25819
25026
|
result.init(data);
|
|
25820
25027
|
return result;
|
|
25821
25028
|
}
|
|
@@ -25833,7 +25040,7 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
25833
25040
|
}
|
|
25834
25041
|
}
|
|
25835
25042
|
|
|
25836
|
-
export interface
|
|
25043
|
+
export interface IUtilizationDetailsDto2 {
|
|
25837
25044
|
utilizationPercent?: number | null;
|
|
25838
25045
|
uptimeInSeconds?: number | null;
|
|
25839
25046
|
downtimeInSeconds?: number | null;
|
|
@@ -25843,12 +25050,12 @@ export interface IUtilizationDetailsV2Dto {
|
|
|
25843
25050
|
totalTimeInMilliseconds?: number | null;
|
|
25844
25051
|
}
|
|
25845
25052
|
|
|
25846
|
-
export class
|
|
25053
|
+
export class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|
|
25847
25054
|
name!: string;
|
|
25848
|
-
utilization!:
|
|
25849
|
-
machines!:
|
|
25055
|
+
utilization!: UtilizationDetailsDto2;
|
|
25056
|
+
machines!: MachineUtilizationDto[];
|
|
25850
25057
|
|
|
25851
|
-
constructor(data?:
|
|
25058
|
+
constructor(data?: IMachineGroupUtilizationDto) {
|
|
25852
25059
|
if (data) {
|
|
25853
25060
|
for (var property in data) {
|
|
25854
25061
|
if (data.hasOwnProperty(property))
|
|
@@ -25856,7 +25063,7 @@ export class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2D
|
|
|
25856
25063
|
}
|
|
25857
25064
|
}
|
|
25858
25065
|
if (!data) {
|
|
25859
|
-
this.utilization = new
|
|
25066
|
+
this.utilization = new UtilizationDetailsDto2();
|
|
25860
25067
|
this.machines = [];
|
|
25861
25068
|
}
|
|
25862
25069
|
}
|
|
@@ -25864,18 +25071,18 @@ export class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2D
|
|
|
25864
25071
|
init(_data?: any) {
|
|
25865
25072
|
if (_data) {
|
|
25866
25073
|
this.name = _data["name"];
|
|
25867
|
-
this.utilization = _data["utilization"] ?
|
|
25074
|
+
this.utilization = _data["utilization"] ? UtilizationDetailsDto2.fromJS(_data["utilization"]) : new UtilizationDetailsDto2();
|
|
25868
25075
|
if (Array.isArray(_data["machines"])) {
|
|
25869
25076
|
this.machines = [] as any;
|
|
25870
25077
|
for (let item of _data["machines"])
|
|
25871
|
-
this.machines!.push(
|
|
25078
|
+
this.machines!.push(MachineUtilizationDto.fromJS(item));
|
|
25872
25079
|
}
|
|
25873
25080
|
}
|
|
25874
25081
|
}
|
|
25875
25082
|
|
|
25876
|
-
static fromJS(data: any):
|
|
25083
|
+
static fromJS(data: any): MachineGroupUtilizationDto {
|
|
25877
25084
|
data = typeof data === 'object' ? data : {};
|
|
25878
|
-
let result = new
|
|
25085
|
+
let result = new MachineGroupUtilizationDto();
|
|
25879
25086
|
result.init(data);
|
|
25880
25087
|
return result;
|
|
25881
25088
|
}
|
|
@@ -25893,19 +25100,19 @@ export class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2D
|
|
|
25893
25100
|
}
|
|
25894
25101
|
}
|
|
25895
25102
|
|
|
25896
|
-
export interface
|
|
25103
|
+
export interface IMachineGroupUtilizationDto {
|
|
25897
25104
|
name: string;
|
|
25898
|
-
utilization:
|
|
25899
|
-
machines:
|
|
25105
|
+
utilization: UtilizationDetailsDto2;
|
|
25106
|
+
machines: MachineUtilizationDto[];
|
|
25900
25107
|
}
|
|
25901
25108
|
|
|
25902
|
-
export class
|
|
25109
|
+
export class MachineUtilizationDto implements IMachineUtilizationDto {
|
|
25903
25110
|
id?: number;
|
|
25904
25111
|
name!: string;
|
|
25905
25112
|
description?: string | null;
|
|
25906
|
-
utilization!:
|
|
25113
|
+
utilization!: UtilizationDetailsDto2;
|
|
25907
25114
|
|
|
25908
|
-
constructor(data?:
|
|
25115
|
+
constructor(data?: IMachineUtilizationDto) {
|
|
25909
25116
|
if (data) {
|
|
25910
25117
|
for (var property in data) {
|
|
25911
25118
|
if (data.hasOwnProperty(property))
|
|
@@ -25913,7 +25120,7 @@ export class MachineUtilizationV3Dto implements IMachineUtilizationV3Dto {
|
|
|
25913
25120
|
}
|
|
25914
25121
|
}
|
|
25915
25122
|
if (!data) {
|
|
25916
|
-
this.utilization = new
|
|
25123
|
+
this.utilization = new UtilizationDetailsDto2();
|
|
25917
25124
|
}
|
|
25918
25125
|
}
|
|
25919
25126
|
|
|
@@ -25922,13 +25129,13 @@ export class MachineUtilizationV3Dto implements IMachineUtilizationV3Dto {
|
|
|
25922
25129
|
this.id = _data["id"];
|
|
25923
25130
|
this.name = _data["name"];
|
|
25924
25131
|
this.description = _data["description"];
|
|
25925
|
-
this.utilization = _data["utilization"] ?
|
|
25132
|
+
this.utilization = _data["utilization"] ? UtilizationDetailsDto2.fromJS(_data["utilization"]) : new UtilizationDetailsDto2();
|
|
25926
25133
|
}
|
|
25927
25134
|
}
|
|
25928
25135
|
|
|
25929
|
-
static fromJS(data: any):
|
|
25136
|
+
static fromJS(data: any): MachineUtilizationDto {
|
|
25930
25137
|
data = typeof data === 'object' ? data : {};
|
|
25931
|
-
let result = new
|
|
25138
|
+
let result = new MachineUtilizationDto();
|
|
25932
25139
|
result.init(data);
|
|
25933
25140
|
return result;
|
|
25934
25141
|
}
|
|
@@ -25943,16 +25150,16 @@ export class MachineUtilizationV3Dto implements IMachineUtilizationV3Dto {
|
|
|
25943
25150
|
}
|
|
25944
25151
|
}
|
|
25945
25152
|
|
|
25946
|
-
export interface
|
|
25153
|
+
export interface IMachineUtilizationDto {
|
|
25947
25154
|
id?: number;
|
|
25948
25155
|
name: string;
|
|
25949
25156
|
description?: string | null;
|
|
25950
|
-
utilization:
|
|
25157
|
+
utilization: UtilizationDetailsDto2;
|
|
25951
25158
|
}
|
|
25952
25159
|
|
|
25953
25160
|
export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
25954
25161
|
utilizationType!: UtilizationTypeDto;
|
|
25955
|
-
crossCompanyUtilization!:
|
|
25162
|
+
crossCompanyUtilization!: UtilizationDetailsDto2;
|
|
25956
25163
|
companies!: NamedCompanyUtilizationDto[];
|
|
25957
25164
|
|
|
25958
25165
|
constructor(data?: ICrossCompanyUtilizationDto) {
|
|
@@ -25963,7 +25170,7 @@ export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
|
25963
25170
|
}
|
|
25964
25171
|
}
|
|
25965
25172
|
if (!data) {
|
|
25966
|
-
this.crossCompanyUtilization = new
|
|
25173
|
+
this.crossCompanyUtilization = new UtilizationDetailsDto2();
|
|
25967
25174
|
this.companies = [];
|
|
25968
25175
|
}
|
|
25969
25176
|
}
|
|
@@ -25971,7 +25178,7 @@ export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
|
25971
25178
|
init(_data?: any) {
|
|
25972
25179
|
if (_data) {
|
|
25973
25180
|
this.utilizationType = _data["utilizationType"];
|
|
25974
|
-
this.crossCompanyUtilization = _data["crossCompanyUtilization"] ?
|
|
25181
|
+
this.crossCompanyUtilization = _data["crossCompanyUtilization"] ? UtilizationDetailsDto2.fromJS(_data["crossCompanyUtilization"]) : new UtilizationDetailsDto2();
|
|
25975
25182
|
if (Array.isArray(_data["companies"])) {
|
|
25976
25183
|
this.companies = [] as any;
|
|
25977
25184
|
for (let item of _data["companies"])
|
|
@@ -26002,7 +25209,7 @@ export class CrossCompanyUtilizationDto implements ICrossCompanyUtilizationDto {
|
|
|
26002
25209
|
|
|
26003
25210
|
export interface ICrossCompanyUtilizationDto {
|
|
26004
25211
|
utilizationType: UtilizationTypeDto;
|
|
26005
|
-
crossCompanyUtilization:
|
|
25212
|
+
crossCompanyUtilization: UtilizationDetailsDto2;
|
|
26006
25213
|
companies: NamedCompanyUtilizationDto[];
|
|
26007
25214
|
}
|
|
26008
25215
|
|
|
@@ -26156,6 +25363,46 @@ export interface IMachineUtilizationDatapointListDto extends IUtilizationDatapoi
|
|
|
26156
25363
|
description?: string | null;
|
|
26157
25364
|
}
|
|
26158
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
|
+
|
|
26159
25406
|
export class CompanyUtilizationDatapointListDto extends UtilizationDatapointListDto implements ICompanyUtilizationDatapointListDto {
|
|
26160
25407
|
groups?: MachineGroupUtilizationDatapointListDto[];
|
|
26161
25408
|
ungroupedMachines?: MachineUtilizationDatapointListDto[];
|
|
@@ -33330,522 +32577,6 @@ export interface IWorkOrderProjectDto {
|
|
|
33330
32577
|
projectManager?: string | null;
|
|
33331
32578
|
}
|
|
33332
32579
|
|
|
33333
|
-
export class UtilizationSummaryDto implements IUtilizationSummaryDto {
|
|
33334
|
-
factory!: FactoryUtilizationDto;
|
|
33335
|
-
groups!: MachineGroupUtilizationDto[];
|
|
33336
|
-
ungroupedMachines!: MachineUtilizationV2Dto[];
|
|
33337
|
-
|
|
33338
|
-
constructor(data?: IUtilizationSummaryDto) {
|
|
33339
|
-
if (data) {
|
|
33340
|
-
for (var property in data) {
|
|
33341
|
-
if (data.hasOwnProperty(property))
|
|
33342
|
-
(<any>this)[property] = (<any>data)[property];
|
|
33343
|
-
}
|
|
33344
|
-
}
|
|
33345
|
-
if (!data) {
|
|
33346
|
-
this.factory = new FactoryUtilizationDto();
|
|
33347
|
-
this.groups = [];
|
|
33348
|
-
this.ungroupedMachines = [];
|
|
33349
|
-
}
|
|
33350
|
-
}
|
|
33351
|
-
|
|
33352
|
-
init(_data?: any) {
|
|
33353
|
-
if (_data) {
|
|
33354
|
-
this.factory = _data["factory"] ? FactoryUtilizationDto.fromJS(_data["factory"]) : new FactoryUtilizationDto();
|
|
33355
|
-
if (Array.isArray(_data["groups"])) {
|
|
33356
|
-
this.groups = [] as any;
|
|
33357
|
-
for (let item of _data["groups"])
|
|
33358
|
-
this.groups!.push(MachineGroupUtilizationDto.fromJS(item));
|
|
33359
|
-
}
|
|
33360
|
-
if (Array.isArray(_data["ungroupedMachines"])) {
|
|
33361
|
-
this.ungroupedMachines = [] as any;
|
|
33362
|
-
for (let item of _data["ungroupedMachines"])
|
|
33363
|
-
this.ungroupedMachines!.push(MachineUtilizationV2Dto.fromJS(item));
|
|
33364
|
-
}
|
|
33365
|
-
}
|
|
33366
|
-
}
|
|
33367
|
-
|
|
33368
|
-
static fromJS(data: any): UtilizationSummaryDto {
|
|
33369
|
-
data = typeof data === 'object' ? data : {};
|
|
33370
|
-
let result = new UtilizationSummaryDto();
|
|
33371
|
-
result.init(data);
|
|
33372
|
-
return result;
|
|
33373
|
-
}
|
|
33374
|
-
|
|
33375
|
-
toJSON(data?: any) {
|
|
33376
|
-
data = typeof data === 'object' ? data : {};
|
|
33377
|
-
data["factory"] = this.factory ? this.factory.toJSON() : <any>undefined;
|
|
33378
|
-
if (Array.isArray(this.groups)) {
|
|
33379
|
-
data["groups"] = [];
|
|
33380
|
-
for (let item of this.groups)
|
|
33381
|
-
data["groups"].push(item.toJSON());
|
|
33382
|
-
}
|
|
33383
|
-
if (Array.isArray(this.ungroupedMachines)) {
|
|
33384
|
-
data["ungroupedMachines"] = [];
|
|
33385
|
-
for (let item of this.ungroupedMachines)
|
|
33386
|
-
data["ungroupedMachines"].push(item.toJSON());
|
|
33387
|
-
}
|
|
33388
|
-
return data;
|
|
33389
|
-
}
|
|
33390
|
-
}
|
|
33391
|
-
|
|
33392
|
-
export interface IUtilizationSummaryDto {
|
|
33393
|
-
factory: FactoryUtilizationDto;
|
|
33394
|
-
groups: MachineGroupUtilizationDto[];
|
|
33395
|
-
ungroupedMachines: MachineUtilizationV2Dto[];
|
|
33396
|
-
}
|
|
33397
|
-
|
|
33398
|
-
export class FactoryUtilizationDto implements IFactoryUtilizationDto {
|
|
33399
|
-
utilization!: UtilizationDto;
|
|
33400
|
-
|
|
33401
|
-
constructor(data?: IFactoryUtilizationDto) {
|
|
33402
|
-
if (data) {
|
|
33403
|
-
for (var property in data) {
|
|
33404
|
-
if (data.hasOwnProperty(property))
|
|
33405
|
-
(<any>this)[property] = (<any>data)[property];
|
|
33406
|
-
}
|
|
33407
|
-
}
|
|
33408
|
-
if (!data) {
|
|
33409
|
-
this.utilization = new UtilizationDto();
|
|
33410
|
-
}
|
|
33411
|
-
}
|
|
33412
|
-
|
|
33413
|
-
init(_data?: any) {
|
|
33414
|
-
if (_data) {
|
|
33415
|
-
this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
|
|
33416
|
-
}
|
|
33417
|
-
}
|
|
33418
|
-
|
|
33419
|
-
static fromJS(data: any): FactoryUtilizationDto {
|
|
33420
|
-
data = typeof data === 'object' ? data : {};
|
|
33421
|
-
let result = new FactoryUtilizationDto();
|
|
33422
|
-
result.init(data);
|
|
33423
|
-
return result;
|
|
33424
|
-
}
|
|
33425
|
-
|
|
33426
|
-
toJSON(data?: any) {
|
|
33427
|
-
data = typeof data === 'object' ? data : {};
|
|
33428
|
-
data["utilization"] = this.utilization ? this.utilization.toJSON() : <any>undefined;
|
|
33429
|
-
return data;
|
|
33430
|
-
}
|
|
33431
|
-
}
|
|
33432
|
-
|
|
33433
|
-
export interface IFactoryUtilizationDto {
|
|
33434
|
-
utilization: UtilizationDto;
|
|
33435
|
-
}
|
|
33436
|
-
|
|
33437
|
-
export class UtilizationDto implements IUtilizationDto {
|
|
33438
|
-
powerOn!: PowerOnUtilizationV2Dto;
|
|
33439
|
-
uptimeDowntimes!: UptimeDowntimesDto;
|
|
33440
|
-
twentyFourSeven!: TwentyFourSevenUtilizationDto;
|
|
33441
|
-
|
|
33442
|
-
constructor(data?: IUtilizationDto) {
|
|
33443
|
-
if (data) {
|
|
33444
|
-
for (var property in data) {
|
|
33445
|
-
if (data.hasOwnProperty(property))
|
|
33446
|
-
(<any>this)[property] = (<any>data)[property];
|
|
33447
|
-
}
|
|
33448
|
-
}
|
|
33449
|
-
if (!data) {
|
|
33450
|
-
this.powerOn = new PowerOnUtilizationV2Dto();
|
|
33451
|
-
this.uptimeDowntimes = new UptimeDowntimesDto();
|
|
33452
|
-
this.twentyFourSeven = new TwentyFourSevenUtilizationDto();
|
|
33453
|
-
}
|
|
33454
|
-
}
|
|
33455
|
-
|
|
33456
|
-
init(_data?: any) {
|
|
33457
|
-
if (_data) {
|
|
33458
|
-
this.powerOn = _data["powerOn"] ? PowerOnUtilizationV2Dto.fromJS(_data["powerOn"]) : new PowerOnUtilizationV2Dto();
|
|
33459
|
-
this.uptimeDowntimes = _data["uptimeDowntimes"] ? UptimeDowntimesDto.fromJS(_data["uptimeDowntimes"]) : new UptimeDowntimesDto();
|
|
33460
|
-
this.twentyFourSeven = _data["twentyFourSeven"] ? TwentyFourSevenUtilizationDto.fromJS(_data["twentyFourSeven"]) : new TwentyFourSevenUtilizationDto();
|
|
33461
|
-
}
|
|
33462
|
-
}
|
|
33463
|
-
|
|
33464
|
-
static fromJS(data: any): UtilizationDto {
|
|
33465
|
-
data = typeof data === 'object' ? data : {};
|
|
33466
|
-
let result = new UtilizationDto();
|
|
33467
|
-
result.init(data);
|
|
33468
|
-
return result;
|
|
33469
|
-
}
|
|
33470
|
-
|
|
33471
|
-
toJSON(data?: any) {
|
|
33472
|
-
data = typeof data === 'object' ? data : {};
|
|
33473
|
-
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : <any>undefined;
|
|
33474
|
-
data["uptimeDowntimes"] = this.uptimeDowntimes ? this.uptimeDowntimes.toJSON() : <any>undefined;
|
|
33475
|
-
data["twentyFourSeven"] = this.twentyFourSeven ? this.twentyFourSeven.toJSON() : <any>undefined;
|
|
33476
|
-
return data;
|
|
33477
|
-
}
|
|
33478
|
-
}
|
|
33479
|
-
|
|
33480
|
-
export interface IUtilizationDto {
|
|
33481
|
-
powerOn: PowerOnUtilizationV2Dto;
|
|
33482
|
-
uptimeDowntimes: UptimeDowntimesDto;
|
|
33483
|
-
twentyFourSeven: TwentyFourSevenUtilizationDto;
|
|
33484
|
-
}
|
|
33485
|
-
|
|
33486
|
-
export class PowerOnUtilizationV2Dto implements IPowerOnUtilizationV2Dto {
|
|
33487
|
-
today?: number | null;
|
|
33488
|
-
sevenDays?: number | null;
|
|
33489
|
-
thirtyDays?: number | null;
|
|
33490
|
-
ninetyDays?: number | null;
|
|
33491
|
-
yearToDate?: number | null;
|
|
33492
|
-
|
|
33493
|
-
constructor(data?: IPowerOnUtilizationV2Dto) {
|
|
33494
|
-
if (data) {
|
|
33495
|
-
for (var property in data) {
|
|
33496
|
-
if (data.hasOwnProperty(property))
|
|
33497
|
-
(<any>this)[property] = (<any>data)[property];
|
|
33498
|
-
}
|
|
33499
|
-
}
|
|
33500
|
-
}
|
|
33501
|
-
|
|
33502
|
-
init(_data?: any) {
|
|
33503
|
-
if (_data) {
|
|
33504
|
-
this.today = _data["today"];
|
|
33505
|
-
this.sevenDays = _data["sevenDays"];
|
|
33506
|
-
this.thirtyDays = _data["thirtyDays"];
|
|
33507
|
-
this.ninetyDays = _data["ninetyDays"];
|
|
33508
|
-
this.yearToDate = _data["yearToDate"];
|
|
33509
|
-
}
|
|
33510
|
-
}
|
|
33511
|
-
|
|
33512
|
-
static fromJS(data: any): PowerOnUtilizationV2Dto {
|
|
33513
|
-
data = typeof data === 'object' ? data : {};
|
|
33514
|
-
let result = new PowerOnUtilizationV2Dto();
|
|
33515
|
-
result.init(data);
|
|
33516
|
-
return result;
|
|
33517
|
-
}
|
|
33518
|
-
|
|
33519
|
-
toJSON(data?: any) {
|
|
33520
|
-
data = typeof data === 'object' ? data : {};
|
|
33521
|
-
data["today"] = this.today;
|
|
33522
|
-
data["sevenDays"] = this.sevenDays;
|
|
33523
|
-
data["thirtyDays"] = this.thirtyDays;
|
|
33524
|
-
data["ninetyDays"] = this.ninetyDays;
|
|
33525
|
-
data["yearToDate"] = this.yearToDate;
|
|
33526
|
-
return data;
|
|
33527
|
-
}
|
|
33528
|
-
}
|
|
33529
|
-
|
|
33530
|
-
export interface IPowerOnUtilizationV2Dto {
|
|
33531
|
-
today?: number | null;
|
|
33532
|
-
sevenDays?: number | null;
|
|
33533
|
-
thirtyDays?: number | null;
|
|
33534
|
-
ninetyDays?: number | null;
|
|
33535
|
-
yearToDate?: number | null;
|
|
33536
|
-
}
|
|
33537
|
-
|
|
33538
|
-
export class UptimeDowntimesDto implements IUptimeDowntimesDto {
|
|
33539
|
-
today?: UptimeDowntimeDto | null;
|
|
33540
|
-
sevenDays?: UptimeDowntimeDto | null;
|
|
33541
|
-
thirtyDays?: UptimeDowntimeDto | null;
|
|
33542
|
-
ninetyDays?: UptimeDowntimeDto | null;
|
|
33543
|
-
yearToDate?: UptimeDowntimeDto | null;
|
|
33544
|
-
total?: UptimeDowntimeDto | null;
|
|
33545
|
-
|
|
33546
|
-
constructor(data?: IUptimeDowntimesDto) {
|
|
33547
|
-
if (data) {
|
|
33548
|
-
for (var property in data) {
|
|
33549
|
-
if (data.hasOwnProperty(property))
|
|
33550
|
-
(<any>this)[property] = (<any>data)[property];
|
|
33551
|
-
}
|
|
33552
|
-
}
|
|
33553
|
-
}
|
|
33554
|
-
|
|
33555
|
-
init(_data?: any) {
|
|
33556
|
-
if (_data) {
|
|
33557
|
-
this.today = _data["today"] ? UptimeDowntimeDto.fromJS(_data["today"]) : <any>undefined;
|
|
33558
|
-
this.sevenDays = _data["sevenDays"] ? UptimeDowntimeDto.fromJS(_data["sevenDays"]) : <any>undefined;
|
|
33559
|
-
this.thirtyDays = _data["thirtyDays"] ? UptimeDowntimeDto.fromJS(_data["thirtyDays"]) : <any>undefined;
|
|
33560
|
-
this.ninetyDays = _data["ninetyDays"] ? UptimeDowntimeDto.fromJS(_data["ninetyDays"]) : <any>undefined;
|
|
33561
|
-
this.yearToDate = _data["yearToDate"] ? UptimeDowntimeDto.fromJS(_data["yearToDate"]) : <any>undefined;
|
|
33562
|
-
this.total = _data["total"] ? UptimeDowntimeDto.fromJS(_data["total"]) : <any>undefined;
|
|
33563
|
-
}
|
|
33564
|
-
}
|
|
33565
|
-
|
|
33566
|
-
static fromJS(data: any): UptimeDowntimesDto {
|
|
33567
|
-
data = typeof data === 'object' ? data : {};
|
|
33568
|
-
let result = new UptimeDowntimesDto();
|
|
33569
|
-
result.init(data);
|
|
33570
|
-
return result;
|
|
33571
|
-
}
|
|
33572
|
-
|
|
33573
|
-
toJSON(data?: any) {
|
|
33574
|
-
data = typeof data === 'object' ? data : {};
|
|
33575
|
-
data["today"] = this.today ? this.today.toJSON() : <any>undefined;
|
|
33576
|
-
data["sevenDays"] = this.sevenDays ? this.sevenDays.toJSON() : <any>undefined;
|
|
33577
|
-
data["thirtyDays"] = this.thirtyDays ? this.thirtyDays.toJSON() : <any>undefined;
|
|
33578
|
-
data["ninetyDays"] = this.ninetyDays ? this.ninetyDays.toJSON() : <any>undefined;
|
|
33579
|
-
data["yearToDate"] = this.yearToDate ? this.yearToDate.toJSON() : <any>undefined;
|
|
33580
|
-
data["total"] = this.total ? this.total.toJSON() : <any>undefined;
|
|
33581
|
-
return data;
|
|
33582
|
-
}
|
|
33583
|
-
}
|
|
33584
|
-
|
|
33585
|
-
export interface IUptimeDowntimesDto {
|
|
33586
|
-
today?: UptimeDowntimeDto | null;
|
|
33587
|
-
sevenDays?: UptimeDowntimeDto | null;
|
|
33588
|
-
thirtyDays?: UptimeDowntimeDto | null;
|
|
33589
|
-
ninetyDays?: UptimeDowntimeDto | null;
|
|
33590
|
-
yearToDate?: UptimeDowntimeDto | null;
|
|
33591
|
-
total?: UptimeDowntimeDto | null;
|
|
33592
|
-
}
|
|
33593
|
-
|
|
33594
|
-
export class UptimeDowntimeDto implements IUptimeDowntimeDto {
|
|
33595
|
-
uptimeInSeconds?: number | null;
|
|
33596
|
-
downtimeInSeconds?: number | null;
|
|
33597
|
-
powerOnTimeInSeconds?: number | null;
|
|
33598
|
-
twentyFourSevenTimeInSeconds?: number | null;
|
|
33599
|
-
|
|
33600
|
-
constructor(data?: IUptimeDowntimeDto) {
|
|
33601
|
-
if (data) {
|
|
33602
|
-
for (var property in data) {
|
|
33603
|
-
if (data.hasOwnProperty(property))
|
|
33604
|
-
(<any>this)[property] = (<any>data)[property];
|
|
33605
|
-
}
|
|
33606
|
-
}
|
|
33607
|
-
}
|
|
33608
|
-
|
|
33609
|
-
init(_data?: any) {
|
|
33610
|
-
if (_data) {
|
|
33611
|
-
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
33612
|
-
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
33613
|
-
this.powerOnTimeInSeconds = _data["powerOnTimeInSeconds"];
|
|
33614
|
-
this.twentyFourSevenTimeInSeconds = _data["twentyFourSevenTimeInSeconds"];
|
|
33615
|
-
}
|
|
33616
|
-
}
|
|
33617
|
-
|
|
33618
|
-
static fromJS(data: any): UptimeDowntimeDto {
|
|
33619
|
-
data = typeof data === 'object' ? data : {};
|
|
33620
|
-
let result = new UptimeDowntimeDto();
|
|
33621
|
-
result.init(data);
|
|
33622
|
-
return result;
|
|
33623
|
-
}
|
|
33624
|
-
|
|
33625
|
-
toJSON(data?: any) {
|
|
33626
|
-
data = typeof data === 'object' ? data : {};
|
|
33627
|
-
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
33628
|
-
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
33629
|
-
data["powerOnTimeInSeconds"] = this.powerOnTimeInSeconds;
|
|
33630
|
-
data["twentyFourSevenTimeInSeconds"] = this.twentyFourSevenTimeInSeconds;
|
|
33631
|
-
return data;
|
|
33632
|
-
}
|
|
33633
|
-
}
|
|
33634
|
-
|
|
33635
|
-
export interface IUptimeDowntimeDto {
|
|
33636
|
-
uptimeInSeconds?: number | null;
|
|
33637
|
-
downtimeInSeconds?: number | null;
|
|
33638
|
-
powerOnTimeInSeconds?: number | null;
|
|
33639
|
-
twentyFourSevenTimeInSeconds?: number | null;
|
|
33640
|
-
}
|
|
33641
|
-
|
|
33642
|
-
export class TwentyFourSevenUtilizationDto implements ITwentyFourSevenUtilizationDto {
|
|
33643
|
-
sevenDays?: number | null;
|
|
33644
|
-
thirtyDays?: number | null;
|
|
33645
|
-
ninetyDays?: number | null;
|
|
33646
|
-
yearToDate?: number | null;
|
|
33647
|
-
|
|
33648
|
-
constructor(data?: ITwentyFourSevenUtilizationDto) {
|
|
33649
|
-
if (data) {
|
|
33650
|
-
for (var property in data) {
|
|
33651
|
-
if (data.hasOwnProperty(property))
|
|
33652
|
-
(<any>this)[property] = (<any>data)[property];
|
|
33653
|
-
}
|
|
33654
|
-
}
|
|
33655
|
-
}
|
|
33656
|
-
|
|
33657
|
-
init(_data?: any) {
|
|
33658
|
-
if (_data) {
|
|
33659
|
-
this.sevenDays = _data["sevenDays"];
|
|
33660
|
-
this.thirtyDays = _data["thirtyDays"];
|
|
33661
|
-
this.ninetyDays = _data["ninetyDays"];
|
|
33662
|
-
this.yearToDate = _data["yearToDate"];
|
|
33663
|
-
}
|
|
33664
|
-
}
|
|
33665
|
-
|
|
33666
|
-
static fromJS(data: any): TwentyFourSevenUtilizationDto {
|
|
33667
|
-
data = typeof data === 'object' ? data : {};
|
|
33668
|
-
let result = new TwentyFourSevenUtilizationDto();
|
|
33669
|
-
result.init(data);
|
|
33670
|
-
return result;
|
|
33671
|
-
}
|
|
33672
|
-
|
|
33673
|
-
toJSON(data?: any) {
|
|
33674
|
-
data = typeof data === 'object' ? data : {};
|
|
33675
|
-
data["sevenDays"] = this.sevenDays;
|
|
33676
|
-
data["thirtyDays"] = this.thirtyDays;
|
|
33677
|
-
data["ninetyDays"] = this.ninetyDays;
|
|
33678
|
-
data["yearToDate"] = this.yearToDate;
|
|
33679
|
-
return data;
|
|
33680
|
-
}
|
|
33681
|
-
}
|
|
33682
|
-
|
|
33683
|
-
export interface ITwentyFourSevenUtilizationDto {
|
|
33684
|
-
sevenDays?: number | null;
|
|
33685
|
-
thirtyDays?: number | null;
|
|
33686
|
-
ninetyDays?: number | null;
|
|
33687
|
-
yearToDate?: number | null;
|
|
33688
|
-
}
|
|
33689
|
-
|
|
33690
|
-
export class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|
|
33691
|
-
name!: string;
|
|
33692
|
-
utilization!: UtilizationDto;
|
|
33693
|
-
machines!: MachineUtilizationV2Dto[];
|
|
33694
|
-
|
|
33695
|
-
constructor(data?: IMachineGroupUtilizationDto) {
|
|
33696
|
-
if (data) {
|
|
33697
|
-
for (var property in data) {
|
|
33698
|
-
if (data.hasOwnProperty(property))
|
|
33699
|
-
(<any>this)[property] = (<any>data)[property];
|
|
33700
|
-
}
|
|
33701
|
-
}
|
|
33702
|
-
if (!data) {
|
|
33703
|
-
this.utilization = new UtilizationDto();
|
|
33704
|
-
this.machines = [];
|
|
33705
|
-
}
|
|
33706
|
-
}
|
|
33707
|
-
|
|
33708
|
-
init(_data?: any) {
|
|
33709
|
-
if (_data) {
|
|
33710
|
-
this.name = _data["name"];
|
|
33711
|
-
this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
|
|
33712
|
-
if (Array.isArray(_data["machines"])) {
|
|
33713
|
-
this.machines = [] as any;
|
|
33714
|
-
for (let item of _data["machines"])
|
|
33715
|
-
this.machines!.push(MachineUtilizationV2Dto.fromJS(item));
|
|
33716
|
-
}
|
|
33717
|
-
}
|
|
33718
|
-
}
|
|
33719
|
-
|
|
33720
|
-
static fromJS(data: any): MachineGroupUtilizationDto {
|
|
33721
|
-
data = typeof data === 'object' ? data : {};
|
|
33722
|
-
let result = new MachineGroupUtilizationDto();
|
|
33723
|
-
result.init(data);
|
|
33724
|
-
return result;
|
|
33725
|
-
}
|
|
33726
|
-
|
|
33727
|
-
toJSON(data?: any) {
|
|
33728
|
-
data = typeof data === 'object' ? data : {};
|
|
33729
|
-
data["name"] = this.name;
|
|
33730
|
-
data["utilization"] = this.utilization ? this.utilization.toJSON() : <any>undefined;
|
|
33731
|
-
if (Array.isArray(this.machines)) {
|
|
33732
|
-
data["machines"] = [];
|
|
33733
|
-
for (let item of this.machines)
|
|
33734
|
-
data["machines"].push(item.toJSON());
|
|
33735
|
-
}
|
|
33736
|
-
return data;
|
|
33737
|
-
}
|
|
33738
|
-
}
|
|
33739
|
-
|
|
33740
|
-
export interface IMachineGroupUtilizationDto {
|
|
33741
|
-
name: string;
|
|
33742
|
-
utilization: UtilizationDto;
|
|
33743
|
-
machines: MachineUtilizationV2Dto[];
|
|
33744
|
-
}
|
|
33745
|
-
|
|
33746
|
-
export class MachineUtilizationV2Dto implements IMachineUtilizationV2Dto {
|
|
33747
|
-
id?: number;
|
|
33748
|
-
name!: string;
|
|
33749
|
-
description?: string | null;
|
|
33750
|
-
utilization!: UtilizationDto;
|
|
33751
|
-
|
|
33752
|
-
constructor(data?: IMachineUtilizationV2Dto) {
|
|
33753
|
-
if (data) {
|
|
33754
|
-
for (var property in data) {
|
|
33755
|
-
if (data.hasOwnProperty(property))
|
|
33756
|
-
(<any>this)[property] = (<any>data)[property];
|
|
33757
|
-
}
|
|
33758
|
-
}
|
|
33759
|
-
if (!data) {
|
|
33760
|
-
this.utilization = new UtilizationDto();
|
|
33761
|
-
}
|
|
33762
|
-
}
|
|
33763
|
-
|
|
33764
|
-
init(_data?: any) {
|
|
33765
|
-
if (_data) {
|
|
33766
|
-
this.id = _data["id"];
|
|
33767
|
-
this.name = _data["name"];
|
|
33768
|
-
this.description = _data["description"];
|
|
33769
|
-
this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
|
|
33770
|
-
}
|
|
33771
|
-
}
|
|
33772
|
-
|
|
33773
|
-
static fromJS(data: any): MachineUtilizationV2Dto {
|
|
33774
|
-
data = typeof data === 'object' ? data : {};
|
|
33775
|
-
let result = new MachineUtilizationV2Dto();
|
|
33776
|
-
result.init(data);
|
|
33777
|
-
return result;
|
|
33778
|
-
}
|
|
33779
|
-
|
|
33780
|
-
toJSON(data?: any) {
|
|
33781
|
-
data = typeof data === 'object' ? data : {};
|
|
33782
|
-
data["id"] = this.id;
|
|
33783
|
-
data["name"] = this.name;
|
|
33784
|
-
data["description"] = this.description;
|
|
33785
|
-
data["utilization"] = this.utilization ? this.utilization.toJSON() : <any>undefined;
|
|
33786
|
-
return data;
|
|
33787
|
-
}
|
|
33788
|
-
}
|
|
33789
|
-
|
|
33790
|
-
export interface IMachineUtilizationV2Dto {
|
|
33791
|
-
id?: number;
|
|
33792
|
-
name: string;
|
|
33793
|
-
description?: string | null;
|
|
33794
|
-
utilization: UtilizationDto;
|
|
33795
|
-
}
|
|
33796
|
-
|
|
33797
|
-
export class CrossCompanyUtilizationSummaryDto implements ICrossCompanyUtilizationSummaryDto {
|
|
33798
|
-
crossCompany!: FactoryUtilizationDto;
|
|
33799
|
-
companies!: MachineGroupUtilizationDto[];
|
|
33800
|
-
|
|
33801
|
-
constructor(data?: ICrossCompanyUtilizationSummaryDto) {
|
|
33802
|
-
if (data) {
|
|
33803
|
-
for (var property in data) {
|
|
33804
|
-
if (data.hasOwnProperty(property))
|
|
33805
|
-
(<any>this)[property] = (<any>data)[property];
|
|
33806
|
-
}
|
|
33807
|
-
}
|
|
33808
|
-
if (!data) {
|
|
33809
|
-
this.crossCompany = new FactoryUtilizationDto();
|
|
33810
|
-
this.companies = [];
|
|
33811
|
-
}
|
|
33812
|
-
}
|
|
33813
|
-
|
|
33814
|
-
init(_data?: any) {
|
|
33815
|
-
if (_data) {
|
|
33816
|
-
this.crossCompany = _data["crossCompany"] ? FactoryUtilizationDto.fromJS(_data["crossCompany"]) : new FactoryUtilizationDto();
|
|
33817
|
-
if (Array.isArray(_data["companies"])) {
|
|
33818
|
-
this.companies = [] as any;
|
|
33819
|
-
for (let item of _data["companies"])
|
|
33820
|
-
this.companies!.push(MachineGroupUtilizationDto.fromJS(item));
|
|
33821
|
-
}
|
|
33822
|
-
}
|
|
33823
|
-
}
|
|
33824
|
-
|
|
33825
|
-
static fromJS(data: any): CrossCompanyUtilizationSummaryDto {
|
|
33826
|
-
data = typeof data === 'object' ? data : {};
|
|
33827
|
-
let result = new CrossCompanyUtilizationSummaryDto();
|
|
33828
|
-
result.init(data);
|
|
33829
|
-
return result;
|
|
33830
|
-
}
|
|
33831
|
-
|
|
33832
|
-
toJSON(data?: any) {
|
|
33833
|
-
data = typeof data === 'object' ? data : {};
|
|
33834
|
-
data["crossCompany"] = this.crossCompany ? this.crossCompany.toJSON() : <any>undefined;
|
|
33835
|
-
if (Array.isArray(this.companies)) {
|
|
33836
|
-
data["companies"] = [];
|
|
33837
|
-
for (let item of this.companies)
|
|
33838
|
-
data["companies"].push(item.toJSON());
|
|
33839
|
-
}
|
|
33840
|
-
return data;
|
|
33841
|
-
}
|
|
33842
|
-
}
|
|
33843
|
-
|
|
33844
|
-
export interface ICrossCompanyUtilizationSummaryDto {
|
|
33845
|
-
crossCompany: FactoryUtilizationDto;
|
|
33846
|
-
companies: MachineGroupUtilizationDto[];
|
|
33847
|
-
}
|
|
33848
|
-
|
|
33849
32580
|
export class OperatorAndMachineDto implements IOperatorAndMachineDto {
|
|
33850
32581
|
operator?: EmployeeDto | null;
|
|
33851
32582
|
lastWorkOrderEventStartTime?: Date;
|
|
@@ -48874,6 +47605,53 @@ export interface IUpdateSchemaGroupedElementRowDto {
|
|
|
48874
47605
|
isDocumentedExternally: boolean;
|
|
48875
47606
|
}
|
|
48876
47607
|
|
|
47608
|
+
export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedElementRowsDto {
|
|
47609
|
+
balloonIds!: string[];
|
|
47610
|
+
|
|
47611
|
+
constructor(data?: IDeleteSchemaGroupedElementRowsDto) {
|
|
47612
|
+
if (data) {
|
|
47613
|
+
for (var property in data) {
|
|
47614
|
+
if (data.hasOwnProperty(property))
|
|
47615
|
+
(<any>this)[property] = (<any>data)[property];
|
|
47616
|
+
}
|
|
47617
|
+
}
|
|
47618
|
+
if (!data) {
|
|
47619
|
+
this.balloonIds = [];
|
|
47620
|
+
}
|
|
47621
|
+
}
|
|
47622
|
+
|
|
47623
|
+
init(_data?: any) {
|
|
47624
|
+
if (_data) {
|
|
47625
|
+
if (Array.isArray(_data["balloonIds"])) {
|
|
47626
|
+
this.balloonIds = [] as any;
|
|
47627
|
+
for (let item of _data["balloonIds"])
|
|
47628
|
+
this.balloonIds!.push(item);
|
|
47629
|
+
}
|
|
47630
|
+
}
|
|
47631
|
+
}
|
|
47632
|
+
|
|
47633
|
+
static fromJS(data: any): DeleteSchemaGroupedElementRowsDto {
|
|
47634
|
+
data = typeof data === 'object' ? data : {};
|
|
47635
|
+
let result = new DeleteSchemaGroupedElementRowsDto();
|
|
47636
|
+
result.init(data);
|
|
47637
|
+
return result;
|
|
47638
|
+
}
|
|
47639
|
+
|
|
47640
|
+
toJSON(data?: any) {
|
|
47641
|
+
data = typeof data === 'object' ? data : {};
|
|
47642
|
+
if (Array.isArray(this.balloonIds)) {
|
|
47643
|
+
data["balloonIds"] = [];
|
|
47644
|
+
for (let item of this.balloonIds)
|
|
47645
|
+
data["balloonIds"].push(item);
|
|
47646
|
+
}
|
|
47647
|
+
return data;
|
|
47648
|
+
}
|
|
47649
|
+
}
|
|
47650
|
+
|
|
47651
|
+
export interface IDeleteSchemaGroupedElementRowsDto {
|
|
47652
|
+
balloonIds: string[];
|
|
47653
|
+
}
|
|
47654
|
+
|
|
48877
47655
|
export class UploadMeasurementImageRequest implements IUploadMeasurementImageRequest {
|
|
48878
47656
|
uploadKey!: string;
|
|
48879
47657
|
filename!: string;
|
|
@@ -54352,6 +53130,54 @@ export interface IUpsertCustomerOrderRequest {
|
|
|
54352
53130
|
|
|
54353
53131
|
export type CustomerOrderStatus = "Draft" | "Ready" | "Ongoing" | "Completed" | "Deleted";
|
|
54354
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
|
+
|
|
54355
53181
|
export class CustomerOrderLineDto implements ICustomerOrderLineDto {
|
|
54356
53182
|
line!: number;
|
|
54357
53183
|
quantity!: number;
|