@ignos/api-client 20261110.361.1-alpha → 20261110.362.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 +164 -136
- package/lib/ignosportal-api.js +102 -195
- package/package.json +1 -1
- package/src/ignosportal-api.ts +257 -323
package/src/ignosportal-api.ts
CHANGED
|
@@ -1465,23 +1465,24 @@ export interface IMachineUtilizationClient {
|
|
|
1465
1465
|
* @param favorites (optional)
|
|
1466
1466
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1467
1467
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1468
|
+
* @param assetExternalId (optional)
|
|
1468
1469
|
*/
|
|
1469
|
-
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto>;
|
|
1470
|
+
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined, assetExternalId: string | null | undefined): Promise<UtilizationListDto>;
|
|
1470
1471
|
|
|
1471
|
-
getMachineUtilization(id:
|
|
1472
|
+
getMachineUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto>;
|
|
1472
1473
|
|
|
1473
1474
|
/**
|
|
1474
1475
|
* @param startTime (optional)
|
|
1475
1476
|
* @param endTime (optional)
|
|
1476
1477
|
* @deprecated
|
|
1477
1478
|
*/
|
|
1478
|
-
getUtilizationDetailsForMachine(id:
|
|
1479
|
+
getUtilizationDetailsForMachine(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1479
1480
|
|
|
1480
|
-
getResourceTimelines(id:
|
|
1481
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1481
1482
|
|
|
1482
|
-
listMachineStates(id:
|
|
1483
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1483
1484
|
|
|
1484
|
-
getMachineStatesSummary(id:
|
|
1485
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1485
1486
|
|
|
1486
1487
|
listMachineUptimesToday(request: ListMachineUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
|
|
1487
1488
|
|
|
@@ -1513,8 +1514,9 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1513
1514
|
* @param favorites (optional)
|
|
1514
1515
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1515
1516
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1517
|
+
* @param assetExternalId (optional)
|
|
1516
1518
|
*/
|
|
1517
|
-
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto> {
|
|
1519
|
+
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined, assetExternalId: string | null | undefined): Promise<UtilizationListDto> {
|
|
1518
1520
|
let url_ = this.baseUrl + "/machineutilization?";
|
|
1519
1521
|
if (assetId !== undefined && assetId !== null)
|
|
1520
1522
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
@@ -1526,6 +1528,8 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1526
1528
|
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
1527
1529
|
if (utcOffset !== undefined && utcOffset !== null)
|
|
1528
1530
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
1531
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
1532
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
1529
1533
|
url_ = url_.replace(/[?&]$/, "");
|
|
1530
1534
|
|
|
1531
1535
|
let options_: RequestInit = {
|
|
@@ -1559,7 +1563,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1559
1563
|
return Promise.resolve<UtilizationListDto>(null as any);
|
|
1560
1564
|
}
|
|
1561
1565
|
|
|
1562
|
-
getMachineUtilization(id:
|
|
1566
|
+
getMachineUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto> {
|
|
1563
1567
|
let url_ = this.baseUrl + "/machineutilization/{id}?";
|
|
1564
1568
|
if (id === undefined || id === null)
|
|
1565
1569
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1608,7 +1612,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1608
1612
|
* @param endTime (optional)
|
|
1609
1613
|
* @deprecated
|
|
1610
1614
|
*/
|
|
1611
|
-
getUtilizationDetailsForMachine(id:
|
|
1615
|
+
getUtilizationDetailsForMachine(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1612
1616
|
let url_ = this.baseUrl + "/machineutilization/{id}/utilization?";
|
|
1613
1617
|
if (id === undefined || id === null)
|
|
1614
1618
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1650,7 +1654,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1650
1654
|
return Promise.resolve<MachineStatesSummaryDto>(null as any);
|
|
1651
1655
|
}
|
|
1652
1656
|
|
|
1653
|
-
getResourceTimelines(id:
|
|
1657
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
1654
1658
|
let url_ = this.baseUrl + "/machineutilization/{id}/resource/timelines?";
|
|
1655
1659
|
if (id === undefined || id === null)
|
|
1656
1660
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1696,7 +1700,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1696
1700
|
return Promise.resolve<TimelinesDto>(null as any);
|
|
1697
1701
|
}
|
|
1698
1702
|
|
|
1699
|
-
listMachineStates(id:
|
|
1703
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
1700
1704
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
|
|
1701
1705
|
if (id === undefined || id === null)
|
|
1702
1706
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1738,7 +1742,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1738
1742
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
1739
1743
|
}
|
|
1740
1744
|
|
|
1741
|
-
getMachineStatesSummary(id:
|
|
1745
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1742
1746
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states/summary?";
|
|
1743
1747
|
if (id === undefined || id === null)
|
|
1744
1748
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1959,16 +1963,17 @@ export interface IResourceUtilizationClient {
|
|
|
1959
1963
|
* @param favorites (optional)
|
|
1960
1964
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1961
1965
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1966
|
+
* @param assetExternalId (optional)
|
|
1962
1967
|
*/
|
|
1963
|
-
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto>;
|
|
1968
|
+
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined, assetExternalId: string | null | undefined): Promise<ResourceUtilizationListDto>;
|
|
1964
1969
|
|
|
1965
|
-
getResourceUtilization(id:
|
|
1970
|
+
getResourceUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto>;
|
|
1966
1971
|
|
|
1967
|
-
getResourceTimelines(id:
|
|
1972
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1968
1973
|
|
|
1969
|
-
listMachineStates(id:
|
|
1974
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1970
1975
|
|
|
1971
|
-
getMachineStatesSummary(id:
|
|
1976
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1972
1977
|
|
|
1973
1978
|
listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<ResourceUptimesAggregateDto>;
|
|
1974
1979
|
|
|
@@ -2000,8 +2005,9 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2000
2005
|
* @param favorites (optional)
|
|
2001
2006
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
2002
2007
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
2008
|
+
* @param assetExternalId (optional)
|
|
2003
2009
|
*/
|
|
2004
|
-
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto> {
|
|
2010
|
+
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined, assetExternalId: string | null | undefined): Promise<ResourceUtilizationListDto> {
|
|
2005
2011
|
let url_ = this.baseUrl + "/resourceutilization?";
|
|
2006
2012
|
if (assetId !== undefined && assetId !== null)
|
|
2007
2013
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
@@ -2013,6 +2019,8 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2013
2019
|
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
2014
2020
|
if (utcOffset !== undefined && utcOffset !== null)
|
|
2015
2021
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
2022
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
2023
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
2016
2024
|
url_ = url_.replace(/[?&]$/, "");
|
|
2017
2025
|
|
|
2018
2026
|
let options_: RequestInit = {
|
|
@@ -2046,7 +2054,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2046
2054
|
return Promise.resolve<ResourceUtilizationListDto>(null as any);
|
|
2047
2055
|
}
|
|
2048
2056
|
|
|
2049
|
-
getResourceUtilization(id:
|
|
2057
|
+
getResourceUtilization(id: string, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto> {
|
|
2050
2058
|
let url_ = this.baseUrl + "/resourceutilization/{id}?";
|
|
2051
2059
|
if (id === undefined || id === null)
|
|
2052
2060
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2090,7 +2098,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2090
2098
|
return Promise.resolve<ResourceUtilizationDetailsDto>(null as any);
|
|
2091
2099
|
}
|
|
2092
2100
|
|
|
2093
|
-
getResourceTimelines(id:
|
|
2101
|
+
getResourceTimelines(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
2094
2102
|
let url_ = this.baseUrl + "/resourceutilization/{id}/resource/timelines?";
|
|
2095
2103
|
if (id === undefined || id === null)
|
|
2096
2104
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2136,7 +2144,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2136
2144
|
return Promise.resolve<TimelinesDto>(null as any);
|
|
2137
2145
|
}
|
|
2138
2146
|
|
|
2139
|
-
listMachineStates(id:
|
|
2147
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
2140
2148
|
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states?";
|
|
2141
2149
|
if (id === undefined || id === null)
|
|
2142
2150
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2178,7 +2186,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2178
2186
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
2179
2187
|
}
|
|
2180
2188
|
|
|
2181
|
-
getMachineStatesSummary(id:
|
|
2189
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
2182
2190
|
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states/summary?";
|
|
2183
2191
|
if (id === undefined || id === null)
|
|
2184
2192
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -3132,7 +3140,7 @@ export class UploadClient extends AuthorizedApiBase implements IUploadClient {
|
|
|
3132
3140
|
|
|
3133
3141
|
export interface ISystemHealthDashboardClient {
|
|
3134
3142
|
|
|
3135
|
-
getMachineDataHealth(assetId: number | null | undefined): Promise<DataHealthDto>;
|
|
3143
|
+
getMachineDataHealth(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<DataHealthDto>;
|
|
3136
3144
|
}
|
|
3137
3145
|
|
|
3138
3146
|
export class SystemHealthDashboardClient extends AuthorizedApiBase implements ISystemHealthDashboardClient {
|
|
@@ -3145,10 +3153,12 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase implements IS
|
|
|
3145
3153
|
this.baseUrl = baseUrl ?? "";
|
|
3146
3154
|
}
|
|
3147
3155
|
|
|
3148
|
-
getMachineDataHealth(assetId: number | null | undefined): Promise<DataHealthDto> {
|
|
3156
|
+
getMachineDataHealth(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<DataHealthDto> {
|
|
3149
3157
|
let url_ = this.baseUrl + "/systemhealthdashboard?";
|
|
3150
3158
|
if (assetId !== undefined && assetId !== null)
|
|
3151
3159
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3160
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3161
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3152
3162
|
url_ = url_.replace(/[?&]$/, "");
|
|
3153
3163
|
|
|
3154
3164
|
let options_: RequestInit = {
|
|
@@ -3536,7 +3546,7 @@ export class SustainabilityClient extends AuthorizedApiBase implements ISustaina
|
|
|
3536
3546
|
|
|
3537
3547
|
export interface IMachineAlarmsClient {
|
|
3538
3548
|
|
|
3539
|
-
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
3549
|
+
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, assetExternalId: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
3540
3550
|
|
|
3541
3551
|
listGroupedMachineIncidents(request: ListGroupedMachineIncidentsRequest): Promise<PagedResultOfGroupedMachineIncidentDto>;
|
|
3542
3552
|
|
|
@@ -3544,9 +3554,9 @@ export interface IMachineAlarmsClient {
|
|
|
3544
3554
|
|
|
3545
3555
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
3546
3556
|
|
|
3547
|
-
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
3557
|
+
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, assetExternalId: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
3548
3558
|
|
|
3549
|
-
getMachineAlarmDetails(id:
|
|
3559
|
+
getMachineAlarmDetails(id: string): Promise<MachineAlarmDetailsDto>;
|
|
3550
3560
|
}
|
|
3551
3561
|
|
|
3552
3562
|
export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAlarmsClient {
|
|
@@ -3559,13 +3569,11 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
3559
3569
|
this.baseUrl = baseUrl ?? "";
|
|
3560
3570
|
}
|
|
3561
3571
|
|
|
3562
|
-
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto> {
|
|
3572
|
+
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, assetExternalId: string | null | undefined): Promise<PagedResultOfMachineAlarmDto> {
|
|
3563
3573
|
let url_ = this.baseUrl + "/machinealarms?";
|
|
3564
3574
|
if (alarmType !== undefined && alarmType !== null)
|
|
3565
3575
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
3566
|
-
if (assetId
|
|
3567
|
-
throw new globalThis.Error("The parameter 'assetId' cannot be null.");
|
|
3568
|
-
else if (assetId !== undefined)
|
|
3576
|
+
if (assetId !== undefined && assetId !== null)
|
|
3569
3577
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3570
3578
|
if (startTime === null)
|
|
3571
3579
|
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
@@ -3593,6 +3601,8 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
3593
3601
|
url_ += "orderBy=" + encodeURIComponent("" + orderBy) + "&";
|
|
3594
3602
|
if (sortDirection !== undefined && sortDirection !== null)
|
|
3595
3603
|
url_ += "sortDirection=" + encodeURIComponent("" + sortDirection) + "&";
|
|
3604
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3605
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3596
3606
|
url_ = url_.replace(/[?&]$/, "");
|
|
3597
3607
|
|
|
3598
3608
|
let options_: RequestInit = {
|
|
@@ -3747,13 +3757,11 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
3747
3757
|
return Promise.resolve<MachineAlarmSeverityOccurenceDto[]>(null as any);
|
|
3748
3758
|
}
|
|
3749
3759
|
|
|
3750
|
-
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto> {
|
|
3760
|
+
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, assetExternalId: string | null | undefined): Promise<MachineAlarmCountDto> {
|
|
3751
3761
|
let url_ = this.baseUrl + "/machinealarms/alarmcount?";
|
|
3752
3762
|
if (alarmType !== undefined && alarmType !== null)
|
|
3753
3763
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
3754
|
-
if (assetId
|
|
3755
|
-
throw new globalThis.Error("The parameter 'assetId' cannot be null.");
|
|
3756
|
-
else if (assetId !== undefined)
|
|
3764
|
+
if (assetId !== undefined && assetId !== null)
|
|
3757
3765
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3758
3766
|
if (startTime === null)
|
|
3759
3767
|
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
@@ -3771,6 +3779,8 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
3771
3779
|
url_ += "name=" + encodeURIComponent("" + name) + "&";
|
|
3772
3780
|
if (sequence !== undefined && sequence !== null)
|
|
3773
3781
|
url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
|
|
3782
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3783
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3774
3784
|
url_ = url_.replace(/[?&]$/, "");
|
|
3775
3785
|
|
|
3776
3786
|
let options_: RequestInit = {
|
|
@@ -3804,7 +3814,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
3804
3814
|
return Promise.resolve<MachineAlarmCountDto>(null as any);
|
|
3805
3815
|
}
|
|
3806
3816
|
|
|
3807
|
-
getMachineAlarmDetails(id:
|
|
3817
|
+
getMachineAlarmDetails(id: string): Promise<MachineAlarmDetailsDto> {
|
|
3808
3818
|
let url_ = this.baseUrl + "/machinealarms/alarms/{id}";
|
|
3809
3819
|
if (id === undefined || id === null)
|
|
3810
3820
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -4216,15 +4226,15 @@ export interface IDowntimeReasonsResourceClient {
|
|
|
4216
4226
|
|
|
4217
4227
|
createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
|
|
4218
4228
|
|
|
4219
|
-
updateDowntimePeriodReason(id:
|
|
4229
|
+
updateDowntimePeriodReason(id: string, request: IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
4220
4230
|
|
|
4221
|
-
deleteDowntimeReason(id:
|
|
4231
|
+
deleteDowntimeReason(id: string): Promise<void>;
|
|
4222
4232
|
|
|
4223
|
-
listDowntimeReasonsForMachine(id:
|
|
4233
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonResourceDto[]>;
|
|
4224
4234
|
|
|
4225
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
4235
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicResourceDto[]>;
|
|
4226
4236
|
|
|
4227
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
4237
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]>;
|
|
4228
4238
|
|
|
4229
4239
|
listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
|
|
4230
4240
|
|
|
@@ -4284,7 +4294,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
|
|
|
4284
4294
|
return Promise.resolve<DowntimePeriodReasonDto>(null as any);
|
|
4285
4295
|
}
|
|
4286
4296
|
|
|
4287
|
-
updateDowntimePeriodReason(id:
|
|
4297
|
+
updateDowntimePeriodReason(id: string, request: IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto> {
|
|
4288
4298
|
let url_ = this.baseUrl + "/downtimereasonsresource/{id}";
|
|
4289
4299
|
if (id === undefined || id === null)
|
|
4290
4300
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -4326,7 +4336,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
|
|
|
4326
4336
|
return Promise.resolve<DowntimePeriodReasonDto>(null as any);
|
|
4327
4337
|
}
|
|
4328
4338
|
|
|
4329
|
-
deleteDowntimeReason(id:
|
|
4339
|
+
deleteDowntimeReason(id: string): Promise<void> {
|
|
4330
4340
|
let url_ = this.baseUrl + "/downtimereasonsresource/{id}";
|
|
4331
4341
|
if (id === undefined || id === null)
|
|
4332
4342
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -4361,7 +4371,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
|
|
|
4361
4371
|
return Promise.resolve<void>(null as any);
|
|
4362
4372
|
}
|
|
4363
4373
|
|
|
4364
|
-
listDowntimeReasonsForMachine(id:
|
|
4374
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonResourceDto[]> {
|
|
4365
4375
|
let url_ = this.baseUrl + "/downtimereasonsresource/machine/{id}/downtimereasons";
|
|
4366
4376
|
if (id === undefined || id === null)
|
|
4367
4377
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -4399,7 +4409,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
|
|
|
4399
4409
|
return Promise.resolve<DowntimeReasonResourceDto[]>(null as any);
|
|
4400
4410
|
}
|
|
4401
4411
|
|
|
4402
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
4412
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicResourceDto[]> {
|
|
4403
4413
|
let url_ = this.baseUrl + "/downtimereasonsresource/machine/{id}/downtimereasonshierarchy";
|
|
4404
4414
|
if (id === undefined || id === null)
|
|
4405
4415
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -4437,7 +4447,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
|
|
|
4437
4447
|
return Promise.resolve<ParentTopicResourceDto[]>(null as any);
|
|
4438
4448
|
}
|
|
4439
4449
|
|
|
4440
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
4450
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]> {
|
|
4441
4451
|
let url_ = this.baseUrl + "/downtimereasonsresource/machine/{id}/active";
|
|
4442
4452
|
if (id === undefined || id === null)
|
|
4443
4453
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5476,19 +5486,19 @@ export interface IResourcesClient {
|
|
|
5476
5486
|
|
|
5477
5487
|
deleteResourceGroup(id: string): Promise<void>;
|
|
5478
5488
|
|
|
5479
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
5489
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
5480
5490
|
|
|
5481
|
-
listMachineStates(id:
|
|
5491
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
5482
5492
|
|
|
5483
|
-
listLastDowntimeMachineStates(id:
|
|
5493
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
5484
5494
|
|
|
5485
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5495
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
5486
5496
|
|
|
5487
|
-
getMachineStatesSummary(id:
|
|
5497
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
5488
5498
|
|
|
5489
5499
|
listResourceErpData(): Promise<ResourceErpDataListDto>;
|
|
5490
5500
|
|
|
5491
|
-
getResourceErpData(id:
|
|
5501
|
+
getResourceErpData(id: string): Promise<ResourceErpDataDto>;
|
|
5492
5502
|
|
|
5493
5503
|
getResourceUtilizationSummary(): Promise<ResourceUtilizationSummaryDto>;
|
|
5494
5504
|
|
|
@@ -5504,7 +5514,7 @@ export interface IResourcesClient {
|
|
|
5504
5514
|
|
|
5505
5515
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
5506
5516
|
|
|
5507
|
-
deleteMachine(id:
|
|
5517
|
+
deleteMachine(id: string): Promise<void>;
|
|
5508
5518
|
|
|
5509
5519
|
/**
|
|
5510
5520
|
* @deprecated
|
|
@@ -5711,10 +5721,12 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5711
5721
|
return Promise.resolve<void>(null as any);
|
|
5712
5722
|
}
|
|
5713
5723
|
|
|
5714
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
5724
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
5715
5725
|
let url_ = this.baseUrl + "/resources/states/now?";
|
|
5716
5726
|
if (assetId !== undefined && assetId !== null)
|
|
5717
5727
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
5728
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
5729
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
5718
5730
|
url_ = url_.replace(/[?&]$/, "");
|
|
5719
5731
|
|
|
5720
5732
|
let options_: RequestInit = {
|
|
@@ -5748,7 +5760,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5748
5760
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
5749
5761
|
}
|
|
5750
5762
|
|
|
5751
|
-
listMachineStates(id:
|
|
5763
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
5752
5764
|
let url_ = this.baseUrl + "/resources/{id}/states?";
|
|
5753
5765
|
if (id === undefined || id === null)
|
|
5754
5766
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5790,7 +5802,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5790
5802
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
5791
5803
|
}
|
|
5792
5804
|
|
|
5793
|
-
listLastDowntimeMachineStates(id:
|
|
5805
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
5794
5806
|
let url_ = this.baseUrl + "/resources/{id}/lastdowntimestates?";
|
|
5795
5807
|
if (id === undefined || id === null)
|
|
5796
5808
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5832,7 +5844,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5832
5844
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
5833
5845
|
}
|
|
5834
5846
|
|
|
5835
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5847
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
5836
5848
|
let url_ = this.baseUrl + "/resources/{id}/statewithdowntimeperiods?";
|
|
5837
5849
|
if (id === undefined || id === null)
|
|
5838
5850
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5874,7 +5886,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5874
5886
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
5875
5887
|
}
|
|
5876
5888
|
|
|
5877
|
-
getMachineStatesSummary(id:
|
|
5889
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
5878
5890
|
let url_ = this.baseUrl + "/resources/{id}/states/summary?";
|
|
5879
5891
|
if (id === undefined || id === null)
|
|
5880
5892
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5951,7 +5963,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5951
5963
|
return Promise.resolve<ResourceErpDataListDto>(null as any);
|
|
5952
5964
|
}
|
|
5953
5965
|
|
|
5954
|
-
getResourceErpData(id:
|
|
5966
|
+
getResourceErpData(id: string): Promise<ResourceErpDataDto> {
|
|
5955
5967
|
let url_ = this.baseUrl + "/resources/{id}/erp";
|
|
5956
5968
|
if (id === undefined || id === null)
|
|
5957
5969
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6242,7 +6254,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
6242
6254
|
return Promise.resolve<void>(null as any);
|
|
6243
6255
|
}
|
|
6244
6256
|
|
|
6245
|
-
deleteMachine(id:
|
|
6257
|
+
deleteMachine(id: string): Promise<void> {
|
|
6246
6258
|
let url_ = this.baseUrl + "/resources/{id}";
|
|
6247
6259
|
if (id === undefined || id === null)
|
|
6248
6260
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6549,14 +6561,6 @@ export interface IPulseJournalClient {
|
|
|
6549
6561
|
|
|
6550
6562
|
reorderNowLine(resourceId: string, lineId: string, request: ReorderPulseJournalLineRequest): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6551
6563
|
|
|
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
|
-
|
|
6560
6564
|
createAlwaysLine(resourceId: string, request: CreatePulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto>;
|
|
6561
6565
|
|
|
6562
6566
|
editAlwaysLine(resourceId: string, lineId: string, request: EditPulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto>;
|
|
@@ -6881,187 +6885,6 @@ export class PulseJournalClient extends AuthorizedApiBase implements IPulseJourn
|
|
|
6881
6885
|
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
6882
6886
|
}
|
|
6883
6887
|
|
|
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
|
-
|
|
7065
6888
|
createAlwaysLine(resourceId: string, request: CreatePulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto> {
|
|
7066
6889
|
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/always/lines";
|
|
7067
6890
|
if (resourceId === undefined || resourceId === null)
|
|
@@ -11898,15 +11721,15 @@ export interface IDowntimeReasonsClient {
|
|
|
11898
11721
|
|
|
11899
11722
|
createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
|
|
11900
11723
|
|
|
11901
|
-
updateDowntimePeriodReason(id:
|
|
11724
|
+
updateDowntimePeriodReason(id: string, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
11902
11725
|
|
|
11903
|
-
deleteDowntimeReason(id:
|
|
11726
|
+
deleteDowntimeReason(id: string): Promise<void>;
|
|
11904
11727
|
|
|
11905
|
-
listDowntimeReasonsForMachine(id:
|
|
11728
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonDto[]>;
|
|
11906
11729
|
|
|
11907
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
11730
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicDto[]>;
|
|
11908
11731
|
|
|
11909
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
11732
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]>;
|
|
11910
11733
|
|
|
11911
11734
|
listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
|
|
11912
11735
|
|
|
@@ -11966,7 +11789,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
11966
11789
|
return Promise.resolve<DowntimePeriodReasonDto>(null as any);
|
|
11967
11790
|
}
|
|
11968
11791
|
|
|
11969
|
-
updateDowntimePeriodReason(id:
|
|
11792
|
+
updateDowntimePeriodReason(id: string, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto> {
|
|
11970
11793
|
let url_ = this.baseUrl + "/downtimereasons/{id}";
|
|
11971
11794
|
if (id === undefined || id === null)
|
|
11972
11795
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12008,7 +11831,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
12008
11831
|
return Promise.resolve<DowntimePeriodReasonDto>(null as any);
|
|
12009
11832
|
}
|
|
12010
11833
|
|
|
12011
|
-
deleteDowntimeReason(id:
|
|
11834
|
+
deleteDowntimeReason(id: string): Promise<void> {
|
|
12012
11835
|
let url_ = this.baseUrl + "/downtimereasons/{id}";
|
|
12013
11836
|
if (id === undefined || id === null)
|
|
12014
11837
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12043,7 +11866,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
12043
11866
|
return Promise.resolve<void>(null as any);
|
|
12044
11867
|
}
|
|
12045
11868
|
|
|
12046
|
-
listDowntimeReasonsForMachine(id:
|
|
11869
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonDto[]> {
|
|
12047
11870
|
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/downtimereasons";
|
|
12048
11871
|
if (id === undefined || id === null)
|
|
12049
11872
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12081,7 +11904,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
12081
11904
|
return Promise.resolve<DowntimeReasonDto[]>(null as any);
|
|
12082
11905
|
}
|
|
12083
11906
|
|
|
12084
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
11907
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicDto[]> {
|
|
12085
11908
|
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/downtimereasonshierarchy";
|
|
12086
11909
|
if (id === undefined || id === null)
|
|
12087
11910
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12119,7 +11942,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
12119
11942
|
return Promise.resolve<ParentTopicDto[]>(null as any);
|
|
12120
11943
|
}
|
|
12121
11944
|
|
|
12122
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
11945
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]> {
|
|
12123
11946
|
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/active";
|
|
12124
11947
|
if (id === undefined || id === null)
|
|
12125
11948
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12747,26 +12570,26 @@ export interface IMachinesClient {
|
|
|
12747
12570
|
|
|
12748
12571
|
deleteMachineGroup(id: string): Promise<void>;
|
|
12749
12572
|
|
|
12750
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
12573
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
12751
12574
|
|
|
12752
|
-
listMachineStates(id:
|
|
12575
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
12753
12576
|
|
|
12754
|
-
listLastDowntimeMachineStates(id:
|
|
12577
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
12755
12578
|
|
|
12756
|
-
getMachineStateWithDowntimePeriods(id:
|
|
12579
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
12757
12580
|
|
|
12758
|
-
getMachineStatesSummary(id:
|
|
12581
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
12759
12582
|
|
|
12760
12583
|
listMachineErpData(): Promise<MachineErpDataListDto>;
|
|
12761
12584
|
|
|
12762
|
-
getMachineErpData(id:
|
|
12585
|
+
getMachineErpData(id: string): Promise<MachineErpDataDto>;
|
|
12763
12586
|
|
|
12764
12587
|
/**
|
|
12765
12588
|
* @param startTime (optional)
|
|
12766
12589
|
* @param endTime (optional)
|
|
12767
12590
|
* @deprecated
|
|
12768
12591
|
*/
|
|
12769
|
-
getWorkOrderTimeline(id:
|
|
12592
|
+
getWorkOrderTimeline(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]>;
|
|
12770
12593
|
|
|
12771
12594
|
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
12772
12595
|
|
|
@@ -12782,7 +12605,7 @@ export interface IMachinesClient {
|
|
|
12782
12605
|
|
|
12783
12606
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
12784
12607
|
|
|
12785
|
-
deleteMachine(id:
|
|
12608
|
+
deleteMachine(id: string): Promise<void>;
|
|
12786
12609
|
}
|
|
12787
12610
|
|
|
12788
12611
|
export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
@@ -12982,10 +12805,12 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12982
12805
|
return Promise.resolve<void>(null as any);
|
|
12983
12806
|
}
|
|
12984
12807
|
|
|
12985
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
12808
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
12986
12809
|
let url_ = this.baseUrl + "/machines/states/now?";
|
|
12987
12810
|
if (assetId !== undefined && assetId !== null)
|
|
12988
12811
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
12812
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
12813
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
12989
12814
|
url_ = url_.replace(/[?&]$/, "");
|
|
12990
12815
|
|
|
12991
12816
|
let options_: RequestInit = {
|
|
@@ -13019,7 +12844,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13019
12844
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
13020
12845
|
}
|
|
13021
12846
|
|
|
13022
|
-
listMachineStates(id:
|
|
12847
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
13023
12848
|
let url_ = this.baseUrl + "/machines/{id}/states?";
|
|
13024
12849
|
if (id === undefined || id === null)
|
|
13025
12850
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13061,7 +12886,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13061
12886
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
13062
12887
|
}
|
|
13063
12888
|
|
|
13064
|
-
listLastDowntimeMachineStates(id:
|
|
12889
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
13065
12890
|
let url_ = this.baseUrl + "/machines/{id}/lastdowntimestates?";
|
|
13066
12891
|
if (id === undefined || id === null)
|
|
13067
12892
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13103,7 +12928,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13103
12928
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
13104
12929
|
}
|
|
13105
12930
|
|
|
13106
|
-
getMachineStateWithDowntimePeriods(id:
|
|
12931
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
13107
12932
|
let url_ = this.baseUrl + "/machines/{id}/statewithdowntimeperiods?";
|
|
13108
12933
|
if (id === undefined || id === null)
|
|
13109
12934
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13145,7 +12970,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13145
12970
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
13146
12971
|
}
|
|
13147
12972
|
|
|
13148
|
-
getMachineStatesSummary(id:
|
|
12973
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
13149
12974
|
let url_ = this.baseUrl + "/machines/{id}/states/summary?";
|
|
13150
12975
|
if (id === undefined || id === null)
|
|
13151
12976
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13222,7 +13047,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13222
13047
|
return Promise.resolve<MachineErpDataListDto>(null as any);
|
|
13223
13048
|
}
|
|
13224
13049
|
|
|
13225
|
-
getMachineErpData(id:
|
|
13050
|
+
getMachineErpData(id: string): Promise<MachineErpDataDto> {
|
|
13226
13051
|
let url_ = this.baseUrl + "/machines/{id}/erp";
|
|
13227
13052
|
if (id === undefined || id === null)
|
|
13228
13053
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13265,7 +13090,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13265
13090
|
* @param endTime (optional)
|
|
13266
13091
|
* @deprecated
|
|
13267
13092
|
*/
|
|
13268
|
-
getWorkOrderTimeline(id:
|
|
13093
|
+
getWorkOrderTimeline(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]> {
|
|
13269
13094
|
let url_ = this.baseUrl + "/machines/{id}/workorder/timeline?";
|
|
13270
13095
|
if (id === undefined || id === null)
|
|
13271
13096
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13560,7 +13385,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13560
13385
|
return Promise.resolve<void>(null as any);
|
|
13561
13386
|
}
|
|
13562
13387
|
|
|
13563
|
-
deleteMachine(id:
|
|
13388
|
+
deleteMachine(id: string): Promise<void> {
|
|
13564
13389
|
let url_ = this.baseUrl + "/machines/{id}";
|
|
13565
13390
|
if (id === undefined || id === null)
|
|
13566
13391
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13598,11 +13423,11 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13598
13423
|
|
|
13599
13424
|
export interface IMachineDataClient {
|
|
13600
13425
|
|
|
13601
|
-
getLiveMachineData(assetId:
|
|
13426
|
+
getLiveMachineData(assetId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto>;
|
|
13602
13427
|
|
|
13603
|
-
getTimeseriesGraph(assetId:
|
|
13428
|
+
getTimeseriesGraph(assetId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto>;
|
|
13604
13429
|
|
|
13605
|
-
exportTimeseriesGraph(assetId:
|
|
13430
|
+
exportTimeseriesGraph(assetId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto>;
|
|
13606
13431
|
}
|
|
13607
13432
|
|
|
13608
13433
|
export class MachineDataClient extends AuthorizedApiBase implements IMachineDataClient {
|
|
@@ -13615,7 +13440,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13615
13440
|
this.baseUrl = baseUrl ?? "";
|
|
13616
13441
|
}
|
|
13617
13442
|
|
|
13618
|
-
getLiveMachineData(assetId:
|
|
13443
|
+
getLiveMachineData(assetId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto> {
|
|
13619
13444
|
let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
|
|
13620
13445
|
if (assetId === undefined || assetId === null)
|
|
13621
13446
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13657,7 +13482,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13657
13482
|
return Promise.resolve<LiveMachineDataDto>(null as any);
|
|
13658
13483
|
}
|
|
13659
13484
|
|
|
13660
|
-
getTimeseriesGraph(assetId:
|
|
13485
|
+
getTimeseriesGraph(assetId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto> {
|
|
13661
13486
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph?";
|
|
13662
13487
|
if (assetId === undefined || assetId === null)
|
|
13663
13488
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13707,7 +13532,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13707
13532
|
return Promise.resolve<TimeseriesGraphDto>(null as any);
|
|
13708
13533
|
}
|
|
13709
13534
|
|
|
13710
|
-
exportTimeseriesGraph(assetId:
|
|
13535
|
+
exportTimeseriesGraph(assetId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto> {
|
|
13711
13536
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph/export-csv";
|
|
13712
13537
|
if (assetId === undefined || assetId === null)
|
|
13713
13538
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -19012,11 +18837,11 @@ export interface IAssetsClient {
|
|
|
19012
18837
|
|
|
19013
18838
|
searchAssets(name: string | null | undefined, description: string | null | undefined, limit: number | undefined): Promise<AssetDto[]>;
|
|
19014
18839
|
|
|
19015
|
-
getAssetById(id:
|
|
18840
|
+
getAssetById(id: string): Promise<AssetDto>;
|
|
19016
18841
|
|
|
19017
|
-
updateAsset(id:
|
|
18842
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto>;
|
|
19018
18843
|
|
|
19019
|
-
getAssetStructureById(id:
|
|
18844
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto>;
|
|
19020
18845
|
|
|
19021
18846
|
/**
|
|
19022
18847
|
* @deprecated
|
|
@@ -19163,7 +18988,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19163
18988
|
return Promise.resolve<AssetDto[]>(null as any);
|
|
19164
18989
|
}
|
|
19165
18990
|
|
|
19166
|
-
getAssetById(id:
|
|
18991
|
+
getAssetById(id: string): Promise<AssetDto> {
|
|
19167
18992
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19168
18993
|
if (id === undefined || id === null)
|
|
19169
18994
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19201,7 +19026,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19201
19026
|
return Promise.resolve<AssetDto>(null as any);
|
|
19202
19027
|
}
|
|
19203
19028
|
|
|
19204
|
-
updateAsset(id:
|
|
19029
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto> {
|
|
19205
19030
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19206
19031
|
if (id === undefined || id === null)
|
|
19207
19032
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19243,7 +19068,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19243
19068
|
return Promise.resolve<AssetDto>(null as any);
|
|
19244
19069
|
}
|
|
19245
19070
|
|
|
19246
|
-
getAssetStructureById(id:
|
|
19071
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto> {
|
|
19247
19072
|
let url_ = this.baseUrl + "/assets/{id}/structure";
|
|
19248
19073
|
if (id === undefined || id === null)
|
|
19249
19074
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -27427,6 +27252,8 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
27427
27252
|
|
|
27428
27253
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
27429
27254
|
|
|
27255
|
+
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void>;
|
|
27256
|
+
|
|
27430
27257
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
27431
27258
|
|
|
27432
27259
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -28066,6 +27893,44 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
28066
27893
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
28067
27894
|
}
|
|
28068
27895
|
|
|
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
|
+
|
|
28069
27934
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
|
|
28070
27935
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
28071
27936
|
if (id === undefined || id === null)
|
|
@@ -29665,6 +29530,8 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29665
29530
|
|
|
29666
29531
|
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
29667
29532
|
|
|
29533
|
+
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]>;
|
|
29534
|
+
|
|
29668
29535
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29669
29536
|
|
|
29670
29537
|
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
@@ -29815,6 +29682,44 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29815
29682
|
return Promise.resolve<MeasurementFormSchemaCountsDto>(null as any);
|
|
29816
29683
|
}
|
|
29817
29684
|
|
|
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
|
+
|
|
29818
29723
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
29819
29724
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
29820
29725
|
if (id === undefined || id === null)
|
|
@@ -34113,6 +34018,7 @@ export interface UtilizationListDto {
|
|
|
34113
34018
|
|
|
34114
34019
|
export interface MachineUtilizationDto {
|
|
34115
34020
|
assetId: number;
|
|
34021
|
+
assetExternalId: string;
|
|
34116
34022
|
name: string;
|
|
34117
34023
|
description?: string | null;
|
|
34118
34024
|
state: string;
|
|
@@ -34160,6 +34066,7 @@ export interface PowerOnUtilizationDto extends UtilizationAveragesDto {
|
|
|
34160
34066
|
|
|
34161
34067
|
export interface UtilizationDetailsDto {
|
|
34162
34068
|
machineId: number;
|
|
34069
|
+
machineExternalId: string;
|
|
34163
34070
|
machineName: string;
|
|
34164
34071
|
machineStateText?: string | null;
|
|
34165
34072
|
machineState?: MachineState | null;
|
|
@@ -34194,6 +34101,7 @@ export interface MachineStateDatapoint {
|
|
|
34194
34101
|
|
|
34195
34102
|
export interface DowntimePeriodReasonDto {
|
|
34196
34103
|
id: number;
|
|
34104
|
+
externalId: string;
|
|
34197
34105
|
reason: string;
|
|
34198
34106
|
parentReasonId?: string | null;
|
|
34199
34107
|
categoryId?: string | null;
|
|
@@ -34203,6 +34111,7 @@ export interface DowntimePeriodReasonDto {
|
|
|
34203
34111
|
startTime: Date;
|
|
34204
34112
|
endTime?: Date | null;
|
|
34205
34113
|
assetId: number;
|
|
34114
|
+
assetExternalId?: string | null;
|
|
34206
34115
|
comment: string | null;
|
|
34207
34116
|
companyId: string | null;
|
|
34208
34117
|
reasonId: string;
|
|
@@ -34291,6 +34200,7 @@ export interface ResourceUtilizationListDto {
|
|
|
34291
34200
|
|
|
34292
34201
|
export interface ResourceUtilizationDto {
|
|
34293
34202
|
assetId: number;
|
|
34203
|
+
assetExternalId: string;
|
|
34294
34204
|
name: string;
|
|
34295
34205
|
description?: string | null;
|
|
34296
34206
|
state: string;
|
|
@@ -34302,6 +34212,7 @@ export interface ResourceUtilizationDto {
|
|
|
34302
34212
|
|
|
34303
34213
|
export interface ResourceUtilizationDetailsDto {
|
|
34304
34214
|
resourceId: number;
|
|
34215
|
+
resourceExternalId: string;
|
|
34305
34216
|
resourceName: string;
|
|
34306
34217
|
machineStateText?: string | null;
|
|
34307
34218
|
machineState?: MachineState | null;
|
|
@@ -34407,6 +34318,7 @@ export interface UploadInfoDto {
|
|
|
34407
34318
|
|
|
34408
34319
|
export interface UploadInfoCdfDto {
|
|
34409
34320
|
id: number;
|
|
34321
|
+
externalId: string;
|
|
34410
34322
|
url: string;
|
|
34411
34323
|
}
|
|
34412
34324
|
|
|
@@ -34420,6 +34332,7 @@ export interface DataHealthDto {
|
|
|
34420
34332
|
|
|
34421
34333
|
export interface MachineDataHealthDto {
|
|
34422
34334
|
assetId: number;
|
|
34335
|
+
assetExternalId: string;
|
|
34423
34336
|
name: string;
|
|
34424
34337
|
description?: string | null;
|
|
34425
34338
|
state?: string | null;
|
|
@@ -34439,6 +34352,7 @@ export interface PowerRegionDto {
|
|
|
34439
34352
|
|
|
34440
34353
|
export interface ConsumptionDto {
|
|
34441
34354
|
assetId: number;
|
|
34355
|
+
assetExternalId: string;
|
|
34442
34356
|
assetName: string;
|
|
34443
34357
|
kwh: number;
|
|
34444
34358
|
co2Equivalent?: number | null;
|
|
@@ -34448,9 +34362,11 @@ export interface ConsumptionDto {
|
|
|
34448
34362
|
|
|
34449
34363
|
export interface AssetConsumptionDto {
|
|
34450
34364
|
timeseriesId: number;
|
|
34365
|
+
timeseriesExternalId?: string | null;
|
|
34451
34366
|
timeseriesName: string;
|
|
34452
34367
|
kwh: number;
|
|
34453
34368
|
assetId: number;
|
|
34369
|
+
assetExternalId?: string | null;
|
|
34454
34370
|
assetName: string;
|
|
34455
34371
|
co2Equivalent?: number | null;
|
|
34456
34372
|
co2EquivalentNotAdjustedForLocalProduction?: number | null;
|
|
@@ -34458,6 +34374,7 @@ export interface AssetConsumptionDto {
|
|
|
34458
34374
|
|
|
34459
34375
|
export interface GetConsumption {
|
|
34460
34376
|
assetId?: number | null;
|
|
34377
|
+
assetExternalId?: string | null;
|
|
34461
34378
|
start?: Date | null;
|
|
34462
34379
|
end?: Date | null;
|
|
34463
34380
|
}
|
|
@@ -34469,8 +34386,10 @@ export interface PowerDto {
|
|
|
34469
34386
|
|
|
34470
34387
|
export interface AssetPowerDto {
|
|
34471
34388
|
timeseriesId?: number;
|
|
34389
|
+
timeseriesExternalId?: string | null;
|
|
34472
34390
|
timeseriesName?: string | null;
|
|
34473
34391
|
assetId?: number;
|
|
34392
|
+
assetExternalId?: string | null;
|
|
34474
34393
|
assetName?: string | null;
|
|
34475
34394
|
timeSeriesDataPoints?: NumericDataPointDto[] | null;
|
|
34476
34395
|
}
|
|
@@ -34484,7 +34403,8 @@ export interface NumericDataPointDto {
|
|
|
34484
34403
|
}
|
|
34485
34404
|
|
|
34486
34405
|
export interface GetPower {
|
|
34487
|
-
assetId
|
|
34406
|
+
assetId?: number | null;
|
|
34407
|
+
assetExternalId?: string | null;
|
|
34488
34408
|
granularity?: string | null;
|
|
34489
34409
|
start?: Date | null;
|
|
34490
34410
|
end?: Date | null;
|
|
@@ -34548,6 +34468,7 @@ export interface PagedResultOfMachineAlarmDto {
|
|
|
34548
34468
|
export interface MachineAlarmDto {
|
|
34549
34469
|
alarmType: MachineAlarmType;
|
|
34550
34470
|
id: number;
|
|
34471
|
+
externalId: string;
|
|
34551
34472
|
type: string;
|
|
34552
34473
|
subType: string;
|
|
34553
34474
|
description?: string | null;
|
|
@@ -34571,13 +34492,14 @@ export interface GroupedMachineIncidentDto extends MachineAlarmDto {
|
|
|
34571
34492
|
}
|
|
34572
34493
|
|
|
34573
34494
|
export interface ListGroupedMachineIncidentsRequest {
|
|
34574
|
-
assetId
|
|
34495
|
+
assetId?: number | null;
|
|
34575
34496
|
startTime: Date;
|
|
34576
34497
|
endTime?: Date | null;
|
|
34577
34498
|
nativeCode?: string | null;
|
|
34578
34499
|
alarmType?: MachineAlarmType | null;
|
|
34579
34500
|
limit?: number | null;
|
|
34580
34501
|
continuationToken?: string | null;
|
|
34502
|
+
assetExternalId?: string | null;
|
|
34581
34503
|
}
|
|
34582
34504
|
|
|
34583
34505
|
export interface MachineAlarmSummaryDto {
|
|
@@ -34605,6 +34527,7 @@ export interface MachineAlarmCountDto {
|
|
|
34605
34527
|
|
|
34606
34528
|
export interface MachineAlarmDetailsDto {
|
|
34607
34529
|
id: number;
|
|
34530
|
+
externalId: string;
|
|
34608
34531
|
startTime: Date;
|
|
34609
34532
|
endTime?: Date | null;
|
|
34610
34533
|
nativeCode?: string | null;
|
|
@@ -34699,7 +34622,8 @@ export interface IgnosPortalControllersResourcesApiModelsUpdateParentTopicReques
|
|
|
34699
34622
|
|
|
34700
34623
|
export interface CreateDowntimePeriodReason {
|
|
34701
34624
|
reasonId: string;
|
|
34702
|
-
assetId
|
|
34625
|
+
assetId?: number | null;
|
|
34626
|
+
assetExternalId?: string | null;
|
|
34703
34627
|
startTime: Date;
|
|
34704
34628
|
endTime?: Date | null;
|
|
34705
34629
|
autoCompleteDowntime?: boolean | null;
|
|
@@ -34712,6 +34636,7 @@ export interface CreateDowntimePeriodReason {
|
|
|
34712
34636
|
export interface IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest {
|
|
34713
34637
|
reasonId?: string | null;
|
|
34714
34638
|
assetId?: number | null;
|
|
34639
|
+
assetExternalId?: string | null;
|
|
34715
34640
|
startTime?: Date | null;
|
|
34716
34641
|
endTime?: Date | null;
|
|
34717
34642
|
autoCompleteDowntime?: boolean | null;
|
|
@@ -35017,6 +34942,7 @@ export interface MachineStateDto {
|
|
|
35017
34942
|
state: string;
|
|
35018
34943
|
machineState: MachineState;
|
|
35019
34944
|
startTime: Date;
|
|
34945
|
+
assetExternalId: string;
|
|
35020
34946
|
}
|
|
35021
34947
|
|
|
35022
34948
|
export interface DowntimeMachineStateDto {
|
|
@@ -35036,6 +34962,7 @@ export interface SingleResourceErpDataListDto {
|
|
|
35036
34962
|
activeOrders: ResourceErpDataDto[];
|
|
35037
34963
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
35038
34964
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
34965
|
+
assetExternalId: string;
|
|
35039
34966
|
}
|
|
35040
34967
|
|
|
35041
34968
|
export interface ResourceErpDataDto {
|
|
@@ -35155,6 +35082,7 @@ export interface ResourceGroupUtilizationDto {
|
|
|
35155
35082
|
|
|
35156
35083
|
export interface ResourceUtilizationV2Dto {
|
|
35157
35084
|
id?: number;
|
|
35085
|
+
externalId: string;
|
|
35158
35086
|
name: string;
|
|
35159
35087
|
description?: string | null;
|
|
35160
35088
|
utilization: UtilizationDto;
|
|
@@ -35282,7 +35210,7 @@ export interface PulseJournalBoardsDto {
|
|
|
35282
35210
|
}
|
|
35283
35211
|
|
|
35284
35212
|
export interface PulseJournalNowBoardDto {
|
|
35285
|
-
lines:
|
|
35213
|
+
lines: PulseJournalLineDto[];
|
|
35286
35214
|
eTag?: string | null;
|
|
35287
35215
|
}
|
|
35288
35216
|
|
|
@@ -35296,10 +35224,14 @@ export interface PulseJournalLineDto {
|
|
|
35296
35224
|
updatedBy?: string | null;
|
|
35297
35225
|
}
|
|
35298
35226
|
|
|
35299
|
-
export interface
|
|
35300
|
-
|
|
35301
|
-
|
|
35227
|
+
export interface PulseJournalAlwaysBoardDto {
|
|
35228
|
+
lines: PulseJournalAlwaysLineDto[];
|
|
35229
|
+
eTag?: string | null;
|
|
35230
|
+
}
|
|
35231
|
+
|
|
35232
|
+
export interface PulseJournalAlwaysLineDto extends PulseJournalLineDto {
|
|
35302
35233
|
attachments: PulseJournalAttachmentDto[];
|
|
35234
|
+
links: PulseJournalLinkDto[];
|
|
35303
35235
|
}
|
|
35304
35236
|
|
|
35305
35237
|
export interface PulseJournalAttachmentDto {
|
|
@@ -35310,16 +35242,6 @@ export interface PulseJournalAttachmentDto {
|
|
|
35310
35242
|
createdBy?: string | null;
|
|
35311
35243
|
}
|
|
35312
35244
|
|
|
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
|
-
|
|
35323
35245
|
export interface PulseJournalLinkDto {
|
|
35324
35246
|
id: string;
|
|
35325
35247
|
url: string;
|
|
@@ -35346,14 +35268,14 @@ export interface PulseJournalEventDto {
|
|
|
35346
35268
|
|
|
35347
35269
|
export type PulseJournalBoardTypeDto = "Now" | "Always" | "Unknown";
|
|
35348
35270
|
|
|
35349
|
-
export type PulseJournalEventTypeDto = "LineAdded" | "LineEdited" | "LineMoved" | "LineRemoved" | "FixedInfoAdded" | "FixedInfoEdited" | "FixedInfoRemoved" | "AttachmentAdded" | "AttachmentRemoved" | "LinkAdded" | "LinkRemoved" | "
|
|
35271
|
+
export type PulseJournalEventTypeDto = "LineAdded" | "LineEdited" | "LineMoved" | "LineRemoved" | "FixedInfoAdded" | "FixedInfoEdited" | "FixedInfoRemoved" | "AttachmentAdded" | "AttachmentRemoved" | "LinkAdded" | "LinkRemoved" | "Unknown";
|
|
35350
35272
|
|
|
35351
35273
|
export interface UndoPulseJournalActionRequest {
|
|
35352
35274
|
eventId: string;
|
|
35353
35275
|
}
|
|
35354
35276
|
|
|
35355
35277
|
export interface PulseJournalNowLineMutationResultDto {
|
|
35356
|
-
line?:
|
|
35278
|
+
line?: PulseJournalLineDto | null;
|
|
35357
35279
|
boardETag: string;
|
|
35358
35280
|
eventId?: string | null;
|
|
35359
35281
|
}
|
|
@@ -35374,14 +35296,10 @@ export interface ReorderPulseJournalLineRequest {
|
|
|
35374
35296
|
eTag?: string | null;
|
|
35375
35297
|
}
|
|
35376
35298
|
|
|
35377
|
-
export interface
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
35381
|
-
|
|
35382
|
-
export interface SetPulseJournalLineImportantRequest {
|
|
35383
|
-
isImportant: boolean;
|
|
35384
|
-
eTag?: string | null;
|
|
35299
|
+
export interface PulseJournalAlwaysLineMutationResultDto {
|
|
35300
|
+
line?: PulseJournalAlwaysLineDto | null;
|
|
35301
|
+
boardETag: string;
|
|
35302
|
+
eventId?: string | null;
|
|
35385
35303
|
}
|
|
35386
35304
|
|
|
35387
35305
|
export interface AddPulseJournalAttachmentRequest {
|
|
@@ -35390,12 +35308,6 @@ export interface AddPulseJournalAttachmentRequest {
|
|
|
35390
35308
|
eTag?: string | null;
|
|
35391
35309
|
}
|
|
35392
35310
|
|
|
35393
|
-
export interface PulseJournalAlwaysLineMutationResultDto {
|
|
35394
|
-
line?: PulseJournalAlwaysLineDto | null;
|
|
35395
|
-
boardETag: string;
|
|
35396
|
-
eventId?: string | null;
|
|
35397
|
-
}
|
|
35398
|
-
|
|
35399
35311
|
export interface AddPulseJournalLinkRequest {
|
|
35400
35312
|
url: string;
|
|
35401
35313
|
eTag?: string | null;
|
|
@@ -35428,6 +35340,7 @@ export interface ResourceGroupUtilizationV2Dto {
|
|
|
35428
35340
|
|
|
35429
35341
|
export interface ResourceUtilizationV3Dto {
|
|
35430
35342
|
id?: number;
|
|
35343
|
+
externalId: string;
|
|
35431
35344
|
name: string;
|
|
35432
35345
|
description?: string | null;
|
|
35433
35346
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -35468,6 +35381,7 @@ export interface MachineGroupUtilizationV2Dto {
|
|
|
35468
35381
|
|
|
35469
35382
|
export interface MachineUtilizationV3Dto {
|
|
35470
35383
|
id?: number;
|
|
35384
|
+
externalId: string;
|
|
35471
35385
|
name: string;
|
|
35472
35386
|
description?: string | null;
|
|
35473
35387
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -36483,6 +36397,7 @@ export interface UpdateParentTopicRequest {
|
|
|
36483
36397
|
export interface UpdateDowntimePeriodReasonRequest {
|
|
36484
36398
|
reasonId?: string | null;
|
|
36485
36399
|
assetId?: number | null;
|
|
36400
|
+
assetExternalId?: string | null;
|
|
36486
36401
|
startTime?: Date | null;
|
|
36487
36402
|
endTime?: Date | null;
|
|
36488
36403
|
autoCompleteDowntime?: boolean | null;
|
|
@@ -36620,6 +36535,7 @@ export interface SingleMachineErpDataListDto {
|
|
|
36620
36535
|
activeOrders: MachineErpDataDto[];
|
|
36621
36536
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
36622
36537
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
36538
|
+
assetExternalId: string;
|
|
36623
36539
|
}
|
|
36624
36540
|
|
|
36625
36541
|
export interface MachineErpDataDto {
|
|
@@ -36653,6 +36569,7 @@ export interface MachineGroupUtilizationDto {
|
|
|
36653
36569
|
|
|
36654
36570
|
export interface MachineUtilizationV2Dto {
|
|
36655
36571
|
id?: number;
|
|
36572
|
+
externalId: string;
|
|
36656
36573
|
name: string;
|
|
36657
36574
|
description?: string | null;
|
|
36658
36575
|
utilization: UtilizationDto;
|
|
@@ -36666,6 +36583,7 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
36666
36583
|
export interface LiveMachineDataDto {
|
|
36667
36584
|
assetId?: number;
|
|
36668
36585
|
dataPoints?: LiveMachineDataPointDto[];
|
|
36586
|
+
assetExternalId: string;
|
|
36669
36587
|
}
|
|
36670
36588
|
|
|
36671
36589
|
export interface LiveMachineDataPointDto {
|
|
@@ -36678,6 +36596,7 @@ export interface LiveMachineDataPointDto {
|
|
|
36678
36596
|
export interface TimeseriesGraphDto {
|
|
36679
36597
|
assetId?: number;
|
|
36680
36598
|
series?: TimeseriesGraphSeriesDto[];
|
|
36599
|
+
assetExternalId: string;
|
|
36681
36600
|
}
|
|
36682
36601
|
|
|
36683
36602
|
export interface TimeseriesGraphSeriesDto {
|
|
@@ -37830,11 +37749,13 @@ export interface AssetDto {
|
|
|
37830
37749
|
metadata?: { [key: string]: string; } | null;
|
|
37831
37750
|
aggregates?: any | null;
|
|
37832
37751
|
parentId?: number | null;
|
|
37752
|
+
parentExternalId?: string | null;
|
|
37833
37753
|
source?: string | null;
|
|
37834
37754
|
id?: number | null;
|
|
37835
37755
|
createdTime?: number | null;
|
|
37836
37756
|
lastUpdatedTime?: number | null;
|
|
37837
37757
|
rootId?: number | null;
|
|
37758
|
+
rootExternalId?: string | null;
|
|
37838
37759
|
}
|
|
37839
37760
|
|
|
37840
37761
|
export interface AssetStructureDto {
|
|
@@ -37854,7 +37775,8 @@ export interface AssetSimpleStructureDto {
|
|
|
37854
37775
|
}
|
|
37855
37776
|
|
|
37856
37777
|
export interface CreateAsset {
|
|
37857
|
-
parentId
|
|
37778
|
+
parentId?: number | null;
|
|
37779
|
+
parentExternalId?: string | null;
|
|
37858
37780
|
externalId: string;
|
|
37859
37781
|
name: string;
|
|
37860
37782
|
description: string;
|
|
@@ -37863,7 +37785,8 @@ export interface CreateAsset {
|
|
|
37863
37785
|
}
|
|
37864
37786
|
|
|
37865
37787
|
export interface UpdateAssetRequest {
|
|
37866
|
-
parentId
|
|
37788
|
+
parentId?: number | null;
|
|
37789
|
+
parentExternalId?: string | null;
|
|
37867
37790
|
name: string;
|
|
37868
37791
|
description: string;
|
|
37869
37792
|
metadata: { [key: string]: string; };
|
|
@@ -40281,7 +40204,8 @@ export interface ProcessMaterialCertificate {
|
|
|
40281
40204
|
}
|
|
40282
40205
|
|
|
40283
40206
|
export interface UploadFileCdfDto {
|
|
40284
|
-
id
|
|
40207
|
+
id?: number | null;
|
|
40208
|
+
externalId?: string | null;
|
|
40285
40209
|
}
|
|
40286
40210
|
|
|
40287
40211
|
export interface ImaMaterialCheckReportDto {
|
|
@@ -40949,6 +40873,8 @@ export interface UploadRequest {
|
|
|
40949
40873
|
isMarkedDrawing?: boolean | null;
|
|
40950
40874
|
}
|
|
40951
40875
|
|
|
40876
|
+
export type SchemaFileSlot = "Drawing" | "ProjectFile" | "MarkedDrawing" | "SourceFile";
|
|
40877
|
+
|
|
40952
40878
|
export interface MeasurementFormImportStatusDto {
|
|
40953
40879
|
progress: number;
|
|
40954
40880
|
totalElements: number;
|
|
@@ -41287,6 +41213,14 @@ export interface CountMeasurementFormSchemasRequest {
|
|
|
41287
41213
|
schemaCreator?: boolean | null;
|
|
41288
41214
|
}
|
|
41289
41215
|
|
|
41216
|
+
export interface MeasurementFormSchemaFileDto {
|
|
41217
|
+
slot: SchemaFileSlot;
|
|
41218
|
+
title: string;
|
|
41219
|
+
url: string;
|
|
41220
|
+
size?: number | null;
|
|
41221
|
+
lastModified?: Date | null;
|
|
41222
|
+
}
|
|
41223
|
+
|
|
41290
41224
|
export interface MeasurementFormSchemaVersionDto {
|
|
41291
41225
|
id: string;
|
|
41292
41226
|
versionId: number;
|