@ignos/api-client 20260106.0.13658 → 20260108.0.13688-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 +146 -0
- package/lib/ignosportal-api.js +648 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +761 -0
package/src/ignosportal-api.ts
CHANGED
|
@@ -1194,6 +1194,464 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
|
+
export interface IResourceUtilizationClient {
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* Get machine utilization data. Historic utilizations start from now, whereas the start for current utilization is
|
|
1201
|
+
calculated based on startTimeToday or utcOffset. An UTC offset is
|
|
1202
|
+
obtained either from startTimeToday, utcOffset or the server's local
|
|
1203
|
+
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
1204
|
+
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
1205
|
+
client and server
|
|
1206
|
+
* @param assetId (optional)
|
|
1207
|
+
* @param favorites (optional)
|
|
1208
|
+
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1209
|
+
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1210
|
+
*/
|
|
1211
|
+
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto>;
|
|
1212
|
+
|
|
1213
|
+
getResourceUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto>;
|
|
1214
|
+
|
|
1215
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1216
|
+
|
|
1217
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1218
|
+
|
|
1219
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1220
|
+
|
|
1221
|
+
listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
|
|
1222
|
+
|
|
1223
|
+
listPowerOnUtilizationDatapoints(id: number | null | undefined, externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList>;
|
|
1224
|
+
|
|
1225
|
+
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
1226
|
+
|
|
1227
|
+
getProgramTimeline(id: string, startTime: Date | undefined, endTime: Date | undefined): Promise<ProgramDatapoint[]>;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
export class ResourceUtilizationClient extends AuthorizedApiBase implements IResourceUtilizationClient {
|
|
1231
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
1232
|
+
private baseUrl: string;
|
|
1233
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
1234
|
+
|
|
1235
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
1236
|
+
super(configuration);
|
|
1237
|
+
this.http = http ? http : window as any;
|
|
1238
|
+
this.baseUrl = baseUrl ?? "";
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Get machine utilization data. Historic utilizations start from now, whereas the start for current utilization is
|
|
1243
|
+
calculated based on startTimeToday or utcOffset. An UTC offset is
|
|
1244
|
+
obtained either from startTimeToday, utcOffset or the server's local
|
|
1245
|
+
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
1246
|
+
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
1247
|
+
client and server
|
|
1248
|
+
* @param assetId (optional)
|
|
1249
|
+
* @param favorites (optional)
|
|
1250
|
+
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1251
|
+
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1252
|
+
*/
|
|
1253
|
+
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto> {
|
|
1254
|
+
let url_ = this.baseUrl + "/resourceutilization?";
|
|
1255
|
+
if (assetId !== undefined && assetId !== null)
|
|
1256
|
+
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
1257
|
+
if (favorites === null)
|
|
1258
|
+
throw new globalThis.Error("The parameter 'favorites' cannot be null.");
|
|
1259
|
+
else if (favorites !== undefined)
|
|
1260
|
+
url_ += "favorites=" + encodeURIComponent("" + favorites) + "&";
|
|
1261
|
+
if (startTimeToday !== undefined && startTimeToday !== null)
|
|
1262
|
+
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
1263
|
+
if (utcOffset !== undefined && utcOffset !== null)
|
|
1264
|
+
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
1265
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1266
|
+
|
|
1267
|
+
let options_: RequestInit = {
|
|
1268
|
+
method: "GET",
|
|
1269
|
+
headers: {
|
|
1270
|
+
"Accept": "application/json"
|
|
1271
|
+
}
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1275
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1276
|
+
}).then((_response: Response) => {
|
|
1277
|
+
return this.processGetResourceUtilizations(_response);
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
protected processGetResourceUtilizations(response: Response): Promise<ResourceUtilizationListDto> {
|
|
1282
|
+
const status = response.status;
|
|
1283
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1284
|
+
if (status === 200) {
|
|
1285
|
+
return response.text().then((_responseText) => {
|
|
1286
|
+
let result200: any = null;
|
|
1287
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1288
|
+
result200 = ResourceUtilizationListDto.fromJS(resultData200);
|
|
1289
|
+
return result200;
|
|
1290
|
+
});
|
|
1291
|
+
} else if (status !== 200 && status !== 204) {
|
|
1292
|
+
return response.text().then((_responseText) => {
|
|
1293
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
return Promise.resolve<ResourceUtilizationListDto>(null as any);
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
getResourceUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto> {
|
|
1300
|
+
let url_ = this.baseUrl + "/resourceutilization/{id}?";
|
|
1301
|
+
if (id === undefined || id === null)
|
|
1302
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1303
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1304
|
+
if (startTime === null)
|
|
1305
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
1306
|
+
else if (startTime !== undefined)
|
|
1307
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
1308
|
+
if (endTime !== undefined && endTime !== null)
|
|
1309
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
1310
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1311
|
+
|
|
1312
|
+
let options_: RequestInit = {
|
|
1313
|
+
method: "GET",
|
|
1314
|
+
headers: {
|
|
1315
|
+
"Accept": "application/json"
|
|
1316
|
+
}
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1319
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1320
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1321
|
+
}).then((_response: Response) => {
|
|
1322
|
+
return this.processGetResourceUtilization(_response);
|
|
1323
|
+
});
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
protected processGetResourceUtilization(response: Response): Promise<ResourceUtilizationDetailsDto> {
|
|
1327
|
+
const status = response.status;
|
|
1328
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1329
|
+
if (status === 200) {
|
|
1330
|
+
return response.text().then((_responseText) => {
|
|
1331
|
+
let result200: any = null;
|
|
1332
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1333
|
+
result200 = ResourceUtilizationDetailsDto.fromJS(resultData200);
|
|
1334
|
+
return result200;
|
|
1335
|
+
});
|
|
1336
|
+
} else if (status !== 200 && status !== 204) {
|
|
1337
|
+
return response.text().then((_responseText) => {
|
|
1338
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
return Promise.resolve<ResourceUtilizationDetailsDto>(null as any);
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
1345
|
+
let url_ = this.baseUrl + "/resourceutilization/{id}/resource/timelines?";
|
|
1346
|
+
if (id === undefined || id === null)
|
|
1347
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1348
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1349
|
+
if (startTime !== undefined && startTime !== null)
|
|
1350
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
1351
|
+
if (endTime !== undefined && endTime !== null)
|
|
1352
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
1353
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1354
|
+
|
|
1355
|
+
const content_ = JSON.stringify(filter);
|
|
1356
|
+
|
|
1357
|
+
let options_: RequestInit = {
|
|
1358
|
+
body: content_,
|
|
1359
|
+
method: "POST",
|
|
1360
|
+
headers: {
|
|
1361
|
+
"Content-Type": "application/json",
|
|
1362
|
+
"Accept": "application/json"
|
|
1363
|
+
}
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1367
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1368
|
+
}).then((_response: Response) => {
|
|
1369
|
+
return this.processGetResourceTimelines(_response);
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
protected processGetResourceTimelines(response: Response): Promise<TimelinesDto> {
|
|
1374
|
+
const status = response.status;
|
|
1375
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1376
|
+
if (status === 200) {
|
|
1377
|
+
return response.text().then((_responseText) => {
|
|
1378
|
+
let result200: any = null;
|
|
1379
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1380
|
+
result200 = TimelinesDto.fromJS(resultData200);
|
|
1381
|
+
return result200;
|
|
1382
|
+
});
|
|
1383
|
+
} else if (status !== 200 && status !== 204) {
|
|
1384
|
+
return response.text().then((_responseText) => {
|
|
1385
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
return Promise.resolve<TimelinesDto>(null as any);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
1392
|
+
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states?";
|
|
1393
|
+
if (id === undefined || id === null)
|
|
1394
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1395
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1396
|
+
if (startTime !== undefined && startTime !== null)
|
|
1397
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
1398
|
+
if (endTime !== undefined && endTime !== null)
|
|
1399
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
1400
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1401
|
+
|
|
1402
|
+
let options_: RequestInit = {
|
|
1403
|
+
method: "GET",
|
|
1404
|
+
headers: {
|
|
1405
|
+
"Accept": "application/json"
|
|
1406
|
+
}
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1410
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1411
|
+
}).then((_response: Response) => {
|
|
1412
|
+
return this.processListMachineStates(_response);
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
protected processListMachineStates(response: Response): Promise<MachineStateDatapoint[]> {
|
|
1417
|
+
const status = response.status;
|
|
1418
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1419
|
+
if (status === 200) {
|
|
1420
|
+
return response.text().then((_responseText) => {
|
|
1421
|
+
let result200: any = null;
|
|
1422
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1423
|
+
if (Array.isArray(resultData200)) {
|
|
1424
|
+
result200 = [] as any;
|
|
1425
|
+
for (let item of resultData200)
|
|
1426
|
+
result200!.push(MachineStateDatapoint.fromJS(item));
|
|
1427
|
+
}
|
|
1428
|
+
return result200;
|
|
1429
|
+
});
|
|
1430
|
+
} else if (status !== 200 && status !== 204) {
|
|
1431
|
+
return response.text().then((_responseText) => {
|
|
1432
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1439
|
+
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states/summary?";
|
|
1440
|
+
if (id === undefined || id === null)
|
|
1441
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1442
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1443
|
+
if (startTime !== undefined && startTime !== null)
|
|
1444
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
1445
|
+
if (endTime !== undefined && endTime !== null)
|
|
1446
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
1447
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1448
|
+
|
|
1449
|
+
let options_: RequestInit = {
|
|
1450
|
+
method: "GET",
|
|
1451
|
+
headers: {
|
|
1452
|
+
"Accept": "application/json"
|
|
1453
|
+
}
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1457
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1458
|
+
}).then((_response: Response) => {
|
|
1459
|
+
return this.processGetMachineStatesSummary(_response);
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
protected processGetMachineStatesSummary(response: Response): Promise<MachineStatesSummaryDto> {
|
|
1464
|
+
const status = response.status;
|
|
1465
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1466
|
+
if (status === 200) {
|
|
1467
|
+
return response.text().then((_responseText) => {
|
|
1468
|
+
let result200: any = null;
|
|
1469
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1470
|
+
result200 = MachineStatesSummaryDto.fromJS(resultData200);
|
|
1471
|
+
return result200;
|
|
1472
|
+
});
|
|
1473
|
+
} else if (status !== 200 && status !== 204) {
|
|
1474
|
+
return response.text().then((_responseText) => {
|
|
1475
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
return Promise.resolve<MachineStatesSummaryDto>(null as any);
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<MachineUptimesAggregateDto> {
|
|
1482
|
+
let url_ = this.baseUrl + "/resourceutilization/machine-states/uptime-today";
|
|
1483
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1484
|
+
|
|
1485
|
+
const content_ = JSON.stringify(request);
|
|
1486
|
+
|
|
1487
|
+
let options_: RequestInit = {
|
|
1488
|
+
body: content_,
|
|
1489
|
+
method: "POST",
|
|
1490
|
+
headers: {
|
|
1491
|
+
"Content-Type": "application/json",
|
|
1492
|
+
"Accept": "application/json"
|
|
1493
|
+
}
|
|
1494
|
+
};
|
|
1495
|
+
|
|
1496
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1497
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1498
|
+
}).then((_response: Response) => {
|
|
1499
|
+
return this.processListResourceUptimesToday(_response);
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
protected processListResourceUptimesToday(response: Response): Promise<MachineUptimesAggregateDto> {
|
|
1504
|
+
const status = response.status;
|
|
1505
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1506
|
+
if (status === 200) {
|
|
1507
|
+
return response.text().then((_responseText) => {
|
|
1508
|
+
let result200: any = null;
|
|
1509
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1510
|
+
result200 = MachineUptimesAggregateDto.fromJS(resultData200);
|
|
1511
|
+
return result200;
|
|
1512
|
+
});
|
|
1513
|
+
} else if (status !== 200 && status !== 204) {
|
|
1514
|
+
return response.text().then((_responseText) => {
|
|
1515
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1516
|
+
});
|
|
1517
|
+
}
|
|
1518
|
+
return Promise.resolve<MachineUptimesAggregateDto>(null as any);
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
listPowerOnUtilizationDatapoints(id: number | null | undefined, externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList> {
|
|
1522
|
+
let url_ = this.baseUrl + "/resourceutilization/power-on/datapoints?";
|
|
1523
|
+
if (id !== undefined && id !== null)
|
|
1524
|
+
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
1525
|
+
if (externalId !== undefined && externalId !== null)
|
|
1526
|
+
url_ += "externalId=" + encodeURIComponent("" + externalId) + "&";
|
|
1527
|
+
if (nDays !== undefined && nDays !== null)
|
|
1528
|
+
url_ += "nDays=" + encodeURIComponent("" + nDays) + "&";
|
|
1529
|
+
if (startTime !== undefined && startTime !== null)
|
|
1530
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
1531
|
+
if (endTime !== undefined && endTime !== null)
|
|
1532
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
1533
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1534
|
+
|
|
1535
|
+
let options_: RequestInit = {
|
|
1536
|
+
method: "GET",
|
|
1537
|
+
headers: {
|
|
1538
|
+
"Accept": "application/json"
|
|
1539
|
+
}
|
|
1540
|
+
};
|
|
1541
|
+
|
|
1542
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1543
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1544
|
+
}).then((_response: Response) => {
|
|
1545
|
+
return this.processListPowerOnUtilizationDatapoints(_response);
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
protected processListPowerOnUtilizationDatapoints(response: Response): Promise<PowerOnUtilizationList> {
|
|
1550
|
+
const status = response.status;
|
|
1551
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1552
|
+
if (status === 200) {
|
|
1553
|
+
return response.text().then((_responseText) => {
|
|
1554
|
+
let result200: any = null;
|
|
1555
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1556
|
+
result200 = PowerOnUtilizationList.fromJS(resultData200);
|
|
1557
|
+
return result200;
|
|
1558
|
+
});
|
|
1559
|
+
} else if (status !== 200 && status !== 204) {
|
|
1560
|
+
return response.text().then((_responseText) => {
|
|
1561
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1562
|
+
});
|
|
1563
|
+
}
|
|
1564
|
+
return Promise.resolve<PowerOnUtilizationList>(null as any);
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
getFactoryUtilization(): Promise<PowerOnUtilizationDto> {
|
|
1568
|
+
let url_ = this.baseUrl + "/resourceutilization/factory";
|
|
1569
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1570
|
+
|
|
1571
|
+
let options_: RequestInit = {
|
|
1572
|
+
method: "GET",
|
|
1573
|
+
headers: {
|
|
1574
|
+
"Accept": "application/json"
|
|
1575
|
+
}
|
|
1576
|
+
};
|
|
1577
|
+
|
|
1578
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1579
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1580
|
+
}).then((_response: Response) => {
|
|
1581
|
+
return this.processGetFactoryUtilization(_response);
|
|
1582
|
+
});
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
protected processGetFactoryUtilization(response: Response): Promise<PowerOnUtilizationDto> {
|
|
1586
|
+
const status = response.status;
|
|
1587
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1588
|
+
if (status === 200) {
|
|
1589
|
+
return response.text().then((_responseText) => {
|
|
1590
|
+
let result200: any = null;
|
|
1591
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1592
|
+
result200 = PowerOnUtilizationDto.fromJS(resultData200);
|
|
1593
|
+
return result200;
|
|
1594
|
+
});
|
|
1595
|
+
} else if (status !== 200 && status !== 204) {
|
|
1596
|
+
return response.text().then((_responseText) => {
|
|
1597
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1598
|
+
});
|
|
1599
|
+
}
|
|
1600
|
+
return Promise.resolve<PowerOnUtilizationDto>(null as any);
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
getProgramTimeline(id: string, startTime: Date | undefined, endTime: Date | undefined): Promise<ProgramDatapoint[]> {
|
|
1604
|
+
let url_ = this.baseUrl + "/resourceutilization/{id}/program-timeline?";
|
|
1605
|
+
if (id === undefined || id === null)
|
|
1606
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1607
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1608
|
+
if (startTime === null)
|
|
1609
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
1610
|
+
else if (startTime !== undefined)
|
|
1611
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
1612
|
+
if (endTime === null)
|
|
1613
|
+
throw new globalThis.Error("The parameter 'endTime' cannot be null.");
|
|
1614
|
+
else if (endTime !== undefined)
|
|
1615
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
1616
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1617
|
+
|
|
1618
|
+
let options_: RequestInit = {
|
|
1619
|
+
method: "GET",
|
|
1620
|
+
headers: {
|
|
1621
|
+
"Accept": "application/json"
|
|
1622
|
+
}
|
|
1623
|
+
};
|
|
1624
|
+
|
|
1625
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1626
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1627
|
+
}).then((_response: Response) => {
|
|
1628
|
+
return this.processGetProgramTimeline(_response);
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
protected processGetProgramTimeline(response: Response): Promise<ProgramDatapoint[]> {
|
|
1633
|
+
const status = response.status;
|
|
1634
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1635
|
+
if (status === 200) {
|
|
1636
|
+
return response.text().then((_responseText) => {
|
|
1637
|
+
let result200: any = null;
|
|
1638
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1639
|
+
if (Array.isArray(resultData200)) {
|
|
1640
|
+
result200 = [] as any;
|
|
1641
|
+
for (let item of resultData200)
|
|
1642
|
+
result200!.push(ProgramDatapoint.fromJS(item));
|
|
1643
|
+
}
|
|
1644
|
+
return result200;
|
|
1645
|
+
});
|
|
1646
|
+
} else if (status !== 200 && status !== 204) {
|
|
1647
|
+
return response.text().then((_responseText) => {
|
|
1648
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
return Promise.resolve<ProgramDatapoint[]>(null as any);
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1197
1655
|
export interface IMeClient {
|
|
1198
1656
|
|
|
1199
1657
|
getMyApps(): Promise<UserAppDto[]>;
|
|
@@ -22750,6 +23208,8 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
22750
23208
|
|
|
22751
23209
|
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
22752
23210
|
|
|
23211
|
+
completeMeasurementFormInstanceV2(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult>;
|
|
23212
|
+
|
|
22753
23213
|
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
|
|
22754
23214
|
|
|
22755
23215
|
getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
|
|
@@ -23010,6 +23470,47 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
23010
23470
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
23011
23471
|
}
|
|
23012
23472
|
|
|
23473
|
+
completeMeasurementFormInstanceV2(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult> {
|
|
23474
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/complete-v2?";
|
|
23475
|
+
if (id === undefined || id === null)
|
|
23476
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23477
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23478
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
23479
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
23480
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23481
|
+
|
|
23482
|
+
let options_: RequestInit = {
|
|
23483
|
+
method: "POST",
|
|
23484
|
+
headers: {
|
|
23485
|
+
"Accept": "application/json"
|
|
23486
|
+
}
|
|
23487
|
+
};
|
|
23488
|
+
|
|
23489
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23490
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23491
|
+
}).then((_response: Response) => {
|
|
23492
|
+
return this.processCompleteMeasurementFormInstanceV2(_response);
|
|
23493
|
+
});
|
|
23494
|
+
}
|
|
23495
|
+
|
|
23496
|
+
protected processCompleteMeasurementFormInstanceV2(response: Response): Promise<CompleteMeasurementFormInstanceResult> {
|
|
23497
|
+
const status = response.status;
|
|
23498
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23499
|
+
if (status === 200) {
|
|
23500
|
+
return response.text().then((_responseText) => {
|
|
23501
|
+
let result200: any = null;
|
|
23502
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23503
|
+
result200 = CompleteMeasurementFormInstanceResult.fromJS(resultData200);
|
|
23504
|
+
return result200;
|
|
23505
|
+
});
|
|
23506
|
+
} else if (status !== 200 && status !== 204) {
|
|
23507
|
+
return response.text().then((_responseText) => {
|
|
23508
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23509
|
+
});
|
|
23510
|
+
}
|
|
23511
|
+
return Promise.resolve<CompleteMeasurementFormInstanceResult>(null as any);
|
|
23512
|
+
}
|
|
23513
|
+
|
|
23013
23514
|
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
|
|
23014
23515
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
|
|
23015
23516
|
if (id === undefined || id === null)
|
|
@@ -27583,6 +28084,218 @@ export interface INumericNullableValueWithTimestamp {
|
|
|
27583
28084
|
value?: number | null;
|
|
27584
28085
|
}
|
|
27585
28086
|
|
|
28087
|
+
export class ResourceUtilizationListDto implements IResourceUtilizationListDto {
|
|
28088
|
+
resources?: ResourceUtilizationDto[] | null;
|
|
28089
|
+
|
|
28090
|
+
constructor(data?: IResourceUtilizationListDto) {
|
|
28091
|
+
if (data) {
|
|
28092
|
+
for (var property in data) {
|
|
28093
|
+
if (data.hasOwnProperty(property))
|
|
28094
|
+
(this as any)[property] = (data as any)[property];
|
|
28095
|
+
}
|
|
28096
|
+
}
|
|
28097
|
+
}
|
|
28098
|
+
|
|
28099
|
+
init(_data?: any) {
|
|
28100
|
+
if (_data) {
|
|
28101
|
+
if (Array.isArray(_data["resources"])) {
|
|
28102
|
+
this.resources = [] as any;
|
|
28103
|
+
for (let item of _data["resources"])
|
|
28104
|
+
this.resources!.push(ResourceUtilizationDto.fromJS(item));
|
|
28105
|
+
}
|
|
28106
|
+
}
|
|
28107
|
+
}
|
|
28108
|
+
|
|
28109
|
+
static fromJS(data: any): ResourceUtilizationListDto {
|
|
28110
|
+
data = typeof data === 'object' ? data : {};
|
|
28111
|
+
let result = new ResourceUtilizationListDto();
|
|
28112
|
+
result.init(data);
|
|
28113
|
+
return result;
|
|
28114
|
+
}
|
|
28115
|
+
|
|
28116
|
+
toJSON(data?: any) {
|
|
28117
|
+
data = typeof data === 'object' ? data : {};
|
|
28118
|
+
if (Array.isArray(this.resources)) {
|
|
28119
|
+
data["resources"] = [];
|
|
28120
|
+
for (let item of this.resources)
|
|
28121
|
+
data["resources"].push(item ? item.toJSON() : undefined as any);
|
|
28122
|
+
}
|
|
28123
|
+
return data;
|
|
28124
|
+
}
|
|
28125
|
+
}
|
|
28126
|
+
|
|
28127
|
+
export interface IResourceUtilizationListDto {
|
|
28128
|
+
resources?: ResourceUtilizationDto[] | null;
|
|
28129
|
+
}
|
|
28130
|
+
|
|
28131
|
+
export class ResourceUtilizationDto implements IResourceUtilizationDto {
|
|
28132
|
+
assetId!: number;
|
|
28133
|
+
name!: string;
|
|
28134
|
+
description?: string | null;
|
|
28135
|
+
state!: string;
|
|
28136
|
+
machineState!: MachineState;
|
|
28137
|
+
startTime?: Date;
|
|
28138
|
+
workorder?: UtilizationWorkorderDto | null;
|
|
28139
|
+
powerOn?: PowerOnUtilizationDto | null;
|
|
28140
|
+
|
|
28141
|
+
constructor(data?: IResourceUtilizationDto) {
|
|
28142
|
+
if (data) {
|
|
28143
|
+
for (var property in data) {
|
|
28144
|
+
if (data.hasOwnProperty(property))
|
|
28145
|
+
(this as any)[property] = (data as any)[property];
|
|
28146
|
+
}
|
|
28147
|
+
}
|
|
28148
|
+
}
|
|
28149
|
+
|
|
28150
|
+
init(_data?: any) {
|
|
28151
|
+
if (_data) {
|
|
28152
|
+
this.assetId = _data["assetId"];
|
|
28153
|
+
this.name = _data["name"];
|
|
28154
|
+
this.description = _data["description"];
|
|
28155
|
+
this.state = _data["state"];
|
|
28156
|
+
this.machineState = _data["machineState"];
|
|
28157
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
|
|
28158
|
+
this.workorder = _data["workorder"] ? UtilizationWorkorderDto.fromJS(_data["workorder"]) : undefined as any;
|
|
28159
|
+
this.powerOn = _data["powerOn"] ? PowerOnUtilizationDto.fromJS(_data["powerOn"]) : undefined as any;
|
|
28160
|
+
}
|
|
28161
|
+
}
|
|
28162
|
+
|
|
28163
|
+
static fromJS(data: any): ResourceUtilizationDto {
|
|
28164
|
+
data = typeof data === 'object' ? data : {};
|
|
28165
|
+
let result = new ResourceUtilizationDto();
|
|
28166
|
+
result.init(data);
|
|
28167
|
+
return result;
|
|
28168
|
+
}
|
|
28169
|
+
|
|
28170
|
+
toJSON(data?: any) {
|
|
28171
|
+
data = typeof data === 'object' ? data : {};
|
|
28172
|
+
data["assetId"] = this.assetId;
|
|
28173
|
+
data["name"] = this.name;
|
|
28174
|
+
data["description"] = this.description;
|
|
28175
|
+
data["state"] = this.state;
|
|
28176
|
+
data["machineState"] = this.machineState;
|
|
28177
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined as any;
|
|
28178
|
+
data["workorder"] = this.workorder ? this.workorder.toJSON() : undefined as any;
|
|
28179
|
+
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : undefined as any;
|
|
28180
|
+
return data;
|
|
28181
|
+
}
|
|
28182
|
+
}
|
|
28183
|
+
|
|
28184
|
+
export interface IResourceUtilizationDto {
|
|
28185
|
+
assetId: number;
|
|
28186
|
+
name: string;
|
|
28187
|
+
description?: string | null;
|
|
28188
|
+
state: string;
|
|
28189
|
+
machineState: MachineState;
|
|
28190
|
+
startTime?: Date;
|
|
28191
|
+
workorder?: UtilizationWorkorderDto | null;
|
|
28192
|
+
powerOn?: PowerOnUtilizationDto | null;
|
|
28193
|
+
}
|
|
28194
|
+
|
|
28195
|
+
export class ResourceUtilizationDetailsDto implements IResourceUtilizationDetailsDto {
|
|
28196
|
+
resourceId!: number;
|
|
28197
|
+
resourceName!: string;
|
|
28198
|
+
machineStateText?: string | null;
|
|
28199
|
+
machineState?: MachineState | null;
|
|
28200
|
+
startTime?: Date | null;
|
|
28201
|
+
powerOnUtilization?: number | null;
|
|
28202
|
+
|
|
28203
|
+
constructor(data?: IResourceUtilizationDetailsDto) {
|
|
28204
|
+
if (data) {
|
|
28205
|
+
for (var property in data) {
|
|
28206
|
+
if (data.hasOwnProperty(property))
|
|
28207
|
+
(this as any)[property] = (data as any)[property];
|
|
28208
|
+
}
|
|
28209
|
+
}
|
|
28210
|
+
}
|
|
28211
|
+
|
|
28212
|
+
init(_data?: any) {
|
|
28213
|
+
if (_data) {
|
|
28214
|
+
this.resourceId = _data["resourceId"];
|
|
28215
|
+
this.resourceName = _data["resourceName"];
|
|
28216
|
+
this.machineStateText = _data["machineStateText"];
|
|
28217
|
+
this.machineState = _data["machineState"];
|
|
28218
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
|
|
28219
|
+
this.powerOnUtilization = _data["powerOnUtilization"];
|
|
28220
|
+
}
|
|
28221
|
+
}
|
|
28222
|
+
|
|
28223
|
+
static fromJS(data: any): ResourceUtilizationDetailsDto {
|
|
28224
|
+
data = typeof data === 'object' ? data : {};
|
|
28225
|
+
let result = new ResourceUtilizationDetailsDto();
|
|
28226
|
+
result.init(data);
|
|
28227
|
+
return result;
|
|
28228
|
+
}
|
|
28229
|
+
|
|
28230
|
+
toJSON(data?: any) {
|
|
28231
|
+
data = typeof data === 'object' ? data : {};
|
|
28232
|
+
data["resourceId"] = this.resourceId;
|
|
28233
|
+
data["resourceName"] = this.resourceName;
|
|
28234
|
+
data["machineStateText"] = this.machineStateText;
|
|
28235
|
+
data["machineState"] = this.machineState;
|
|
28236
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined as any;
|
|
28237
|
+
data["powerOnUtilization"] = this.powerOnUtilization;
|
|
28238
|
+
return data;
|
|
28239
|
+
}
|
|
28240
|
+
}
|
|
28241
|
+
|
|
28242
|
+
export interface IResourceUtilizationDetailsDto {
|
|
28243
|
+
resourceId: number;
|
|
28244
|
+
resourceName: string;
|
|
28245
|
+
machineStateText?: string | null;
|
|
28246
|
+
machineState?: MachineState | null;
|
|
28247
|
+
startTime?: Date | null;
|
|
28248
|
+
powerOnUtilization?: number | null;
|
|
28249
|
+
}
|
|
28250
|
+
|
|
28251
|
+
export class ListResourceUptimesTodayRequest implements IListResourceUptimesTodayRequest {
|
|
28252
|
+
resourceExternalIds?: string[] | null;
|
|
28253
|
+
utcOffset?: number;
|
|
28254
|
+
|
|
28255
|
+
constructor(data?: IListResourceUptimesTodayRequest) {
|
|
28256
|
+
if (data) {
|
|
28257
|
+
for (var property in data) {
|
|
28258
|
+
if (data.hasOwnProperty(property))
|
|
28259
|
+
(this as any)[property] = (data as any)[property];
|
|
28260
|
+
}
|
|
28261
|
+
}
|
|
28262
|
+
}
|
|
28263
|
+
|
|
28264
|
+
init(_data?: any) {
|
|
28265
|
+
if (_data) {
|
|
28266
|
+
if (Array.isArray(_data["resourceExternalIds"])) {
|
|
28267
|
+
this.resourceExternalIds = [] as any;
|
|
28268
|
+
for (let item of _data["resourceExternalIds"])
|
|
28269
|
+
this.resourceExternalIds!.push(item);
|
|
28270
|
+
}
|
|
28271
|
+
this.utcOffset = _data["utcOffset"];
|
|
28272
|
+
}
|
|
28273
|
+
}
|
|
28274
|
+
|
|
28275
|
+
static fromJS(data: any): ListResourceUptimesTodayRequest {
|
|
28276
|
+
data = typeof data === 'object' ? data : {};
|
|
28277
|
+
let result = new ListResourceUptimesTodayRequest();
|
|
28278
|
+
result.init(data);
|
|
28279
|
+
return result;
|
|
28280
|
+
}
|
|
28281
|
+
|
|
28282
|
+
toJSON(data?: any) {
|
|
28283
|
+
data = typeof data === 'object' ? data : {};
|
|
28284
|
+
if (Array.isArray(this.resourceExternalIds)) {
|
|
28285
|
+
data["resourceExternalIds"] = [];
|
|
28286
|
+
for (let item of this.resourceExternalIds)
|
|
28287
|
+
data["resourceExternalIds"].push(item);
|
|
28288
|
+
}
|
|
28289
|
+
data["utcOffset"] = this.utcOffset;
|
|
28290
|
+
return data;
|
|
28291
|
+
}
|
|
28292
|
+
}
|
|
28293
|
+
|
|
28294
|
+
export interface IListResourceUptimesTodayRequest {
|
|
28295
|
+
resourceExternalIds?: string[] | null;
|
|
28296
|
+
utcOffset?: number;
|
|
28297
|
+
}
|
|
28298
|
+
|
|
27586
28299
|
export class UserAppDto implements IUserAppDto {
|
|
27587
28300
|
key!: string;
|
|
27588
28301
|
name!: string;
|
|
@@ -51453,6 +52166,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
|
|
|
51453
52166
|
attachments?: WorkOrderAttachmentDto[] | null;
|
|
51454
52167
|
startDate?: Date | null;
|
|
51455
52168
|
endDate?: Date | null;
|
|
52169
|
+
deliveryDate?: Date | null;
|
|
51456
52170
|
bomPosition?: string | null;
|
|
51457
52171
|
drawing?: DrawingDto | null;
|
|
51458
52172
|
orderReference?: OrderReferenceDto | null;
|
|
@@ -51498,6 +52212,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
|
|
|
51498
52212
|
}
|
|
51499
52213
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined as any;
|
|
51500
52214
|
this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : undefined as any;
|
|
52215
|
+
this.deliveryDate = _data["deliveryDate"] ? new Date(_data["deliveryDate"].toString()) : undefined as any;
|
|
51501
52216
|
this.bomPosition = _data["bomPosition"];
|
|
51502
52217
|
this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : undefined as any;
|
|
51503
52218
|
this.orderReference = _data["orderReference"] ? OrderReferenceDto.fromJS(_data["orderReference"]) : undefined as any;
|
|
@@ -51539,6 +52254,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
|
|
|
51539
52254
|
}
|
|
51540
52255
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined as any;
|
|
51541
52256
|
data["endDate"] = this.endDate ? this.endDate.toISOString() : undefined as any;
|
|
52257
|
+
data["deliveryDate"] = this.deliveryDate ? this.deliveryDate.toISOString() : undefined as any;
|
|
51542
52258
|
data["bomPosition"] = this.bomPosition;
|
|
51543
52259
|
data["drawing"] = this.drawing ? this.drawing.toJSON() : undefined as any;
|
|
51544
52260
|
data["orderReference"] = this.orderReference ? this.orderReference.toJSON() : undefined as any;
|
|
@@ -51565,6 +52281,7 @@ export interface IProductionOrderDto {
|
|
|
51565
52281
|
attachments?: WorkOrderAttachmentDto[] | null;
|
|
51566
52282
|
startDate?: Date | null;
|
|
51567
52283
|
endDate?: Date | null;
|
|
52284
|
+
deliveryDate?: Date | null;
|
|
51568
52285
|
bomPosition?: string | null;
|
|
51569
52286
|
drawing?: DrawingDto | null;
|
|
51570
52287
|
orderReference?: OrderReferenceDto | null;
|
|
@@ -59405,6 +60122,50 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
59405
60122
|
created: Date;
|
|
59406
60123
|
}
|
|
59407
60124
|
|
|
60125
|
+
export class CompleteMeasurementFormInstanceResult implements ICompleteMeasurementFormInstanceResult {
|
|
60126
|
+
hasWarning?: boolean;
|
|
60127
|
+
warningMessage?: string | null;
|
|
60128
|
+
result?: MeasurementFormInstanceDto | null;
|
|
60129
|
+
|
|
60130
|
+
constructor(data?: ICompleteMeasurementFormInstanceResult) {
|
|
60131
|
+
if (data) {
|
|
60132
|
+
for (var property in data) {
|
|
60133
|
+
if (data.hasOwnProperty(property))
|
|
60134
|
+
(this as any)[property] = (data as any)[property];
|
|
60135
|
+
}
|
|
60136
|
+
}
|
|
60137
|
+
}
|
|
60138
|
+
|
|
60139
|
+
init(_data?: any) {
|
|
60140
|
+
if (_data) {
|
|
60141
|
+
this.hasWarning = _data["hasWarning"];
|
|
60142
|
+
this.warningMessage = _data["warningMessage"];
|
|
60143
|
+
this.result = _data["result"] ? MeasurementFormInstanceDto.fromJS(_data["result"]) : undefined as any;
|
|
60144
|
+
}
|
|
60145
|
+
}
|
|
60146
|
+
|
|
60147
|
+
static fromJS(data: any): CompleteMeasurementFormInstanceResult {
|
|
60148
|
+
data = typeof data === 'object' ? data : {};
|
|
60149
|
+
let result = new CompleteMeasurementFormInstanceResult();
|
|
60150
|
+
result.init(data);
|
|
60151
|
+
return result;
|
|
60152
|
+
}
|
|
60153
|
+
|
|
60154
|
+
toJSON(data?: any) {
|
|
60155
|
+
data = typeof data === 'object' ? data : {};
|
|
60156
|
+
data["hasWarning"] = this.hasWarning;
|
|
60157
|
+
data["warningMessage"] = this.warningMessage;
|
|
60158
|
+
data["result"] = this.result ? this.result.toJSON() : undefined as any;
|
|
60159
|
+
return data;
|
|
60160
|
+
}
|
|
60161
|
+
}
|
|
60162
|
+
|
|
60163
|
+
export interface ICompleteMeasurementFormInstanceResult {
|
|
60164
|
+
hasWarning?: boolean;
|
|
60165
|
+
warningMessage?: string | null;
|
|
60166
|
+
result?: MeasurementFormInstanceDto | null;
|
|
60167
|
+
}
|
|
60168
|
+
|
|
59408
60169
|
export class MeasurementFormInstanceSchemaDto implements IMeasurementFormInstanceSchemaDto {
|
|
59409
60170
|
elements!: MeasurementFormInstanceElementDto[];
|
|
59410
60171
|
isCompleted!: boolean;
|