@ignos/api-client 20260109.0.13694 → 20260115.0.13741-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 +199 -125
- package/lib/ignosportal-api.js +477 -255
- package/package.json +1 -1
- package/src/ignosportal-api.ts +639 -373
package/lib/ignosportal-api.js
CHANGED
|
@@ -1077,7 +1077,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase {
|
|
|
1077
1077
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
1078
1078
|
}
|
|
1079
1079
|
/**
|
|
1080
|
-
* Get
|
|
1080
|
+
* Get resource utilization data. Historic utilizations start from now, whereas the start for current utilization is
|
|
1081
1081
|
calculated based on startTimeToday or utcOffset. An UTC offset is
|
|
1082
1082
|
obtained either from startTimeToday, utcOffset or the server's local
|
|
1083
1083
|
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
@@ -1349,7 +1349,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase {
|
|
|
1349
1349
|
return response.text().then((_responseText) => {
|
|
1350
1350
|
let result200 = null;
|
|
1351
1351
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1352
|
-
result200 =
|
|
1352
|
+
result200 = ResourceUptimesAggregateDto.fromJS(resultData200);
|
|
1353
1353
|
return result200;
|
|
1354
1354
|
});
|
|
1355
1355
|
}
|
|
@@ -3032,7 +3032,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
return Promise.resolve(null);
|
|
3034
3034
|
}
|
|
3035
|
-
|
|
3035
|
+
listCurrentMachineStates(assetId) {
|
|
3036
3036
|
let url_ = this.baseUrl + "/resources/states/now?";
|
|
3037
3037
|
if (assetId !== undefined && assetId !== null)
|
|
3038
3038
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
@@ -3046,10 +3046,10 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3046
3046
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3047
3047
|
return this.http.fetch(url_, transformedOptions_);
|
|
3048
3048
|
}).then((_response) => {
|
|
3049
|
-
return this.
|
|
3049
|
+
return this.processListCurrentMachineStates(_response);
|
|
3050
3050
|
});
|
|
3051
3051
|
}
|
|
3052
|
-
|
|
3052
|
+
processListCurrentMachineStates(response) {
|
|
3053
3053
|
const status = response.status;
|
|
3054
3054
|
let _headers = {};
|
|
3055
3055
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3060,7 +3060,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3060
3060
|
return response.text().then((_responseText) => {
|
|
3061
3061
|
let result200 = null;
|
|
3062
3062
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3063
|
-
result200 =
|
|
3063
|
+
result200 = MachineStateListDto.fromJS(resultData200);
|
|
3064
3064
|
return result200;
|
|
3065
3065
|
});
|
|
3066
3066
|
}
|
|
@@ -3071,7 +3071,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3071
3071
|
}
|
|
3072
3072
|
return Promise.resolve(null);
|
|
3073
3073
|
}
|
|
3074
|
-
|
|
3074
|
+
listMachineStates(id, startTime, endTime) {
|
|
3075
3075
|
let url_ = this.baseUrl + "/resources/{id}/states?";
|
|
3076
3076
|
if (id === undefined || id === null)
|
|
3077
3077
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -3090,10 +3090,10 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3090
3090
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3091
3091
|
return this.http.fetch(url_, transformedOptions_);
|
|
3092
3092
|
}).then((_response) => {
|
|
3093
|
-
return this.
|
|
3093
|
+
return this.processListMachineStates(_response);
|
|
3094
3094
|
});
|
|
3095
3095
|
}
|
|
3096
|
-
|
|
3096
|
+
processListMachineStates(response) {
|
|
3097
3097
|
const status = response.status;
|
|
3098
3098
|
let _headers = {};
|
|
3099
3099
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3107,7 +3107,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3107
3107
|
if (Array.isArray(resultData200)) {
|
|
3108
3108
|
result200 = [];
|
|
3109
3109
|
for (let item of resultData200)
|
|
3110
|
-
result200.push(
|
|
3110
|
+
result200.push(MachineStateDatapoint.fromJS(item));
|
|
3111
3111
|
}
|
|
3112
3112
|
return result200;
|
|
3113
3113
|
});
|
|
@@ -3119,7 +3119,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3119
3119
|
}
|
|
3120
3120
|
return Promise.resolve(null);
|
|
3121
3121
|
}
|
|
3122
|
-
|
|
3122
|
+
listLastDowntimeMachineStates(id, endTime, maxStates) {
|
|
3123
3123
|
let url_ = this.baseUrl + "/resources/{id}/lastdowntimestates?";
|
|
3124
3124
|
if (id === undefined || id === null)
|
|
3125
3125
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -3138,10 +3138,10 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3138
3138
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3139
3139
|
return this.http.fetch(url_, transformedOptions_);
|
|
3140
3140
|
}).then((_response) => {
|
|
3141
|
-
return this.
|
|
3141
|
+
return this.processListLastDowntimeMachineStates(_response);
|
|
3142
3142
|
});
|
|
3143
3143
|
}
|
|
3144
|
-
|
|
3144
|
+
processListLastDowntimeMachineStates(response) {
|
|
3145
3145
|
const status = response.status;
|
|
3146
3146
|
let _headers = {};
|
|
3147
3147
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3155,7 +3155,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3155
3155
|
if (Array.isArray(resultData200)) {
|
|
3156
3156
|
result200 = [];
|
|
3157
3157
|
for (let item of resultData200)
|
|
3158
|
-
result200.push(
|
|
3158
|
+
result200.push(DowntimeMachineStateDto.fromJS(item));
|
|
3159
3159
|
}
|
|
3160
3160
|
return result200;
|
|
3161
3161
|
});
|
|
@@ -3167,7 +3167,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3167
3167
|
}
|
|
3168
3168
|
return Promise.resolve(null);
|
|
3169
3169
|
}
|
|
3170
|
-
|
|
3170
|
+
getMachineStateWithDowntimePeriods(id, timestamp) {
|
|
3171
3171
|
let url_ = this.baseUrl + "/resources/{id}/statewithdowntimeperiods?";
|
|
3172
3172
|
if (id === undefined || id === null)
|
|
3173
3173
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -3186,10 +3186,10 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3186
3186
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3187
3187
|
return this.http.fetch(url_, transformedOptions_);
|
|
3188
3188
|
}).then((_response) => {
|
|
3189
|
-
return this.
|
|
3189
|
+
return this.processGetMachineStateWithDowntimePeriods(_response);
|
|
3190
3190
|
});
|
|
3191
3191
|
}
|
|
3192
|
-
|
|
3192
|
+
processGetMachineStateWithDowntimePeriods(response) {
|
|
3193
3193
|
const status = response.status;
|
|
3194
3194
|
let _headers = {};
|
|
3195
3195
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3200,7 +3200,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3200
3200
|
return response.text().then((_responseText) => {
|
|
3201
3201
|
let result200 = null;
|
|
3202
3202
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3203
|
-
result200 =
|
|
3203
|
+
result200 = DowntimeMachineStateDto.fromJS(resultData200);
|
|
3204
3204
|
return result200;
|
|
3205
3205
|
});
|
|
3206
3206
|
}
|
|
@@ -3211,7 +3211,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3211
3211
|
}
|
|
3212
3212
|
return Promise.resolve(null);
|
|
3213
3213
|
}
|
|
3214
|
-
|
|
3214
|
+
getMachineStatesSummary(id, startTime, endTime) {
|
|
3215
3215
|
let url_ = this.baseUrl + "/resources/{id}/states/summary?";
|
|
3216
3216
|
if (id === undefined || id === null)
|
|
3217
3217
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -3230,10 +3230,10 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3230
3230
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3231
3231
|
return this.http.fetch(url_, transformedOptions_);
|
|
3232
3232
|
}).then((_response) => {
|
|
3233
|
-
return this.
|
|
3233
|
+
return this.processGetMachineStatesSummary(_response);
|
|
3234
3234
|
});
|
|
3235
3235
|
}
|
|
3236
|
-
|
|
3236
|
+
processGetMachineStatesSummary(response) {
|
|
3237
3237
|
const status = response.status;
|
|
3238
3238
|
let _headers = {};
|
|
3239
3239
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3244,7 +3244,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
3244
3244
|
return response.text().then((_responseText) => {
|
|
3245
3245
|
let result200 = null;
|
|
3246
3246
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3247
|
-
result200 =
|
|
3247
|
+
result200 = MachineStatesSummaryDto.fromJS(resultData200);
|
|
3248
3248
|
return result200;
|
|
3249
3249
|
});
|
|
3250
3250
|
}
|
|
@@ -3862,6 +3862,15 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
3862
3862
|
}
|
|
3863
3863
|
return Promise.resolve(null);
|
|
3864
3864
|
}
|
|
3865
|
+
/**
|
|
3866
|
+
* @param utilizationType (optional)
|
|
3867
|
+
* @param startTime (optional)
|
|
3868
|
+
* @param endTime (optional)
|
|
3869
|
+
* @param ianaTimeZone (optional)
|
|
3870
|
+
* @param assetId (optional)
|
|
3871
|
+
* @param assetExternalId (optional)
|
|
3872
|
+
* @deprecated
|
|
3873
|
+
*/
|
|
3865
3874
|
getUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone, assetId, assetExternalId) {
|
|
3866
3875
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
3867
3876
|
if (utilizationType === null)
|
|
@@ -3915,6 +3924,13 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
3915
3924
|
}
|
|
3916
3925
|
return Promise.resolve(null);
|
|
3917
3926
|
}
|
|
3927
|
+
/**
|
|
3928
|
+
* @param utilizationType (optional)
|
|
3929
|
+
* @param startTime (optional)
|
|
3930
|
+
* @param endTime (optional)
|
|
3931
|
+
* @param ianaTimeZone (optional)
|
|
3932
|
+
* @deprecated
|
|
3933
|
+
*/
|
|
3918
3934
|
getCompanyUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone) {
|
|
3919
3935
|
let url_ = this.baseUrl + "/utilization/datapoints/company?";
|
|
3920
3936
|
if (utilizationType === null)
|
|
@@ -3964,6 +3980,13 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
3964
3980
|
}
|
|
3965
3981
|
return Promise.resolve(null);
|
|
3966
3982
|
}
|
|
3983
|
+
/**
|
|
3984
|
+
* @param utilizationType (optional)
|
|
3985
|
+
* @param startTime (optional)
|
|
3986
|
+
* @param endTime (optional)
|
|
3987
|
+
* @param ianaTimeZone (optional)
|
|
3988
|
+
* @deprecated
|
|
3989
|
+
*/
|
|
3967
3990
|
getCrossCompanyUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone) {
|
|
3968
3991
|
let url_ = this.baseUrl + "/utilization/datapoints/cross-company?";
|
|
3969
3992
|
if (utilizationType === null)
|
|
@@ -4013,6 +4036,157 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
4013
4036
|
}
|
|
4014
4037
|
return Promise.resolve(null);
|
|
4015
4038
|
}
|
|
4039
|
+
getResourceUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone, assetId, assetExternalId) {
|
|
4040
|
+
let url_ = this.baseUrl + "/utilization/resource-datapoints?";
|
|
4041
|
+
if (utilizationType === null)
|
|
4042
|
+
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
4043
|
+
else if (utilizationType !== undefined)
|
|
4044
|
+
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
4045
|
+
if (startTime === null)
|
|
4046
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
4047
|
+
else if (startTime !== undefined)
|
|
4048
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
4049
|
+
if (endTime !== undefined && endTime !== null)
|
|
4050
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
4051
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
4052
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
4053
|
+
if (assetId !== undefined && assetId !== null)
|
|
4054
|
+
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
4055
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
4056
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
4057
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4058
|
+
let options_ = {
|
|
4059
|
+
method: "GET",
|
|
4060
|
+
headers: {
|
|
4061
|
+
"Accept": "application/json"
|
|
4062
|
+
}
|
|
4063
|
+
};
|
|
4064
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4065
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4066
|
+
}).then((_response) => {
|
|
4067
|
+
return this.processGetResourceUtilizationDatapoints(_response);
|
|
4068
|
+
});
|
|
4069
|
+
}
|
|
4070
|
+
processGetResourceUtilizationDatapoints(response) {
|
|
4071
|
+
const status = response.status;
|
|
4072
|
+
let _headers = {};
|
|
4073
|
+
if (response.headers && response.headers.forEach) {
|
|
4074
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4075
|
+
}
|
|
4076
|
+
;
|
|
4077
|
+
if (status === 200) {
|
|
4078
|
+
return response.text().then((_responseText) => {
|
|
4079
|
+
let result200 = null;
|
|
4080
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4081
|
+
result200 = ResourceUtilizationDatapointListDto.fromJS(resultData200);
|
|
4082
|
+
return result200;
|
|
4083
|
+
});
|
|
4084
|
+
}
|
|
4085
|
+
else if (status !== 200 && status !== 204) {
|
|
4086
|
+
return response.text().then((_responseText) => {
|
|
4087
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4088
|
+
});
|
|
4089
|
+
}
|
|
4090
|
+
return Promise.resolve(null);
|
|
4091
|
+
}
|
|
4092
|
+
getCompanyResourceUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone) {
|
|
4093
|
+
let url_ = this.baseUrl + "/utilization/resource-datapoints/company?";
|
|
4094
|
+
if (utilizationType === null)
|
|
4095
|
+
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
4096
|
+
else if (utilizationType !== undefined)
|
|
4097
|
+
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
4098
|
+
if (startTime === null)
|
|
4099
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
4100
|
+
else if (startTime !== undefined)
|
|
4101
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
4102
|
+
if (endTime !== undefined && endTime !== null)
|
|
4103
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
4104
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
4105
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
4106
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4107
|
+
let options_ = {
|
|
4108
|
+
method: "GET",
|
|
4109
|
+
headers: {
|
|
4110
|
+
"Accept": "application/json"
|
|
4111
|
+
}
|
|
4112
|
+
};
|
|
4113
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4114
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4115
|
+
}).then((_response) => {
|
|
4116
|
+
return this.processGetCompanyResourceUtilizationDatapoints(_response);
|
|
4117
|
+
});
|
|
4118
|
+
}
|
|
4119
|
+
processGetCompanyResourceUtilizationDatapoints(response) {
|
|
4120
|
+
const status = response.status;
|
|
4121
|
+
let _headers = {};
|
|
4122
|
+
if (response.headers && response.headers.forEach) {
|
|
4123
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4124
|
+
}
|
|
4125
|
+
;
|
|
4126
|
+
if (status === 200) {
|
|
4127
|
+
return response.text().then((_responseText) => {
|
|
4128
|
+
let result200 = null;
|
|
4129
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4130
|
+
result200 = CompanyResourceUtilizationDatapointListDto.fromJS(resultData200);
|
|
4131
|
+
return result200;
|
|
4132
|
+
});
|
|
4133
|
+
}
|
|
4134
|
+
else if (status !== 200 && status !== 204) {
|
|
4135
|
+
return response.text().then((_responseText) => {
|
|
4136
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4137
|
+
});
|
|
4138
|
+
}
|
|
4139
|
+
return Promise.resolve(null);
|
|
4140
|
+
}
|
|
4141
|
+
getCrossCompanyResourceUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone) {
|
|
4142
|
+
let url_ = this.baseUrl + "/utilization/resource-datapoints/cross-company?";
|
|
4143
|
+
if (utilizationType === null)
|
|
4144
|
+
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
4145
|
+
else if (utilizationType !== undefined)
|
|
4146
|
+
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
4147
|
+
if (startTime === null)
|
|
4148
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
4149
|
+
else if (startTime !== undefined)
|
|
4150
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
4151
|
+
if (endTime !== undefined && endTime !== null)
|
|
4152
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
4153
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
4154
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
4155
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4156
|
+
let options_ = {
|
|
4157
|
+
method: "GET",
|
|
4158
|
+
headers: {
|
|
4159
|
+
"Accept": "application/json"
|
|
4160
|
+
}
|
|
4161
|
+
};
|
|
4162
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4163
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4164
|
+
}).then((_response) => {
|
|
4165
|
+
return this.processGetCrossCompanyResourceUtilizationDatapoints(_response);
|
|
4166
|
+
});
|
|
4167
|
+
}
|
|
4168
|
+
processGetCrossCompanyResourceUtilizationDatapoints(response) {
|
|
4169
|
+
const status = response.status;
|
|
4170
|
+
let _headers = {};
|
|
4171
|
+
if (response.headers && response.headers.forEach) {
|
|
4172
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4173
|
+
}
|
|
4174
|
+
;
|
|
4175
|
+
if (status === 200) {
|
|
4176
|
+
return response.text().then((_responseText) => {
|
|
4177
|
+
let result200 = null;
|
|
4178
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4179
|
+
result200 = CrossCompanyResourceUtilizationDatapointListDto.fromJS(resultData200);
|
|
4180
|
+
return result200;
|
|
4181
|
+
});
|
|
4182
|
+
}
|
|
4183
|
+
else if (status !== 200 && status !== 204) {
|
|
4184
|
+
return response.text().then((_responseText) => {
|
|
4185
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4186
|
+
});
|
|
4187
|
+
}
|
|
4188
|
+
return Promise.resolve(null);
|
|
4189
|
+
}
|
|
4016
4190
|
}
|
|
4017
4191
|
export class MrbClient extends AuthorizedApiBase {
|
|
4018
4192
|
constructor(configuration, baseUrl, http) {
|
|
@@ -26085,6 +26259,104 @@ export class ResourceUtilizationDetailsDto {
|
|
|
26085
26259
|
return data;
|
|
26086
26260
|
}
|
|
26087
26261
|
}
|
|
26262
|
+
export class ResourceUptimesAggregateDto {
|
|
26263
|
+
constructor(data) {
|
|
26264
|
+
if (data) {
|
|
26265
|
+
for (var property in data) {
|
|
26266
|
+
if (data.hasOwnProperty(property))
|
|
26267
|
+
this[property] = data[property];
|
|
26268
|
+
}
|
|
26269
|
+
}
|
|
26270
|
+
if (!data) {
|
|
26271
|
+
this.resourceUptimes = [];
|
|
26272
|
+
this.sum = new ResourceUptimeSumDto();
|
|
26273
|
+
}
|
|
26274
|
+
}
|
|
26275
|
+
init(_data) {
|
|
26276
|
+
if (_data) {
|
|
26277
|
+
if (Array.isArray(_data["resourceUptimes"])) {
|
|
26278
|
+
this.resourceUptimes = [];
|
|
26279
|
+
for (let item of _data["resourceUptimes"])
|
|
26280
|
+
this.resourceUptimes.push(ResourceUptimeDto.fromJS(item));
|
|
26281
|
+
}
|
|
26282
|
+
this.sum = _data["sum"] ? ResourceUptimeSumDto.fromJS(_data["sum"]) : new ResourceUptimeSumDto();
|
|
26283
|
+
}
|
|
26284
|
+
}
|
|
26285
|
+
static fromJS(data) {
|
|
26286
|
+
data = typeof data === 'object' ? data : {};
|
|
26287
|
+
let result = new ResourceUptimesAggregateDto();
|
|
26288
|
+
result.init(data);
|
|
26289
|
+
return result;
|
|
26290
|
+
}
|
|
26291
|
+
toJSON(data) {
|
|
26292
|
+
data = typeof data === 'object' ? data : {};
|
|
26293
|
+
if (Array.isArray(this.resourceUptimes)) {
|
|
26294
|
+
data["resourceUptimes"] = [];
|
|
26295
|
+
for (let item of this.resourceUptimes)
|
|
26296
|
+
data["resourceUptimes"].push(item ? item.toJSON() : undefined);
|
|
26297
|
+
}
|
|
26298
|
+
data["sum"] = this.sum ? this.sum.toJSON() : undefined;
|
|
26299
|
+
return data;
|
|
26300
|
+
}
|
|
26301
|
+
}
|
|
26302
|
+
export class ResourceUptimeDto {
|
|
26303
|
+
constructor(data) {
|
|
26304
|
+
if (data) {
|
|
26305
|
+
for (var property in data) {
|
|
26306
|
+
if (data.hasOwnProperty(property))
|
|
26307
|
+
this[property] = data[property];
|
|
26308
|
+
}
|
|
26309
|
+
}
|
|
26310
|
+
}
|
|
26311
|
+
init(_data) {
|
|
26312
|
+
if (_data) {
|
|
26313
|
+
this.assetExternalId = _data["assetExternalId"];
|
|
26314
|
+
this.percent = _data["percent"];
|
|
26315
|
+
this.numberOfSeconds = _data["numberOfSeconds"];
|
|
26316
|
+
}
|
|
26317
|
+
}
|
|
26318
|
+
static fromJS(data) {
|
|
26319
|
+
data = typeof data === 'object' ? data : {};
|
|
26320
|
+
let result = new ResourceUptimeDto();
|
|
26321
|
+
result.init(data);
|
|
26322
|
+
return result;
|
|
26323
|
+
}
|
|
26324
|
+
toJSON(data) {
|
|
26325
|
+
data = typeof data === 'object' ? data : {};
|
|
26326
|
+
data["assetExternalId"] = this.assetExternalId;
|
|
26327
|
+
data["percent"] = this.percent;
|
|
26328
|
+
data["numberOfSeconds"] = this.numberOfSeconds;
|
|
26329
|
+
return data;
|
|
26330
|
+
}
|
|
26331
|
+
}
|
|
26332
|
+
export class ResourceUptimeSumDto {
|
|
26333
|
+
constructor(data) {
|
|
26334
|
+
if (data) {
|
|
26335
|
+
for (var property in data) {
|
|
26336
|
+
if (data.hasOwnProperty(property))
|
|
26337
|
+
this[property] = data[property];
|
|
26338
|
+
}
|
|
26339
|
+
}
|
|
26340
|
+
}
|
|
26341
|
+
init(_data) {
|
|
26342
|
+
if (_data) {
|
|
26343
|
+
this.percent = _data["percent"];
|
|
26344
|
+
this.numberOfSeconds = _data["numberOfSeconds"];
|
|
26345
|
+
}
|
|
26346
|
+
}
|
|
26347
|
+
static fromJS(data) {
|
|
26348
|
+
data = typeof data === 'object' ? data : {};
|
|
26349
|
+
let result = new ResourceUptimeSumDto();
|
|
26350
|
+
result.init(data);
|
|
26351
|
+
return result;
|
|
26352
|
+
}
|
|
26353
|
+
toJSON(data) {
|
|
26354
|
+
data = typeof data === 'object' ? data : {};
|
|
26355
|
+
data["percent"] = this.percent;
|
|
26356
|
+
data["numberOfSeconds"] = this.numberOfSeconds;
|
|
26357
|
+
return data;
|
|
26358
|
+
}
|
|
26359
|
+
}
|
|
26088
26360
|
export class ListResourceUptimesTodayRequest {
|
|
26089
26361
|
constructor(data) {
|
|
26090
26362
|
if (data) {
|
|
@@ -27803,7 +28075,7 @@ export class UpdateResourceGroup {
|
|
|
27803
28075
|
return data;
|
|
27804
28076
|
}
|
|
27805
28077
|
}
|
|
27806
|
-
export class
|
|
28078
|
+
export class MachineStateListDto {
|
|
27807
28079
|
constructor(data) {
|
|
27808
28080
|
if (data) {
|
|
27809
28081
|
for (var property in data) {
|
|
@@ -27814,30 +28086,30 @@ export class ResourceStateListDto {
|
|
|
27814
28086
|
}
|
|
27815
28087
|
init(_data) {
|
|
27816
28088
|
if (_data) {
|
|
27817
|
-
if (Array.isArray(_data["
|
|
27818
|
-
this.
|
|
27819
|
-
for (let item of _data["
|
|
27820
|
-
this.
|
|
28089
|
+
if (Array.isArray(_data["machines"])) {
|
|
28090
|
+
this.machines = [];
|
|
28091
|
+
for (let item of _data["machines"])
|
|
28092
|
+
this.machines.push(MachineStateDto.fromJS(item));
|
|
27821
28093
|
}
|
|
27822
28094
|
}
|
|
27823
28095
|
}
|
|
27824
28096
|
static fromJS(data) {
|
|
27825
28097
|
data = typeof data === 'object' ? data : {};
|
|
27826
|
-
let result = new
|
|
28098
|
+
let result = new MachineStateListDto();
|
|
27827
28099
|
result.init(data);
|
|
27828
28100
|
return result;
|
|
27829
28101
|
}
|
|
27830
28102
|
toJSON(data) {
|
|
27831
28103
|
data = typeof data === 'object' ? data : {};
|
|
27832
|
-
if (Array.isArray(this.
|
|
27833
|
-
data["
|
|
27834
|
-
for (let item of this.
|
|
27835
|
-
data["
|
|
28104
|
+
if (Array.isArray(this.machines)) {
|
|
28105
|
+
data["machines"] = [];
|
|
28106
|
+
for (let item of this.machines)
|
|
28107
|
+
data["machines"].push(item ? item.toJSON() : undefined);
|
|
27836
28108
|
}
|
|
27837
28109
|
return data;
|
|
27838
28110
|
}
|
|
27839
28111
|
}
|
|
27840
|
-
export class
|
|
28112
|
+
export class MachineStateDto {
|
|
27841
28113
|
constructor(data) {
|
|
27842
28114
|
if (data) {
|
|
27843
28115
|
for (var property in data) {
|
|
@@ -27852,13 +28124,13 @@ export class ResourceStateDto {
|
|
|
27852
28124
|
this.name = _data["name"];
|
|
27853
28125
|
this.description = _data["description"];
|
|
27854
28126
|
this.state = _data["state"];
|
|
27855
|
-
this.
|
|
28127
|
+
this.machineState = _data["machineState"];
|
|
27856
28128
|
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
27857
28129
|
}
|
|
27858
28130
|
}
|
|
27859
28131
|
static fromJS(data) {
|
|
27860
28132
|
data = typeof data === 'object' ? data : {};
|
|
27861
|
-
let result = new
|
|
28133
|
+
let result = new MachineStateDto();
|
|
27862
28134
|
result.init(data);
|
|
27863
28135
|
return result;
|
|
27864
28136
|
}
|
|
@@ -27868,57 +28140,12 @@ export class ResourceStateDto {
|
|
|
27868
28140
|
data["name"] = this.name;
|
|
27869
28141
|
data["description"] = this.description;
|
|
27870
28142
|
data["state"] = this.state;
|
|
27871
|
-
data["
|
|
28143
|
+
data["machineState"] = this.machineState;
|
|
27872
28144
|
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
27873
28145
|
return data;
|
|
27874
28146
|
}
|
|
27875
28147
|
}
|
|
27876
|
-
export class
|
|
27877
|
-
constructor(data) {
|
|
27878
|
-
if (data) {
|
|
27879
|
-
for (var property in data) {
|
|
27880
|
-
if (data.hasOwnProperty(property))
|
|
27881
|
-
this[property] = data[property];
|
|
27882
|
-
}
|
|
27883
|
-
}
|
|
27884
|
-
if (!data) {
|
|
27885
|
-
this.downtimePeriodReasons = [];
|
|
27886
|
-
}
|
|
27887
|
-
}
|
|
27888
|
-
init(_data) {
|
|
27889
|
-
if (_data) {
|
|
27890
|
-
this.resourceStateText = _data["resourceStateText"];
|
|
27891
|
-
this.resourceState = _data["resourceState"];
|
|
27892
|
-
this.timestamp = _data["timestamp"];
|
|
27893
|
-
this.isDowntime = _data["isDowntime"];
|
|
27894
|
-
if (Array.isArray(_data["downtimePeriodReasons"])) {
|
|
27895
|
-
this.downtimePeriodReasons = [];
|
|
27896
|
-
for (let item of _data["downtimePeriodReasons"])
|
|
27897
|
-
this.downtimePeriodReasons.push(DowntimePeriodReasonDto.fromJS(item));
|
|
27898
|
-
}
|
|
27899
|
-
}
|
|
27900
|
-
}
|
|
27901
|
-
static fromJS(data) {
|
|
27902
|
-
data = typeof data === 'object' ? data : {};
|
|
27903
|
-
let result = new ResourceStateDatapoint();
|
|
27904
|
-
result.init(data);
|
|
27905
|
-
return result;
|
|
27906
|
-
}
|
|
27907
|
-
toJSON(data) {
|
|
27908
|
-
data = typeof data === 'object' ? data : {};
|
|
27909
|
-
data["resourceStateText"] = this.resourceStateText;
|
|
27910
|
-
data["resourceState"] = this.resourceState;
|
|
27911
|
-
data["timestamp"] = this.timestamp;
|
|
27912
|
-
data["isDowntime"] = this.isDowntime;
|
|
27913
|
-
if (Array.isArray(this.downtimePeriodReasons)) {
|
|
27914
|
-
data["downtimePeriodReasons"] = [];
|
|
27915
|
-
for (let item of this.downtimePeriodReasons)
|
|
27916
|
-
data["downtimePeriodReasons"].push(item ? item.toJSON() : undefined);
|
|
27917
|
-
}
|
|
27918
|
-
return data;
|
|
27919
|
-
}
|
|
27920
|
-
}
|
|
27921
|
-
export class DowntimeResourceStateDto {
|
|
28148
|
+
export class DowntimeMachineStateDto {
|
|
27922
28149
|
constructor(data) {
|
|
27923
28150
|
if (data) {
|
|
27924
28151
|
for (var property in data) {
|
|
@@ -27927,19 +28154,19 @@ export class DowntimeResourceStateDto {
|
|
|
27927
28154
|
}
|
|
27928
28155
|
}
|
|
27929
28156
|
if (!data) {
|
|
27930
|
-
this.datapoint = new
|
|
28157
|
+
this.datapoint = new MachineStateDatapoint();
|
|
27931
28158
|
}
|
|
27932
28159
|
}
|
|
27933
28160
|
init(_data) {
|
|
27934
28161
|
if (_data) {
|
|
27935
|
-
this.datapoint = _data["datapoint"] ?
|
|
28162
|
+
this.datapoint = _data["datapoint"] ? MachineStateDatapoint.fromJS(_data["datapoint"]) : new MachineStateDatapoint();
|
|
27936
28163
|
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
27937
28164
|
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
27938
28165
|
}
|
|
27939
28166
|
}
|
|
27940
28167
|
static fromJS(data) {
|
|
27941
28168
|
data = typeof data === 'object' ? data : {};
|
|
27942
|
-
let result = new
|
|
28169
|
+
let result = new DowntimeMachineStateDto();
|
|
27943
28170
|
result.init(data);
|
|
27944
28171
|
return result;
|
|
27945
28172
|
}
|
|
@@ -27951,73 +28178,6 @@ export class DowntimeResourceStateDto {
|
|
|
27951
28178
|
return data;
|
|
27952
28179
|
}
|
|
27953
28180
|
}
|
|
27954
|
-
export class ResourceStatesSummaryDto {
|
|
27955
|
-
constructor(data) {
|
|
27956
|
-
if (data) {
|
|
27957
|
-
for (var property in data) {
|
|
27958
|
-
if (data.hasOwnProperty(property))
|
|
27959
|
-
this[property] = data[property];
|
|
27960
|
-
}
|
|
27961
|
-
}
|
|
27962
|
-
if (!data) {
|
|
27963
|
-
this.states = [];
|
|
27964
|
-
}
|
|
27965
|
-
}
|
|
27966
|
-
init(_data) {
|
|
27967
|
-
if (_data) {
|
|
27968
|
-
if (Array.isArray(_data["states"])) {
|
|
27969
|
-
this.states = [];
|
|
27970
|
-
for (let item of _data["states"])
|
|
27971
|
-
this.states.push(ApplicationResourceStatesStateDto.fromJS(item));
|
|
27972
|
-
}
|
|
27973
|
-
}
|
|
27974
|
-
}
|
|
27975
|
-
static fromJS(data) {
|
|
27976
|
-
data = typeof data === 'object' ? data : {};
|
|
27977
|
-
let result = new ResourceStatesSummaryDto();
|
|
27978
|
-
result.init(data);
|
|
27979
|
-
return result;
|
|
27980
|
-
}
|
|
27981
|
-
toJSON(data) {
|
|
27982
|
-
data = typeof data === 'object' ? data : {};
|
|
27983
|
-
if (Array.isArray(this.states)) {
|
|
27984
|
-
data["states"] = [];
|
|
27985
|
-
for (let item of this.states)
|
|
27986
|
-
data["states"].push(item ? item.toJSON() : undefined);
|
|
27987
|
-
}
|
|
27988
|
-
return data;
|
|
27989
|
-
}
|
|
27990
|
-
}
|
|
27991
|
-
export class ApplicationResourceStatesStateDto {
|
|
27992
|
-
constructor(data) {
|
|
27993
|
-
if (data) {
|
|
27994
|
-
for (var property in data) {
|
|
27995
|
-
if (data.hasOwnProperty(property))
|
|
27996
|
-
this[property] = data[property];
|
|
27997
|
-
}
|
|
27998
|
-
}
|
|
27999
|
-
}
|
|
28000
|
-
init(_data) {
|
|
28001
|
-
if (_data) {
|
|
28002
|
-
this.state = _data["state"];
|
|
28003
|
-
this.resourceState = _data["resourceState"];
|
|
28004
|
-
this.seconds = _data["seconds"];
|
|
28005
|
-
}
|
|
28006
|
-
}
|
|
28007
|
-
static fromJS(data) {
|
|
28008
|
-
data = typeof data === 'object' ? data : {};
|
|
28009
|
-
let result = new ApplicationResourceStatesStateDto();
|
|
28010
|
-
result.init(data);
|
|
28011
|
-
return result;
|
|
28012
|
-
}
|
|
28013
|
-
toJSON(data) {
|
|
28014
|
-
data = typeof data === 'object' ? data : {};
|
|
28015
|
-
data["state"] = this.state;
|
|
28016
|
-
data["resourceState"] = this.resourceState;
|
|
28017
|
-
data["seconds"] = this.seconds;
|
|
28018
|
-
return data;
|
|
28019
|
-
}
|
|
28020
|
-
}
|
|
28021
28181
|
export class ResourceErpDataListDto {
|
|
28022
28182
|
constructor(data) {
|
|
28023
28183
|
if (data) {
|
|
@@ -29478,6 +29638,167 @@ export class NamedCompanyUtilizationDatapointListDto extends CompanyUtilizationD
|
|
|
29478
29638
|
return data;
|
|
29479
29639
|
}
|
|
29480
29640
|
}
|
|
29641
|
+
export class ResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
29642
|
+
constructor(data) {
|
|
29643
|
+
super(data);
|
|
29644
|
+
}
|
|
29645
|
+
init(_data) {
|
|
29646
|
+
super.init(_data);
|
|
29647
|
+
if (_data) {
|
|
29648
|
+
this.externalId = _data["externalId"];
|
|
29649
|
+
this.id = _data["id"];
|
|
29650
|
+
this.name = _data["name"];
|
|
29651
|
+
this.description = _data["description"];
|
|
29652
|
+
}
|
|
29653
|
+
}
|
|
29654
|
+
static fromJS(data) {
|
|
29655
|
+
data = typeof data === 'object' ? data : {};
|
|
29656
|
+
let result = new ResourceUtilizationDatapointListDto();
|
|
29657
|
+
result.init(data);
|
|
29658
|
+
return result;
|
|
29659
|
+
}
|
|
29660
|
+
toJSON(data) {
|
|
29661
|
+
data = typeof data === 'object' ? data : {};
|
|
29662
|
+
data["externalId"] = this.externalId;
|
|
29663
|
+
data["id"] = this.id;
|
|
29664
|
+
data["name"] = this.name;
|
|
29665
|
+
data["description"] = this.description;
|
|
29666
|
+
super.toJSON(data);
|
|
29667
|
+
return data;
|
|
29668
|
+
}
|
|
29669
|
+
}
|
|
29670
|
+
export class CompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
29671
|
+
constructor(data) {
|
|
29672
|
+
super(data);
|
|
29673
|
+
}
|
|
29674
|
+
init(_data) {
|
|
29675
|
+
super.init(_data);
|
|
29676
|
+
if (_data) {
|
|
29677
|
+
if (Array.isArray(_data["groups"])) {
|
|
29678
|
+
this.groups = [];
|
|
29679
|
+
for (let item of _data["groups"])
|
|
29680
|
+
this.groups.push(ResourceGroupUtilizationDatapointListDto.fromJS(item));
|
|
29681
|
+
}
|
|
29682
|
+
if (Array.isArray(_data["ungroupedResources"])) {
|
|
29683
|
+
this.ungroupedResources = [];
|
|
29684
|
+
for (let item of _data["ungroupedResources"])
|
|
29685
|
+
this.ungroupedResources.push(ResourceUtilizationDatapointListDto.fromJS(item));
|
|
29686
|
+
}
|
|
29687
|
+
}
|
|
29688
|
+
}
|
|
29689
|
+
static fromJS(data) {
|
|
29690
|
+
data = typeof data === 'object' ? data : {};
|
|
29691
|
+
let result = new CompanyResourceUtilizationDatapointListDto();
|
|
29692
|
+
result.init(data);
|
|
29693
|
+
return result;
|
|
29694
|
+
}
|
|
29695
|
+
toJSON(data) {
|
|
29696
|
+
data = typeof data === 'object' ? data : {};
|
|
29697
|
+
if (Array.isArray(this.groups)) {
|
|
29698
|
+
data["groups"] = [];
|
|
29699
|
+
for (let item of this.groups)
|
|
29700
|
+
data["groups"].push(item ? item.toJSON() : undefined);
|
|
29701
|
+
}
|
|
29702
|
+
if (Array.isArray(this.ungroupedResources)) {
|
|
29703
|
+
data["ungroupedResources"] = [];
|
|
29704
|
+
for (let item of this.ungroupedResources)
|
|
29705
|
+
data["ungroupedResources"].push(item ? item.toJSON() : undefined);
|
|
29706
|
+
}
|
|
29707
|
+
super.toJSON(data);
|
|
29708
|
+
return data;
|
|
29709
|
+
}
|
|
29710
|
+
}
|
|
29711
|
+
export class ResourceGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
29712
|
+
constructor(data) {
|
|
29713
|
+
super(data);
|
|
29714
|
+
}
|
|
29715
|
+
init(_data) {
|
|
29716
|
+
super.init(_data);
|
|
29717
|
+
if (_data) {
|
|
29718
|
+
this.groupId = _data["groupId"];
|
|
29719
|
+
this.groupName = _data["groupName"];
|
|
29720
|
+
if (Array.isArray(_data["resources"])) {
|
|
29721
|
+
this.resources = [];
|
|
29722
|
+
for (let item of _data["resources"])
|
|
29723
|
+
this.resources.push(ResourceUtilizationDatapointListDto.fromJS(item));
|
|
29724
|
+
}
|
|
29725
|
+
}
|
|
29726
|
+
}
|
|
29727
|
+
static fromJS(data) {
|
|
29728
|
+
data = typeof data === 'object' ? data : {};
|
|
29729
|
+
let result = new ResourceGroupUtilizationDatapointListDto();
|
|
29730
|
+
result.init(data);
|
|
29731
|
+
return result;
|
|
29732
|
+
}
|
|
29733
|
+
toJSON(data) {
|
|
29734
|
+
data = typeof data === 'object' ? data : {};
|
|
29735
|
+
data["groupId"] = this.groupId;
|
|
29736
|
+
data["groupName"] = this.groupName;
|
|
29737
|
+
if (Array.isArray(this.resources)) {
|
|
29738
|
+
data["resources"] = [];
|
|
29739
|
+
for (let item of this.resources)
|
|
29740
|
+
data["resources"].push(item ? item.toJSON() : undefined);
|
|
29741
|
+
}
|
|
29742
|
+
super.toJSON(data);
|
|
29743
|
+
return data;
|
|
29744
|
+
}
|
|
29745
|
+
}
|
|
29746
|
+
export class CrossCompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
29747
|
+
constructor(data) {
|
|
29748
|
+
super(data);
|
|
29749
|
+
}
|
|
29750
|
+
init(_data) {
|
|
29751
|
+
super.init(_data);
|
|
29752
|
+
if (_data) {
|
|
29753
|
+
if (Array.isArray(_data["companies"])) {
|
|
29754
|
+
this.companies = [];
|
|
29755
|
+
for (let item of _data["companies"])
|
|
29756
|
+
this.companies.push(NamedCompanyResourceUtilizationDatapointListDto.fromJS(item));
|
|
29757
|
+
}
|
|
29758
|
+
}
|
|
29759
|
+
}
|
|
29760
|
+
static fromJS(data) {
|
|
29761
|
+
data = typeof data === 'object' ? data : {};
|
|
29762
|
+
let result = new CrossCompanyResourceUtilizationDatapointListDto();
|
|
29763
|
+
result.init(data);
|
|
29764
|
+
return result;
|
|
29765
|
+
}
|
|
29766
|
+
toJSON(data) {
|
|
29767
|
+
data = typeof data === 'object' ? data : {};
|
|
29768
|
+
if (Array.isArray(this.companies)) {
|
|
29769
|
+
data["companies"] = [];
|
|
29770
|
+
for (let item of this.companies)
|
|
29771
|
+
data["companies"].push(item ? item.toJSON() : undefined);
|
|
29772
|
+
}
|
|
29773
|
+
super.toJSON(data);
|
|
29774
|
+
return data;
|
|
29775
|
+
}
|
|
29776
|
+
}
|
|
29777
|
+
export class NamedCompanyResourceUtilizationDatapointListDto extends CompanyResourceUtilizationDatapointListDto {
|
|
29778
|
+
constructor(data) {
|
|
29779
|
+
super(data);
|
|
29780
|
+
}
|
|
29781
|
+
init(_data) {
|
|
29782
|
+
super.init(_data);
|
|
29783
|
+
if (_data) {
|
|
29784
|
+
this.companyId = _data["companyId"];
|
|
29785
|
+
this.companyName = _data["companyName"];
|
|
29786
|
+
}
|
|
29787
|
+
}
|
|
29788
|
+
static fromJS(data) {
|
|
29789
|
+
data = typeof data === 'object' ? data : {};
|
|
29790
|
+
let result = new NamedCompanyResourceUtilizationDatapointListDto();
|
|
29791
|
+
result.init(data);
|
|
29792
|
+
return result;
|
|
29793
|
+
}
|
|
29794
|
+
toJSON(data) {
|
|
29795
|
+
data = typeof data === 'object' ? data : {};
|
|
29796
|
+
data["companyId"] = this.companyId;
|
|
29797
|
+
data["companyName"] = this.companyName;
|
|
29798
|
+
super.toJSON(data);
|
|
29799
|
+
return data;
|
|
29800
|
+
}
|
|
29801
|
+
}
|
|
29481
29802
|
export class MrbInstanceDto {
|
|
29482
29803
|
constructor(data) {
|
|
29483
29804
|
if (data) {
|
|
@@ -34201,109 +34522,6 @@ export class UpdateMachineGroup {
|
|
|
34201
34522
|
return data;
|
|
34202
34523
|
}
|
|
34203
34524
|
}
|
|
34204
|
-
export class MachineStateListDto {
|
|
34205
|
-
constructor(data) {
|
|
34206
|
-
if (data) {
|
|
34207
|
-
for (var property in data) {
|
|
34208
|
-
if (data.hasOwnProperty(property))
|
|
34209
|
-
this[property] = data[property];
|
|
34210
|
-
}
|
|
34211
|
-
}
|
|
34212
|
-
}
|
|
34213
|
-
init(_data) {
|
|
34214
|
-
if (_data) {
|
|
34215
|
-
if (Array.isArray(_data["machines"])) {
|
|
34216
|
-
this.machines = [];
|
|
34217
|
-
for (let item of _data["machines"])
|
|
34218
|
-
this.machines.push(MachineStateDto.fromJS(item));
|
|
34219
|
-
}
|
|
34220
|
-
}
|
|
34221
|
-
}
|
|
34222
|
-
static fromJS(data) {
|
|
34223
|
-
data = typeof data === 'object' ? data : {};
|
|
34224
|
-
let result = new MachineStateListDto();
|
|
34225
|
-
result.init(data);
|
|
34226
|
-
return result;
|
|
34227
|
-
}
|
|
34228
|
-
toJSON(data) {
|
|
34229
|
-
data = typeof data === 'object' ? data : {};
|
|
34230
|
-
if (Array.isArray(this.machines)) {
|
|
34231
|
-
data["machines"] = [];
|
|
34232
|
-
for (let item of this.machines)
|
|
34233
|
-
data["machines"].push(item ? item.toJSON() : undefined);
|
|
34234
|
-
}
|
|
34235
|
-
return data;
|
|
34236
|
-
}
|
|
34237
|
-
}
|
|
34238
|
-
export class MachineStateDto {
|
|
34239
|
-
constructor(data) {
|
|
34240
|
-
if (data) {
|
|
34241
|
-
for (var property in data) {
|
|
34242
|
-
if (data.hasOwnProperty(property))
|
|
34243
|
-
this[property] = data[property];
|
|
34244
|
-
}
|
|
34245
|
-
}
|
|
34246
|
-
}
|
|
34247
|
-
init(_data) {
|
|
34248
|
-
if (_data) {
|
|
34249
|
-
this.assetId = _data["assetId"];
|
|
34250
|
-
this.name = _data["name"];
|
|
34251
|
-
this.description = _data["description"];
|
|
34252
|
-
this.state = _data["state"];
|
|
34253
|
-
this.machineState = _data["machineState"];
|
|
34254
|
-
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
34255
|
-
}
|
|
34256
|
-
}
|
|
34257
|
-
static fromJS(data) {
|
|
34258
|
-
data = typeof data === 'object' ? data : {};
|
|
34259
|
-
let result = new MachineStateDto();
|
|
34260
|
-
result.init(data);
|
|
34261
|
-
return result;
|
|
34262
|
-
}
|
|
34263
|
-
toJSON(data) {
|
|
34264
|
-
data = typeof data === 'object' ? data : {};
|
|
34265
|
-
data["assetId"] = this.assetId;
|
|
34266
|
-
data["name"] = this.name;
|
|
34267
|
-
data["description"] = this.description;
|
|
34268
|
-
data["state"] = this.state;
|
|
34269
|
-
data["machineState"] = this.machineState;
|
|
34270
|
-
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
34271
|
-
return data;
|
|
34272
|
-
}
|
|
34273
|
-
}
|
|
34274
|
-
export class DowntimeMachineStateDto {
|
|
34275
|
-
constructor(data) {
|
|
34276
|
-
if (data) {
|
|
34277
|
-
for (var property in data) {
|
|
34278
|
-
if (data.hasOwnProperty(property))
|
|
34279
|
-
this[property] = data[property];
|
|
34280
|
-
}
|
|
34281
|
-
}
|
|
34282
|
-
if (!data) {
|
|
34283
|
-
this.datapoint = new MachineStateDatapoint();
|
|
34284
|
-
}
|
|
34285
|
-
}
|
|
34286
|
-
init(_data) {
|
|
34287
|
-
if (_data) {
|
|
34288
|
-
this.datapoint = _data["datapoint"] ? MachineStateDatapoint.fromJS(_data["datapoint"]) : new MachineStateDatapoint();
|
|
34289
|
-
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
34290
|
-
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
34291
|
-
}
|
|
34292
|
-
}
|
|
34293
|
-
static fromJS(data) {
|
|
34294
|
-
data = typeof data === 'object' ? data : {};
|
|
34295
|
-
let result = new DowntimeMachineStateDto();
|
|
34296
|
-
result.init(data);
|
|
34297
|
-
return result;
|
|
34298
|
-
}
|
|
34299
|
-
toJSON(data) {
|
|
34300
|
-
data = typeof data === 'object' ? data : {};
|
|
34301
|
-
data["datapoint"] = this.datapoint ? this.datapoint.toJSON() : undefined;
|
|
34302
|
-
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
34303
|
-
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
34304
|
-
return data;
|
|
34305
|
-
}
|
|
34306
|
-
}
|
|
34307
34525
|
export class MachineErpDataListDto {
|
|
34308
34526
|
constructor(data) {
|
|
34309
34527
|
if (data) {
|
|
@@ -42249,6 +42467,7 @@ export class ProductionOrderDto {
|
|
|
42249
42467
|
}
|
|
42250
42468
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
|
|
42251
42469
|
this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : undefined;
|
|
42470
|
+
this.deliveryDate = _data["deliveryDate"] ? new Date(_data["deliveryDate"].toString()) : undefined;
|
|
42252
42471
|
this.bomPosition = _data["bomPosition"];
|
|
42253
42472
|
this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : undefined;
|
|
42254
42473
|
this.orderReference = _data["orderReference"] ? OrderReferenceDto.fromJS(_data["orderReference"]) : undefined;
|
|
@@ -42288,6 +42507,7 @@ export class ProductionOrderDto {
|
|
|
42288
42507
|
}
|
|
42289
42508
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined;
|
|
42290
42509
|
data["endDate"] = this.endDate ? this.endDate.toISOString() : undefined;
|
|
42510
|
+
data["deliveryDate"] = this.deliveryDate ? this.deliveryDate.toISOString() : undefined;
|
|
42291
42511
|
data["bomPosition"] = this.bomPosition;
|
|
42292
42512
|
data["drawing"] = this.drawing ? this.drawing.toJSON() : undefined;
|
|
42293
42513
|
data["orderReference"] = this.orderReference ? this.orderReference.toJSON() : undefined;
|
|
@@ -47895,6 +48115,7 @@ export class SaveValueResponseDto {
|
|
|
47895
48115
|
if (_data) {
|
|
47896
48116
|
this.elementCompleted = _data["elementCompleted"];
|
|
47897
48117
|
this.warning = _data["warning"];
|
|
48118
|
+
this.informationText = _data["informationText"];
|
|
47898
48119
|
this.isOutsideTolerances = _data["isOutsideTolerances"];
|
|
47899
48120
|
this.isCloseToTolerances = _data["isCloseToTolerances"];
|
|
47900
48121
|
if (Array.isArray(_data["tools"])) {
|
|
@@ -47914,6 +48135,7 @@ export class SaveValueResponseDto {
|
|
|
47914
48135
|
data = typeof data === 'object' ? data : {};
|
|
47915
48136
|
data["elementCompleted"] = this.elementCompleted;
|
|
47916
48137
|
data["warning"] = this.warning;
|
|
48138
|
+
data["informationText"] = this.informationText;
|
|
47917
48139
|
data["isOutsideTolerances"] = this.isOutsideTolerances;
|
|
47918
48140
|
data["isCloseToTolerances"] = this.isCloseToTolerances;
|
|
47919
48141
|
if (Array.isArray(this.tools)) {
|