@ignos/api-client 20261110.360.1 → 20261110.361.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +105 -133
- package/lib/ignosportal-api.js +187 -166
- package/package.json +1 -1
- package/src/ignosportal-api.ts +286 -291
package/src/ignosportal-api.ts
CHANGED
|
@@ -1465,24 +1465,23 @@ export interface IMachineUtilizationClient {
|
|
|
1465
1465
|
* @param favorites (optional)
|
|
1466
1466
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1467
1467
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1468
|
-
* @param assetExternalId (optional)
|
|
1469
1468
|
*/
|
|
1470
|
-
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined
|
|
1469
|
+
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto>;
|
|
1471
1470
|
|
|
1472
|
-
getMachineUtilization(id:
|
|
1471
|
+
getMachineUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto>;
|
|
1473
1472
|
|
|
1474
1473
|
/**
|
|
1475
1474
|
* @param startTime (optional)
|
|
1476
1475
|
* @param endTime (optional)
|
|
1477
1476
|
* @deprecated
|
|
1478
1477
|
*/
|
|
1479
|
-
getUtilizationDetailsForMachine(id:
|
|
1478
|
+
getUtilizationDetailsForMachine(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1480
1479
|
|
|
1481
|
-
getResourceTimelines(id:
|
|
1480
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1482
1481
|
|
|
1483
|
-
listMachineStates(id:
|
|
1482
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1484
1483
|
|
|
1485
|
-
getMachineStatesSummary(id:
|
|
1484
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1486
1485
|
|
|
1487
1486
|
listMachineUptimesToday(request: ListMachineUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
|
|
1488
1487
|
|
|
@@ -1514,9 +1513,8 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1514
1513
|
* @param favorites (optional)
|
|
1515
1514
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1516
1515
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1517
|
-
* @param assetExternalId (optional)
|
|
1518
1516
|
*/
|
|
1519
|
-
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined
|
|
1517
|
+
getMachineUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<UtilizationListDto> {
|
|
1520
1518
|
let url_ = this.baseUrl + "/machineutilization?";
|
|
1521
1519
|
if (assetId !== undefined && assetId !== null)
|
|
1522
1520
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
@@ -1528,8 +1526,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1528
1526
|
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
1529
1527
|
if (utcOffset !== undefined && utcOffset !== null)
|
|
1530
1528
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
1531
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
1532
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
1533
1529
|
url_ = url_.replace(/[?&]$/, "");
|
|
1534
1530
|
|
|
1535
1531
|
let options_: RequestInit = {
|
|
@@ -1563,7 +1559,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1563
1559
|
return Promise.resolve<UtilizationListDto>(null as any);
|
|
1564
1560
|
}
|
|
1565
1561
|
|
|
1566
|
-
getMachineUtilization(id:
|
|
1562
|
+
getMachineUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<UtilizationDetailsDto> {
|
|
1567
1563
|
let url_ = this.baseUrl + "/machineutilization/{id}?";
|
|
1568
1564
|
if (id === undefined || id === null)
|
|
1569
1565
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1612,7 +1608,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1612
1608
|
* @param endTime (optional)
|
|
1613
1609
|
* @deprecated
|
|
1614
1610
|
*/
|
|
1615
|
-
getUtilizationDetailsForMachine(id:
|
|
1611
|
+
getUtilizationDetailsForMachine(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1616
1612
|
let url_ = this.baseUrl + "/machineutilization/{id}/utilization?";
|
|
1617
1613
|
if (id === undefined || id === null)
|
|
1618
1614
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1654,7 +1650,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1654
1650
|
return Promise.resolve<MachineStatesSummaryDto>(null as any);
|
|
1655
1651
|
}
|
|
1656
1652
|
|
|
1657
|
-
getResourceTimelines(id:
|
|
1653
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
1658
1654
|
let url_ = this.baseUrl + "/machineutilization/{id}/resource/timelines?";
|
|
1659
1655
|
if (id === undefined || id === null)
|
|
1660
1656
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1700,7 +1696,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1700
1696
|
return Promise.resolve<TimelinesDto>(null as any);
|
|
1701
1697
|
}
|
|
1702
1698
|
|
|
1703
|
-
listMachineStates(id:
|
|
1699
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
1704
1700
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
|
|
1705
1701
|
if (id === undefined || id === null)
|
|
1706
1702
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1742,7 +1738,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1742
1738
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
1743
1739
|
}
|
|
1744
1740
|
|
|
1745
|
-
getMachineStatesSummary(id:
|
|
1741
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
1746
1742
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states/summary?";
|
|
1747
1743
|
if (id === undefined || id === null)
|
|
1748
1744
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -1963,17 +1959,16 @@ export interface IResourceUtilizationClient {
|
|
|
1963
1959
|
* @param favorites (optional)
|
|
1964
1960
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
1965
1961
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
1966
|
-
* @param assetExternalId (optional)
|
|
1967
1962
|
*/
|
|
1968
|
-
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined
|
|
1963
|
+
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto>;
|
|
1969
1964
|
|
|
1970
|
-
getResourceUtilization(id:
|
|
1965
|
+
getResourceUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto>;
|
|
1971
1966
|
|
|
1972
|
-
getResourceTimelines(id:
|
|
1967
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
1973
1968
|
|
|
1974
|
-
listMachineStates(id:
|
|
1969
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
1975
1970
|
|
|
1976
|
-
getMachineStatesSummary(id:
|
|
1971
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
1977
1972
|
|
|
1978
1973
|
listResourceUptimesToday(request: ListResourceUptimesTodayRequest): Promise<ResourceUptimesAggregateDto>;
|
|
1979
1974
|
|
|
@@ -2005,9 +2000,8 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2005
2000
|
* @param favorites (optional)
|
|
2006
2001
|
* @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
|
|
2007
2002
|
* @param utcOffset (optional) Explicit UTC offset for start of today's utilization
|
|
2008
|
-
* @param assetExternalId (optional)
|
|
2009
2003
|
*/
|
|
2010
|
-
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined
|
|
2004
|
+
getResourceUtilizations(assetId: number | null | undefined, favorites: boolean | undefined, startTimeToday: Date | null | undefined, utcOffset: number | null | undefined): Promise<ResourceUtilizationListDto> {
|
|
2011
2005
|
let url_ = this.baseUrl + "/resourceutilization?";
|
|
2012
2006
|
if (assetId !== undefined && assetId !== null)
|
|
2013
2007
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
@@ -2019,8 +2013,6 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2019
2013
|
url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
|
|
2020
2014
|
if (utcOffset !== undefined && utcOffset !== null)
|
|
2021
2015
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
2022
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
2023
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
2024
2016
|
url_ = url_.replace(/[?&]$/, "");
|
|
2025
2017
|
|
|
2026
2018
|
let options_: RequestInit = {
|
|
@@ -2054,7 +2046,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2054
2046
|
return Promise.resolve<ResourceUtilizationListDto>(null as any);
|
|
2055
2047
|
}
|
|
2056
2048
|
|
|
2057
|
-
getResourceUtilization(id:
|
|
2049
|
+
getResourceUtilization(id: number, startTime: Date | undefined, endTime: Date | null | undefined): Promise<ResourceUtilizationDetailsDto> {
|
|
2058
2050
|
let url_ = this.baseUrl + "/resourceutilization/{id}?";
|
|
2059
2051
|
if (id === undefined || id === null)
|
|
2060
2052
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2098,7 +2090,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2098
2090
|
return Promise.resolve<ResourceUtilizationDetailsDto>(null as any);
|
|
2099
2091
|
}
|
|
2100
2092
|
|
|
2101
|
-
getResourceTimelines(id:
|
|
2093
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
2102
2094
|
let url_ = this.baseUrl + "/resourceutilization/{id}/resource/timelines?";
|
|
2103
2095
|
if (id === undefined || id === null)
|
|
2104
2096
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2144,7 +2136,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2144
2136
|
return Promise.resolve<TimelinesDto>(null as any);
|
|
2145
2137
|
}
|
|
2146
2138
|
|
|
2147
|
-
listMachineStates(id:
|
|
2139
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
2148
2140
|
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states?";
|
|
2149
2141
|
if (id === undefined || id === null)
|
|
2150
2142
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2186,7 +2178,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
|
|
|
2186
2178
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
2187
2179
|
}
|
|
2188
2180
|
|
|
2189
|
-
getMachineStatesSummary(id:
|
|
2181
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
2190
2182
|
let url_ = this.baseUrl + "/resourceutilization/{id}/machine-states/summary?";
|
|
2191
2183
|
if (id === undefined || id === null)
|
|
2192
2184
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -2820,10 +2812,6 @@ export interface IUserAppSettingsClient {
|
|
|
2820
2812
|
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
2821
2813
|
|
|
2822
2814
|
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
2823
|
-
|
|
2824
|
-
getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
|
|
2825
|
-
|
|
2826
|
-
setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
|
|
2827
2815
|
}
|
|
2828
2816
|
|
|
2829
2817
|
export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
@@ -3048,77 +3036,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
3048
3036
|
}
|
|
3049
3037
|
return Promise.resolve<void>(null as any);
|
|
3050
3038
|
}
|
|
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
|
-
}
|
|
3122
3039
|
}
|
|
3123
3040
|
|
|
3124
3041
|
export interface IUploadClient {
|
|
@@ -3215,7 +3132,7 @@ export class UploadClient extends AuthorizedApiBase implements IUploadClient {
|
|
|
3215
3132
|
|
|
3216
3133
|
export interface ISystemHealthDashboardClient {
|
|
3217
3134
|
|
|
3218
|
-
getMachineDataHealth(assetId: number | null | undefined
|
|
3135
|
+
getMachineDataHealth(assetId: number | null | undefined): Promise<DataHealthDto>;
|
|
3219
3136
|
}
|
|
3220
3137
|
|
|
3221
3138
|
export class SystemHealthDashboardClient extends AuthorizedApiBase implements ISystemHealthDashboardClient {
|
|
@@ -3228,12 +3145,10 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase implements IS
|
|
|
3228
3145
|
this.baseUrl = baseUrl ?? "";
|
|
3229
3146
|
}
|
|
3230
3147
|
|
|
3231
|
-
getMachineDataHealth(assetId: number | null | undefined
|
|
3148
|
+
getMachineDataHealth(assetId: number | null | undefined): Promise<DataHealthDto> {
|
|
3232
3149
|
let url_ = this.baseUrl + "/systemhealthdashboard?";
|
|
3233
3150
|
if (assetId !== undefined && assetId !== null)
|
|
3234
3151
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3235
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3236
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3237
3152
|
url_ = url_.replace(/[?&]$/, "");
|
|
3238
3153
|
|
|
3239
3154
|
let options_: RequestInit = {
|
|
@@ -5561,19 +5476,19 @@ export interface IResourcesClient {
|
|
|
5561
5476
|
|
|
5562
5477
|
deleteResourceGroup(id: string): Promise<void>;
|
|
5563
5478
|
|
|
5564
|
-
listCurrentMachineStates(assetId: number | null | undefined
|
|
5479
|
+
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
5565
5480
|
|
|
5566
|
-
listMachineStates(id:
|
|
5481
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
5567
5482
|
|
|
5568
|
-
listLastDowntimeMachineStates(id:
|
|
5483
|
+
listLastDowntimeMachineStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
5569
5484
|
|
|
5570
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5485
|
+
getMachineStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
5571
5486
|
|
|
5572
|
-
getMachineStatesSummary(id:
|
|
5487
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
5573
5488
|
|
|
5574
5489
|
listResourceErpData(): Promise<ResourceErpDataListDto>;
|
|
5575
5490
|
|
|
5576
|
-
getResourceErpData(id:
|
|
5491
|
+
getResourceErpData(id: number): Promise<ResourceErpDataDto>;
|
|
5577
5492
|
|
|
5578
5493
|
getResourceUtilizationSummary(): Promise<ResourceUtilizationSummaryDto>;
|
|
5579
5494
|
|
|
@@ -5589,7 +5504,7 @@ export interface IResourcesClient {
|
|
|
5589
5504
|
|
|
5590
5505
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
5591
5506
|
|
|
5592
|
-
deleteMachine(id:
|
|
5507
|
+
deleteMachine(id: number): Promise<void>;
|
|
5593
5508
|
|
|
5594
5509
|
/**
|
|
5595
5510
|
* @deprecated
|
|
@@ -5796,12 +5711,10 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5796
5711
|
return Promise.resolve<void>(null as any);
|
|
5797
5712
|
}
|
|
5798
5713
|
|
|
5799
|
-
listCurrentMachineStates(assetId: number | null | undefined
|
|
5714
|
+
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
5800
5715
|
let url_ = this.baseUrl + "/resources/states/now?";
|
|
5801
5716
|
if (assetId !== undefined && assetId !== null)
|
|
5802
5717
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
5803
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
5804
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
5805
5718
|
url_ = url_.replace(/[?&]$/, "");
|
|
5806
5719
|
|
|
5807
5720
|
let options_: RequestInit = {
|
|
@@ -5835,7 +5748,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5835
5748
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
5836
5749
|
}
|
|
5837
5750
|
|
|
5838
|
-
listMachineStates(id:
|
|
5751
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
5839
5752
|
let url_ = this.baseUrl + "/resources/{id}/states?";
|
|
5840
5753
|
if (id === undefined || id === null)
|
|
5841
5754
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5877,7 +5790,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5877
5790
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
5878
5791
|
}
|
|
5879
5792
|
|
|
5880
|
-
listLastDowntimeMachineStates(id:
|
|
5793
|
+
listLastDowntimeMachineStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
5881
5794
|
let url_ = this.baseUrl + "/resources/{id}/lastdowntimestates?";
|
|
5882
5795
|
if (id === undefined || id === null)
|
|
5883
5796
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5919,7 +5832,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5919
5832
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
5920
5833
|
}
|
|
5921
5834
|
|
|
5922
|
-
getMachineStateWithDowntimePeriods(id:
|
|
5835
|
+
getMachineStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
5923
5836
|
let url_ = this.baseUrl + "/resources/{id}/statewithdowntimeperiods?";
|
|
5924
5837
|
if (id === undefined || id === null)
|
|
5925
5838
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -5961,7 +5874,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
5961
5874
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
5962
5875
|
}
|
|
5963
5876
|
|
|
5964
|
-
getMachineStatesSummary(id:
|
|
5877
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
5965
5878
|
let url_ = this.baseUrl + "/resources/{id}/states/summary?";
|
|
5966
5879
|
if (id === undefined || id === null)
|
|
5967
5880
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6038,7 +5951,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
6038
5951
|
return Promise.resolve<ResourceErpDataListDto>(null as any);
|
|
6039
5952
|
}
|
|
6040
5953
|
|
|
6041
|
-
getResourceErpData(id:
|
|
5954
|
+
getResourceErpData(id: number): Promise<ResourceErpDataDto> {
|
|
6042
5955
|
let url_ = this.baseUrl + "/resources/{id}/erp";
|
|
6043
5956
|
if (id === undefined || id === null)
|
|
6044
5957
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6329,7 +6242,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
6329
6242
|
return Promise.resolve<void>(null as any);
|
|
6330
6243
|
}
|
|
6331
6244
|
|
|
6332
|
-
deleteMachine(id:
|
|
6245
|
+
deleteMachine(id: number): Promise<void> {
|
|
6333
6246
|
let url_ = this.baseUrl + "/resources/{id}";
|
|
6334
6247
|
if (id === undefined || id === null)
|
|
6335
6248
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -6636,6 +6549,14 @@ export interface IPulseJournalClient {
|
|
|
6636
6549
|
|
|
6637
6550
|
reorderNowLine(resourceId: string, lineId: string, request: ReorderPulseJournalLineRequest): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6638
6551
|
|
|
6552
|
+
setNowLinePinned(resourceId: string, lineId: string, request: SetPulseJournalLinePinnedRequest): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6553
|
+
|
|
6554
|
+
setNowLineImportant(resourceId: string, lineId: string, request: SetPulseJournalLineImportantRequest): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6555
|
+
|
|
6556
|
+
addNowAttachment(resourceId: string, lineId: string, request: AddPulseJournalAttachmentRequest): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6557
|
+
|
|
6558
|
+
removeNowAttachment(resourceId: string, lineId: string, attachmentId: string, eTag: string | null | undefined): Promise<PulseJournalNowLineMutationResultDto>;
|
|
6559
|
+
|
|
6639
6560
|
createAlwaysLine(resourceId: string, request: CreatePulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto>;
|
|
6640
6561
|
|
|
6641
6562
|
editAlwaysLine(resourceId: string, lineId: string, request: EditPulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto>;
|
|
@@ -6960,6 +6881,187 @@ export class PulseJournalClient extends AuthorizedApiBase implements IPulseJourn
|
|
|
6960
6881
|
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
6961
6882
|
}
|
|
6962
6883
|
|
|
6884
|
+
setNowLinePinned(resourceId: string, lineId: string, request: SetPulseJournalLinePinnedRequest): Promise<PulseJournalNowLineMutationResultDto> {
|
|
6885
|
+
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/pin";
|
|
6886
|
+
if (resourceId === undefined || resourceId === null)
|
|
6887
|
+
throw new globalThis.Error("The parameter 'resourceId' must be defined.");
|
|
6888
|
+
url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
|
|
6889
|
+
if (lineId === undefined || lineId === null)
|
|
6890
|
+
throw new globalThis.Error("The parameter 'lineId' must be defined.");
|
|
6891
|
+
url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
|
|
6892
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6893
|
+
|
|
6894
|
+
const content_ = JSON.stringify(request);
|
|
6895
|
+
|
|
6896
|
+
let options_: RequestInit = {
|
|
6897
|
+
body: content_,
|
|
6898
|
+
method: "POST",
|
|
6899
|
+
headers: {
|
|
6900
|
+
"Content-Type": "application/json",
|
|
6901
|
+
"Accept": "application/json"
|
|
6902
|
+
}
|
|
6903
|
+
};
|
|
6904
|
+
|
|
6905
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6906
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6907
|
+
}).then((_response: Response) => {
|
|
6908
|
+
return this.processSetNowLinePinned(_response);
|
|
6909
|
+
});
|
|
6910
|
+
}
|
|
6911
|
+
|
|
6912
|
+
protected processSetNowLinePinned(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
|
|
6913
|
+
const status = response.status;
|
|
6914
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6915
|
+
if (status === 200) {
|
|
6916
|
+
return response.text().then((_responseText) => {
|
|
6917
|
+
let result200: any = null;
|
|
6918
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
|
|
6919
|
+
return result200;
|
|
6920
|
+
});
|
|
6921
|
+
} else if (status !== 200 && status !== 204) {
|
|
6922
|
+
return response.text().then((_responseText) => {
|
|
6923
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6924
|
+
});
|
|
6925
|
+
}
|
|
6926
|
+
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
6927
|
+
}
|
|
6928
|
+
|
|
6929
|
+
setNowLineImportant(resourceId: string, lineId: string, request: SetPulseJournalLineImportantRequest): Promise<PulseJournalNowLineMutationResultDto> {
|
|
6930
|
+
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/important";
|
|
6931
|
+
if (resourceId === undefined || resourceId === null)
|
|
6932
|
+
throw new globalThis.Error("The parameter 'resourceId' must be defined.");
|
|
6933
|
+
url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
|
|
6934
|
+
if (lineId === undefined || lineId === null)
|
|
6935
|
+
throw new globalThis.Error("The parameter 'lineId' must be defined.");
|
|
6936
|
+
url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
|
|
6937
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6938
|
+
|
|
6939
|
+
const content_ = JSON.stringify(request);
|
|
6940
|
+
|
|
6941
|
+
let options_: RequestInit = {
|
|
6942
|
+
body: content_,
|
|
6943
|
+
method: "POST",
|
|
6944
|
+
headers: {
|
|
6945
|
+
"Content-Type": "application/json",
|
|
6946
|
+
"Accept": "application/json"
|
|
6947
|
+
}
|
|
6948
|
+
};
|
|
6949
|
+
|
|
6950
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6951
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6952
|
+
}).then((_response: Response) => {
|
|
6953
|
+
return this.processSetNowLineImportant(_response);
|
|
6954
|
+
});
|
|
6955
|
+
}
|
|
6956
|
+
|
|
6957
|
+
protected processSetNowLineImportant(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
|
|
6958
|
+
const status = response.status;
|
|
6959
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6960
|
+
if (status === 200) {
|
|
6961
|
+
return response.text().then((_responseText) => {
|
|
6962
|
+
let result200: any = null;
|
|
6963
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
|
|
6964
|
+
return result200;
|
|
6965
|
+
});
|
|
6966
|
+
} else if (status !== 200 && status !== 204) {
|
|
6967
|
+
return response.text().then((_responseText) => {
|
|
6968
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6969
|
+
});
|
|
6970
|
+
}
|
|
6971
|
+
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
6972
|
+
}
|
|
6973
|
+
|
|
6974
|
+
addNowAttachment(resourceId: string, lineId: string, request: AddPulseJournalAttachmentRequest): Promise<PulseJournalNowLineMutationResultDto> {
|
|
6975
|
+
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/attachments";
|
|
6976
|
+
if (resourceId === undefined || resourceId === null)
|
|
6977
|
+
throw new globalThis.Error("The parameter 'resourceId' must be defined.");
|
|
6978
|
+
url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
|
|
6979
|
+
if (lineId === undefined || lineId === null)
|
|
6980
|
+
throw new globalThis.Error("The parameter 'lineId' must be defined.");
|
|
6981
|
+
url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
|
|
6982
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6983
|
+
|
|
6984
|
+
const content_ = JSON.stringify(request);
|
|
6985
|
+
|
|
6986
|
+
let options_: RequestInit = {
|
|
6987
|
+
body: content_,
|
|
6988
|
+
method: "POST",
|
|
6989
|
+
headers: {
|
|
6990
|
+
"Content-Type": "application/json",
|
|
6991
|
+
"Accept": "application/json"
|
|
6992
|
+
}
|
|
6993
|
+
};
|
|
6994
|
+
|
|
6995
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6996
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6997
|
+
}).then((_response: Response) => {
|
|
6998
|
+
return this.processAddNowAttachment(_response);
|
|
6999
|
+
});
|
|
7000
|
+
}
|
|
7001
|
+
|
|
7002
|
+
protected processAddNowAttachment(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
|
|
7003
|
+
const status = response.status;
|
|
7004
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7005
|
+
if (status === 200) {
|
|
7006
|
+
return response.text().then((_responseText) => {
|
|
7007
|
+
let result200: any = null;
|
|
7008
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
|
|
7009
|
+
return result200;
|
|
7010
|
+
});
|
|
7011
|
+
} else if (status !== 200 && status !== 204) {
|
|
7012
|
+
return response.text().then((_responseText) => {
|
|
7013
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7014
|
+
});
|
|
7015
|
+
}
|
|
7016
|
+
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
7017
|
+
}
|
|
7018
|
+
|
|
7019
|
+
removeNowAttachment(resourceId: string, lineId: string, attachmentId: string, eTag: string | null | undefined): Promise<PulseJournalNowLineMutationResultDto> {
|
|
7020
|
+
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/attachments/{attachmentId}?";
|
|
7021
|
+
if (resourceId === undefined || resourceId === null)
|
|
7022
|
+
throw new globalThis.Error("The parameter 'resourceId' must be defined.");
|
|
7023
|
+
url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
|
|
7024
|
+
if (lineId === undefined || lineId === null)
|
|
7025
|
+
throw new globalThis.Error("The parameter 'lineId' must be defined.");
|
|
7026
|
+
url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
|
|
7027
|
+
if (attachmentId === undefined || attachmentId === null)
|
|
7028
|
+
throw new globalThis.Error("The parameter 'attachmentId' must be defined.");
|
|
7029
|
+
url_ = url_.replace("{attachmentId}", encodeURIComponent("" + attachmentId));
|
|
7030
|
+
if (eTag !== undefined && eTag !== null)
|
|
7031
|
+
url_ += "eTag=" + encodeURIComponent("" + eTag) + "&";
|
|
7032
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7033
|
+
|
|
7034
|
+
let options_: RequestInit = {
|
|
7035
|
+
method: "DELETE",
|
|
7036
|
+
headers: {
|
|
7037
|
+
"Accept": "application/json"
|
|
7038
|
+
}
|
|
7039
|
+
};
|
|
7040
|
+
|
|
7041
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7042
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
7043
|
+
}).then((_response: Response) => {
|
|
7044
|
+
return this.processRemoveNowAttachment(_response);
|
|
7045
|
+
});
|
|
7046
|
+
}
|
|
7047
|
+
|
|
7048
|
+
protected processRemoveNowAttachment(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
|
|
7049
|
+
const status = response.status;
|
|
7050
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7051
|
+
if (status === 200) {
|
|
7052
|
+
return response.text().then((_responseText) => {
|
|
7053
|
+
let result200: any = null;
|
|
7054
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
|
|
7055
|
+
return result200;
|
|
7056
|
+
});
|
|
7057
|
+
} else if (status !== 200 && status !== 204) {
|
|
7058
|
+
return response.text().then((_responseText) => {
|
|
7059
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7060
|
+
});
|
|
7061
|
+
}
|
|
7062
|
+
return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
|
|
7063
|
+
}
|
|
7064
|
+
|
|
6963
7065
|
createAlwaysLine(resourceId: string, request: CreatePulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto> {
|
|
6964
7066
|
let url_ = this.baseUrl + "/pulsejournal/{resourceId}/always/lines";
|
|
6965
7067
|
if (resourceId === undefined || resourceId === null)
|
|
@@ -12645,19 +12747,19 @@ export interface IMachinesClient {
|
|
|
12645
12747
|
|
|
12646
12748
|
deleteMachineGroup(id: string): Promise<void>;
|
|
12647
12749
|
|
|
12648
|
-
listCurrentMachineStates(assetId: number | null | undefined
|
|
12750
|
+
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto>;
|
|
12649
12751
|
|
|
12650
|
-
listMachineStates(id:
|
|
12752
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
12651
12753
|
|
|
12652
|
-
listLastDowntimeMachineStates(id:
|
|
12754
|
+
listLastDowntimeMachineStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]>;
|
|
12653
12755
|
|
|
12654
|
-
getMachineStateWithDowntimePeriods(id:
|
|
12756
|
+
getMachineStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeMachineStateDto>;
|
|
12655
12757
|
|
|
12656
|
-
getMachineStatesSummary(id:
|
|
12758
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
12657
12759
|
|
|
12658
12760
|
listMachineErpData(): Promise<MachineErpDataListDto>;
|
|
12659
12761
|
|
|
12660
|
-
getMachineErpData(id:
|
|
12762
|
+
getMachineErpData(id: number): Promise<MachineErpDataDto>;
|
|
12661
12763
|
|
|
12662
12764
|
/**
|
|
12663
12765
|
* @param startTime (optional)
|
|
@@ -12680,7 +12782,7 @@ export interface IMachinesClient {
|
|
|
12680
12782
|
|
|
12681
12783
|
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
12682
12784
|
|
|
12683
|
-
deleteMachine(id:
|
|
12785
|
+
deleteMachine(id: number): Promise<void>;
|
|
12684
12786
|
}
|
|
12685
12787
|
|
|
12686
12788
|
export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
@@ -12880,12 +12982,10 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12880
12982
|
return Promise.resolve<void>(null as any);
|
|
12881
12983
|
}
|
|
12882
12984
|
|
|
12883
|
-
listCurrentMachineStates(assetId: number | null | undefined
|
|
12985
|
+
listCurrentMachineStates(assetId: number | null | undefined): Promise<MachineStateListDto> {
|
|
12884
12986
|
let url_ = this.baseUrl + "/machines/states/now?";
|
|
12885
12987
|
if (assetId !== undefined && assetId !== null)
|
|
12886
12988
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
12887
|
-
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
12888
|
-
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
12889
12989
|
url_ = url_.replace(/[?&]$/, "");
|
|
12890
12990
|
|
|
12891
12991
|
let options_: RequestInit = {
|
|
@@ -12919,7 +13019,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12919
13019
|
return Promise.resolve<MachineStateListDto>(null as any);
|
|
12920
13020
|
}
|
|
12921
13021
|
|
|
12922
|
-
listMachineStates(id:
|
|
13022
|
+
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
12923
13023
|
let url_ = this.baseUrl + "/machines/{id}/states?";
|
|
12924
13024
|
if (id === undefined || id === null)
|
|
12925
13025
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12961,7 +13061,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12961
13061
|
return Promise.resolve<MachineStateDatapoint[]>(null as any);
|
|
12962
13062
|
}
|
|
12963
13063
|
|
|
12964
|
-
listLastDowntimeMachineStates(id:
|
|
13064
|
+
listLastDowntimeMachineStates(id: number, endTime: Date | null | undefined, maxStates: number | null | undefined): Promise<DowntimeMachineStateDto[]> {
|
|
12965
13065
|
let url_ = this.baseUrl + "/machines/{id}/lastdowntimestates?";
|
|
12966
13066
|
if (id === undefined || id === null)
|
|
12967
13067
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13003,7 +13103,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13003
13103
|
return Promise.resolve<DowntimeMachineStateDto[]>(null as any);
|
|
13004
13104
|
}
|
|
13005
13105
|
|
|
13006
|
-
getMachineStateWithDowntimePeriods(id:
|
|
13106
|
+
getMachineStateWithDowntimePeriods(id: number, timestamp: number | undefined): Promise<DowntimeMachineStateDto> {
|
|
13007
13107
|
let url_ = this.baseUrl + "/machines/{id}/statewithdowntimeperiods?";
|
|
13008
13108
|
if (id === undefined || id === null)
|
|
13009
13109
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13045,7 +13145,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13045
13145
|
return Promise.resolve<DowntimeMachineStateDto>(null as any);
|
|
13046
13146
|
}
|
|
13047
13147
|
|
|
13048
|
-
getMachineStatesSummary(id:
|
|
13148
|
+
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto> {
|
|
13049
13149
|
let url_ = this.baseUrl + "/machines/{id}/states/summary?";
|
|
13050
13150
|
if (id === undefined || id === null)
|
|
13051
13151
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13122,7 +13222,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13122
13222
|
return Promise.resolve<MachineErpDataListDto>(null as any);
|
|
13123
13223
|
}
|
|
13124
13224
|
|
|
13125
|
-
getMachineErpData(id:
|
|
13225
|
+
getMachineErpData(id: number): Promise<MachineErpDataDto> {
|
|
13126
13226
|
let url_ = this.baseUrl + "/machines/{id}/erp";
|
|
13127
13227
|
if (id === undefined || id === null)
|
|
13128
13228
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13460,7 +13560,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13460
13560
|
return Promise.resolve<void>(null as any);
|
|
13461
13561
|
}
|
|
13462
13562
|
|
|
13463
|
-
deleteMachine(id:
|
|
13563
|
+
deleteMachine(id: number): Promise<void> {
|
|
13464
13564
|
let url_ = this.baseUrl + "/machines/{id}";
|
|
13465
13565
|
if (id === undefined || id === null)
|
|
13466
13566
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13498,11 +13598,11 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13498
13598
|
|
|
13499
13599
|
export interface IMachineDataClient {
|
|
13500
13600
|
|
|
13501
|
-
getLiveMachineData(assetId:
|
|
13601
|
+
getLiveMachineData(assetId: number, externalIds: string[] | undefined): Promise<LiveMachineDataDto>;
|
|
13502
13602
|
|
|
13503
|
-
getTimeseriesGraph(assetId:
|
|
13603
|
+
getTimeseriesGraph(assetId: number, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto>;
|
|
13504
13604
|
|
|
13505
|
-
exportTimeseriesGraph(assetId:
|
|
13605
|
+
exportTimeseriesGraph(assetId: number, request: ExportTimeseriesGraphRequest): Promise<DownloadDto>;
|
|
13506
13606
|
}
|
|
13507
13607
|
|
|
13508
13608
|
export class MachineDataClient extends AuthorizedApiBase implements IMachineDataClient {
|
|
@@ -13515,7 +13615,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13515
13615
|
this.baseUrl = baseUrl ?? "";
|
|
13516
13616
|
}
|
|
13517
13617
|
|
|
13518
|
-
getLiveMachineData(assetId:
|
|
13618
|
+
getLiveMachineData(assetId: number, externalIds: string[] | undefined): Promise<LiveMachineDataDto> {
|
|
13519
13619
|
let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
|
|
13520
13620
|
if (assetId === undefined || assetId === null)
|
|
13521
13621
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13557,7 +13657,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13557
13657
|
return Promise.resolve<LiveMachineDataDto>(null as any);
|
|
13558
13658
|
}
|
|
13559
13659
|
|
|
13560
|
-
getTimeseriesGraph(assetId:
|
|
13660
|
+
getTimeseriesGraph(assetId: number, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto> {
|
|
13561
13661
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph?";
|
|
13562
13662
|
if (assetId === undefined || assetId === null)
|
|
13563
13663
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -13607,7 +13707,7 @@ export class MachineDataClient extends AuthorizedApiBase implements IMachineData
|
|
|
13607
13707
|
return Promise.resolve<TimeseriesGraphDto>(null as any);
|
|
13608
13708
|
}
|
|
13609
13709
|
|
|
13610
|
-
exportTimeseriesGraph(assetId:
|
|
13710
|
+
exportTimeseriesGraph(assetId: number, request: ExportTimeseriesGraphRequest): Promise<DownloadDto> {
|
|
13611
13711
|
let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph/export-csv";
|
|
13612
13712
|
if (assetId === undefined || assetId === null)
|
|
13613
13713
|
throw new globalThis.Error("The parameter 'assetId' must be defined.");
|
|
@@ -18912,11 +19012,11 @@ export interface IAssetsClient {
|
|
|
18912
19012
|
|
|
18913
19013
|
searchAssets(name: string | null | undefined, description: string | null | undefined, limit: number | undefined): Promise<AssetDto[]>;
|
|
18914
19014
|
|
|
18915
|
-
getAssetById(id:
|
|
19015
|
+
getAssetById(id: number): Promise<AssetDto>;
|
|
18916
19016
|
|
|
18917
|
-
updateAsset(id:
|
|
19017
|
+
updateAsset(id: number, request: UpdateAssetRequest): Promise<AssetDto>;
|
|
18918
19018
|
|
|
18919
|
-
getAssetStructureById(id:
|
|
19019
|
+
getAssetStructureById(id: number): Promise<AssetStructureDto>;
|
|
18920
19020
|
|
|
18921
19021
|
/**
|
|
18922
19022
|
* @deprecated
|
|
@@ -19063,7 +19163,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19063
19163
|
return Promise.resolve<AssetDto[]>(null as any);
|
|
19064
19164
|
}
|
|
19065
19165
|
|
|
19066
|
-
getAssetById(id:
|
|
19166
|
+
getAssetById(id: number): Promise<AssetDto> {
|
|
19067
19167
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19068
19168
|
if (id === undefined || id === null)
|
|
19069
19169
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19101,7 +19201,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19101
19201
|
return Promise.resolve<AssetDto>(null as any);
|
|
19102
19202
|
}
|
|
19103
19203
|
|
|
19104
|
-
updateAsset(id:
|
|
19204
|
+
updateAsset(id: number, request: UpdateAssetRequest): Promise<AssetDto> {
|
|
19105
19205
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
19106
19206
|
if (id === undefined || id === null)
|
|
19107
19207
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -19143,7 +19243,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
|
|
|
19143
19243
|
return Promise.resolve<AssetDto>(null as any);
|
|
19144
19244
|
}
|
|
19145
19245
|
|
|
19146
|
-
getAssetStructureById(id:
|
|
19246
|
+
getAssetStructureById(id: number): Promise<AssetStructureDto> {
|
|
19147
19247
|
let url_ = this.baseUrl + "/assets/{id}/structure";
|
|
19148
19248
|
if (id === undefined || id === null)
|
|
19149
19249
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -27327,8 +27427,6 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
27327
27427
|
|
|
27328
27428
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
27329
27429
|
|
|
27330
|
-
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void>;
|
|
27331
|
-
|
|
27332
27430
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
27333
27431
|
|
|
27334
27432
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -27968,44 +28066,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
27968
28066
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
27969
28067
|
}
|
|
27970
28068
|
|
|
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
|
-
|
|
28009
28069
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
|
|
28010
28070
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
28011
28071
|
if (id === undefined || id === null)
|
|
@@ -29605,8 +29665,6 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29605
29665
|
|
|
29606
29666
|
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
29607
29667
|
|
|
29608
|
-
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]>;
|
|
29609
|
-
|
|
29610
29668
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29611
29669
|
|
|
29612
29670
|
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
@@ -29757,44 +29815,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29757
29815
|
return Promise.resolve<MeasurementFormSchemaCountsDto>(null as any);
|
|
29758
29816
|
}
|
|
29759
29817
|
|
|
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
|
-
|
|
29798
29818
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
29799
29819
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
29800
29820
|
if (id === undefined || id === null)
|
|
@@ -34093,7 +34113,6 @@ export interface UtilizationListDto {
|
|
|
34093
34113
|
|
|
34094
34114
|
export interface MachineUtilizationDto {
|
|
34095
34115
|
assetId: number;
|
|
34096
|
-
assetExternalId: string;
|
|
34097
34116
|
name: string;
|
|
34098
34117
|
description?: string | null;
|
|
34099
34118
|
state: string;
|
|
@@ -34141,7 +34160,6 @@ export interface PowerOnUtilizationDto extends UtilizationAveragesDto {
|
|
|
34141
34160
|
|
|
34142
34161
|
export interface UtilizationDetailsDto {
|
|
34143
34162
|
machineId: number;
|
|
34144
|
-
machineExternalId: string;
|
|
34145
34163
|
machineName: string;
|
|
34146
34164
|
machineStateText?: string | null;
|
|
34147
34165
|
machineState?: MachineState | null;
|
|
@@ -34273,7 +34291,6 @@ export interface ResourceUtilizationListDto {
|
|
|
34273
34291
|
|
|
34274
34292
|
export interface ResourceUtilizationDto {
|
|
34275
34293
|
assetId: number;
|
|
34276
|
-
assetExternalId: string;
|
|
34277
34294
|
name: string;
|
|
34278
34295
|
description?: string | null;
|
|
34279
34296
|
state: string;
|
|
@@ -34285,7 +34302,6 @@ export interface ResourceUtilizationDto {
|
|
|
34285
34302
|
|
|
34286
34303
|
export interface ResourceUtilizationDetailsDto {
|
|
34287
34304
|
resourceId: number;
|
|
34288
|
-
resourceExternalId: string;
|
|
34289
34305
|
resourceName: string;
|
|
34290
34306
|
machineStateText?: string | null;
|
|
34291
34307
|
machineState?: MachineState | null;
|
|
@@ -34383,15 +34399,6 @@ export interface EngageAppSettings {
|
|
|
34383
34399
|
|
|
34384
34400
|
export type ScheduleViewMode = "Flat" | "Grouped";
|
|
34385
34401
|
|
|
34386
|
-
export interface FavoriteRoutesAppSettings {
|
|
34387
|
-
favorites?: FavoriteRoute[];
|
|
34388
|
-
}
|
|
34389
|
-
|
|
34390
|
-
export interface FavoriteRoute {
|
|
34391
|
-
appKey: string;
|
|
34392
|
-
route: string;
|
|
34393
|
-
}
|
|
34394
|
-
|
|
34395
34402
|
export interface UploadInfoDto {
|
|
34396
34403
|
baseUrl?: string | null;
|
|
34397
34404
|
key?: string | null;
|
|
@@ -34413,7 +34420,6 @@ export interface DataHealthDto {
|
|
|
34413
34420
|
|
|
34414
34421
|
export interface MachineDataHealthDto {
|
|
34415
34422
|
assetId: number;
|
|
34416
|
-
assetExternalId: string;
|
|
34417
34423
|
name: string;
|
|
34418
34424
|
description?: string | null;
|
|
34419
34425
|
state?: string | null;
|
|
@@ -34433,7 +34439,6 @@ export interface PowerRegionDto {
|
|
|
34433
34439
|
|
|
34434
34440
|
export interface ConsumptionDto {
|
|
34435
34441
|
assetId: number;
|
|
34436
|
-
assetExternalId: string;
|
|
34437
34442
|
assetName: string;
|
|
34438
34443
|
kwh: number;
|
|
34439
34444
|
co2Equivalent?: number | null;
|
|
@@ -34443,11 +34448,9 @@ export interface ConsumptionDto {
|
|
|
34443
34448
|
|
|
34444
34449
|
export interface AssetConsumptionDto {
|
|
34445
34450
|
timeseriesId: number;
|
|
34446
|
-
timeseriesExternalId?: string | null;
|
|
34447
34451
|
timeseriesName: string;
|
|
34448
34452
|
kwh: number;
|
|
34449
34453
|
assetId: number;
|
|
34450
|
-
assetExternalId?: string | null;
|
|
34451
34454
|
assetName: string;
|
|
34452
34455
|
co2Equivalent?: number | null;
|
|
34453
34456
|
co2EquivalentNotAdjustedForLocalProduction?: number | null;
|
|
@@ -34455,7 +34458,6 @@ export interface AssetConsumptionDto {
|
|
|
34455
34458
|
|
|
34456
34459
|
export interface GetConsumption {
|
|
34457
34460
|
assetId?: number | null;
|
|
34458
|
-
assetExternalId?: string | null;
|
|
34459
34461
|
start?: Date | null;
|
|
34460
34462
|
end?: Date | null;
|
|
34461
34463
|
}
|
|
@@ -34467,10 +34469,8 @@ export interface PowerDto {
|
|
|
34467
34469
|
|
|
34468
34470
|
export interface AssetPowerDto {
|
|
34469
34471
|
timeseriesId?: number;
|
|
34470
|
-
timeseriesExternalId?: string | null;
|
|
34471
34472
|
timeseriesName?: string | null;
|
|
34472
34473
|
assetId?: number;
|
|
34473
|
-
assetExternalId?: string | null;
|
|
34474
34474
|
assetName?: string | null;
|
|
34475
34475
|
timeSeriesDataPoints?: NumericDataPointDto[] | null;
|
|
34476
34476
|
}
|
|
@@ -34484,8 +34484,7 @@ export interface NumericDataPointDto {
|
|
|
34484
34484
|
}
|
|
34485
34485
|
|
|
34486
34486
|
export interface GetPower {
|
|
34487
|
-
assetId
|
|
34488
|
-
assetExternalId?: string | null;
|
|
34487
|
+
assetId: number;
|
|
34489
34488
|
granularity?: string | null;
|
|
34490
34489
|
start?: Date | null;
|
|
34491
34490
|
end?: Date | null;
|
|
@@ -35018,7 +35017,6 @@ export interface MachineStateDto {
|
|
|
35018
35017
|
state: string;
|
|
35019
35018
|
machineState: MachineState;
|
|
35020
35019
|
startTime: Date;
|
|
35021
|
-
assetExternalId: string;
|
|
35022
35020
|
}
|
|
35023
35021
|
|
|
35024
35022
|
export interface DowntimeMachineStateDto {
|
|
@@ -35038,7 +35036,6 @@ export interface SingleResourceErpDataListDto {
|
|
|
35038
35036
|
activeOrders: ResourceErpDataDto[];
|
|
35039
35037
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
35040
35038
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
35041
|
-
assetExternalId: string;
|
|
35042
35039
|
}
|
|
35043
35040
|
|
|
35044
35041
|
export interface ResourceErpDataDto {
|
|
@@ -35285,7 +35282,7 @@ export interface PulseJournalBoardsDto {
|
|
|
35285
35282
|
}
|
|
35286
35283
|
|
|
35287
35284
|
export interface PulseJournalNowBoardDto {
|
|
35288
|
-
lines:
|
|
35285
|
+
lines: PulseJournalNowLineDto[];
|
|
35289
35286
|
eTag?: string | null;
|
|
35290
35287
|
}
|
|
35291
35288
|
|
|
@@ -35299,14 +35296,10 @@ export interface PulseJournalLineDto {
|
|
|
35299
35296
|
updatedBy?: string | null;
|
|
35300
35297
|
}
|
|
35301
35298
|
|
|
35302
|
-
export interface
|
|
35303
|
-
|
|
35304
|
-
|
|
35305
|
-
}
|
|
35306
|
-
|
|
35307
|
-
export interface PulseJournalAlwaysLineDto extends PulseJournalLineDto {
|
|
35299
|
+
export interface PulseJournalNowLineDto extends PulseJournalLineDto {
|
|
35300
|
+
isPinned: boolean;
|
|
35301
|
+
isImportant: boolean;
|
|
35308
35302
|
attachments: PulseJournalAttachmentDto[];
|
|
35309
|
-
links: PulseJournalLinkDto[];
|
|
35310
35303
|
}
|
|
35311
35304
|
|
|
35312
35305
|
export interface PulseJournalAttachmentDto {
|
|
@@ -35317,6 +35310,16 @@ export interface PulseJournalAttachmentDto {
|
|
|
35317
35310
|
createdBy?: string | null;
|
|
35318
35311
|
}
|
|
35319
35312
|
|
|
35313
|
+
export interface PulseJournalAlwaysBoardDto {
|
|
35314
|
+
lines: PulseJournalAlwaysLineDto[];
|
|
35315
|
+
eTag?: string | null;
|
|
35316
|
+
}
|
|
35317
|
+
|
|
35318
|
+
export interface PulseJournalAlwaysLineDto extends PulseJournalLineDto {
|
|
35319
|
+
attachments: PulseJournalAttachmentDto[];
|
|
35320
|
+
links: PulseJournalLinkDto[];
|
|
35321
|
+
}
|
|
35322
|
+
|
|
35320
35323
|
export interface PulseJournalLinkDto {
|
|
35321
35324
|
id: string;
|
|
35322
35325
|
url: string;
|
|
@@ -35343,14 +35346,14 @@ export interface PulseJournalEventDto {
|
|
|
35343
35346
|
|
|
35344
35347
|
export type PulseJournalBoardTypeDto = "Now" | "Always" | "Unknown";
|
|
35345
35348
|
|
|
35346
|
-
export type PulseJournalEventTypeDto = "LineAdded" | "LineEdited" | "LineMoved" | "LineRemoved" | "FixedInfoAdded" | "FixedInfoEdited" | "FixedInfoRemoved" | "AttachmentAdded" | "AttachmentRemoved" | "LinkAdded" | "LinkRemoved" | "Unknown";
|
|
35349
|
+
export type PulseJournalEventTypeDto = "LineAdded" | "LineEdited" | "LineMoved" | "LineRemoved" | "FixedInfoAdded" | "FixedInfoEdited" | "FixedInfoRemoved" | "AttachmentAdded" | "AttachmentRemoved" | "LinkAdded" | "LinkRemoved" | "LinePinned" | "LineUnpinned" | "LineMarkedImportant" | "LineUnmarkedImportant" | "Unknown";
|
|
35347
35350
|
|
|
35348
35351
|
export interface UndoPulseJournalActionRequest {
|
|
35349
35352
|
eventId: string;
|
|
35350
35353
|
}
|
|
35351
35354
|
|
|
35352
35355
|
export interface PulseJournalNowLineMutationResultDto {
|
|
35353
|
-
line?:
|
|
35356
|
+
line?: PulseJournalNowLineDto | null;
|
|
35354
35357
|
boardETag: string;
|
|
35355
35358
|
eventId?: string | null;
|
|
35356
35359
|
}
|
|
@@ -35371,10 +35374,14 @@ export interface ReorderPulseJournalLineRequest {
|
|
|
35371
35374
|
eTag?: string | null;
|
|
35372
35375
|
}
|
|
35373
35376
|
|
|
35374
|
-
export interface
|
|
35375
|
-
|
|
35376
|
-
|
|
35377
|
-
|
|
35377
|
+
export interface SetPulseJournalLinePinnedRequest {
|
|
35378
|
+
isPinned: boolean;
|
|
35379
|
+
eTag?: string | null;
|
|
35380
|
+
}
|
|
35381
|
+
|
|
35382
|
+
export interface SetPulseJournalLineImportantRequest {
|
|
35383
|
+
isImportant: boolean;
|
|
35384
|
+
eTag?: string | null;
|
|
35378
35385
|
}
|
|
35379
35386
|
|
|
35380
35387
|
export interface AddPulseJournalAttachmentRequest {
|
|
@@ -35383,6 +35390,12 @@ export interface AddPulseJournalAttachmentRequest {
|
|
|
35383
35390
|
eTag?: string | null;
|
|
35384
35391
|
}
|
|
35385
35392
|
|
|
35393
|
+
export interface PulseJournalAlwaysLineMutationResultDto {
|
|
35394
|
+
line?: PulseJournalAlwaysLineDto | null;
|
|
35395
|
+
boardETag: string;
|
|
35396
|
+
eventId?: string | null;
|
|
35397
|
+
}
|
|
35398
|
+
|
|
35386
35399
|
export interface AddPulseJournalLinkRequest {
|
|
35387
35400
|
url: string;
|
|
35388
35401
|
eTag?: string | null;
|
|
@@ -35415,7 +35428,6 @@ export interface ResourceGroupUtilizationV2Dto {
|
|
|
35415
35428
|
|
|
35416
35429
|
export interface ResourceUtilizationV3Dto {
|
|
35417
35430
|
id?: number;
|
|
35418
|
-
externalId: string;
|
|
35419
35431
|
name: string;
|
|
35420
35432
|
description?: string | null;
|
|
35421
35433
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -36608,7 +36620,6 @@ export interface SingleMachineErpDataListDto {
|
|
|
36608
36620
|
activeOrders: MachineErpDataDto[];
|
|
36609
36621
|
lastActiveEvent?: WorkorderOperationEventDto | null;
|
|
36610
36622
|
downtimePeriodReason?: DowntimePeriodReasonDto | null;
|
|
36611
|
-
assetExternalId: string;
|
|
36612
36623
|
}
|
|
36613
36624
|
|
|
36614
36625
|
export interface MachineErpDataDto {
|
|
@@ -36655,7 +36666,6 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
36655
36666
|
export interface LiveMachineDataDto {
|
|
36656
36667
|
assetId?: number;
|
|
36657
36668
|
dataPoints?: LiveMachineDataPointDto[];
|
|
36658
|
-
assetExternalId: string;
|
|
36659
36669
|
}
|
|
36660
36670
|
|
|
36661
36671
|
export interface LiveMachineDataPointDto {
|
|
@@ -36668,7 +36678,6 @@ export interface LiveMachineDataPointDto {
|
|
|
36668
36678
|
export interface TimeseriesGraphDto {
|
|
36669
36679
|
assetId?: number;
|
|
36670
36680
|
series?: TimeseriesGraphSeriesDto[];
|
|
36671
|
-
assetExternalId: string;
|
|
36672
36681
|
}
|
|
36673
36682
|
|
|
36674
36683
|
export interface TimeseriesGraphSeriesDto {
|
|
@@ -37821,13 +37830,11 @@ export interface AssetDto {
|
|
|
37821
37830
|
metadata?: { [key: string]: string; } | null;
|
|
37822
37831
|
aggregates?: any | null;
|
|
37823
37832
|
parentId?: number | null;
|
|
37824
|
-
parentExternalId?: string | null;
|
|
37825
37833
|
source?: string | null;
|
|
37826
37834
|
id?: number | null;
|
|
37827
37835
|
createdTime?: number | null;
|
|
37828
37836
|
lastUpdatedTime?: number | null;
|
|
37829
37837
|
rootId?: number | null;
|
|
37830
|
-
rootExternalId?: string | null;
|
|
37831
37838
|
}
|
|
37832
37839
|
|
|
37833
37840
|
export interface AssetStructureDto {
|
|
@@ -37847,8 +37854,7 @@ export interface AssetSimpleStructureDto {
|
|
|
37847
37854
|
}
|
|
37848
37855
|
|
|
37849
37856
|
export interface CreateAsset {
|
|
37850
|
-
parentId
|
|
37851
|
-
parentExternalId?: string | null;
|
|
37857
|
+
parentId: number;
|
|
37852
37858
|
externalId: string;
|
|
37853
37859
|
name: string;
|
|
37854
37860
|
description: string;
|
|
@@ -37857,8 +37863,7 @@ export interface CreateAsset {
|
|
|
37857
37863
|
}
|
|
37858
37864
|
|
|
37859
37865
|
export interface UpdateAssetRequest {
|
|
37860
|
-
parentId
|
|
37861
|
-
parentExternalId?: string | null;
|
|
37866
|
+
parentId: number;
|
|
37862
37867
|
name: string;
|
|
37863
37868
|
description: string;
|
|
37864
37869
|
metadata: { [key: string]: string; };
|
|
@@ -40944,8 +40949,6 @@ export interface UploadRequest {
|
|
|
40944
40949
|
isMarkedDrawing?: boolean | null;
|
|
40945
40950
|
}
|
|
40946
40951
|
|
|
40947
|
-
export type SchemaFileSlot = "Drawing" | "ProjectFile" | "MarkedDrawing" | "SourceFile";
|
|
40948
|
-
|
|
40949
40952
|
export interface MeasurementFormImportStatusDto {
|
|
40950
40953
|
progress: number;
|
|
40951
40954
|
totalElements: number;
|
|
@@ -41284,14 +41287,6 @@ export interface CountMeasurementFormSchemasRequest {
|
|
|
41284
41287
|
schemaCreator?: boolean | null;
|
|
41285
41288
|
}
|
|
41286
41289
|
|
|
41287
|
-
export interface MeasurementFormSchemaFileDto {
|
|
41288
|
-
slot: SchemaFileSlot;
|
|
41289
|
-
title: string;
|
|
41290
|
-
url: string;
|
|
41291
|
-
size?: number | null;
|
|
41292
|
-
lastModified?: Date | null;
|
|
41293
|
-
}
|
|
41294
|
-
|
|
41295
41290
|
export interface MeasurementFormSchemaVersionDto {
|
|
41296
41291
|
id: string;
|
|
41297
41292
|
versionId: number;
|