@ignos/api-client 20261105.348.1-alpha → 20261106.349.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 +150 -332
- package/lib/ignosportal-api.js +47 -344
- package/package.json +1 -1
- package/src/ignosportal-api.ts +186 -659
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(
|
|
13398
|
+
getLiveMachineData(assetExternalId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto>;
|
|
13413
13399
|
|
|
13414
|
-
getTimeseriesGraph(
|
|
13400
|
+
getTimeseriesGraph(assetExternalId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto>;
|
|
13415
13401
|
|
|
13416
|
-
exportTimeseriesGraph(
|
|
13402
|
+
exportTimeseriesGraph(assetExternalId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto>;
|
|
13417
13403
|
}
|
|
13418
13404
|
|
|
13419
13405
|
export class MachineDataClient extends AuthorizedApiBase implements IMachineDataClient {
|
|
@@ -13426,11 +13412,11 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13426
13412
|
this.baseUrl = baseUrl ?? "";
|
|
13427
13413
|
}
|
|
13428
13414
|
|
|
13429
|
-
getLiveMachineData(
|
|
13430
|
-
let url_ = this.baseUrl + "/machinedata/{
|
|
13431
|
-
if (
|
|
13432
|
-
throw new globalThis.Error("The parameter '
|
|
13433
|
-
url_ = url_.replace("{
|
|
13415
|
+
getLiveMachineData(assetExternalId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto> {
|
|
13416
|
+
let url_ = this.baseUrl + "/machinedata/{assetExternalId}/live-machinedata?";
|
|
13417
|
+
if (assetExternalId === undefined || assetExternalId === null)
|
|
13418
|
+
throw new globalThis.Error("The parameter 'assetExternalId' must be defined.");
|
|
13419
|
+
url_ = url_.replace("{assetExternalId}", encodeURIComponent("" + assetExternalId));
|
|
13434
13420
|
if (externalIds === null)
|
|
13435
13421
|
throw new globalThis.Error("The parameter 'externalIds' cannot be null.");
|
|
13436
13422
|
else if (externalIds !== undefined)
|
|
@@ -13468,11 +13454,11 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13468
13454
|
return Promise.resolve<LiveMachineDataDto>(null as any);
|
|
13469
13455
|
}
|
|
13470
13456
|
|
|
13471
|
-
getTimeseriesGraph(
|
|
13472
|
-
let url_ = this.baseUrl + "/machinedata/{
|
|
13473
|
-
if (
|
|
13474
|
-
throw new globalThis.Error("The parameter '
|
|
13475
|
-
url_ = url_.replace("{
|
|
13457
|
+
getTimeseriesGraph(assetExternalId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto> {
|
|
13458
|
+
let url_ = this.baseUrl + "/machinedata/{assetExternalId}/timeseries-graph?";
|
|
13459
|
+
if (assetExternalId === undefined || assetExternalId === null)
|
|
13460
|
+
throw new globalThis.Error("The parameter 'assetExternalId' must be defined.");
|
|
13461
|
+
url_ = url_.replace("{assetExternalId}", encodeURIComponent("" + assetExternalId));
|
|
13476
13462
|
if (externalIds === null)
|
|
13477
13463
|
throw new globalThis.Error("The parameter 'externalIds' cannot be null.");
|
|
13478
13464
|
else if (externalIds !== undefined)
|
|
@@ -13518,11 +13504,11 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13518
13504
|
return Promise.resolve<TimeseriesGraphDto>(null as any);
|
|
13519
13505
|
}
|
|
13520
13506
|
|
|
13521
|
-
exportTimeseriesGraph(
|
|
13522
|
-
let url_ = this.baseUrl + "/machinedata/{
|
|
13523
|
-
if (
|
|
13524
|
-
throw new globalThis.Error("The parameter '
|
|
13525
|
-
url_ = url_.replace("{
|
|
13507
|
+
exportTimeseriesGraph(assetExternalId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto> {
|
|
13508
|
+
let url_ = this.baseUrl + "/machinedata/{assetExternalId}/timeseries-graph/export-csv";
|
|
13509
|
+
if (assetExternalId === undefined || assetExternalId === null)
|
|
13510
|
+
throw new globalThis.Error("The parameter 'assetExternalId' must be defined.");
|
|
13511
|
+
url_ = url_.replace("{assetExternalId}", encodeURIComponent("" + assetExternalId));
|
|
13526
13512
|
url_ = url_.replace(/[?&]$/, "");
|
|
13527
13513
|
|
|
13528
13514
|
const content_ = JSON.stringify(request);
|
|
@@ -18780,11 +18766,11 @@ export interface IAssetsClient {
|
|
|
18780
18766
|
|
|
18781
18767
|
searchAssets(name: string | null | undefined, description: string | null | undefined, limit: number | undefined): Promise<AssetDto[]>;
|
|
18782
18768
|
|
|
18783
|
-
getAssetById(id:
|
|
18769
|
+
getAssetById(id: string): Promise<AssetDto>;
|
|
18784
18770
|
|
|
18785
|
-
updateAsset(id:
|
|
18771
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto>;
|
|
18786
18772
|
|
|
18787
|
-
getAssetStructureById(id:
|
|
18773
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto>;
|
|
18788
18774
|
|
|
18789
18775
|
/**
|
|
18790
18776
|
* @deprecated
|
|
@@ -18931,7 +18917,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
18931
18917
|
return Promise.resolve<AssetDto[]>(null as any);
|
|
18932
18918
|
}
|
|
18933
18919
|
|
|
18934
|
-
getAssetById(id:
|
|
18920
|
+
getAssetById(id: string): Promise<AssetDto> {
|
|
18935
18921
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
18936
18922
|
if (id === undefined || id === null)
|
|
18937
18923
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -18969,7 +18955,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
18969
18955
|
return Promise.resolve<AssetDto>(null as any);
|
|
18970
18956
|
}
|
|
18971
18957
|
|
|
18972
|
-
updateAsset(id:
|
|
18958
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto> {
|
|
18973
18959
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
18974
18960
|
if (id === undefined || id === null)
|
|
18975
18961
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19011,7 +18997,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19011
18997
|
return Promise.resolve<AssetDto>(null as any);
|
|
19012
18998
|
}
|
|
19013
18999
|
|
|
19014
|
-
getAssetStructureById(id:
|
|
19000
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto> {
|
|
19015
19001
|
let url_ = this.baseUrl + "/assets/{id}/structure";
|
|
19016
19002
|
if (id === undefined || id === null)
|
|
19017
19003
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19562,15 +19548,12 @@ export class CdfClient extends AuthorizedApiBase implements ICdfClient {
|
|
|
19562
19548
|
}
|
|
19563
19549
|
}
|
|
19564
19550
|
|
|
19565
|
-
export interface
|
|
19551
|
+
export interface IWorkspaceMigrationAdminClient {
|
|
19566
19552
|
|
|
19567
|
-
|
|
19568
|
-
* One-off: flags the current tenant's schema versions that have a schema creator document.
|
|
19569
|
-
*/
|
|
19570
|
-
backfillSchemaCreatorFlags(): Promise<SchemaCreatorFlagBackfillDto>;
|
|
19553
|
+
migrateAssetIds(dryRun: boolean | undefined): Promise<MigrateWorkspaceAssetIdsResultDto>;
|
|
19571
19554
|
}
|
|
19572
19555
|
|
|
19573
|
-
export class
|
|
19556
|
+
export class WorkspaceMigrationAdminClient extends AuthorizedApiBase implements IWorkspaceMigrationAdminClient {
|
|
19574
19557
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
19575
19558
|
private baseUrl: string;
|
|
19576
19559
|
|
|
@@ -19580,11 +19563,12 @@ export class InspectAdminClient extends AuthorizedApiBase implements IInspectAdm
|
|
|
19580
19563
|
this.baseUrl = baseUrl ?? "";
|
|
19581
19564
|
}
|
|
19582
19565
|
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19566
|
+
migrateAssetIds(dryRun: boolean | undefined): Promise<MigrateWorkspaceAssetIdsResultDto> {
|
|
19567
|
+
let url_ = this.baseUrl + "/admin/workspaces/migrate-asset-ids?";
|
|
19568
|
+
if (dryRun === null)
|
|
19569
|
+
throw new globalThis.Error("The parameter 'dryRun' cannot be null.");
|
|
19570
|
+
else if (dryRun !== undefined)
|
|
19571
|
+
url_ += "dryRun=" + encodeURIComponent("" + dryRun) + "&";
|
|
19588
19572
|
url_ = url_.replace(/[?&]$/, "");
|
|
19589
19573
|
|
|
19590
19574
|
let options_: RequestInit = {
|
|
@@ -19597,17 +19581,17 @@ export class InspectAdminClient extends AuthorizedApiBase implements IInspectAdm
|
|
|
19597
19581
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19598
19582
|
return this.http.fetch(url_, transformedOptions_);
|
|
19599
19583
|
}).then((_response: Response) => {
|
|
19600
|
-
return this.
|
|
19584
|
+
return this.processMigrateAssetIds(_response);
|
|
19601
19585
|
});
|
|
19602
19586
|
}
|
|
19603
19587
|
|
|
19604
|
-
protected
|
|
19588
|
+
protected processMigrateAssetIds(response: Response): Promise<MigrateWorkspaceAssetIdsResultDto> {
|
|
19605
19589
|
const status = response.status;
|
|
19606
19590
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19607
19591
|
if (status === 200) {
|
|
19608
19592
|
return response.text().then((_responseText) => {
|
|
19609
19593
|
let result200: any = null;
|
|
19610
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
19594
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MigrateWorkspaceAssetIdsResultDto;
|
|
19611
19595
|
return result200;
|
|
19612
19596
|
});
|
|
19613
19597
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -19615,7 +19599,7 @@ export class InspectAdminClient extends AuthorizedApiBase implements IInspectAdm
|
|
|
19615
19599
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19616
19600
|
});
|
|
19617
19601
|
}
|
|
19618
|
-
return Promise.resolve<
|
|
19602
|
+
return Promise.resolve<MigrateWorkspaceAssetIdsResultDto>(null as any);
|
|
19619
19603
|
}
|
|
19620
19604
|
}
|
|
19621
19605
|
|
|
@@ -29486,14 +29470,10 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29486
29470
|
|
|
29487
29471
|
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
29488
29472
|
|
|
29489
|
-
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<
|
|
29490
|
-
|
|
29491
|
-
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
29473
|
+
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
29492
29474
|
|
|
29493
29475
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29494
29476
|
|
|
29495
|
-
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
29496
|
-
|
|
29497
29477
|
listMeasurementFormSchemaVersionChanges(id: string): Promise<MeasurementFormSchemaVersionChangesDto[]>;
|
|
29498
29478
|
|
|
29499
29479
|
listFrequencies(): Promise<MeasurementFrequencyDto[]>;
|
|
@@ -29562,7 +29542,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29562
29542
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
29563
29543
|
}
|
|
29564
29544
|
|
|
29565
|
-
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<
|
|
29545
|
+
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto> {
|
|
29566
29546
|
let url_ = this.baseUrl + "/measurementforms/schemas/list";
|
|
29567
29547
|
url_ = url_.replace(/[?&]$/, "");
|
|
29568
29548
|
|
|
@@ -29584,52 +29564,13 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29584
29564
|
});
|
|
29585
29565
|
}
|
|
29586
29566
|
|
|
29587
|
-
protected processPostListMeasurementFormSchemas(response: Response): Promise<
|
|
29567
|
+
protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto> {
|
|
29588
29568
|
const status = response.status;
|
|
29589
29569
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29590
29570
|
if (status === 200) {
|
|
29591
29571
|
return response.text().then((_responseText) => {
|
|
29592
29572
|
let result200: any = null;
|
|
29593
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
29594
|
-
return result200;
|
|
29595
|
-
});
|
|
29596
|
-
} else if (status !== 200 && status !== 204) {
|
|
29597
|
-
return response.text().then((_responseText) => {
|
|
29598
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29599
|
-
});
|
|
29600
|
-
}
|
|
29601
|
-
return Promise.resolve<PagedResultOfMeasurementFormSchemaOverviewDto>(null as any);
|
|
29602
|
-
}
|
|
29603
|
-
|
|
29604
|
-
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto> {
|
|
29605
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/list/counts";
|
|
29606
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
29607
|
-
|
|
29608
|
-
const content_ = JSON.stringify(request);
|
|
29609
|
-
|
|
29610
|
-
let options_: RequestInit = {
|
|
29611
|
-
body: content_,
|
|
29612
|
-
method: "POST",
|
|
29613
|
-
headers: {
|
|
29614
|
-
"Content-Type": "application/json",
|
|
29615
|
-
"Accept": "application/json"
|
|
29616
|
-
}
|
|
29617
|
-
};
|
|
29618
|
-
|
|
29619
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29620
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
29621
|
-
}).then((_response: Response) => {
|
|
29622
|
-
return this.processPostCountMeasurementFormSchemas(_response);
|
|
29623
|
-
});
|
|
29624
|
-
}
|
|
29625
|
-
|
|
29626
|
-
protected processPostCountMeasurementFormSchemas(response: Response): Promise<MeasurementFormSchemaCountsDto> {
|
|
29627
|
-
const status = response.status;
|
|
29628
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29629
|
-
if (status === 200) {
|
|
29630
|
-
return response.text().then((_responseText) => {
|
|
29631
|
-
let result200: any = null;
|
|
29632
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaCountsDto;
|
|
29573
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PagedResultOfMeasurementFormListDto;
|
|
29633
29574
|
return result200;
|
|
29634
29575
|
});
|
|
29635
29576
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -29637,7 +29578,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29637
29578
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29638
29579
|
});
|
|
29639
29580
|
}
|
|
29640
|
-
return Promise.resolve<
|
|
29581
|
+
return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
|
|
29641
29582
|
}
|
|
29642
29583
|
|
|
29643
29584
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
@@ -29678,44 +29619,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29678
29619
|
return Promise.resolve<MeasurementFormSchemaVersionDto[]>(null as any);
|
|
29679
29620
|
}
|
|
29680
29621
|
|
|
29681
|
-
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]> {
|
|
29682
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/instances";
|
|
29683
|
-
if (id === undefined || id === null)
|
|
29684
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29685
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29686
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
29687
|
-
|
|
29688
|
-
let options_: RequestInit = {
|
|
29689
|
-
method: "GET",
|
|
29690
|
-
headers: {
|
|
29691
|
-
"Accept": "application/json"
|
|
29692
|
-
}
|
|
29693
|
-
};
|
|
29694
|
-
|
|
29695
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29696
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
29697
|
-
}).then((_response: Response) => {
|
|
29698
|
-
return this.processListMeasurementFormSchemaInstances(_response);
|
|
29699
|
-
});
|
|
29700
|
-
}
|
|
29701
|
-
|
|
29702
|
-
protected processListMeasurementFormSchemaInstances(response: Response): Promise<MeasurementFormSchemaInstanceDto[]> {
|
|
29703
|
-
const status = response.status;
|
|
29704
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29705
|
-
if (status === 200) {
|
|
29706
|
-
return response.text().then((_responseText) => {
|
|
29707
|
-
let result200: any = null;
|
|
29708
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaInstanceDto[];
|
|
29709
|
-
return result200;
|
|
29710
|
-
});
|
|
29711
|
-
} else if (status !== 200 && status !== 204) {
|
|
29712
|
-
return response.text().then((_responseText) => {
|
|
29713
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29714
|
-
});
|
|
29715
|
-
}
|
|
29716
|
-
return Promise.resolve<MeasurementFormSchemaInstanceDto[]>(null as any);
|
|
29717
|
-
}
|
|
29718
|
-
|
|
29719
29622
|
listMeasurementFormSchemaVersionChanges(id: string): Promise<MeasurementFormSchemaVersionChangesDto[]> {
|
|
29720
29623
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions/changes";
|
|
29721
29624
|
if (id === undefined || id === null)
|
|
@@ -31212,9 +31115,6 @@ export interface IMeasurementFormsInstancesInstanceAdminClient {
|
|
|
31212
31115
|
|
|
31213
31116
|
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
31214
31117
|
|
|
31215
|
-
/**
|
|
31216
|
-
* @deprecated
|
|
31217
|
-
*/
|
|
31218
31118
|
updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
31219
31119
|
|
|
31220
31120
|
listMeasurementFormsByStatus(status: MeasurementFormInstanceStatus | undefined, statusChangedSince: Date | null | undefined, onlyWithReports: boolean | null | undefined, pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
@@ -31223,21 +31123,8 @@ export interface IMeasurementFormsInstancesInstanceAdminClient {
|
|
|
31223
31123
|
|
|
31224
31124
|
deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
|
|
31225
31125
|
|
|
31226
|
-
postCountMeasurementFormsByStatus(request: CountMeasurementFormInstancesRequest | undefined): Promise<MeasurementFormInstanceCountsDto>;
|
|
31227
|
-
|
|
31228
|
-
postListMeasurementFormsByStatusV2(request: ListMeasurementFormsByStatusesRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
31229
|
-
|
|
31230
31126
|
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
31231
31127
|
|
|
31232
|
-
editMeasurementFormInstance(id: string, request: EditMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
31233
|
-
|
|
31234
|
-
/**
|
|
31235
|
-
* What saving the edited serial numbers would do to them and their measurements, without saving.
|
|
31236
|
-
*/
|
|
31237
|
-
previewMeasurementFormInstanceEdit(id: string, request: PreviewMeasurementFormInstanceEditRequest): Promise<SerialNumberEditPreviewDto>;
|
|
31238
|
-
|
|
31239
|
-
getSerialNumberMeasurements(id: string): Promise<SerialNumberMeasurementsDto[]>;
|
|
31240
|
-
|
|
31241
31128
|
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
31242
31129
|
|
|
31243
31130
|
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
@@ -31293,9 +31180,6 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
31293
31180
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
31294
31181
|
}
|
|
31295
31182
|
|
|
31296
|
-
/**
|
|
31297
|
-
* @deprecated
|
|
31298
|
-
*/
|
|
31299
31183
|
updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
31300
31184
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
31301
31185
|
if (id === undefined || id === null)
|
|
@@ -31464,84 +31348,6 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
31464
31348
|
return Promise.resolve<void>(null as any);
|
|
31465
31349
|
}
|
|
31466
31350
|
|
|
31467
|
-
postCountMeasurementFormsByStatus(request: CountMeasurementFormInstancesRequest | undefined): Promise<MeasurementFormInstanceCountsDto> {
|
|
31468
|
-
let url_ = this.baseUrl + "/measurementforms/instances/bystatus/v2/counts";
|
|
31469
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
31470
|
-
|
|
31471
|
-
const content_ = JSON.stringify(request);
|
|
31472
|
-
|
|
31473
|
-
let options_: RequestInit = {
|
|
31474
|
-
body: content_,
|
|
31475
|
-
method: "POST",
|
|
31476
|
-
headers: {
|
|
31477
|
-
"Content-Type": "application/json",
|
|
31478
|
-
"Accept": "application/json"
|
|
31479
|
-
}
|
|
31480
|
-
};
|
|
31481
|
-
|
|
31482
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
31483
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
31484
|
-
}).then((_response: Response) => {
|
|
31485
|
-
return this.processPostCountMeasurementFormsByStatus(_response);
|
|
31486
|
-
});
|
|
31487
|
-
}
|
|
31488
|
-
|
|
31489
|
-
protected processPostCountMeasurementFormsByStatus(response: Response): Promise<MeasurementFormInstanceCountsDto> {
|
|
31490
|
-
const status = response.status;
|
|
31491
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
31492
|
-
if (status === 200) {
|
|
31493
|
-
return response.text().then((_responseText) => {
|
|
31494
|
-
let result200: any = null;
|
|
31495
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormInstanceCountsDto;
|
|
31496
|
-
return result200;
|
|
31497
|
-
});
|
|
31498
|
-
} else if (status !== 200 && status !== 204) {
|
|
31499
|
-
return response.text().then((_responseText) => {
|
|
31500
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
31501
|
-
});
|
|
31502
|
-
}
|
|
31503
|
-
return Promise.resolve<MeasurementFormInstanceCountsDto>(null as any);
|
|
31504
|
-
}
|
|
31505
|
-
|
|
31506
|
-
postListMeasurementFormsByStatusV2(request: ListMeasurementFormsByStatusesRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto> {
|
|
31507
|
-
let url_ = this.baseUrl + "/measurementforms/instances/bystatus/v2";
|
|
31508
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
31509
|
-
|
|
31510
|
-
const content_ = JSON.stringify(request);
|
|
31511
|
-
|
|
31512
|
-
let options_: RequestInit = {
|
|
31513
|
-
body: content_,
|
|
31514
|
-
method: "POST",
|
|
31515
|
-
headers: {
|
|
31516
|
-
"Content-Type": "application/json",
|
|
31517
|
-
"Accept": "application/json"
|
|
31518
|
-
}
|
|
31519
|
-
};
|
|
31520
|
-
|
|
31521
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
31522
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
31523
|
-
}).then((_response: Response) => {
|
|
31524
|
-
return this.processPostListMeasurementFormsByStatusV2(_response);
|
|
31525
|
-
});
|
|
31526
|
-
}
|
|
31527
|
-
|
|
31528
|
-
protected processPostListMeasurementFormsByStatusV2(response: Response): Promise<PagedResultOfMeasurementFormInstanceDto> {
|
|
31529
|
-
const status = response.status;
|
|
31530
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
31531
|
-
if (status === 200) {
|
|
31532
|
-
return response.text().then((_responseText) => {
|
|
31533
|
-
let result200: any = null;
|
|
31534
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PagedResultOfMeasurementFormInstanceDto;
|
|
31535
|
-
return result200;
|
|
31536
|
-
});
|
|
31537
|
-
} else if (status !== 200 && status !== 204) {
|
|
31538
|
-
return response.text().then((_responseText) => {
|
|
31539
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
31540
|
-
});
|
|
31541
|
-
}
|
|
31542
|
-
return Promise.resolve<PagedResultOfMeasurementFormInstanceDto>(null as any);
|
|
31543
|
-
}
|
|
31544
|
-
|
|
31545
31351
|
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
31546
31352
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
31547
31353
|
if (id === undefined || id === null)
|
|
@@ -31584,131 +31390,6 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
31584
31390
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
31585
31391
|
}
|
|
31586
31392
|
|
|
31587
|
-
editMeasurementFormInstance(id: string, request: EditMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
31588
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/edit";
|
|
31589
|
-
if (id === undefined || id === null)
|
|
31590
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
31591
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
31592
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
31593
|
-
|
|
31594
|
-
const content_ = JSON.stringify(request);
|
|
31595
|
-
|
|
31596
|
-
let options_: RequestInit = {
|
|
31597
|
-
body: content_,
|
|
31598
|
-
method: "PUT",
|
|
31599
|
-
headers: {
|
|
31600
|
-
"Content-Type": "application/json",
|
|
31601
|
-
"Accept": "application/json"
|
|
31602
|
-
}
|
|
31603
|
-
};
|
|
31604
|
-
|
|
31605
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
31606
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
31607
|
-
}).then((_response: Response) => {
|
|
31608
|
-
return this.processEditMeasurementFormInstance(_response);
|
|
31609
|
-
});
|
|
31610
|
-
}
|
|
31611
|
-
|
|
31612
|
-
protected processEditMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
31613
|
-
const status = response.status;
|
|
31614
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
31615
|
-
if (status === 200) {
|
|
31616
|
-
return response.text().then((_responseText) => {
|
|
31617
|
-
let result200: any = null;
|
|
31618
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormInstanceDto;
|
|
31619
|
-
return result200;
|
|
31620
|
-
});
|
|
31621
|
-
} else if (status !== 200 && status !== 204) {
|
|
31622
|
-
return response.text().then((_responseText) => {
|
|
31623
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
31624
|
-
});
|
|
31625
|
-
}
|
|
31626
|
-
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
31627
|
-
}
|
|
31628
|
-
|
|
31629
|
-
/**
|
|
31630
|
-
* What saving the edited serial numbers would do to them and their measurements, without saving.
|
|
31631
|
-
*/
|
|
31632
|
-
previewMeasurementFormInstanceEdit(id: string, request: PreviewMeasurementFormInstanceEditRequest): Promise<SerialNumberEditPreviewDto> {
|
|
31633
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/edit/preview";
|
|
31634
|
-
if (id === undefined || id === null)
|
|
31635
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
31636
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
31637
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
31638
|
-
|
|
31639
|
-
const content_ = JSON.stringify(request);
|
|
31640
|
-
|
|
31641
|
-
let options_: RequestInit = {
|
|
31642
|
-
body: content_,
|
|
31643
|
-
method: "POST",
|
|
31644
|
-
headers: {
|
|
31645
|
-
"Content-Type": "application/json",
|
|
31646
|
-
"Accept": "application/json"
|
|
31647
|
-
}
|
|
31648
|
-
};
|
|
31649
|
-
|
|
31650
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
31651
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
31652
|
-
}).then((_response: Response) => {
|
|
31653
|
-
return this.processPreviewMeasurementFormInstanceEdit(_response);
|
|
31654
|
-
});
|
|
31655
|
-
}
|
|
31656
|
-
|
|
31657
|
-
protected processPreviewMeasurementFormInstanceEdit(response: Response): Promise<SerialNumberEditPreviewDto> {
|
|
31658
|
-
const status = response.status;
|
|
31659
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
31660
|
-
if (status === 200) {
|
|
31661
|
-
return response.text().then((_responseText) => {
|
|
31662
|
-
let result200: any = null;
|
|
31663
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SerialNumberEditPreviewDto;
|
|
31664
|
-
return result200;
|
|
31665
|
-
});
|
|
31666
|
-
} else if (status !== 200 && status !== 204) {
|
|
31667
|
-
return response.text().then((_responseText) => {
|
|
31668
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
31669
|
-
});
|
|
31670
|
-
}
|
|
31671
|
-
return Promise.resolve<SerialNumberEditPreviewDto>(null as any);
|
|
31672
|
-
}
|
|
31673
|
-
|
|
31674
|
-
getSerialNumberMeasurements(id: string): Promise<SerialNumberMeasurementsDto[]> {
|
|
31675
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/serial-number-measurements";
|
|
31676
|
-
if (id === undefined || id === null)
|
|
31677
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
31678
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
31679
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
31680
|
-
|
|
31681
|
-
let options_: RequestInit = {
|
|
31682
|
-
method: "GET",
|
|
31683
|
-
headers: {
|
|
31684
|
-
"Accept": "application/json"
|
|
31685
|
-
}
|
|
31686
|
-
};
|
|
31687
|
-
|
|
31688
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
31689
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
31690
|
-
}).then((_response: Response) => {
|
|
31691
|
-
return this.processGetSerialNumberMeasurements(_response);
|
|
31692
|
-
});
|
|
31693
|
-
}
|
|
31694
|
-
|
|
31695
|
-
protected processGetSerialNumberMeasurements(response: Response): Promise<SerialNumberMeasurementsDto[]> {
|
|
31696
|
-
const status = response.status;
|
|
31697
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
31698
|
-
if (status === 200) {
|
|
31699
|
-
return response.text().then((_responseText) => {
|
|
31700
|
-
let result200: any = null;
|
|
31701
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SerialNumberMeasurementsDto[];
|
|
31702
|
-
return result200;
|
|
31703
|
-
});
|
|
31704
|
-
} else if (status !== 200 && status !== 204) {
|
|
31705
|
-
return response.text().then((_responseText) => {
|
|
31706
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
31707
|
-
});
|
|
31708
|
-
}
|
|
31709
|
-
return Promise.resolve<SerialNumberMeasurementsDto[]>(null as any);
|
|
31710
|
-
}
|
|
31711
|
-
|
|
31712
31393
|
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
31713
31394
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
|
|
31714
31395
|
if (id === undefined || id === null)
|
|
@@ -33937,7 +33618,7 @@ export interface UtilizationListDto {
|
|
|
33937
33618
|
}
|
|
33938
33619
|
|
|
33939
33620
|
export interface MachineUtilizationDto {
|
|
33940
|
-
|
|
33621
|
+
assetExternalId: string;
|
|
33941
33622
|
name: string;
|
|
33942
33623
|
description?: string | null;
|
|
33943
33624
|
state: string;
|
|
@@ -33984,7 +33665,7 @@ export interface PowerOnUtilizationDto extends UtilizationAveragesDto {
|
|
|
33984
33665
|
}
|
|
33985
33666
|
|
|
33986
33667
|
export interface UtilizationDetailsDto {
|
|
33987
|
-
machineId:
|
|
33668
|
+
machineId: string;
|
|
33988
33669
|
machineName: string;
|
|
33989
33670
|
machineStateText?: string | null;
|
|
33990
33671
|
machineState?: MachineState | null;
|
|
@@ -34099,7 +33780,7 @@ export interface PowerOnUtilizationList {
|
|
|
34099
33780
|
|
|
34100
33781
|
export interface Machine {
|
|
34101
33782
|
externalId?: string;
|
|
34102
|
-
id?: number;
|
|
33783
|
+
id?: number | null;
|
|
34103
33784
|
name?: string;
|
|
34104
33785
|
description?: string | null;
|
|
34105
33786
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
@@ -34115,7 +33796,7 @@ export interface ResourceUtilizationListDto {
|
|
|
34115
33796
|
}
|
|
34116
33797
|
|
|
34117
33798
|
export interface ResourceUtilizationDto {
|
|
34118
|
-
|
|
33799
|
+
assetExternalId: string;
|
|
34119
33800
|
name: string;
|
|
34120
33801
|
description?: string | null;
|
|
34121
33802
|
state: string;
|
|
@@ -34126,7 +33807,7 @@ export interface ResourceUtilizationDto {
|
|
|
34126
33807
|
}
|
|
34127
33808
|
|
|
34128
33809
|
export interface ResourceUtilizationDetailsDto {
|
|
34129
|
-
resourceId:
|
|
33810
|
+
resourceId: string;
|
|
34130
33811
|
resourceName: string;
|
|
34131
33812
|
machineStateText?: string | null;
|
|
34132
33813
|
machineState?: MachineState | null;
|
|
@@ -34231,6 +33912,7 @@ export interface UploadInfoDto {
|
|
|
34231
33912
|
}
|
|
34232
33913
|
|
|
34233
33914
|
export interface UploadInfoCdfDto {
|
|
33915
|
+
externalId: string;
|
|
34234
33916
|
id: number;
|
|
34235
33917
|
url: string;
|
|
34236
33918
|
}
|
|
@@ -34244,7 +33926,7 @@ export interface DataHealthDto {
|
|
|
34244
33926
|
}
|
|
34245
33927
|
|
|
34246
33928
|
export interface MachineDataHealthDto {
|
|
34247
|
-
|
|
33929
|
+
assetExternalId: string;
|
|
34248
33930
|
name: string;
|
|
34249
33931
|
description?: string | null;
|
|
34250
33932
|
state?: string | null;
|
|
@@ -34263,7 +33945,7 @@ export interface PowerRegionDto {
|
|
|
34263
33945
|
}
|
|
34264
33946
|
|
|
34265
33947
|
export interface ConsumptionDto {
|
|
34266
|
-
|
|
33948
|
+
assetExternalId: string;
|
|
34267
33949
|
assetName: string;
|
|
34268
33950
|
kwh: number;
|
|
34269
33951
|
co2Equivalent?: number | null;
|
|
@@ -34272,17 +33954,17 @@ export interface ConsumptionDto {
|
|
|
34272
33954
|
}
|
|
34273
33955
|
|
|
34274
33956
|
export interface AssetConsumptionDto {
|
|
34275
|
-
|
|
33957
|
+
timeseriesExternalId: string;
|
|
34276
33958
|
timeseriesName: string;
|
|
34277
33959
|
kwh: number;
|
|
34278
|
-
|
|
33960
|
+
assetExternalId: string;
|
|
34279
33961
|
assetName: string;
|
|
34280
33962
|
co2Equivalent?: number | null;
|
|
34281
33963
|
co2EquivalentNotAdjustedForLocalProduction?: number | null;
|
|
34282
33964
|
}
|
|
34283
33965
|
|
|
34284
33966
|
export interface GetConsumption {
|
|
34285
|
-
|
|
33967
|
+
assetExternalId?: string | null;
|
|
34286
33968
|
start?: Date | null;
|
|
34287
33969
|
end?: Date | null;
|
|
34288
33970
|
}
|
|
@@ -34293,9 +33975,9 @@ export interface PowerDto {
|
|
|
34293
33975
|
}
|
|
34294
33976
|
|
|
34295
33977
|
export interface AssetPowerDto {
|
|
34296
|
-
|
|
33978
|
+
timeseriesExternalId?: string | null;
|
|
34297
33979
|
timeseriesName?: string | null;
|
|
34298
|
-
|
|
33980
|
+
assetExternalId?: string | null;
|
|
34299
33981
|
assetName?: string | null;
|
|
34300
33982
|
timeSeriesDataPoints?: NumericDataPointDto[] | null;
|
|
34301
33983
|
}
|
|
@@ -34309,7 +33991,7 @@ export interface NumericDataPointDto {
|
|
|
34309
33991
|
}
|
|
34310
33992
|
|
|
34311
33993
|
export interface GetPower {
|
|
34312
|
-
|
|
33994
|
+
assetExternalId: string;
|
|
34313
33995
|
granularity?: string | null;
|
|
34314
33996
|
start?: Date | null;
|
|
34315
33997
|
end?: Date | null;
|
|
@@ -34789,7 +34471,7 @@ export interface UptimeTrendDataPointDto {
|
|
|
34789
34471
|
}
|
|
34790
34472
|
|
|
34791
34473
|
export interface ApplicationResourcesResourceDto {
|
|
34792
|
-
id
|
|
34474
|
+
id?: number | null;
|
|
34793
34475
|
externalId: string;
|
|
34794
34476
|
name: string;
|
|
34795
34477
|
description?: string | null;
|
|
@@ -34809,7 +34491,6 @@ export interface ApplicationResourcesResourceGroupDto {
|
|
|
34809
34491
|
}
|
|
34810
34492
|
|
|
34811
34493
|
export interface ResourceGroupMemberDto {
|
|
34812
|
-
id: number;
|
|
34813
34494
|
externalId: string;
|
|
34814
34495
|
name: string;
|
|
34815
34496
|
description?: string | null;
|
|
@@ -34836,7 +34517,7 @@ export interface MachineStateListDto {
|
|
|
34836
34517
|
}
|
|
34837
34518
|
|
|
34838
34519
|
export interface MachineStateDto {
|
|
34839
|
-
|
|
34520
|
+
assetExternalId: string;
|
|
34840
34521
|
name: string;
|
|
34841
34522
|
description?: string | null;
|
|
34842
34523
|
state: string;
|
|
@@ -34855,7 +34536,7 @@ export interface ResourceErpDataListDto {
|
|
|
34855
34536
|
}
|
|
34856
34537
|
|
|
34857
34538
|
export interface SingleResourceErpDataListDto {
|
|
34858
|
-
|
|
34539
|
+
assetExternalId: string;
|
|
34859
34540
|
name: string;
|
|
34860
34541
|
description?: string;
|
|
34861
34542
|
activeOrders: ResourceErpDataDto[];
|
|
@@ -34979,7 +34660,7 @@ export interface ResourceGroupUtilizationDto {
|
|
|
34979
34660
|
}
|
|
34980
34661
|
|
|
34981
34662
|
export interface ResourceUtilizationV2Dto {
|
|
34982
|
-
id?: number;
|
|
34663
|
+
id?: number | null;
|
|
34983
34664
|
name: string;
|
|
34984
34665
|
description?: string | null;
|
|
34985
34666
|
utilization: UtilizationDto;
|
|
@@ -34998,7 +34679,7 @@ export interface OperatorAndMachineDto {
|
|
|
34998
34679
|
}
|
|
34999
34680
|
|
|
35000
34681
|
export interface MachineDto {
|
|
35001
|
-
id
|
|
34682
|
+
id?: number | null;
|
|
35002
34683
|
externalId: string;
|
|
35003
34684
|
name: string;
|
|
35004
34685
|
description?: string | null;
|
|
@@ -35236,7 +34917,8 @@ export interface ResourceGroupUtilizationV2Dto {
|
|
|
35236
34917
|
}
|
|
35237
34918
|
|
|
35238
34919
|
export interface ResourceUtilizationV3Dto {
|
|
35239
|
-
id?: number;
|
|
34920
|
+
id?: number | null;
|
|
34921
|
+
externalId: string;
|
|
35240
34922
|
name: string;
|
|
35241
34923
|
description?: string | null;
|
|
35242
34924
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -35276,7 +34958,7 @@ export interface MachineGroupUtilizationV2Dto {
|
|
|
35276
34958
|
}
|
|
35277
34959
|
|
|
35278
34960
|
export interface MachineUtilizationV3Dto {
|
|
35279
|
-
id?: number;
|
|
34961
|
+
id?: number | null;
|
|
35280
34962
|
name: string;
|
|
35281
34963
|
description?: string | null;
|
|
35282
34964
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -35290,7 +34972,7 @@ export interface UtilizationDatapointListDto {
|
|
|
35290
34972
|
|
|
35291
34973
|
export interface MachineUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
35292
34974
|
externalId: string;
|
|
35293
|
-
id
|
|
34975
|
+
id?: number | null;
|
|
35294
34976
|
name: string;
|
|
35295
34977
|
description?: string | null;
|
|
35296
34978
|
}
|
|
@@ -35308,7 +34990,7 @@ export interface ResourceGroupUtilizationDatapointListDto extends UtilizationDat
|
|
|
35308
34990
|
|
|
35309
34991
|
export interface ResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
35310
34992
|
externalId: string;
|
|
35311
|
-
id
|
|
34993
|
+
id?: number | null;
|
|
35312
34994
|
name: string;
|
|
35313
34995
|
description?: string | null;
|
|
35314
34996
|
}
|
|
@@ -36396,7 +36078,6 @@ export interface MachineGroupDto {
|
|
|
36396
36078
|
}
|
|
36397
36079
|
|
|
36398
36080
|
export interface MachineGroupMemberDto {
|
|
36399
|
-
id: number;
|
|
36400
36081
|
externalId: string;
|
|
36401
36082
|
name: string;
|
|
36402
36083
|
description?: string | null;
|
|
@@ -36423,7 +36104,7 @@ export interface MachineErpDataListDto {
|
|
|
36423
36104
|
}
|
|
36424
36105
|
|
|
36425
36106
|
export interface SingleMachineErpDataListDto {
|
|
36426
|
-
|
|
36107
|
+
assetExternalId: string;
|
|
36427
36108
|
name: string;
|
|
36428
36109
|
description?: string;
|
|
36429
36110
|
activeOrders: MachineErpDataDto[];
|
|
@@ -36461,7 +36142,7 @@ export interface MachineGroupUtilizationDto {
|
|
|
36461
36142
|
}
|
|
36462
36143
|
|
|
36463
36144
|
export interface MachineUtilizationV2Dto {
|
|
36464
|
-
id?: number;
|
|
36145
|
+
id?: number | null;
|
|
36465
36146
|
name: string;
|
|
36466
36147
|
description?: string | null;
|
|
36467
36148
|
utilization: UtilizationDto;
|
|
@@ -36473,7 +36154,7 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
36473
36154
|
}
|
|
36474
36155
|
|
|
36475
36156
|
export interface LiveMachineDataDto {
|
|
36476
|
-
|
|
36157
|
+
assetExternalId?: string;
|
|
36477
36158
|
dataPoints?: LiveMachineDataPointDto[];
|
|
36478
36159
|
}
|
|
36479
36160
|
|
|
@@ -36485,7 +36166,7 @@ export interface LiveMachineDataPointDto {
|
|
|
36485
36166
|
}
|
|
36486
36167
|
|
|
36487
36168
|
export interface TimeseriesGraphDto {
|
|
36488
|
-
|
|
36169
|
+
assetExternalId?: string;
|
|
36489
36170
|
series?: TimeseriesGraphSeriesDto[];
|
|
36490
36171
|
}
|
|
36491
36172
|
|
|
@@ -37631,14 +37312,12 @@ export interface AssetDto {
|
|
|
37631
37312
|
externalId?: string | null;
|
|
37632
37313
|
name?: string | null;
|
|
37633
37314
|
description?: string | null;
|
|
37634
|
-
|
|
37635
|
-
|
|
37636
|
-
parentId?: number | null;
|
|
37315
|
+
parentExternalId?: string | null;
|
|
37316
|
+
rootExternalId?: string | null;
|
|
37637
37317
|
source?: string | null;
|
|
37638
37318
|
id?: number | null;
|
|
37639
37319
|
createdTime?: number | null;
|
|
37640
37320
|
lastUpdatedTime?: number | null;
|
|
37641
|
-
rootId?: number | null;
|
|
37642
37321
|
}
|
|
37643
37322
|
|
|
37644
37323
|
export interface AssetStructureDto {
|
|
@@ -37646,7 +37325,6 @@ export interface AssetStructureDto {
|
|
|
37646
37325
|
name?: string | null;
|
|
37647
37326
|
aggregatesDisplay?: string | null;
|
|
37648
37327
|
aggregates?: AssetSimpleStructureDto[] | null;
|
|
37649
|
-
id?: number | null;
|
|
37650
37328
|
createdTime?: number | null;
|
|
37651
37329
|
lastUpdatedTime?: number | null;
|
|
37652
37330
|
}
|
|
@@ -37654,23 +37332,20 @@ export interface AssetStructureDto {
|
|
|
37654
37332
|
export interface AssetSimpleStructureDto {
|
|
37655
37333
|
externalId?: string | null;
|
|
37656
37334
|
name?: string | null;
|
|
37657
|
-
id?: number | null;
|
|
37658
37335
|
}
|
|
37659
37336
|
|
|
37660
37337
|
export interface CreateAsset {
|
|
37661
|
-
|
|
37338
|
+
parentExternalId: string;
|
|
37662
37339
|
externalId: string;
|
|
37663
37340
|
name: string;
|
|
37664
37341
|
description: string;
|
|
37665
|
-
metadata: { [key: string]: string; };
|
|
37666
37342
|
source?: string | null;
|
|
37667
37343
|
}
|
|
37668
37344
|
|
|
37669
37345
|
export interface UpdateAssetRequest {
|
|
37670
|
-
|
|
37346
|
+
parentExternalId: string;
|
|
37671
37347
|
name: string;
|
|
37672
37348
|
description: string;
|
|
37673
|
-
metadata: { [key: string]: string; };
|
|
37674
37349
|
source?: string | null;
|
|
37675
37350
|
}
|
|
37676
37351
|
|
|
@@ -37769,9 +37444,32 @@ export interface UpdateCdfConfig {
|
|
|
37769
37444
|
clientSecret?: string | null;
|
|
37770
37445
|
}
|
|
37771
37446
|
|
|
37772
|
-
export interface
|
|
37773
|
-
|
|
37774
|
-
|
|
37447
|
+
export interface MigrateWorkspaceAssetIdsResultDto {
|
|
37448
|
+
dryRun: boolean;
|
|
37449
|
+
documentTypes: MigratedDocumentTypeDto[];
|
|
37450
|
+
unmapped: UnmappedAssetValueDto[];
|
|
37451
|
+
failed: FailedDocumentDto[];
|
|
37452
|
+
}
|
|
37453
|
+
|
|
37454
|
+
export interface MigratedDocumentTypeDto {
|
|
37455
|
+
documentType: string;
|
|
37456
|
+
scanned?: number;
|
|
37457
|
+
changed?: number;
|
|
37458
|
+
changedIds?: string[];
|
|
37459
|
+
}
|
|
37460
|
+
|
|
37461
|
+
export interface UnmappedAssetValueDto {
|
|
37462
|
+
documentType: string;
|
|
37463
|
+
documentId: string;
|
|
37464
|
+
location: string;
|
|
37465
|
+
value: string;
|
|
37466
|
+
reason: string;
|
|
37467
|
+
}
|
|
37468
|
+
|
|
37469
|
+
export interface FailedDocumentDto {
|
|
37470
|
+
documentType: string;
|
|
37471
|
+
documentId: string;
|
|
37472
|
+
reason: string;
|
|
37775
37473
|
}
|
|
37776
37474
|
|
|
37777
37475
|
export interface WorkspaceDefaultsDto {
|
|
@@ -38683,6 +38381,8 @@ export interface ProductionOrderOperationDto {
|
|
|
38683
38381
|
disableSetupRegistration: boolean;
|
|
38684
38382
|
productionStatus: OperationStatusDto;
|
|
38685
38383
|
setupStatus?: OperationStatusDto | null;
|
|
38384
|
+
weekGroup?: string | null;
|
|
38385
|
+
lockType?: PlannerLockType | null;
|
|
38686
38386
|
}
|
|
38687
38387
|
|
|
38688
38388
|
export interface WorkOrderAttachmentDto {
|
|
@@ -39214,7 +38914,6 @@ export interface ElectricalIotConfigDto {
|
|
|
39214
38914
|
export interface CreateElectricalIotConfig {
|
|
39215
38915
|
typeId?: string | null;
|
|
39216
38916
|
serialNumber?: string | null;
|
|
39217
|
-
assetId?: number | null;
|
|
39218
38917
|
assetExternalId?: string | null;
|
|
39219
38918
|
}
|
|
39220
38919
|
|
|
@@ -40092,7 +39791,8 @@ export interface ProcessMaterialCertificate {
|
|
|
40092
39791
|
}
|
|
40093
39792
|
|
|
40094
39793
|
export interface UploadFileCdfDto {
|
|
40095
|
-
id
|
|
39794
|
+
id?: number | null;
|
|
39795
|
+
externalId: string;
|
|
40096
39796
|
}
|
|
40097
39797
|
|
|
40098
39798
|
export interface ImaMaterialCheckReportDto {
|
|
@@ -40360,6 +40060,8 @@ export interface ImaCopySpecificationRequestDto {
|
|
|
40360
40060
|
export interface ImaUpdateSpecificationDto {
|
|
40361
40061
|
name?: string | null;
|
|
40362
40062
|
number?: string | null;
|
|
40063
|
+
revision?: string | null;
|
|
40064
|
+
date?: Date | null;
|
|
40363
40065
|
status?: ImaSpecificationStatusDto | null;
|
|
40364
40066
|
summary?: string | null;
|
|
40365
40067
|
relatedStandards?: string[] | null;
|
|
@@ -41033,25 +40735,6 @@ export interface ListMeasurementFormSchemasWithHistoryRequest {
|
|
|
41033
40735
|
continuationToken?: string | null;
|
|
41034
40736
|
}
|
|
41035
40737
|
|
|
41036
|
-
export interface PagedResultOfMeasurementFormSchemaOverviewDto {
|
|
41037
|
-
results: MeasurementFormSchemaOverviewDto[];
|
|
41038
|
-
continuationToken?: string | null;
|
|
41039
|
-
}
|
|
41040
|
-
|
|
41041
|
-
export interface MeasurementFormSchemaOverviewDto extends MeasurementFormListDto {
|
|
41042
|
-
referenceCount: number;
|
|
41043
|
-
instanceCount: number;
|
|
41044
|
-
instanceStatusCounts: MeasurementFormInstanceStatusCountDto[];
|
|
41045
|
-
hasSchemaCreator: boolean;
|
|
41046
|
-
}
|
|
41047
|
-
|
|
41048
|
-
export interface MeasurementFormInstanceStatusCountDto {
|
|
41049
|
-
status: MeasurementFormInstanceStatus;
|
|
41050
|
-
count: number;
|
|
41051
|
-
}
|
|
41052
|
-
|
|
41053
|
-
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
|
|
41054
|
-
|
|
41055
40738
|
export interface ListMeasurementFormSchemasRequest {
|
|
41056
40739
|
pageSize?: number | null;
|
|
41057
40740
|
customerId?: string | null;
|
|
@@ -41063,37 +40746,6 @@ export interface ListMeasurementFormSchemasRequest {
|
|
|
41063
40746
|
drawingRevision?: string | null;
|
|
41064
40747
|
filter?: string | null;
|
|
41065
40748
|
continuationToken?: string | null;
|
|
41066
|
-
statuses?: MeasurementFormStatus[] | null;
|
|
41067
|
-
/** Schemas for any of these customers. */
|
|
41068
|
-
customerIds?: string[] | null;
|
|
41069
|
-
/** Also schemas without a customer. */
|
|
41070
|
-
withoutCustomer?: boolean | null;
|
|
41071
|
-
/** Schemas with, or without, a schema creator document. */
|
|
41072
|
-
schemaCreator?: boolean | null;
|
|
41073
|
-
}
|
|
41074
|
-
|
|
41075
|
-
export interface MeasurementFormSchemaCountsDto {
|
|
41076
|
-
total: number;
|
|
41077
|
-
draft: number;
|
|
41078
|
-
released: number;
|
|
41079
|
-
revoked: number;
|
|
41080
|
-
schemaCreator: number;
|
|
41081
|
-
withoutCustomer: number;
|
|
41082
|
-
customers: CustomerSchemaCountDto[];
|
|
41083
|
-
}
|
|
41084
|
-
|
|
41085
|
-
export interface CustomerSchemaCountDto {
|
|
41086
|
-
customerId: string;
|
|
41087
|
-
customerName: string;
|
|
41088
|
-
count: number;
|
|
41089
|
-
}
|
|
41090
|
-
|
|
41091
|
-
export interface CountMeasurementFormSchemasRequest {
|
|
41092
|
-
filter?: string | null;
|
|
41093
|
-
statuses?: MeasurementFormStatus[] | null;
|
|
41094
|
-
customerIds?: string[] | null;
|
|
41095
|
-
withoutCustomer?: boolean | null;
|
|
41096
|
-
schemaCreator?: boolean | null;
|
|
41097
40749
|
}
|
|
41098
40750
|
|
|
41099
40751
|
export interface MeasurementFormSchemaVersionDto {
|
|
@@ -41106,15 +40758,6 @@ export interface MeasurementFormSchemaVersionDto {
|
|
|
41106
40758
|
drawingChanged?: boolean | null;
|
|
41107
40759
|
}
|
|
41108
40760
|
|
|
41109
|
-
export interface MeasurementFormSchemaInstanceDto {
|
|
41110
|
-
id: string;
|
|
41111
|
-
schemaId: string;
|
|
41112
|
-
versionId: number;
|
|
41113
|
-
status: MeasurementFormInstanceStatus;
|
|
41114
|
-
progress: number;
|
|
41115
|
-
created: Date;
|
|
41116
|
-
}
|
|
41117
|
-
|
|
41118
40761
|
export interface MeasurementFormSchemaVersionChangesDto {
|
|
41119
40762
|
versionId: number;
|
|
41120
40763
|
added: number;
|
|
@@ -41185,7 +40828,6 @@ export interface MeasurementFormInstanceDto {
|
|
|
41185
40828
|
drawingRevision?: string | null;
|
|
41186
40829
|
customerId?: string | null;
|
|
41187
40830
|
customerName?: string | null;
|
|
41188
|
-
purchaseOrder?: string | null;
|
|
41189
40831
|
quantity: number;
|
|
41190
40832
|
status: MeasurementFormInstanceStatus;
|
|
41191
40833
|
statusChangedDate?: Date | null;
|
|
@@ -41198,6 +40840,8 @@ export interface MeasurementFormInstanceDto {
|
|
|
41198
40840
|
currentResource?: ResourceDto | null;
|
|
41199
40841
|
}
|
|
41200
40842
|
|
|
40843
|
+
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
|
|
40844
|
+
|
|
41201
40845
|
export interface MeasurementFormWorkorderSchemaDto {
|
|
41202
40846
|
id: string;
|
|
41203
40847
|
partNumber?: string | null;
|
|
@@ -41211,7 +40855,6 @@ export interface MeasurementFormWorkorderSchemaDto {
|
|
|
41211
40855
|
excludeDrawingFromCustomerDocumentation: boolean;
|
|
41212
40856
|
versionId: number;
|
|
41213
40857
|
specification?: string | null;
|
|
41214
|
-
hasComment: boolean;
|
|
41215
40858
|
progress: MeasurementFormProgressDto;
|
|
41216
40859
|
}
|
|
41217
40860
|
|
|
@@ -41220,8 +40863,6 @@ export interface MeasurementFormProgressDto {
|
|
|
41220
40863
|
requiredValues: number;
|
|
41221
40864
|
values: number;
|
|
41222
40865
|
progress: number;
|
|
41223
|
-
valuesOutsideTolerance: number;
|
|
41224
|
-
comments: number;
|
|
41225
40866
|
}
|
|
41226
40867
|
|
|
41227
40868
|
export interface MeasurementFormWorkorderSequenceDto {
|
|
@@ -41270,7 +40911,6 @@ export interface MeasurementFormInstanceOverviewDto {
|
|
|
41270
40911
|
|
|
41271
40912
|
export interface MeasurementFormInstanceSchemaOverviewDto {
|
|
41272
40913
|
id: string;
|
|
41273
|
-
hasComment: boolean;
|
|
41274
40914
|
}
|
|
41275
40915
|
|
|
41276
40916
|
export interface MeasurementFormInstanceSupplierDto {
|
|
@@ -41536,52 +41176,6 @@ export interface ListMeasurementFormsByStatusRequest {
|
|
|
41536
41176
|
continuationToken?: string | null;
|
|
41537
41177
|
}
|
|
41538
41178
|
|
|
41539
|
-
export interface MeasurementFormInstanceCountsDto {
|
|
41540
|
-
total: number;
|
|
41541
|
-
active: number;
|
|
41542
|
-
completed: number;
|
|
41543
|
-
approved: number;
|
|
41544
|
-
cancelled: number;
|
|
41545
|
-
missingCompletion: number;
|
|
41546
|
-
outsideTolerance: number;
|
|
41547
|
-
comments: number;
|
|
41548
|
-
schemaComment: number;
|
|
41549
|
-
notSharedWithSuppliers: number;
|
|
41550
|
-
suppliers: SupplierInstanceCountDto[];
|
|
41551
|
-
}
|
|
41552
|
-
|
|
41553
|
-
export interface SupplierInstanceCountDto {
|
|
41554
|
-
supplierId: string;
|
|
41555
|
-
supplierName: string;
|
|
41556
|
-
count: number;
|
|
41557
|
-
}
|
|
41558
|
-
|
|
41559
|
-
export interface CountMeasurementFormInstancesRequest {
|
|
41560
|
-
statuses?: MeasurementFormInstanceStatus[];
|
|
41561
|
-
search?: string | null;
|
|
41562
|
-
outsideTolerance?: boolean | null;
|
|
41563
|
-
comments?: boolean | null;
|
|
41564
|
-
schemaComment?: boolean | null;
|
|
41565
|
-
supplierIds?: string[] | null;
|
|
41566
|
-
notSharedWithSuppliers?: boolean | null;
|
|
41567
|
-
}
|
|
41568
|
-
|
|
41569
|
-
export interface ListMeasurementFormsByStatusesRequest {
|
|
41570
|
-
statuses?: MeasurementFormInstanceStatus[];
|
|
41571
|
-
statusChangedSince?: Date | null;
|
|
41572
|
-
onlyWithReports?: boolean | null;
|
|
41573
|
-
pageSize?: number | null;
|
|
41574
|
-
search?: string | null;
|
|
41575
|
-
continuationToken?: string | null;
|
|
41576
|
-
outsideTolerance?: boolean | null;
|
|
41577
|
-
comments?: boolean | null;
|
|
41578
|
-
schemaComment?: boolean | null;
|
|
41579
|
-
/** Instances shared with any of these suppliers. */
|
|
41580
|
-
supplierIds?: string[] | null;
|
|
41581
|
-
/** Also instances shared with no supplier. */
|
|
41582
|
-
notSharedWithSuppliers?: boolean | null;
|
|
41583
|
-
}
|
|
41584
|
-
|
|
41585
41179
|
export interface CreateMeasurementFormInstanceRequest {
|
|
41586
41180
|
schemaId: string;
|
|
41587
41181
|
customerId?: string | null;
|
|
@@ -41607,73 +41201,6 @@ export interface UpdateMeasurementFormInstanceRequest {
|
|
|
41607
41201
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
41608
41202
|
}
|
|
41609
41203
|
|
|
41610
|
-
export interface EditMeasurementFormInstanceRequest {
|
|
41611
|
-
customerId?: string | null;
|
|
41612
|
-
customerName?: string | null;
|
|
41613
|
-
purchaseOrder?: string | null;
|
|
41614
|
-
serialNumbers: EditMeasurementFormInstanceSerialNumberDto[];
|
|
41615
|
-
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
41616
|
-
}
|
|
41617
|
-
|
|
41618
|
-
export interface EditMeasurementFormInstanceSerialNumberDto extends MeasurementFormWorkorderSerialNumberDto {
|
|
41619
|
-
originalSerialNumber?: string | null;
|
|
41620
|
-
usePreviousMeasurements?: boolean | null;
|
|
41621
|
-
}
|
|
41622
|
-
|
|
41623
|
-
export interface SerialNumberEditPreviewDto {
|
|
41624
|
-
rows: SerialNumberEditPreviewRowDto[];
|
|
41625
|
-
removed: SerialNumberEditPreviewRemovedDto[];
|
|
41626
|
-
}
|
|
41627
|
-
|
|
41628
|
-
export interface SerialNumberEditPreviewRowDto {
|
|
41629
|
-
serialNumber: string;
|
|
41630
|
-
originalSerialNumber?: string | null;
|
|
41631
|
-
outcome?: SerialNumberEditOutcomeDto | null;
|
|
41632
|
-
previous?: SerialNumberEditPreviousDto | null;
|
|
41633
|
-
}
|
|
41634
|
-
|
|
41635
|
-
export interface SerialNumberEditOutcomeDto {
|
|
41636
|
-
change: SerialNumberEditChange;
|
|
41637
|
-
measurementCount: number;
|
|
41638
|
-
measuredBy: SerialNumberMeasurerDto[];
|
|
41639
|
-
archivedCount: number;
|
|
41640
|
-
}
|
|
41641
|
-
|
|
41642
|
-
export type SerialNumberEditChange = "Unchanged" | "Updated" | "Added" | "Restored" | "Renamed" | "Removed" | "Replaced";
|
|
41643
|
-
|
|
41644
|
-
export interface SerialNumberMeasurerDto {
|
|
41645
|
-
userId: string;
|
|
41646
|
-
name: string;
|
|
41647
|
-
measurementCount: number;
|
|
41648
|
-
}
|
|
41649
|
-
|
|
41650
|
-
export interface SerialNumberEditPreviousDto {
|
|
41651
|
-
measurementCount: number;
|
|
41652
|
-
archivedAt?: Date | null;
|
|
41653
|
-
ifRestored: SerialNumberEditOutcomeDto;
|
|
41654
|
-
ifNotRestored: SerialNumberEditOutcomeDto;
|
|
41655
|
-
}
|
|
41656
|
-
|
|
41657
|
-
export interface SerialNumberEditPreviewRemovedDto {
|
|
41658
|
-
serialNumber: string;
|
|
41659
|
-
replacedBy?: string | null;
|
|
41660
|
-
outcome: SerialNumberEditOutcomeDto;
|
|
41661
|
-
}
|
|
41662
|
-
|
|
41663
|
-
export interface PreviewMeasurementFormInstanceEditRequest {
|
|
41664
|
-
serialNumbers: EditMeasurementFormInstanceSerialNumberDto[];
|
|
41665
|
-
}
|
|
41666
|
-
|
|
41667
|
-
export interface SerialNumberMeasurementsDto {
|
|
41668
|
-
serialNumber: string;
|
|
41669
|
-
key: string;
|
|
41670
|
-
active: boolean;
|
|
41671
|
-
measurementCount: number;
|
|
41672
|
-
previousMeasurementCount: number;
|
|
41673
|
-
measuredBy: SerialNumberMeasurerDto[];
|
|
41674
|
-
archivedAt?: Date | null;
|
|
41675
|
-
}
|
|
41676
|
-
|
|
41677
41204
|
export interface ProductionCompanyDto {
|
|
41678
41205
|
id: string;
|
|
41679
41206
|
name: string;
|