@ignos/api-client 20261109.354.1 → 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 +114 -142
- package/lib/ignosportal-api.js +23 -113
- package/package.json +1 -1
- package/src/ignosportal-api.ts +124 -234
package/src/ignosportal-api.ts
CHANGED
|
@@ -1461,31 +1461,31 @@ 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
1468
|
*/
|
|
1469
|
-
getMachineUtilizations(
|
|
1469
|
+
getMachineUtilizations(assetExternalId: string | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto>;
|
|
1470
1470
|
|
|
1471
|
-
getMachineUtilization(id:
|
|
1471
|
+
getMachineUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto>;
|
|
1472
1472
|
|
|
1473
1473
|
/**
|
|
1474
1474
|
* @param startTime (optional)
|
|
1475
1475
|
* @param endTime (optional)
|
|
1476
1476
|
* @deprecated
|
|
1477
1477
|
*/
|
|
1478
|
-
getUtilizationDetailsForMachine(id:
|
|
1478
|
+
getUtilizationDetailsForMachine(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1479
1479
|
|
|
1480
|
-
getResourceTimelines(id:
|
|
1480
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1481
1481
|
|
|
1482
|
-
listMachineStates(id:
|
|
1482
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1483
1483
|
|
|
1484
|
-
getMachineStatesSummary(id:
|
|
1484
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1485
1485
|
|
|
1486
1486
|
listMachineUptimesToday(request: ListMachineUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
|
|
1487
1487
|
|
|
1488
|
-
listPowerOnUtilizationDatapoints(
|
|
1488
|
+
listPowerOnUtilizationDatapoints(externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList>;
|
|
1489
1489
|
|
|
1490
1490
|
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
1491
1491
|
|
|
@@ -1509,15 +1509,15 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1509
1509
|
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
1510
1510
|
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
1511
1511
|
client and server
|
|
1512
|
-
* @param
|
|
1512
|
+
* @param assetExternalId (optional)
|
|
1513
1513
|
* @param favorites (optional)
|
|
1514
1514
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1515
1515
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1516
1516
|
*/
|
|
1517
|
-
getMachineUtilizations(
|
|
1517
|
+
getMachineUtilizations(assetExternalId: string | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto> {
|
|
1518
1518
|
let url_ = this.baseUrl + "/machineutilization?";
|
|
1519
|
-
if (
|
|
1520
|
-
url_ += "
|
|
1519
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
1520
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
1521
1521
|
if (favorites === null)
|
|
1522
1522
|
throw new globalThis.Error("The parameter 'favorites' cannot be null.");
|
|
1523
1523
|
else if (favorites !== undefined)
|
|
@@ -1559,7 +1559,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1559
1559
|
return Promise.resolve<UtilizationListDto>(null as any);
|
|
1560
1560
|
}
|
|
1561
1561
|
|
|
1562
|
-
getMachineUtilization(id:
|
|
1562
|
+
getMachineUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto> {
|
|
1563
1563
|
let url_ = this.baseUrl + "/machineutilization/{id}?";
|
|
1564
1564
|
if (id === undefined || id === null)
|
|
1565
1565
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1608,7 +1608,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1608
1608
|
* @param endTime (optional)
|
|
1609
1609
|
* @deprecated
|
|
1610
1610
|
*/
|
|
1611
|
-
getUtilizationDetailsForMachine(id:
|
|
1611
|
+
getUtilizationDetailsForMachine(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1612
1612
|
let url_ = this.baseUrl + "/machineutilization/{id}/utilization?";
|
|
1613
1613
|
if (id === undefined || id === null)
|
|
1614
1614
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1650,7 +1650,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1650
1650
|
return Promise.resolve<MachineStatesSummaryDto>(null as any);
|
|
1651
1651
|
}
|
|
1652
1652
|
|
|
1653
|
-
getResourceTimelines(id:
|
|
1653
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
1654
1654
|
let url_ = this.baseUrl + "/machineutilization/{id}/resource/timelines?";
|
|
1655
1655
|
if (id === undefined || id === null)
|
|
1656
1656
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1696,7 +1696,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1696
1696
|
return Promise.resolve<TimelinesDto>(null as any);
|
|
1697
1697
|
}
|
|
1698
1698
|
|
|
1699
|
-
listMachineStates(id:
|
|
1699
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
1700
1700
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
|
|
1701
1701
|
if (id === undefined || id === null)
|
|
1702
1702
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1738,7 +1738,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1738
1738
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
1739
1739
|
}
|
|
1740
1740
|
|
|
1741
|
-
getMachineStatesSummary(id:
|
|
1741
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1742
1742
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states/summary?";
|
|
1743
1743
|
if (id === undefined || id === null)
|
|
1744
1744
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1819,10 +1819,8 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1819
1819
|
return Promise.resolve<MachineUptimesAggregateDto>(null as any);
|
|
1820
1820
|
}
|
|
1821
1821
|
|
|
1822
|
-
listPowerOnUtilizationDatapoints(
|
|
1822
|
+
listPowerOnUtilizationDatapoints(externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList> {
|
|
1823
1823
|
let url_ = this.baseUrl + "/machineutilization/power-on/datapoints?";
|
|
1824
|
-
if (id !== undefined && id !== null)
|
|
1825
|
-
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
1826
1824
|
if (externalId !== undefined && externalId !== null)
|
|
1827
1825
|
url_ += "externalId=" + encodeURIComponent("" + externalId) + "&";
|
|
1828
1826
|
if (nDays !== undefined && nDays !== null)
|
|
@@ -1955,24 +1953,24 @@ export interface IResourceUtilizationClient {
|
|
|
1955
1953
|
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
1956
1954
|
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
1957
1955
|
client and server
|
|
1958
|
-
* @param
|
|
1956
|
+
* @param assetExternalId (optional)
|
|
1959
1957
|
* @param favorites (optional)
|
|
1960
1958
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1961
1959
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1962
1960
|
*/
|
|
1963
|
-
getResourceUtilizations(
|
|
1961
|
+
getResourceUtilizations(assetExternalId: string | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto>;
|
|
1964
1962
|
|
|
1965
|
-
getResourceUtilization(id:
|
|
1963
|
+
getResourceUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto>;
|
|
1966
1964
|
|
|
1967
|
-
getResourceTimelines(id:
|
|
1965
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1968
1966
|
|
|
1969
|
-
listMachineStates(id:
|
|
1967
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1970
1968
|
|
|
1971
|
-
getMachineStatesSummary(id:
|
|
1969
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1972
1970
|
|
|
1973
1971
|
listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<ResourceUptimesAggregateDto>;
|
|
1974
1972
|
|
|
1975
|
-
listPowerOnUtilizationDatapoints(
|
|
1973
|
+
listPowerOnUtilizationDatapoints(externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList>;
|
|
1976
1974
|
|
|
1977
1975
|
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
1978
1976
|
|
|
@@ -1996,15 +1994,15 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
1996
1994
|
time zone. The current utilization is calculated starting from the start of the current date offset from UTC
|
|
1997
1995
|
by the offset used. Pass in utcOffset to avoid problems relating to clock drift between
|
|
1998
1996
|
client and server
|
|
1999
|
-
* @param
|
|
1997
|
+
* @param assetExternalId (optional)
|
|
2000
1998
|
* @param favorites (optional)
|
|
2001
1999
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
2002
2000
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
2003
2001
|
*/
|
|
2004
|
-
getResourceUtilizations(
|
|
2002
|
+
getResourceUtilizations(assetExternalId: string | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto> {
|
|
2005
2003
|
let url_ = this.baseUrl + "/resourceutilization?";
|
|
2006
|
-
if (
|
|
2007
|
-
url_ += "
|
|
2004
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
2005
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
2008
2006
|
if (favorites === null)
|
|
2009
2007
|
throw new globalThis.Error("The parameter 'favorites' cannot be null.");
|
|
2010
2008
|
else if (favorites !== undefined)
|
|
@@ -2046,7 +2044,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2046
2044
|
return Promise.resolve<ResourceUtilizationListDto>(null as any);
|
|
2047
2045
|
}
|
|
2048
2046
|
|
|
2049
|
-
getResourceUtilization(id:
|
|
2047
|
+
getResourceUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto> {
|
|
2050
2048
|
let url_ = this.baseUrl + "/resourceutilization/{id}?";
|
|
2051
2049
|
if (id === undefined || id === null)
|
|
2052
2050
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2090,7 +2088,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2090
2088
|
return Promise.resolve<ResourceUtilizationDetailsDto>(null as any);
|
|
2091
2089
|
}
|
|
2092
2090
|
|
|
2093
|
-
getResourceTimelines(id:
|
|
2091
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
2094
2092
|
let url_ = this.baseUrl + "/resourceutilization/{id}/resource/timelines?";
|
|
2095
2093
|
if (id === undefined || id === null)
|
|
2096
2094
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2136,7 +2134,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2136
2134
|
return Promise.resolve<TimelinesDto>(null as any);
|
|
2137
2135
|
}
|
|
2138
2136
|
|
|
2139
|
-
listMachineStates(id:
|
|
2137
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
2140
2138
|
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states?";
|
|
2141
2139
|
if (id === undefined || id === null)
|
|
2142
2140
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2178,7 +2176,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2178
2176
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
2179
2177
|
}
|
|
2180
2178
|
|
|
2181
|
-
getMachineStatesSummary(id:
|
|
2179
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
2182
2180
|
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states/summary?";
|
|
2183
2181
|
if (id === undefined || id === null)
|
|
2184
2182
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2259,10 +2257,8 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2259
2257
|
return Promise.resolve<ResourceUptimesAggregateDto>(null as any);
|
|
2260
2258
|
}
|
|
2261
2259
|
|
|
2262
|
-
listPowerOnUtilizationDatapoints(
|
|
2260
|
+
listPowerOnUtilizationDatapoints(externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList> {
|
|
2263
2261
|
let url_ = this.baseUrl + "/resourceutilization/power-on/datapoints?";
|
|
2264
|
-
if (id !== undefined && id !== null)
|
|
2265
|
-
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
2266
2262
|
if (externalId !== undefined && externalId !== null)
|
|
2267
2263
|
url_ += "externalId=" + encodeURIComponent("" + externalId) + "&";
|
|
2268
2264
|
if (nDays !== undefined && nDays !== null)
|
|
@@ -3132,7 +3128,7 @@ export class UploadClient extends AuthorizedApiBase implements IUploadClient {
|
|
|
3132
3128
|
|
|
3133
3129
|
export interface ISystemHealthDashboardClient {
|
|
3134
3130
|
|
|
3135
|
-
getMachineDataHealth(
|
|
3131
|
+
getMachineDataHealth(assetExternalId: string | null | undefined): Promise<DataHealthDto>;
|
|
3136
3132
|
}
|
|
3137
3133
|
|
|
3138
3134
|
export class SystemHealthDashboardClient extends AuthorizedApiBase implements ISystemHealthDashboardClient {
|
|
@@ -3145,10 +3141,10 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase implements IS
|
|
|
3145
3141
|
this.baseUrl = baseUrl ?? "";
|
|
3146
3142
|
}
|
|
3147
3143
|
|
|
3148
|
-
getMachineDataHealth(
|
|
3144
|
+
getMachineDataHealth(assetExternalId: string | null | undefined): Promise<DataHealthDto> {
|
|
3149
3145
|
let url_ = this.baseUrl + "/systemhealthdashboard?";
|
|
3150
|
-
if (
|
|
3151
|
-
url_ += "
|
|
3146
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3147
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3152
3148
|
url_ = url_.replace(/[?&]$/, "");
|
|
3153
3149
|
|
|
3154
3150
|
let options_: RequestInit = {
|
|
@@ -5305,7 +5301,7 @@ export interface IKpiResourceClient {
|
|
|
5305
5301
|
|
|
5306
5302
|
getResourceDailyUptime(resourceExternalId: string | undefined, date: Date | undefined, utcOffset: number | undefined): Promise<ResourceDailyUptimeDto>;
|
|
5307
5303
|
|
|
5308
|
-
getUptimeNormalTrend(
|
|
5304
|
+
getUptimeNormalTrend(assetExternalId: string | null | undefined, date: Date | null | undefined, utcOffset: number | null | undefined): Promise<UptimeTrendDataPointDto[]>;
|
|
5309
5305
|
}
|
|
5310
5306
|
|
|
5311
5307
|
export class KpiResourceClient extends AuthorizedApiBase implements IKpiResourceClient {
|
|
@@ -5420,10 +5416,8 @@ export class KpiResourceClient extends AuthorizedApiBase implements IKpiResource
|
|
|
5420
5416
|
return Promise.resolve<ResourceDailyUptimeDto>(null as any);
|
|
5421
5417
|
}
|
|
5422
5418
|
|
|
5423
|
-
getUptimeNormalTrend(
|
|
5419
|
+
getUptimeNormalTrend(assetExternalId: string | null | undefined, date: Date | null | undefined, utcOffset: number | null | undefined): Promise<UptimeTrendDataPointDto[]> {
|
|
5424
5420
|
let url_ = this.baseUrl + "/kpiresource/normal-day-trendline?";
|
|
5425
|
-
if (assetId !== undefined && assetId !== null)
|
|
5426
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
5427
5421
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
5428
5422
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
5429
5423
|
if (date !== undefined && date !== null)
|
|
@@ -5476,19 +5470,19 @@ export interface IResourcesClient {
|
|
|
5476
5470
|
|
|
5477
5471
|
deleteResourceGroup(id: string): Promise<void>;
|
|
5478
5472
|
|
|
5479
|
-
listCurrentMachineStates(
|
|
5473
|
+
listCurrentMachineStates(assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
5480
5474
|
|
|
5481
|
-
listMachineStates(id:
|
|
5475
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
5482
5476
|
|
|
5483
|
-
listLastDowntimeMachineStates(id:
|
|
5477
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
5484
5478
|
|
|
5485
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5479
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
5486
5480
|
|
|
5487
|
-
getMachineStatesSummary(id:
|
|
5481
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
5488
5482
|
|
|
5489
5483
|
listResourceErpData(): Promise<ResourceErpDataListDto>;
|
|
5490
5484
|
|
|
5491
|
-
getResourceErpData(id:
|
|
5485
|
+
getResourceErpData(id: string): Promise<ResourceErpDataDto>;
|
|
5492
5486
|
|
|
5493
5487
|
getResourceUtilizationSummary(): Promise<ResourceUtilizationSummaryDto>;
|
|
5494
5488
|
|
|
@@ -5504,7 +5498,7 @@ export interface IResourcesClient {
|
|
|
5504
5498
|
|
|
5505
5499
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
5506
5500
|
|
|
5507
|
-
deleteMachine(id:
|
|
5501
|
+
deleteMachine(id: string): Promise<void>;
|
|
5508
5502
|
|
|
5509
5503
|
/**
|
|
5510
5504
|
* @deprecated
|
|
@@ -5711,10 +5705,10 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5711
5705
|
return Promise.resolve<void>(null as any);
|
|
5712
5706
|
}
|
|
5713
5707
|
|
|
5714
|
-
listCurrentMachineStates(
|
|
5708
|
+
listCurrentMachineStates(assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
5715
5709
|
let url_ = this.baseUrl + "/resources/states/now?";
|
|
5716
|
-
if (
|
|
5717
|
-
url_ += "
|
|
5710
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
5711
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
5718
5712
|
url_ = url_.replace(/[?&]$/, "");
|
|
5719
5713
|
|
|
5720
5714
|
let options_: RequestInit = {
|
|
@@ -5748,7 +5742,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5748
5742
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
5749
5743
|
}
|
|
5750
5744
|
|
|
5751
|
-
listMachineStates(id:
|
|
5745
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
5752
5746
|
let url_ = this.baseUrl + "/resources/{id}/states?";
|
|
5753
5747
|
if (id === undefined || id === null)
|
|
5754
5748
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5790,7 +5784,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5790
5784
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
5791
5785
|
}
|
|
5792
5786
|
|
|
5793
|
-
listLastDowntimeMachineStates(id:
|
|
5787
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
5794
5788
|
let url_ = this.baseUrl + "/resources/{id}/lastdowntimestates?";
|
|
5795
5789
|
if (id === undefined || id === null)
|
|
5796
5790
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5832,7 +5826,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5832
5826
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
5833
5827
|
}
|
|
5834
5828
|
|
|
5835
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5829
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
5836
5830
|
let url_ = this.baseUrl + "/resources/{id}/statewithdowntimeperiods?";
|
|
5837
5831
|
if (id === undefined || id === null)
|
|
5838
5832
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5874,7 +5868,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5874
5868
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
5875
5869
|
}
|
|
5876
5870
|
|
|
5877
|
-
getMachineStatesSummary(id:
|
|
5871
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
5878
5872
|
let url_ = this.baseUrl + "/resources/{id}/states/summary?";
|
|
5879
5873
|
if (id === undefined || id === null)
|
|
5880
5874
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5951,7 +5945,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5951
5945
|
return Promise.resolve<ResourceErpDataListDto>(null as any);
|
|
5952
5946
|
}
|
|
5953
5947
|
|
|
5954
|
-
getResourceErpData(id:
|
|
5948
|
+
getResourceErpData(id: string): Promise<ResourceErpDataDto> {
|
|
5955
5949
|
let url_ = this.baseUrl + "/resources/{id}/erp";
|
|
5956
5950
|
if (id === undefined || id === null)
|
|
5957
5951
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6242,7 +6236,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
6242
6236
|
return Promise.resolve<void>(null as any);
|
|
6243
6237
|
}
|
|
6244
6238
|
|
|
6245
|
-
deleteMachine(id:
|
|
6239
|
+
deleteMachine(id: string): Promise<void> {
|
|
6246
6240
|
let url_ = this.baseUrl + "/resources/{id}";
|
|
6247
6241
|
if (id === undefined || id === null)
|
|
6248
6242
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -7249,11 +7243,10 @@ export interface IUtilizationClient {
|
|
|
7249
7243
|
* @param startTime (optional)
|
|
7250
7244
|
* @param endTime (optional)
|
|
7251
7245
|
* @param ianaTimeZone (optional)
|
|
7252
|
-
* @param assetId (optional)
|
|
7253
7246
|
* @param assetExternalId (optional)
|
|
7254
7247
|
* @deprecated
|
|
7255
7248
|
*/
|
|
7256
|
-
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>;
|
|
7257
7250
|
|
|
7258
7251
|
getCompanyUtilizationDatapoints(request: UtilizationInputRequest): Promise<CompanyResourceUtilizationDatapointListDto>;
|
|
7259
7252
|
|
|
@@ -7270,7 +7263,7 @@ export interface IUtilizationClient {
|
|
|
7270
7263
|
|
|
7271
7264
|
getCrossCompanyResourceUtilization(utilizationType: ResourceUtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyResourceUtilizationDto>;
|
|
7272
7265
|
|
|
7273
|
-
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>;
|
|
7274
7267
|
|
|
7275
7268
|
getCompanyResourceUtilizationDatapoints(utilizationType: ResourceUtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyResourceUtilizationDatapointListDto>;
|
|
7276
7269
|
|
|
@@ -7385,11 +7378,10 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
7385
7378
|
* @param startTime (optional)
|
|
7386
7379
|
* @param endTime (optional)
|
|
7387
7380
|
* @param ianaTimeZone (optional)
|
|
7388
|
-
* @param assetId (optional)
|
|
7389
7381
|
* @param assetExternalId (optional)
|
|
7390
7382
|
* @deprecated
|
|
7391
7383
|
*/
|
|
7392
|
-
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> {
|
|
7393
7385
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
7394
7386
|
if (utilizationType === null)
|
|
7395
7387
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -7403,8 +7395,6 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
7403
7395
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
7404
7396
|
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
7405
7397
|
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
7406
|
-
if (assetId !== undefined && assetId !== null)
|
|
7407
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
7408
7398
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
7409
7399
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
7410
7400
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -7627,7 +7617,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
7627
7617
|
return Promise.resolve<CrossCompanyResourceUtilizationDto>(null as any);
|
|
7628
7618
|
}
|
|
7629
7619
|
|
|
7630
|
-
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> {
|
|
7631
7621
|
let url_ = this.baseUrl + "/pulseutilization/datapoints?";
|
|
7632
7622
|
if (utilizationType === null)
|
|
7633
7623
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -7641,8 +7631,6 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
7641
7631
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
7642
7632
|
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
7643
7633
|
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
7644
|
-
if (assetId !== undefined && assetId !== null)
|
|
7645
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
7646
7634
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
7647
7635
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
7648
7636
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -12387,7 +12375,7 @@ export interface IKpiClient {
|
|
|
12387
12375
|
|
|
12388
12376
|
getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined, utcOffset: number | undefined): Promise<MachineDailyUptimeDto>;
|
|
12389
12377
|
|
|
12390
|
-
getUptimeNormalTrend(
|
|
12378
|
+
getUptimeNormalTrend(assetExternalId: string | null | undefined, date: Date | null | undefined, utcOffset: number | null | undefined): Promise<UptimeTrendDataPointDto[]>;
|
|
12391
12379
|
}
|
|
12392
12380
|
|
|
12393
12381
|
export class KpiClient extends AuthorizedApiBase implements IKpiClient {
|
|
@@ -12502,10 +12490,8 @@ export class KpiClient extends AuthorizedApiBase implements IKpiClient {
|
|
|
12502
12490
|
return Promise.resolve<MachineDailyUptimeDto>(null as any);
|
|
12503
12491
|
}
|
|
12504
12492
|
|
|
12505
|
-
getUptimeNormalTrend(
|
|
12493
|
+
getUptimeNormalTrend(assetExternalId: string | null | undefined, date: Date | null | undefined, utcOffset: number | null | undefined): Promise<UptimeTrendDataPointDto[]> {
|
|
12506
12494
|
let url_ = this.baseUrl + "/kpi/normal-day-trendline?";
|
|
12507
|
-
if (assetId !== undefined && assetId !== null)
|
|
12508
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
12509
12495
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
12510
12496
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
12511
12497
|
if (date !== undefined && date !== null)
|
|
@@ -12558,19 +12544,19 @@ export interface IMachinesClient {
|
|
|
12558
12544
|
|
|
12559
12545
|
deleteMachineGroup(id: string): Promise<void>;
|
|
12560
12546
|
|
|
12561
|
-
listCurrentMachineStates(
|
|
12547
|
+
listCurrentMachineStates(assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
12562
12548
|
|
|
12563
|
-
listMachineStates(id:
|
|
12549
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
12564
12550
|
|
|
12565
|
-
listLastDowntimeMachineStates(id:
|
|
12551
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
12566
12552
|
|
|
12567
|
-
getMachineStateWithDowntimePeriods(id:
|
|
12553
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
12568
12554
|
|
|
12569
|
-
getMachineStatesSummary(id:
|
|
12555
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
12570
12556
|
|
|
12571
12557
|
listMachineErpData(): Promise<MachineErpDataListDto>;
|
|
12572
12558
|
|
|
12573
|
-
getMachineErpData(id:
|
|
12559
|
+
getMachineErpData(id: string): Promise<MachineErpDataDto>;
|
|
12574
12560
|
|
|
12575
12561
|
/**
|
|
12576
12562
|
* @param startTime (optional)
|
|
@@ -12593,7 +12579,7 @@ export interface IMachinesClient {
|
|
|
12593
12579
|
|
|
12594
12580
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
12595
12581
|
|
|
12596
|
-
deleteMachine(id:
|
|
12582
|
+
deleteMachine(id: string): Promise<void>;
|
|
12597
12583
|
}
|
|
12598
12584
|
|
|
12599
12585
|
export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
@@ -12793,10 +12779,10 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12793
12779
|
return Promise.resolve<void>(null as any);
|
|
12794
12780
|
}
|
|
12795
12781
|
|
|
12796
|
-
listCurrentMachineStates(
|
|
12782
|
+
listCurrentMachineStates(assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
12797
12783
|
let url_ = this.baseUrl + "/machines/states/now?";
|
|
12798
|
-
if (
|
|
12799
|
-
url_ += "
|
|
12784
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
12785
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
12800
12786
|
url_ = url_.replace(/[?&]$/, "");
|
|
12801
12787
|
|
|
12802
12788
|
let options_: RequestInit = {
|
|
@@ -12830,7 +12816,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12830
12816
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
12831
12817
|
}
|
|
12832
12818
|
|
|
12833
|
-
listMachineStates(id:
|
|
12819
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
12834
12820
|
let url_ = this.baseUrl + "/machines/{id}/states?";
|
|
12835
12821
|
if (id === undefined || id === null)
|
|
12836
12822
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12872,7 +12858,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12872
12858
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
12873
12859
|
}
|
|
12874
12860
|
|
|
12875
|
-
listLastDowntimeMachineStates(id:
|
|
12861
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
12876
12862
|
let url_ = this.baseUrl + "/machines/{id}/lastdowntimestates?";
|
|
12877
12863
|
if (id === undefined || id === null)
|
|
12878
12864
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12914,7 +12900,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12914
12900
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
12915
12901
|
}
|
|
12916
12902
|
|
|
12917
|
-
getMachineStateWithDowntimePeriods(id:
|
|
12903
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
12918
12904
|
let url_ = this.baseUrl + "/machines/{id}/statewithdowntimeperiods?";
|
|
12919
12905
|
if (id === undefined || id === null)
|
|
12920
12906
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12956,7 +12942,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12956
12942
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
12957
12943
|
}
|
|
12958
12944
|
|
|
12959
|
-
getMachineStatesSummary(id:
|
|
12945
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
12960
12946
|
let url_ = this.baseUrl + "/machines/{id}/states/summary?";
|
|
12961
12947
|
if (id === undefined || id === null)
|
|
12962
12948
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13033,7 +13019,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13033
13019
|
return Promise.resolve<MachineErpDataListDto>(null as any);
|
|
13034
13020
|
}
|
|
13035
13021
|
|
|
13036
|
-
getMachineErpData(id:
|
|
13022
|
+
getMachineErpData(id: string): Promise<MachineErpDataDto> {
|
|
13037
13023
|
let url_ = this.baseUrl + "/machines/{id}/erp";
|
|
13038
13024
|
if (id === undefined || id === null)
|
|
13039
13025
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13371,7 +13357,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13371
13357
|
return Promise.resolve<void>(null as any);
|
|
13372
13358
|
}
|
|
13373
13359
|
|
|
13374
|
-
deleteMachine(id:
|
|
13360
|
+
deleteMachine(id: string): Promise<void> {
|
|
13375
13361
|
let url_ = this.baseUrl + "/machines/{id}";
|
|
13376
13362
|
if (id === undefined || id === null)
|
|
13377
13363
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13409,11 +13395,11 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13409
13395
|
|
|
13410
13396
|
export interface IMachineDataClient {
|
|
13411
13397
|
|
|
13412
|
-
getLiveMachineData(assetId:
|
|
13398
|
+
getLiveMachineData(assetId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto>;
|
|
13413
13399
|
|
|
13414
|
-
getTimeseriesGraph(assetId:
|
|
13400
|
+
getTimeseriesGraph(assetId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto>;
|
|
13415
13401
|
|
|
13416
|
-
exportTimeseriesGraph(assetId:
|
|
13402
|
+
exportTimeseriesGraph(assetId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto>;
|
|
13417
13403
|
}
|
|
13418
13404
|
|
|
13419
13405
|
export class MachineDataClient extends AuthorizedApiBase implements IMachineDataClient {
|
|
@@ -13426,7 +13412,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13426
13412
|
this.baseUrl = baseUrl ?? "";
|
|
13427
13413
|
}
|
|
13428
13414
|
|
|
13429
|
-
getLiveMachineData(assetId:
|
|
13415
|
+
getLiveMachineData(assetId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto> {
|
|
13430
13416
|
let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
|
|
13431
13417
|
if (assetId === undefined || assetId === null)
|
|
13432
13418
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13468,7 +13454,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13468
13454
|
return Promise.resolve<LiveMachineDataDto>(null as any);
|
|
13469
13455
|
}
|
|
13470
13456
|
|
|
13471
|
-
getTimeseriesGraph(assetId:
|
|
13457
|
+
getTimeseriesGraph(assetId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto> {
|
|
13472
13458
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph?";
|
|
13473
13459
|
if (assetId === undefined || assetId === null)
|
|
13474
13460
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13518,7 +13504,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13518
13504
|
return Promise.resolve<TimeseriesGraphDto>(null as any);
|
|
13519
13505
|
}
|
|
13520
13506
|
|
|
13521
|
-
exportTimeseriesGraph(assetId:
|
|
13507
|
+
exportTimeseriesGraph(assetId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto> {
|
|
13522
13508
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph/export-csv";
|
|
13523
13509
|
if (assetId === undefined || assetId === null)
|
|
13524
13510
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -18823,11 +18809,11 @@ export interface IAssetsClient {
|
|
|
18823
18809
|
|
|
18824
18810
|
searchAssets(name: string | null | undefined, description: string | null | undefined, limit: number | undefined): Promise<AssetDto[]>;
|
|
18825
18811
|
|
|
18826
|
-
getAssetById(id:
|
|
18812
|
+
getAssetById(id: string): Promise<AssetDto>;
|
|
18827
18813
|
|
|
18828
|
-
updateAsset(id:
|
|
18814
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto>;
|
|
18829
18815
|
|
|
18830
|
-
getAssetStructureById(id:
|
|
18816
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto>;
|
|
18831
18817
|
|
|
18832
18818
|
/**
|
|
18833
18819
|
* @deprecated
|
|
@@ -18974,7 +18960,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
18974
18960
|
return Promise.resolve<AssetDto[]>(null as any);
|
|
18975
18961
|
}
|
|
18976
18962
|
|
|
18977
|
-
getAssetById(id:
|
|
18963
|
+
getAssetById(id: string): Promise<AssetDto> {
|
|
18978
18964
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
18979
18965
|
if (id === undefined || id === null)
|
|
18980
18966
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19012,7 +18998,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19012
18998
|
return Promise.resolve<AssetDto>(null as any);
|
|
19013
18999
|
}
|
|
19014
19000
|
|
|
19015
|
-
updateAsset(id:
|
|
19001
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto> {
|
|
19016
19002
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19017
19003
|
if (id === undefined || id === null)
|
|
19018
19004
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19054,7 +19040,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19054
19040
|
return Promise.resolve<AssetDto>(null as any);
|
|
19055
19041
|
}
|
|
19056
19042
|
|
|
19057
|
-
getAssetStructureById(id:
|
|
19043
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto> {
|
|
19058
19044
|
let url_ = this.baseUrl + "/assets/{id}/structure";
|
|
19059
19045
|
if (id === undefined || id === null)
|
|
19060
19046
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -27238,8 +27224,6 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
27238
27224
|
|
|
27239
27225
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
27240
27226
|
|
|
27241
|
-
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void>;
|
|
27242
|
-
|
|
27243
27227
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
27244
27228
|
|
|
27245
27229
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -27879,44 +27863,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
27879
27863
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
27880
27864
|
}
|
|
27881
27865
|
|
|
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
27866
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
|
|
27921
27867
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
27922
27868
|
if (id === undefined || id === null)
|
|
@@ -29516,8 +29462,6 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29516
29462
|
|
|
29517
29463
|
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
29518
29464
|
|
|
29519
|
-
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]>;
|
|
29520
|
-
|
|
29521
29465
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29522
29466
|
|
|
29523
29467
|
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
@@ -29668,44 +29612,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29668
29612
|
return Promise.resolve<MeasurementFormSchemaCountsDto>(null as any);
|
|
29669
29613
|
}
|
|
29670
29614
|
|
|
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
29615
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
29710
29616
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
29711
29617
|
if (id === undefined || id === null)
|
|
@@ -34003,7 +33909,7 @@ export interface UtilizationListDto {
|
|
|
34003
33909
|
}
|
|
34004
33910
|
|
|
34005
33911
|
export interface MachineUtilizationDto {
|
|
34006
|
-
|
|
33912
|
+
assetExternalId: string;
|
|
34007
33913
|
name: string;
|
|
34008
33914
|
description?: string | null;
|
|
34009
33915
|
state: string;
|
|
@@ -34050,7 +33956,7 @@ export interface PowerOnUtilizationDto extends UtilizationAveragesDto {
|
|
|
34050
33956
|
}
|
|
34051
33957
|
|
|
34052
33958
|
export interface UtilizationDetailsDto {
|
|
34053
|
-
|
|
33959
|
+
machineExternalId: string;
|
|
34054
33960
|
machineName: string;
|
|
34055
33961
|
machineStateText?: string | null;
|
|
34056
33962
|
machineState?: MachineState | null;
|
|
@@ -34165,7 +34071,7 @@ export interface PowerOnUtilizationList {
|
|
|
34165
34071
|
|
|
34166
34072
|
export interface Machine {
|
|
34167
34073
|
externalId?: string;
|
|
34168
|
-
id?: number;
|
|
34074
|
+
id?: number | null;
|
|
34169
34075
|
name?: string;
|
|
34170
34076
|
description?: string | null;
|
|
34171
34077
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
@@ -34181,7 +34087,7 @@ export interface ResourceUtilizationListDto {
|
|
|
34181
34087
|
}
|
|
34182
34088
|
|
|
34183
34089
|
export interface ResourceUtilizationDto {
|
|
34184
|
-
|
|
34090
|
+
assetExternalId: string;
|
|
34185
34091
|
name: string;
|
|
34186
34092
|
description?: string | null;
|
|
34187
34093
|
state: string;
|
|
@@ -34192,7 +34098,7 @@ export interface ResourceUtilizationDto {
|
|
|
34192
34098
|
}
|
|
34193
34099
|
|
|
34194
34100
|
export interface ResourceUtilizationDetailsDto {
|
|
34195
|
-
|
|
34101
|
+
resourceExternalId: string;
|
|
34196
34102
|
resourceName: string;
|
|
34197
34103
|
machineStateText?: string | null;
|
|
34198
34104
|
machineState?: MachineState | null;
|
|
@@ -34297,6 +34203,7 @@ export interface UploadInfoDto {
|
|
|
34297
34203
|
}
|
|
34298
34204
|
|
|
34299
34205
|
export interface UploadInfoCdfDto {
|
|
34206
|
+
externalId: string;
|
|
34300
34207
|
id: number;
|
|
34301
34208
|
url: string;
|
|
34302
34209
|
}
|
|
@@ -34310,7 +34217,7 @@ export interface DataHealthDto {
|
|
|
34310
34217
|
}
|
|
34311
34218
|
|
|
34312
34219
|
export interface MachineDataHealthDto {
|
|
34313
|
-
|
|
34220
|
+
assetExternalId: string;
|
|
34314
34221
|
name: string;
|
|
34315
34222
|
description?: string | null;
|
|
34316
34223
|
state?: string | null;
|
|
@@ -34329,7 +34236,7 @@ export interface PowerRegionDto {
|
|
|
34329
34236
|
}
|
|
34330
34237
|
|
|
34331
34238
|
export interface ConsumptionDto {
|
|
34332
|
-
|
|
34239
|
+
assetExternalId: string;
|
|
34333
34240
|
assetName: string;
|
|
34334
34241
|
kwh: number;
|
|
34335
34242
|
co2Equivalent?: number | null;
|
|
@@ -34338,17 +34245,17 @@ export interface ConsumptionDto {
|
|
|
34338
34245
|
}
|
|
34339
34246
|
|
|
34340
34247
|
export interface AssetConsumptionDto {
|
|
34341
|
-
|
|
34248
|
+
timeseriesExternalId: string;
|
|
34342
34249
|
timeseriesName: string;
|
|
34343
34250
|
kwh: number;
|
|
34344
|
-
|
|
34251
|
+
assetExternalId: string;
|
|
34345
34252
|
assetName: string;
|
|
34346
34253
|
co2Equivalent?: number | null;
|
|
34347
34254
|
co2EquivalentNotAdjustedForLocalProduction?: number | null;
|
|
34348
34255
|
}
|
|
34349
34256
|
|
|
34350
34257
|
export interface GetConsumption {
|
|
34351
|
-
|
|
34258
|
+
assetExternalId?: string | null;
|
|
34352
34259
|
start?: Date | null;
|
|
34353
34260
|
end?: Date | null;
|
|
34354
34261
|
}
|
|
@@ -34359,9 +34266,9 @@ export interface PowerDto {
|
|
|
34359
34266
|
}
|
|
34360
34267
|
|
|
34361
34268
|
export interface AssetPowerDto {
|
|
34362
|
-
|
|
34269
|
+
timeseriesExternalId?: string | null;
|
|
34363
34270
|
timeseriesName?: string | null;
|
|
34364
|
-
|
|
34271
|
+
assetExternalId?: string | null;
|
|
34365
34272
|
assetName?: string | null;
|
|
34366
34273
|
timeSeriesDataPoints?: NumericDataPointDto[] | null;
|
|
34367
34274
|
}
|
|
@@ -34375,7 +34282,7 @@ export interface NumericDataPointDto {
|
|
|
34375
34282
|
}
|
|
34376
34283
|
|
|
34377
34284
|
export interface GetPower {
|
|
34378
|
-
|
|
34285
|
+
assetExternalId: string;
|
|
34379
34286
|
granularity?: string | null;
|
|
34380
34287
|
start?: Date | null;
|
|
34381
34288
|
end?: Date | null;
|
|
@@ -34855,7 +34762,7 @@ export interface UptimeTrendDataPointDto {
|
|
|
34855
34762
|
}
|
|
34856
34763
|
|
|
34857
34764
|
export interface ApplicationResourcesResourceDto {
|
|
34858
|
-
id
|
|
34765
|
+
id?: number | null;
|
|
34859
34766
|
externalId: string;
|
|
34860
34767
|
name: string;
|
|
34861
34768
|
description?: string | null;
|
|
@@ -34875,7 +34782,6 @@ export interface ApplicationResourcesResourceGroupDto {
|
|
|
34875
34782
|
}
|
|
34876
34783
|
|
|
34877
34784
|
export interface ResourceGroupMemberDto {
|
|
34878
|
-
id: number;
|
|
34879
34785
|
externalId: string;
|
|
34880
34786
|
name: string;
|
|
34881
34787
|
description?: string | null;
|
|
@@ -34902,7 +34808,7 @@ export interface MachineStateListDto {
|
|
|
34902
34808
|
}
|
|
34903
34809
|
|
|
34904
34810
|
export interface MachineStateDto {
|
|
34905
|
-
|
|
34811
|
+
assetExternalId: string;
|
|
34906
34812
|
name: string;
|
|
34907
34813
|
description?: string | null;
|
|
34908
34814
|
state: string;
|
|
@@ -34921,7 +34827,7 @@ export interface ResourceErpDataListDto {
|
|
|
34921
34827
|
}
|
|
34922
34828
|
|
|
34923
34829
|
export interface SingleResourceErpDataListDto {
|
|
34924
|
-
|
|
34830
|
+
assetExternalId: string;
|
|
34925
34831
|
name: string;
|
|
34926
34832
|
description?: string;
|
|
34927
34833
|
activeOrders: ResourceErpDataDto[];
|
|
@@ -35045,7 +34951,7 @@ export interface ResourceGroupUtilizationDto {
|
|
|
35045
34951
|
}
|
|
35046
34952
|
|
|
35047
34953
|
export interface ResourceUtilizationV2Dto {
|
|
35048
|
-
id?: number;
|
|
34954
|
+
id?: number | null;
|
|
35049
34955
|
name: string;
|
|
35050
34956
|
description?: string | null;
|
|
35051
34957
|
utilization: UtilizationDto;
|
|
@@ -35064,7 +34970,7 @@ export interface OperatorAndMachineDto {
|
|
|
35064
34970
|
}
|
|
35065
34971
|
|
|
35066
34972
|
export interface MachineDto {
|
|
35067
|
-
id
|
|
34973
|
+
id?: number | null;
|
|
35068
34974
|
externalId: string;
|
|
35069
34975
|
name: string;
|
|
35070
34976
|
description?: string | null;
|
|
@@ -35302,7 +35208,8 @@ export interface ResourceGroupUtilizationV2Dto {
|
|
|
35302
35208
|
}
|
|
35303
35209
|
|
|
35304
35210
|
export interface ResourceUtilizationV3Dto {
|
|
35305
|
-
id?: number;
|
|
35211
|
+
id?: number | null;
|
|
35212
|
+
externalId: string;
|
|
35306
35213
|
name: string;
|
|
35307
35214
|
description?: string | null;
|
|
35308
35215
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -35342,7 +35249,7 @@ export interface MachineGroupUtilizationV2Dto {
|
|
|
35342
35249
|
}
|
|
35343
35250
|
|
|
35344
35251
|
export interface MachineUtilizationV3Dto {
|
|
35345
|
-
id?: number;
|
|
35252
|
+
id?: number | null;
|
|
35346
35253
|
name: string;
|
|
35347
35254
|
description?: string | null;
|
|
35348
35255
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -35356,7 +35263,7 @@ export interface UtilizationDatapointListDto {
|
|
|
35356
35263
|
|
|
35357
35264
|
export interface MachineUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
35358
35265
|
externalId: string;
|
|
35359
|
-
id
|
|
35266
|
+
id?: number | null;
|
|
35360
35267
|
name: string;
|
|
35361
35268
|
description?: string | null;
|
|
35362
35269
|
}
|
|
@@ -35374,7 +35281,7 @@ export interface ResourceGroupUtilizationDatapointListDto extends UtilizationDat
|
|
|
35374
35281
|
|
|
35375
35282
|
export interface ResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
35376
35283
|
externalId: string;
|
|
35377
|
-
id
|
|
35284
|
+
id?: number | null;
|
|
35378
35285
|
name: string;
|
|
35379
35286
|
description?: string | null;
|
|
35380
35287
|
}
|
|
@@ -36462,7 +36369,6 @@ export interface MachineGroupDto {
|
|
|
36462
36369
|
}
|
|
36463
36370
|
|
|
36464
36371
|
export interface MachineGroupMemberDto {
|
|
36465
|
-
id: number;
|
|
36466
36372
|
externalId: string;
|
|
36467
36373
|
name: string;
|
|
36468
36374
|
description?: string | null;
|
|
@@ -36489,7 +36395,7 @@ export interface MachineErpDataListDto {
|
|
|
36489
36395
|
}
|
|
36490
36396
|
|
|
36491
36397
|
export interface SingleMachineErpDataListDto {
|
|
36492
|
-
|
|
36398
|
+
assetExternalId: string;
|
|
36493
36399
|
name: string;
|
|
36494
36400
|
description?: string;
|
|
36495
36401
|
activeOrders: MachineErpDataDto[];
|
|
@@ -36527,7 +36433,7 @@ export interface MachineGroupUtilizationDto {
|
|
|
36527
36433
|
}
|
|
36528
36434
|
|
|
36529
36435
|
export interface MachineUtilizationV2Dto {
|
|
36530
|
-
id?: number;
|
|
36436
|
+
id?: number | null;
|
|
36531
36437
|
name: string;
|
|
36532
36438
|
description?: string | null;
|
|
36533
36439
|
utilization: UtilizationDto;
|
|
@@ -36539,7 +36445,7 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
36539
36445
|
}
|
|
36540
36446
|
|
|
36541
36447
|
export interface LiveMachineDataDto {
|
|
36542
|
-
|
|
36448
|
+
assetExternalId?: string;
|
|
36543
36449
|
dataPoints?: LiveMachineDataPointDto[];
|
|
36544
36450
|
}
|
|
36545
36451
|
|
|
@@ -36551,7 +36457,7 @@ export interface LiveMachineDataPointDto {
|
|
|
36551
36457
|
}
|
|
36552
36458
|
|
|
36553
36459
|
export interface TimeseriesGraphDto {
|
|
36554
|
-
|
|
36460
|
+
assetExternalId?: string;
|
|
36555
36461
|
series?: TimeseriesGraphSeriesDto[];
|
|
36556
36462
|
}
|
|
36557
36463
|
|
|
@@ -37702,14 +37608,12 @@ export interface AssetDto {
|
|
|
37702
37608
|
externalId?: string | null;
|
|
37703
37609
|
name?: string | null;
|
|
37704
37610
|
description?: string | null;
|
|
37705
|
-
|
|
37706
|
-
|
|
37707
|
-
parentId?: number | null;
|
|
37611
|
+
parentExternalId?: string | null;
|
|
37612
|
+
rootExternalId?: string | null;
|
|
37708
37613
|
source?: string | null;
|
|
37709
37614
|
id?: number | null;
|
|
37710
37615
|
createdTime?: number | null;
|
|
37711
37616
|
lastUpdatedTime?: number | null;
|
|
37712
|
-
rootId?: number | null;
|
|
37713
37617
|
}
|
|
37714
37618
|
|
|
37715
37619
|
export interface AssetStructureDto {
|
|
@@ -37717,7 +37621,6 @@ export interface AssetStructureDto {
|
|
|
37717
37621
|
name?: string | null;
|
|
37718
37622
|
aggregatesDisplay?: string | null;
|
|
37719
37623
|
aggregates?: AssetSimpleStructureDto[] | null;
|
|
37720
|
-
id?: number | null;
|
|
37721
37624
|
createdTime?: number | null;
|
|
37722
37625
|
lastUpdatedTime?: number | null;
|
|
37723
37626
|
}
|
|
@@ -37725,23 +37628,20 @@ export interface AssetStructureDto {
|
|
|
37725
37628
|
export interface AssetSimpleStructureDto {
|
|
37726
37629
|
externalId?: string | null;
|
|
37727
37630
|
name?: string | null;
|
|
37728
|
-
id?: number | null;
|
|
37729
37631
|
}
|
|
37730
37632
|
|
|
37731
37633
|
export interface CreateAsset {
|
|
37732
|
-
|
|
37634
|
+
parentExternalId: string;
|
|
37733
37635
|
externalId: string;
|
|
37734
37636
|
name: string;
|
|
37735
37637
|
description: string;
|
|
37736
|
-
metadata: { [key: string]: string; };
|
|
37737
37638
|
source?: string | null;
|
|
37738
37639
|
}
|
|
37739
37640
|
|
|
37740
37641
|
export interface UpdateAssetRequest {
|
|
37741
|
-
|
|
37642
|
+
parentExternalId: string;
|
|
37742
37643
|
name: string;
|
|
37743
37644
|
description: string;
|
|
37744
|
-
metadata: { [key: string]: string; };
|
|
37745
37645
|
source?: string | null;
|
|
37746
37646
|
}
|
|
37747
37647
|
|
|
@@ -39278,7 +39178,6 @@ export interface ElectricalIotConfigDto {
|
|
|
39278
39178
|
export interface CreateElectricalIotConfig {
|
|
39279
39179
|
typeId?: string | null;
|
|
39280
39180
|
serialNumber?: string | null;
|
|
39281
|
-
assetId?: number | null;
|
|
39282
39181
|
assetExternalId?: string | null;
|
|
39283
39182
|
}
|
|
39284
39183
|
|
|
@@ -40156,7 +40055,8 @@ export interface ProcessMaterialCertificate {
|
|
|
40156
40055
|
}
|
|
40157
40056
|
|
|
40158
40057
|
export interface UploadFileCdfDto {
|
|
40159
|
-
id
|
|
40058
|
+
id?: number | null;
|
|
40059
|
+
externalId: string;
|
|
40160
40060
|
}
|
|
40161
40061
|
|
|
40162
40062
|
export interface ImaMaterialCheckReportDto {
|
|
@@ -40824,8 +40724,6 @@ export interface UploadRequest {
|
|
|
40824
40724
|
isMarkedDrawing?: boolean | null;
|
|
40825
40725
|
}
|
|
40826
40726
|
|
|
40827
|
-
export type SchemaFileSlot = "Drawing" | "ProjectFile" | "MarkedDrawing" | "SourceFile";
|
|
40828
|
-
|
|
40829
40727
|
export interface MeasurementFormImportStatusDto {
|
|
40830
40728
|
progress: number;
|
|
40831
40729
|
totalElements: number;
|
|
@@ -41164,14 +41062,6 @@ export interface CountMeasurementFormSchemasRequest {
|
|
|
41164
41062
|
schemaCreator?: boolean | null;
|
|
41165
41063
|
}
|
|
41166
41064
|
|
|
41167
|
-
export interface MeasurementFormSchemaFileDto {
|
|
41168
|
-
slot: SchemaFileSlot;
|
|
41169
|
-
title: string;
|
|
41170
|
-
url: string;
|
|
41171
|
-
size?: number | null;
|
|
41172
|
-
lastModified?: Date | null;
|
|
41173
|
-
}
|
|
41174
|
-
|
|
41175
41065
|
export interface MeasurementFormSchemaVersionDto {
|
|
41176
41066
|
id: string;
|
|
41177
41067
|
versionId: number;
|