@ignos/api-client 20261109.354.1 → 20261109.355.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 +93 -81
- package/lib/ignosportal-api.js +17 -82
- package/package.json +1 -1
- package/src/ignosportal-api.ts +103 -157
package/src/ignosportal-api.ts
CHANGED
|
@@ -1465,23 +1465,24 @@ export interface IMachineUtilizationClient {
|
|
|
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)
|
|
1468
1469
|
*/
|
|
1469
|
-
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto>;
|
|
1470
|
+
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined, assetExternalId: string | null | undefined): Promise<UtilizationListDto>;
|
|
1470
1471
|
|
|
1471
|
-
getMachineUtilization(id:
|
|
1472
|
+
getMachineUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto>;
|
|
1472
1473
|
|
|
1473
1474
|
/**
|
|
1474
1475
|
* @param startTime (optional)
|
|
1475
1476
|
* @param endTime (optional)
|
|
1476
1477
|
* @deprecated
|
|
1477
1478
|
*/
|
|
1478
|
-
getUtilizationDetailsForMachine(id:
|
|
1479
|
+
getUtilizationDetailsForMachine(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1479
1480
|
|
|
1480
|
-
getResourceTimelines(id:
|
|
1481
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1481
1482
|
|
|
1482
|
-
listMachineStates(id:
|
|
1483
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1483
1484
|
|
|
1484
|
-
getMachineStatesSummary(id:
|
|
1485
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1485
1486
|
|
|
1486
1487
|
listMachineUptimesToday(request: ListMachineUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
|
|
1487
1488
|
|
|
@@ -1513,8 +1514,9 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1513
1514
|
* @param favorites (optional)
|
|
1514
1515
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1515
1516
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1517
|
+
* @param assetExternalId (optional)
|
|
1516
1518
|
*/
|
|
1517
|
-
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto> {
|
|
1519
|
+
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined, assetExternalId: string | null | undefined): Promise<UtilizationListDto> {
|
|
1518
1520
|
let url_ = this.baseUrl + "/machineutilization?";
|
|
1519
1521
|
if (assetId !== undefined && assetId !== null)
|
|
1520
1522
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
@@ -1526,6 +1528,8 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1526
1528
|
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
1527
1529
|
if (utcOffset !== undefined && utcOffset !== null)
|
|
1528
1530
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
1531
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
1532
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
1529
1533
|
url_ = url_.replace(/[?&]$/, "");
|
|
1530
1534
|
|
|
1531
1535
|
let options_: RequestInit = {
|
|
@@ -1559,7 +1563,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1559
1563
|
return Promise.resolve<UtilizationListDto>(null as any);
|
|
1560
1564
|
}
|
|
1561
1565
|
|
|
1562
|
-
getMachineUtilization(id:
|
|
1566
|
+
getMachineUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto> {
|
|
1563
1567
|
let url_ = this.baseUrl + "/machineutilization/{id}?";
|
|
1564
1568
|
if (id === undefined || id === null)
|
|
1565
1569
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1608,7 +1612,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1608
1612
|
* @param endTime (optional)
|
|
1609
1613
|
* @deprecated
|
|
1610
1614
|
*/
|
|
1611
|
-
getUtilizationDetailsForMachine(id:
|
|
1615
|
+
getUtilizationDetailsForMachine(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1612
1616
|
let url_ = this.baseUrl + "/machineutilization/{id}/utilization?";
|
|
1613
1617
|
if (id === undefined || id === null)
|
|
1614
1618
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1650,7 +1654,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1650
1654
|
return Promise.resolve<MachineStatesSummaryDto>(null as any);
|
|
1651
1655
|
}
|
|
1652
1656
|
|
|
1653
|
-
getResourceTimelines(id:
|
|
1657
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
1654
1658
|
let url_ = this.baseUrl + "/machineutilization/{id}/resource/timelines?";
|
|
1655
1659
|
if (id === undefined || id === null)
|
|
1656
1660
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1696,7 +1700,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1696
1700
|
return Promise.resolve<TimelinesDto>(null as any);
|
|
1697
1701
|
}
|
|
1698
1702
|
|
|
1699
|
-
listMachineStates(id:
|
|
1703
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
1700
1704
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
|
|
1701
1705
|
if (id === undefined || id === null)
|
|
1702
1706
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1738,7 +1742,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1738
1742
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
1739
1743
|
}
|
|
1740
1744
|
|
|
1741
|
-
getMachineStatesSummary(id:
|
|
1745
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1742
1746
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states/summary?";
|
|
1743
1747
|
if (id === undefined || id === null)
|
|
1744
1748
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1959,16 +1963,17 @@ export interface IResourceUtilizationClient {
|
|
|
1959
1963
|
* @param favorites (optional)
|
|
1960
1964
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1961
1965
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1966
|
+
* @param assetExternalId (optional)
|
|
1962
1967
|
*/
|
|
1963
|
-
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto>;
|
|
1968
|
+
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined, assetExternalId: string | null | undefined): Promise<ResourceUtilizationListDto>;
|
|
1964
1969
|
|
|
1965
|
-
getResourceUtilization(id:
|
|
1970
|
+
getResourceUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto>;
|
|
1966
1971
|
|
|
1967
|
-
getResourceTimelines(id:
|
|
1972
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1968
1973
|
|
|
1969
|
-
listMachineStates(id:
|
|
1974
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1970
1975
|
|
|
1971
|
-
getMachineStatesSummary(id:
|
|
1976
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1972
1977
|
|
|
1973
1978
|
listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<ResourceUptimesAggregateDto>;
|
|
1974
1979
|
|
|
@@ -2000,8 +2005,9 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2000
2005
|
* @param favorites (optional)
|
|
2001
2006
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
2002
2007
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
2008
|
+
* @param assetExternalId (optional)
|
|
2003
2009
|
*/
|
|
2004
|
-
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto> {
|
|
2010
|
+
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined, assetExternalId: string | null | undefined): Promise<ResourceUtilizationListDto> {
|
|
2005
2011
|
let url_ = this.baseUrl + "/resourceutilization?";
|
|
2006
2012
|
if (assetId !== undefined && assetId !== null)
|
|
2007
2013
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
@@ -2013,6 +2019,8 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2013
2019
|
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
2014
2020
|
if (utcOffset !== undefined && utcOffset !== null)
|
|
2015
2021
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
2022
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
2023
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
2016
2024
|
url_ = url_.replace(/[?&]$/, "");
|
|
2017
2025
|
|
|
2018
2026
|
let options_: RequestInit = {
|
|
@@ -2046,7 +2054,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2046
2054
|
return Promise.resolve<ResourceUtilizationListDto>(null as any);
|
|
2047
2055
|
}
|
|
2048
2056
|
|
|
2049
|
-
getResourceUtilization(id:
|
|
2057
|
+
getResourceUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto> {
|
|
2050
2058
|
let url_ = this.baseUrl + "/resourceutilization/{id}?";
|
|
2051
2059
|
if (id === undefined || id === null)
|
|
2052
2060
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2090,7 +2098,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2090
2098
|
return Promise.resolve<ResourceUtilizationDetailsDto>(null as any);
|
|
2091
2099
|
}
|
|
2092
2100
|
|
|
2093
|
-
getResourceTimelines(id:
|
|
2101
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
2094
2102
|
let url_ = this.baseUrl + "/resourceutilization/{id}/resource/timelines?";
|
|
2095
2103
|
if (id === undefined || id === null)
|
|
2096
2104
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2136,7 +2144,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2136
2144
|
return Promise.resolve<TimelinesDto>(null as any);
|
|
2137
2145
|
}
|
|
2138
2146
|
|
|
2139
|
-
listMachineStates(id:
|
|
2147
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
2140
2148
|
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states?";
|
|
2141
2149
|
if (id === undefined || id === null)
|
|
2142
2150
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2178,7 +2186,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2178
2186
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
2179
2187
|
}
|
|
2180
2188
|
|
|
2181
|
-
getMachineStatesSummary(id:
|
|
2189
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
2182
2190
|
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states/summary?";
|
|
2183
2191
|
if (id === undefined || id === null)
|
|
2184
2192
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -3132,7 +3140,7 @@ export class UploadClient extends AuthorizedApiBase implements IUploadClient {
|
|
|
3132
3140
|
|
|
3133
3141
|
export interface ISystemHealthDashboardClient {
|
|
3134
3142
|
|
|
3135
|
-
getMachineDataHealth(assetId: number | null | undefined): Promise<DataHealthDto>;
|
|
3143
|
+
getMachineDataHealth(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<DataHealthDto>;
|
|
3136
3144
|
}
|
|
3137
3145
|
|
|
3138
3146
|
export class SystemHealthDashboardClient extends AuthorizedApiBase implements ISystemHealthDashboardClient {
|
|
@@ -3145,10 +3153,12 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase implements IS
|
|
|
3145
3153
|
this.baseUrl = baseUrl ?? "";
|
|
3146
3154
|
}
|
|
3147
3155
|
|
|
3148
|
-
getMachineDataHealth(assetId: number | null | undefined): Promise<DataHealthDto> {
|
|
3156
|
+
getMachineDataHealth(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<DataHealthDto> {
|
|
3149
3157
|
let url_ = this.baseUrl + "/systemhealthdashboard?";
|
|
3150
3158
|
if (assetId !== undefined && assetId !== null)
|
|
3151
3159
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3160
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3161
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3152
3162
|
url_ = url_.replace(/[?&]$/, "");
|
|
3153
3163
|
|
|
3154
3164
|
let options_: RequestInit = {
|
|
@@ -5476,19 +5486,19 @@ export interface IResourcesClient {
|
|
|
5476
5486
|
|
|
5477
5487
|
deleteResourceGroup(id: string): Promise<void>;
|
|
5478
5488
|
|
|
5479
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
5489
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
5480
5490
|
|
|
5481
|
-
listMachineStates(id:
|
|
5491
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
5482
5492
|
|
|
5483
|
-
listLastDowntimeMachineStates(id:
|
|
5493
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
5484
5494
|
|
|
5485
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5495
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
5486
5496
|
|
|
5487
|
-
getMachineStatesSummary(id:
|
|
5497
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
5488
5498
|
|
|
5489
5499
|
listResourceErpData(): Promise<ResourceErpDataListDto>;
|
|
5490
5500
|
|
|
5491
|
-
getResourceErpData(id:
|
|
5501
|
+
getResourceErpData(id: string): Promise<ResourceErpDataDto>;
|
|
5492
5502
|
|
|
5493
5503
|
getResourceUtilizationSummary(): Promise<ResourceUtilizationSummaryDto>;
|
|
5494
5504
|
|
|
@@ -5504,7 +5514,7 @@ export interface IResourcesClient {
|
|
|
5504
5514
|
|
|
5505
5515
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
5506
5516
|
|
|
5507
|
-
deleteMachine(id:
|
|
5517
|
+
deleteMachine(id: string): Promise<void>;
|
|
5508
5518
|
|
|
5509
5519
|
/**
|
|
5510
5520
|
* @deprecated
|
|
@@ -5711,10 +5721,12 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5711
5721
|
return Promise.resolve<void>(null as any);
|
|
5712
5722
|
}
|
|
5713
5723
|
|
|
5714
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
5724
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
5715
5725
|
let url_ = this.baseUrl + "/resources/states/now?";
|
|
5716
5726
|
if (assetId !== undefined && assetId !== null)
|
|
5717
5727
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
5728
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
5729
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
5718
5730
|
url_ = url_.replace(/[?&]$/, "");
|
|
5719
5731
|
|
|
5720
5732
|
let options_: RequestInit = {
|
|
@@ -5748,7 +5760,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5748
5760
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
5749
5761
|
}
|
|
5750
5762
|
|
|
5751
|
-
listMachineStates(id:
|
|
5763
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
5752
5764
|
let url_ = this.baseUrl + "/resources/{id}/states?";
|
|
5753
5765
|
if (id === undefined || id === null)
|
|
5754
5766
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5790,7 +5802,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5790
5802
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
5791
5803
|
}
|
|
5792
5804
|
|
|
5793
|
-
listLastDowntimeMachineStates(id:
|
|
5805
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
5794
5806
|
let url_ = this.baseUrl + "/resources/{id}/lastdowntimestates?";
|
|
5795
5807
|
if (id === undefined || id === null)
|
|
5796
5808
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5832,7 +5844,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5832
5844
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
5833
5845
|
}
|
|
5834
5846
|
|
|
5835
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5847
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
5836
5848
|
let url_ = this.baseUrl + "/resources/{id}/statewithdowntimeperiods?";
|
|
5837
5849
|
if (id === undefined || id === null)
|
|
5838
5850
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5874,7 +5886,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5874
5886
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
5875
5887
|
}
|
|
5876
5888
|
|
|
5877
|
-
getMachineStatesSummary(id:
|
|
5889
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
5878
5890
|
let url_ = this.baseUrl + "/resources/{id}/states/summary?";
|
|
5879
5891
|
if (id === undefined || id === null)
|
|
5880
5892
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5951,7 +5963,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5951
5963
|
return Promise.resolve<ResourceErpDataListDto>(null as any);
|
|
5952
5964
|
}
|
|
5953
5965
|
|
|
5954
|
-
getResourceErpData(id:
|
|
5966
|
+
getResourceErpData(id: string): Promise<ResourceErpDataDto> {
|
|
5955
5967
|
let url_ = this.baseUrl + "/resources/{id}/erp";
|
|
5956
5968
|
if (id === undefined || id === null)
|
|
5957
5969
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6242,7 +6254,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
6242
6254
|
return Promise.resolve<void>(null as any);
|
|
6243
6255
|
}
|
|
6244
6256
|
|
|
6245
|
-
deleteMachine(id:
|
|
6257
|
+
deleteMachine(id: string): Promise<void> {
|
|
6246
6258
|
let url_ = this.baseUrl + "/resources/{id}";
|
|
6247
6259
|
if (id === undefined || id === null)
|
|
6248
6260
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12558,19 +12570,19 @@ export interface IMachinesClient {
|
|
|
12558
12570
|
|
|
12559
12571
|
deleteMachineGroup(id: string): Promise<void>;
|
|
12560
12572
|
|
|
12561
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
12573
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
12562
12574
|
|
|
12563
|
-
listMachineStates(id:
|
|
12575
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
12564
12576
|
|
|
12565
|
-
listLastDowntimeMachineStates(id:
|
|
12577
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
12566
12578
|
|
|
12567
|
-
getMachineStateWithDowntimePeriods(id:
|
|
12579
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
12568
12580
|
|
|
12569
|
-
getMachineStatesSummary(id:
|
|
12581
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
12570
12582
|
|
|
12571
12583
|
listMachineErpData(): Promise<MachineErpDataListDto>;
|
|
12572
12584
|
|
|
12573
|
-
getMachineErpData(id:
|
|
12585
|
+
getMachineErpData(id: string): Promise<MachineErpDataDto>;
|
|
12574
12586
|
|
|
12575
12587
|
/**
|
|
12576
12588
|
* @param startTime (optional)
|
|
@@ -12593,7 +12605,7 @@ export interface IMachinesClient {
|
|
|
12593
12605
|
|
|
12594
12606
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
12595
12607
|
|
|
12596
|
-
deleteMachine(id:
|
|
12608
|
+
deleteMachine(id: string): Promise<void>;
|
|
12597
12609
|
}
|
|
12598
12610
|
|
|
12599
12611
|
export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
@@ -12793,10 +12805,12 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12793
12805
|
return Promise.resolve<void>(null as any);
|
|
12794
12806
|
}
|
|
12795
12807
|
|
|
12796
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
12808
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
12797
12809
|
let url_ = this.baseUrl + "/machines/states/now?";
|
|
12798
12810
|
if (assetId !== undefined && assetId !== null)
|
|
12799
12811
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
12812
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
12813
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
12800
12814
|
url_ = url_.replace(/[?&]$/, "");
|
|
12801
12815
|
|
|
12802
12816
|
let options_: RequestInit = {
|
|
@@ -12830,7 +12844,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12830
12844
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
12831
12845
|
}
|
|
12832
12846
|
|
|
12833
|
-
listMachineStates(id:
|
|
12847
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
12834
12848
|
let url_ = this.baseUrl + "/machines/{id}/states?";
|
|
12835
12849
|
if (id === undefined || id === null)
|
|
12836
12850
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12872,7 +12886,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12872
12886
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
12873
12887
|
}
|
|
12874
12888
|
|
|
12875
|
-
listLastDowntimeMachineStates(id:
|
|
12889
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
12876
12890
|
let url_ = this.baseUrl + "/machines/{id}/lastdowntimestates?";
|
|
12877
12891
|
if (id === undefined || id === null)
|
|
12878
12892
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12914,7 +12928,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12914
12928
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
12915
12929
|
}
|
|
12916
12930
|
|
|
12917
|
-
getMachineStateWithDowntimePeriods(id:
|
|
12931
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
12918
12932
|
let url_ = this.baseUrl + "/machines/{id}/statewithdowntimeperiods?";
|
|
12919
12933
|
if (id === undefined || id === null)
|
|
12920
12934
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12956,7 +12970,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12956
12970
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
12957
12971
|
}
|
|
12958
12972
|
|
|
12959
|
-
getMachineStatesSummary(id:
|
|
12973
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
12960
12974
|
let url_ = this.baseUrl + "/machines/{id}/states/summary?";
|
|
12961
12975
|
if (id === undefined || id === null)
|
|
12962
12976
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13033,7 +13047,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13033
13047
|
return Promise.resolve<MachineErpDataListDto>(null as any);
|
|
13034
13048
|
}
|
|
13035
13049
|
|
|
13036
|
-
getMachineErpData(id:
|
|
13050
|
+
getMachineErpData(id: string): Promise<MachineErpDataDto> {
|
|
13037
13051
|
let url_ = this.baseUrl + "/machines/{id}/erp";
|
|
13038
13052
|
if (id === undefined || id === null)
|
|
13039
13053
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13371,7 +13385,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13371
13385
|
return Promise.resolve<void>(null as any);
|
|
13372
13386
|
}
|
|
13373
13387
|
|
|
13374
|
-
deleteMachine(id:
|
|
13388
|
+
deleteMachine(id: string): Promise<void> {
|
|
13375
13389
|
let url_ = this.baseUrl + "/machines/{id}";
|
|
13376
13390
|
if (id === undefined || id === null)
|
|
13377
13391
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13409,11 +13423,11 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13409
13423
|
|
|
13410
13424
|
export interface IMachineDataClient {
|
|
13411
13425
|
|
|
13412
|
-
getLiveMachineData(assetId:
|
|
13426
|
+
getLiveMachineData(assetId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto>;
|
|
13413
13427
|
|
|
13414
|
-
getTimeseriesGraph(assetId:
|
|
13428
|
+
getTimeseriesGraph(assetId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto>;
|
|
13415
13429
|
|
|
13416
|
-
exportTimeseriesGraph(assetId:
|
|
13430
|
+
exportTimeseriesGraph(assetId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto>;
|
|
13417
13431
|
}
|
|
13418
13432
|
|
|
13419
13433
|
export class MachineDataClient extends AuthorizedApiBase implements IMachineDataClient {
|
|
@@ -13426,7 +13440,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13426
13440
|
this.baseUrl = baseUrl ?? "";
|
|
13427
13441
|
}
|
|
13428
13442
|
|
|
13429
|
-
getLiveMachineData(assetId:
|
|
13443
|
+
getLiveMachineData(assetId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto> {
|
|
13430
13444
|
let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
|
|
13431
13445
|
if (assetId === undefined || assetId === null)
|
|
13432
13446
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13468,7 +13482,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13468
13482
|
return Promise.resolve<LiveMachineDataDto>(null as any);
|
|
13469
13483
|
}
|
|
13470
13484
|
|
|
13471
|
-
getTimeseriesGraph(assetId:
|
|
13485
|
+
getTimeseriesGraph(assetId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto> {
|
|
13472
13486
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph?";
|
|
13473
13487
|
if (assetId === undefined || assetId === null)
|
|
13474
13488
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13518,7 +13532,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13518
13532
|
return Promise.resolve<TimeseriesGraphDto>(null as any);
|
|
13519
13533
|
}
|
|
13520
13534
|
|
|
13521
|
-
exportTimeseriesGraph(assetId:
|
|
13535
|
+
exportTimeseriesGraph(assetId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto> {
|
|
13522
13536
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph/export-csv";
|
|
13523
13537
|
if (assetId === undefined || assetId === null)
|
|
13524
13538
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -18823,11 +18837,11 @@ export interface IAssetsClient {
|
|
|
18823
18837
|
|
|
18824
18838
|
searchAssets(name: string | null | undefined, description: string | null | undefined, limit: number | undefined): Promise<AssetDto[]>;
|
|
18825
18839
|
|
|
18826
|
-
getAssetById(id:
|
|
18840
|
+
getAssetById(id: string): Promise<AssetDto>;
|
|
18827
18841
|
|
|
18828
|
-
updateAsset(id:
|
|
18842
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto>;
|
|
18829
18843
|
|
|
18830
|
-
getAssetStructureById(id:
|
|
18844
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto>;
|
|
18831
18845
|
|
|
18832
18846
|
/**
|
|
18833
18847
|
* @deprecated
|
|
@@ -18974,7 +18988,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
18974
18988
|
return Promise.resolve<AssetDto[]>(null as any);
|
|
18975
18989
|
}
|
|
18976
18990
|
|
|
18977
|
-
getAssetById(id:
|
|
18991
|
+
getAssetById(id: string): Promise<AssetDto> {
|
|
18978
18992
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
18979
18993
|
if (id === undefined || id === null)
|
|
18980
18994
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19012,7 +19026,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19012
19026
|
return Promise.resolve<AssetDto>(null as any);
|
|
19013
19027
|
}
|
|
19014
19028
|
|
|
19015
|
-
updateAsset(id:
|
|
19029
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto> {
|
|
19016
19030
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19017
19031
|
if (id === undefined || id === null)
|
|
19018
19032
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19054,7 +19068,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19054
19068
|
return Promise.resolve<AssetDto>(null as any);
|
|
19055
19069
|
}
|
|
19056
19070
|
|
|
19057
|
-
getAssetStructureById(id:
|
|
19071
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto> {
|
|
19058
19072
|
let url_ = this.baseUrl + "/assets/{id}/structure";
|
|
19059
19073
|
if (id === undefined || id === null)
|
|
19060
19074
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -27238,8 +27252,6 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
27238
27252
|
|
|
27239
27253
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
27240
27254
|
|
|
27241
|
-
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void>;
|
|
27242
|
-
|
|
27243
27255
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
27244
27256
|
|
|
27245
27257
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -27879,44 +27891,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
27879
27891
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
27880
27892
|
}
|
|
27881
27893
|
|
|
27882
|
-
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void> {
|
|
27883
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files/{slot}";
|
|
27884
|
-
if (id === undefined || id === null)
|
|
27885
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27886
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27887
|
-
if (slot === undefined || slot === null)
|
|
27888
|
-
throw new globalThis.Error("The parameter 'slot' must be defined.");
|
|
27889
|
-
url_ = url_.replace("{slot}", encodeURIComponent("" + slot));
|
|
27890
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
27891
|
-
|
|
27892
|
-
let options_: RequestInit = {
|
|
27893
|
-
method: "DELETE",
|
|
27894
|
-
headers: {
|
|
27895
|
-
}
|
|
27896
|
-
};
|
|
27897
|
-
|
|
27898
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27899
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
27900
|
-
}).then((_response: Response) => {
|
|
27901
|
-
return this.processDeleteMeasurementFormSchemaFile(_response);
|
|
27902
|
-
});
|
|
27903
|
-
}
|
|
27904
|
-
|
|
27905
|
-
protected processDeleteMeasurementFormSchemaFile(response: Response): Promise<void> {
|
|
27906
|
-
const status = response.status;
|
|
27907
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
27908
|
-
if (status === 204) {
|
|
27909
|
-
return response.text().then((_responseText) => {
|
|
27910
|
-
return;
|
|
27911
|
-
});
|
|
27912
|
-
} else if (status !== 200 && status !== 204) {
|
|
27913
|
-
return response.text().then((_responseText) => {
|
|
27914
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27915
|
-
});
|
|
27916
|
-
}
|
|
27917
|
-
return Promise.resolve<void>(null as any);
|
|
27918
|
-
}
|
|
27919
|
-
|
|
27920
27894
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
|
|
27921
27895
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
27922
27896
|
if (id === undefined || id === null)
|
|
@@ -29516,8 +29490,6 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29516
29490
|
|
|
29517
29491
|
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
29518
29492
|
|
|
29519
|
-
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]>;
|
|
29520
|
-
|
|
29521
29493
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29522
29494
|
|
|
29523
29495
|
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
@@ -29668,44 +29640,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29668
29640
|
return Promise.resolve<MeasurementFormSchemaCountsDto>(null as any);
|
|
29669
29641
|
}
|
|
29670
29642
|
|
|
29671
|
-
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]> {
|
|
29672
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files";
|
|
29673
|
-
if (id === undefined || id === null)
|
|
29674
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29675
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29676
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
29677
|
-
|
|
29678
|
-
let options_: RequestInit = {
|
|
29679
|
-
method: "GET",
|
|
29680
|
-
headers: {
|
|
29681
|
-
"Accept": "application/json"
|
|
29682
|
-
}
|
|
29683
|
-
};
|
|
29684
|
-
|
|
29685
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29686
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
29687
|
-
}).then((_response: Response) => {
|
|
29688
|
-
return this.processListMeasurementFormSchemaFiles(_response);
|
|
29689
|
-
});
|
|
29690
|
-
}
|
|
29691
|
-
|
|
29692
|
-
protected processListMeasurementFormSchemaFiles(response: Response): Promise<MeasurementFormSchemaFileDto[]> {
|
|
29693
|
-
const status = response.status;
|
|
29694
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29695
|
-
if (status === 200) {
|
|
29696
|
-
return response.text().then((_responseText) => {
|
|
29697
|
-
let result200: any = null;
|
|
29698
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaFileDto[];
|
|
29699
|
-
return result200;
|
|
29700
|
-
});
|
|
29701
|
-
} else if (status !== 200 && status !== 204) {
|
|
29702
|
-
return response.text().then((_responseText) => {
|
|
29703
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29704
|
-
});
|
|
29705
|
-
}
|
|
29706
|
-
return Promise.resolve<MeasurementFormSchemaFileDto[]>(null as any);
|
|
29707
|
-
}
|
|
29708
|
-
|
|
29709
29643
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
29710
29644
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
29711
29645
|
if (id === undefined || id === null)
|
|
@@ -34004,6 +33938,7 @@ export interface UtilizationListDto {
|
|
|
34004
33938
|
|
|
34005
33939
|
export interface MachineUtilizationDto {
|
|
34006
33940
|
assetId: number;
|
|
33941
|
+
assetExternalId: string;
|
|
34007
33942
|
name: string;
|
|
34008
33943
|
description?: string | null;
|
|
34009
33944
|
state: string;
|
|
@@ -34051,6 +33986,7 @@ export interface PowerOnUtilizationDto extends UtilizationAveragesDto {
|
|
|
34051
33986
|
|
|
34052
33987
|
export interface UtilizationDetailsDto {
|
|
34053
33988
|
machineId: number;
|
|
33989
|
+
machineExternalId: string;
|
|
34054
33990
|
machineName: string;
|
|
34055
33991
|
machineStateText?: string | null;
|
|
34056
33992
|
machineState?: MachineState | null;
|
|
@@ -34182,6 +34118,7 @@ export interface ResourceUtilizationListDto {
|
|
|
34182
34118
|
|
|
34183
34119
|
export interface ResourceUtilizationDto {
|
|
34184
34120
|
assetId: number;
|
|
34121
|
+
assetExternalId: string;
|
|
34185
34122
|
name: string;
|
|
34186
34123
|
description?: string | null;
|
|
34187
34124
|
state: string;
|
|
@@ -34193,6 +34130,7 @@ export interface ResourceUtilizationDto {
|
|
|
34193
34130
|
|
|
34194
34131
|
export interface ResourceUtilizationDetailsDto {
|
|
34195
34132
|
resourceId: number;
|
|
34133
|
+
resourceExternalId: string;
|
|
34196
34134
|
resourceName: string;
|
|
34197
34135
|
machineStateText?: string | null;
|
|
34198
34136
|
machineState?: MachineState | null;
|
|
@@ -34311,6 +34249,7 @@ export interface DataHealthDto {
|
|
|
34311
34249
|
|
|
34312
34250
|
export interface MachineDataHealthDto {
|
|
34313
34251
|
assetId: number;
|
|
34252
|
+
assetExternalId: string;
|
|
34314
34253
|
name: string;
|
|
34315
34254
|
description?: string | null;
|
|
34316
34255
|
state?: string | null;
|
|
@@ -34330,6 +34269,7 @@ export interface PowerRegionDto {
|
|
|
34330
34269
|
|
|
34331
34270
|
export interface ConsumptionDto {
|
|
34332
34271
|
assetId: number;
|
|
34272
|
+
assetExternalId: string;
|
|
34333
34273
|
assetName: string;
|
|
34334
34274
|
kwh: number;
|
|
34335
34275
|
co2Equivalent?: number | null;
|
|
@@ -34339,9 +34279,11 @@ export interface ConsumptionDto {
|
|
|
34339
34279
|
|
|
34340
34280
|
export interface AssetConsumptionDto {
|
|
34341
34281
|
timeseriesId: number;
|
|
34282
|
+
timeseriesExternalId?: string | null;
|
|
34342
34283
|
timeseriesName: string;
|
|
34343
34284
|
kwh: number;
|
|
34344
34285
|
assetId: number;
|
|
34286
|
+
assetExternalId?: string | null;
|
|
34345
34287
|
assetName: string;
|
|
34346
34288
|
co2Equivalent?: number | null;
|
|
34347
34289
|
co2EquivalentNotAdjustedForLocalProduction?: number | null;
|
|
@@ -34349,6 +34291,7 @@ export interface AssetConsumptionDto {
|
|
|
34349
34291
|
|
|
34350
34292
|
export interface GetConsumption {
|
|
34351
34293
|
assetId?: number | null;
|
|
34294
|
+
assetExternalId?: string | null;
|
|
34352
34295
|
start?: Date | null;
|
|
34353
34296
|
end?: Date | null;
|
|
34354
34297
|
}
|
|
@@ -34360,8 +34303,10 @@ export interface PowerDto {
|
|
|
34360
34303
|
|
|
34361
34304
|
export interface AssetPowerDto {
|
|
34362
34305
|
timeseriesId?: number;
|
|
34306
|
+
timeseriesExternalId?: string | null;
|
|
34363
34307
|
timeseriesName?: string | null;
|
|
34364
34308
|
assetId?: number;
|
|
34309
|
+
assetExternalId?: string | null;
|
|
34365
34310
|
assetName?: string | null;
|
|
34366
34311
|
timeSeriesDataPoints?: NumericDataPointDto[] | null;
|
|
34367
34312
|
}
|
|
@@ -34375,7 +34320,8 @@ export interface NumericDataPointDto {
|
|
|
34375
34320
|
}
|
|
34376
34321
|
|
|
34377
34322
|
export interface GetPower {
|
|
34378
|
-
assetId
|
|
34323
|
+
assetId?: number | null;
|
|
34324
|
+
assetExternalId?: string | null;
|
|
34379
34325
|
granularity?: string | null;
|
|
34380
34326
|
start?: Date | null;
|
|
34381
34327
|
end?: Date | null;
|
|
@@ -34908,6 +34854,7 @@ export interface MachineStateDto {
|
|
|
34908
34854
|
state: string;
|
|
34909
34855
|
machineState: MachineState;
|
|
34910
34856
|
startTime: Date;
|
|
34857
|
+
assetExternalId: string;
|
|
34911
34858
|
}
|
|
34912
34859
|
|
|
34913
34860
|
export interface DowntimeMachineStateDto {
|
|
@@ -34927,6 +34874,7 @@ export interface SingleResourceErpDataListDto {
|
|
|
34927
34874
|
activeOrders: ResourceErpDataDto[];
|
|
34928
34875
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
34929
34876
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
34877
|
+
assetExternalId: string;
|
|
34930
34878
|
}
|
|
34931
34879
|
|
|
34932
34880
|
export interface ResourceErpDataDto {
|
|
@@ -35303,6 +35251,7 @@ export interface ResourceGroupUtilizationV2Dto {
|
|
|
35303
35251
|
|
|
35304
35252
|
export interface ResourceUtilizationV3Dto {
|
|
35305
35253
|
id?: number;
|
|
35254
|
+
externalId: string;
|
|
35306
35255
|
name: string;
|
|
35307
35256
|
description?: string | null;
|
|
35308
35257
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -36495,6 +36444,7 @@ export interface SingleMachineErpDataListDto {
|
|
|
36495
36444
|
activeOrders: MachineErpDataDto[];
|
|
36496
36445
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
36497
36446
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
36447
|
+
assetExternalId: string;
|
|
36498
36448
|
}
|
|
36499
36449
|
|
|
36500
36450
|
export interface MachineErpDataDto {
|
|
@@ -36541,6 +36491,7 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
36541
36491
|
export interface LiveMachineDataDto {
|
|
36542
36492
|
assetId?: number;
|
|
36543
36493
|
dataPoints?: LiveMachineDataPointDto[];
|
|
36494
|
+
assetExternalId: string;
|
|
36544
36495
|
}
|
|
36545
36496
|
|
|
36546
36497
|
export interface LiveMachineDataPointDto {
|
|
@@ -36553,6 +36504,7 @@ export interface LiveMachineDataPointDto {
|
|
|
36553
36504
|
export interface TimeseriesGraphDto {
|
|
36554
36505
|
assetId?: number;
|
|
36555
36506
|
series?: TimeseriesGraphSeriesDto[];
|
|
36507
|
+
assetExternalId: string;
|
|
36556
36508
|
}
|
|
36557
36509
|
|
|
36558
36510
|
export interface TimeseriesGraphSeriesDto {
|
|
@@ -37705,11 +37657,13 @@ export interface AssetDto {
|
|
|
37705
37657
|
metadata?: { [key: string]: string; } | null;
|
|
37706
37658
|
aggregates?: any | null;
|
|
37707
37659
|
parentId?: number | null;
|
|
37660
|
+
parentExternalId?: string | null;
|
|
37708
37661
|
source?: string | null;
|
|
37709
37662
|
id?: number | null;
|
|
37710
37663
|
createdTime?: number | null;
|
|
37711
37664
|
lastUpdatedTime?: number | null;
|
|
37712
37665
|
rootId?: number | null;
|
|
37666
|
+
rootExternalId?: string | null;
|
|
37713
37667
|
}
|
|
37714
37668
|
|
|
37715
37669
|
export interface AssetStructureDto {
|
|
@@ -37729,7 +37683,8 @@ export interface AssetSimpleStructureDto {
|
|
|
37729
37683
|
}
|
|
37730
37684
|
|
|
37731
37685
|
export interface CreateAsset {
|
|
37732
|
-
parentId
|
|
37686
|
+
parentId?: number | null;
|
|
37687
|
+
parentExternalId?: string | null;
|
|
37733
37688
|
externalId: string;
|
|
37734
37689
|
name: string;
|
|
37735
37690
|
description: string;
|
|
@@ -37738,7 +37693,8 @@ export interface CreateAsset {
|
|
|
37738
37693
|
}
|
|
37739
37694
|
|
|
37740
37695
|
export interface UpdateAssetRequest {
|
|
37741
|
-
parentId
|
|
37696
|
+
parentId?: number | null;
|
|
37697
|
+
parentExternalId?: string | null;
|
|
37742
37698
|
name: string;
|
|
37743
37699
|
description: string;
|
|
37744
37700
|
metadata: { [key: string]: string; };
|
|
@@ -40824,8 +40780,6 @@ export interface UploadRequest {
|
|
|
40824
40780
|
isMarkedDrawing?: boolean | null;
|
|
40825
40781
|
}
|
|
40826
40782
|
|
|
40827
|
-
export type SchemaFileSlot = "Drawing" | "ProjectFile" | "MarkedDrawing" | "SourceFile";
|
|
40828
|
-
|
|
40829
40783
|
export interface MeasurementFormImportStatusDto {
|
|
40830
40784
|
progress: number;
|
|
40831
40785
|
totalElements: number;
|
|
@@ -41164,14 +41118,6 @@ export interface CountMeasurementFormSchemasRequest {
|
|
|
41164
41118
|
schemaCreator?: boolean | null;
|
|
41165
41119
|
}
|
|
41166
41120
|
|
|
41167
|
-
export interface MeasurementFormSchemaFileDto {
|
|
41168
|
-
slot: SchemaFileSlot;
|
|
41169
|
-
title: string;
|
|
41170
|
-
url: string;
|
|
41171
|
-
size?: number | null;
|
|
41172
|
-
lastModified?: Date | null;
|
|
41173
|
-
}
|
|
41174
|
-
|
|
41175
41121
|
export interface MeasurementFormSchemaVersionDto {
|
|
41176
41122
|
id: string;
|
|
41177
41123
|
versionId: number;
|