@robotbas/robotcloud-client 0.3.0 → 0.3.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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as axios from 'axios';
2
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.js';
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.js';
3
+ import { R as RobotCloudOrganizations, a as RobotCloudCreateOrganization, b as RobotCloudOrganizationDetails, c as RobotCloudPutOrganization, d as RobotCloudDelete, e as RobotCloudOrganizationUsers, f as RobotCloudOrganizationCreateUser, g as RobotCloudUsers, h as RobotCloudUserDetails, i as RobotCloudPutUserDetails, j as RobotCloudUserOrganization, k as RobotCloudUserProject, l as RobotCloudPostUserProject, m as RobotCloudPutProjectUser, A as AlertsProjectStatsRequestParams, n as AlertLogsListRequestParams, o as RobotCloudNamedItem, p as RobotCloudUserSimple, q as AlertAggregatedLogsRequestParams, S as SubsystemRequestParams, r as RobotCloudDescribedItem, s as RobotCloudCreateApplication, t as RobotCloudGetApplication, u as RobotCloudPutApplication, v as RegimState, T as TemperatureUnit, w as ServiceInstanceConfigClient, x as ServiceTypeClient, y as RoomClime1AlertEventValue, z as ServiceDataRequestParams, B as ServiceDataMeasurement, C as ServiceInstanceDataRequestParams, D as ServiceInstanceHistoricParams, H as HistoricAggregateFunction, E as ServiceInstanceHistoricAggregateParams, F as RoomGuestStatus1AlertEventValue, G as AirQuality1AlertEventValue, I as AirQuality1DataEventValue, J as RoomConsumes1AlertEventValue, P as ProjectClassifiersRequestParams, K as RobotCloudRobotCloudDeviceCreate, L as RobotCloudDeviceDetails, M as RobotCloudRobotCloudDeviceModify, N as RobotCloudDeviceConfiguration, O as ProjectLocationsRequestParams, Q as RobotCloudProject, U as RobotCloudCreateProject, V as ProjectsRequestParams, W as ProjectDetailsRequestParams, X as RobotCloudProjectDetails, Y as RobotCloudPutProject, Z as RobotCloudProjectUsers, _ as RobotCloudProjectApplications, $ as RobotCloudApplicationEnable, a0 as ServiceInstancesRequestParams, a1 as RobotCloudServiceTypeDetails, a2 as LocationServiceInstancesRequestParams, a3 as ServiceInstanceRead } from './index-9RfDay_a.js';
4
+ export { ak as AppAccessLevel, ag as BaseFullPaginableRequestParams, am as FancoilSpeedState, aq as MeasurementStatus, ai as OrganizationAccessLevel, ad as PaginableRequestParams, aj as ProjectAccessLevel, ab as ProjectModifyTag, aa as ProjectTag, ac as ProjectTagDetails, ah as ProjectTagRequestParams, a8 as ProjectTagTreeNode, a9 as ProjectTagsTree, ao as RobotCloudCreateUser, a7 as RobotCloudPermissionsHelper, ap as RobotCloudProjectInstances, al as RobotCloudServiceType, an as RobotCloudUserAppAccess, ae as SortableListRequestParams, af as SubsystemTagsRequestParams, a6 as robotCloudPermissionsHelper, a4 as tagsClient, a5 as tagsHelper } from './index-9RfDay_a.js';
5
5
 
6
6
  declare const robotcloudApi: axios.AxiosInstance;
7
7
 
@@ -71,16 +71,14 @@ declare class OrganizationsClient {
71
71
  getOrganization: (organizationId: string) => Promise<AxiosResponse<RobotCloudOrganizationDetails>>;
72
72
  putOrganization: (organizationId: string) => Promise<AxiosResponse<RobotCloudPutOrganization>>;
73
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
74
  }
79
75
 
80
76
  declare class UsersClient {
81
77
  private robotcloudApi;
82
78
  private logger;
83
79
  constructor(robotcloudApi: AxiosInstance);
80
+ getOrganizationUsers: (organizationId: string) => Promise<AxiosResponse<RobotCloudOrganizationUsers[]>>;
81
+ postOrganizationUsers: (organizationId: string) => Promise<AxiosResponse<RobotCloudOrganizationCreateUser>>;
84
82
  getUsers: () => Promise<AxiosResponse<RobotCloudUsers[]>>;
85
83
  getUser: (username: string) => Promise<AxiosResponse<RobotCloudUserDetails>>;
86
84
  putUser: (username: string) => Promise<AxiosResponse<RobotCloudPutUserDetails>>;
@@ -185,53 +183,53 @@ declare class ApplicationsClient {
185
183
  }
186
184
 
187
185
  interface RoomClime1Data {
188
- demandRF: boolean;
189
- eco_mode: "STANDBY"|"ECO"|"VIP";
190
- fancoil_manual: boolean;
191
- fancoil_speed: number;
192
- humidity: number;
193
- humidity_set_point: number;
194
-
195
- on: boolean;
196
- onRF: boolean;
186
+ demandRF: boolean;
187
+ eco_mode: "STANDBY" | "ECO" | "VIP";
188
+ fancoil_manual: boolean;
189
+ fancoil_speed: number;
190
+ humidity: number;
191
+ humidity_set_point: number;
192
+
193
+ on: boolean;
194
+ onRF: boolean;
197
195
 
198
- temperature: number;
199
- temperature_set_point: number;
200
- regim: RegimState;
196
+ temperature: number;
197
+ temperature_set_point: number;
198
+ regim: RegimState;
201
199
  }
202
200
 
203
201
  interface RoomConsumes1Data {
204
- energy_electric: number;
205
- energy_thermal: number;
206
- hot_water: number;
207
- cold_water: number;
208
-
209
- daily_energy_electric: number;
210
- daily_energy_thermal: number;
211
- daily_hot_water: number;
212
- daily_cold_water: number;
213
- daily_co2_footprint: number;
214
- daily_tree_equivalent: number;
215
-
216
- guest_energy_electric: number;
217
- guest_energy_thermal: number;
218
- guest_hot_water: number;
219
- guest_cold_water: number;
220
- guest_co2_footprint: number;
221
- guest_tree_equivalent: number;
202
+ energy_electric: number;
203
+ energy_thermal: number;
204
+ hot_water: number;
205
+ cold_water: number;
206
+
207
+ daily_energy_electric: number;
208
+ daily_energy_thermal: number;
209
+ daily_hot_water: number;
210
+ daily_cold_water: number;
211
+ daily_co2_footprint: number;
212
+ daily_tree_equivalent: number;
213
+
214
+ guest_energy_electric: number;
215
+ guest_energy_thermal: number;
216
+ guest_hot_water: number;
217
+ guest_cold_water: number;
218
+ guest_co2_footprint: number;
219
+ guest_tree_equivalent: number;
222
220
  }
223
221
 
224
222
  interface RoomGuestStatus1Data {
225
- sold: boolean;
226
- vip: boolean;
227
- occupied: boolean;
228
- do_not_disturb: boolean;
229
- make_up_room: boolean;
230
- tray_status: "IDLE"|'READY'|'FINISH';
231
- remote_occupation: boolean;
232
- door_open: boolean;
233
- window_open: boolean;
234
- medical_alarm: boolean;
223
+ sold: boolean;
224
+ vip: boolean;
225
+ occupied: boolean;
226
+ do_not_disturb: boolean;
227
+ make_up_room: boolean;
228
+ tray_status: "IDLE" | 'READY' | 'FINISH';
229
+ remote_occupation: boolean;
230
+ door_open: boolean;
231
+ window_open: boolean;
232
+ medical_alarm: boolean;
235
233
  }
236
234
 
237
235
  interface ServiceInstanceDeviceConfig {
@@ -252,35 +250,44 @@ interface RoomGrouping1DataEventValue {
252
250
  }
253
251
 
254
252
  interface RoomClimeConfigurationParams {
255
- temperature_set_point?: number;
256
- humidity_set_point?: number;
257
- regim?: RegimState;
258
- eco_mode?: "STANDBY" | "ECO" | "VIP";
259
- fancoil_speed?: 0 | 1 | 2 | 3;
260
- on?: boolean;
261
-
262
- hasFC?: boolean;
263
- hasRF?: boolean;
264
- isRFLinked?: boolean;
265
-
266
- onRF?: boolean;
267
-
268
- high_temperature_level?: number;
269
- low_temperature_level?: number;
270
- high_humidity_level?: number;
271
- fancoil_on_time_limit?: number;
272
- temperature_units?: TemperatureUnit;
253
+ temperature_set_point?: number;
254
+ humidity_set_point?: number;
255
+ regim?: RegimState;
256
+ eco_mode?: "STANDBY" | "ECO" | "VIP";
257
+ fancoil_speed?: 0 | 1 | 2 | 3;
258
+ on?: boolean;
259
+
260
+ hasFC?: boolean;
261
+ hasRF?: boolean;
262
+ isRFLinked?: boolean;
263
+
264
+ onRF?: boolean;
265
+
266
+ high_temperature_level?: number;
267
+ low_temperature_level?: number;
268
+ high_humidity_level?: number;
269
+ fancoil_on_time_limit?: number;
270
+ temperature_units?: TemperatureUnit;
273
271
  }
274
272
 
275
273
  interface RoomGuestStatusConfigurationParams {
276
- sold?: boolean;
277
- vip?: boolean;
278
- do_not_disturb?: boolean;
279
- make_up_room?: boolean;
280
- remote_occupation?: boolean;
281
- door_open_time_limit?: number;
282
- window_open_time_limit?: number;
283
- medical_alarm?: boolean;
274
+ sold?: boolean;
275
+ vip?: boolean;
276
+ do_not_disturb?: boolean;
277
+ make_up_room?: boolean;
278
+ remote_occupation?: boolean;
279
+ door_open_time_limit?: number;
280
+ window_open_time_limit?: number;
281
+ medical_alarm?: boolean;
282
+ }
283
+
284
+
285
+ interface RoomGroupingConfigurationParams {
286
+ replica_1_active?: boolean;
287
+ replica_2_active?: boolean;
288
+ replica_3_active?: boolean;
289
+ associate_clime?: boolean;
290
+ associate_presence?: boolean;
284
291
  }
285
292
 
286
293
  declare class GenericInstanceConfigClient<T> implements ServiceInstanceConfigClient<T> {
@@ -351,6 +358,21 @@ declare class RoomConsumesClient implements ServiceTypeClient<RoomConsumes1Alert
351
358
  }
352
359
  declare const roomConsumesClient: RoomConsumesClient;
353
360
 
361
+ declare class RoomGroupingConfigClient extends GenericInstanceConfigClient<RoomGroupingConfigurationParams> {
362
+ constructor();
363
+ }
364
+ declare class RoomGroupingClient implements ServiceTypeClient<any, RoomGrouping1DataEventValue> {
365
+ private _configurationClient;
366
+ get configuration(): RoomGroupingConfigClient;
367
+ constructor();
368
+ getAlerts(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<any>[]>>;
369
+ getData(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGrouping1DataEventValue>[]>>;
370
+ getInstanceData: (prjId: string, instanceId: string, params?: ServiceInstanceDataRequestParams) => Promise<AxiosResponse<ServiceDataMeasurement<RoomGrouping1DataEventValue>>>;
371
+ getInstanceHistoric(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGrouping1DataEventValue>[]>>;
372
+ getInstanceHistoricAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<RoomGrouping1DataEventValue>[]>>;
373
+ }
374
+ declare const roomGroupingClient: RoomGroupingClient;
375
+
354
376
  interface Classifier {
355
377
  id: string;
356
378
  name: string;
@@ -390,32 +412,6 @@ declare class DevicesClient {
390
412
  }
391
413
  declare const devicesClient: DevicesClient;
392
414
 
393
- interface ServiceInstanceDevicesInfo {
394
- device: string;
395
- index?: number;
396
- }
397
-
398
- interface RobotCloudServiceInstance extends RobotCloudNamedItem {
399
- service: string;
400
- }
401
-
402
-
403
- interface ServiceInstanceDetails extends RobotCloudServiceInstance {
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
415
  interface ProjectLocations {
420
416
  id: string
421
417
  name: string
@@ -442,8 +438,6 @@ interface RobotCloudLocationDetails {
442
438
  }
443
439
 
444
440
  declare class LocationsClient {
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[]>>;
447
441
  getLocations: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudNamedItem[]>>;
448
442
  postLocations: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudLocationCreate[]>>;
449
443
  getLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationDetails>>;
@@ -453,26 +447,80 @@ declare class LocationsClient {
453
447
  declare const locationsClient: LocationsClient;
454
448
 
455
449
  declare class ProjectsClient {
450
+ getOrganizationProjects: (organizationId: string) => Promise<AxiosResponse<RobotCloudProject[]>>;
451
+ postOrganizationProjects: (organizationId: string) => Promise<AxiosResponse<RobotCloudCreateProject>>;
456
452
  getProjects: (params?: ProjectsRequestParams) => Promise<AxiosResponse<RobotCloudProject[]>>;
457
453
  getProjectDetails: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudProjectDetails>>;
458
454
  putProjectDetails: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudPutProject>>;
459
455
  deleteProject: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudDelete>>;
460
456
  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
457
  getProjectApplications: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudProjectApplications[]>>;
464
458
  getProjectApplication: (prjId: string, appId: string) => Promise<AxiosResponse<RobotCloudProjectApplications>>;
465
459
  putProjectApplication: (prjId: string, appId: string) => Promise<AxiosResponse<RobotCloudApplicationEnable>>;
466
460
  }
467
461
  declare const projectsClient: ProjectsClient;
468
462
 
463
+ interface ServiceInstanceDevicesInfo {
464
+ device: string;
465
+ index?: number;
466
+ }
467
+
468
+ interface RobotCloudServiceInstance extends RobotCloudNamedItem {
469
+ service: string;
470
+ }
471
+
472
+
473
+ interface ServiceInstanceDetails extends RobotCloudServiceInstance {
474
+ description?: string;
475
+ location?: string;
476
+ tags?: string[];
477
+ subsystems?: string[];
478
+ classifier?: string;
479
+ }
480
+
481
+ interface ModifyServiceInstanceDetails {
482
+ description?: string;
483
+ name?: string;
484
+ tags?: string[];
485
+ subsystems?: string[];
486
+ classifier?: string;
487
+ }
488
+
489
+ interface CreateServiceInstance extends RobotCloudServiceInstance {
490
+ description?: string;
491
+ name: string
492
+ tags?: string[];
493
+ subsystems?: string[];
494
+ classifier?: string;
495
+ }
496
+
497
+ interface ProjectSizeInstances {
498
+ total: number
499
+ filtered: number
500
+ }
501
+
469
502
  declare class ServiceInstancesClient {
470
503
  getAll: (prjId: string, params?: ServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
471
504
  getServiceInstances: (prjId: string, service_type: string, params?: ServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
472
- getServiceInstance: (prjId: string, service_type: string, service_id: string) => Promise<AxiosResponse<ServiceInstanceDetails, any, {}>>;
473
- getServiceInstanceDevicesInfo: (prjId: string, service_type: string, service_id: string) => Promise<AxiosResponse<Record<string, ServiceInstanceDevicesInfo>, any, {}>>;
505
+ getProjectServiceTypes: (prjId: string, params?: ProjectDetailsRequestParams) => Promise<AxiosResponse<RobotCloudServiceTypeDetails[]>>;
506
+ getLocationServiceInstances: (prjId: string, locId: string, service_type: string, params?: LocationServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
507
+ postLocationServiceInstances: (prjId: string, locId: string, service_type: string, params?: LocationServiceInstancesRequestParams) => Promise<AxiosResponse<CreateServiceInstance>>;
508
+ getServiceInstance: (prjId: string, service_type: string, instance_id: string) => Promise<AxiosResponse<ServiceInstanceDetails, any, {}>>;
509
+ putServiceInstance: (prjId: string, service_type: string, instance_id: string) => Promise<AxiosResponse<ModifyServiceInstanceDetails, any, {}>>;
510
+ deleteServiceInstance: (prjId: string, service_type: string, instance_id: string) => Promise<AxiosResponse<RobotCloudDelete, any, {}>>;
511
+ getServiceInstanceDevicesInfo: (prjId: string, service_type: string, instance_id: string) => Promise<AxiosResponse<Record<string, ServiceInstanceDevicesInfo>, any, {}>>;
512
+ putServiceInstanceDevicesInfo: (prjId: string, service_type: string, instance_id: string) => Promise<AxiosResponse<Record<string, ServiceInstanceDevicesInfo>, any, {}>>;
474
513
  getServiceAllInstancesData(prjId: string, service_type: string): Promise<AxiosResponse<ServiceDataMeasurement<any>[]>>;
514
+ getServiceInstancesData(prjId: string, service_type: string, instance_id: string): Promise<AxiosResponse<ServiceDataMeasurement<any>[]>>;
475
515
  getServiceAllInstancesAlerts(prjId: string, service_type: string): Promise<AxiosResponse<ServiceInstanceRead<any>[]>>;
516
+ getServiceInstancesAlerts(prjId: string, service_type: string, instance_id: string): Promise<AxiosResponse<ServiceDataMeasurement<any>[]>>;
517
+ getServiceInstancesConfiguration(prjId: string, service_type: string, instance_id: string): Promise<AxiosResponse<ServiceDataMeasurement<any>[]>>;
518
+ putServiceInstancesConfiguration(prjId: string, service_type: string, instance_id: string): Promise<AxiosResponse<ServiceDataMeasurement<any>[]>>;
519
+ getServiceInstancesHistoricData(prjId: string, service_type: string, instance_id: string): Promise<AxiosResponse<ServiceDataMeasurement<any>[]>>;
520
+ getServiceInstancesHistoricDataAggregate(prjId: string, service_type: string, instance_id: string): Promise<AxiosResponse<ServiceDataMeasurement<any>[]>>;
521
+ getServiceLocation(prjId: string, locationId: string): Promise<AxiosResponse<RobotCloudServiceTypeDetails[]>>;
522
+ getSizeProjectInstances(prjId: string): Promise<AxiosResponse<ProjectSizeInstances>>;
523
+ getSizeProjectServicesInstances(prjId: string, service_type: string): Promise<AxiosResponse<ProjectSizeInstances>>;
476
524
  }
477
525
  declare const serviceInstancesClient: ServiceInstancesClient;
478
526
 
@@ -497,4 +545,4 @@ declare const alertsClient: AlertsClient;
497
545
  declare const organizationsClient: OrganizationsClient;
498
546
  declare const usersClient: UsersClient;
499
547
 
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 };
548
+ 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, type ModifyServiceInstanceDetails, OrganizationsClient, ProjectClassifiersRequestParams, ProjectDetailsRequestParams, ProjectLocationsRequestParams, type ProjectSizeInstances, ProjectsRequestParams, RegimState, RobotCloudApplicationEnable, RobotCloudClientConfig, RobotCloudCreateApplication, RobotCloudCreateOrganization, RobotCloudCreateProject, RobotCloudDelete, RobotCloudDescribedItem, RobotCloudDeviceConfiguration, RobotCloudDeviceDetails, RobotCloudGetApplication, type RobotCloudJWTPayload, RobotCloudNamedItem, RobotCloudOrganizationCreateUser, RobotCloudOrganizationDetails, RobotCloudOrganizationUsers, RobotCloudOrganizations, RobotCloudPostUserProject, RobotCloudProject, RobotCloudProjectApplications, RobotCloudProjectDetails, RobotCloudProjectUsers, RobotCloudPutApplication, RobotCloudPutOrganization, RobotCloudPutProject, RobotCloudPutProjectUser, RobotCloudPutUserDetails, RobotCloudRobotCloudDeviceCreate, RobotCloudRobotCloudDeviceModify, type RobotCloudServiceInstance, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RobotCloudUserOrganization, RobotCloudUserProject, RobotCloudUserSimple, RobotCloudUsers, RoomClime1AlertEventValue, type RoomClime1Data, type RoomClimeAlertsKeys, RoomClimeClient, type RoomClimeConfigurationParams, RoomConsumes1AlertEventValue, type RoomConsumes1Data, type RoomGrouping1DataEventValue, type RoomGrouping1InstanceDeviceConfig, type RoomGroupingConfigurationParams, 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, roomGroupingClient, roomGuestStatusClient, serviceInstancesClient, subsystemsClient, usersClient };
package/dist/index.js CHANGED
@@ -50,6 +50,7 @@ __export(index_exports, {
50
50
  robotcloudApi: () => robotCloudApi_default,
51
51
  roomClimeClient: () => roomClimeClient,
52
52
  roomConsumesClient: () => roomConsumesClient,
53
+ roomGroupingClient: () => roomGroupingClient,
53
54
  roomGuestStatusClient: () => roomGuestStatusClient,
54
55
  serviceInstancesClient: () => serviceInstancesClient,
55
56
  subsystemsClient: () => subsystemsClient,
@@ -137,7 +138,7 @@ var import_axios3 = __toESM(require("axios"));
137
138
  var import_axios2 = __toESM(require("axios"));
138
139
  var LoginClientImpl = class {
139
140
  constructor(robotcloudApi2) {
140
- this.logger = useLogger("AlertsClientImpl");
141
+ this.logger = useLogger("LoginClientImpl");
141
142
  this.robotcloudApi = robotcloudApi2;
142
143
  }
143
144
  async login(username, password, apiKey) {
@@ -275,16 +276,14 @@ var OrganizationsClient = class {
275
276
  `organizations/${organizationId}`
276
277
  );
277
278
  };
278
- this.getOrganizationProjects = (organizationId) => {
279
- return this.robotcloudApi.get(
280
- `organizations/${organizationId}/projects`
281
- );
282
- };
283
- this.postOrganizationProjects = (organizationId) => {
284
- return this.robotcloudApi.post(
285
- `organizations/${organizationId}/projects`
286
- );
287
- };
279
+ this.robotcloudApi = robotcloudApi2;
280
+ }
281
+ };
282
+
283
+ // src/client/users.ts
284
+ var UsersClient = class {
285
+ constructor(robotcloudApi2) {
286
+ this.logger = useLogger("UsersClient");
288
287
  this.getOrganizationUsers = (organizationId) => {
289
288
  return this.robotcloudApi.get(
290
289
  `organizations/${organizationId}/users`
@@ -295,14 +294,6 @@ var OrganizationsClient = class {
295
294
  `organizations/${organizationId}/users`
296
295
  );
297
296
  };
298
- this.robotcloudApi = robotcloudApi2;
299
- }
300
- };
301
-
302
- // src/client/users.ts
303
- var UsersClient = class {
304
- constructor(robotcloudApi2) {
305
- this.logger = useLogger("UsersClient");
306
297
  this.getUsers = () => {
307
298
  return this.robotcloudApi.get(`users`);
308
299
  };
@@ -316,7 +307,7 @@ var UsersClient = class {
316
307
  return this.robotcloudApi.delete(`users/${username}`);
317
308
  };
318
309
  this.getUserOrganizations = (username) => {
319
- return this.robotcloudApi.get(`users/${username}`);
310
+ return this.robotcloudApi.get(`users/${username}/organizations`);
320
311
  };
321
312
  this.getUserProjects = (username) => {
322
313
  return this.robotcloudApi.get(
@@ -361,10 +352,10 @@ var ApplicationsClient = class {
361
352
  return this.robotcloudApi.get(`application/register/${applicationId}`);
362
353
  };
363
354
  this.putApplication = (applicationId) => {
364
- return this.robotcloudApi.get(`application/register/${applicationId}`);
355
+ return this.robotcloudApi.put(`application/register/${applicationId}`);
365
356
  };
366
357
  this.deleteApplication = (applicationId) => {
367
- return this.robotcloudApi.get(`application/register/${applicationId}`);
358
+ return this.robotcloudApi.delete(`application/register/${applicationId}`);
368
359
  };
369
360
  this.robotcloudApi = robotcloudApi2;
370
361
  }
@@ -659,6 +650,50 @@ var RoomConsumesClient = class {
659
650
  };
660
651
  var roomConsumesClient = new RoomConsumesClient();
661
652
 
653
+ // src/client/services/room-grouping-1.ts
654
+ var RoomGroupingConfigClient = class extends GenericInstanceConfigClient {
655
+ constructor() {
656
+ super("RoomGrouping_1");
657
+ }
658
+ };
659
+ var RoomGroupingClient = class {
660
+ constructor() {
661
+ this.getInstanceData = (prjId, instanceId, params) => {
662
+ return robotCloudApi_default.get(
663
+ `/projects/${prjId}/services/RoomConsumes_1/instances/${instanceId}/data`,
664
+ {
665
+ params,
666
+ headers: {
667
+ Accept: "application/json"
668
+ }
669
+ }
670
+ );
671
+ };
672
+ this._configurationClient = new RoomGroupingConfigClient();
673
+ }
674
+ get configuration() {
675
+ return this._configurationClient;
676
+ }
677
+ getAlerts(prjId, params) {
678
+ throw Error("Not implemented method");
679
+ }
680
+ getData(prjId, params) {
681
+ return robotCloudApi_default.get(`/projects/${prjId}/services/RoomGrouping_1/data`, {
682
+ params,
683
+ headers: {
684
+ Accept: "application/json"
685
+ }
686
+ });
687
+ }
688
+ getInstanceHistoric(prjId, instanceId, startTime, endTime, params) {
689
+ throw Error("Not implemented method");
690
+ }
691
+ getInstanceHistoricAggregate(prjId, instanceId, startTime, endTime, aggFunction, periode, params) {
692
+ throw Error("Not implemented method");
693
+ }
694
+ };
695
+ var roomGroupingClient = new RoomGroupingClient();
696
+
662
697
  // src/client/projects/classifiers.ts
663
698
  var logger2 = useLogger("classifiers-client");
664
699
  var ClassifiersClient = class {
@@ -729,22 +764,6 @@ var devicesClient = new DevicesClient();
729
764
  // src/client/projects/locations.ts
730
765
  var LocationsClient = class {
731
766
  constructor() {
732
- this.getLocationServiceInstances = (prjId, locId, service_type, params) => {
733
- return robotCloudApi_default.get(
734
- `projects/${prjId}/locations/${locId}/services/${service_type}/instances`,
735
- {
736
- params
737
- }
738
- );
739
- };
740
- this.postLocationServiceInstances = (prjId, locId, service_type, params) => {
741
- return robotCloudApi_default.post(
742
- `projects/${prjId}/locations/${locId}/services/${service_type}/instances`,
743
- {
744
- params
745
- }
746
- );
747
- };
748
767
  this.getLocations = (prjId, params) => {
749
768
  return robotCloudApi_default.get(
750
769
  `projects/${prjId}/locations`,
@@ -786,6 +805,16 @@ var locationsClient = new LocationsClient();
786
805
  // src/client/projects/projects.ts
787
806
  var ProjectsClient = class {
788
807
  constructor() {
808
+ this.getOrganizationProjects = (organizationId) => {
809
+ return robotCloudApi_default.get(
810
+ `organizations/${organizationId}/projects`
811
+ );
812
+ };
813
+ this.postOrganizationProjects = (organizationId) => {
814
+ return robotCloudApi_default.post(
815
+ `organizations/${organizationId}/projects`
816
+ );
817
+ };
789
818
  this.getProjects = (params) => {
790
819
  return robotCloudApi_default.get("projects", {
791
820
  params
@@ -811,22 +840,6 @@ var ProjectsClient = class {
811
840
  params
812
841
  });
813
842
  };
814
- this.getProjectInstances = (prjId, params) => {
815
- return robotCloudApi_default.get(
816
- `projects/${prjId}/instances`,
817
- {
818
- params
819
- }
820
- );
821
- };
822
- this.getProjectServiceTypes = (prjId, params) => {
823
- return robotCloudApi_default.get(
824
- `projects/${prjId}/services`,
825
- {
826
- params
827
- }
828
- );
829
- };
830
843
  this.getProjectApplications = (prjId, params) => {
831
844
  return robotCloudApi_default.get(`projects/${prjId}/applications`, {
832
845
  params
@@ -868,23 +881,93 @@ var ServiceInstancesClient = class {
868
881
  }
869
882
  );
870
883
  };
871
- this.getServiceInstance = (prjId, service_type, service_id) => {
884
+ this.getProjectServiceTypes = (prjId, params) => {
872
885
  return robotCloudApi_default.get(
873
- `projects/${prjId}/services/${service_type}/instances/${service_id}`
886
+ `projects/${prjId}/services`,
887
+ {
888
+ params
889
+ }
874
890
  );
875
891
  };
876
- this.getServiceInstanceDevicesInfo = (prjId, service_type, service_id) => {
877
- return robotCloudApi_default.get(`projects/${prjId}/services/${service_type}/instances/${service_id}/deviceconf`);
892
+ this.getLocationServiceInstances = (prjId, locId, service_type, params) => {
893
+ return robotCloudApi_default.get(
894
+ `projects/${prjId}/locations/${locId}/services/${service_type}/instances`,
895
+ {
896
+ params
897
+ }
898
+ );
899
+ };
900
+ this.postLocationServiceInstances = (prjId, locId, service_type, params) => {
901
+ return robotCloudApi_default.post(
902
+ `projects/${prjId}/locations/${locId}/services/${service_type}/instances`,
903
+ {
904
+ params
905
+ }
906
+ );
907
+ };
908
+ this.getServiceInstance = (prjId, service_type, instance_id) => {
909
+ return robotCloudApi_default.get(
910
+ `projects/${prjId}/services/${service_type}/instances/${instance_id}`
911
+ );
912
+ };
913
+ this.putServiceInstance = (prjId, service_type, instance_id) => {
914
+ return robotCloudApi_default.put(
915
+ `projects/${prjId}/services/${service_type}/instances/${instance_id}`
916
+ );
917
+ };
918
+ this.deleteServiceInstance = (prjId, service_type, instance_id) => {
919
+ return robotCloudApi_default.delete(
920
+ `projects/${prjId}/services/${service_type}/instances/${instance_id}`
921
+ );
922
+ };
923
+ this.getServiceInstanceDevicesInfo = (prjId, service_type, instance_id) => {
924
+ return robotCloudApi_default.get(`projects/${prjId}/services/${service_type}/instances/${instance_id}/deviceconf`);
925
+ };
926
+ this.putServiceInstanceDevicesInfo = (prjId, service_type, instance_id) => {
927
+ return robotCloudApi_default.put(`projects/${prjId}/services/${service_type}/instances/${instance_id}/deviceconf`);
878
928
  };
879
929
  }
880
930
  getServiceAllInstancesData(prjId, service_type) {
881
931
  return robotCloudApi_default.get(`projects/${prjId}/services/${service_type}/data`);
882
932
  }
933
+ getServiceInstancesData(prjId, service_type, instance_id) {
934
+ return robotCloudApi_default.get(`projects/${prjId}/services/${service_type}/instances/${instance_id}/data`);
935
+ }
883
936
  getServiceAllInstancesAlerts(prjId, service_type) {
884
937
  return robotCloudApi_default.get(
885
938
  `projects/${prjId}/services/${service_type}/alert`
886
939
  );
887
940
  }
941
+ getServiceInstancesAlerts(prjId, service_type, instance_id) {
942
+ return robotCloudApi_default.get(`projects/${prjId}/services/${service_type}/instances/${instance_id}/alert`);
943
+ }
944
+ getServiceInstancesConfiguration(prjId, service_type, instance_id) {
945
+ return robotCloudApi_default.get(`projects/${prjId}/services/${service_type}/instances/${instance_id}/configuration`);
946
+ }
947
+ putServiceInstancesConfiguration(prjId, service_type, instance_id) {
948
+ return robotCloudApi_default.put(`projects/${prjId}/services/${service_type}/instances/${instance_id}/configuration`);
949
+ }
950
+ getServiceInstancesHistoricData(prjId, service_type, instance_id) {
951
+ return robotCloudApi_default.get(`projects/${prjId}/services/${service_type}/instances/${instance_id}/historic/data`);
952
+ }
953
+ getServiceInstancesHistoricDataAggregate(prjId, service_type, instance_id) {
954
+ return robotCloudApi_default.get(`projects/${prjId}/services/${service_type}/instances/${instance_id}/historic/data/aggregate`);
955
+ }
956
+ getServiceLocation(prjId, locationId) {
957
+ return robotCloudApi_default.get(
958
+ `projects/${prjId}/locations/${locationId}/services`
959
+ );
960
+ }
961
+ getSizeProjectInstances(prjId) {
962
+ return robotCloudApi_default.get(
963
+ `size/projects/${prjId}/instances`
964
+ );
965
+ }
966
+ getSizeProjectServicesInstances(prjId, service_type) {
967
+ return robotCloudApi_default.get(
968
+ `size/projects/${prjId}/services/${service_type}/instances`
969
+ );
970
+ }
888
971
  };
889
972
  var serviceInstancesClient = new ServiceInstancesClient();
890
973
 
@@ -1152,6 +1235,7 @@ var tagsHelper = new TagsHelper(tagsClient);
1152
1235
  robotcloudApi,
1153
1236
  roomClimeClient,
1154
1237
  roomConsumesClient,
1238
+ roomGroupingClient,
1155
1239
  roomGuestStatusClient,
1156
1240
  serviceInstancesClient,
1157
1241
  subsystemsClient,