@robotbas/robotcloud-client 0.0.2
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/README.md +30 -0
- package/dist/RobotCloudClient.d-L7OLs5ZS.d.mts +180 -0
- package/dist/RobotCloudClient.d-L7OLs5ZS.d.ts +180 -0
- package/dist/helpers/index.d.mts +9 -0
- package/dist/helpers/index.d.ts +9 -0
- package/dist/helpers/index.js +110 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/index.mjs +73 -0
- package/dist/helpers/index.mjs.map +1 -0
- package/dist/index.d.mts +272 -0
- package/dist/index.d.ts +272 -0
- package/dist/index.js +560 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +522 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +49 -0
- package/types/ProjectClassifer.d.ts +5 -0
- package/types/ProjectTag.d.ts +14 -0
- package/types/RobotCloudClient.d.ts +179 -0
- package/types/ServiceInstance.d.ts +12 -0
- package/types/ServiceInstanceRead.d.ts +5 -0
- package/types/Token.d.ts +12 -0
- package/types/helpers.d.ts +5 -0
- package/types/services.d.ts +108 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
import { R as RobotCloudNamedItem, S as SubsystemRequestParams, a as RobotCloudServiceType, L as LocationServiceInstancesRequestParams, b as RobotCloudUserDetails, P as ProjectRequestParams, c as RobotCloudProject, d as ProjectDetailsRequestParams, e as RobotCloudProjectDetails, f as ProjectLocationsRequestParams, g as ServiceInstancesRequestParams, h as ProjectTagRequestParams, i as RobotCloudDeviceDetails, j as RobotCloudServiceTypeDetails, k as RoomGrouping1DataEventValue, l as ServiceInstanceDataRequestParams, m as RoomConsumes1DataEventValue, n as RoomGrouping1InstanceDeviceConfig, o as RoomClime1AlertEventValue, p as RoomClime1EventValue, q as RoomClimeInstanceConfigParams, r as RoomConsumes1AlertEventValue } from './RobotCloudClient.d-L7OLs5ZS.mjs';
|
|
4
|
+
export { A as AppAccessLevel, F as FancoilSpeedState, u as PaginableRequestParams, t as ProjectAccessLevel, s as RegimState, v as ServiceInstanceDeviceConfig, T as TemperatureUnit } from './RobotCloudClient.d-L7OLs5ZS.mjs';
|
|
5
|
+
|
|
6
|
+
declare const robotcloudApi: axios.AxiosInstance;
|
|
7
|
+
declare const setCheckTokenFunction: (fun: () => Promise<string>) => void;
|
|
8
|
+
|
|
9
|
+
interface RobotCloudServiceInstance extends RobotCloudNamedItem {
|
|
10
|
+
service: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface ServiceInstanceDetails extends RobotCloudServiceInstance {
|
|
14
|
+
description: string;
|
|
15
|
+
tags: string[];
|
|
16
|
+
subsystems: string[];
|
|
17
|
+
classifier: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ClassifierDetails {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface ProjectTagTreeNode {
|
|
27
|
+
tag: ProjectTag;
|
|
28
|
+
children: ProjectTagTreeNode[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface ProjectTagsTree {
|
|
32
|
+
root: ProjectTagTreeNode[]
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface ProjectTag {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
parent_id: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface ServiceInstanceRead<T> {
|
|
42
|
+
instance: string;
|
|
43
|
+
time_mark: string;
|
|
44
|
+
value: T;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
type MeasurementStatus = "GOOD"|"NOT_MEASURED"|"INVALID_VALUE"|"DEVICE_ERROR";
|
|
48
|
+
|
|
49
|
+
interface ServiceDataMeasurement<T> extends ServiceInstanceRead<T> {
|
|
50
|
+
status: MeasurementStatus;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface ServiceDataRequestParams extends SubsystemRequestParams {
|
|
54
|
+
tag_id?: string | string[];
|
|
55
|
+
}
|
|
56
|
+
interface ServiceInstanceHistoricAggregateParams {
|
|
57
|
+
offset?: string;
|
|
58
|
+
property?: any[];
|
|
59
|
+
maxSize?: number;
|
|
60
|
+
}
|
|
61
|
+
interface ServiceInstanceHistoricParams {
|
|
62
|
+
status?: MeasurementStatus;
|
|
63
|
+
property?: any[];
|
|
64
|
+
maxSize?: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface AirQuality1DataEventValue {
|
|
68
|
+
co2: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface AirQuality1AlertEventValue {
|
|
72
|
+
high_co2: boolean;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
interface RoomGuestStatus1AlertEventValue {
|
|
77
|
+
door_open_overtime: boolean;
|
|
78
|
+
window_open_overtime: boolean;
|
|
79
|
+
medical_alarm: boolean;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface RoomGuestStatus1EventValue {
|
|
83
|
+
sold: boolean;
|
|
84
|
+
occupied: boolean;
|
|
85
|
+
do_not_disturb: boolean;
|
|
86
|
+
make_up_room: boolean;
|
|
87
|
+
tray_status: "IDLE"|'READY'|'FINISH';
|
|
88
|
+
remote_occupation: boolean;
|
|
89
|
+
door_open: boolean;
|
|
90
|
+
window_open: boolean;
|
|
91
|
+
medical_alarm: boolean; // TODO: ???
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface RoomGuestStatusInstanceConfigParams {
|
|
95
|
+
sold?: boolean;
|
|
96
|
+
do_not_disturb?: boolean;
|
|
97
|
+
make_up_room?: boolean;
|
|
98
|
+
remote_occupation?: boolean;
|
|
99
|
+
door_open_time_limit?: number;
|
|
100
|
+
window_open_time_limit?: number;
|
|
101
|
+
medical_alarm?: boolean;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
////
|
|
106
|
+
// Generic interface types
|
|
107
|
+
////
|
|
108
|
+
|
|
109
|
+
type HistoricAggregateFunction = "count"|"increase"|"mean"|"first"|"last"|"max"|"min"|"amax"|"amin"|"pmax"|"pmin"|"nmax"|"nmin";
|
|
110
|
+
|
|
111
|
+
interface ServiceTypeClient<T_ALERTS, T_DATA, T_CONFIG> {
|
|
112
|
+
getAlerts(
|
|
113
|
+
prjId: string,
|
|
114
|
+
params?: ServiceDataRequestParams
|
|
115
|
+
): Promise<AxiosResponse<ServiceDataMeasurement<T_ALERTS>[]>>;
|
|
116
|
+
|
|
117
|
+
getData (
|
|
118
|
+
prjId: string,
|
|
119
|
+
params?: ServiceDataRequestParams
|
|
120
|
+
): Promise<AxiosResponse<ServiceDataMeasurement<T_DATA>[]>>;
|
|
121
|
+
|
|
122
|
+
getInstanceConfiguration (
|
|
123
|
+
prjId: string,
|
|
124
|
+
instanceId: string
|
|
125
|
+
): Promise<AxiosResponse<T_CONFIG>>;
|
|
126
|
+
|
|
127
|
+
putInstanceConfiguration (
|
|
128
|
+
prjId: string,
|
|
129
|
+
instanceId: string,
|
|
130
|
+
data: T_CONFIG
|
|
131
|
+
): Promise<AxiosResponse<T_CONFIG>>;
|
|
132
|
+
|
|
133
|
+
getInstanceHistoric (
|
|
134
|
+
prjId: string,
|
|
135
|
+
instanceId: string,
|
|
136
|
+
startTime: Date,
|
|
137
|
+
endTime: Date,
|
|
138
|
+
params: ServiceInstanceHistoricParams
|
|
139
|
+
): Promise<AxiosResponse<ServiceDataMeasurement<T_DATA>[]>>;
|
|
140
|
+
|
|
141
|
+
getInstanceHistoricAggregate(
|
|
142
|
+
prjId: string,
|
|
143
|
+
instanceId: string,
|
|
144
|
+
startTime: Date,
|
|
145
|
+
endTime: Date,
|
|
146
|
+
aggFunction: HistoricAggregateFunction,
|
|
147
|
+
periode: string,
|
|
148
|
+
params: ServiceInstanceHistoricAggregateParams
|
|
149
|
+
): Promise<AxiosResponse<ServiceDataMeasurement<T_DATA>[]>>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
interface RobotCloudLocationDetails {
|
|
153
|
+
id: string;
|
|
154
|
+
name: string;
|
|
155
|
+
description: string;
|
|
156
|
+
project: string;
|
|
157
|
+
tags: string[];
|
|
158
|
+
}
|
|
159
|
+
declare const getLocationServiceInstances: (prjId: string, locId: string, service_type: RobotCloudServiceType, params?: LocationServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
|
|
160
|
+
declare const getUser: (username: string) => Promise<AxiosResponse<RobotCloudUserDetails>>;
|
|
161
|
+
declare const getProjects: (params?: ProjectRequestParams) => Promise<AxiosResponse<RobotCloudProject[]>>;
|
|
162
|
+
declare const getProjectDetails: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudProjectDetails>>;
|
|
163
|
+
declare const getProjectSubsystem: (prjId: string, subsysId: string) => Promise<AxiosResponse<RobotCloudNamedItem, any>>;
|
|
164
|
+
declare const getLocations: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudNamedItem[]>>;
|
|
165
|
+
declare const getLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationDetails>>;
|
|
166
|
+
declare const getServiceInstances: (prjId: string, service_type: string, params?: ServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
|
|
167
|
+
declare const getServiceInstance: (prjId: string, service_type: string, service_id: string) => Promise<AxiosResponse<ServiceInstanceDetails, any>>;
|
|
168
|
+
declare const getClassifier: (classifierId: string) => Promise<AxiosResponse<ClassifierDetails, any>>;
|
|
169
|
+
declare const getTags: (prjId: string, params?: ProjectTagRequestParams) => Promise<AxiosResponse<ProjectTag[]>>;
|
|
170
|
+
declare const getTagsTree: (prjId: string, maxDepth?: number, params?: ProjectTagRequestParams) => Promise<ProjectTagsTree>;
|
|
171
|
+
declare const getTagsChildren: (prjId: string, level?: number, parent_id?: string, params?: ProjectTagRequestParams, maxDepth?: number) => Promise<ProjectTagTreeNode[]>;
|
|
172
|
+
declare const getDeviceDetails: (deviceId: string) => Promise<AxiosResponse<RobotCloudDeviceDetails>>;
|
|
173
|
+
declare const getProjectServiceTypes: (prjId: string, params?: SubsystemRequestParams) => Promise<AxiosResponse<RobotCloudServiceTypeDetails[]>>;
|
|
174
|
+
declare const getRoomGrouping1ServiceData: (prjId: string, params?: ServiceDataRequestParams) => Promise<AxiosResponse<ServiceDataMeasurement<RoomGrouping1DataEventValue>[]>>;
|
|
175
|
+
declare const getRoomConsumesInstanceServiceData: (prjId: string, instanceId: string, params?: ServiceInstanceDataRequestParams) => Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1DataEventValue>>>;
|
|
176
|
+
declare const getRoomGrouping1InstanceDeviceConfig: (prjId: string, instanceId: string) => Promise<AxiosResponse<RoomGrouping1InstanceDeviceConfig>>;
|
|
177
|
+
|
|
178
|
+
declare const robotCloudClient_getClassifier: typeof getClassifier;
|
|
179
|
+
declare const robotCloudClient_getDeviceDetails: typeof getDeviceDetails;
|
|
180
|
+
declare const robotCloudClient_getLocation: typeof getLocation;
|
|
181
|
+
declare const robotCloudClient_getLocationServiceInstances: typeof getLocationServiceInstances;
|
|
182
|
+
declare const robotCloudClient_getLocations: typeof getLocations;
|
|
183
|
+
declare const robotCloudClient_getProjectDetails: typeof getProjectDetails;
|
|
184
|
+
declare const robotCloudClient_getProjectServiceTypes: typeof getProjectServiceTypes;
|
|
185
|
+
declare const robotCloudClient_getProjectSubsystem: typeof getProjectSubsystem;
|
|
186
|
+
declare const robotCloudClient_getProjects: typeof getProjects;
|
|
187
|
+
declare const robotCloudClient_getRoomConsumesInstanceServiceData: typeof getRoomConsumesInstanceServiceData;
|
|
188
|
+
declare const robotCloudClient_getRoomGrouping1InstanceDeviceConfig: typeof getRoomGrouping1InstanceDeviceConfig;
|
|
189
|
+
declare const robotCloudClient_getRoomGrouping1ServiceData: typeof getRoomGrouping1ServiceData;
|
|
190
|
+
declare const robotCloudClient_getServiceInstance: typeof getServiceInstance;
|
|
191
|
+
declare const robotCloudClient_getServiceInstances: typeof getServiceInstances;
|
|
192
|
+
declare const robotCloudClient_getTags: typeof getTags;
|
|
193
|
+
declare const robotCloudClient_getTagsChildren: typeof getTagsChildren;
|
|
194
|
+
declare const robotCloudClient_getTagsTree: typeof getTagsTree;
|
|
195
|
+
declare const robotCloudClient_getUser: typeof getUser;
|
|
196
|
+
declare namespace robotCloudClient {
|
|
197
|
+
export { robotCloudClient_getClassifier as getClassifier, robotCloudClient_getDeviceDetails as getDeviceDetails, robotCloudClient_getLocation as getLocation, robotCloudClient_getLocationServiceInstances as getLocationServiceInstances, robotCloudClient_getLocations as getLocations, robotCloudClient_getProjectDetails as getProjectDetails, robotCloudClient_getProjectServiceTypes as getProjectServiceTypes, robotCloudClient_getProjectSubsystem as getProjectSubsystem, robotCloudClient_getProjects as getProjects, robotCloudClient_getRoomConsumesInstanceServiceData as getRoomConsumesInstanceServiceData, robotCloudClient_getRoomGrouping1InstanceDeviceConfig as getRoomGrouping1InstanceDeviceConfig, robotCloudClient_getRoomGrouping1ServiceData as getRoomGrouping1ServiceData, robotCloudClient_getServiceInstance as getServiceInstance, robotCloudClient_getServiceInstances as getServiceInstances, robotCloudClient_getTags as getTags, robotCloudClient_getTagsChildren as getTagsChildren, robotCloudClient_getTagsTree as getTagsTree, robotCloudClient_getUser as getUser };
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
interface CheckTokenResponse {
|
|
201
|
+
renewed: boolean;
|
|
202
|
+
invalid: boolean;
|
|
203
|
+
access: string;
|
|
204
|
+
renew: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
interface RobotCloudJWTPayload {
|
|
208
|
+
exp: number;
|
|
209
|
+
sub: string; // username
|
|
210
|
+
org: string; // organization
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface RobotCloudNewTokenResponse {
|
|
214
|
+
access: string;
|
|
215
|
+
renew: string;
|
|
216
|
+
}
|
|
217
|
+
declare const decodeToken: (token: string) => RobotCloudJWTPayload | undefined;
|
|
218
|
+
declare const isTokenExpired: (payload: RobotCloudJWTPayload) => boolean;
|
|
219
|
+
declare const renewToken: (renew_token: string) => Promise<CheckTokenResponse>;
|
|
220
|
+
declare const validateToken: (access_token: string) => Promise<boolean>;
|
|
221
|
+
|
|
222
|
+
type robotCloudToken_RobotCloudNewTokenResponse = RobotCloudNewTokenResponse;
|
|
223
|
+
declare const robotCloudToken_decodeToken: typeof decodeToken;
|
|
224
|
+
declare const robotCloudToken_isTokenExpired: typeof isTokenExpired;
|
|
225
|
+
declare const robotCloudToken_renewToken: typeof renewToken;
|
|
226
|
+
declare const robotCloudToken_validateToken: typeof validateToken;
|
|
227
|
+
declare namespace robotCloudToken {
|
|
228
|
+
export { type robotCloudToken_RobotCloudNewTokenResponse as RobotCloudNewTokenResponse, robotCloudToken_decodeToken as decodeToken, robotCloudToken_isTokenExpired as isTokenExpired, robotCloudToken_renewToken as renewToken, robotCloudToken_validateToken as validateToken };
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare class RoomClimeClient implements ServiceTypeClient<RoomClime1AlertEventValue, RoomClime1EventValue, RoomClimeInstanceConfigParams> {
|
|
232
|
+
getAlerts(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomClime1AlertEventValue>[]>>;
|
|
233
|
+
getData(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomClime1EventValue>[]>>;
|
|
234
|
+
getInstanceConfiguration(prjId: string, instanceId: string): Promise<AxiosResponse<RoomClimeInstanceConfigParams>>;
|
|
235
|
+
putInstanceConfiguration(prjId: string, instanceId: string, data: RoomClimeInstanceConfigParams): Promise<AxiosResponse<RoomClimeInstanceConfigParams>>;
|
|
236
|
+
getInstanceHistoric(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomClime1EventValue>[]>>;
|
|
237
|
+
getInstanceHistoricAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomClime1EventValue>[]>>;
|
|
238
|
+
}
|
|
239
|
+
declare const roomClimeClient: RoomClimeClient;
|
|
240
|
+
|
|
241
|
+
declare class RoomGuestStatusClient implements ServiceTypeClient<RoomGuestStatus1AlertEventValue, RoomGuestStatus1EventValue, RoomGuestStatusInstanceConfigParams> {
|
|
242
|
+
getAlerts(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGuestStatus1AlertEventValue>[]>>;
|
|
243
|
+
getData(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGuestStatus1EventValue>[]>>;
|
|
244
|
+
getInstanceConfiguration(prjId: string, instanceId: string): Promise<AxiosResponse<RoomGuestStatusInstanceConfigParams>>;
|
|
245
|
+
putInstanceConfiguration(prjId: string, instanceId: string, data: RoomGuestStatusInstanceConfigParams): Promise<AxiosResponse<RoomGuestStatusInstanceConfigParams>>;
|
|
246
|
+
getInstanceHistoric(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGuestStatus1EventValue>[]>>;
|
|
247
|
+
getInstanceHistoricAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGuestStatus1EventValue>[]>>;
|
|
248
|
+
}
|
|
249
|
+
declare const roomGuestStatusClient: RoomGuestStatusClient;
|
|
250
|
+
|
|
251
|
+
declare class AirQualityClient implements ServiceTypeClient<AirQuality1AlertEventValue, AirQuality1DataEventValue, any> {
|
|
252
|
+
getAlerts(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<AirQuality1AlertEventValue>[]>>;
|
|
253
|
+
getData(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<AirQuality1DataEventValue>[]>>;
|
|
254
|
+
getInstanceConfiguration<T>(prjId: string, instanceId: string): Promise<AxiosResponse<T>>;
|
|
255
|
+
putInstanceConfiguration<T>(prjId: string, instanceId: string, data: T): Promise<AxiosResponse<T>>;
|
|
256
|
+
getInstanceHistoric(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<AirQuality1DataEventValue>[]>>;
|
|
257
|
+
getInstanceHistoricAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<AirQuality1DataEventValue>[]>>;
|
|
258
|
+
}
|
|
259
|
+
declare const airQualityClient: AirQualityClient;
|
|
260
|
+
|
|
261
|
+
declare class RoomConsumesClient implements ServiceTypeClient<RoomConsumes1AlertEventValue, RoomConsumes1DataEventValue, any> {
|
|
262
|
+
getAlerts(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1AlertEventValue>[]>>;
|
|
263
|
+
getData(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1DataEventValue>[]>>;
|
|
264
|
+
getInstanceData: (prjId: string, instanceId: string, params?: ServiceInstanceDataRequestParams) => Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1DataEventValue>>>;
|
|
265
|
+
getInstanceConfiguration<T>(prjId: string, instanceId: string): Promise<AxiosResponse<T>>;
|
|
266
|
+
putInstanceConfiguration<T>(prjId: string, instanceId: string, data: T): Promise<AxiosResponse<T>>;
|
|
267
|
+
getInstanceHistoric(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1DataEventValue>[]>>;
|
|
268
|
+
getInstanceHistoricAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1DataEventValue>[]>>;
|
|
269
|
+
}
|
|
270
|
+
declare const roomConsumesClient: RoomConsumesClient;
|
|
271
|
+
|
|
272
|
+
export { type AirQuality1AlertEventValue, type AirQuality1DataEventValue, type CheckTokenResponse, type ClassifierDetails, type HistoricAggregateFunction, LocationServiceInstancesRequestParams, type MeasurementStatus, ProjectDetailsRequestParams, ProjectLocationsRequestParams, ProjectRequestParams, type ProjectTag, ProjectTagRequestParams, type ProjectTagTreeNode, type ProjectTagsTree, RobotCloudDeviceDetails, type RobotCloudJWTPayload, RobotCloudNamedItem, RobotCloudProject, RobotCloudProjectDetails, type RobotCloudServiceInstance, RobotCloudServiceType, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RoomClime1AlertEventValue, RoomClime1EventValue, RoomClimeInstanceConfigParams, RoomConsumes1AlertEventValue, RoomConsumes1DataEventValue, RoomGrouping1DataEventValue, RoomGrouping1InstanceDeviceConfig, type RoomGuestStatus1AlertEventValue, type RoomGuestStatus1EventValue, type RoomGuestStatusInstanceConfigParams, type ServiceDataMeasurement, type ServiceDataRequestParams, ServiceInstanceDataRequestParams, type ServiceInstanceDetails, type ServiceInstanceHistoricAggregateParams, type ServiceInstanceHistoricParams, type ServiceInstanceRead, ServiceInstancesRequestParams, type ServiceTypeClient, SubsystemRequestParams, airQualityClient, robotCloudToken, robotcloudApi, robotCloudClient as robotcloudClient, roomClimeClient, roomConsumesClient, roomGuestStatusClient, setCheckTokenFunction };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
import { R as RobotCloudNamedItem, S as SubsystemRequestParams, a as RobotCloudServiceType, L as LocationServiceInstancesRequestParams, b as RobotCloudUserDetails, P as ProjectRequestParams, c as RobotCloudProject, d as ProjectDetailsRequestParams, e as RobotCloudProjectDetails, f as ProjectLocationsRequestParams, g as ServiceInstancesRequestParams, h as ProjectTagRequestParams, i as RobotCloudDeviceDetails, j as RobotCloudServiceTypeDetails, k as RoomGrouping1DataEventValue, l as ServiceInstanceDataRequestParams, m as RoomConsumes1DataEventValue, n as RoomGrouping1InstanceDeviceConfig, o as RoomClime1AlertEventValue, p as RoomClime1EventValue, q as RoomClimeInstanceConfigParams, r as RoomConsumes1AlertEventValue } from './RobotCloudClient.d-L7OLs5ZS.js';
|
|
4
|
+
export { A as AppAccessLevel, F as FancoilSpeedState, u as PaginableRequestParams, t as ProjectAccessLevel, s as RegimState, v as ServiceInstanceDeviceConfig, T as TemperatureUnit } from './RobotCloudClient.d-L7OLs5ZS.js';
|
|
5
|
+
|
|
6
|
+
declare const robotcloudApi: axios.AxiosInstance;
|
|
7
|
+
declare const setCheckTokenFunction: (fun: () => Promise<string>) => void;
|
|
8
|
+
|
|
9
|
+
interface RobotCloudServiceInstance extends RobotCloudNamedItem {
|
|
10
|
+
service: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface ServiceInstanceDetails extends RobotCloudServiceInstance {
|
|
14
|
+
description: string;
|
|
15
|
+
tags: string[];
|
|
16
|
+
subsystems: string[];
|
|
17
|
+
classifier: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ClassifierDetails {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface ProjectTagTreeNode {
|
|
27
|
+
tag: ProjectTag;
|
|
28
|
+
children: ProjectTagTreeNode[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface ProjectTagsTree {
|
|
32
|
+
root: ProjectTagTreeNode[]
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface ProjectTag {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
parent_id: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface ServiceInstanceRead<T> {
|
|
42
|
+
instance: string;
|
|
43
|
+
time_mark: string;
|
|
44
|
+
value: T;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
type MeasurementStatus = "GOOD"|"NOT_MEASURED"|"INVALID_VALUE"|"DEVICE_ERROR";
|
|
48
|
+
|
|
49
|
+
interface ServiceDataMeasurement<T> extends ServiceInstanceRead<T> {
|
|
50
|
+
status: MeasurementStatus;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface ServiceDataRequestParams extends SubsystemRequestParams {
|
|
54
|
+
tag_id?: string | string[];
|
|
55
|
+
}
|
|
56
|
+
interface ServiceInstanceHistoricAggregateParams {
|
|
57
|
+
offset?: string;
|
|
58
|
+
property?: any[];
|
|
59
|
+
maxSize?: number;
|
|
60
|
+
}
|
|
61
|
+
interface ServiceInstanceHistoricParams {
|
|
62
|
+
status?: MeasurementStatus;
|
|
63
|
+
property?: any[];
|
|
64
|
+
maxSize?: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface AirQuality1DataEventValue {
|
|
68
|
+
co2: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface AirQuality1AlertEventValue {
|
|
72
|
+
high_co2: boolean;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
interface RoomGuestStatus1AlertEventValue {
|
|
77
|
+
door_open_overtime: boolean;
|
|
78
|
+
window_open_overtime: boolean;
|
|
79
|
+
medical_alarm: boolean;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface RoomGuestStatus1EventValue {
|
|
83
|
+
sold: boolean;
|
|
84
|
+
occupied: boolean;
|
|
85
|
+
do_not_disturb: boolean;
|
|
86
|
+
make_up_room: boolean;
|
|
87
|
+
tray_status: "IDLE"|'READY'|'FINISH';
|
|
88
|
+
remote_occupation: boolean;
|
|
89
|
+
door_open: boolean;
|
|
90
|
+
window_open: boolean;
|
|
91
|
+
medical_alarm: boolean; // TODO: ???
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface RoomGuestStatusInstanceConfigParams {
|
|
95
|
+
sold?: boolean;
|
|
96
|
+
do_not_disturb?: boolean;
|
|
97
|
+
make_up_room?: boolean;
|
|
98
|
+
remote_occupation?: boolean;
|
|
99
|
+
door_open_time_limit?: number;
|
|
100
|
+
window_open_time_limit?: number;
|
|
101
|
+
medical_alarm?: boolean;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
////
|
|
106
|
+
// Generic interface types
|
|
107
|
+
////
|
|
108
|
+
|
|
109
|
+
type HistoricAggregateFunction = "count"|"increase"|"mean"|"first"|"last"|"max"|"min"|"amax"|"amin"|"pmax"|"pmin"|"nmax"|"nmin";
|
|
110
|
+
|
|
111
|
+
interface ServiceTypeClient<T_ALERTS, T_DATA, T_CONFIG> {
|
|
112
|
+
getAlerts(
|
|
113
|
+
prjId: string,
|
|
114
|
+
params?: ServiceDataRequestParams
|
|
115
|
+
): Promise<AxiosResponse<ServiceDataMeasurement<T_ALERTS>[]>>;
|
|
116
|
+
|
|
117
|
+
getData (
|
|
118
|
+
prjId: string,
|
|
119
|
+
params?: ServiceDataRequestParams
|
|
120
|
+
): Promise<AxiosResponse<ServiceDataMeasurement<T_DATA>[]>>;
|
|
121
|
+
|
|
122
|
+
getInstanceConfiguration (
|
|
123
|
+
prjId: string,
|
|
124
|
+
instanceId: string
|
|
125
|
+
): Promise<AxiosResponse<T_CONFIG>>;
|
|
126
|
+
|
|
127
|
+
putInstanceConfiguration (
|
|
128
|
+
prjId: string,
|
|
129
|
+
instanceId: string,
|
|
130
|
+
data: T_CONFIG
|
|
131
|
+
): Promise<AxiosResponse<T_CONFIG>>;
|
|
132
|
+
|
|
133
|
+
getInstanceHistoric (
|
|
134
|
+
prjId: string,
|
|
135
|
+
instanceId: string,
|
|
136
|
+
startTime: Date,
|
|
137
|
+
endTime: Date,
|
|
138
|
+
params: ServiceInstanceHistoricParams
|
|
139
|
+
): Promise<AxiosResponse<ServiceDataMeasurement<T_DATA>[]>>;
|
|
140
|
+
|
|
141
|
+
getInstanceHistoricAggregate(
|
|
142
|
+
prjId: string,
|
|
143
|
+
instanceId: string,
|
|
144
|
+
startTime: Date,
|
|
145
|
+
endTime: Date,
|
|
146
|
+
aggFunction: HistoricAggregateFunction,
|
|
147
|
+
periode: string,
|
|
148
|
+
params: ServiceInstanceHistoricAggregateParams
|
|
149
|
+
): Promise<AxiosResponse<ServiceDataMeasurement<T_DATA>[]>>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
interface RobotCloudLocationDetails {
|
|
153
|
+
id: string;
|
|
154
|
+
name: string;
|
|
155
|
+
description: string;
|
|
156
|
+
project: string;
|
|
157
|
+
tags: string[];
|
|
158
|
+
}
|
|
159
|
+
declare const getLocationServiceInstances: (prjId: string, locId: string, service_type: RobotCloudServiceType, params?: LocationServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
|
|
160
|
+
declare const getUser: (username: string) => Promise<AxiosResponse<RobotCloudUserDetails>>;
|
|
161
|
+
declare const getProjects: (params?: ProjectRequestParams) => Promise<AxiosResponse<RobotCloudProject[]>>;
|
|
162
|
+
declare const getProjectDetails: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudProjectDetails>>;
|
|
163
|
+
declare const getProjectSubsystem: (prjId: string, subsysId: string) => Promise<AxiosResponse<RobotCloudNamedItem, any>>;
|
|
164
|
+
declare const getLocations: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudNamedItem[]>>;
|
|
165
|
+
declare const getLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationDetails>>;
|
|
166
|
+
declare const getServiceInstances: (prjId: string, service_type: string, params?: ServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
|
|
167
|
+
declare const getServiceInstance: (prjId: string, service_type: string, service_id: string) => Promise<AxiosResponse<ServiceInstanceDetails, any>>;
|
|
168
|
+
declare const getClassifier: (classifierId: string) => Promise<AxiosResponse<ClassifierDetails, any>>;
|
|
169
|
+
declare const getTags: (prjId: string, params?: ProjectTagRequestParams) => Promise<AxiosResponse<ProjectTag[]>>;
|
|
170
|
+
declare const getTagsTree: (prjId: string, maxDepth?: number, params?: ProjectTagRequestParams) => Promise<ProjectTagsTree>;
|
|
171
|
+
declare const getTagsChildren: (prjId: string, level?: number, parent_id?: string, params?: ProjectTagRequestParams, maxDepth?: number) => Promise<ProjectTagTreeNode[]>;
|
|
172
|
+
declare const getDeviceDetails: (deviceId: string) => Promise<AxiosResponse<RobotCloudDeviceDetails>>;
|
|
173
|
+
declare const getProjectServiceTypes: (prjId: string, params?: SubsystemRequestParams) => Promise<AxiosResponse<RobotCloudServiceTypeDetails[]>>;
|
|
174
|
+
declare const getRoomGrouping1ServiceData: (prjId: string, params?: ServiceDataRequestParams) => Promise<AxiosResponse<ServiceDataMeasurement<RoomGrouping1DataEventValue>[]>>;
|
|
175
|
+
declare const getRoomConsumesInstanceServiceData: (prjId: string, instanceId: string, params?: ServiceInstanceDataRequestParams) => Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1DataEventValue>>>;
|
|
176
|
+
declare const getRoomGrouping1InstanceDeviceConfig: (prjId: string, instanceId: string) => Promise<AxiosResponse<RoomGrouping1InstanceDeviceConfig>>;
|
|
177
|
+
|
|
178
|
+
declare const robotCloudClient_getClassifier: typeof getClassifier;
|
|
179
|
+
declare const robotCloudClient_getDeviceDetails: typeof getDeviceDetails;
|
|
180
|
+
declare const robotCloudClient_getLocation: typeof getLocation;
|
|
181
|
+
declare const robotCloudClient_getLocationServiceInstances: typeof getLocationServiceInstances;
|
|
182
|
+
declare const robotCloudClient_getLocations: typeof getLocations;
|
|
183
|
+
declare const robotCloudClient_getProjectDetails: typeof getProjectDetails;
|
|
184
|
+
declare const robotCloudClient_getProjectServiceTypes: typeof getProjectServiceTypes;
|
|
185
|
+
declare const robotCloudClient_getProjectSubsystem: typeof getProjectSubsystem;
|
|
186
|
+
declare const robotCloudClient_getProjects: typeof getProjects;
|
|
187
|
+
declare const robotCloudClient_getRoomConsumesInstanceServiceData: typeof getRoomConsumesInstanceServiceData;
|
|
188
|
+
declare const robotCloudClient_getRoomGrouping1InstanceDeviceConfig: typeof getRoomGrouping1InstanceDeviceConfig;
|
|
189
|
+
declare const robotCloudClient_getRoomGrouping1ServiceData: typeof getRoomGrouping1ServiceData;
|
|
190
|
+
declare const robotCloudClient_getServiceInstance: typeof getServiceInstance;
|
|
191
|
+
declare const robotCloudClient_getServiceInstances: typeof getServiceInstances;
|
|
192
|
+
declare const robotCloudClient_getTags: typeof getTags;
|
|
193
|
+
declare const robotCloudClient_getTagsChildren: typeof getTagsChildren;
|
|
194
|
+
declare const robotCloudClient_getTagsTree: typeof getTagsTree;
|
|
195
|
+
declare const robotCloudClient_getUser: typeof getUser;
|
|
196
|
+
declare namespace robotCloudClient {
|
|
197
|
+
export { robotCloudClient_getClassifier as getClassifier, robotCloudClient_getDeviceDetails as getDeviceDetails, robotCloudClient_getLocation as getLocation, robotCloudClient_getLocationServiceInstances as getLocationServiceInstances, robotCloudClient_getLocations as getLocations, robotCloudClient_getProjectDetails as getProjectDetails, robotCloudClient_getProjectServiceTypes as getProjectServiceTypes, robotCloudClient_getProjectSubsystem as getProjectSubsystem, robotCloudClient_getProjects as getProjects, robotCloudClient_getRoomConsumesInstanceServiceData as getRoomConsumesInstanceServiceData, robotCloudClient_getRoomGrouping1InstanceDeviceConfig as getRoomGrouping1InstanceDeviceConfig, robotCloudClient_getRoomGrouping1ServiceData as getRoomGrouping1ServiceData, robotCloudClient_getServiceInstance as getServiceInstance, robotCloudClient_getServiceInstances as getServiceInstances, robotCloudClient_getTags as getTags, robotCloudClient_getTagsChildren as getTagsChildren, robotCloudClient_getTagsTree as getTagsTree, robotCloudClient_getUser as getUser };
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
interface CheckTokenResponse {
|
|
201
|
+
renewed: boolean;
|
|
202
|
+
invalid: boolean;
|
|
203
|
+
access: string;
|
|
204
|
+
renew: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
interface RobotCloudJWTPayload {
|
|
208
|
+
exp: number;
|
|
209
|
+
sub: string; // username
|
|
210
|
+
org: string; // organization
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface RobotCloudNewTokenResponse {
|
|
214
|
+
access: string;
|
|
215
|
+
renew: string;
|
|
216
|
+
}
|
|
217
|
+
declare const decodeToken: (token: string) => RobotCloudJWTPayload | undefined;
|
|
218
|
+
declare const isTokenExpired: (payload: RobotCloudJWTPayload) => boolean;
|
|
219
|
+
declare const renewToken: (renew_token: string) => Promise<CheckTokenResponse>;
|
|
220
|
+
declare const validateToken: (access_token: string) => Promise<boolean>;
|
|
221
|
+
|
|
222
|
+
type robotCloudToken_RobotCloudNewTokenResponse = RobotCloudNewTokenResponse;
|
|
223
|
+
declare const robotCloudToken_decodeToken: typeof decodeToken;
|
|
224
|
+
declare const robotCloudToken_isTokenExpired: typeof isTokenExpired;
|
|
225
|
+
declare const robotCloudToken_renewToken: typeof renewToken;
|
|
226
|
+
declare const robotCloudToken_validateToken: typeof validateToken;
|
|
227
|
+
declare namespace robotCloudToken {
|
|
228
|
+
export { type robotCloudToken_RobotCloudNewTokenResponse as RobotCloudNewTokenResponse, robotCloudToken_decodeToken as decodeToken, robotCloudToken_isTokenExpired as isTokenExpired, robotCloudToken_renewToken as renewToken, robotCloudToken_validateToken as validateToken };
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare class RoomClimeClient implements ServiceTypeClient<RoomClime1AlertEventValue, RoomClime1EventValue, RoomClimeInstanceConfigParams> {
|
|
232
|
+
getAlerts(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomClime1AlertEventValue>[]>>;
|
|
233
|
+
getData(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomClime1EventValue>[]>>;
|
|
234
|
+
getInstanceConfiguration(prjId: string, instanceId: string): Promise<AxiosResponse<RoomClimeInstanceConfigParams>>;
|
|
235
|
+
putInstanceConfiguration(prjId: string, instanceId: string, data: RoomClimeInstanceConfigParams): Promise<AxiosResponse<RoomClimeInstanceConfigParams>>;
|
|
236
|
+
getInstanceHistoric(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomClime1EventValue>[]>>;
|
|
237
|
+
getInstanceHistoricAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomClime1EventValue>[]>>;
|
|
238
|
+
}
|
|
239
|
+
declare const roomClimeClient: RoomClimeClient;
|
|
240
|
+
|
|
241
|
+
declare class RoomGuestStatusClient implements ServiceTypeClient<RoomGuestStatus1AlertEventValue, RoomGuestStatus1EventValue, RoomGuestStatusInstanceConfigParams> {
|
|
242
|
+
getAlerts(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGuestStatus1AlertEventValue>[]>>;
|
|
243
|
+
getData(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGuestStatus1EventValue>[]>>;
|
|
244
|
+
getInstanceConfiguration(prjId: string, instanceId: string): Promise<AxiosResponse<RoomGuestStatusInstanceConfigParams>>;
|
|
245
|
+
putInstanceConfiguration(prjId: string, instanceId: string, data: RoomGuestStatusInstanceConfigParams): Promise<AxiosResponse<RoomGuestStatusInstanceConfigParams>>;
|
|
246
|
+
getInstanceHistoric(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGuestStatus1EventValue>[]>>;
|
|
247
|
+
getInstanceHistoricAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGuestStatus1EventValue>[]>>;
|
|
248
|
+
}
|
|
249
|
+
declare const roomGuestStatusClient: RoomGuestStatusClient;
|
|
250
|
+
|
|
251
|
+
declare class AirQualityClient implements ServiceTypeClient<AirQuality1AlertEventValue, AirQuality1DataEventValue, any> {
|
|
252
|
+
getAlerts(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<AirQuality1AlertEventValue>[]>>;
|
|
253
|
+
getData(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<AirQuality1DataEventValue>[]>>;
|
|
254
|
+
getInstanceConfiguration<T>(prjId: string, instanceId: string): Promise<AxiosResponse<T>>;
|
|
255
|
+
putInstanceConfiguration<T>(prjId: string, instanceId: string, data: T): Promise<AxiosResponse<T>>;
|
|
256
|
+
getInstanceHistoric(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<AirQuality1DataEventValue>[]>>;
|
|
257
|
+
getInstanceHistoricAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<AirQuality1DataEventValue>[]>>;
|
|
258
|
+
}
|
|
259
|
+
declare const airQualityClient: AirQualityClient;
|
|
260
|
+
|
|
261
|
+
declare class RoomConsumesClient implements ServiceTypeClient<RoomConsumes1AlertEventValue, RoomConsumes1DataEventValue, any> {
|
|
262
|
+
getAlerts(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1AlertEventValue>[]>>;
|
|
263
|
+
getData(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1DataEventValue>[]>>;
|
|
264
|
+
getInstanceData: (prjId: string, instanceId: string, params?: ServiceInstanceDataRequestParams) => Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1DataEventValue>>>;
|
|
265
|
+
getInstanceConfiguration<T>(prjId: string, instanceId: string): Promise<AxiosResponse<T>>;
|
|
266
|
+
putInstanceConfiguration<T>(prjId: string, instanceId: string, data: T): Promise<AxiosResponse<T>>;
|
|
267
|
+
getInstanceHistoric(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1DataEventValue>[]>>;
|
|
268
|
+
getInstanceHistoricAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomConsumes1DataEventValue>[]>>;
|
|
269
|
+
}
|
|
270
|
+
declare const roomConsumesClient: RoomConsumesClient;
|
|
271
|
+
|
|
272
|
+
export { type AirQuality1AlertEventValue, type AirQuality1DataEventValue, type CheckTokenResponse, type ClassifierDetails, type HistoricAggregateFunction, LocationServiceInstancesRequestParams, type MeasurementStatus, ProjectDetailsRequestParams, ProjectLocationsRequestParams, ProjectRequestParams, type ProjectTag, ProjectTagRequestParams, type ProjectTagTreeNode, type ProjectTagsTree, RobotCloudDeviceDetails, type RobotCloudJWTPayload, RobotCloudNamedItem, RobotCloudProject, RobotCloudProjectDetails, type RobotCloudServiceInstance, RobotCloudServiceType, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RoomClime1AlertEventValue, RoomClime1EventValue, RoomClimeInstanceConfigParams, RoomConsumes1AlertEventValue, RoomConsumes1DataEventValue, RoomGrouping1DataEventValue, RoomGrouping1InstanceDeviceConfig, type RoomGuestStatus1AlertEventValue, type RoomGuestStatus1EventValue, type RoomGuestStatusInstanceConfigParams, type ServiceDataMeasurement, type ServiceDataRequestParams, ServiceInstanceDataRequestParams, type ServiceInstanceDetails, type ServiceInstanceHistoricAggregateParams, type ServiceInstanceHistoricParams, type ServiceInstanceRead, ServiceInstancesRequestParams, type ServiceTypeClient, SubsystemRequestParams, airQualityClient, robotCloudToken, robotcloudApi, robotCloudClient as robotcloudClient, roomClimeClient, roomConsumesClient, roomGuestStatusClient, setCheckTokenFunction };
|