@ignos/api-client 20261110.361.1-alpha → 20261111.363.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 +120 -67
- package/lib/ignosportal-api.js +166 -5
- package/package.json +1 -1
- package/src/ignosportal-api.ts +277 -67
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.");
|
|
@@ -12747,19 +12834,19 @@ export interface IMachinesClient {
|
|
|
12747
12834
|
|
|
12748
12835
|
deleteMachineGroup(id: string): Promise<void>;
|
|
12749
12836
|
|
|
12750
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
12837
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto>;
|
|
12751
12838
|
|
|
12752
|
-
listMachineStates(id:
|
|
12839
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
12753
12840
|
|
|
12754
|
-
listLastDowntimeMachineStates(id:
|
|
12841
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
12755
12842
|
|
|
12756
|
-
getMachineStateWithDowntimePeriods(id:
|
|
12843
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
12757
12844
|
|
|
12758
|
-
getMachineStatesSummary(id:
|
|
12845
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
12759
12846
|
|
|
12760
12847
|
listMachineErpData(): Promise<MachineErpDataListDto>;
|
|
12761
12848
|
|
|
12762
|
-
getMachineErpData(id:
|
|
12849
|
+
getMachineErpData(id: string): Promise<MachineErpDataDto>;
|
|
12763
12850
|
|
|
12764
12851
|
/**
|
|
12765
12852
|
* @param startTime (optional)
|
|
@@ -12782,7 +12869,7 @@ export interface IMachinesClient {
|
|
|
12782
12869
|
|
|
12783
12870
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
12784
12871
|
|
|
12785
|
-
deleteMachine(id:
|
|
12872
|
+
deleteMachine(id: string): Promise<void>;
|
|
12786
12873
|
}
|
|
12787
12874
|
|
|
12788
12875
|
export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
@@ -12982,10 +13069,12 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12982
13069
|
return Promise.resolve<void>(null as any);
|
|
12983
13070
|
}
|
|
12984
13071
|
|
|
12985
|
-
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
13072
|
+
listCurrentMachineStates(assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineStateListDto> {
|
|
12986
13073
|
let url_ = this.baseUrl + "/machines/states/now?";
|
|
12987
13074
|
if (assetId !== undefined && assetId !== null)
|
|
12988
13075
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
13076
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
13077
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
12989
13078
|
url_ = url_.replace(/[?&]$/, "");
|
|
12990
13079
|
|
|
12991
13080
|
let options_: RequestInit = {
|
|
@@ -13019,7 +13108,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13019
13108
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
13020
13109
|
}
|
|
13021
13110
|
|
|
13022
|
-
listMachineStates(id:
|
|
13111
|
+
listMachineStates(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
13023
13112
|
let url_ = this.baseUrl + "/machines/{id}/states?";
|
|
13024
13113
|
if (id === undefined || id === null)
|
|
13025
13114
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13061,7 +13150,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13061
13150
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
13062
13151
|
}
|
|
13063
13152
|
|
|
13064
|
-
listLastDowntimeMachineStates(id:
|
|
13153
|
+
listLastDowntimeMachineStates(id: string, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
13065
13154
|
let url_ = this.baseUrl + "/machines/{id}/lastdowntimestates?";
|
|
13066
13155
|
if (id === undefined || id === null)
|
|
13067
13156
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13103,7 +13192,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13103
13192
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
13104
13193
|
}
|
|
13105
13194
|
|
|
13106
|
-
getMachineStateWithDowntimePeriods(id:
|
|
13195
|
+
getMachineStateWithDowntimePeriods(id: string, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
13107
13196
|
let url_ = this.baseUrl + "/machines/{id}/statewithdowntimeperiods?";
|
|
13108
13197
|
if (id === undefined || id === null)
|
|
13109
13198
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13145,7 +13234,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13145
13234
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
13146
13235
|
}
|
|
13147
13236
|
|
|
13148
|
-
getMachineStatesSummary(id:
|
|
13237
|
+
getMachineStatesSummary(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
13149
13238
|
let url_ = this.baseUrl + "/machines/{id}/states/summary?";
|
|
13150
13239
|
if (id === undefined || id === null)
|
|
13151
13240
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13222,7 +13311,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13222
13311
|
return Promise.resolve<MachineErpDataListDto>(null as any);
|
|
13223
13312
|
}
|
|
13224
13313
|
|
|
13225
|
-
getMachineErpData(id:
|
|
13314
|
+
getMachineErpData(id: string): Promise<MachineErpDataDto> {
|
|
13226
13315
|
let url_ = this.baseUrl + "/machines/{id}/erp";
|
|
13227
13316
|
if (id === undefined || id === null)
|
|
13228
13317
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13560,7 +13649,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13560
13649
|
return Promise.resolve<void>(null as any);
|
|
13561
13650
|
}
|
|
13562
13651
|
|
|
13563
|
-
deleteMachine(id:
|
|
13652
|
+
deleteMachine(id: string): Promise<void> {
|
|
13564
13653
|
let url_ = this.baseUrl + "/machines/{id}";
|
|
13565
13654
|
if (id === undefined || id === null)
|
|
13566
13655
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13598,11 +13687,11 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13598
13687
|
|
|
13599
13688
|
export interface IMachineDataClient {
|
|
13600
13689
|
|
|
13601
|
-
getLiveMachineData(assetId:
|
|
13690
|
+
getLiveMachineData(assetId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto>;
|
|
13602
13691
|
|
|
13603
|
-
getTimeseriesGraph(assetId:
|
|
13692
|
+
getTimeseriesGraph(assetId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto>;
|
|
13604
13693
|
|
|
13605
|
-
exportTimeseriesGraph(assetId:
|
|
13694
|
+
exportTimeseriesGraph(assetId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto>;
|
|
13606
13695
|
}
|
|
13607
13696
|
|
|
13608
13697
|
export class MachineDataClient extends AuthorizedApiBase implements IMachineDataClient {
|
|
@@ -13615,7 +13704,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13615
13704
|
this.baseUrl = baseUrl ?? "";
|
|
13616
13705
|
}
|
|
13617
13706
|
|
|
13618
|
-
getLiveMachineData(assetId:
|
|
13707
|
+
getLiveMachineData(assetId: string, externalIds: string[] | undefined): Promise<LiveMachineDataDto> {
|
|
13619
13708
|
let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
|
|
13620
13709
|
if (assetId === undefined || assetId === null)
|
|
13621
13710
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13657,7 +13746,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13657
13746
|
return Promise.resolve<LiveMachineDataDto>(null as any);
|
|
13658
13747
|
}
|
|
13659
13748
|
|
|
13660
|
-
getTimeseriesGraph(assetId:
|
|
13749
|
+
getTimeseriesGraph(assetId: string, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto> {
|
|
13661
13750
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph?";
|
|
13662
13751
|
if (assetId === undefined || assetId === null)
|
|
13663
13752
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13707,7 +13796,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13707
13796
|
return Promise.resolve<TimeseriesGraphDto>(null as any);
|
|
13708
13797
|
}
|
|
13709
13798
|
|
|
13710
|
-
exportTimeseriesGraph(assetId:
|
|
13799
|
+
exportTimeseriesGraph(assetId: string, request: ExportTimeseriesGraphRequest): Promise<DownloadDto> {
|
|
13711
13800
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph/export-csv";
|
|
13712
13801
|
if (assetId === undefined || assetId === null)
|
|
13713
13802
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -19012,11 +19101,11 @@ export interface IAssetsClient {
|
|
|
19012
19101
|
|
|
19013
19102
|
searchAssets(name: string | null | undefined, description: string | null | undefined, limit: number | undefined): Promise<AssetDto[]>;
|
|
19014
19103
|
|
|
19015
|
-
getAssetById(id:
|
|
19104
|
+
getAssetById(id: string): Promise<AssetDto>;
|
|
19016
19105
|
|
|
19017
|
-
updateAsset(id:
|
|
19106
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto>;
|
|
19018
19107
|
|
|
19019
|
-
getAssetStructureById(id:
|
|
19108
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto>;
|
|
19020
19109
|
|
|
19021
19110
|
/**
|
|
19022
19111
|
* @deprecated
|
|
@@ -19163,7 +19252,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19163
19252
|
return Promise.resolve<AssetDto[]>(null as any);
|
|
19164
19253
|
}
|
|
19165
19254
|
|
|
19166
|
-
getAssetById(id:
|
|
19255
|
+
getAssetById(id: string): Promise<AssetDto> {
|
|
19167
19256
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19168
19257
|
if (id === undefined || id === null)
|
|
19169
19258
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19201,7 +19290,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19201
19290
|
return Promise.resolve<AssetDto>(null as any);
|
|
19202
19291
|
}
|
|
19203
19292
|
|
|
19204
|
-
updateAsset(id:
|
|
19293
|
+
updateAsset(id: string, request: UpdateAssetRequest): Promise<AssetDto> {
|
|
19205
19294
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19206
19295
|
if (id === undefined || id === null)
|
|
19207
19296
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19243,7 +19332,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19243
19332
|
return Promise.resolve<AssetDto>(null as any);
|
|
19244
19333
|
}
|
|
19245
19334
|
|
|
19246
|
-
getAssetStructureById(id:
|
|
19335
|
+
getAssetStructureById(id: string): Promise<AssetStructureDto> {
|
|
19247
19336
|
let url_ = this.baseUrl + "/assets/{id}/structure";
|
|
19248
19337
|
if (id === undefined || id === null)
|
|
19249
19338
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -27427,6 +27516,8 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
27427
27516
|
|
|
27428
27517
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
27429
27518
|
|
|
27519
|
+
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void>;
|
|
27520
|
+
|
|
27430
27521
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
27431
27522
|
|
|
27432
27523
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -28066,6 +28157,44 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
28066
28157
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
28067
28158
|
}
|
|
28068
28159
|
|
|
28160
|
+
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void> {
|
|
28161
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files/{slot}";
|
|
28162
|
+
if (id === undefined || id === null)
|
|
28163
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
28164
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
28165
|
+
if (slot === undefined || slot === null)
|
|
28166
|
+
throw new globalThis.Error("The parameter 'slot' must be defined.");
|
|
28167
|
+
url_ = url_.replace("{slot}", encodeURIComponent("" + slot));
|
|
28168
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
28169
|
+
|
|
28170
|
+
let options_: RequestInit = {
|
|
28171
|
+
method: "DELETE",
|
|
28172
|
+
headers: {
|
|
28173
|
+
}
|
|
28174
|
+
};
|
|
28175
|
+
|
|
28176
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28177
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
28178
|
+
}).then((_response: Response) => {
|
|
28179
|
+
return this.processDeleteMeasurementFormSchemaFile(_response);
|
|
28180
|
+
});
|
|
28181
|
+
}
|
|
28182
|
+
|
|
28183
|
+
protected processDeleteMeasurementFormSchemaFile(response: Response): Promise<void> {
|
|
28184
|
+
const status = response.status;
|
|
28185
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
28186
|
+
if (status === 204) {
|
|
28187
|
+
return response.text().then((_responseText) => {
|
|
28188
|
+
return;
|
|
28189
|
+
});
|
|
28190
|
+
} else if (status !== 200 && status !== 204) {
|
|
28191
|
+
return response.text().then((_responseText) => {
|
|
28192
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28193
|
+
});
|
|
28194
|
+
}
|
|
28195
|
+
return Promise.resolve<void>(null as any);
|
|
28196
|
+
}
|
|
28197
|
+
|
|
28069
28198
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
|
|
28070
28199
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
28071
28200
|
if (id === undefined || id === null)
|
|
@@ -29665,6 +29794,8 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29665
29794
|
|
|
29666
29795
|
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
29667
29796
|
|
|
29797
|
+
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]>;
|
|
29798
|
+
|
|
29668
29799
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29669
29800
|
|
|
29670
29801
|
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
@@ -29815,6 +29946,44 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29815
29946
|
return Promise.resolve<MeasurementFormSchemaCountsDto>(null as any);
|
|
29816
29947
|
}
|
|
29817
29948
|
|
|
29949
|
+
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]> {
|
|
29950
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files";
|
|
29951
|
+
if (id === undefined || id === null)
|
|
29952
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29953
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29954
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29955
|
+
|
|
29956
|
+
let options_: RequestInit = {
|
|
29957
|
+
method: "GET",
|
|
29958
|
+
headers: {
|
|
29959
|
+
"Accept": "application/json"
|
|
29960
|
+
}
|
|
29961
|
+
};
|
|
29962
|
+
|
|
29963
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29964
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29965
|
+
}).then((_response: Response) => {
|
|
29966
|
+
return this.processListMeasurementFormSchemaFiles(_response);
|
|
29967
|
+
});
|
|
29968
|
+
}
|
|
29969
|
+
|
|
29970
|
+
protected processListMeasurementFormSchemaFiles(response: Response): Promise<MeasurementFormSchemaFileDto[]> {
|
|
29971
|
+
const status = response.status;
|
|
29972
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29973
|
+
if (status === 200) {
|
|
29974
|
+
return response.text().then((_responseText) => {
|
|
29975
|
+
let result200: any = null;
|
|
29976
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaFileDto[];
|
|
29977
|
+
return result200;
|
|
29978
|
+
});
|
|
29979
|
+
} else if (status !== 200 && status !== 204) {
|
|
29980
|
+
return response.text().then((_responseText) => {
|
|
29981
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29982
|
+
});
|
|
29983
|
+
}
|
|
29984
|
+
return Promise.resolve<MeasurementFormSchemaFileDto[]>(null as any);
|
|
29985
|
+
}
|
|
29986
|
+
|
|
29818
29987
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
29819
29988
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
29820
29989
|
if (id === undefined || id === null)
|
|
@@ -34113,6 +34282,7 @@ export interface UtilizationListDto {
|
|
|
34113
34282
|
|
|
34114
34283
|
export interface MachineUtilizationDto {
|
|
34115
34284
|
assetId: number;
|
|
34285
|
+
assetExternalId: string;
|
|
34116
34286
|
name: string;
|
|
34117
34287
|
description?: string | null;
|
|
34118
34288
|
state: string;
|
|
@@ -34160,6 +34330,7 @@ export interface PowerOnUtilizationDto extends UtilizationAveragesDto {
|
|
|
34160
34330
|
|
|
34161
34331
|
export interface UtilizationDetailsDto {
|
|
34162
34332
|
machineId: number;
|
|
34333
|
+
machineExternalId: string;
|
|
34163
34334
|
machineName: string;
|
|
34164
34335
|
machineStateText?: string | null;
|
|
34165
34336
|
machineState?: MachineState | null;
|
|
@@ -34291,6 +34462,7 @@ export interface ResourceUtilizationListDto {
|
|
|
34291
34462
|
|
|
34292
34463
|
export interface ResourceUtilizationDto {
|
|
34293
34464
|
assetId: number;
|
|
34465
|
+
assetExternalId: string;
|
|
34294
34466
|
name: string;
|
|
34295
34467
|
description?: string | null;
|
|
34296
34468
|
state: string;
|
|
@@ -34302,6 +34474,7 @@ export interface ResourceUtilizationDto {
|
|
|
34302
34474
|
|
|
34303
34475
|
export interface ResourceUtilizationDetailsDto {
|
|
34304
34476
|
resourceId: number;
|
|
34477
|
+
resourceExternalId: string;
|
|
34305
34478
|
resourceName: string;
|
|
34306
34479
|
machineStateText?: string | null;
|
|
34307
34480
|
machineState?: MachineState | null;
|
|
@@ -34399,6 +34572,15 @@ export interface EngageAppSettings {
|
|
|
34399
34572
|
|
|
34400
34573
|
export type ScheduleViewMode = "Flat" | "Grouped";
|
|
34401
34574
|
|
|
34575
|
+
export interface FavoriteRoutesAppSettings {
|
|
34576
|
+
favorites?: FavoriteRoute[];
|
|
34577
|
+
}
|
|
34578
|
+
|
|
34579
|
+
export interface FavoriteRoute {
|
|
34580
|
+
appKey: string;
|
|
34581
|
+
route: string;
|
|
34582
|
+
}
|
|
34583
|
+
|
|
34402
34584
|
export interface UploadInfoDto {
|
|
34403
34585
|
baseUrl?: string | null;
|
|
34404
34586
|
key?: string | null;
|
|
@@ -34420,6 +34602,7 @@ export interface DataHealthDto {
|
|
|
34420
34602
|
|
|
34421
34603
|
export interface MachineDataHealthDto {
|
|
34422
34604
|
assetId: number;
|
|
34605
|
+
assetExternalId: string;
|
|
34423
34606
|
name: string;
|
|
34424
34607
|
description?: string | null;
|
|
34425
34608
|
state?: string | null;
|
|
@@ -34439,6 +34622,7 @@ export interface PowerRegionDto {
|
|
|
34439
34622
|
|
|
34440
34623
|
export interface ConsumptionDto {
|
|
34441
34624
|
assetId: number;
|
|
34625
|
+
assetExternalId: string;
|
|
34442
34626
|
assetName: string;
|
|
34443
34627
|
kwh: number;
|
|
34444
34628
|
co2Equivalent?: number | null;
|
|
@@ -34448,9 +34632,11 @@ export interface ConsumptionDto {
|
|
|
34448
34632
|
|
|
34449
34633
|
export interface AssetConsumptionDto {
|
|
34450
34634
|
timeseriesId: number;
|
|
34635
|
+
timeseriesExternalId?: string | null;
|
|
34451
34636
|
timeseriesName: string;
|
|
34452
34637
|
kwh: number;
|
|
34453
34638
|
assetId: number;
|
|
34639
|
+
assetExternalId?: string | null;
|
|
34454
34640
|
assetName: string;
|
|
34455
34641
|
co2Equivalent?: number | null;
|
|
34456
34642
|
co2EquivalentNotAdjustedForLocalProduction?: number | null;
|
|
@@ -34458,6 +34644,7 @@ export interface AssetConsumptionDto {
|
|
|
34458
34644
|
|
|
34459
34645
|
export interface GetConsumption {
|
|
34460
34646
|
assetId?: number | null;
|
|
34647
|
+
assetExternalId?: string | null;
|
|
34461
34648
|
start?: Date | null;
|
|
34462
34649
|
end?: Date | null;
|
|
34463
34650
|
}
|
|
@@ -34469,8 +34656,10 @@ export interface PowerDto {
|
|
|
34469
34656
|
|
|
34470
34657
|
export interface AssetPowerDto {
|
|
34471
34658
|
timeseriesId?: number;
|
|
34659
|
+
timeseriesExternalId?: string | null;
|
|
34472
34660
|
timeseriesName?: string | null;
|
|
34473
34661
|
assetId?: number;
|
|
34662
|
+
assetExternalId?: string | null;
|
|
34474
34663
|
assetName?: string | null;
|
|
34475
34664
|
timeSeriesDataPoints?: NumericDataPointDto[] | null;
|
|
34476
34665
|
}
|
|
@@ -34484,7 +34673,8 @@ export interface NumericDataPointDto {
|
|
|
34484
34673
|
}
|
|
34485
34674
|
|
|
34486
34675
|
export interface GetPower {
|
|
34487
|
-
assetId
|
|
34676
|
+
assetId?: number | null;
|
|
34677
|
+
assetExternalId?: string | null;
|
|
34488
34678
|
granularity?: string | null;
|
|
34489
34679
|
start?: Date | null;
|
|
34490
34680
|
end?: Date | null;
|
|
@@ -35017,6 +35207,7 @@ export interface MachineStateDto {
|
|
|
35017
35207
|
state: string;
|
|
35018
35208
|
machineState: MachineState;
|
|
35019
35209
|
startTime: Date;
|
|
35210
|
+
assetExternalId: string;
|
|
35020
35211
|
}
|
|
35021
35212
|
|
|
35022
35213
|
export interface DowntimeMachineStateDto {
|
|
@@ -35036,6 +35227,7 @@ export interface SingleResourceErpDataListDto {
|
|
|
35036
35227
|
activeOrders: ResourceErpDataDto[];
|
|
35037
35228
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
35038
35229
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
35230
|
+
assetExternalId: string;
|
|
35039
35231
|
}
|
|
35040
35232
|
|
|
35041
35233
|
export interface ResourceErpDataDto {
|
|
@@ -35428,6 +35620,7 @@ export interface ResourceGroupUtilizationV2Dto {
|
|
|
35428
35620
|
|
|
35429
35621
|
export interface ResourceUtilizationV3Dto {
|
|
35430
35622
|
id?: number;
|
|
35623
|
+
externalId: string;
|
|
35431
35624
|
name: string;
|
|
35432
35625
|
description?: string | null;
|
|
35433
35626
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -36620,6 +36813,7 @@ export interface SingleMachineErpDataListDto {
|
|
|
36620
36813
|
activeOrders: MachineErpDataDto[];
|
|
36621
36814
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
36622
36815
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
36816
|
+
assetExternalId: string;
|
|
36623
36817
|
}
|
|
36624
36818
|
|
|
36625
36819
|
export interface MachineErpDataDto {
|
|
@@ -36666,6 +36860,7 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
36666
36860
|
export interface LiveMachineDataDto {
|
|
36667
36861
|
assetId?: number;
|
|
36668
36862
|
dataPoints?: LiveMachineDataPointDto[];
|
|
36863
|
+
assetExternalId: string;
|
|
36669
36864
|
}
|
|
36670
36865
|
|
|
36671
36866
|
export interface LiveMachineDataPointDto {
|
|
@@ -36678,6 +36873,7 @@ export interface LiveMachineDataPointDto {
|
|
|
36678
36873
|
export interface TimeseriesGraphDto {
|
|
36679
36874
|
assetId?: number;
|
|
36680
36875
|
series?: TimeseriesGraphSeriesDto[];
|
|
36876
|
+
assetExternalId: string;
|
|
36681
36877
|
}
|
|
36682
36878
|
|
|
36683
36879
|
export interface TimeseriesGraphSeriesDto {
|
|
@@ -37830,11 +38026,13 @@ export interface AssetDto {
|
|
|
37830
38026
|
metadata?: { [key: string]: string; } | null;
|
|
37831
38027
|
aggregates?: any | null;
|
|
37832
38028
|
parentId?: number | null;
|
|
38029
|
+
parentExternalId?: string | null;
|
|
37833
38030
|
source?: string | null;
|
|
37834
38031
|
id?: number | null;
|
|
37835
38032
|
createdTime?: number | null;
|
|
37836
38033
|
lastUpdatedTime?: number | null;
|
|
37837
38034
|
rootId?: number | null;
|
|
38035
|
+
rootExternalId?: string | null;
|
|
37838
38036
|
}
|
|
37839
38037
|
|
|
37840
38038
|
export interface AssetStructureDto {
|
|
@@ -37854,7 +38052,8 @@ export interface AssetSimpleStructureDto {
|
|
|
37854
38052
|
}
|
|
37855
38053
|
|
|
37856
38054
|
export interface CreateAsset {
|
|
37857
|
-
parentId
|
|
38055
|
+
parentId?: number | null;
|
|
38056
|
+
parentExternalId?: string | null;
|
|
37858
38057
|
externalId: string;
|
|
37859
38058
|
name: string;
|
|
37860
38059
|
description: string;
|
|
@@ -37863,7 +38062,8 @@ export interface CreateAsset {
|
|
|
37863
38062
|
}
|
|
37864
38063
|
|
|
37865
38064
|
export interface UpdateAssetRequest {
|
|
37866
|
-
parentId
|
|
38065
|
+
parentId?: number | null;
|
|
38066
|
+
parentExternalId?: string | null;
|
|
37867
38067
|
name: string;
|
|
37868
38068
|
description: string;
|
|
37869
38069
|
metadata: { [key: string]: string; };
|
|
@@ -40949,6 +41149,8 @@ export interface UploadRequest {
|
|
|
40949
41149
|
isMarkedDrawing?: boolean | null;
|
|
40950
41150
|
}
|
|
40951
41151
|
|
|
41152
|
+
export type SchemaFileSlot = "Drawing" | "ProjectFile" | "MarkedDrawing" | "SourceFile";
|
|
41153
|
+
|
|
40952
41154
|
export interface MeasurementFormImportStatusDto {
|
|
40953
41155
|
progress: number;
|
|
40954
41156
|
totalElements: number;
|
|
@@ -41287,6 +41489,14 @@ export interface CountMeasurementFormSchemasRequest {
|
|
|
41287
41489
|
schemaCreator?: boolean | null;
|
|
41288
41490
|
}
|
|
41289
41491
|
|
|
41492
|
+
export interface MeasurementFormSchemaFileDto {
|
|
41493
|
+
slot: SchemaFileSlot;
|
|
41494
|
+
title: string;
|
|
41495
|
+
url: string;
|
|
41496
|
+
size?: number | null;
|
|
41497
|
+
lastModified?: Date | null;
|
|
41498
|
+
}
|
|
41499
|
+
|
|
41290
41500
|
export interface MeasurementFormSchemaVersionDto {
|
|
41291
41501
|
id: string;
|
|
41292
41502
|
versionId: number;
|