@robotbas/robotcloud-client 0.2.21 → 0.3.0
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/dist/helpers/index.d.mts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/index.js +148 -7
- package/dist/helpers/index.js.map +1 -1
- package/dist/helpers/index.mjs +148 -7
- package/dist/helpers/index.mjs.map +1 -1
- package/dist/{index-DmP793IB.d.mts → index-BsViQoY8.d.mts} +287 -99
- package/dist/{index-DmP793IB.d.ts → index-BsViQoY8.d.ts} +287 -99
- package/dist/index.d.mts +228 -89
- package/dist/index.d.ts +228 -89
- package/dist/index.js +448 -165
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +443 -165
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ProjectClassifer.d.ts +11 -1
- package/types/ProjectLocation.d.ts +24 -0
- package/types/ProjectSubsystem.d.ts +4 -0
- package/types/ProjectTag.d.ts +8 -1
- package/types/RobotCloudClient.d.ts +187 -9
- package/types/ServiceInstance.d.ts +14 -5
- package/types/Token.d.ts +15 -7
- package/types/alerts.d.ts +88 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
|
-
import { AxiosResponse } from 'axios';
|
|
3
|
-
import { R as RegimState, T as TemperatureUnit,
|
|
4
|
-
export {
|
|
2
|
+
import { AxiosResponse, AxiosInstance } from 'axios';
|
|
3
|
+
import { R as RobotCloudOrganizations, a as RobotCloudCreateOrganization, b as RobotCloudOrganizationDetails, c as RobotCloudPutOrganization, d as RobotCloudDelete, e as RobotCloudProject, f as RobotCloudOrganizationCreateUser, g as RobotCloudOrganizationUsers, h as RobotCloudUsers, i as RobotCloudUserDetails, j as RobotCloudPutUserDetails, k as RobotCloudUserOrganization, l as RobotCloudUserProject, m as RobotCloudPostUserProject, n as RobotCloudPutProjectUser, A as AlertsProjectStatsRequestParams, o as AlertLogsListRequestParams, p as RobotCloudNamedItem, q as RobotCloudUserSimple, r as AlertAggregatedLogsRequestParams, S as SubsystemRequestParams, s as RobotCloudDescribedItem, t as RobotCloudCreateApplication, u as RobotCloudGetApplication, v as RobotCloudPutApplication, w as RegimState, T as TemperatureUnit, x as ServiceInstanceConfigClient, y as ServiceTypeClient, z as RoomClime1AlertEventValue, B as ServiceDataRequestParams, C as ServiceDataMeasurement, D as ServiceInstanceDataRequestParams, E as ServiceInstanceHistoricParams, H as HistoricAggregateFunction, F as ServiceInstanceHistoricAggregateParams, G as RoomGuestStatus1AlertEventValue, I as AirQuality1AlertEventValue, J as AirQuality1DataEventValue, K as RoomConsumes1AlertEventValue, P as ProjectClassifiersRequestParams, L as RobotCloudRobotCloudDeviceCreate, M as RobotCloudDeviceDetails, N as RobotCloudRobotCloudDeviceModify, O as RobotCloudDeviceConfiguration, Q as RobotCloudServiceType, U as LocationServiceInstancesRequestParams, V as ProjectLocationsRequestParams, W as ProjectsRequestParams, X as ProjectDetailsRequestParams, Y as RobotCloudProjectDetails, Z as RobotCloudPutProject, _ as RobotCloudProjectUsers, $ as RobotCloudProjectInstances, a0 as RobotCloudServiceTypeDetails, a1 as RobotCloudProjectApplications, a2 as RobotCloudApplicationEnable, a3 as ServiceInstancesRequestParams, a4 as ServiceInstanceRead } from './index-BsViQoY8.mjs';
|
|
4
|
+
export { al as AppAccessLevel, ah as BaseFullPaginableRequestParams, am as FancoilSpeedState, aq as MeasurementStatus, aj as OrganizationAccessLevel, ae as PaginableRequestParams, ak as ProjectAccessLevel, ac as ProjectModifyTag, ab as ProjectTag, ad as ProjectTagDetails, ai as ProjectTagRequestParams, a9 as ProjectTagTreeNode, aa as ProjectTagsTree, an as RobotCloudCreateProject, ap as RobotCloudCreateUser, a8 as RobotCloudPermissionsHelper, ao as RobotCloudUserAppAccess, af as SortableListRequestParams, ag as SubsystemTagsRequestParams, a7 as robotCloudPermissionsHelper, a5 as tagsClient, a6 as tagsHelper } from './index-BsViQoY8.mjs';
|
|
5
5
|
|
|
6
6
|
declare const robotcloudApi: axios.AxiosInstance;
|
|
7
7
|
|
|
@@ -16,17 +16,25 @@ declare class RobotCloudClientConfig {
|
|
|
16
16
|
}
|
|
17
17
|
declare const clientConfig: RobotCloudClientConfig;
|
|
18
18
|
|
|
19
|
+
interface TokenResponse {
|
|
20
|
+
token: string;
|
|
21
|
+
expiration: string; // ISO 8601 date string (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
22
|
+
}
|
|
23
|
+
interface SessionTokenResponse {
|
|
24
|
+
access: TokenResponse;
|
|
25
|
+
renew: TokenResponse;
|
|
26
|
+
}
|
|
19
27
|
interface CheckTokenResponse {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
renewed: boolean;
|
|
29
|
+
invalid: boolean;
|
|
30
|
+
access: string;
|
|
31
|
+
renew: string;
|
|
24
32
|
}
|
|
25
33
|
|
|
26
34
|
interface RobotCloudJWTPayload {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
exp: number;
|
|
36
|
+
sub: string; // username
|
|
37
|
+
org: string; // organization
|
|
30
38
|
}
|
|
31
39
|
|
|
32
40
|
interface RobotCloudNewTokenResponse {
|
|
@@ -49,6 +57,133 @@ declare namespace robotCloudToken {
|
|
|
49
57
|
export { type robotCloudToken_RobotCloudNewTokenResponse as RobotCloudNewTokenResponse, robotCloudToken_decodeToken as decodeToken, robotCloudToken_isExpired as isExpired, robotCloudToken_needRenew as needRenew, robotCloudToken_renewToken as renewToken, robotCloudToken_validateToken as validateToken };
|
|
50
58
|
}
|
|
51
59
|
|
|
60
|
+
interface LoginClient {
|
|
61
|
+
login(username: string, password: string, apiKey: string): Promise<AxiosResponse<SessionTokenResponse>>;
|
|
62
|
+
renewToken(token: string): Promise<AxiosResponse<SessionTokenResponse>>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare class OrganizationsClient {
|
|
66
|
+
private robotcloudApi;
|
|
67
|
+
private logger;
|
|
68
|
+
constructor(robotcloudApi: AxiosInstance);
|
|
69
|
+
getOrganizations: () => Promise<AxiosResponse<RobotCloudOrganizations[]>>;
|
|
70
|
+
postOrganizations: () => Promise<AxiosResponse<RobotCloudCreateOrganization>>;
|
|
71
|
+
getOrganization: (organizationId: string) => Promise<AxiosResponse<RobotCloudOrganizationDetails>>;
|
|
72
|
+
putOrganization: (organizationId: string) => Promise<AxiosResponse<RobotCloudPutOrganization>>;
|
|
73
|
+
deleteOrganization: (organizationId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
|
|
74
|
+
getOrganizationProjects: (organizationId: string) => Promise<AxiosResponse<RobotCloudProject[]>>;
|
|
75
|
+
postOrganizationProjects: (organizationId: string) => Promise<AxiosResponse<RobotCloudOrganizationCreateUser>>;
|
|
76
|
+
getOrganizationUsers: (organizationId: string) => Promise<AxiosResponse<RobotCloudOrganizationUsers[]>>;
|
|
77
|
+
postOrganizationUsers: (organizationId: string) => Promise<AxiosResponse<RobotCloudOrganizationCreateUser>>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare class UsersClient {
|
|
81
|
+
private robotcloudApi;
|
|
82
|
+
private logger;
|
|
83
|
+
constructor(robotcloudApi: AxiosInstance);
|
|
84
|
+
getUsers: () => Promise<AxiosResponse<RobotCloudUsers[]>>;
|
|
85
|
+
getUser: (username: string) => Promise<AxiosResponse<RobotCloudUserDetails>>;
|
|
86
|
+
putUser: (username: string) => Promise<AxiosResponse<RobotCloudPutUserDetails>>;
|
|
87
|
+
deleteUser: (username: string) => Promise<AxiosResponse<RobotCloudDelete>>;
|
|
88
|
+
getUserOrganizations: (username: string) => Promise<AxiosResponse<RobotCloudUserOrganization[]>>;
|
|
89
|
+
getUserProjects: (username: string) => Promise<AxiosResponse<RobotCloudUserProject[]>>;
|
|
90
|
+
postUserProjects: (username: string) => Promise<AxiosResponse<RobotCloudPostUserProject>>;
|
|
91
|
+
getProjectToUser: (username: string, projectId: string) => Promise<AxiosResponse<RobotCloudUserProject>>;
|
|
92
|
+
putProjectToUser: (username: string, projectId: string) => Promise<AxiosResponse<RobotCloudPutProjectUser>>;
|
|
93
|
+
deleteProjectToUser: (username: string, projectId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface AlertsLogsStats {
|
|
97
|
+
total: number;
|
|
98
|
+
active: number;
|
|
99
|
+
noack: number;
|
|
100
|
+
active_noack: number;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface AlertLogLine {
|
|
104
|
+
id: string;
|
|
105
|
+
service: string;
|
|
106
|
+
instance: string;
|
|
107
|
+
location: RobotCloudNamedItem;
|
|
108
|
+
classifier: RobotCloudNamedItem;
|
|
109
|
+
alert_name: string;
|
|
110
|
+
acknowledged: boolean;
|
|
111
|
+
ack_time: string;
|
|
112
|
+
ack_user: RobotCloudUserSimple;
|
|
113
|
+
active: boolean;
|
|
114
|
+
active_time: string;
|
|
115
|
+
deactive_time: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
interface AlertsLogsList {
|
|
119
|
+
total_size: number;
|
|
120
|
+
initial_index: number;
|
|
121
|
+
alerts: AlertLogLine[];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
interface AlertsLogsAggregatedAlertRecord {
|
|
125
|
+
periode_start: string,
|
|
126
|
+
periode_end: string,
|
|
127
|
+
activation_count: number,
|
|
128
|
+
active_seconds: number
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
interface AlertsLogsAggregatedAlert {
|
|
132
|
+
service: string;
|
|
133
|
+
alert_name: string;
|
|
134
|
+
aggregates: AlertsLogsAggregatedAlertRecord[];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface AlertsLogsAggregated {
|
|
138
|
+
alerts: AlertsLogsAggregatedAlert[];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
interface AlertLogAckItem {
|
|
142
|
+
id: string;
|
|
143
|
+
acknowledged: boolean;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface AlertLogAckAlerts {
|
|
147
|
+
alerts: AlertLogAckItem[];
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface AlertsClient {
|
|
151
|
+
getProjectStats(
|
|
152
|
+
projectId: string,
|
|
153
|
+
params?: AlertsProjectStatsRequestParams
|
|
154
|
+
): Promise<AxiosResponse<AlertsLogsStats>>;
|
|
155
|
+
|
|
156
|
+
getProjectLog(
|
|
157
|
+
projectId: string,
|
|
158
|
+
params: AlertLogsListRequestParams
|
|
159
|
+
): Promise<AxiosResponse<AlertsLogsList>>;
|
|
160
|
+
|
|
161
|
+
acknowledge(
|
|
162
|
+
projectId: string,
|
|
163
|
+
data: AlertLogAckAlerts
|
|
164
|
+
): Promise<AxiosResponse<AlertsLogsList>>;
|
|
165
|
+
|
|
166
|
+
getAggregatedLogs(
|
|
167
|
+
projectId: string,
|
|
168
|
+
params: AlertAggregatedLogsRequestParams
|
|
169
|
+
): Promise<AxiosResponse<AlertsLogsAggregated>>;
|
|
170
|
+
|
|
171
|
+
getAvailableAlerts(projectId: string, params?: SubsystemRequestParams): Promise<AxiosResponse<string[]>>;
|
|
172
|
+
|
|
173
|
+
getServiceTypeAlertKeys(serviceType: string): string[];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare class ApplicationsClient {
|
|
177
|
+
private robotcloudApi;
|
|
178
|
+
private logger;
|
|
179
|
+
constructor(robotcloudApi: AxiosInstance);
|
|
180
|
+
getApplications: () => Promise<AxiosResponse<RobotCloudDescribedItem[]>>;
|
|
181
|
+
postOrganizations: () => Promise<AxiosResponse<RobotCloudCreateApplication>>;
|
|
182
|
+
getApplication: (applicationId: string) => Promise<AxiosResponse<RobotCloudGetApplication>>;
|
|
183
|
+
putApplication: (applicationId: string) => Promise<AxiosResponse<RobotCloudPutApplication>>;
|
|
184
|
+
deleteApplication: (applicationId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
|
|
185
|
+
}
|
|
186
|
+
|
|
52
187
|
interface RoomClime1Data {
|
|
53
188
|
demandRF: boolean;
|
|
54
189
|
eco_mode: "STANDBY"|"ECO"|"VIP";
|
|
@@ -219,7 +354,17 @@ declare const roomConsumesClient: RoomConsumesClient;
|
|
|
219
354
|
interface Classifier {
|
|
220
355
|
id: string;
|
|
221
356
|
name: string;
|
|
222
|
-
description
|
|
357
|
+
description?: string;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
interface ClassifierCreate {
|
|
361
|
+
name: string
|
|
362
|
+
description?: string
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
interface ClassifierModify {
|
|
366
|
+
name?: string
|
|
367
|
+
description?: string
|
|
223
368
|
}
|
|
224
369
|
|
|
225
370
|
interface ClassifierDetails extends Classifier {
|
|
@@ -227,13 +372,21 @@ interface ClassifierDetails extends Classifier {
|
|
|
227
372
|
|
|
228
373
|
declare class ClassifiersClient {
|
|
229
374
|
getProjectClassifiers: (prjId: string, params?: ProjectClassifiersRequestParams) => Promise<AxiosResponse<Classifier[]>>;
|
|
230
|
-
getClassifier: (classifierId: string) => Promise<AxiosResponse<ClassifierDetails
|
|
375
|
+
getClassifier: (classifierId: string) => Promise<AxiosResponse<ClassifierDetails>>;
|
|
376
|
+
putClassifier: (classifierId: string) => Promise<AxiosResponse<ClassifierModify>>;
|
|
377
|
+
postClassifier: (classifierId: string) => Promise<AxiosResponse<ClassifierCreate>>;
|
|
378
|
+
deleteClassifier: (classifierId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
|
|
231
379
|
}
|
|
232
380
|
declare const classifiersClient: ClassifiersClient;
|
|
233
381
|
|
|
234
382
|
declare class DevicesClient {
|
|
235
383
|
getProjectDevices: (projectId: string) => Promise<AxiosResponse<RobotCloudNamedItem[]>>;
|
|
384
|
+
getProjectDevicesLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudNamedItem[]>>;
|
|
385
|
+
postProjectDeviceLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudRobotCloudDeviceCreate>>;
|
|
236
386
|
getDeviceDetails: (deviceId: string) => Promise<AxiosResponse<RobotCloudDeviceDetails>>;
|
|
387
|
+
putDeviceDetails: (deviceId: string) => Promise<AxiosResponse<RobotCloudRobotCloudDeviceModify>>;
|
|
388
|
+
deleteDevice: (deviceId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
|
|
389
|
+
getDeviceConfiguration: (deviceId: string) => Promise<AxiosResponse<RobotCloudDeviceConfiguration>>;
|
|
237
390
|
}
|
|
238
391
|
declare const devicesClient: DevicesClient;
|
|
239
392
|
|
|
@@ -246,32 +399,70 @@ interface RobotCloudServiceInstance extends RobotCloudNamedItem {
|
|
|
246
399
|
service: string;
|
|
247
400
|
}
|
|
248
401
|
|
|
402
|
+
|
|
249
403
|
interface ServiceInstanceDetails extends RobotCloudServiceInstance {
|
|
250
|
-
description
|
|
251
|
-
location
|
|
252
|
-
tags
|
|
253
|
-
subsystems
|
|
254
|
-
classifier
|
|
404
|
+
description?: string;
|
|
405
|
+
location?: string;
|
|
406
|
+
tags?: string[];
|
|
407
|
+
subsystems?: string[];
|
|
408
|
+
classifier?: string;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
interface CreateServiceInstance extends RobotCloudServiceInstance {
|
|
412
|
+
description?: string;
|
|
413
|
+
name: string
|
|
414
|
+
tags?: string[];
|
|
415
|
+
subsystems?: string[];
|
|
416
|
+
classifier?: string;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
interface ProjectLocations {
|
|
420
|
+
id: string
|
|
421
|
+
name: string
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
interface RobotCloudLocationCreate {
|
|
425
|
+
name: string
|
|
426
|
+
description?: string;
|
|
427
|
+
tags?: string[];
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
interface RobotCloudLocationModify {
|
|
431
|
+
name?: string
|
|
432
|
+
description?: string;
|
|
433
|
+
tags?: string[];
|
|
255
434
|
}
|
|
256
435
|
|
|
257
436
|
interface RobotCloudLocationDetails {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
437
|
+
id: string;
|
|
438
|
+
name: string;
|
|
439
|
+
description?: string;
|
|
440
|
+
project: string;
|
|
441
|
+
tags?: string[];
|
|
263
442
|
}
|
|
443
|
+
|
|
264
444
|
declare class LocationsClient {
|
|
265
445
|
getLocationServiceInstances: (prjId: string, locId: string, service_type: RobotCloudServiceType, params?: LocationServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
|
|
446
|
+
postLocationServiceInstances: (prjId: string, locId: string, service_type: RobotCloudServiceType, params?: LocationServiceInstancesRequestParams) => Promise<AxiosResponse<CreateServiceInstance[]>>;
|
|
266
447
|
getLocations: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudNamedItem[]>>;
|
|
448
|
+
postLocations: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudLocationCreate[]>>;
|
|
267
449
|
getLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationDetails>>;
|
|
450
|
+
putLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationModify>>;
|
|
451
|
+
deleteLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
|
|
268
452
|
}
|
|
269
453
|
declare const locationsClient: LocationsClient;
|
|
270
454
|
|
|
271
455
|
declare class ProjectsClient {
|
|
272
456
|
getProjects: (params?: ProjectsRequestParams) => Promise<AxiosResponse<RobotCloudProject[]>>;
|
|
273
457
|
getProjectDetails: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudProjectDetails>>;
|
|
274
|
-
|
|
458
|
+
putProjectDetails: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudPutProject>>;
|
|
459
|
+
deleteProject: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudDelete>>;
|
|
460
|
+
getProjectUsers: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudProjectUsers>>;
|
|
461
|
+
getProjectInstances: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudProjectInstances[]>>;
|
|
462
|
+
getProjectServiceTypes: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudServiceTypeDetails[]>>;
|
|
463
|
+
getProjectApplications: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudProjectApplications[]>>;
|
|
464
|
+
getProjectApplication: (prjId: string, appId: string) => Promise<AxiosResponse<RobotCloudProjectApplications>>;
|
|
465
|
+
putProjectApplication: (prjId: string, appId: string) => Promise<AxiosResponse<RobotCloudApplicationEnable>>;
|
|
275
466
|
}
|
|
276
467
|
declare const projectsClient: ProjectsClient;
|
|
277
468
|
|
|
@@ -285,77 +476,25 @@ declare class ServiceInstancesClient {
|
|
|
285
476
|
}
|
|
286
477
|
declare const serviceInstancesClient: ServiceInstancesClient;
|
|
287
478
|
|
|
479
|
+
interface putProjectSubsystem {
|
|
480
|
+
name?: string
|
|
481
|
+
description?: string
|
|
482
|
+
}
|
|
483
|
+
|
|
288
484
|
declare class SubsystemsClient {
|
|
289
|
-
getProjectSubsystems: (prjId: string) => Promise<
|
|
290
|
-
getProjectSubsystem: (prjId: string, subsysId: string) => Promise<
|
|
485
|
+
getProjectSubsystems: (prjId: string) => Promise<AxiosResponse<RobotCloudDescribedItem[]>>;
|
|
486
|
+
getProjectSubsystem: (prjId: string, subsysId: string) => Promise<AxiosResponse<RobotCloudDescribedItem>>;
|
|
487
|
+
postProjectSubsystem: (prjId: string) => Promise<AxiosResponse<RobotCloudDescribedItem>>;
|
|
488
|
+
putProjectSubsystem: (prjId: string, subsysId: string) => Promise<AxiosResponse<putProjectSubsystem>>;
|
|
489
|
+
deleteSubsystem: (prjId: string, subsysId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
|
|
490
|
+
getProjectSubsystemLocations: (prjId: string, subsysId: string) => Promise<AxiosResponse<ProjectLocations>>;
|
|
291
491
|
}
|
|
292
492
|
declare const subsystemsClient: SubsystemsClient;
|
|
293
493
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
active: number;
|
|
297
|
-
noack: number;
|
|
298
|
-
active_noack: number;
|
|
299
|
-
}
|
|
300
|
-
interface AlertLogLine {
|
|
301
|
-
id: string;
|
|
302
|
-
service: string;
|
|
303
|
-
instance: string;
|
|
304
|
-
location: RobotCloudNamedItem;
|
|
305
|
-
classifier: RobotCloudNamedItem;
|
|
306
|
-
alert_name: string;
|
|
307
|
-
acknowledged: boolean;
|
|
308
|
-
ack_time: string;
|
|
309
|
-
ack_user: RobotCloudUserSimple;
|
|
310
|
-
active: boolean;
|
|
311
|
-
active_time: string;
|
|
312
|
-
deactive_time: string;
|
|
313
|
-
}
|
|
314
|
-
interface AlertsLogsList {
|
|
315
|
-
total_size: number;
|
|
316
|
-
initial_index: number;
|
|
317
|
-
alerts: AlertLogLine[];
|
|
318
|
-
}
|
|
319
|
-
interface AlertsLogsAggregatedAlertRecord {
|
|
320
|
-
periode_start: string;
|
|
321
|
-
periode_end: string;
|
|
322
|
-
activation_count: number;
|
|
323
|
-
active_seconds: number;
|
|
324
|
-
}
|
|
325
|
-
interface AlertsLogsAggregatedAlert {
|
|
326
|
-
service: string;
|
|
327
|
-
alert_name: string;
|
|
328
|
-
aggregates: AlertsLogsAggregatedAlertRecord[];
|
|
329
|
-
}
|
|
330
|
-
interface AlertsLogsAggregated {
|
|
331
|
-
alerts: AlertsLogsAggregatedAlert[];
|
|
332
|
-
}
|
|
333
|
-
interface AlertLogAckItem {
|
|
334
|
-
id: string;
|
|
335
|
-
acknowledged: boolean;
|
|
336
|
-
}
|
|
337
|
-
interface AlertLogAckAlerts {
|
|
338
|
-
alerts: AlertLogAckItem[];
|
|
339
|
-
}
|
|
340
|
-
interface AlertsClient {
|
|
341
|
-
getProjectStats(projectId: string): Promise<AxiosResponse<AlertsLogsStats>>;
|
|
342
|
-
getProjectLog(projectId: string, params: AlertLogsListRequestParams): Promise<AxiosResponse<AlertsLogsList>>;
|
|
343
|
-
acknowledge(projectId: string, data: AlertLogAckAlerts): Promise<AxiosResponse<AlertsLogsList>>;
|
|
344
|
-
getAggregatedLogs(projectId: string, params: AlertAggregatedLogsRequestParams): Promise<AxiosResponse<AlertsLogsAggregated>>;
|
|
345
|
-
getAvailableAlerts(projectId: string, params?: SubsystemRequestParams): Promise<AxiosResponse<string[]>>;
|
|
346
|
-
}
|
|
494
|
+
declare const applicationsClient: ApplicationsClient;
|
|
495
|
+
declare const loginClient: LoginClient;
|
|
347
496
|
declare const alertsClient: AlertsClient;
|
|
348
|
-
|
|
349
|
-
declare class OrganizationsClient {
|
|
350
|
-
getOrganization: (organizationId: string) => Promise<AxiosResponse<RobotCloudOrganizationDetails>>;
|
|
351
|
-
getOrganizationProjects: (organizationId: string) => Promise<AxiosResponse<RobotCloudProject[]>>;
|
|
352
|
-
}
|
|
353
497
|
declare const organizationsClient: OrganizationsClient;
|
|
354
|
-
|
|
355
|
-
declare class UsersClient {
|
|
356
|
-
getUser: (username: string) => Promise<AxiosResponse<RobotCloudUserDetails>>;
|
|
357
|
-
getUserProjects: (username: string) => Promise<AxiosResponse<RobotCloudUserProject[]>>;
|
|
358
|
-
}
|
|
359
498
|
declare const usersClient: UsersClient;
|
|
360
499
|
|
|
361
|
-
export { AirQuality1AlertEventValue, AirQuality1DataEventValue, AlertAggregatedLogsRequestParams, type AlertLogLine, AlertLogsListRequestParams, type AlertsClient, type AlertsLogsAggregated, type AlertsLogsStats, type CheckTokenResponse, type Classifier, type ClassifierDetails, HistoricAggregateFunction, LocationServiceInstancesRequestParams, ProjectClassifiersRequestParams, ProjectDetailsRequestParams, ProjectLocationsRequestParams, ProjectsRequestParams, RegimState, RobotCloudClientConfig, RobotCloudDescribedItem, RobotCloudDeviceDetails, type RobotCloudJWTPayload, RobotCloudNamedItem, RobotCloudOrganizationDetails, RobotCloudProject, RobotCloudProjectDetails, type RobotCloudServiceInstance, RobotCloudServiceType, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RobotCloudUserProject, RobotCloudUserSimple, RoomClime1AlertEventValue, type RoomClime1Data, type RoomClimeAlertsKeys, RoomClimeClient, type RoomClimeConfigurationParams, RoomConsumes1AlertEventValue, type RoomConsumes1Data, type RoomGrouping1DataEventValue, type RoomGrouping1InstanceDeviceConfig, RoomGuestStatus1AlertEventValue, type RoomGuestStatus1Data, type RoomGuestStatusConfigurationParams, ServiceDataMeasurement, ServiceDataRequestParams, ServiceInstanceConfigClient, ServiceInstanceDataRequestParams, type ServiceInstanceDetails, type ServiceInstanceDeviceConfig, type ServiceInstanceDevicesInfo, ServiceInstanceHistoricAggregateParams, ServiceInstanceHistoricParams, ServiceInstanceRead, ServiceInstancesRequestParams, ServiceTypeClient, SubsystemRequestParams, TemperatureUnit, airQualityClient, alertsClient, classifiersClient, clientConfig, devicesClient, locationsClient, organizationsClient, projectsClient, robotCloudToken, robotcloudApi, roomClimeClient, roomConsumesClient, roomGuestStatusClient, serviceInstancesClient, subsystemsClient, usersClient };
|
|
500
|
+
export { AirQuality1AlertEventValue, AirQuality1DataEventValue, AlertAggregatedLogsRequestParams, type AlertLogAckAlerts, type AlertLogLine, AlertLogsListRequestParams, type AlertsClient, type AlertsLogsAggregated, type AlertsLogsList, type AlertsLogsStats, AlertsProjectStatsRequestParams, ApplicationsClient, type CheckTokenResponse, type Classifier, type ClassifierCreate, type ClassifierDetails, type ClassifierModify, type CreateServiceInstance, HistoricAggregateFunction, LocationServiceInstancesRequestParams, type LoginClient, OrganizationsClient, ProjectClassifiersRequestParams, ProjectDetailsRequestParams, ProjectLocationsRequestParams, ProjectsRequestParams, RegimState, RobotCloudApplicationEnable, RobotCloudClientConfig, RobotCloudCreateApplication, RobotCloudCreateOrganization, RobotCloudDelete, RobotCloudDescribedItem, RobotCloudDeviceConfiguration, RobotCloudDeviceDetails, RobotCloudGetApplication, type RobotCloudJWTPayload, RobotCloudNamedItem, RobotCloudOrganizationCreateUser, RobotCloudOrganizationDetails, RobotCloudOrganizationUsers, RobotCloudOrganizations, RobotCloudPostUserProject, RobotCloudProject, RobotCloudProjectApplications, RobotCloudProjectDetails, RobotCloudProjectInstances, RobotCloudProjectUsers, RobotCloudPutApplication, RobotCloudPutOrganization, RobotCloudPutProject, RobotCloudPutProjectUser, RobotCloudPutUserDetails, RobotCloudRobotCloudDeviceCreate, RobotCloudRobotCloudDeviceModify, type RobotCloudServiceInstance, RobotCloudServiceType, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RobotCloudUserOrganization, RobotCloudUserProject, RobotCloudUserSimple, RobotCloudUsers, RoomClime1AlertEventValue, type RoomClime1Data, type RoomClimeAlertsKeys, RoomClimeClient, type RoomClimeConfigurationParams, RoomConsumes1AlertEventValue, type RoomConsumes1Data, type RoomGrouping1DataEventValue, type RoomGrouping1InstanceDeviceConfig, RoomGuestStatus1AlertEventValue, type RoomGuestStatus1Data, type RoomGuestStatusConfigurationParams, ServiceDataMeasurement, ServiceDataRequestParams, ServiceInstanceConfigClient, ServiceInstanceDataRequestParams, type ServiceInstanceDetails, type ServiceInstanceDeviceConfig, type ServiceInstanceDevicesInfo, ServiceInstanceHistoricAggregateParams, ServiceInstanceHistoricParams, ServiceInstanceRead, ServiceInstancesRequestParams, ServiceTypeClient, type SessionTokenResponse, SubsystemRequestParams, TemperatureUnit, type TokenResponse, UsersClient, airQualityClient, alertsClient, applicationsClient, classifiersClient, clientConfig, devicesClient, locationsClient, loginClient, organizationsClient, projectsClient, robotCloudToken, robotcloudApi, roomClimeClient, roomConsumesClient, roomGuestStatusClient, serviceInstancesClient, subsystemsClient, usersClient };
|