@ignos/api-client 20261110.358.1 → 20261110.359.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 +104 -119
- package/lib/ignosportal-api.js +187 -94
- package/package.json +1 -1
- package/src/ignosportal-api.ts +285 -206
package/src/ignosportal-api.ts
CHANGED
|
@@ -1465,24 +1465,23 @@ export interface IMachineUtilizationClient {
|
|
|
1465
1465
|
* @param favorites (optional)
|
|
1466
1466
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1467
1467
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1468
|
-
* @param assetExternalId (optional)
|
|
1469
1468
|
*/
|
|
1470
|
-
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined
|
|
1469
|
+
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto>;
|
|
1471
1470
|
|
|
1472
|
-
getMachineUtilization(id:
|
|
1471
|
+
getMachineUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto>;
|
|
1473
1472
|
|
|
1474
1473
|
/**
|
|
1475
1474
|
* @param startTime (optional)
|
|
1476
1475
|
* @param endTime (optional)
|
|
1477
1476
|
* @deprecated
|
|
1478
1477
|
*/
|
|
1479
|
-
getUtilizationDetailsForMachine(id:
|
|
1478
|
+
getUtilizationDetailsForMachine(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1480
1479
|
|
|
1481
|
-
getResourceTimelines(id:
|
|
1480
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1482
1481
|
|
|
1483
|
-
listMachineStates(id:
|
|
1482
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1484
1483
|
|
|
1485
|
-
getMachineStatesSummary(id:
|
|
1484
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1486
1485
|
|
|
1487
1486
|
listMachineUptimesToday(request: ListMachineUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
|
|
1488
1487
|
|
|
@@ -1514,9 +1513,8 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1514
1513
|
* @param favorites (optional)
|
|
1515
1514
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1516
1515
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1517
|
-
* @param assetExternalId (optional)
|
|
1518
1516
|
*/
|
|
1519
|
-
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined
|
|
1517
|
+
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto> {
|
|
1520
1518
|
let url_ = this.baseUrl + "/machineutilization?";
|
|
1521
1519
|
if (assetId !== undefined && assetId !== null)
|
|
1522
1520
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
@@ -1528,8 +1526,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1528
1526
|
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
1529
1527
|
if (utcOffset !== undefined && utcOffset !== null)
|
|
1530
1528
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
1531
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
1532
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
1533
1529
|
url_ = url_.replace(/[?&]$/, "");
|
|
1534
1530
|
|
|
1535
1531
|
let options_: RequestInit = {
|
|
@@ -1563,7 +1559,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1563
1559
|
return Promise.resolve<UtilizationListDto>(null as any);
|
|
1564
1560
|
}
|
|
1565
1561
|
|
|
1566
|
-
getMachineUtilization(id:
|
|
1562
|
+
getMachineUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto> {
|
|
1567
1563
|
let url_ = this.baseUrl + "/machineutilization/{id}?";
|
|
1568
1564
|
if (id === undefined || id === null)
|
|
1569
1565
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1612,7 +1608,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1612
1608
|
* @param endTime (optional)
|
|
1613
1609
|
* @deprecated
|
|
1614
1610
|
*/
|
|
1615
|
-
getUtilizationDetailsForMachine(id:
|
|
1611
|
+
getUtilizationDetailsForMachine(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1616
1612
|
let url_ = this.baseUrl + "/machineutilization/{id}/utilization?";
|
|
1617
1613
|
if (id === undefined || id === null)
|
|
1618
1614
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1654,7 +1650,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1654
1650
|
return Promise.resolve<MachineStatesSummaryDto>(null as any);
|
|
1655
1651
|
}
|
|
1656
1652
|
|
|
1657
|
-
getResourceTimelines(id:
|
|
1653
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
1658
1654
|
let url_ = this.baseUrl + "/machineutilization/{id}/resource/timelines?";
|
|
1659
1655
|
if (id === undefined || id === null)
|
|
1660
1656
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1700,7 +1696,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1700
1696
|
return Promise.resolve<TimelinesDto>(null as any);
|
|
1701
1697
|
}
|
|
1702
1698
|
|
|
1703
|
-
listMachineStates(id:
|
|
1699
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
1704
1700
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
|
|
1705
1701
|
if (id === undefined || id === null)
|
|
1706
1702
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1742,7 +1738,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1742
1738
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
1743
1739
|
}
|
|
1744
1740
|
|
|
1745
|
-
getMachineStatesSummary(id:
|
|
1741
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1746
1742
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states/summary?";
|
|
1747
1743
|
if (id === undefined || id === null)
|
|
1748
1744
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1963,17 +1959,16 @@ export interface IResourceUtilizationClient {
|
|
|
1963
1959
|
* @param favorites (optional)
|
|
1964
1960
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1965
1961
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1966
|
-
* @param assetExternalId (optional)
|
|
1967
1962
|
*/
|
|
1968
|
-
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined
|
|
1963
|
+
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto>;
|
|
1969
1964
|
|
|
1970
|
-
getResourceUtilization(id:
|
|
1965
|
+
getResourceUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto>;
|
|
1971
1966
|
|
|
1972
|
-
getResourceTimelines(id:
|
|
1967
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1973
1968
|
|
|
1974
|
-
listMachineStates(id:
|
|
1969
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1975
1970
|
|
|
1976
|
-
getMachineStatesSummary(id:
|
|
1971
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1977
1972
|
|
|
1978
1973
|
listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<ResourceUptimesAggregateDto>;
|
|
1979
1974
|
|
|
@@ -2005,9 +2000,8 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2005
2000
|
* @param favorites (optional)
|
|
2006
2001
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
2007
2002
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
2008
|
-
* @param assetExternalId (optional)
|
|
2009
2003
|
*/
|
|
2010
|
-
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined
|
|
2004
|
+
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto> {
|
|
2011
2005
|
let url_ = this.baseUrl + "/resourceutilization?";
|
|
2012
2006
|
if (assetId !== undefined && assetId !== null)
|
|
2013
2007
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
@@ -2019,8 +2013,6 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2019
2013
|
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
2020
2014
|
if (utcOffset !== undefined && utcOffset !== null)
|
|
2021
2015
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
2022
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
2023
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
2024
2016
|
url_ = url_.replace(/[?&]$/, "");
|
|
2025
2017
|
|
|
2026
2018
|
let options_: RequestInit = {
|
|
@@ -2054,7 +2046,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2054
2046
|
return Promise.resolve<ResourceUtilizationListDto>(null as any);
|
|
2055
2047
|
}
|
|
2056
2048
|
|
|
2057
|
-
getResourceUtilization(id:
|
|
2049
|
+
getResourceUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto> {
|
|
2058
2050
|
let url_ = this.baseUrl + "/resourceutilization/{id}?";
|
|
2059
2051
|
if (id === undefined || id === null)
|
|
2060
2052
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2098,7 +2090,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2098
2090
|
return Promise.resolve<ResourceUtilizationDetailsDto>(null as any);
|
|
2099
2091
|
}
|
|
2100
2092
|
|
|
2101
|
-
getResourceTimelines(id:
|
|
2093
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
2102
2094
|
let url_ = this.baseUrl + "/resourceutilization/{id}/resource/timelines?";
|
|
2103
2095
|
if (id === undefined || id === null)
|
|
2104
2096
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2144,7 +2136,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2144
2136
|
return Promise.resolve<TimelinesDto>(null as any);
|
|
2145
2137
|
}
|
|
2146
2138
|
|
|
2147
|
-
listMachineStates(id:
|
|
2139
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
2148
2140
|
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states?";
|
|
2149
2141
|
if (id === undefined || id === null)
|
|
2150
2142
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2186,7 +2178,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2186
2178
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
2187
2179
|
}
|
|
2188
2180
|
|
|
2189
|
-
getMachineStatesSummary(id:
|
|
2181
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
2190
2182
|
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states/summary?";
|
|
2191
2183
|
if (id === undefined || id === null)
|
|
2192
2184
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -3140,7 +3132,7 @@ export class UploadClient extends AuthorizedApiBase implements IUploadClient {
|
|
|
3140
3132
|
|
|
3141
3133
|
export interface ISystemHealthDashboardClient {
|
|
3142
3134
|
|
|
3143
|
-
getMachineDataHealth(assetId: number | null | undefined
|
|
3135
|
+
getMachineDataHealth(assetId: number | null | undefined): Promise<DataHealthDto>;
|
|
3144
3136
|
}
|
|
3145
3137
|
|
|
3146
3138
|
export class SystemHealthDashboardClient extends AuthorizedApiBase implements ISystemHealthDashboardClient {
|
|
@@ -3153,12 +3145,10 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase implements IS
|
|
|
3153
3145
|
this.baseUrl = baseUrl ?? "";
|
|
3154
3146
|
}
|
|
3155
3147
|
|
|
3156
|
-
getMachineDataHealth(assetId: number | null | undefined
|
|
3148
|
+
getMachineDataHealth(assetId: number | null | undefined): Promise<DataHealthDto> {
|
|
3157
3149
|
let url_ = this.baseUrl + "/systemhealthdashboard?";
|
|
3158
3150
|
if (assetId !== undefined && assetId !== null)
|
|
3159
3151
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3160
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3161
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3162
3152
|
url_ = url_.replace(/[?&]$/, "");
|
|
3163
3153
|
|
|
3164
3154
|
let options_: RequestInit = {
|
|
@@ -5486,19 +5476,19 @@ export interface IResourcesClient {
|
|
|
5486
5476
|
|
|
5487
5477
|
deleteResourceGroup(id: string): Promise<void>;
|
|
5488
5478
|
|
|
5489
|
-
listCurrentMachineStates(assetId: number | null | undefined
|
|
5479
|
+
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
5490
5480
|
|
|
5491
|
-
listMachineStates(id:
|
|
5481
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
5492
5482
|
|
|
5493
|
-
listLastDowntimeMachineStates(id:
|
|
5483
|
+
listLastDowntimeMachineStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
5494
5484
|
|
|
5495
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5485
|
+
getMachineStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
5496
5486
|
|
|
5497
|
-
getMachineStatesSummary(id:
|
|
5487
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
5498
5488
|
|
|
5499
5489
|
listResourceErpData(): Promise<ResourceErpDataListDto>;
|
|
5500
5490
|
|
|
5501
|
-
getResourceErpData(id:
|
|
5491
|
+
getResourceErpData(id: number): Promise<ResourceErpDataDto>;
|
|
5502
5492
|
|
|
5503
5493
|
getResourceUtilizationSummary(): Promise<ResourceUtilizationSummaryDto>;
|
|
5504
5494
|
|
|
@@ -5514,7 +5504,7 @@ export interface IResourcesClient {
|
|
|
5514
5504
|
|
|
5515
5505
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
5516
5506
|
|
|
5517
|
-
deleteMachine(id:
|
|
5507
|
+
deleteMachine(id: number): Promise<void>;
|
|
5518
5508
|
|
|
5519
5509
|
/**
|
|
5520
5510
|
* @deprecated
|
|
@@ -5721,12 +5711,10 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5721
5711
|
return Promise.resolve<void>(null as any);
|
|
5722
5712
|
}
|
|
5723
5713
|
|
|
5724
|
-
listCurrentMachineStates(assetId: number | null | undefined
|
|
5714
|
+
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
5725
5715
|
let url_ = this.baseUrl + "/resources/states/now?";
|
|
5726
5716
|
if (assetId !== undefined && assetId !== null)
|
|
5727
5717
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
5728
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
5729
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
5730
5718
|
url_ = url_.replace(/[?&]$/, "");
|
|
5731
5719
|
|
|
5732
5720
|
let options_: RequestInit = {
|
|
@@ -5760,7 +5748,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5760
5748
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
5761
5749
|
}
|
|
5762
5750
|
|
|
5763
|
-
listMachineStates(id:
|
|
5751
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
5764
5752
|
let url_ = this.baseUrl + "/resources/{id}/states?";
|
|
5765
5753
|
if (id === undefined || id === null)
|
|
5766
5754
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5802,7 +5790,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5802
5790
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
5803
5791
|
}
|
|
5804
5792
|
|
|
5805
|
-
listLastDowntimeMachineStates(id:
|
|
5793
|
+
listLastDowntimeMachineStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
5806
5794
|
let url_ = this.baseUrl + "/resources/{id}/lastdowntimestates?";
|
|
5807
5795
|
if (id === undefined || id === null)
|
|
5808
5796
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5844,7 +5832,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5844
5832
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
5845
5833
|
}
|
|
5846
5834
|
|
|
5847
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5835
|
+
getMachineStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
5848
5836
|
let url_ = this.baseUrl + "/resources/{id}/statewithdowntimeperiods?";
|
|
5849
5837
|
if (id === undefined || id === null)
|
|
5850
5838
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5886,7 +5874,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5886
5874
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
5887
5875
|
}
|
|
5888
5876
|
|
|
5889
|
-
getMachineStatesSummary(id:
|
|
5877
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
5890
5878
|
let url_ = this.baseUrl + "/resources/{id}/states/summary?";
|
|
5891
5879
|
if (id === undefined || id === null)
|
|
5892
5880
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5963,7 +5951,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5963
5951
|
return Promise.resolve<ResourceErpDataListDto>(null as any);
|
|
5964
5952
|
}
|
|
5965
5953
|
|
|
5966
|
-
getResourceErpData(id:
|
|
5954
|
+
getResourceErpData(id: number): Promise<ResourceErpDataDto> {
|
|
5967
5955
|
let url_ = this.baseUrl + "/resources/{id}/erp";
|
|
5968
5956
|
if (id === undefined || id === null)
|
|
5969
5957
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6254,7 +6242,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
6254
6242
|
return Promise.resolve<void>(null as any);
|
|
6255
6243
|
}
|
|
6256
6244
|
|
|
6257
|
-
deleteMachine(id:
|
|
6245
|
+
deleteMachine(id: number): Promise<void> {
|
|
6258
6246
|
let url_ = this.baseUrl + "/resources/{id}";
|
|
6259
6247
|
if (id === undefined || id === null)
|
|
6260
6248
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6561,6 +6549,14 @@ export interface IPulseJournalClient {
|
|
|
6561
6549
|
|
|
6562
6550
|
reorderNowLine(resourceId: string, lineId: string, request: ReorderPulseJournalLineRequest): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6563
6551
|
|
|
6552
|
+
setNowLinePinned(resourceId: string, lineId: string, request: SetPulseJournalLinePinnedRequest): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6553
|
+
|
|
6554
|
+
setNowLineImportant(resourceId: string, lineId: string, request: SetPulseJournalLineImportantRequest): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6555
|
+
|
|
6556
|
+
addNowAttachment(resourceId: string, lineId: string, request: AddPulseJournalAttachmentRequest): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6557
|
+
|
|
6558
|
+
removeNowAttachment(resourceId: string, lineId: string, attachmentId: string, eTag: string | null | undefined): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6559
|
+
|
|
6564
6560
|
createAlwaysLine(resourceId: string, request: CreatePulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto>;
|
|
6565
6561
|
|
|
6566
6562
|
editAlwaysLine(resourceId: string, lineId: string, request: EditPulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto>;
|
|
@@ -6885,6 +6881,187 @@ export class PulseJournalClient extends AuthorizedApiBase implements IPulseJourn
|
|
|
6885
6881
|
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
6886
6882
|
}
|
|
6887
6883
|
|
|
6884
|
+
setNowLinePinned(resourceId: string, lineId: string, request: SetPulseJournalLinePinnedRequest): Promise<PulseJournalNowLineMutationResultDto> {
|
|
6885
|
+
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/pin";
|
|
6886
|
+
if (resourceId === undefined || resourceId === null)
|
|
6887
|
+
throw new globalThis.Error("The parameter 'resourceId' must be defined.");
|
|
6888
|
+
url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
|
|
6889
|
+
if (lineId === undefined || lineId === null)
|
|
6890
|
+
throw new globalThis.Error("The parameter 'lineId' must be defined.");
|
|
6891
|
+
url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
|
|
6892
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6893
|
+
|
|
6894
|
+
const content_ = JSON.stringify(request);
|
|
6895
|
+
|
|
6896
|
+
let options_: RequestInit = {
|
|
6897
|
+
body: content_,
|
|
6898
|
+
method: "POST",
|
|
6899
|
+
headers: {
|
|
6900
|
+
"Content-Type": "application/json",
|
|
6901
|
+
"Accept": "application/json"
|
|
6902
|
+
}
|
|
6903
|
+
};
|
|
6904
|
+
|
|
6905
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6906
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6907
|
+
}).then((_response: Response) => {
|
|
6908
|
+
return this.processSetNowLinePinned(_response);
|
|
6909
|
+
});
|
|
6910
|
+
}
|
|
6911
|
+
|
|
6912
|
+
protected processSetNowLinePinned(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
|
|
6913
|
+
const status = response.status;
|
|
6914
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6915
|
+
if (status === 200) {
|
|
6916
|
+
return response.text().then((_responseText) => {
|
|
6917
|
+
let result200: any = null;
|
|
6918
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
|
|
6919
|
+
return result200;
|
|
6920
|
+
});
|
|
6921
|
+
} else if (status !== 200 && status !== 204) {
|
|
6922
|
+
return response.text().then((_responseText) => {
|
|
6923
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6924
|
+
});
|
|
6925
|
+
}
|
|
6926
|
+
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
6927
|
+
}
|
|
6928
|
+
|
|
6929
|
+
setNowLineImportant(resourceId: string, lineId: string, request: SetPulseJournalLineImportantRequest): Promise<PulseJournalNowLineMutationResultDto> {
|
|
6930
|
+
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/important";
|
|
6931
|
+
if (resourceId === undefined || resourceId === null)
|
|
6932
|
+
throw new globalThis.Error("The parameter 'resourceId' must be defined.");
|
|
6933
|
+
url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
|
|
6934
|
+
if (lineId === undefined || lineId === null)
|
|
6935
|
+
throw new globalThis.Error("The parameter 'lineId' must be defined.");
|
|
6936
|
+
url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
|
|
6937
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6938
|
+
|
|
6939
|
+
const content_ = JSON.stringify(request);
|
|
6940
|
+
|
|
6941
|
+
let options_: RequestInit = {
|
|
6942
|
+
body: content_,
|
|
6943
|
+
method: "POST",
|
|
6944
|
+
headers: {
|
|
6945
|
+
"Content-Type": "application/json",
|
|
6946
|
+
"Accept": "application/json"
|
|
6947
|
+
}
|
|
6948
|
+
};
|
|
6949
|
+
|
|
6950
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6951
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6952
|
+
}).then((_response: Response) => {
|
|
6953
|
+
return this.processSetNowLineImportant(_response);
|
|
6954
|
+
});
|
|
6955
|
+
}
|
|
6956
|
+
|
|
6957
|
+
protected processSetNowLineImportant(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
|
|
6958
|
+
const status = response.status;
|
|
6959
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6960
|
+
if (status === 200) {
|
|
6961
|
+
return response.text().then((_responseText) => {
|
|
6962
|
+
let result200: any = null;
|
|
6963
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
|
|
6964
|
+
return result200;
|
|
6965
|
+
});
|
|
6966
|
+
} else if (status !== 200 && status !== 204) {
|
|
6967
|
+
return response.text().then((_responseText) => {
|
|
6968
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6969
|
+
});
|
|
6970
|
+
}
|
|
6971
|
+
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
6972
|
+
}
|
|
6973
|
+
|
|
6974
|
+
addNowAttachment(resourceId: string, lineId: string, request: AddPulseJournalAttachmentRequest): Promise<PulseJournalNowLineMutationResultDto> {
|
|
6975
|
+
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/attachments";
|
|
6976
|
+
if (resourceId === undefined || resourceId === null)
|
|
6977
|
+
throw new globalThis.Error("The parameter 'resourceId' must be defined.");
|
|
6978
|
+
url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
|
|
6979
|
+
if (lineId === undefined || lineId === null)
|
|
6980
|
+
throw new globalThis.Error("The parameter 'lineId' must be defined.");
|
|
6981
|
+
url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
|
|
6982
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6983
|
+
|
|
6984
|
+
const content_ = JSON.stringify(request);
|
|
6985
|
+
|
|
6986
|
+
let options_: RequestInit = {
|
|
6987
|
+
body: content_,
|
|
6988
|
+
method: "POST",
|
|
6989
|
+
headers: {
|
|
6990
|
+
"Content-Type": "application/json",
|
|
6991
|
+
"Accept": "application/json"
|
|
6992
|
+
}
|
|
6993
|
+
};
|
|
6994
|
+
|
|
6995
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6996
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6997
|
+
}).then((_response: Response) => {
|
|
6998
|
+
return this.processAddNowAttachment(_response);
|
|
6999
|
+
});
|
|
7000
|
+
}
|
|
7001
|
+
|
|
7002
|
+
protected processAddNowAttachment(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
|
|
7003
|
+
const status = response.status;
|
|
7004
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7005
|
+
if (status === 200) {
|
|
7006
|
+
return response.text().then((_responseText) => {
|
|
7007
|
+
let result200: any = null;
|
|
7008
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
|
|
7009
|
+
return result200;
|
|
7010
|
+
});
|
|
7011
|
+
} else if (status !== 200 && status !== 204) {
|
|
7012
|
+
return response.text().then((_responseText) => {
|
|
7013
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7014
|
+
});
|
|
7015
|
+
}
|
|
7016
|
+
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
7017
|
+
}
|
|
7018
|
+
|
|
7019
|
+
removeNowAttachment(resourceId: string, lineId: string, attachmentId: string, eTag: string | null | undefined): Promise<PulseJournalNowLineMutationResultDto> {
|
|
7020
|
+
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/attachments/{attachmentId}?";
|
|
7021
|
+
if (resourceId === undefined || resourceId === null)
|
|
7022
|
+
throw new globalThis.Error("The parameter 'resourceId' must be defined.");
|
|
7023
|
+
url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
|
|
7024
|
+
if (lineId === undefined || lineId === null)
|
|
7025
|
+
throw new globalThis.Error("The parameter 'lineId' must be defined.");
|
|
7026
|
+
url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
|
|
7027
|
+
if (attachmentId === undefined || attachmentId === null)
|
|
7028
|
+
throw new globalThis.Error("The parameter 'attachmentId' must be defined.");
|
|
7029
|
+
url_ = url_.replace("{attachmentId}", encodeURIComponent("" + attachmentId));
|
|
7030
|
+
if (eTag !== undefined && eTag !== null)
|
|
7031
|
+
url_ += "eTag=" + encodeURIComponent("" + eTag) + "&";
|
|
7032
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7033
|
+
|
|
7034
|
+
let options_: RequestInit = {
|
|
7035
|
+
method: "DELETE",
|
|
7036
|
+
headers: {
|
|
7037
|
+
"Accept": "application/json"
|
|
7038
|
+
}
|
|
7039
|
+
};
|
|
7040
|
+
|
|
7041
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7042
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
7043
|
+
}).then((_response: Response) => {
|
|
7044
|
+
return this.processRemoveNowAttachment(_response);
|
|
7045
|
+
});
|
|
7046
|
+
}
|
|
7047
|
+
|
|
7048
|
+
protected processRemoveNowAttachment(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
|
|
7049
|
+
const status = response.status;
|
|
7050
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7051
|
+
if (status === 200) {
|
|
7052
|
+
return response.text().then((_responseText) => {
|
|
7053
|
+
let result200: any = null;
|
|
7054
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
|
|
7055
|
+
return result200;
|
|
7056
|
+
});
|
|
7057
|
+
} else if (status !== 200 && status !== 204) {
|
|
7058
|
+
return response.text().then((_responseText) => {
|
|
7059
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7060
|
+
});
|
|
7061
|
+
}
|
|
7062
|
+
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
7063
|
+
}
|
|
7064
|
+
|
|
6888
7065
|
createAlwaysLine(resourceId: string, request: CreatePulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto> {
|
|
6889
7066
|
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/always/lines";
|
|
6890
7067
|
if (resourceId === undefined || resourceId === null)
|
|
@@ -12570,19 +12747,19 @@ export interface IMachinesClient {
|
|
|
12570
12747
|
|
|
12571
12748
|
deleteMachineGroup(id: string): Promise<void>;
|
|
12572
12749
|
|
|
12573
|
-
listCurrentMachineStates(assetId: number | null | undefined
|
|
12750
|
+
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
12574
12751
|
|
|
12575
|
-
listMachineStates(id:
|
|
12752
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
12576
12753
|
|
|
12577
|
-
listLastDowntimeMachineStates(id:
|
|
12754
|
+
listLastDowntimeMachineStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
12578
12755
|
|
|
12579
|
-
getMachineStateWithDowntimePeriods(id:
|
|
12756
|
+
getMachineStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
12580
12757
|
|
|
12581
|
-
getMachineStatesSummary(id:
|
|
12758
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
12582
12759
|
|
|
12583
12760
|
listMachineErpData(): Promise<MachineErpDataListDto>;
|
|
12584
12761
|
|
|
12585
|
-
getMachineErpData(id:
|
|
12762
|
+
getMachineErpData(id: number): Promise<MachineErpDataDto>;
|
|
12586
12763
|
|
|
12587
12764
|
/**
|
|
12588
12765
|
* @param startTime (optional)
|
|
@@ -12605,7 +12782,7 @@ export interface IMachinesClient {
|
|
|
12605
12782
|
|
|
12606
12783
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
12607
12784
|
|
|
12608
|
-
deleteMachine(id:
|
|
12785
|
+
deleteMachine(id: number): Promise<void>;
|
|
12609
12786
|
}
|
|
12610
12787
|
|
|
12611
12788
|
export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
@@ -12805,12 +12982,10 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12805
12982
|
return Promise.resolve<void>(null as any);
|
|
12806
12983
|
}
|
|
12807
12984
|
|
|
12808
|
-
listCurrentMachineStates(assetId: number | null | undefined
|
|
12985
|
+
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
12809
12986
|
let url_ = this.baseUrl + "/machines/states/now?";
|
|
12810
12987
|
if (assetId !== undefined && assetId !== null)
|
|
12811
12988
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
12812
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
12813
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
12814
12989
|
url_ = url_.replace(/[?&]$/, "");
|
|
12815
12990
|
|
|
12816
12991
|
let options_: RequestInit = {
|
|
@@ -12844,7 +13019,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12844
13019
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
12845
13020
|
}
|
|
12846
13021
|
|
|
12847
|
-
listMachineStates(id:
|
|
13022
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
12848
13023
|
let url_ = this.baseUrl + "/machines/{id}/states?";
|
|
12849
13024
|
if (id === undefined || id === null)
|
|
12850
13025
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12886,7 +13061,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12886
13061
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
12887
13062
|
}
|
|
12888
13063
|
|
|
12889
|
-
listLastDowntimeMachineStates(id:
|
|
13064
|
+
listLastDowntimeMachineStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
12890
13065
|
let url_ = this.baseUrl + "/machines/{id}/lastdowntimestates?";
|
|
12891
13066
|
if (id === undefined || id === null)
|
|
12892
13067
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12928,7 +13103,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12928
13103
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
12929
13104
|
}
|
|
12930
13105
|
|
|
12931
|
-
getMachineStateWithDowntimePeriods(id:
|
|
13106
|
+
getMachineStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
12932
13107
|
let url_ = this.baseUrl + "/machines/{id}/statewithdowntimeperiods?";
|
|
12933
13108
|
if (id === undefined || id === null)
|
|
12934
13109
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12970,7 +13145,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12970
13145
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
12971
13146
|
}
|
|
12972
13147
|
|
|
12973
|
-
getMachineStatesSummary(id:
|
|
13148
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
12974
13149
|
let url_ = this.baseUrl + "/machines/{id}/states/summary?";
|
|
12975
13150
|
if (id === undefined || id === null)
|
|
12976
13151
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13047,7 +13222,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13047
13222
|
return Promise.resolve<MachineErpDataListDto>(null as any);
|
|
13048
13223
|
}
|
|
13049
13224
|
|
|
13050
|
-
getMachineErpData(id:
|
|
13225
|
+
getMachineErpData(id: number): Promise<MachineErpDataDto> {
|
|
13051
13226
|
let url_ = this.baseUrl + "/machines/{id}/erp";
|
|
13052
13227
|
if (id === undefined || id === null)
|
|
13053
13228
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13385,7 +13560,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13385
13560
|
return Promise.resolve<void>(null as any);
|
|
13386
13561
|
}
|
|
13387
13562
|
|
|
13388
|
-
deleteMachine(id:
|
|
13563
|
+
deleteMachine(id: number): Promise<void> {
|
|
13389
13564
|
let url_ = this.baseUrl + "/machines/{id}";
|
|
13390
13565
|
if (id === undefined || id === null)
|
|
13391
13566
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13423,11 +13598,11 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13423
13598
|
|
|
13424
13599
|
export interface IMachineDataClient {
|
|
13425
13600
|
|
|
13426
|
-
getLiveMachineData(assetId:
|
|
13601
|
+
getLiveMachineData(assetId: number, externalIds: string[] | undefined): Promise<LiveMachineDataDto>;
|
|
13427
13602
|
|
|
13428
|
-
getTimeseriesGraph(assetId:
|
|
13603
|
+
getTimeseriesGraph(assetId: number, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto>;
|
|
13429
13604
|
|
|
13430
|
-
exportTimeseriesGraph(assetId:
|
|
13605
|
+
exportTimeseriesGraph(assetId: number, request: ExportTimeseriesGraphRequest): Promise<DownloadDto>;
|
|
13431
13606
|
}
|
|
13432
13607
|
|
|
13433
13608
|
export class MachineDataClient extends AuthorizedApiBase implements IMachineDataClient {
|
|
@@ -13440,7 +13615,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13440
13615
|
this.baseUrl = baseUrl ?? "";
|
|
13441
13616
|
}
|
|
13442
13617
|
|
|
13443
|
-
getLiveMachineData(assetId:
|
|
13618
|
+
getLiveMachineData(assetId: number, externalIds: string[] | undefined): Promise<LiveMachineDataDto> {
|
|
13444
13619
|
let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
|
|
13445
13620
|
if (assetId === undefined || assetId === null)
|
|
13446
13621
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13482,7 +13657,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13482
13657
|
return Promise.resolve<LiveMachineDataDto>(null as any);
|
|
13483
13658
|
}
|
|
13484
13659
|
|
|
13485
|
-
getTimeseriesGraph(assetId:
|
|
13660
|
+
getTimeseriesGraph(assetId: number, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto> {
|
|
13486
13661
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph?";
|
|
13487
13662
|
if (assetId === undefined || assetId === null)
|
|
13488
13663
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13532,7 +13707,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13532
13707
|
return Promise.resolve<TimeseriesGraphDto>(null as any);
|
|
13533
13708
|
}
|
|
13534
13709
|
|
|
13535
|
-
exportTimeseriesGraph(assetId:
|
|
13710
|
+
exportTimeseriesGraph(assetId: number, request: ExportTimeseriesGraphRequest): Promise<DownloadDto> {
|
|
13536
13711
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph/export-csv";
|
|
13537
13712
|
if (assetId === undefined || assetId === null)
|
|
13538
13713
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -18837,11 +19012,11 @@ export interface IAssetsClient {
|
|
|
18837
19012
|
|
|
18838
19013
|
searchAssets(name: string | null | undefined, description: string | null | undefined, limit: number | undefined): Promise<AssetDto[]>;
|
|
18839
19014
|
|
|
18840
|
-
getAssetById(id:
|
|
19015
|
+
getAssetById(id: number): Promise<AssetDto>;
|
|
18841
19016
|
|
|
18842
|
-
updateAsset(id:
|
|
19017
|
+
updateAsset(id: number, request: UpdateAssetRequest): Promise<AssetDto>;
|
|
18843
19018
|
|
|
18844
|
-
getAssetStructureById(id:
|
|
19019
|
+
getAssetStructureById(id: number): Promise<AssetStructureDto>;
|
|
18845
19020
|
|
|
18846
19021
|
/**
|
|
18847
19022
|
* @deprecated
|
|
@@ -18988,7 +19163,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
18988
19163
|
return Promise.resolve<AssetDto[]>(null as any);
|
|
18989
19164
|
}
|
|
18990
19165
|
|
|
18991
|
-
getAssetById(id:
|
|
19166
|
+
getAssetById(id: number): Promise<AssetDto> {
|
|
18992
19167
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
18993
19168
|
if (id === undefined || id === null)
|
|
18994
19169
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19026,7 +19201,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19026
19201
|
return Promise.resolve<AssetDto>(null as any);
|
|
19027
19202
|
}
|
|
19028
19203
|
|
|
19029
|
-
updateAsset(id:
|
|
19204
|
+
updateAsset(id: number, request: UpdateAssetRequest): Promise<AssetDto> {
|
|
19030
19205
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19031
19206
|
if (id === undefined || id === null)
|
|
19032
19207
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19068,7 +19243,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19068
19243
|
return Promise.resolve<AssetDto>(null as any);
|
|
19069
19244
|
}
|
|
19070
19245
|
|
|
19071
|
-
getAssetStructureById(id:
|
|
19246
|
+
getAssetStructureById(id: number): Promise<AssetStructureDto> {
|
|
19072
19247
|
let url_ = this.baseUrl + "/assets/{id}/structure";
|
|
19073
19248
|
if (id === undefined || id === null)
|
|
19074
19249
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -27252,8 +27427,6 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
27252
27427
|
|
|
27253
27428
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
27254
27429
|
|
|
27255
|
-
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void>;
|
|
27256
|
-
|
|
27257
27430
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
27258
27431
|
|
|
27259
27432
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -27893,44 +28066,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
27893
28066
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
27894
28067
|
}
|
|
27895
28068
|
|
|
27896
|
-
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void> {
|
|
27897
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files/{slot}";
|
|
27898
|
-
if (id === undefined || id === null)
|
|
27899
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27900
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27901
|
-
if (slot === undefined || slot === null)
|
|
27902
|
-
throw new globalThis.Error("The parameter 'slot' must be defined.");
|
|
27903
|
-
url_ = url_.replace("{slot}", encodeURIComponent("" + slot));
|
|
27904
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
27905
|
-
|
|
27906
|
-
let options_: RequestInit = {
|
|
27907
|
-
method: "DELETE",
|
|
27908
|
-
headers: {
|
|
27909
|
-
}
|
|
27910
|
-
};
|
|
27911
|
-
|
|
27912
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27913
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
27914
|
-
}).then((_response: Response) => {
|
|
27915
|
-
return this.processDeleteMeasurementFormSchemaFile(_response);
|
|
27916
|
-
});
|
|
27917
|
-
}
|
|
27918
|
-
|
|
27919
|
-
protected processDeleteMeasurementFormSchemaFile(response: Response): Promise<void> {
|
|
27920
|
-
const status = response.status;
|
|
27921
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
27922
|
-
if (status === 204) {
|
|
27923
|
-
return response.text().then((_responseText) => {
|
|
27924
|
-
return;
|
|
27925
|
-
});
|
|
27926
|
-
} else if (status !== 200 && status !== 204) {
|
|
27927
|
-
return response.text().then((_responseText) => {
|
|
27928
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27929
|
-
});
|
|
27930
|
-
}
|
|
27931
|
-
return Promise.resolve<void>(null as any);
|
|
27932
|
-
}
|
|
27933
|
-
|
|
27934
28069
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
|
|
27935
28070
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
27936
28071
|
if (id === undefined || id === null)
|
|
@@ -29530,8 +29665,6 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29530
29665
|
|
|
29531
29666
|
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
29532
29667
|
|
|
29533
|
-
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]>;
|
|
29534
|
-
|
|
29535
29668
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29536
29669
|
|
|
29537
29670
|
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
@@ -29682,44 +29815,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29682
29815
|
return Promise.resolve<MeasurementFormSchemaCountsDto>(null as any);
|
|
29683
29816
|
}
|
|
29684
29817
|
|
|
29685
|
-
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]> {
|
|
29686
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files";
|
|
29687
|
-
if (id === undefined || id === null)
|
|
29688
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29689
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29690
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
29691
|
-
|
|
29692
|
-
let options_: RequestInit = {
|
|
29693
|
-
method: "GET",
|
|
29694
|
-
headers: {
|
|
29695
|
-
"Accept": "application/json"
|
|
29696
|
-
}
|
|
29697
|
-
};
|
|
29698
|
-
|
|
29699
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29700
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
29701
|
-
}).then((_response: Response) => {
|
|
29702
|
-
return this.processListMeasurementFormSchemaFiles(_response);
|
|
29703
|
-
});
|
|
29704
|
-
}
|
|
29705
|
-
|
|
29706
|
-
protected processListMeasurementFormSchemaFiles(response: Response): Promise<MeasurementFormSchemaFileDto[]> {
|
|
29707
|
-
const status = response.status;
|
|
29708
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29709
|
-
if (status === 200) {
|
|
29710
|
-
return response.text().then((_responseText) => {
|
|
29711
|
-
let result200: any = null;
|
|
29712
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaFileDto[];
|
|
29713
|
-
return result200;
|
|
29714
|
-
});
|
|
29715
|
-
} else if (status !== 200 && status !== 204) {
|
|
29716
|
-
return response.text().then((_responseText) => {
|
|
29717
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29718
|
-
});
|
|
29719
|
-
}
|
|
29720
|
-
return Promise.resolve<MeasurementFormSchemaFileDto[]>(null as any);
|
|
29721
|
-
}
|
|
29722
|
-
|
|
29723
29818
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
29724
29819
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
29725
29820
|
if (id === undefined || id === null)
|
|
@@ -34018,7 +34113,6 @@ export interface UtilizationListDto {
|
|
|
34018
34113
|
|
|
34019
34114
|
export interface MachineUtilizationDto {
|
|
34020
34115
|
assetId: number;
|
|
34021
|
-
assetExternalId: string;
|
|
34022
34116
|
name: string;
|
|
34023
34117
|
description?: string | null;
|
|
34024
34118
|
state: string;
|
|
@@ -34066,7 +34160,6 @@ export interface PowerOnUtilizationDto extends UtilizationAveragesDto {
|
|
|
34066
34160
|
|
|
34067
34161
|
export interface UtilizationDetailsDto {
|
|
34068
34162
|
machineId: number;
|
|
34069
|
-
machineExternalId: string;
|
|
34070
34163
|
machineName: string;
|
|
34071
34164
|
machineStateText?: string | null;
|
|
34072
34165
|
machineState?: MachineState | null;
|
|
@@ -34198,7 +34291,6 @@ export interface ResourceUtilizationListDto {
|
|
|
34198
34291
|
|
|
34199
34292
|
export interface ResourceUtilizationDto {
|
|
34200
34293
|
assetId: number;
|
|
34201
|
-
assetExternalId: string;
|
|
34202
34294
|
name: string;
|
|
34203
34295
|
description?: string | null;
|
|
34204
34296
|
state: string;
|
|
@@ -34210,7 +34302,6 @@ export interface ResourceUtilizationDto {
|
|
|
34210
34302
|
|
|
34211
34303
|
export interface ResourceUtilizationDetailsDto {
|
|
34212
34304
|
resourceId: number;
|
|
34213
|
-
resourceExternalId: string;
|
|
34214
34305
|
resourceName: string;
|
|
34215
34306
|
machineStateText?: string | null;
|
|
34216
34307
|
machineState?: MachineState | null;
|
|
@@ -34329,7 +34420,6 @@ export interface DataHealthDto {
|
|
|
34329
34420
|
|
|
34330
34421
|
export interface MachineDataHealthDto {
|
|
34331
34422
|
assetId: number;
|
|
34332
|
-
assetExternalId: string;
|
|
34333
34423
|
name: string;
|
|
34334
34424
|
description?: string | null;
|
|
34335
34425
|
state?: string | null;
|
|
@@ -34349,7 +34439,6 @@ export interface PowerRegionDto {
|
|
|
34349
34439
|
|
|
34350
34440
|
export interface ConsumptionDto {
|
|
34351
34441
|
assetId: number;
|
|
34352
|
-
assetExternalId: string;
|
|
34353
34442
|
assetName: string;
|
|
34354
34443
|
kwh: number;
|
|
34355
34444
|
co2Equivalent?: number | null;
|
|
@@ -34359,11 +34448,9 @@ export interface ConsumptionDto {
|
|
|
34359
34448
|
|
|
34360
34449
|
export interface AssetConsumptionDto {
|
|
34361
34450
|
timeseriesId: number;
|
|
34362
|
-
timeseriesExternalId?: string | null;
|
|
34363
34451
|
timeseriesName: string;
|
|
34364
34452
|
kwh: number;
|
|
34365
34453
|
assetId: number;
|
|
34366
|
-
assetExternalId?: string | null;
|
|
34367
34454
|
assetName: string;
|
|
34368
34455
|
co2Equivalent?: number | null;
|
|
34369
34456
|
co2EquivalentNotAdjustedForLocalProduction?: number | null;
|
|
@@ -34371,7 +34458,6 @@ export interface AssetConsumptionDto {
|
|
|
34371
34458
|
|
|
34372
34459
|
export interface GetConsumption {
|
|
34373
34460
|
assetId?: number | null;
|
|
34374
|
-
assetExternalId?: string | null;
|
|
34375
34461
|
start?: Date | null;
|
|
34376
34462
|
end?: Date | null;
|
|
34377
34463
|
}
|
|
@@ -34383,10 +34469,8 @@ export interface PowerDto {
|
|
|
34383
34469
|
|
|
34384
34470
|
export interface AssetPowerDto {
|
|
34385
34471
|
timeseriesId?: number;
|
|
34386
|
-
timeseriesExternalId?: string | null;
|
|
34387
34472
|
timeseriesName?: string | null;
|
|
34388
34473
|
assetId?: number;
|
|
34389
|
-
assetExternalId?: string | null;
|
|
34390
34474
|
assetName?: string | null;
|
|
34391
34475
|
timeSeriesDataPoints?: NumericDataPointDto[] | null;
|
|
34392
34476
|
}
|
|
@@ -34400,8 +34484,7 @@ export interface NumericDataPointDto {
|
|
|
34400
34484
|
}
|
|
34401
34485
|
|
|
34402
34486
|
export interface GetPower {
|
|
34403
|
-
assetId
|
|
34404
|
-
assetExternalId?: string | null;
|
|
34487
|
+
assetId: number;
|
|
34405
34488
|
granularity?: string | null;
|
|
34406
34489
|
start?: Date | null;
|
|
34407
34490
|
end?: Date | null;
|
|
@@ -34934,7 +35017,6 @@ export interface MachineStateDto {
|
|
|
34934
35017
|
state: string;
|
|
34935
35018
|
machineState: MachineState;
|
|
34936
35019
|
startTime: Date;
|
|
34937
|
-
assetExternalId: string;
|
|
34938
35020
|
}
|
|
34939
35021
|
|
|
34940
35022
|
export interface DowntimeMachineStateDto {
|
|
@@ -34954,7 +35036,6 @@ export interface SingleResourceErpDataListDto {
|
|
|
34954
35036
|
activeOrders: ResourceErpDataDto[];
|
|
34955
35037
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
34956
35038
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
34957
|
-
assetExternalId: string;
|
|
34958
35039
|
}
|
|
34959
35040
|
|
|
34960
35041
|
export interface ResourceErpDataDto {
|
|
@@ -35201,7 +35282,7 @@ export interface PulseJournalBoardsDto {
|
|
|
35201
35282
|
}
|
|
35202
35283
|
|
|
35203
35284
|
export interface PulseJournalNowBoardDto {
|
|
35204
|
-
lines:
|
|
35285
|
+
lines: PulseJournalNowLineDto[];
|
|
35205
35286
|
eTag?: string | null;
|
|
35206
35287
|
}
|
|
35207
35288
|
|
|
@@ -35215,14 +35296,10 @@ export interface PulseJournalLineDto {
|
|
|
35215
35296
|
updatedBy?: string | null;
|
|
35216
35297
|
}
|
|
35217
35298
|
|
|
35218
|
-
export interface
|
|
35219
|
-
|
|
35220
|
-
|
|
35221
|
-
}
|
|
35222
|
-
|
|
35223
|
-
export interface PulseJournalAlwaysLineDto extends PulseJournalLineDto {
|
|
35299
|
+
export interface PulseJournalNowLineDto extends PulseJournalLineDto {
|
|
35300
|
+
isPinned: boolean;
|
|
35301
|
+
isImportant: boolean;
|
|
35224
35302
|
attachments: PulseJournalAttachmentDto[];
|
|
35225
|
-
links: PulseJournalLinkDto[];
|
|
35226
35303
|
}
|
|
35227
35304
|
|
|
35228
35305
|
export interface PulseJournalAttachmentDto {
|
|
@@ -35233,6 +35310,16 @@ export interface PulseJournalAttachmentDto {
|
|
|
35233
35310
|
createdBy?: string | null;
|
|
35234
35311
|
}
|
|
35235
35312
|
|
|
35313
|
+
export interface PulseJournalAlwaysBoardDto {
|
|
35314
|
+
lines: PulseJournalAlwaysLineDto[];
|
|
35315
|
+
eTag?: string | null;
|
|
35316
|
+
}
|
|
35317
|
+
|
|
35318
|
+
export interface PulseJournalAlwaysLineDto extends PulseJournalLineDto {
|
|
35319
|
+
attachments: PulseJournalAttachmentDto[];
|
|
35320
|
+
links: PulseJournalLinkDto[];
|
|
35321
|
+
}
|
|
35322
|
+
|
|
35236
35323
|
export interface PulseJournalLinkDto {
|
|
35237
35324
|
id: string;
|
|
35238
35325
|
url: string;
|
|
@@ -35266,7 +35353,7 @@ export interface UndoPulseJournalActionRequest {
|
|
|
35266
35353
|
}
|
|
35267
35354
|
|
|
35268
35355
|
export interface PulseJournalNowLineMutationResultDto {
|
|
35269
|
-
line?:
|
|
35356
|
+
line?: PulseJournalNowLineDto | null;
|
|
35270
35357
|
boardETag: string;
|
|
35271
35358
|
eventId?: string | null;
|
|
35272
35359
|
}
|
|
@@ -35287,10 +35374,14 @@ export interface ReorderPulseJournalLineRequest {
|
|
|
35287
35374
|
eTag?: string | null;
|
|
35288
35375
|
}
|
|
35289
35376
|
|
|
35290
|
-
export interface
|
|
35291
|
-
|
|
35292
|
-
|
|
35293
|
-
|
|
35377
|
+
export interface SetPulseJournalLinePinnedRequest {
|
|
35378
|
+
isPinned: boolean;
|
|
35379
|
+
eTag?: string | null;
|
|
35380
|
+
}
|
|
35381
|
+
|
|
35382
|
+
export interface SetPulseJournalLineImportantRequest {
|
|
35383
|
+
isImportant: boolean;
|
|
35384
|
+
eTag?: string | null;
|
|
35294
35385
|
}
|
|
35295
35386
|
|
|
35296
35387
|
export interface AddPulseJournalAttachmentRequest {
|
|
@@ -35299,6 +35390,12 @@ export interface AddPulseJournalAttachmentRequest {
|
|
|
35299
35390
|
eTag?: string | null;
|
|
35300
35391
|
}
|
|
35301
35392
|
|
|
35393
|
+
export interface PulseJournalAlwaysLineMutationResultDto {
|
|
35394
|
+
line?: PulseJournalAlwaysLineDto | null;
|
|
35395
|
+
boardETag: string;
|
|
35396
|
+
eventId?: string | null;
|
|
35397
|
+
}
|
|
35398
|
+
|
|
35302
35399
|
export interface AddPulseJournalLinkRequest {
|
|
35303
35400
|
url: string;
|
|
35304
35401
|
eTag?: string | null;
|
|
@@ -35331,7 +35428,6 @@ export interface ResourceGroupUtilizationV2Dto {
|
|
|
35331
35428
|
|
|
35332
35429
|
export interface ResourceUtilizationV3Dto {
|
|
35333
35430
|
id?: number;
|
|
35334
|
-
externalId: string;
|
|
35335
35431
|
name: string;
|
|
35336
35432
|
description?: string | null;
|
|
35337
35433
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -36524,7 +36620,6 @@ export interface SingleMachineErpDataListDto {
|
|
|
36524
36620
|
activeOrders: MachineErpDataDto[];
|
|
36525
36621
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
36526
36622
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
36527
|
-
assetExternalId: string;
|
|
36528
36623
|
}
|
|
36529
36624
|
|
|
36530
36625
|
export interface MachineErpDataDto {
|
|
@@ -36571,7 +36666,6 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
36571
36666
|
export interface LiveMachineDataDto {
|
|
36572
36667
|
assetId?: number;
|
|
36573
36668
|
dataPoints?: LiveMachineDataPointDto[];
|
|
36574
|
-
assetExternalId: string;
|
|
36575
36669
|
}
|
|
36576
36670
|
|
|
36577
36671
|
export interface LiveMachineDataPointDto {
|
|
@@ -36584,7 +36678,6 @@ export interface LiveMachineDataPointDto {
|
|
|
36584
36678
|
export interface TimeseriesGraphDto {
|
|
36585
36679
|
assetId?: number;
|
|
36586
36680
|
series?: TimeseriesGraphSeriesDto[];
|
|
36587
|
-
assetExternalId: string;
|
|
36588
36681
|
}
|
|
36589
36682
|
|
|
36590
36683
|
export interface TimeseriesGraphSeriesDto {
|
|
@@ -37737,13 +37830,11 @@ export interface AssetDto {
|
|
|
37737
37830
|
metadata?: { [key: string]: string; } | null;
|
|
37738
37831
|
aggregates?: any | null;
|
|
37739
37832
|
parentId?: number | null;
|
|
37740
|
-
parentExternalId?: string | null;
|
|
37741
37833
|
source?: string | null;
|
|
37742
37834
|
id?: number | null;
|
|
37743
37835
|
createdTime?: number | null;
|
|
37744
37836
|
lastUpdatedTime?: number | null;
|
|
37745
37837
|
rootId?: number | null;
|
|
37746
|
-
rootExternalId?: string | null;
|
|
37747
37838
|
}
|
|
37748
37839
|
|
|
37749
37840
|
export interface AssetStructureDto {
|
|
@@ -37763,8 +37854,7 @@ export interface AssetSimpleStructureDto {
|
|
|
37763
37854
|
}
|
|
37764
37855
|
|
|
37765
37856
|
export interface CreateAsset {
|
|
37766
|
-
parentId
|
|
37767
|
-
parentExternalId?: string | null;
|
|
37857
|
+
parentId: number;
|
|
37768
37858
|
externalId: string;
|
|
37769
37859
|
name: string;
|
|
37770
37860
|
description: string;
|
|
@@ -37773,8 +37863,7 @@ export interface CreateAsset {
|
|
|
37773
37863
|
}
|
|
37774
37864
|
|
|
37775
37865
|
export interface UpdateAssetRequest {
|
|
37776
|
-
parentId
|
|
37777
|
-
parentExternalId?: string | null;
|
|
37866
|
+
parentId: number;
|
|
37778
37867
|
name: string;
|
|
37779
37868
|
description: string;
|
|
37780
37869
|
metadata: { [key: string]: string; };
|
|
@@ -40860,8 +40949,6 @@ export interface UploadRequest {
|
|
|
40860
40949
|
isMarkedDrawing?: boolean | null;
|
|
40861
40950
|
}
|
|
40862
40951
|
|
|
40863
|
-
export type SchemaFileSlot = "Drawing" | "ProjectFile" | "MarkedDrawing" | "SourceFile";
|
|
40864
|
-
|
|
40865
40952
|
export interface MeasurementFormImportStatusDto {
|
|
40866
40953
|
progress: number;
|
|
40867
40954
|
totalElements: number;
|
|
@@ -41200,14 +41287,6 @@ export interface CountMeasurementFormSchemasRequest {
|
|
|
41200
41287
|
schemaCreator?: boolean | null;
|
|
41201
41288
|
}
|
|
41202
41289
|
|
|
41203
|
-
export interface MeasurementFormSchemaFileDto {
|
|
41204
|
-
slot: SchemaFileSlot;
|
|
41205
|
-
title: string;
|
|
41206
|
-
url: string;
|
|
41207
|
-
size?: number | null;
|
|
41208
|
-
lastModified?: Date | null;
|
|
41209
|
-
}
|
|
41210
|
-
|
|
41211
41290
|
export interface MeasurementFormSchemaVersionDto {
|
|
41212
41291
|
id: string;
|
|
41213
41292
|
versionId: number;
|