@ignos/api-client 20261110.359.1-alpha → 20261110.360.1
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 +132 -104
- package/lib/ignosportal-api.js +166 -187
- package/package.json +1 -1
- package/src/ignosportal-api.ts +290 -285
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.");
|
|
@@ -2812,6 +2820,10 @@ export interface IUserAppSettingsClient {
|
|
|
2812
2820
|
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
2813
2821
|
|
|
2814
2822
|
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
2823
|
+
|
|
2824
|
+
getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
|
|
2825
|
+
|
|
2826
|
+
setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
|
|
2815
2827
|
}
|
|
2816
2828
|
|
|
2817
2829
|
export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
@@ -3036,6 +3048,77 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
3036
3048
|
}
|
|
3037
3049
|
return Promise.resolve<void>(null as any);
|
|
3038
3050
|
}
|
|
3051
|
+
|
|
3052
|
+
getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings> {
|
|
3053
|
+
let url_ = this.baseUrl + "/userappsettings/favorite-routes";
|
|
3054
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3055
|
+
|
|
3056
|
+
let options_: RequestInit = {
|
|
3057
|
+
method: "GET",
|
|
3058
|
+
headers: {
|
|
3059
|
+
"Accept": "application/json"
|
|
3060
|
+
}
|
|
3061
|
+
};
|
|
3062
|
+
|
|
3063
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3064
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3065
|
+
}).then((_response: Response) => {
|
|
3066
|
+
return this.processGetFavoriteRoutesUserSettings(_response);
|
|
3067
|
+
});
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
protected processGetFavoriteRoutesUserSettings(response: Response): Promise<FavoriteRoutesAppSettings> {
|
|
3071
|
+
const status = response.status;
|
|
3072
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3073
|
+
if (status === 200) {
|
|
3074
|
+
return response.text().then((_responseText) => {
|
|
3075
|
+
let result200: any = null;
|
|
3076
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as FavoriteRoutesAppSettings;
|
|
3077
|
+
return result200;
|
|
3078
|
+
});
|
|
3079
|
+
} else if (status !== 200 && status !== 204) {
|
|
3080
|
+
return response.text().then((_responseText) => {
|
|
3081
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3082
|
+
});
|
|
3083
|
+
}
|
|
3084
|
+
return Promise.resolve<FavoriteRoutesAppSettings>(null as any);
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void> {
|
|
3088
|
+
let url_ = this.baseUrl + "/userappsettings/favorite-routes";
|
|
3089
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3090
|
+
|
|
3091
|
+
const content_ = JSON.stringify(settings);
|
|
3092
|
+
|
|
3093
|
+
let options_: RequestInit = {
|
|
3094
|
+
body: content_,
|
|
3095
|
+
method: "PUT",
|
|
3096
|
+
headers: {
|
|
3097
|
+
"Content-Type": "application/json",
|
|
3098
|
+
}
|
|
3099
|
+
};
|
|
3100
|
+
|
|
3101
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3102
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3103
|
+
}).then((_response: Response) => {
|
|
3104
|
+
return this.processSetFavoriteRoutesUserSettings(_response);
|
|
3105
|
+
});
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
protected processSetFavoriteRoutesUserSettings(response: Response): Promise<void> {
|
|
3109
|
+
const status = response.status;
|
|
3110
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3111
|
+
if (status === 204) {
|
|
3112
|
+
return response.text().then((_responseText) => {
|
|
3113
|
+
return;
|
|
3114
|
+
});
|
|
3115
|
+
} else if (status !== 200 && status !== 204) {
|
|
3116
|
+
return response.text().then((_responseText) => {
|
|
3117
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3118
|
+
});
|
|
3119
|
+
}
|
|
3120
|
+
return Promise.resolve<void>(null as any);
|
|
3121
|
+
}
|
|
3039
3122
|
}
|
|
3040
3123
|
|
|
3041
3124
|
export interface IUploadClient {
|
|
@@ -3132,7 +3215,7 @@ export class UploadClient extends AuthorizedApiBase implements IUploadClient {
|
|
|
3132
3215
|
|
|
3133
3216
|
export interface ISystemHealthDashboardClient {
|
|
3134
3217
|
|
|
3135
|
-
getMachineDataHealth(assetId: number | null | undefined): Promise<DataHealthDto>;
|
|
3218
|
+
getMachineDataHealth(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<DataHealthDto>;
|
|
3136
3219
|
}
|
|
3137
3220
|
|
|
3138
3221
|
export class SystemHealthDashboardClient extends AuthorizedApiBase implements ISystemHealthDashboardClient {
|
|
@@ -3145,10 +3228,12 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase implements IS
|
|
|
3145
3228
|
this.baseUrl = baseUrl ?? "";
|
|
3146
3229
|
}
|
|
3147
3230
|
|
|
3148
|
-
getMachineDataHealth(assetId: number | null | undefined): Promise<DataHealthDto> {
|
|
3231
|
+
getMachineDataHealth(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<DataHealthDto> {
|
|
3149
3232
|
let url_ = this.baseUrl + "/systemhealthdashboard?";
|
|
3150
3233
|
if (assetId !== undefined && assetId !== null)
|
|
3151
3234
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3235
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3236
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3152
3237
|
url_ = url_.replace(/[?&]$/, "");
|
|
3153
3238
|
|
|
3154
3239
|
let options_: RequestInit = {
|
|
@@ -5476,19 +5561,19 @@ export interface IResourcesClient {
|
|
|
5476
5561
|
|
|
5477
5562
|
deleteResourceGroup(id: string): Promise<void>;
|
|
5478
5563
|
|
|
5479
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
5564
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
5480
5565
|
|
|
5481
|
-
listMachineStates(id:
|
|
5566
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
5482
5567
|
|
|
5483
|
-
listLastDowntimeMachineStates(id:
|
|
5568
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
5484
5569
|
|
|
5485
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5570
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
5486
5571
|
|
|
5487
|
-
getMachineStatesSummary(id:
|
|
5572
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
5488
5573
|
|
|
5489
5574
|
listResourceErpData(): Promise<ResourceErpDataListDto>;
|
|
5490
5575
|
|
|
5491
|
-
getResourceErpData(id:
|
|
5576
|
+
getResourceErpData(id: string): Promise<ResourceErpDataDto>;
|
|
5492
5577
|
|
|
5493
5578
|
getResourceUtilizationSummary(): Promise<ResourceUtilizationSummaryDto>;
|
|
5494
5579
|
|
|
@@ -5504,7 +5589,7 @@ export interface IResourcesClient {
|
|
|
5504
5589
|
|
|
5505
5590
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
5506
5591
|
|
|
5507
|
-
deleteMachine(id:
|
|
5592
|
+
deleteMachine(id: string): Promise<void>;
|
|
5508
5593
|
|
|
5509
5594
|
/**
|
|
5510
5595
|
* @deprecated
|
|
@@ -5711,10 +5796,12 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5711
5796
|
return Promise.resolve<void>(null as any);
|
|
5712
5797
|
}
|
|
5713
5798
|
|
|
5714
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
5799
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
5715
5800
|
let url_ = this.baseUrl + "/resources/states/now?";
|
|
5716
5801
|
if (assetId !== undefined && assetId !== null)
|
|
5717
5802
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
5803
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
5804
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
5718
5805
|
url_ = url_.replace(/[?&]$/, "");
|
|
5719
5806
|
|
|
5720
5807
|
let options_: RequestInit = {
|
|
@@ -5748,7 +5835,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5748
5835
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
5749
5836
|
}
|
|
5750
5837
|
|
|
5751
|
-
listMachineStates(id:
|
|
5838
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
5752
5839
|
let url_ = this.baseUrl + "/resources/{id}/states?";
|
|
5753
5840
|
if (id === undefined || id === null)
|
|
5754
5841
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5790,7 +5877,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5790
5877
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
5791
5878
|
}
|
|
5792
5879
|
|
|
5793
|
-
listLastDowntimeMachineStates(id:
|
|
5880
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
5794
5881
|
let url_ = this.baseUrl + "/resources/{id}/lastdowntimestates?";
|
|
5795
5882
|
if (id === undefined || id === null)
|
|
5796
5883
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5832,7 +5919,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5832
5919
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
5833
5920
|
}
|
|
5834
5921
|
|
|
5835
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5922
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
5836
5923
|
let url_ = this.baseUrl + "/resources/{id}/statewithdowntimeperiods?";
|
|
5837
5924
|
if (id === undefined || id === null)
|
|
5838
5925
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5874,7 +5961,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5874
5961
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
5875
5962
|
}
|
|
5876
5963
|
|
|
5877
|
-
getMachineStatesSummary(id:
|
|
5964
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
5878
5965
|
let url_ = this.baseUrl + "/resources/{id}/states/summary?";
|
|
5879
5966
|
if (id === undefined || id === null)
|
|
5880
5967
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5951,7 +6038,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5951
6038
|
return Promise.resolve<ResourceErpDataListDto>(null as any);
|
|
5952
6039
|
}
|
|
5953
6040
|
|
|
5954
|
-
getResourceErpData(id:
|
|
6041
|
+
getResourceErpData(id: string): Promise<ResourceErpDataDto> {
|
|
5955
6042
|
let url_ = this.baseUrl + "/resources/{id}/erp";
|
|
5956
6043
|
if (id === undefined || id === null)
|
|
5957
6044
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6242,7 +6329,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
6242
6329
|
return Promise.resolve<void>(null as any);
|
|
6243
6330
|
}
|
|
6244
6331
|
|
|
6245
|
-
deleteMachine(id:
|
|
6332
|
+
deleteMachine(id: string): Promise<void> {
|
|
6246
6333
|
let url_ = this.baseUrl + "/resources/{id}";
|
|
6247
6334
|
if (id === undefined || id === null)
|
|
6248
6335
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6549,14 +6636,6 @@ export interface IPulseJournalClient {
|
|
|
6549
6636
|
|
|
6550
6637
|
reorderNowLine(resourceId: string, lineId: string, request: ReorderPulseJournalLineRequest): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6551
6638
|
|
|
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
6639
|
createAlwaysLine(resourceId: string, request: CreatePulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto>;
|
|
6561
6640
|
|
|
6562
6641
|
editAlwaysLine(resourceId: string, lineId: string, request: EditPulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto>;
|
|
@@ -6881,187 +6960,6 @@ export class PulseJournalClient extends AuthorizedApiBase implements IPulseJourn
|
|
|
6881
6960
|
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
6882
6961
|
}
|
|
6883
6962
|
|
|
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
6963
|
createAlwaysLine(resourceId: string, request: CreatePulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto> {
|
|
7066
6964
|
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/always/lines";
|
|
7067
6965
|
if (resourceId === undefined || resourceId === null)
|
|
@@ -12747,19 +12645,19 @@ export interface IMachinesClient {
|
|
|
12747
12645
|
|
|
12748
12646
|
deleteMachineGroup(id: string): Promise<void>;
|
|
12749
12647
|
|
|
12750
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
12648
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
12751
12649
|
|
|
12752
|
-
listMachineStates(id:
|
|
12650
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
12753
12651
|
|
|
12754
|
-
listLastDowntimeMachineStates(id:
|
|
12652
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
12755
12653
|
|
|
12756
|
-
getMachineStateWithDowntimePeriods(id:
|
|
12654
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
12757
12655
|
|
|
12758
|
-
getMachineStatesSummary(id:
|
|
12656
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
12759
12657
|
|
|
12760
12658
|
listMachineErpData(): Promise<MachineErpDataListDto>;
|
|
12761
12659
|
|
|
12762
|
-
getMachineErpData(id:
|
|
12660
|
+
getMachineErpData(id: string): Promise<MachineErpDataDto>;
|
|
12763
12661
|
|
|
12764
12662
|
/**
|
|
12765
12663
|
* @param startTime (optional)
|
|
@@ -12782,7 +12680,7 @@ export interface IMachinesClient {
|
|
|
12782
12680
|
|
|
12783
12681
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
12784
12682
|
|
|
12785
|
-
deleteMachine(id:
|
|
12683
|
+
deleteMachine(id: string): Promise<void>;
|
|
12786
12684
|
}
|
|
12787
12685
|
|
|
12788
12686
|
export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
@@ -12982,10 +12880,12 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12982
12880
|
return Promise.resolve<void>(null as any);
|
|
12983
12881
|
}
|
|
12984
12882
|
|
|
12985
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
12883
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
12986
12884
|
let url_ = this.baseUrl + "/machines/states/now?";
|
|
12987
12885
|
if (assetId !== undefined && assetId !== null)
|
|
12988
12886
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
12887
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
12888
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
12989
12889
|
url_ = url_.replace(/[?&]$/, "");
|
|
12990
12890
|
|
|
12991
12891
|
let options_: RequestInit = {
|
|
@@ -13019,7 +12919,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13019
12919
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
13020
12920
|
}
|
|
13021
12921
|
|
|
13022
|
-
listMachineStates(id:
|
|
12922
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
13023
12923
|
let url_ = this.baseUrl + "/machines/{id}/states?";
|
|
13024
12924
|
if (id === undefined || id === null)
|
|
13025
12925
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13061,7 +12961,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13061
12961
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
13062
12962
|
}
|
|
13063
12963
|
|
|
13064
|
-
listLastDowntimeMachineStates(id:
|
|
12964
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
13065
12965
|
let url_ = this.baseUrl + "/machines/{id}/lastdowntimestates?";
|
|
13066
12966
|
if (id === undefined || id === null)
|
|
13067
12967
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13103,7 +13003,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13103
13003
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
13104
13004
|
}
|
|
13105
13005
|
|
|
13106
|
-
getMachineStateWithDowntimePeriods(id:
|
|
13006
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
13107
13007
|
let url_ = this.baseUrl + "/machines/{id}/statewithdowntimeperiods?";
|
|
13108
13008
|
if (id === undefined || id === null)
|
|
13109
13009
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13145,7 +13045,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13145
13045
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
13146
13046
|
}
|
|
13147
13047
|
|
|
13148
|
-
getMachineStatesSummary(id:
|
|
13048
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
13149
13049
|
let url_ = this.baseUrl + "/machines/{id}/states/summary?";
|
|
13150
13050
|
if (id === undefined || id === null)
|
|
13151
13051
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13222,7 +13122,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13222
13122
|
return Promise.resolve<MachineErpDataListDto>(null as any);
|
|
13223
13123
|
}
|
|
13224
13124
|
|
|
13225
|
-
getMachineErpData(id:
|
|
13125
|
+
getMachineErpData(id: string): Promise<MachineErpDataDto> {
|
|
13226
13126
|
let url_ = this.baseUrl + "/machines/{id}/erp";
|
|
13227
13127
|
if (id === undefined || id === null)
|
|
13228
13128
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13560,7 +13460,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13560
13460
|
return Promise.resolve<void>(null as any);
|
|
13561
13461
|
}
|
|
13562
13462
|
|
|
13563
|
-
deleteMachine(id:
|
|
13463
|
+
deleteMachine(id: string): Promise<void> {
|
|
13564
13464
|
let url_ = this.baseUrl + "/machines/{id}";
|
|
13565
13465
|
if (id === undefined || id === null)
|
|
13566
13466
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13598,11 +13498,11 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13598
13498
|
|
|
13599
13499
|
export interface IMachineDataClient {
|
|
13600
13500
|
|
|
13601
|
-
getLiveMachineData(assetId:
|
|
13501
|
+
getLiveMachineData(assetId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto>;
|
|
13602
13502
|
|
|
13603
|
-
getTimeseriesGraph(assetId:
|
|
13503
|
+
getTimeseriesGraph(assetId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto>;
|
|
13604
13504
|
|
|
13605
|
-
exportTimeseriesGraph(assetId:
|
|
13505
|
+
exportTimeseriesGraph(assetId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto>;
|
|
13606
13506
|
}
|
|
13607
13507
|
|
|
13608
13508
|
export class MachineDataClient extends AuthorizedApiBase implements IMachineDataClient {
|
|
@@ -13615,7 +13515,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13615
13515
|
this.baseUrl = baseUrl ?? "";
|
|
13616
13516
|
}
|
|
13617
13517
|
|
|
13618
|
-
getLiveMachineData(assetId:
|
|
13518
|
+
getLiveMachineData(assetId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto> {
|
|
13619
13519
|
let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
|
|
13620
13520
|
if (assetId === undefined || assetId === null)
|
|
13621
13521
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13657,7 +13557,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13657
13557
|
return Promise.resolve<LiveMachineDataDto>(null as any);
|
|
13658
13558
|
}
|
|
13659
13559
|
|
|
13660
|
-
getTimeseriesGraph(assetId:
|
|
13560
|
+
getTimeseriesGraph(assetId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto> {
|
|
13661
13561
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph?";
|
|
13662
13562
|
if (assetId === undefined || assetId === null)
|
|
13663
13563
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13707,7 +13607,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13707
13607
|
return Promise.resolve<TimeseriesGraphDto>(null as any);
|
|
13708
13608
|
}
|
|
13709
13609
|
|
|
13710
|
-
exportTimeseriesGraph(assetId:
|
|
13610
|
+
exportTimeseriesGraph(assetId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto> {
|
|
13711
13611
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph/export-csv";
|
|
13712
13612
|
if (assetId === undefined || assetId === null)
|
|
13713
13613
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -19012,11 +18912,11 @@ export interface IAssetsClient {
|
|
|
19012
18912
|
|
|
19013
18913
|
searchAssets(name: string | null | undefined, description: string | null | undefined, limit: number | undefined): Promise<AssetDto[]>;
|
|
19014
18914
|
|
|
19015
|
-
getAssetById(id:
|
|
18915
|
+
getAssetById(id: string): Promise<AssetDto>;
|
|
19016
18916
|
|
|
19017
|
-
updateAsset(id:
|
|
18917
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto>;
|
|
19018
18918
|
|
|
19019
|
-
getAssetStructureById(id:
|
|
18919
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto>;
|
|
19020
18920
|
|
|
19021
18921
|
/**
|
|
19022
18922
|
* @deprecated
|
|
@@ -19163,7 +19063,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19163
19063
|
return Promise.resolve<AssetDto[]>(null as any);
|
|
19164
19064
|
}
|
|
19165
19065
|
|
|
19166
|
-
getAssetById(id:
|
|
19066
|
+
getAssetById(id: string): Promise<AssetDto> {
|
|
19167
19067
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19168
19068
|
if (id === undefined || id === null)
|
|
19169
19069
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19201,7 +19101,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19201
19101
|
return Promise.resolve<AssetDto>(null as any);
|
|
19202
19102
|
}
|
|
19203
19103
|
|
|
19204
|
-
updateAsset(id:
|
|
19104
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto> {
|
|
19205
19105
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19206
19106
|
if (id === undefined || id === null)
|
|
19207
19107
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19243,7 +19143,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19243
19143
|
return Promise.resolve<AssetDto>(null as any);
|
|
19244
19144
|
}
|
|
19245
19145
|
|
|
19246
|
-
getAssetStructureById(id:
|
|
19146
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto> {
|
|
19247
19147
|
let url_ = this.baseUrl + "/assets/{id}/structure";
|
|
19248
19148
|
if (id === undefined || id === null)
|
|
19249
19149
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -27427,6 +27327,8 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
27427
27327
|
|
|
27428
27328
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
27429
27329
|
|
|
27330
|
+
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void>;
|
|
27331
|
+
|
|
27430
27332
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
27431
27333
|
|
|
27432
27334
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -28066,6 +27968,44 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
28066
27968
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
28067
27969
|
}
|
|
28068
27970
|
|
|
27971
|
+
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void> {
|
|
27972
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files/{slot}";
|
|
27973
|
+
if (id === undefined || id === null)
|
|
27974
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27975
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27976
|
+
if (slot === undefined || slot === null)
|
|
27977
|
+
throw new globalThis.Error("The parameter 'slot' must be defined.");
|
|
27978
|
+
url_ = url_.replace("{slot}", encodeURIComponent("" + slot));
|
|
27979
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27980
|
+
|
|
27981
|
+
let options_: RequestInit = {
|
|
27982
|
+
method: "DELETE",
|
|
27983
|
+
headers: {
|
|
27984
|
+
}
|
|
27985
|
+
};
|
|
27986
|
+
|
|
27987
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27988
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27989
|
+
}).then((_response: Response) => {
|
|
27990
|
+
return this.processDeleteMeasurementFormSchemaFile(_response);
|
|
27991
|
+
});
|
|
27992
|
+
}
|
|
27993
|
+
|
|
27994
|
+
protected processDeleteMeasurementFormSchemaFile(response: Response): Promise<void> {
|
|
27995
|
+
const status = response.status;
|
|
27996
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
27997
|
+
if (status === 204) {
|
|
27998
|
+
return response.text().then((_responseText) => {
|
|
27999
|
+
return;
|
|
28000
|
+
});
|
|
28001
|
+
} else if (status !== 200 && status !== 204) {
|
|
28002
|
+
return response.text().then((_responseText) => {
|
|
28003
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28004
|
+
});
|
|
28005
|
+
}
|
|
28006
|
+
return Promise.resolve<void>(null as any);
|
|
28007
|
+
}
|
|
28008
|
+
|
|
28069
28009
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
|
|
28070
28010
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
28071
28011
|
if (id === undefined || id === null)
|
|
@@ -29665,6 +29605,8 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29665
29605
|
|
|
29666
29606
|
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
29667
29607
|
|
|
29608
|
+
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]>;
|
|
29609
|
+
|
|
29668
29610
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29669
29611
|
|
|
29670
29612
|
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
@@ -29815,6 +29757,44 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29815
29757
|
return Promise.resolve<MeasurementFormSchemaCountsDto>(null as any);
|
|
29816
29758
|
}
|
|
29817
29759
|
|
|
29760
|
+
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]> {
|
|
29761
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files";
|
|
29762
|
+
if (id === undefined || id === null)
|
|
29763
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29764
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29765
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29766
|
+
|
|
29767
|
+
let options_: RequestInit = {
|
|
29768
|
+
method: "GET",
|
|
29769
|
+
headers: {
|
|
29770
|
+
"Accept": "application/json"
|
|
29771
|
+
}
|
|
29772
|
+
};
|
|
29773
|
+
|
|
29774
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29775
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29776
|
+
}).then((_response: Response) => {
|
|
29777
|
+
return this.processListMeasurementFormSchemaFiles(_response);
|
|
29778
|
+
});
|
|
29779
|
+
}
|
|
29780
|
+
|
|
29781
|
+
protected processListMeasurementFormSchemaFiles(response: Response): Promise<MeasurementFormSchemaFileDto[]> {
|
|
29782
|
+
const status = response.status;
|
|
29783
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29784
|
+
if (status === 200) {
|
|
29785
|
+
return response.text().then((_responseText) => {
|
|
29786
|
+
let result200: any = null;
|
|
29787
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaFileDto[];
|
|
29788
|
+
return result200;
|
|
29789
|
+
});
|
|
29790
|
+
} else if (status !== 200 && status !== 204) {
|
|
29791
|
+
return response.text().then((_responseText) => {
|
|
29792
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29793
|
+
});
|
|
29794
|
+
}
|
|
29795
|
+
return Promise.resolve<MeasurementFormSchemaFileDto[]>(null as any);
|
|
29796
|
+
}
|
|
29797
|
+
|
|
29818
29798
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
29819
29799
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
29820
29800
|
if (id === undefined || id === null)
|
|
@@ -34113,6 +34093,7 @@ export interface UtilizationListDto {
|
|
|
34113
34093
|
|
|
34114
34094
|
export interface MachineUtilizationDto {
|
|
34115
34095
|
assetId: number;
|
|
34096
|
+
assetExternalId: string;
|
|
34116
34097
|
name: string;
|
|
34117
34098
|
description?: string | null;
|
|
34118
34099
|
state: string;
|
|
@@ -34160,6 +34141,7 @@ export interface PowerOnUtilizationDto extends UtilizationAveragesDto {
|
|
|
34160
34141
|
|
|
34161
34142
|
export interface UtilizationDetailsDto {
|
|
34162
34143
|
machineId: number;
|
|
34144
|
+
machineExternalId: string;
|
|
34163
34145
|
machineName: string;
|
|
34164
34146
|
machineStateText?: string | null;
|
|
34165
34147
|
machineState?: MachineState | null;
|
|
@@ -34291,6 +34273,7 @@ export interface ResourceUtilizationListDto {
|
|
|
34291
34273
|
|
|
34292
34274
|
export interface ResourceUtilizationDto {
|
|
34293
34275
|
assetId: number;
|
|
34276
|
+
assetExternalId: string;
|
|
34294
34277
|
name: string;
|
|
34295
34278
|
description?: string | null;
|
|
34296
34279
|
state: string;
|
|
@@ -34302,6 +34285,7 @@ export interface ResourceUtilizationDto {
|
|
|
34302
34285
|
|
|
34303
34286
|
export interface ResourceUtilizationDetailsDto {
|
|
34304
34287
|
resourceId: number;
|
|
34288
|
+
resourceExternalId: string;
|
|
34305
34289
|
resourceName: string;
|
|
34306
34290
|
machineStateText?: string | null;
|
|
34307
34291
|
machineState?: MachineState | null;
|
|
@@ -34399,6 +34383,15 @@ export interface EngageAppSettings {
|
|
|
34399
34383
|
|
|
34400
34384
|
export type ScheduleViewMode = "Flat" | "Grouped";
|
|
34401
34385
|
|
|
34386
|
+
export interface FavoriteRoutesAppSettings {
|
|
34387
|
+
favorites?: FavoriteRoute[];
|
|
34388
|
+
}
|
|
34389
|
+
|
|
34390
|
+
export interface FavoriteRoute {
|
|
34391
|
+
appKey: string;
|
|
34392
|
+
route: string;
|
|
34393
|
+
}
|
|
34394
|
+
|
|
34402
34395
|
export interface UploadInfoDto {
|
|
34403
34396
|
baseUrl?: string | null;
|
|
34404
34397
|
key?: string | null;
|
|
@@ -34420,6 +34413,7 @@ export interface DataHealthDto {
|
|
|
34420
34413
|
|
|
34421
34414
|
export interface MachineDataHealthDto {
|
|
34422
34415
|
assetId: number;
|
|
34416
|
+
assetExternalId: string;
|
|
34423
34417
|
name: string;
|
|
34424
34418
|
description?: string | null;
|
|
34425
34419
|
state?: string | null;
|
|
@@ -34439,6 +34433,7 @@ export interface PowerRegionDto {
|
|
|
34439
34433
|
|
|
34440
34434
|
export interface ConsumptionDto {
|
|
34441
34435
|
assetId: number;
|
|
34436
|
+
assetExternalId: string;
|
|
34442
34437
|
assetName: string;
|
|
34443
34438
|
kwh: number;
|
|
34444
34439
|
co2Equivalent?: number | null;
|
|
@@ -34448,9 +34443,11 @@ export interface ConsumptionDto {
|
|
|
34448
34443
|
|
|
34449
34444
|
export interface AssetConsumptionDto {
|
|
34450
34445
|
timeseriesId: number;
|
|
34446
|
+
timeseriesExternalId?: string | null;
|
|
34451
34447
|
timeseriesName: string;
|
|
34452
34448
|
kwh: number;
|
|
34453
34449
|
assetId: number;
|
|
34450
|
+
assetExternalId?: string | null;
|
|
34454
34451
|
assetName: string;
|
|
34455
34452
|
co2Equivalent?: number | null;
|
|
34456
34453
|
co2EquivalentNotAdjustedForLocalProduction?: number | null;
|
|
@@ -34458,6 +34455,7 @@ export interface AssetConsumptionDto {
|
|
|
34458
34455
|
|
|
34459
34456
|
export interface GetConsumption {
|
|
34460
34457
|
assetId?: number | null;
|
|
34458
|
+
assetExternalId?: string | null;
|
|
34461
34459
|
start?: Date | null;
|
|
34462
34460
|
end?: Date | null;
|
|
34463
34461
|
}
|
|
@@ -34469,8 +34467,10 @@ export interface PowerDto {
|
|
|
34469
34467
|
|
|
34470
34468
|
export interface AssetPowerDto {
|
|
34471
34469
|
timeseriesId?: number;
|
|
34470
|
+
timeseriesExternalId?: string | null;
|
|
34472
34471
|
timeseriesName?: string | null;
|
|
34473
34472
|
assetId?: number;
|
|
34473
|
+
assetExternalId?: string | null;
|
|
34474
34474
|
assetName?: string | null;
|
|
34475
34475
|
timeSeriesDataPoints?: NumericDataPointDto[] | null;
|
|
34476
34476
|
}
|
|
@@ -34484,7 +34484,8 @@ export interface NumericDataPointDto {
|
|
|
34484
34484
|
}
|
|
34485
34485
|
|
|
34486
34486
|
export interface GetPower {
|
|
34487
|
-
assetId
|
|
34487
|
+
assetId?: number | null;
|
|
34488
|
+
assetExternalId?: string | null;
|
|
34488
34489
|
granularity?: string | null;
|
|
34489
34490
|
start?: Date | null;
|
|
34490
34491
|
end?: Date | null;
|
|
@@ -35017,6 +35018,7 @@ export interface MachineStateDto {
|
|
|
35017
35018
|
state: string;
|
|
35018
35019
|
machineState: MachineState;
|
|
35019
35020
|
startTime: Date;
|
|
35021
|
+
assetExternalId: string;
|
|
35020
35022
|
}
|
|
35021
35023
|
|
|
35022
35024
|
export interface DowntimeMachineStateDto {
|
|
@@ -35036,6 +35038,7 @@ export interface SingleResourceErpDataListDto {
|
|
|
35036
35038
|
activeOrders: ResourceErpDataDto[];
|
|
35037
35039
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
35038
35040
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
35041
|
+
assetExternalId: string;
|
|
35039
35042
|
}
|
|
35040
35043
|
|
|
35041
35044
|
export interface ResourceErpDataDto {
|
|
@@ -35282,7 +35285,7 @@ export interface PulseJournalBoardsDto {
|
|
|
35282
35285
|
}
|
|
35283
35286
|
|
|
35284
35287
|
export interface PulseJournalNowBoardDto {
|
|
35285
|
-
lines:
|
|
35288
|
+
lines: PulseJournalLineDto[];
|
|
35286
35289
|
eTag?: string | null;
|
|
35287
35290
|
}
|
|
35288
35291
|
|
|
@@ -35296,10 +35299,14 @@ export interface PulseJournalLineDto {
|
|
|
35296
35299
|
updatedBy?: string | null;
|
|
35297
35300
|
}
|
|
35298
35301
|
|
|
35299
|
-
export interface
|
|
35300
|
-
|
|
35301
|
-
|
|
35302
|
+
export interface PulseJournalAlwaysBoardDto {
|
|
35303
|
+
lines: PulseJournalAlwaysLineDto[];
|
|
35304
|
+
eTag?: string | null;
|
|
35305
|
+
}
|
|
35306
|
+
|
|
35307
|
+
export interface PulseJournalAlwaysLineDto extends PulseJournalLineDto {
|
|
35302
35308
|
attachments: PulseJournalAttachmentDto[];
|
|
35309
|
+
links: PulseJournalLinkDto[];
|
|
35303
35310
|
}
|
|
35304
35311
|
|
|
35305
35312
|
export interface PulseJournalAttachmentDto {
|
|
@@ -35310,16 +35317,6 @@ export interface PulseJournalAttachmentDto {
|
|
|
35310
35317
|
createdBy?: string | null;
|
|
35311
35318
|
}
|
|
35312
35319
|
|
|
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
35320
|
export interface PulseJournalLinkDto {
|
|
35324
35321
|
id: string;
|
|
35325
35322
|
url: string;
|
|
@@ -35353,7 +35350,7 @@ export interface UndoPulseJournalActionRequest {
|
|
|
35353
35350
|
}
|
|
35354
35351
|
|
|
35355
35352
|
export interface PulseJournalNowLineMutationResultDto {
|
|
35356
|
-
line?:
|
|
35353
|
+
line?: PulseJournalLineDto | null;
|
|
35357
35354
|
boardETag: string;
|
|
35358
35355
|
eventId?: string | null;
|
|
35359
35356
|
}
|
|
@@ -35374,14 +35371,10 @@ export interface ReorderPulseJournalLineRequest {
|
|
|
35374
35371
|
eTag?: string | null;
|
|
35375
35372
|
}
|
|
35376
35373
|
|
|
35377
|
-
export interface
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
35381
|
-
|
|
35382
|
-
export interface SetPulseJournalLineImportantRequest {
|
|
35383
|
-
isImportant: boolean;
|
|
35384
|
-
eTag?: string | null;
|
|
35374
|
+
export interface PulseJournalAlwaysLineMutationResultDto {
|
|
35375
|
+
line?: PulseJournalAlwaysLineDto | null;
|
|
35376
|
+
boardETag: string;
|
|
35377
|
+
eventId?: string | null;
|
|
35385
35378
|
}
|
|
35386
35379
|
|
|
35387
35380
|
export interface AddPulseJournalAttachmentRequest {
|
|
@@ -35390,12 +35383,6 @@ export interface AddPulseJournalAttachmentRequest {
|
|
|
35390
35383
|
eTag?: string | null;
|
|
35391
35384
|
}
|
|
35392
35385
|
|
|
35393
|
-
export interface PulseJournalAlwaysLineMutationResultDto {
|
|
35394
|
-
line?: PulseJournalAlwaysLineDto | null;
|
|
35395
|
-
boardETag: string;
|
|
35396
|
-
eventId?: string | null;
|
|
35397
|
-
}
|
|
35398
|
-
|
|
35399
35386
|
export interface AddPulseJournalLinkRequest {
|
|
35400
35387
|
url: string;
|
|
35401
35388
|
eTag?: string | null;
|
|
@@ -35428,6 +35415,7 @@ export interface ResourceGroupUtilizationV2Dto {
|
|
|
35428
35415
|
|
|
35429
35416
|
export interface ResourceUtilizationV3Dto {
|
|
35430
35417
|
id?: number;
|
|
35418
|
+
externalId: string;
|
|
35431
35419
|
name: string;
|
|
35432
35420
|
description?: string | null;
|
|
35433
35421
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -36620,6 +36608,7 @@ export interface SingleMachineErpDataListDto {
|
|
|
36620
36608
|
activeOrders: MachineErpDataDto[];
|
|
36621
36609
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
36622
36610
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
36611
|
+
assetExternalId: string;
|
|
36623
36612
|
}
|
|
36624
36613
|
|
|
36625
36614
|
export interface MachineErpDataDto {
|
|
@@ -36666,6 +36655,7 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
36666
36655
|
export interface LiveMachineDataDto {
|
|
36667
36656
|
assetId?: number;
|
|
36668
36657
|
dataPoints?: LiveMachineDataPointDto[];
|
|
36658
|
+
assetExternalId: string;
|
|
36669
36659
|
}
|
|
36670
36660
|
|
|
36671
36661
|
export interface LiveMachineDataPointDto {
|
|
@@ -36678,6 +36668,7 @@ export interface LiveMachineDataPointDto {
|
|
|
36678
36668
|
export interface TimeseriesGraphDto {
|
|
36679
36669
|
assetId?: number;
|
|
36680
36670
|
series?: TimeseriesGraphSeriesDto[];
|
|
36671
|
+
assetExternalId: string;
|
|
36681
36672
|
}
|
|
36682
36673
|
|
|
36683
36674
|
export interface TimeseriesGraphSeriesDto {
|
|
@@ -37830,11 +37821,13 @@ export interface AssetDto {
|
|
|
37830
37821
|
metadata?: { [key: string]: string; } | null;
|
|
37831
37822
|
aggregates?: any | null;
|
|
37832
37823
|
parentId?: number | null;
|
|
37824
|
+
parentExternalId?: string | null;
|
|
37833
37825
|
source?: string | null;
|
|
37834
37826
|
id?: number | null;
|
|
37835
37827
|
createdTime?: number | null;
|
|
37836
37828
|
lastUpdatedTime?: number | null;
|
|
37837
37829
|
rootId?: number | null;
|
|
37830
|
+
rootExternalId?: string | null;
|
|
37838
37831
|
}
|
|
37839
37832
|
|
|
37840
37833
|
export interface AssetStructureDto {
|
|
@@ -37854,7 +37847,8 @@ export interface AssetSimpleStructureDto {
|
|
|
37854
37847
|
}
|
|
37855
37848
|
|
|
37856
37849
|
export interface CreateAsset {
|
|
37857
|
-
parentId
|
|
37850
|
+
parentId?: number | null;
|
|
37851
|
+
parentExternalId?: string | null;
|
|
37858
37852
|
externalId: string;
|
|
37859
37853
|
name: string;
|
|
37860
37854
|
description: string;
|
|
@@ -37863,7 +37857,8 @@ export interface CreateAsset {
|
|
|
37863
37857
|
}
|
|
37864
37858
|
|
|
37865
37859
|
export interface UpdateAssetRequest {
|
|
37866
|
-
parentId
|
|
37860
|
+
parentId?: number | null;
|
|
37861
|
+
parentExternalId?: string | null;
|
|
37867
37862
|
name: string;
|
|
37868
37863
|
description: string;
|
|
37869
37864
|
metadata: { [key: string]: string; };
|
|
@@ -40949,6 +40944,8 @@ export interface UploadRequest {
|
|
|
40949
40944
|
isMarkedDrawing?: boolean | null;
|
|
40950
40945
|
}
|
|
40951
40946
|
|
|
40947
|
+
export type SchemaFileSlot = "Drawing" | "ProjectFile" | "MarkedDrawing" | "SourceFile";
|
|
40948
|
+
|
|
40952
40949
|
export interface MeasurementFormImportStatusDto {
|
|
40953
40950
|
progress: number;
|
|
40954
40951
|
totalElements: number;
|
|
@@ -41287,6 +41284,14 @@ export interface CountMeasurementFormSchemasRequest {
|
|
|
41287
41284
|
schemaCreator?: boolean | null;
|
|
41288
41285
|
}
|
|
41289
41286
|
|
|
41287
|
+
export interface MeasurementFormSchemaFileDto {
|
|
41288
|
+
slot: SchemaFileSlot;
|
|
41289
|
+
title: string;
|
|
41290
|
+
url: string;
|
|
41291
|
+
size?: number | null;
|
|
41292
|
+
lastModified?: Date | null;
|
|
41293
|
+
}
|
|
41294
|
+
|
|
41290
41295
|
export interface MeasurementFormSchemaVersionDto {
|
|
41291
41296
|
id: string;
|
|
41292
41297
|
versionId: number;
|