@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.
@@ -1197,7 +1197,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
1197
1197
  export interface IResourceUtilizationClient {
1198
1198
 
1199
1199
  /**
1200
- * Get machine utilization data. Historic utilizations start from now, whereas the start for current utilization is
1200
+ * Get resource utilization data. Historic utilizations start from now, whereas the start for current utilization is
1201
1201
  calculated based on startTimeToday or utcOffset. An UTC offset is
1202
1202
  obtained either from startTimeToday, utcOffset or the server's local
1203
1203
  time zone. The current utilization is calculated starting from the start of the current date offset from UTC
@@ -1218,7 +1218,7 @@ export interface IResourceUtilizationClient {
1218
1218
 
1219
1219
  getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
1220
1220
 
1221
- listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
1221
+ listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<ResourceUptimesAggregateDto>;
1222
1222
 
1223
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
1224
 
@@ -1239,7 +1239,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
1239
1239
  }
1240
1240
 
1241
1241
  /**
1242
- * Get machine utilization data. Historic utilizations start from now, whereas the start for current utilization is
1242
+ * Get resource utilization data. Historic utilizations start from now, whereas the start for current utilization is
1243
1243
  calculated based on startTimeToday or utcOffset. An UTC offset is
1244
1244
  obtained either from startTimeToday, utcOffset or the server's local
1245
1245
  time zone. The current utilization is calculated starting from the start of the current date offset from UTC
@@ -1478,7 +1478,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
1478
1478
  return Promise.resolve<MachineStatesSummaryDto>(null as any);
1479
1479
  }
1480
1480
 
1481
- listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<MachineUptimesAggregateDto> {
1481
+ listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<ResourceUptimesAggregateDto> {
1482
1482
  let url_ = this.baseUrl + "/resourceutilization/machine-states/uptime-today";
1483
1483
  url_ = url_.replace(/[?&]$/, "");
1484
1484
 
@@ -1500,14 +1500,14 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
1500
1500
  });
1501
1501
  }
1502
1502
 
1503
- protected processListResourceUptimesToday(response: Response): Promise<MachineUptimesAggregateDto> {
1503
+ protected processListResourceUptimesToday(response: Response): Promise<ResourceUptimesAggregateDto> {
1504
1504
  const status = response.status;
1505
1505
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1506
1506
  if (status === 200) {
1507
1507
  return response.text().then((_responseText) => {
1508
1508
  let result200: any = null;
1509
1509
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1510
- result200 = MachineUptimesAggregateDto.fromJS(resultData200);
1510
+ result200 = ResourceUptimesAggregateDto.fromJS(resultData200);
1511
1511
  return result200;
1512
1512
  });
1513
1513
  } else if (status !== 200 && status !== 204) {
@@ -1515,7 +1515,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
1515
1515
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1516
1516
  });
1517
1517
  }
1518
- return Promise.resolve<MachineUptimesAggregateDto>(null as any);
1518
+ return Promise.resolve<ResourceUptimesAggregateDto>(null as any);
1519
1519
  }
1520
1520
 
1521
1521
  listPowerOnUtilizationDatapoints(id: number | null | undefined, externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList> {
@@ -3093,15 +3093,15 @@ export interface IResourcesClient {
3093
3093
 
3094
3094
  deleteResourceGroup(id: string): Promise<void>;
3095
3095
 
3096
- listCurrentResourceStates(assetId: number | null | undefined): Promise<ResourceStateListDto>;
3096
+ listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
3097
3097
 
3098
- listResourceStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<ResourceStateDatapoint[]>;
3098
+ listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
3099
3099
 
3100
- listLastDowntimeResourceStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeResourceStateDto[]>;
3100
+ listLastDowntimeMachineStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
3101
3101
 
3102
- getResourceStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeResourceStateDto>;
3102
+ getMachineStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
3103
3103
 
3104
- getResourceStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<ResourceStatesSummaryDto>;
3104
+ getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
3105
3105
 
3106
3106
  listResourceErpData(): Promise<ResourceErpDataListDto>;
3107
3107
 
@@ -3335,7 +3335,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3335
3335
  return Promise.resolve<void>(null as any);
3336
3336
  }
3337
3337
 
3338
- listCurrentResourceStates(assetId: number | null | undefined): Promise<ResourceStateListDto> {
3338
+ listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
3339
3339
  let url_ = this.baseUrl + "/resources/states/now?";
3340
3340
  if (assetId !== undefined && assetId !== null)
3341
3341
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
@@ -3351,18 +3351,18 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3351
3351
  return this.transformOptions(options_).then(transformedOptions_ => {
3352
3352
  return this.http.fetch(url_, transformedOptions_);
3353
3353
  }).then((_response: Response) => {
3354
- return this.processListCurrentResourceStates(_response);
3354
+ return this.processListCurrentMachineStates(_response);
3355
3355
  });
3356
3356
  }
3357
3357
 
3358
- protected processListCurrentResourceStates(response: Response): Promise<ResourceStateListDto> {
3358
+ protected processListCurrentMachineStates(response: Response): Promise<MachineStateListDto> {
3359
3359
  const status = response.status;
3360
3360
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3361
3361
  if (status === 200) {
3362
3362
  return response.text().then((_responseText) => {
3363
3363
  let result200: any = null;
3364
3364
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3365
- result200 = ResourceStateListDto.fromJS(resultData200);
3365
+ result200 = MachineStateListDto.fromJS(resultData200);
3366
3366
  return result200;
3367
3367
  });
3368
3368
  } else if (status !== 200 && status !== 204) {
@@ -3370,10 +3370,10 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3370
3370
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3371
3371
  });
3372
3372
  }
3373
- return Promise.resolve<ResourceStateListDto>(null as any);
3373
+ return Promise.resolve<MachineStateListDto>(null as any);
3374
3374
  }
3375
3375
 
3376
- listResourceStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<ResourceStateDatapoint[]> {
3376
+ listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
3377
3377
  let url_ = this.baseUrl + "/resources/{id}/states?";
3378
3378
  if (id === undefined || id === null)
3379
3379
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -3394,11 +3394,11 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3394
3394
  return this.transformOptions(options_).then(transformedOptions_ => {
3395
3395
  return this.http.fetch(url_, transformedOptions_);
3396
3396
  }).then((_response: Response) => {
3397
- return this.processListResourceStates(_response);
3397
+ return this.processListMachineStates(_response);
3398
3398
  });
3399
3399
  }
3400
3400
 
3401
- protected processListResourceStates(response: Response): Promise<ResourceStateDatapoint[]> {
3401
+ protected processListMachineStates(response: Response): Promise<MachineStateDatapoint[]> {
3402
3402
  const status = response.status;
3403
3403
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3404
3404
  if (status === 200) {
@@ -3408,7 +3408,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3408
3408
  if (Array.isArray(resultData200)) {
3409
3409
  result200 = [] as any;
3410
3410
  for (let item of resultData200)
3411
- result200!.push(ResourceStateDatapoint.fromJS(item));
3411
+ result200!.push(MachineStateDatapoint.fromJS(item));
3412
3412
  }
3413
3413
  return result200;
3414
3414
  });
@@ -3417,10 +3417,10 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3417
3417
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3418
3418
  });
3419
3419
  }
3420
- return Promise.resolve<ResourceStateDatapoint[]>(null as any);
3420
+ return Promise.resolve<MachineStateDatapoint[]>(null as any);
3421
3421
  }
3422
3422
 
3423
- listLastDowntimeResourceStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeResourceStateDto[]> {
3423
+ listLastDowntimeMachineStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
3424
3424
  let url_ = this.baseUrl + "/resources/{id}/lastdowntimestates?";
3425
3425
  if (id === undefined || id === null)
3426
3426
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -3441,11 +3441,11 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3441
3441
  return this.transformOptions(options_).then(transformedOptions_ => {
3442
3442
  return this.http.fetch(url_, transformedOptions_);
3443
3443
  }).then((_response: Response) => {
3444
- return this.processListLastDowntimeResourceStates(_response);
3444
+ return this.processListLastDowntimeMachineStates(_response);
3445
3445
  });
3446
3446
  }
3447
3447
 
3448
- protected processListLastDowntimeResourceStates(response: Response): Promise<DowntimeResourceStateDto[]> {
3448
+ protected processListLastDowntimeMachineStates(response: Response): Promise<DowntimeMachineStateDto[]> {
3449
3449
  const status = response.status;
3450
3450
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3451
3451
  if (status === 200) {
@@ -3455,7 +3455,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3455
3455
  if (Array.isArray(resultData200)) {
3456
3456
  result200 = [] as any;
3457
3457
  for (let item of resultData200)
3458
- result200!.push(DowntimeResourceStateDto.fromJS(item));
3458
+ result200!.push(DowntimeMachineStateDto.fromJS(item));
3459
3459
  }
3460
3460
  return result200;
3461
3461
  });
@@ -3464,10 +3464,10 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3464
3464
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3465
3465
  });
3466
3466
  }
3467
- return Promise.resolve<DowntimeResourceStateDto[]>(null as any);
3467
+ return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
3468
3468
  }
3469
3469
 
3470
- getResourceStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeResourceStateDto> {
3470
+ getMachineStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
3471
3471
  let url_ = this.baseUrl + "/resources/{id}/statewithdowntimeperiods?";
3472
3472
  if (id === undefined || id === null)
3473
3473
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -3488,18 +3488,18 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3488
3488
  return this.transformOptions(options_).then(transformedOptions_ => {
3489
3489
  return this.http.fetch(url_, transformedOptions_);
3490
3490
  }).then((_response: Response) => {
3491
- return this.processGetResourceStateWithDowntimePeriods(_response);
3491
+ return this.processGetMachineStateWithDowntimePeriods(_response);
3492
3492
  });
3493
3493
  }
3494
3494
 
3495
- protected processGetResourceStateWithDowntimePeriods(response: Response): Promise<DowntimeResourceStateDto> {
3495
+ protected processGetMachineStateWithDowntimePeriods(response: Response): Promise<DowntimeMachineStateDto> {
3496
3496
  const status = response.status;
3497
3497
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3498
3498
  if (status === 200) {
3499
3499
  return response.text().then((_responseText) => {
3500
3500
  let result200: any = null;
3501
3501
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3502
- result200 = DowntimeResourceStateDto.fromJS(resultData200);
3502
+ result200 = DowntimeMachineStateDto.fromJS(resultData200);
3503
3503
  return result200;
3504
3504
  });
3505
3505
  } else if (status !== 200 && status !== 204) {
@@ -3507,10 +3507,10 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3507
3507
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3508
3508
  });
3509
3509
  }
3510
- return Promise.resolve<DowntimeResourceStateDto>(null as any);
3510
+ return Promise.resolve<DowntimeMachineStateDto>(null as any);
3511
3511
  }
3512
3512
 
3513
- getResourceStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<ResourceStatesSummaryDto> {
3513
+ getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
3514
3514
  let url_ = this.baseUrl + "/resources/{id}/states/summary?";
3515
3515
  if (id === undefined || id === null)
3516
3516
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -3531,18 +3531,18 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3531
3531
  return this.transformOptions(options_).then(transformedOptions_ => {
3532
3532
  return this.http.fetch(url_, transformedOptions_);
3533
3533
  }).then((_response: Response) => {
3534
- return this.processGetResourceStatesSummary(_response);
3534
+ return this.processGetMachineStatesSummary(_response);
3535
3535
  });
3536
3536
  }
3537
3537
 
3538
- protected processGetResourceStatesSummary(response: Response): Promise<ResourceStatesSummaryDto> {
3538
+ protected processGetMachineStatesSummary(response: Response): Promise<MachineStatesSummaryDto> {
3539
3539
  const status = response.status;
3540
3540
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3541
3541
  if (status === 200) {
3542
3542
  return response.text().then((_responseText) => {
3543
3543
  let result200: any = null;
3544
3544
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3545
- result200 = ResourceStatesSummaryDto.fromJS(resultData200);
3545
+ result200 = MachineStatesSummaryDto.fromJS(resultData200);
3546
3546
  return result200;
3547
3547
  });
3548
3548
  } else if (status !== 200 && status !== 204) {
@@ -3550,7 +3550,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
3550
3550
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3551
3551
  });
3552
3552
  }
3553
- return Promise.resolve<ResourceStatesSummaryDto>(null as any);
3553
+ return Promise.resolve<MachineStatesSummaryDto>(null as any);
3554
3554
  }
3555
3555
 
3556
3556
  listResourceErpData(): Promise<ResourceErpDataListDto> {
@@ -4065,11 +4065,40 @@ export interface IUtilizationClient {
4065
4065
 
4066
4066
  getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDto>;
4067
4067
 
4068
+ /**
4069
+ * @param utilizationType (optional)
4070
+ * @param startTime (optional)
4071
+ * @param endTime (optional)
4072
+ * @param ianaTimeZone (optional)
4073
+ * @param assetId (optional)
4074
+ * @param assetExternalId (optional)
4075
+ * @deprecated
4076
+ */
4068
4077
  getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
4069
4078
 
4079
+ /**
4080
+ * @param utilizationType (optional)
4081
+ * @param startTime (optional)
4082
+ * @param endTime (optional)
4083
+ * @param ianaTimeZone (optional)
4084
+ * @deprecated
4085
+ */
4070
4086
  getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
4071
4087
 
4088
+ /**
4089
+ * @param utilizationType (optional)
4090
+ * @param startTime (optional)
4091
+ * @param endTime (optional)
4092
+ * @param ianaTimeZone (optional)
4093
+ * @deprecated
4094
+ */
4072
4095
  getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
4096
+
4097
+ getResourceUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<ResourceUtilizationDatapointListDto>;
4098
+
4099
+ getCompanyResourceUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyResourceUtilizationDatapointListDto>;
4100
+
4101
+ getCrossCompanyResourceUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyResourceUtilizationDatapointListDto>;
4073
4102
  }
4074
4103
 
4075
4104
  export class UtilizationClient extends AuthorizedApiBase implements IUtilizationClient {
@@ -4179,6 +4208,15 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
4179
4208
  return Promise.resolve<CrossCompanyUtilizationDto>(null as any);
4180
4209
  }
4181
4210
 
4211
+ /**
4212
+ * @param utilizationType (optional)
4213
+ * @param startTime (optional)
4214
+ * @param endTime (optional)
4215
+ * @param ianaTimeZone (optional)
4216
+ * @param assetId (optional)
4217
+ * @param assetExternalId (optional)
4218
+ * @deprecated
4219
+ */
4182
4220
  getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto> {
4183
4221
  let url_ = this.baseUrl + "/utilization/datapoints?";
4184
4222
  if (utilizationType === null)
@@ -4231,6 +4269,13 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
4231
4269
  return Promise.resolve<MachineUtilizationDatapointListDto>(null as any);
4232
4270
  }
4233
4271
 
4272
+ /**
4273
+ * @param utilizationType (optional)
4274
+ * @param startTime (optional)
4275
+ * @param endTime (optional)
4276
+ * @param ianaTimeZone (optional)
4277
+ * @deprecated
4278
+ */
4234
4279
  getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDatapointListDto> {
4235
4280
  let url_ = this.baseUrl + "/utilization/datapoints/company?";
4236
4281
  if (utilizationType === null)
@@ -4279,6 +4324,13 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
4279
4324
  return Promise.resolve<CompanyUtilizationDatapointListDto>(null as any);
4280
4325
  }
4281
4326
 
4327
+ /**
4328
+ * @param utilizationType (optional)
4329
+ * @param startTime (optional)
4330
+ * @param endTime (optional)
4331
+ * @param ianaTimeZone (optional)
4332
+ * @deprecated
4333
+ */
4282
4334
  getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto> {
4283
4335
  let url_ = this.baseUrl + "/utilization/datapoints/cross-company?";
4284
4336
  if (utilizationType === null)
@@ -4326,6 +4378,154 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
4326
4378
  }
4327
4379
  return Promise.resolve<CrossCompanyUtilizationDatapointListDto>(null as any);
4328
4380
  }
4381
+
4382
+ getResourceUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<ResourceUtilizationDatapointListDto> {
4383
+ let url_ = this.baseUrl + "/utilization/resource-datapoints?";
4384
+ if (utilizationType === null)
4385
+ throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
4386
+ else if (utilizationType !== undefined)
4387
+ url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
4388
+ if (startTime === null)
4389
+ throw new globalThis.Error("The parameter 'startTime' cannot be null.");
4390
+ else if (startTime !== undefined)
4391
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
4392
+ if (endTime !== undefined && endTime !== null)
4393
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
4394
+ if (ianaTimeZone !== undefined && ianaTimeZone !== null)
4395
+ url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
4396
+ if (assetId !== undefined && assetId !== null)
4397
+ url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
4398
+ if (assetExternalId !== undefined && assetExternalId !== null)
4399
+ url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
4400
+ url_ = url_.replace(/[?&]$/, "");
4401
+
4402
+ let options_: RequestInit = {
4403
+ method: "GET",
4404
+ headers: {
4405
+ "Accept": "application/json"
4406
+ }
4407
+ };
4408
+
4409
+ return this.transformOptions(options_).then(transformedOptions_ => {
4410
+ return this.http.fetch(url_, transformedOptions_);
4411
+ }).then((_response: Response) => {
4412
+ return this.processGetResourceUtilizationDatapoints(_response);
4413
+ });
4414
+ }
4415
+
4416
+ protected processGetResourceUtilizationDatapoints(response: Response): Promise<ResourceUtilizationDatapointListDto> {
4417
+ const status = response.status;
4418
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
4419
+ if (status === 200) {
4420
+ return response.text().then((_responseText) => {
4421
+ let result200: any = null;
4422
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4423
+ result200 = ResourceUtilizationDatapointListDto.fromJS(resultData200);
4424
+ return result200;
4425
+ });
4426
+ } else if (status !== 200 && status !== 204) {
4427
+ return response.text().then((_responseText) => {
4428
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4429
+ });
4430
+ }
4431
+ return Promise.resolve<ResourceUtilizationDatapointListDto>(null as any);
4432
+ }
4433
+
4434
+ getCompanyResourceUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyResourceUtilizationDatapointListDto> {
4435
+ let url_ = this.baseUrl + "/utilization/resource-datapoints/company?";
4436
+ if (utilizationType === null)
4437
+ throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
4438
+ else if (utilizationType !== undefined)
4439
+ url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
4440
+ if (startTime === null)
4441
+ throw new globalThis.Error("The parameter 'startTime' cannot be null.");
4442
+ else if (startTime !== undefined)
4443
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
4444
+ if (endTime !== undefined && endTime !== null)
4445
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
4446
+ if (ianaTimeZone !== undefined && ianaTimeZone !== null)
4447
+ url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
4448
+ url_ = url_.replace(/[?&]$/, "");
4449
+
4450
+ let options_: RequestInit = {
4451
+ method: "GET",
4452
+ headers: {
4453
+ "Accept": "application/json"
4454
+ }
4455
+ };
4456
+
4457
+ return this.transformOptions(options_).then(transformedOptions_ => {
4458
+ return this.http.fetch(url_, transformedOptions_);
4459
+ }).then((_response: Response) => {
4460
+ return this.processGetCompanyResourceUtilizationDatapoints(_response);
4461
+ });
4462
+ }
4463
+
4464
+ protected processGetCompanyResourceUtilizationDatapoints(response: Response): Promise<CompanyResourceUtilizationDatapointListDto> {
4465
+ const status = response.status;
4466
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
4467
+ if (status === 200) {
4468
+ return response.text().then((_responseText) => {
4469
+ let result200: any = null;
4470
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4471
+ result200 = CompanyResourceUtilizationDatapointListDto.fromJS(resultData200);
4472
+ return result200;
4473
+ });
4474
+ } else if (status !== 200 && status !== 204) {
4475
+ return response.text().then((_responseText) => {
4476
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4477
+ });
4478
+ }
4479
+ return Promise.resolve<CompanyResourceUtilizationDatapointListDto>(null as any);
4480
+ }
4481
+
4482
+ getCrossCompanyResourceUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyResourceUtilizationDatapointListDto> {
4483
+ let url_ = this.baseUrl + "/utilization/resource-datapoints/cross-company?";
4484
+ if (utilizationType === null)
4485
+ throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
4486
+ else if (utilizationType !== undefined)
4487
+ url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
4488
+ if (startTime === null)
4489
+ throw new globalThis.Error("The parameter 'startTime' cannot be null.");
4490
+ else if (startTime !== undefined)
4491
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
4492
+ if (endTime !== undefined && endTime !== null)
4493
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
4494
+ if (ianaTimeZone !== undefined && ianaTimeZone !== null)
4495
+ url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
4496
+ url_ = url_.replace(/[?&]$/, "");
4497
+
4498
+ let options_: RequestInit = {
4499
+ method: "GET",
4500
+ headers: {
4501
+ "Accept": "application/json"
4502
+ }
4503
+ };
4504
+
4505
+ return this.transformOptions(options_).then(transformedOptions_ => {
4506
+ return this.http.fetch(url_, transformedOptions_);
4507
+ }).then((_response: Response) => {
4508
+ return this.processGetCrossCompanyResourceUtilizationDatapoints(_response);
4509
+ });
4510
+ }
4511
+
4512
+ protected processGetCrossCompanyResourceUtilizationDatapoints(response: Response): Promise<CrossCompanyResourceUtilizationDatapointListDto> {
4513
+ const status = response.status;
4514
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
4515
+ if (status === 200) {
4516
+ return response.text().then((_responseText) => {
4517
+ let result200: any = null;
4518
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4519
+ result200 = CrossCompanyResourceUtilizationDatapointListDto.fromJS(resultData200);
4520
+ return result200;
4521
+ });
4522
+ } else if (status !== 200 && status !== 204) {
4523
+ return response.text().then((_responseText) => {
4524
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4525
+ });
4526
+ }
4527
+ return Promise.resolve<CrossCompanyResourceUtilizationDatapointListDto>(null as any);
4528
+ }
4329
4529
  }
4330
4530
 
4331
4531
  export interface IMrbClient {
@@ -28248,6 +28448,142 @@ export interface IResourceUtilizationDetailsDto {
28248
28448
  powerOnUtilization?: number | null;
28249
28449
  }
28250
28450
 
28451
+ export class ResourceUptimesAggregateDto implements IResourceUptimesAggregateDto {
28452
+ resourceUptimes!: ResourceUptimeDto[];
28453
+ sum!: ResourceUptimeSumDto;
28454
+
28455
+ constructor(data?: IResourceUptimesAggregateDto) {
28456
+ if (data) {
28457
+ for (var property in data) {
28458
+ if (data.hasOwnProperty(property))
28459
+ (this as any)[property] = (data as any)[property];
28460
+ }
28461
+ }
28462
+ if (!data) {
28463
+ this.resourceUptimes = [];
28464
+ this.sum = new ResourceUptimeSumDto();
28465
+ }
28466
+ }
28467
+
28468
+ init(_data?: any) {
28469
+ if (_data) {
28470
+ if (Array.isArray(_data["resourceUptimes"])) {
28471
+ this.resourceUptimes = [] as any;
28472
+ for (let item of _data["resourceUptimes"])
28473
+ this.resourceUptimes!.push(ResourceUptimeDto.fromJS(item));
28474
+ }
28475
+ this.sum = _data["sum"] ? ResourceUptimeSumDto.fromJS(_data["sum"]) : new ResourceUptimeSumDto();
28476
+ }
28477
+ }
28478
+
28479
+ static fromJS(data: any): ResourceUptimesAggregateDto {
28480
+ data = typeof data === 'object' ? data : {};
28481
+ let result = new ResourceUptimesAggregateDto();
28482
+ result.init(data);
28483
+ return result;
28484
+ }
28485
+
28486
+ toJSON(data?: any) {
28487
+ data = typeof data === 'object' ? data : {};
28488
+ if (Array.isArray(this.resourceUptimes)) {
28489
+ data["resourceUptimes"] = [];
28490
+ for (let item of this.resourceUptimes)
28491
+ data["resourceUptimes"].push(item ? item.toJSON() : undefined as any);
28492
+ }
28493
+ data["sum"] = this.sum ? this.sum.toJSON() : undefined as any;
28494
+ return data;
28495
+ }
28496
+ }
28497
+
28498
+ export interface IResourceUptimesAggregateDto {
28499
+ resourceUptimes: ResourceUptimeDto[];
28500
+ sum: ResourceUptimeSumDto;
28501
+ }
28502
+
28503
+ export class ResourceUptimeDto implements IResourceUptimeDto {
28504
+ assetExternalId!: string;
28505
+ percent!: number;
28506
+ numberOfSeconds!: number;
28507
+
28508
+ constructor(data?: IResourceUptimeDto) {
28509
+ if (data) {
28510
+ for (var property in data) {
28511
+ if (data.hasOwnProperty(property))
28512
+ (this as any)[property] = (data as any)[property];
28513
+ }
28514
+ }
28515
+ }
28516
+
28517
+ init(_data?: any) {
28518
+ if (_data) {
28519
+ this.assetExternalId = _data["assetExternalId"];
28520
+ this.percent = _data["percent"];
28521
+ this.numberOfSeconds = _data["numberOfSeconds"];
28522
+ }
28523
+ }
28524
+
28525
+ static fromJS(data: any): ResourceUptimeDto {
28526
+ data = typeof data === 'object' ? data : {};
28527
+ let result = new ResourceUptimeDto();
28528
+ result.init(data);
28529
+ return result;
28530
+ }
28531
+
28532
+ toJSON(data?: any) {
28533
+ data = typeof data === 'object' ? data : {};
28534
+ data["assetExternalId"] = this.assetExternalId;
28535
+ data["percent"] = this.percent;
28536
+ data["numberOfSeconds"] = this.numberOfSeconds;
28537
+ return data;
28538
+ }
28539
+ }
28540
+
28541
+ export interface IResourceUptimeDto {
28542
+ assetExternalId: string;
28543
+ percent: number;
28544
+ numberOfSeconds: number;
28545
+ }
28546
+
28547
+ export class ResourceUptimeSumDto implements IResourceUptimeSumDto {
28548
+ percent!: number;
28549
+ numberOfSeconds!: number;
28550
+
28551
+ constructor(data?: IResourceUptimeSumDto) {
28552
+ if (data) {
28553
+ for (var property in data) {
28554
+ if (data.hasOwnProperty(property))
28555
+ (this as any)[property] = (data as any)[property];
28556
+ }
28557
+ }
28558
+ }
28559
+
28560
+ init(_data?: any) {
28561
+ if (_data) {
28562
+ this.percent = _data["percent"];
28563
+ this.numberOfSeconds = _data["numberOfSeconds"];
28564
+ }
28565
+ }
28566
+
28567
+ static fromJS(data: any): ResourceUptimeSumDto {
28568
+ data = typeof data === 'object' ? data : {};
28569
+ let result = new ResourceUptimeSumDto();
28570
+ result.init(data);
28571
+ return result;
28572
+ }
28573
+
28574
+ toJSON(data?: any) {
28575
+ data = typeof data === 'object' ? data : {};
28576
+ data["percent"] = this.percent;
28577
+ data["numberOfSeconds"] = this.numberOfSeconds;
28578
+ return data;
28579
+ }
28580
+ }
28581
+
28582
+ export interface IResourceUptimeSumDto {
28583
+ percent: number;
28584
+ numberOfSeconds: number;
28585
+ }
28586
+
28251
28587
  export class ListResourceUptimesTodayRequest implements IListResourceUptimesTodayRequest {
28252
28588
  resourceExternalIds?: string[] | null;
28253
28589
  utcOffset?: number;
@@ -30740,10 +31076,10 @@ export interface IUpdateResourceGroup {
30740
31076
  machineExternalIds?: string[] | null;
30741
31077
  }
30742
31078
 
30743
- export class ResourceStateListDto implements IResourceStateListDto {
30744
- resources?: ResourceStateDto[] | null;
31079
+ export class MachineStateListDto implements IMachineStateListDto {
31080
+ machines?: MachineStateDto[] | null;
30745
31081
 
30746
- constructor(data?: IResourceStateListDto) {
31082
+ constructor(data?: IMachineStateListDto) {
30747
31083
  if (data) {
30748
31084
  for (var property in data) {
30749
31085
  if (data.hasOwnProperty(property))
@@ -30754,45 +31090,45 @@ export class ResourceStateListDto implements IResourceStateListDto {
30754
31090
 
30755
31091
  init(_data?: any) {
30756
31092
  if (_data) {
30757
- if (Array.isArray(_data["resources"])) {
30758
- this.resources = [] as any;
30759
- for (let item of _data["resources"])
30760
- this.resources!.push(ResourceStateDto.fromJS(item));
31093
+ if (Array.isArray(_data["machines"])) {
31094
+ this.machines = [] as any;
31095
+ for (let item of _data["machines"])
31096
+ this.machines!.push(MachineStateDto.fromJS(item));
30761
31097
  }
30762
31098
  }
30763
31099
  }
30764
31100
 
30765
- static fromJS(data: any): ResourceStateListDto {
31101
+ static fromJS(data: any): MachineStateListDto {
30766
31102
  data = typeof data === 'object' ? data : {};
30767
- let result = new ResourceStateListDto();
31103
+ let result = new MachineStateListDto();
30768
31104
  result.init(data);
30769
31105
  return result;
30770
31106
  }
30771
31107
 
30772
31108
  toJSON(data?: any) {
30773
31109
  data = typeof data === 'object' ? data : {};
30774
- if (Array.isArray(this.resources)) {
30775
- data["resources"] = [];
30776
- for (let item of this.resources)
30777
- data["resources"].push(item ? item.toJSON() : undefined as any);
31110
+ if (Array.isArray(this.machines)) {
31111
+ data["machines"] = [];
31112
+ for (let item of this.machines)
31113
+ data["machines"].push(item ? item.toJSON() : undefined as any);
30778
31114
  }
30779
31115
  return data;
30780
31116
  }
30781
31117
  }
30782
31118
 
30783
- export interface IResourceStateListDto {
30784
- resources?: ResourceStateDto[] | null;
31119
+ export interface IMachineStateListDto {
31120
+ machines?: MachineStateDto[] | null;
30785
31121
  }
30786
31122
 
30787
- export class ResourceStateDto implements IResourceStateDto {
31123
+ export class MachineStateDto implements IMachineStateDto {
30788
31124
  assetId!: number;
30789
31125
  name!: string;
30790
31126
  description?: string | null;
30791
31127
  state!: string;
30792
- resourceState!: ResourceState;
31128
+ machineState!: MachineState;
30793
31129
  startTime!: Date;
30794
31130
 
30795
- constructor(data?: IResourceStateDto) {
31131
+ constructor(data?: IMachineStateDto) {
30796
31132
  if (data) {
30797
31133
  for (var property in data) {
30798
31134
  if (data.hasOwnProperty(property))
@@ -30807,14 +31143,14 @@ export class ResourceStateDto implements IResourceStateDto {
30807
31143
  this.name = _data["name"];
30808
31144
  this.description = _data["description"];
30809
31145
  this.state = _data["state"];
30810
- this.resourceState = _data["resourceState"];
31146
+ this.machineState = _data["machineState"];
30811
31147
  this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
30812
31148
  }
30813
31149
  }
30814
31150
 
30815
- static fromJS(data: any): ResourceStateDto {
31151
+ static fromJS(data: any): MachineStateDto {
30816
31152
  data = typeof data === 'object' ? data : {};
30817
- let result = new ResourceStateDto();
31153
+ let result = new MachineStateDto();
30818
31154
  result.init(data);
30819
31155
  return result;
30820
31156
  }
@@ -30825,92 +31161,27 @@ export class ResourceStateDto implements IResourceStateDto {
30825
31161
  data["name"] = this.name;
30826
31162
  data["description"] = this.description;
30827
31163
  data["state"] = this.state;
30828
- data["resourceState"] = this.resourceState;
31164
+ data["machineState"] = this.machineState;
30829
31165
  data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined as any;
30830
31166
  return data;
30831
31167
  }
30832
31168
  }
30833
31169
 
30834
- export interface IResourceStateDto {
31170
+ export interface IMachineStateDto {
30835
31171
  assetId: number;
30836
31172
  name: string;
30837
31173
  description?: string | null;
30838
31174
  state: string;
30839
- resourceState: ResourceState;
31175
+ machineState: MachineState;
30840
31176
  startTime: Date;
30841
31177
  }
30842
31178
 
30843
- export type ResourceState = "InCycle" | "MasterCam" | "MdiCycle" | "CamCycle" | "Idle" | "OptionalStop" | "ProgramStop" | "M0" | "AtcStopped" | "FeedHold" | "MdiMode" | "ManualMode" | "EStop" | "Alarm" | "PowerOff";
30844
-
30845
- export class ResourceStateDatapoint implements IResourceStateDatapoint {
30846
- resourceStateText!: string;
30847
- resourceState!: ResourceState;
30848
- timestamp!: number;
30849
- isDowntime!: boolean;
30850
- downtimePeriodReasons!: DowntimePeriodReasonDto[];
30851
-
30852
- constructor(data?: IResourceStateDatapoint) {
30853
- if (data) {
30854
- for (var property in data) {
30855
- if (data.hasOwnProperty(property))
30856
- (this as any)[property] = (data as any)[property];
30857
- }
30858
- }
30859
- if (!data) {
30860
- this.downtimePeriodReasons = [];
30861
- }
30862
- }
30863
-
30864
- init(_data?: any) {
30865
- if (_data) {
30866
- this.resourceStateText = _data["resourceStateText"];
30867
- this.resourceState = _data["resourceState"];
30868
- this.timestamp = _data["timestamp"];
30869
- this.isDowntime = _data["isDowntime"];
30870
- if (Array.isArray(_data["downtimePeriodReasons"])) {
30871
- this.downtimePeriodReasons = [] as any;
30872
- for (let item of _data["downtimePeriodReasons"])
30873
- this.downtimePeriodReasons!.push(DowntimePeriodReasonDto.fromJS(item));
30874
- }
30875
- }
30876
- }
30877
-
30878
- static fromJS(data: any): ResourceStateDatapoint {
30879
- data = typeof data === 'object' ? data : {};
30880
- let result = new ResourceStateDatapoint();
30881
- result.init(data);
30882
- return result;
30883
- }
30884
-
30885
- toJSON(data?: any) {
30886
- data = typeof data === 'object' ? data : {};
30887
- data["resourceStateText"] = this.resourceStateText;
30888
- data["resourceState"] = this.resourceState;
30889
- data["timestamp"] = this.timestamp;
30890
- data["isDowntime"] = this.isDowntime;
30891
- if (Array.isArray(this.downtimePeriodReasons)) {
30892
- data["downtimePeriodReasons"] = [];
30893
- for (let item of this.downtimePeriodReasons)
30894
- data["downtimePeriodReasons"].push(item ? item.toJSON() : undefined as any);
30895
- }
30896
- return data;
30897
- }
30898
- }
30899
-
30900
- export interface IResourceStateDatapoint {
30901
- resourceStateText: string;
30902
- resourceState: ResourceState;
30903
- timestamp: number;
30904
- isDowntime: boolean;
30905
- downtimePeriodReasons: DowntimePeriodReasonDto[];
30906
- }
30907
-
30908
- export class DowntimeResourceStateDto implements IDowntimeResourceStateDto {
30909
- datapoint!: ResourceStateDatapoint;
31179
+ export class DowntimeMachineStateDto implements IDowntimeMachineStateDto {
31180
+ datapoint!: MachineStateDatapoint;
30910
31181
  startTime!: Date;
30911
31182
  endTime!: Date;
30912
31183
 
30913
- constructor(data?: IDowntimeResourceStateDto) {
31184
+ constructor(data?: IDowntimeMachineStateDto) {
30914
31185
  if (data) {
30915
31186
  for (var property in data) {
30916
31187
  if (data.hasOwnProperty(property))
@@ -30918,21 +31189,21 @@ export class DowntimeResourceStateDto implements IDowntimeResourceStateDto {
30918
31189
  }
30919
31190
  }
30920
31191
  if (!data) {
30921
- this.datapoint = new ResourceStateDatapoint();
31192
+ this.datapoint = new MachineStateDatapoint();
30922
31193
  }
30923
31194
  }
30924
31195
 
30925
31196
  init(_data?: any) {
30926
31197
  if (_data) {
30927
- this.datapoint = _data["datapoint"] ? ResourceStateDatapoint.fromJS(_data["datapoint"]) : new ResourceStateDatapoint();
31198
+ this.datapoint = _data["datapoint"] ? MachineStateDatapoint.fromJS(_data["datapoint"]) : new MachineStateDatapoint();
30928
31199
  this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
30929
31200
  this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined as any;
30930
31201
  }
30931
31202
  }
30932
31203
 
30933
- static fromJS(data: any): DowntimeResourceStateDto {
31204
+ static fromJS(data: any): DowntimeMachineStateDto {
30934
31205
  data = typeof data === 'object' ? data : {};
30935
- let result = new DowntimeResourceStateDto();
31206
+ let result = new DowntimeMachineStateDto();
30936
31207
  result.init(data);
30937
31208
  return result;
30938
31209
  }
@@ -30946,103 +31217,12 @@ export class DowntimeResourceStateDto implements IDowntimeResourceStateDto {
30946
31217
  }
30947
31218
  }
30948
31219
 
30949
- export interface IDowntimeResourceStateDto {
30950
- datapoint: ResourceStateDatapoint;
31220
+ export interface IDowntimeMachineStateDto {
31221
+ datapoint: MachineStateDatapoint;
30951
31222
  startTime: Date;
30952
31223
  endTime: Date;
30953
31224
  }
30954
31225
 
30955
- export class ResourceStatesSummaryDto implements IResourceStatesSummaryDto {
30956
- states!: ApplicationResourceStatesStateDto[];
30957
-
30958
- constructor(data?: IResourceStatesSummaryDto) {
30959
- if (data) {
30960
- for (var property in data) {
30961
- if (data.hasOwnProperty(property))
30962
- (this as any)[property] = (data as any)[property];
30963
- }
30964
- }
30965
- if (!data) {
30966
- this.states = [];
30967
- }
30968
- }
30969
-
30970
- init(_data?: any) {
30971
- if (_data) {
30972
- if (Array.isArray(_data["states"])) {
30973
- this.states = [] as any;
30974
- for (let item of _data["states"])
30975
- this.states!.push(ApplicationResourceStatesStateDto.fromJS(item));
30976
- }
30977
- }
30978
- }
30979
-
30980
- static fromJS(data: any): ResourceStatesSummaryDto {
30981
- data = typeof data === 'object' ? data : {};
30982
- let result = new ResourceStatesSummaryDto();
30983
- result.init(data);
30984
- return result;
30985
- }
30986
-
30987
- toJSON(data?: any) {
30988
- data = typeof data === 'object' ? data : {};
30989
- if (Array.isArray(this.states)) {
30990
- data["states"] = [];
30991
- for (let item of this.states)
30992
- data["states"].push(item ? item.toJSON() : undefined as any);
30993
- }
30994
- return data;
30995
- }
30996
- }
30997
-
30998
- export interface IResourceStatesSummaryDto {
30999
- states: ApplicationResourceStatesStateDto[];
31000
- }
31001
-
31002
- export class ApplicationResourceStatesStateDto implements IApplicationResourceStatesStateDto {
31003
- state!: string;
31004
- resourceState!: ResourceState;
31005
- seconds!: number;
31006
-
31007
- constructor(data?: IApplicationResourceStatesStateDto) {
31008
- if (data) {
31009
- for (var property in data) {
31010
- if (data.hasOwnProperty(property))
31011
- (this as any)[property] = (data as any)[property];
31012
- }
31013
- }
31014
- }
31015
-
31016
- init(_data?: any) {
31017
- if (_data) {
31018
- this.state = _data["state"];
31019
- this.resourceState = _data["resourceState"];
31020
- this.seconds = _data["seconds"];
31021
- }
31022
- }
31023
-
31024
- static fromJS(data: any): ApplicationResourceStatesStateDto {
31025
- data = typeof data === 'object' ? data : {};
31026
- let result = new ApplicationResourceStatesStateDto();
31027
- result.init(data);
31028
- return result;
31029
- }
31030
-
31031
- toJSON(data?: any) {
31032
- data = typeof data === 'object' ? data : {};
31033
- data["state"] = this.state;
31034
- data["resourceState"] = this.resourceState;
31035
- data["seconds"] = this.seconds;
31036
- return data;
31037
- }
31038
- }
31039
-
31040
- export interface IApplicationResourceStatesStateDto {
31041
- state: string;
31042
- resourceState: ResourceState;
31043
- seconds: number;
31044
- }
31045
-
31046
31226
  export class ResourceErpDataListDto implements IResourceErpDataListDto {
31047
31227
  resources!: SingleResourceErpDataListDto[];
31048
31228
 
@@ -33179,6 +33359,231 @@ export interface INamedCompanyUtilizationDatapointListDto extends ICompanyUtiliz
33179
33359
  companyName: string;
33180
33360
  }
33181
33361
 
33362
+ export class ResourceUtilizationDatapointListDto extends UtilizationDatapointListDto implements IResourceUtilizationDatapointListDto {
33363
+ externalId!: string;
33364
+ id!: number;
33365
+ name!: string;
33366
+ description?: string | null;
33367
+
33368
+ constructor(data?: IResourceUtilizationDatapointListDto) {
33369
+ super(data);
33370
+ }
33371
+
33372
+ override init(_data?: any) {
33373
+ super.init(_data);
33374
+ if (_data) {
33375
+ this.externalId = _data["externalId"];
33376
+ this.id = _data["id"];
33377
+ this.name = _data["name"];
33378
+ this.description = _data["description"];
33379
+ }
33380
+ }
33381
+
33382
+ static override fromJS(data: any): ResourceUtilizationDatapointListDto {
33383
+ data = typeof data === 'object' ? data : {};
33384
+ let result = new ResourceUtilizationDatapointListDto();
33385
+ result.init(data);
33386
+ return result;
33387
+ }
33388
+
33389
+ override toJSON(data?: any) {
33390
+ data = typeof data === 'object' ? data : {};
33391
+ data["externalId"] = this.externalId;
33392
+ data["id"] = this.id;
33393
+ data["name"] = this.name;
33394
+ data["description"] = this.description;
33395
+ super.toJSON(data);
33396
+ return data;
33397
+ }
33398
+ }
33399
+
33400
+ export interface IResourceUtilizationDatapointListDto extends IUtilizationDatapointListDto {
33401
+ externalId: string;
33402
+ id: number;
33403
+ name: string;
33404
+ description?: string | null;
33405
+ }
33406
+
33407
+ export class CompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto implements ICompanyResourceUtilizationDatapointListDto {
33408
+ groups?: ResourceGroupUtilizationDatapointListDto[];
33409
+ ungroupedResources?: ResourceUtilizationDatapointListDto[];
33410
+
33411
+ constructor(data?: ICompanyResourceUtilizationDatapointListDto) {
33412
+ super(data);
33413
+ }
33414
+
33415
+ override init(_data?: any) {
33416
+ super.init(_data);
33417
+ if (_data) {
33418
+ if (Array.isArray(_data["groups"])) {
33419
+ this.groups = [] as any;
33420
+ for (let item of _data["groups"])
33421
+ this.groups!.push(ResourceGroupUtilizationDatapointListDto.fromJS(item));
33422
+ }
33423
+ if (Array.isArray(_data["ungroupedResources"])) {
33424
+ this.ungroupedResources = [] as any;
33425
+ for (let item of _data["ungroupedResources"])
33426
+ this.ungroupedResources!.push(ResourceUtilizationDatapointListDto.fromJS(item));
33427
+ }
33428
+ }
33429
+ }
33430
+
33431
+ static override fromJS(data: any): CompanyResourceUtilizationDatapointListDto {
33432
+ data = typeof data === 'object' ? data : {};
33433
+ let result = new CompanyResourceUtilizationDatapointListDto();
33434
+ result.init(data);
33435
+ return result;
33436
+ }
33437
+
33438
+ override toJSON(data?: any) {
33439
+ data = typeof data === 'object' ? data : {};
33440
+ if (Array.isArray(this.groups)) {
33441
+ data["groups"] = [];
33442
+ for (let item of this.groups)
33443
+ data["groups"].push(item ? item.toJSON() : undefined as any);
33444
+ }
33445
+ if (Array.isArray(this.ungroupedResources)) {
33446
+ data["ungroupedResources"] = [];
33447
+ for (let item of this.ungroupedResources)
33448
+ data["ungroupedResources"].push(item ? item.toJSON() : undefined as any);
33449
+ }
33450
+ super.toJSON(data);
33451
+ return data;
33452
+ }
33453
+ }
33454
+
33455
+ export interface ICompanyResourceUtilizationDatapointListDto extends IUtilizationDatapointListDto {
33456
+ groups?: ResourceGroupUtilizationDatapointListDto[];
33457
+ ungroupedResources?: ResourceUtilizationDatapointListDto[];
33458
+ }
33459
+
33460
+ export class ResourceGroupUtilizationDatapointListDto extends UtilizationDatapointListDto implements IResourceGroupUtilizationDatapointListDto {
33461
+ groupId!: string;
33462
+ groupName!: string;
33463
+ resources?: ResourceUtilizationDatapointListDto[];
33464
+
33465
+ constructor(data?: IResourceGroupUtilizationDatapointListDto) {
33466
+ super(data);
33467
+ }
33468
+
33469
+ override init(_data?: any) {
33470
+ super.init(_data);
33471
+ if (_data) {
33472
+ this.groupId = _data["groupId"];
33473
+ this.groupName = _data["groupName"];
33474
+ if (Array.isArray(_data["resources"])) {
33475
+ this.resources = [] as any;
33476
+ for (let item of _data["resources"])
33477
+ this.resources!.push(ResourceUtilizationDatapointListDto.fromJS(item));
33478
+ }
33479
+ }
33480
+ }
33481
+
33482
+ static override fromJS(data: any): ResourceGroupUtilizationDatapointListDto {
33483
+ data = typeof data === 'object' ? data : {};
33484
+ let result = new ResourceGroupUtilizationDatapointListDto();
33485
+ result.init(data);
33486
+ return result;
33487
+ }
33488
+
33489
+ override toJSON(data?: any) {
33490
+ data = typeof data === 'object' ? data : {};
33491
+ data["groupId"] = this.groupId;
33492
+ data["groupName"] = this.groupName;
33493
+ if (Array.isArray(this.resources)) {
33494
+ data["resources"] = [];
33495
+ for (let item of this.resources)
33496
+ data["resources"].push(item ? item.toJSON() : undefined as any);
33497
+ }
33498
+ super.toJSON(data);
33499
+ return data;
33500
+ }
33501
+ }
33502
+
33503
+ export interface IResourceGroupUtilizationDatapointListDto extends IUtilizationDatapointListDto {
33504
+ groupId: string;
33505
+ groupName: string;
33506
+ resources?: ResourceUtilizationDatapointListDto[];
33507
+ }
33508
+
33509
+ export class CrossCompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto implements ICrossCompanyResourceUtilizationDatapointListDto {
33510
+ companies?: NamedCompanyResourceUtilizationDatapointListDto[];
33511
+
33512
+ constructor(data?: ICrossCompanyResourceUtilizationDatapointListDto) {
33513
+ super(data);
33514
+ }
33515
+
33516
+ override init(_data?: any) {
33517
+ super.init(_data);
33518
+ if (_data) {
33519
+ if (Array.isArray(_data["companies"])) {
33520
+ this.companies = [] as any;
33521
+ for (let item of _data["companies"])
33522
+ this.companies!.push(NamedCompanyResourceUtilizationDatapointListDto.fromJS(item));
33523
+ }
33524
+ }
33525
+ }
33526
+
33527
+ static override fromJS(data: any): CrossCompanyResourceUtilizationDatapointListDto {
33528
+ data = typeof data === 'object' ? data : {};
33529
+ let result = new CrossCompanyResourceUtilizationDatapointListDto();
33530
+ result.init(data);
33531
+ return result;
33532
+ }
33533
+
33534
+ override toJSON(data?: any) {
33535
+ data = typeof data === 'object' ? data : {};
33536
+ if (Array.isArray(this.companies)) {
33537
+ data["companies"] = [];
33538
+ for (let item of this.companies)
33539
+ data["companies"].push(item ? item.toJSON() : undefined as any);
33540
+ }
33541
+ super.toJSON(data);
33542
+ return data;
33543
+ }
33544
+ }
33545
+
33546
+ export interface ICrossCompanyResourceUtilizationDatapointListDto extends IUtilizationDatapointListDto {
33547
+ companies?: NamedCompanyResourceUtilizationDatapointListDto[];
33548
+ }
33549
+
33550
+ export class NamedCompanyResourceUtilizationDatapointListDto extends CompanyResourceUtilizationDatapointListDto implements INamedCompanyResourceUtilizationDatapointListDto {
33551
+ companyId!: string;
33552
+ companyName!: string;
33553
+
33554
+ constructor(data?: INamedCompanyResourceUtilizationDatapointListDto) {
33555
+ super(data);
33556
+ }
33557
+
33558
+ override init(_data?: any) {
33559
+ super.init(_data);
33560
+ if (_data) {
33561
+ this.companyId = _data["companyId"];
33562
+ this.companyName = _data["companyName"];
33563
+ }
33564
+ }
33565
+
33566
+ static override fromJS(data: any): NamedCompanyResourceUtilizationDatapointListDto {
33567
+ data = typeof data === 'object' ? data : {};
33568
+ let result = new NamedCompanyResourceUtilizationDatapointListDto();
33569
+ result.init(data);
33570
+ return result;
33571
+ }
33572
+
33573
+ override toJSON(data?: any) {
33574
+ data = typeof data === 'object' ? data : {};
33575
+ data["companyId"] = this.companyId;
33576
+ data["companyName"] = this.companyName;
33577
+ super.toJSON(data);
33578
+ return data;
33579
+ }
33580
+ }
33581
+
33582
+ export interface INamedCompanyResourceUtilizationDatapointListDto extends ICompanyResourceUtilizationDatapointListDto {
33583
+ companyId: string;
33584
+ companyName: string;
33585
+ }
33586
+
33182
33587
  export class MrbInstanceDto implements IMrbInstanceDto {
33183
33588
  id!: string;
33184
33589
  title?: string | null;
@@ -40146,153 +40551,6 @@ export interface IUpdateMachineGroup {
40146
40551
  machineExternalIds?: string[] | null;
40147
40552
  }
40148
40553
 
40149
- export class MachineStateListDto implements IMachineStateListDto {
40150
- machines?: MachineStateDto[] | null;
40151
-
40152
- constructor(data?: IMachineStateListDto) {
40153
- if (data) {
40154
- for (var property in data) {
40155
- if (data.hasOwnProperty(property))
40156
- (this as any)[property] = (data as any)[property];
40157
- }
40158
- }
40159
- }
40160
-
40161
- init(_data?: any) {
40162
- if (_data) {
40163
- if (Array.isArray(_data["machines"])) {
40164
- this.machines = [] as any;
40165
- for (let item of _data["machines"])
40166
- this.machines!.push(MachineStateDto.fromJS(item));
40167
- }
40168
- }
40169
- }
40170
-
40171
- static fromJS(data: any): MachineStateListDto {
40172
- data = typeof data === 'object' ? data : {};
40173
- let result = new MachineStateListDto();
40174
- result.init(data);
40175
- return result;
40176
- }
40177
-
40178
- toJSON(data?: any) {
40179
- data = typeof data === 'object' ? data : {};
40180
- if (Array.isArray(this.machines)) {
40181
- data["machines"] = [];
40182
- for (let item of this.machines)
40183
- data["machines"].push(item ? item.toJSON() : undefined as any);
40184
- }
40185
- return data;
40186
- }
40187
- }
40188
-
40189
- export interface IMachineStateListDto {
40190
- machines?: MachineStateDto[] | null;
40191
- }
40192
-
40193
- export class MachineStateDto implements IMachineStateDto {
40194
- assetId!: number;
40195
- name!: string;
40196
- description?: string | null;
40197
- state!: string;
40198
- machineState!: MachineState;
40199
- startTime!: Date;
40200
-
40201
- constructor(data?: IMachineStateDto) {
40202
- if (data) {
40203
- for (var property in data) {
40204
- if (data.hasOwnProperty(property))
40205
- (this as any)[property] = (data as any)[property];
40206
- }
40207
- }
40208
- }
40209
-
40210
- init(_data?: any) {
40211
- if (_data) {
40212
- this.assetId = _data["assetId"];
40213
- this.name = _data["name"];
40214
- this.description = _data["description"];
40215
- this.state = _data["state"];
40216
- this.machineState = _data["machineState"];
40217
- this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
40218
- }
40219
- }
40220
-
40221
- static fromJS(data: any): MachineStateDto {
40222
- data = typeof data === 'object' ? data : {};
40223
- let result = new MachineStateDto();
40224
- result.init(data);
40225
- return result;
40226
- }
40227
-
40228
- toJSON(data?: any) {
40229
- data = typeof data === 'object' ? data : {};
40230
- data["assetId"] = this.assetId;
40231
- data["name"] = this.name;
40232
- data["description"] = this.description;
40233
- data["state"] = this.state;
40234
- data["machineState"] = this.machineState;
40235
- data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined as any;
40236
- return data;
40237
- }
40238
- }
40239
-
40240
- export interface IMachineStateDto {
40241
- assetId: number;
40242
- name: string;
40243
- description?: string | null;
40244
- state: string;
40245
- machineState: MachineState;
40246
- startTime: Date;
40247
- }
40248
-
40249
- export class DowntimeMachineStateDto implements IDowntimeMachineStateDto {
40250
- datapoint!: MachineStateDatapoint;
40251
- startTime!: Date;
40252
- endTime!: Date;
40253
-
40254
- constructor(data?: IDowntimeMachineStateDto) {
40255
- if (data) {
40256
- for (var property in data) {
40257
- if (data.hasOwnProperty(property))
40258
- (this as any)[property] = (data as any)[property];
40259
- }
40260
- }
40261
- if (!data) {
40262
- this.datapoint = new MachineStateDatapoint();
40263
- }
40264
- }
40265
-
40266
- init(_data?: any) {
40267
- if (_data) {
40268
- this.datapoint = _data["datapoint"] ? MachineStateDatapoint.fromJS(_data["datapoint"]) : new MachineStateDatapoint();
40269
- this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
40270
- this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined as any;
40271
- }
40272
- }
40273
-
40274
- static fromJS(data: any): DowntimeMachineStateDto {
40275
- data = typeof data === 'object' ? data : {};
40276
- let result = new DowntimeMachineStateDto();
40277
- result.init(data);
40278
- return result;
40279
- }
40280
-
40281
- toJSON(data?: any) {
40282
- data = typeof data === 'object' ? data : {};
40283
- data["datapoint"] = this.datapoint ? this.datapoint.toJSON() : undefined as any;
40284
- data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined as any;
40285
- data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined as any;
40286
- return data;
40287
- }
40288
- }
40289
-
40290
- export interface IDowntimeMachineStateDto {
40291
- datapoint: MachineStateDatapoint;
40292
- startTime: Date;
40293
- endTime: Date;
40294
- }
40295
-
40296
40554
  export class MachineErpDataListDto implements IMachineErpDataListDto {
40297
40555
  machines!: SingleMachineErpDataListDto[];
40298
40556
 
@@ -52166,6 +52424,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
52166
52424
  attachments?: WorkOrderAttachmentDto[] | null;
52167
52425
  startDate?: Date | null;
52168
52426
  endDate?: Date | null;
52427
+ deliveryDate?: Date | null;
52169
52428
  bomPosition?: string | null;
52170
52429
  drawing?: DrawingDto | null;
52171
52430
  orderReference?: OrderReferenceDto | null;
@@ -52211,6 +52470,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
52211
52470
  }
52212
52471
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined as any;
52213
52472
  this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : undefined as any;
52473
+ this.deliveryDate = _data["deliveryDate"] ? new Date(_data["deliveryDate"].toString()) : undefined as any;
52214
52474
  this.bomPosition = _data["bomPosition"];
52215
52475
  this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : undefined as any;
52216
52476
  this.orderReference = _data["orderReference"] ? OrderReferenceDto.fromJS(_data["orderReference"]) : undefined as any;
@@ -52252,6 +52512,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
52252
52512
  }
52253
52513
  data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined as any;
52254
52514
  data["endDate"] = this.endDate ? this.endDate.toISOString() : undefined as any;
52515
+ data["deliveryDate"] = this.deliveryDate ? this.deliveryDate.toISOString() : undefined as any;
52255
52516
  data["bomPosition"] = this.bomPosition;
52256
52517
  data["drawing"] = this.drawing ? this.drawing.toJSON() : undefined as any;
52257
52518
  data["orderReference"] = this.orderReference ? this.orderReference.toJSON() : undefined as any;
@@ -52278,6 +52539,7 @@ export interface IProductionOrderDto {
52278
52539
  attachments?: WorkOrderAttachmentDto[] | null;
52279
52540
  startDate?: Date | null;
52280
52541
  endDate?: Date | null;
52542
+ deliveryDate?: Date | null;
52281
52543
  bomPosition?: string | null;
52282
52544
  drawing?: DrawingDto | null;
52283
52545
  orderReference?: OrderReferenceDto | null;
@@ -60749,6 +61011,7 @@ export interface IValidationRuleDto {
60749
61011
  export class SaveValueResponseDto implements ISaveValueResponseDto {
60750
61012
  elementCompleted!: boolean;
60751
61013
  warning?: string | null;
61014
+ informationText?: string | null;
60752
61015
  isOutsideTolerances!: boolean;
60753
61016
  isCloseToTolerances!: boolean;
60754
61017
  tools!: MeasurementFormToolValueDto[];
@@ -60769,6 +61032,7 @@ export class SaveValueResponseDto implements ISaveValueResponseDto {
60769
61032
  if (_data) {
60770
61033
  this.elementCompleted = _data["elementCompleted"];
60771
61034
  this.warning = _data["warning"];
61035
+ this.informationText = _data["informationText"];
60772
61036
  this.isOutsideTolerances = _data["isOutsideTolerances"];
60773
61037
  this.isCloseToTolerances = _data["isCloseToTolerances"];
60774
61038
  if (Array.isArray(_data["tools"])) {
@@ -60790,6 +61054,7 @@ export class SaveValueResponseDto implements ISaveValueResponseDto {
60790
61054
  data = typeof data === 'object' ? data : {};
60791
61055
  data["elementCompleted"] = this.elementCompleted;
60792
61056
  data["warning"] = this.warning;
61057
+ data["informationText"] = this.informationText;
60793
61058
  data["isOutsideTolerances"] = this.isOutsideTolerances;
60794
61059
  data["isCloseToTolerances"] = this.isCloseToTolerances;
60795
61060
  if (Array.isArray(this.tools)) {
@@ -60804,6 +61069,7 @@ export class SaveValueResponseDto implements ISaveValueResponseDto {
60804
61069
  export interface ISaveValueResponseDto {
60805
61070
  elementCompleted: boolean;
60806
61071
  warning?: string | null;
61072
+ informationText?: string | null;
60807
61073
  isOutsideTolerances: boolean;
60808
61074
  isCloseToTolerances: boolean;
60809
61075
  tools: MeasurementFormToolValueDto[];