@ignos/api-client 20261109.355.1-alpha → 20261109.356.1-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 +49 -89
- package/lib/ignosportal-api.js +17 -42
- package/package.json +1 -1
- package/src/ignosportal-api.ts +53 -109
package/src/ignosportal-api.ts
CHANGED
|
@@ -1461,13 +1461,12 @@ export interface IMachineUtilizationClient {
|
|
|
1461
1461
|
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
1462
1462
|
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
1463
1463
|
client and server
|
|
1464
|
-
* @param
|
|
1464
|
+
* @param assetExternalId (optional)
|
|
1465
1465
|
* @param favorites (optional)
|
|
1466
1466
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1467
1467
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1468
|
-
* @param assetExternalId (optional)
|
|
1469
1468
|
*/
|
|
1470
|
-
getMachineUtilizations(
|
|
1469
|
+
getMachineUtilizations(assetExternalId: string | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto>;
|
|
1471
1470
|
|
|
1472
1471
|
getMachineUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto>;
|
|
1473
1472
|
|
|
@@ -1486,7 +1485,7 @@ export interface IMachineUtilizationClient {
|
|
|
1486
1485
|
|
|
1487
1486
|
listMachineUptimesToday(request: ListMachineUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
|
|
1488
1487
|
|
|
1489
|
-
listPowerOnUtilizationDatapoints(
|
|
1488
|
+
listPowerOnUtilizationDatapoints(externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList>;
|
|
1490
1489
|
|
|
1491
1490
|
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
1492
1491
|
|
|
@@ -1510,16 +1509,15 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1510
1509
|
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
1511
1510
|
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
1512
1511
|
client and server
|
|
1513
|
-
* @param
|
|
1512
|
+
* @param assetExternalId (optional)
|
|
1514
1513
|
* @param favorites (optional)
|
|
1515
1514
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1516
1515
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1517
|
-
* @param assetExternalId (optional)
|
|
1518
1516
|
*/
|
|
1519
|
-
getMachineUtilizations(
|
|
1517
|
+
getMachineUtilizations(assetExternalId: string | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto> {
|
|
1520
1518
|
let url_ = this.baseUrl + "/machineutilization?";
|
|
1521
|
-
if (
|
|
1522
|
-
url_ += "
|
|
1519
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
1520
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
1523
1521
|
if (favorites === null)
|
|
1524
1522
|
throw new globalThis.Error("The parameter 'favorites' cannot be null.");
|
|
1525
1523
|
else if (favorites !== undefined)
|
|
@@ -1528,8 +1526,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1528
1526
|
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
1529
1527
|
if (utcOffset !== undefined && utcOffset !== null)
|
|
1530
1528
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
1531
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
1532
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
1533
1529
|
url_ = url_.replace(/[?&]$/, "");
|
|
1534
1530
|
|
|
1535
1531
|
let options_: RequestInit = {
|
|
@@ -1823,10 +1819,8 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1823
1819
|
return Promise.resolve<MachineUptimesAggregateDto>(null as any);
|
|
1824
1820
|
}
|
|
1825
1821
|
|
|
1826
|
-
listPowerOnUtilizationDatapoints(
|
|
1822
|
+
listPowerOnUtilizationDatapoints(externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList> {
|
|
1827
1823
|
let url_ = this.baseUrl + "/machineutilization/power-on/datapoints?";
|
|
1828
|
-
if (id !== undefined && id !== null)
|
|
1829
|
-
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
1830
1824
|
if (externalId !== undefined && externalId !== null)
|
|
1831
1825
|
url_ += "externalId=" + encodeURIComponent("" + externalId) + "&";
|
|
1832
1826
|
if (nDays !== undefined && nDays !== null)
|
|
@@ -1959,13 +1953,12 @@ export interface IResourceUtilizationClient {
|
|
|
1959
1953
|
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
1960
1954
|
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
1961
1955
|
client and server
|
|
1962
|
-
* @param
|
|
1956
|
+
* @param assetExternalId (optional)
|
|
1963
1957
|
* @param favorites (optional)
|
|
1964
1958
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1965
1959
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1966
|
-
* @param assetExternalId (optional)
|
|
1967
1960
|
*/
|
|
1968
|
-
getResourceUtilizations(
|
|
1961
|
+
getResourceUtilizations(assetExternalId: string | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto>;
|
|
1969
1962
|
|
|
1970
1963
|
getResourceUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto>;
|
|
1971
1964
|
|
|
@@ -1977,7 +1970,7 @@ export interface IResourceUtilizationClient {
|
|
|
1977
1970
|
|
|
1978
1971
|
listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<ResourceUptimesAggregateDto>;
|
|
1979
1972
|
|
|
1980
|
-
listPowerOnUtilizationDatapoints(
|
|
1973
|
+
listPowerOnUtilizationDatapoints(externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList>;
|
|
1981
1974
|
|
|
1982
1975
|
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
1983
1976
|
|
|
@@ -2001,16 +1994,15 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2001
1994
|
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
2002
1995
|
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
2003
1996
|
client and server
|
|
2004
|
-
* @param
|
|
1997
|
+
* @param assetExternalId (optional)
|
|
2005
1998
|
* @param favorites (optional)
|
|
2006
1999
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
2007
2000
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
2008
|
-
* @param assetExternalId (optional)
|
|
2009
2001
|
*/
|
|
2010
|
-
getResourceUtilizations(
|
|
2002
|
+
getResourceUtilizations(assetExternalId: string | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto> {
|
|
2011
2003
|
let url_ = this.baseUrl + "/resourceutilization?";
|
|
2012
|
-
if (
|
|
2013
|
-
url_ += "
|
|
2004
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
2005
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
2014
2006
|
if (favorites === null)
|
|
2015
2007
|
throw new globalThis.Error("The parameter 'favorites' cannot be null.");
|
|
2016
2008
|
else if (favorites !== undefined)
|
|
@@ -2019,8 +2011,6 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2019
2011
|
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
2020
2012
|
if (utcOffset !== undefined && utcOffset !== null)
|
|
2021
2013
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
2022
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
2023
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
2024
2014
|
url_ = url_.replace(/[?&]$/, "");
|
|
2025
2015
|
|
|
2026
2016
|
let options_: RequestInit = {
|
|
@@ -2267,10 +2257,8 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2267
2257
|
return Promise.resolve<ResourceUptimesAggregateDto>(null as any);
|
|
2268
2258
|
}
|
|
2269
2259
|
|
|
2270
|
-
listPowerOnUtilizationDatapoints(
|
|
2260
|
+
listPowerOnUtilizationDatapoints(externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList> {
|
|
2271
2261
|
let url_ = this.baseUrl + "/resourceutilization/power-on/datapoints?";
|
|
2272
|
-
if (id !== undefined && id !== null)
|
|
2273
|
-
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
2274
2262
|
if (externalId !== undefined && externalId !== null)
|
|
2275
2263
|
url_ += "externalId=" + encodeURIComponent("" + externalId) + "&";
|
|
2276
2264
|
if (nDays !== undefined && nDays !== null)
|
|
@@ -3140,7 +3128,7 @@ export class UploadClient extends AuthorizedApiBase implements IUploadClient {
|
|
|
3140
3128
|
|
|
3141
3129
|
export interface ISystemHealthDashboardClient {
|
|
3142
3130
|
|
|
3143
|
-
getMachineDataHealth(
|
|
3131
|
+
getMachineDataHealth(assetExternalId: string | null | undefined): Promise<DataHealthDto>;
|
|
3144
3132
|
}
|
|
3145
3133
|
|
|
3146
3134
|
export class SystemHealthDashboardClient extends AuthorizedApiBase implements ISystemHealthDashboardClient {
|
|
@@ -3153,10 +3141,8 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase implements IS
|
|
|
3153
3141
|
this.baseUrl = baseUrl ?? "";
|
|
3154
3142
|
}
|
|
3155
3143
|
|
|
3156
|
-
getMachineDataHealth(
|
|
3144
|
+
getMachineDataHealth(assetExternalId: string | null | undefined): Promise<DataHealthDto> {
|
|
3157
3145
|
let url_ = this.baseUrl + "/systemhealthdashboard?";
|
|
3158
|
-
if (assetId !== undefined && assetId !== null)
|
|
3159
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3160
3146
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3161
3147
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3162
3148
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -5315,7 +5301,7 @@ export interface IKpiResourceClient {
|
|
|
5315
5301
|
|
|
5316
5302
|
getResourceDailyUptime(resourceExternalId: string | undefined, date: Date | undefined, utcOffset: number | undefined): Promise<ResourceDailyUptimeDto>;
|
|
5317
5303
|
|
|
5318
|
-
getUptimeNormalTrend(
|
|
5304
|
+
getUptimeNormalTrend(assetExternalId: string | null | undefined, date: Date | null | undefined, utcOffset: number | null | undefined): Promise<UptimeTrendDataPointDto[]>;
|
|
5319
5305
|
}
|
|
5320
5306
|
|
|
5321
5307
|
export class KpiResourceClient extends AuthorizedApiBase implements IKpiResourceClient {
|
|
@@ -5430,10 +5416,8 @@ export class KpiResourceClient extends AuthorizedApiBase implements IKpiResource
|
|
|
5430
5416
|
return Promise.resolve<ResourceDailyUptimeDto>(null as any);
|
|
5431
5417
|
}
|
|
5432
5418
|
|
|
5433
|
-
getUptimeNormalTrend(
|
|
5419
|
+
getUptimeNormalTrend(assetExternalId: string | null | undefined, date: Date | null | undefined, utcOffset: number | null | undefined): Promise<UptimeTrendDataPointDto[]> {
|
|
5434
5420
|
let url_ = this.baseUrl + "/kpiresource/normal-day-trendline?";
|
|
5435
|
-
if (assetId !== undefined && assetId !== null)
|
|
5436
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
5437
5421
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
5438
5422
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
5439
5423
|
if (date !== undefined && date !== null)
|
|
@@ -5486,7 +5470,7 @@ export interface IResourcesClient {
|
|
|
5486
5470
|
|
|
5487
5471
|
deleteResourceGroup(id: string): Promise<void>;
|
|
5488
5472
|
|
|
5489
|
-
listCurrentMachineStates(
|
|
5473
|
+
listCurrentMachineStates(assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
5490
5474
|
|
|
5491
5475
|
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
5492
5476
|
|
|
@@ -5721,10 +5705,8 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5721
5705
|
return Promise.resolve<void>(null as any);
|
|
5722
5706
|
}
|
|
5723
5707
|
|
|
5724
|
-
listCurrentMachineStates(
|
|
5708
|
+
listCurrentMachineStates(assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
5725
5709
|
let url_ = this.baseUrl + "/resources/states/now?";
|
|
5726
|
-
if (assetId !== undefined && assetId !== null)
|
|
5727
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
5728
5710
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
5729
5711
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
5730
5712
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -7261,11 +7243,10 @@ export interface IUtilizationClient {
|
|
|
7261
7243
|
* @param startTime (optional)
|
|
7262
7244
|
* @param endTime (optional)
|
|
7263
7245
|
* @param ianaTimeZone (optional)
|
|
7264
|
-
* @param assetId (optional)
|
|
7265
7246
|
* @param assetExternalId (optional)
|
|
7266
7247
|
* @deprecated
|
|
7267
7248
|
*/
|
|
7268
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined,
|
|
7249
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
7269
7250
|
|
|
7270
7251
|
getCompanyUtilizationDatapoints(request: UtilizationInputRequest): Promise<CompanyResourceUtilizationDatapointListDto>;
|
|
7271
7252
|
|
|
@@ -7282,7 +7263,7 @@ export interface IUtilizationClient {
|
|
|
7282
7263
|
|
|
7283
7264
|
getCrossCompanyResourceUtilization(utilizationType: ResourceUtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyResourceUtilizationDto>;
|
|
7284
7265
|
|
|
7285
|
-
getResourceUtilizationDatapoints(utilizationType: ResourceUtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined,
|
|
7266
|
+
getResourceUtilizationDatapoints(utilizationType: ResourceUtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetExternalId: string | null | undefined): Promise<ResourceUtilizationDatapointListDto>;
|
|
7286
7267
|
|
|
7287
7268
|
getCompanyResourceUtilizationDatapoints(utilizationType: ResourceUtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyResourceUtilizationDatapointListDto>;
|
|
7288
7269
|
|
|
@@ -7397,11 +7378,10 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
7397
7378
|
* @param startTime (optional)
|
|
7398
7379
|
* @param endTime (optional)
|
|
7399
7380
|
* @param ianaTimeZone (optional)
|
|
7400
|
-
* @param assetId (optional)
|
|
7401
7381
|
* @param assetExternalId (optional)
|
|
7402
7382
|
* @deprecated
|
|
7403
7383
|
*/
|
|
7404
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined,
|
|
7384
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto> {
|
|
7405
7385
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
7406
7386
|
if (utilizationType === null)
|
|
7407
7387
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -7415,8 +7395,6 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
7415
7395
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
7416
7396
|
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
7417
7397
|
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
7418
|
-
if (assetId !== undefined && assetId !== null)
|
|
7419
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
7420
7398
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
7421
7399
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
7422
7400
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -7639,7 +7617,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
7639
7617
|
return Promise.resolve<CrossCompanyResourceUtilizationDto>(null as any);
|
|
7640
7618
|
}
|
|
7641
7619
|
|
|
7642
|
-
getResourceUtilizationDatapoints(utilizationType: ResourceUtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined,
|
|
7620
|
+
getResourceUtilizationDatapoints(utilizationType: ResourceUtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetExternalId: string | null | undefined): Promise<ResourceUtilizationDatapointListDto> {
|
|
7643
7621
|
let url_ = this.baseUrl + "/pulseutilization/datapoints?";
|
|
7644
7622
|
if (utilizationType === null)
|
|
7645
7623
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -7653,8 +7631,6 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
7653
7631
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
7654
7632
|
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
7655
7633
|
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
7656
|
-
if (assetId !== undefined && assetId !== null)
|
|
7657
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
7658
7634
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
7659
7635
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
7660
7636
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -12399,7 +12375,7 @@ export interface IKpiClient {
|
|
|
12399
12375
|
|
|
12400
12376
|
getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined, utcOffset: number | undefined): Promise<MachineDailyUptimeDto>;
|
|
12401
12377
|
|
|
12402
|
-
getUptimeNormalTrend(
|
|
12378
|
+
getUptimeNormalTrend(assetExternalId: string | null | undefined, date: Date | null | undefined, utcOffset: number | null | undefined): Promise<UptimeTrendDataPointDto[]>;
|
|
12403
12379
|
}
|
|
12404
12380
|
|
|
12405
12381
|
export class KpiClient extends AuthorizedApiBase implements IKpiClient {
|
|
@@ -12514,10 +12490,8 @@ export class KpiClient extends AuthorizedApiBase implements IKpiClient {
|
|
|
12514
12490
|
return Promise.resolve<MachineDailyUptimeDto>(null as any);
|
|
12515
12491
|
}
|
|
12516
12492
|
|
|
12517
|
-
getUptimeNormalTrend(
|
|
12493
|
+
getUptimeNormalTrend(assetExternalId: string | null | undefined, date: Date | null | undefined, utcOffset: number | null | undefined): Promise<UptimeTrendDataPointDto[]> {
|
|
12518
12494
|
let url_ = this.baseUrl + "/kpi/normal-day-trendline?";
|
|
12519
|
-
if (assetId !== undefined && assetId !== null)
|
|
12520
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
12521
12495
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
12522
12496
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
12523
12497
|
if (date !== undefined && date !== null)
|
|
@@ -12570,7 +12544,7 @@ export interface IMachinesClient {
|
|
|
12570
12544
|
|
|
12571
12545
|
deleteMachineGroup(id: string): Promise<void>;
|
|
12572
12546
|
|
|
12573
|
-
listCurrentMachineStates(
|
|
12547
|
+
listCurrentMachineStates(assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
12574
12548
|
|
|
12575
12549
|
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
12576
12550
|
|
|
@@ -12805,10 +12779,8 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12805
12779
|
return Promise.resolve<void>(null as any);
|
|
12806
12780
|
}
|
|
12807
12781
|
|
|
12808
|
-
listCurrentMachineStates(
|
|
12782
|
+
listCurrentMachineStates(assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
12809
12783
|
let url_ = this.baseUrl + "/machines/states/now?";
|
|
12810
|
-
if (assetId !== undefined && assetId !== null)
|
|
12811
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
12812
12784
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
12813
12785
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
12814
12786
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -33937,7 +33909,6 @@ export interface UtilizationListDto {
|
|
|
33937
33909
|
}
|
|
33938
33910
|
|
|
33939
33911
|
export interface MachineUtilizationDto {
|
|
33940
|
-
assetId: number;
|
|
33941
33912
|
assetExternalId: string;
|
|
33942
33913
|
name: string;
|
|
33943
33914
|
description?: string | null;
|
|
@@ -33985,7 +33956,6 @@ export interface PowerOnUtilizationDto extends UtilizationAveragesDto {
|
|
|
33985
33956
|
}
|
|
33986
33957
|
|
|
33987
33958
|
export interface UtilizationDetailsDto {
|
|
33988
|
-
machineId: number;
|
|
33989
33959
|
machineExternalId: string;
|
|
33990
33960
|
machineName: string;
|
|
33991
33961
|
machineStateText?: string | null;
|
|
@@ -34101,7 +34071,7 @@ export interface PowerOnUtilizationList {
|
|
|
34101
34071
|
|
|
34102
34072
|
export interface Machine {
|
|
34103
34073
|
externalId?: string;
|
|
34104
|
-
id?: number;
|
|
34074
|
+
id?: number | null;
|
|
34105
34075
|
name?: string;
|
|
34106
34076
|
description?: string | null;
|
|
34107
34077
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
@@ -34117,7 +34087,6 @@ export interface ResourceUtilizationListDto {
|
|
|
34117
34087
|
}
|
|
34118
34088
|
|
|
34119
34089
|
export interface ResourceUtilizationDto {
|
|
34120
|
-
assetId: number;
|
|
34121
34090
|
assetExternalId: string;
|
|
34122
34091
|
name: string;
|
|
34123
34092
|
description?: string | null;
|
|
@@ -34129,7 +34098,6 @@ export interface ResourceUtilizationDto {
|
|
|
34129
34098
|
}
|
|
34130
34099
|
|
|
34131
34100
|
export interface ResourceUtilizationDetailsDto {
|
|
34132
|
-
resourceId: number;
|
|
34133
34101
|
resourceExternalId: string;
|
|
34134
34102
|
resourceName: string;
|
|
34135
34103
|
machineStateText?: string | null;
|
|
@@ -34235,6 +34203,7 @@ export interface UploadInfoDto {
|
|
|
34235
34203
|
}
|
|
34236
34204
|
|
|
34237
34205
|
export interface UploadInfoCdfDto {
|
|
34206
|
+
externalId: string;
|
|
34238
34207
|
id: number;
|
|
34239
34208
|
url: string;
|
|
34240
34209
|
}
|
|
@@ -34248,7 +34217,6 @@ export interface DataHealthDto {
|
|
|
34248
34217
|
}
|
|
34249
34218
|
|
|
34250
34219
|
export interface MachineDataHealthDto {
|
|
34251
|
-
assetId: number;
|
|
34252
34220
|
assetExternalId: string;
|
|
34253
34221
|
name: string;
|
|
34254
34222
|
description?: string | null;
|
|
@@ -34268,7 +34236,6 @@ export interface PowerRegionDto {
|
|
|
34268
34236
|
}
|
|
34269
34237
|
|
|
34270
34238
|
export interface ConsumptionDto {
|
|
34271
|
-
assetId: number;
|
|
34272
34239
|
assetExternalId: string;
|
|
34273
34240
|
assetName: string;
|
|
34274
34241
|
kwh: number;
|
|
@@ -34278,19 +34245,16 @@ export interface ConsumptionDto {
|
|
|
34278
34245
|
}
|
|
34279
34246
|
|
|
34280
34247
|
export interface AssetConsumptionDto {
|
|
34281
|
-
|
|
34282
|
-
timeseriesExternalId?: string | null;
|
|
34248
|
+
timeseriesExternalId: string;
|
|
34283
34249
|
timeseriesName: string;
|
|
34284
34250
|
kwh: number;
|
|
34285
|
-
|
|
34286
|
-
assetExternalId?: string | null;
|
|
34251
|
+
assetExternalId: string;
|
|
34287
34252
|
assetName: string;
|
|
34288
34253
|
co2Equivalent?: number | null;
|
|
34289
34254
|
co2EquivalentNotAdjustedForLocalProduction?: number | null;
|
|
34290
34255
|
}
|
|
34291
34256
|
|
|
34292
34257
|
export interface GetConsumption {
|
|
34293
|
-
assetId?: number | null;
|
|
34294
34258
|
assetExternalId?: string | null;
|
|
34295
34259
|
start?: Date | null;
|
|
34296
34260
|
end?: Date | null;
|
|
@@ -34302,10 +34266,8 @@ export interface PowerDto {
|
|
|
34302
34266
|
}
|
|
34303
34267
|
|
|
34304
34268
|
export interface AssetPowerDto {
|
|
34305
|
-
timeseriesId?: number;
|
|
34306
34269
|
timeseriesExternalId?: string | null;
|
|
34307
34270
|
timeseriesName?: string | null;
|
|
34308
|
-
assetId?: number;
|
|
34309
34271
|
assetExternalId?: string | null;
|
|
34310
34272
|
assetName?: string | null;
|
|
34311
34273
|
timeSeriesDataPoints?: NumericDataPointDto[] | null;
|
|
@@ -34320,8 +34282,7 @@ export interface NumericDataPointDto {
|
|
|
34320
34282
|
}
|
|
34321
34283
|
|
|
34322
34284
|
export interface GetPower {
|
|
34323
|
-
|
|
34324
|
-
assetExternalId?: string | null;
|
|
34285
|
+
assetExternalId: string;
|
|
34325
34286
|
granularity?: string | null;
|
|
34326
34287
|
start?: Date | null;
|
|
34327
34288
|
end?: Date | null;
|
|
@@ -34801,7 +34762,7 @@ export interface UptimeTrendDataPointDto {
|
|
|
34801
34762
|
}
|
|
34802
34763
|
|
|
34803
34764
|
export interface ApplicationResourcesResourceDto {
|
|
34804
|
-
id
|
|
34765
|
+
id?: number | null;
|
|
34805
34766
|
externalId: string;
|
|
34806
34767
|
name: string;
|
|
34807
34768
|
description?: string | null;
|
|
@@ -34821,7 +34782,6 @@ export interface ApplicationResourcesResourceGroupDto {
|
|
|
34821
34782
|
}
|
|
34822
34783
|
|
|
34823
34784
|
export interface ResourceGroupMemberDto {
|
|
34824
|
-
id: number;
|
|
34825
34785
|
externalId: string;
|
|
34826
34786
|
name: string;
|
|
34827
34787
|
description?: string | null;
|
|
@@ -34848,13 +34808,12 @@ export interface MachineStateListDto {
|
|
|
34848
34808
|
}
|
|
34849
34809
|
|
|
34850
34810
|
export interface MachineStateDto {
|
|
34851
|
-
|
|
34811
|
+
assetExternalId: string;
|
|
34852
34812
|
name: string;
|
|
34853
34813
|
description?: string | null;
|
|
34854
34814
|
state: string;
|
|
34855
34815
|
machineState: MachineState;
|
|
34856
34816
|
startTime: Date;
|
|
34857
|
-
assetExternalId: string;
|
|
34858
34817
|
}
|
|
34859
34818
|
|
|
34860
34819
|
export interface DowntimeMachineStateDto {
|
|
@@ -34868,13 +34827,12 @@ export interface ResourceErpDataListDto {
|
|
|
34868
34827
|
}
|
|
34869
34828
|
|
|
34870
34829
|
export interface SingleResourceErpDataListDto {
|
|
34871
|
-
|
|
34830
|
+
assetExternalId: string;
|
|
34872
34831
|
name: string;
|
|
34873
34832
|
description?: string;
|
|
34874
34833
|
activeOrders: ResourceErpDataDto[];
|
|
34875
34834
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
34876
34835
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
34877
|
-
assetExternalId: string;
|
|
34878
34836
|
}
|
|
34879
34837
|
|
|
34880
34838
|
export interface ResourceErpDataDto {
|
|
@@ -34993,7 +34951,7 @@ export interface ResourceGroupUtilizationDto {
|
|
|
34993
34951
|
}
|
|
34994
34952
|
|
|
34995
34953
|
export interface ResourceUtilizationV2Dto {
|
|
34996
|
-
id?: number;
|
|
34954
|
+
id?: number | null;
|
|
34997
34955
|
name: string;
|
|
34998
34956
|
description?: string | null;
|
|
34999
34957
|
utilization: UtilizationDto;
|
|
@@ -35012,7 +34970,7 @@ export interface OperatorAndMachineDto {
|
|
|
35012
34970
|
}
|
|
35013
34971
|
|
|
35014
34972
|
export interface MachineDto {
|
|
35015
|
-
id
|
|
34973
|
+
id?: number | null;
|
|
35016
34974
|
externalId: string;
|
|
35017
34975
|
name: string;
|
|
35018
34976
|
description?: string | null;
|
|
@@ -35250,7 +35208,7 @@ export interface ResourceGroupUtilizationV2Dto {
|
|
|
35250
35208
|
}
|
|
35251
35209
|
|
|
35252
35210
|
export interface ResourceUtilizationV3Dto {
|
|
35253
|
-
id?: number;
|
|
35211
|
+
id?: number | null;
|
|
35254
35212
|
externalId: string;
|
|
35255
35213
|
name: string;
|
|
35256
35214
|
description?: string | null;
|
|
@@ -35291,7 +35249,7 @@ export interface MachineGroupUtilizationV2Dto {
|
|
|
35291
35249
|
}
|
|
35292
35250
|
|
|
35293
35251
|
export interface MachineUtilizationV3Dto {
|
|
35294
|
-
id?: number;
|
|
35252
|
+
id?: number | null;
|
|
35295
35253
|
name: string;
|
|
35296
35254
|
description?: string | null;
|
|
35297
35255
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -35305,7 +35263,7 @@ export interface UtilizationDatapointListDto {
|
|
|
35305
35263
|
|
|
35306
35264
|
export interface MachineUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
35307
35265
|
externalId: string;
|
|
35308
|
-
id
|
|
35266
|
+
id?: number | null;
|
|
35309
35267
|
name: string;
|
|
35310
35268
|
description?: string | null;
|
|
35311
35269
|
}
|
|
@@ -35323,7 +35281,7 @@ export interface ResourceGroupUtilizationDatapointListDto extends UtilizationDat
|
|
|
35323
35281
|
|
|
35324
35282
|
export interface ResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
35325
35283
|
externalId: string;
|
|
35326
|
-
id
|
|
35284
|
+
id?: number | null;
|
|
35327
35285
|
name: string;
|
|
35328
35286
|
description?: string | null;
|
|
35329
35287
|
}
|
|
@@ -36411,7 +36369,6 @@ export interface MachineGroupDto {
|
|
|
36411
36369
|
}
|
|
36412
36370
|
|
|
36413
36371
|
export interface MachineGroupMemberDto {
|
|
36414
|
-
id: number;
|
|
36415
36372
|
externalId: string;
|
|
36416
36373
|
name: string;
|
|
36417
36374
|
description?: string | null;
|
|
@@ -36438,13 +36395,12 @@ export interface MachineErpDataListDto {
|
|
|
36438
36395
|
}
|
|
36439
36396
|
|
|
36440
36397
|
export interface SingleMachineErpDataListDto {
|
|
36441
|
-
|
|
36398
|
+
assetExternalId: string;
|
|
36442
36399
|
name: string;
|
|
36443
36400
|
description?: string;
|
|
36444
36401
|
activeOrders: MachineErpDataDto[];
|
|
36445
36402
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
36446
36403
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
36447
|
-
assetExternalId: string;
|
|
36448
36404
|
}
|
|
36449
36405
|
|
|
36450
36406
|
export interface MachineErpDataDto {
|
|
@@ -36477,7 +36433,7 @@ export interface MachineGroupUtilizationDto {
|
|
|
36477
36433
|
}
|
|
36478
36434
|
|
|
36479
36435
|
export interface MachineUtilizationV2Dto {
|
|
36480
|
-
id?: number;
|
|
36436
|
+
id?: number | null;
|
|
36481
36437
|
name: string;
|
|
36482
36438
|
description?: string | null;
|
|
36483
36439
|
utilization: UtilizationDto;
|
|
@@ -36489,9 +36445,8 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
36489
36445
|
}
|
|
36490
36446
|
|
|
36491
36447
|
export interface LiveMachineDataDto {
|
|
36492
|
-
|
|
36448
|
+
assetExternalId?: string;
|
|
36493
36449
|
dataPoints?: LiveMachineDataPointDto[];
|
|
36494
|
-
assetExternalId: string;
|
|
36495
36450
|
}
|
|
36496
36451
|
|
|
36497
36452
|
export interface LiveMachineDataPointDto {
|
|
@@ -36502,9 +36457,8 @@ export interface LiveMachineDataPointDto {
|
|
|
36502
36457
|
}
|
|
36503
36458
|
|
|
36504
36459
|
export interface TimeseriesGraphDto {
|
|
36505
|
-
|
|
36460
|
+
assetExternalId?: string;
|
|
36506
36461
|
series?: TimeseriesGraphSeriesDto[];
|
|
36507
|
-
assetExternalId: string;
|
|
36508
36462
|
}
|
|
36509
36463
|
|
|
36510
36464
|
export interface TimeseriesGraphSeriesDto {
|
|
@@ -37654,16 +37608,12 @@ export interface AssetDto {
|
|
|
37654
37608
|
externalId?: string | null;
|
|
37655
37609
|
name?: string | null;
|
|
37656
37610
|
description?: string | null;
|
|
37657
|
-
metadata?: { [key: string]: string; } | null;
|
|
37658
|
-
aggregates?: any | null;
|
|
37659
|
-
parentId?: number | null;
|
|
37660
37611
|
parentExternalId?: string | null;
|
|
37612
|
+
rootExternalId?: string | null;
|
|
37661
37613
|
source?: string | null;
|
|
37662
37614
|
id?: number | null;
|
|
37663
37615
|
createdTime?: number | null;
|
|
37664
37616
|
lastUpdatedTime?: number | null;
|
|
37665
|
-
rootId?: number | null;
|
|
37666
|
-
rootExternalId?: string | null;
|
|
37667
37617
|
}
|
|
37668
37618
|
|
|
37669
37619
|
export interface AssetStructureDto {
|
|
@@ -37671,7 +37621,6 @@ export interface AssetStructureDto {
|
|
|
37671
37621
|
name?: string | null;
|
|
37672
37622
|
aggregatesDisplay?: string | null;
|
|
37673
37623
|
aggregates?: AssetSimpleStructureDto[] | null;
|
|
37674
|
-
id?: number | null;
|
|
37675
37624
|
createdTime?: number | null;
|
|
37676
37625
|
lastUpdatedTime?: number | null;
|
|
37677
37626
|
}
|
|
@@ -37679,25 +37628,20 @@ export interface AssetStructureDto {
|
|
|
37679
37628
|
export interface AssetSimpleStructureDto {
|
|
37680
37629
|
externalId?: string | null;
|
|
37681
37630
|
name?: string | null;
|
|
37682
|
-
id?: number | null;
|
|
37683
37631
|
}
|
|
37684
37632
|
|
|
37685
37633
|
export interface CreateAsset {
|
|
37686
|
-
|
|
37687
|
-
parentExternalId?: string | null;
|
|
37634
|
+
parentExternalId: string;
|
|
37688
37635
|
externalId: string;
|
|
37689
37636
|
name: string;
|
|
37690
37637
|
description: string;
|
|
37691
|
-
metadata: { [key: string]: string; };
|
|
37692
37638
|
source?: string | null;
|
|
37693
37639
|
}
|
|
37694
37640
|
|
|
37695
37641
|
export interface UpdateAssetRequest {
|
|
37696
|
-
|
|
37697
|
-
parentExternalId?: string | null;
|
|
37642
|
+
parentExternalId: string;
|
|
37698
37643
|
name: string;
|
|
37699
37644
|
description: string;
|
|
37700
|
-
metadata: { [key: string]: string; };
|
|
37701
37645
|
source?: string | null;
|
|
37702
37646
|
}
|
|
37703
37647
|
|
|
@@ -39234,7 +39178,6 @@ export interface ElectricalIotConfigDto {
|
|
|
39234
39178
|
export interface CreateElectricalIotConfig {
|
|
39235
39179
|
typeId?: string | null;
|
|
39236
39180
|
serialNumber?: string | null;
|
|
39237
|
-
assetId?: number | null;
|
|
39238
39181
|
assetExternalId?: string | null;
|
|
39239
39182
|
}
|
|
39240
39183
|
|
|
@@ -40112,7 +40055,8 @@ export interface ProcessMaterialCertificate {
|
|
|
40112
40055
|
}
|
|
40113
40056
|
|
|
40114
40057
|
export interface UploadFileCdfDto {
|
|
40115
|
-
id
|
|
40058
|
+
id?: number | null;
|
|
40059
|
+
externalId: string;
|
|
40116
40060
|
}
|
|
40117
40061
|
|
|
40118
40062
|
export interface ImaMaterialCheckReportDto {
|