@robotbas/robotcloud-client 0.3.4 → 0.3.5

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.mts 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 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 ServiceInstanceDataClient, y as ServiceInstanceDataRequestParams, z as ServiceDataMeasurement, B as ServiceDataRequestParams, C as ServiceInstanceAlertsClient, D as ServiceInstanceAlertRequestParams, E as ServiceAlertRequestParams, F as ServiceInstanceHistoricClient, G as ServiceInstanceHistoricParams, H as HistoricAggregateFunction, I as ServiceInstanceHistoricAggregateParams, J as RoomClime1AlertEventValue, K as ServiceTypeClient, L as AirQuality1DataEventValue, M as AirQuality1AlertEventValue, N as RoomConsumes1AlertEventValue, P as ProjectClassifiersRequestParams, O as RobotCloudRobotCloudDeviceCreate, Q as RobotCloudDeviceDetails, U as RobotCloudRobotCloudDeviceModify, V as RobotCloudDeviceConfiguration, W as ProjectLocationsRequestParams, X as RobotCloudProject, Y as RobotCloudCreateProject, Z as ProjectsRequestParams, _ as ProjectDetailsRequestParams, $ as RobotCloudProjectDetails, a0 as RobotCloudPutProject, a1 as RobotCloudProjectUsers, a2 as RobotCloudProjectApplications, a3 as RobotCloudApplicationEnable, a4 as ServiceInstancesRequestParams, a5 as RobotCloudServiceTypeDetails, a6 as LocationServiceInstancesRequestParams, a7 as ServiceInstanceRead } from './index-CxEoN2em.mjs';
4
- export { av as AirHandlingUnit1AlertEventValue, aw as AirHandlingUnit1DataEventValue, ao as AppAccessLevel, ak as BaseFullPaginableRequestParams, ay as ChillerHeatingPump1AlertEventValue, ax as ChillerHeatingPump1DataEventValue, aq as FancoilSpeedState, au as MeasurementStatus, am as OrganizationAccessLevel, ah as PaginableRequestParams, an as ProjectAccessLevel, af as ProjectModifyTag, ae as ProjectTag, ag as ProjectTagDetails, al as ProjectTagRequestParams, ac as ProjectTagTreeNode, ad as ProjectTagsTree, as as RobotCloudCreateUser, ab as RobotCloudPermissionsHelper, at as RobotCloudProjectInstances, ap as RobotCloudServiceType, ar as RobotCloudUserAppAccess, az as RoomGuestStatus1AlertEventValue, ai as SortableListRequestParams, aj as SubsystemTagsRequestParams, aa as robotCloudPermissionsHelper, a8 as tagsClient, a9 as tagsHelper } from './index-CxEoN2em.mjs';
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 ServiceInstanceDataClient, y as ServiceInstanceDataRequestParams, z as ServiceDataMeasurement, B as ServiceDataRequestParams, C as ServiceInstanceAlertsClient, D as ServiceInstanceAlertRequestParams, E as ServiceAlertRequestParams, F as ServiceInstanceHistoricClient, G as ServiceInstanceHistoricParams, H as HistoricAggregateFunction, I as ServiceInstanceHistoricAggregateParams, J as ServiceTypeClient, K as RoomClime1AlertEventValue, L as RoomGuestStatus1AlertEventValue, M as AirQuality1DataEventValue, N as AirQuality1AlertEventValue, O as RoomConsumes1AlertEventValue, P as ProjectClassifiersRequestParams, Q as RobotCloudRobotCloudDeviceCreate, U as RobotCloudDeviceDetails, V as RobotCloudRobotCloudDeviceModify, W as RobotCloudDeviceConfiguration, X as ProjectLocationsRequestParams, Y as RobotCloudServiceType, Z as LocationServiceInstancesRequestParams, _ as RobotCloudProject, $ as RobotCloudCreateProject, a0 as ProjectsRequestParams, a1 as ProjectDetailsRequestParams, a2 as RobotCloudProjectDetails, a3 as RobotCloudPutProject, a4 as RobotCloudProjectUsers, a5 as RobotCloudProjectApplications, a6 as RobotCloudApplicationEnable, a7 as ServiceInstancesRequestParams, a8 as RobotCloudServiceTypeDetails, a9 as ServiceInstanceRead } from './index-m8ewrXzb.mjs';
4
+ export { aw as AirHandlingUnit1AlertEventValue, ax as AirHandlingUnit1DataEventValue, aq as AppAccessLevel, am as BaseFullPaginableRequestParams, az as ChillerHeatingPump1AlertEventValue, ay as ChillerHeatingPump1DataEventValue, ar as FancoilSpeedState, av as MeasurementStatus, ao as OrganizationAccessLevel, aj as PaginableRequestParams, ap as ProjectAccessLevel, ah as ProjectModifyTag, ag as ProjectTag, ai as ProjectTagDetails, an as ProjectTagRequestParams, ae as ProjectTagTreeNode, af as ProjectTagsTree, at as RobotCloudCreateUser, ad as RobotCloudPermissionsHelper, au as RobotCloudProjectInstances, as as RobotCloudUserAppAccess, ak as SortableListRequestParams, al as SubsystemTagsRequestParams, ac as robotCloudPermissionsHelper, aa as tagsClient, ab as tagsHelper } from './index-m8ewrXzb.mjs';
5
5
 
6
6
  declare const robotcloudApi: axios.AxiosInstance;
7
7
 
@@ -362,7 +362,7 @@ declare class RoomClimeAlertClient extends GenericInstanceAlertClient<RoomClime1
362
362
  declare class RoomClimeHistoricClient extends GenericInstanceHistoricClient<RoomClime1Data> {
363
363
  constructor();
364
364
  }
365
- declare class RoomClimeClient {
365
+ declare class RoomClimeClient implements ServiceTypeClient<RoomClime1Data, RoomClime1AlertEventValue, RoomClimeConfigurationParams> {
366
366
  private _configurationClient;
367
367
  private _dataClient;
368
368
  private _alertClient;
@@ -381,13 +381,13 @@ declare class RoomGuestStatusConfigClient extends GenericInstanceConfigClient<Ro
381
381
  declare class RoomGuestStatusDataClient extends GenericInstanceDataClient<RoomGuestStatus1Data> {
382
382
  constructor();
383
383
  }
384
- declare class RoomGuestStatusAlertClient extends GenericInstanceAlertClient<{}> {
384
+ declare class RoomGuestStatusAlertClient extends GenericInstanceAlertClient<RoomGuestStatus1AlertEventValue> {
385
385
  constructor();
386
386
  }
387
387
  declare class RoomGuestStatusHistoricClient extends GenericInstanceHistoricClient<RoomGuestStatus1Data> {
388
388
  constructor();
389
389
  }
390
- declare class RoomGuestStatusClient implements ServiceTypeClient<RoomGuestStatus1Data, {}, RoomGuestStatusConfigurationParams> {
390
+ declare class RoomGuestStatusClient implements ServiceTypeClient<RoomGuestStatus1Data, RoomGuestStatus1AlertEventValue, RoomGuestStatusConfigurationParams> {
391
391
  private _configurationClient;
392
392
  private _dataClient;
393
393
  private _alertClient;
@@ -514,6 +514,45 @@ declare class DevicesClient {
514
514
  }
515
515
  declare const devicesClient: DevicesClient;
516
516
 
517
+ interface ServiceInstanceDevicesInfo {
518
+ device: string;
519
+ index?: number;
520
+ }
521
+
522
+ interface RobotCloudServiceInstance extends RobotCloudNamedItem {
523
+ service: string;
524
+ }
525
+
526
+
527
+ interface ServiceInstanceDetails extends RobotCloudServiceInstance {
528
+ description?: string;
529
+ location?: string;
530
+ tags?: string[];
531
+ subsystems?: string[];
532
+ classifier?: string;
533
+ }
534
+
535
+ interface ModifyServiceInstanceDetails {
536
+ description?: string;
537
+ name?: string;
538
+ tags?: string[];
539
+ subsystems?: string[];
540
+ classifier?: string;
541
+ }
542
+
543
+ interface CreateServiceInstance extends RobotCloudServiceInstance {
544
+ description?: string;
545
+ name: string
546
+ tags?: string[];
547
+ subsystems?: string[];
548
+ classifier?: string;
549
+ }
550
+
551
+ interface ProjectSizeInstances {
552
+ total: number
553
+ filtered: number
554
+ }
555
+
517
556
  interface ProjectLocations {
518
557
  id: string
519
558
  name: string
@@ -540,11 +579,13 @@ interface RobotCloudLocationDetails {
540
579
  }
541
580
 
542
581
  declare class LocationsClient {
543
- getLocations: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudNamedItem[]>>;
544
- postLocations: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudLocationCreate[]>>;
545
- getLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationDetails>>;
546
- putLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationModify>>;
547
- deleteLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
582
+ getAll: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudNamedItem[]>>;
583
+ post: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudLocationCreate[]>>;
584
+ get: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationDetails>>;
585
+ put: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationModify>>;
586
+ delete: (locationId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
587
+ getLocationServiceInstances: (prjId: string, locId: string, service_type: RobotCloudServiceType, params?: LocationServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
588
+ postLocationServiceInstances: (prjId: string, locId: string, service_type: RobotCloudServiceType, params?: LocationServiceInstancesRequestParams) => Promise<AxiosResponse<CreateServiceInstance[]>>;
548
589
  }
549
590
  declare const locationsClient: LocationsClient;
550
591
 
@@ -562,45 +603,6 @@ declare class ProjectsClient {
562
603
  }
563
604
  declare const projectsClient: ProjectsClient;
564
605
 
565
- interface ServiceInstanceDevicesInfo {
566
- device: string;
567
- index?: number;
568
- }
569
-
570
- interface RobotCloudServiceInstance extends RobotCloudNamedItem {
571
- service: string;
572
- }
573
-
574
-
575
- interface ServiceInstanceDetails extends RobotCloudServiceInstance {
576
- description?: string;
577
- location?: string;
578
- tags?: string[];
579
- subsystems?: string[];
580
- classifier?: string;
581
- }
582
-
583
- interface ModifyServiceInstanceDetails {
584
- description?: string;
585
- name?: string;
586
- tags?: string[];
587
- subsystems?: string[];
588
- classifier?: string;
589
- }
590
-
591
- interface CreateServiceInstance extends RobotCloudServiceInstance {
592
- description?: string;
593
- name: string
594
- tags?: string[];
595
- subsystems?: string[];
596
- classifier?: string;
597
- }
598
-
599
- interface ProjectSizeInstances {
600
- total: number
601
- filtered: number
602
- }
603
-
604
606
  declare class ServiceInstancesClient {
605
607
  getAll: (prjId: string, params?: ServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
606
608
  getServiceInstances: (prjId: string, service_type: string, params?: ServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
@@ -647,4 +649,4 @@ declare const alertsClient: AlertsClient;
647
649
  declare const organizationsClient: OrganizationsClient;
648
650
  declare const usersClient: UsersClient;
649
651
 
650
- export { type AirHandlingUnitConfigurationParams, AirQuality1AlertEventValue, AirQuality1DataEventValue, type AirQualityConfigurationParams, AlertAggregatedLogsRequestParams, type AlertLogAckAlerts, type AlertLogLine, AlertLogsListRequestParams, type AlertsClient, type AlertsLogsAggregated, type AlertsLogsList, type AlertsLogsStats, AlertsProjectStatsRequestParams, ApplicationsClient, type CheckTokenResponse, type ChillerHeatingPumpConfigurationParams, 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 RoomConsumesConfigurationParams, type RoomGrouping1DataEventValue, type RoomGrouping1InstanceDeviceConfig, type RoomGroupingConfigurationParams, type RoomGuestStatus1Data, type RoomGuestStatusConfigurationParams, ServiceAlertRequestParams, ServiceDataMeasurement, ServiceDataRequestParams, ServiceInstanceAlertRequestParams, ServiceInstanceAlertsClient, ServiceInstanceConfigClient, ServiceInstanceDataClient, ServiceInstanceDataRequestParams, type ServiceInstanceDetails, type ServiceInstanceDeviceConfig, type ServiceInstanceDevicesInfo, ServiceInstanceHistoricAggregateParams, ServiceInstanceHistoricClient, 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 };
652
+ export { type AirHandlingUnitConfigurationParams, AirQuality1AlertEventValue, AirQuality1DataEventValue, type AirQualityConfigurationParams, AlertAggregatedLogsRequestParams, type AlertLogAckAlerts, type AlertLogLine, AlertLogsListRequestParams, type AlertsClient, type AlertsLogsAggregated, type AlertsLogsList, type AlertsLogsStats, AlertsProjectStatsRequestParams, ApplicationsClient, type CheckTokenResponse, type ChillerHeatingPumpConfigurationParams, 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, RobotCloudServiceType, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RobotCloudUserOrganization, RobotCloudUserProject, RobotCloudUserSimple, RobotCloudUsers, RoomClime1AlertEventValue, type RoomClime1Data, type RoomClimeAlertsKeys, RoomClimeClient, type RoomClimeConfigurationParams, RoomConsumes1AlertEventValue, type RoomConsumes1Data, type RoomConsumesConfigurationParams, type RoomGrouping1DataEventValue, type RoomGrouping1InstanceDeviceConfig, type RoomGroupingConfigurationParams, RoomGuestStatus1AlertEventValue, type RoomGuestStatus1Data, type RoomGuestStatusConfigurationParams, ServiceAlertRequestParams, ServiceDataMeasurement, ServiceDataRequestParams, ServiceInstanceAlertRequestParams, ServiceInstanceAlertsClient, ServiceInstanceConfigClient, ServiceInstanceDataClient, ServiceInstanceDataRequestParams, type ServiceInstanceDetails, type ServiceInstanceDeviceConfig, type ServiceInstanceDevicesInfo, ServiceInstanceHistoricAggregateParams, ServiceInstanceHistoricClient, 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.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 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 ServiceInstanceDataClient, y as ServiceInstanceDataRequestParams, z as ServiceDataMeasurement, B as ServiceDataRequestParams, C as ServiceInstanceAlertsClient, D as ServiceInstanceAlertRequestParams, E as ServiceAlertRequestParams, F as ServiceInstanceHistoricClient, G as ServiceInstanceHistoricParams, H as HistoricAggregateFunction, I as ServiceInstanceHistoricAggregateParams, J as RoomClime1AlertEventValue, K as ServiceTypeClient, L as AirQuality1DataEventValue, M as AirQuality1AlertEventValue, N as RoomConsumes1AlertEventValue, P as ProjectClassifiersRequestParams, O as RobotCloudRobotCloudDeviceCreate, Q as RobotCloudDeviceDetails, U as RobotCloudRobotCloudDeviceModify, V as RobotCloudDeviceConfiguration, W as ProjectLocationsRequestParams, X as RobotCloudProject, Y as RobotCloudCreateProject, Z as ProjectsRequestParams, _ as ProjectDetailsRequestParams, $ as RobotCloudProjectDetails, a0 as RobotCloudPutProject, a1 as RobotCloudProjectUsers, a2 as RobotCloudProjectApplications, a3 as RobotCloudApplicationEnable, a4 as ServiceInstancesRequestParams, a5 as RobotCloudServiceTypeDetails, a6 as LocationServiceInstancesRequestParams, a7 as ServiceInstanceRead } from './index-CxEoN2em.js';
4
- export { av as AirHandlingUnit1AlertEventValue, aw as AirHandlingUnit1DataEventValue, ao as AppAccessLevel, ak as BaseFullPaginableRequestParams, ay as ChillerHeatingPump1AlertEventValue, ax as ChillerHeatingPump1DataEventValue, aq as FancoilSpeedState, au as MeasurementStatus, am as OrganizationAccessLevel, ah as PaginableRequestParams, an as ProjectAccessLevel, af as ProjectModifyTag, ae as ProjectTag, ag as ProjectTagDetails, al as ProjectTagRequestParams, ac as ProjectTagTreeNode, ad as ProjectTagsTree, as as RobotCloudCreateUser, ab as RobotCloudPermissionsHelper, at as RobotCloudProjectInstances, ap as RobotCloudServiceType, ar as RobotCloudUserAppAccess, az as RoomGuestStatus1AlertEventValue, ai as SortableListRequestParams, aj as SubsystemTagsRequestParams, aa as robotCloudPermissionsHelper, a8 as tagsClient, a9 as tagsHelper } from './index-CxEoN2em.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 ServiceInstanceDataClient, y as ServiceInstanceDataRequestParams, z as ServiceDataMeasurement, B as ServiceDataRequestParams, C as ServiceInstanceAlertsClient, D as ServiceInstanceAlertRequestParams, E as ServiceAlertRequestParams, F as ServiceInstanceHistoricClient, G as ServiceInstanceHistoricParams, H as HistoricAggregateFunction, I as ServiceInstanceHistoricAggregateParams, J as ServiceTypeClient, K as RoomClime1AlertEventValue, L as RoomGuestStatus1AlertEventValue, M as AirQuality1DataEventValue, N as AirQuality1AlertEventValue, O as RoomConsumes1AlertEventValue, P as ProjectClassifiersRequestParams, Q as RobotCloudRobotCloudDeviceCreate, U as RobotCloudDeviceDetails, V as RobotCloudRobotCloudDeviceModify, W as RobotCloudDeviceConfiguration, X as ProjectLocationsRequestParams, Y as RobotCloudServiceType, Z as LocationServiceInstancesRequestParams, _ as RobotCloudProject, $ as RobotCloudCreateProject, a0 as ProjectsRequestParams, a1 as ProjectDetailsRequestParams, a2 as RobotCloudProjectDetails, a3 as RobotCloudPutProject, a4 as RobotCloudProjectUsers, a5 as RobotCloudProjectApplications, a6 as RobotCloudApplicationEnable, a7 as ServiceInstancesRequestParams, a8 as RobotCloudServiceTypeDetails, a9 as ServiceInstanceRead } from './index-m8ewrXzb.js';
4
+ export { aw as AirHandlingUnit1AlertEventValue, ax as AirHandlingUnit1DataEventValue, aq as AppAccessLevel, am as BaseFullPaginableRequestParams, az as ChillerHeatingPump1AlertEventValue, ay as ChillerHeatingPump1DataEventValue, ar as FancoilSpeedState, av as MeasurementStatus, ao as OrganizationAccessLevel, aj as PaginableRequestParams, ap as ProjectAccessLevel, ah as ProjectModifyTag, ag as ProjectTag, ai as ProjectTagDetails, an as ProjectTagRequestParams, ae as ProjectTagTreeNode, af as ProjectTagsTree, at as RobotCloudCreateUser, ad as RobotCloudPermissionsHelper, au as RobotCloudProjectInstances, as as RobotCloudUserAppAccess, ak as SortableListRequestParams, al as SubsystemTagsRequestParams, ac as robotCloudPermissionsHelper, aa as tagsClient, ab as tagsHelper } from './index-m8ewrXzb.js';
5
5
 
6
6
  declare const robotcloudApi: axios.AxiosInstance;
7
7
 
@@ -362,7 +362,7 @@ declare class RoomClimeAlertClient extends GenericInstanceAlertClient<RoomClime1
362
362
  declare class RoomClimeHistoricClient extends GenericInstanceHistoricClient<RoomClime1Data> {
363
363
  constructor();
364
364
  }
365
- declare class RoomClimeClient {
365
+ declare class RoomClimeClient implements ServiceTypeClient<RoomClime1Data, RoomClime1AlertEventValue, RoomClimeConfigurationParams> {
366
366
  private _configurationClient;
367
367
  private _dataClient;
368
368
  private _alertClient;
@@ -381,13 +381,13 @@ declare class RoomGuestStatusConfigClient extends GenericInstanceConfigClient<Ro
381
381
  declare class RoomGuestStatusDataClient extends GenericInstanceDataClient<RoomGuestStatus1Data> {
382
382
  constructor();
383
383
  }
384
- declare class RoomGuestStatusAlertClient extends GenericInstanceAlertClient<{}> {
384
+ declare class RoomGuestStatusAlertClient extends GenericInstanceAlertClient<RoomGuestStatus1AlertEventValue> {
385
385
  constructor();
386
386
  }
387
387
  declare class RoomGuestStatusHistoricClient extends GenericInstanceHistoricClient<RoomGuestStatus1Data> {
388
388
  constructor();
389
389
  }
390
- declare class RoomGuestStatusClient implements ServiceTypeClient<RoomGuestStatus1Data, {}, RoomGuestStatusConfigurationParams> {
390
+ declare class RoomGuestStatusClient implements ServiceTypeClient<RoomGuestStatus1Data, RoomGuestStatus1AlertEventValue, RoomGuestStatusConfigurationParams> {
391
391
  private _configurationClient;
392
392
  private _dataClient;
393
393
  private _alertClient;
@@ -514,6 +514,45 @@ declare class DevicesClient {
514
514
  }
515
515
  declare const devicesClient: DevicesClient;
516
516
 
517
+ interface ServiceInstanceDevicesInfo {
518
+ device: string;
519
+ index?: number;
520
+ }
521
+
522
+ interface RobotCloudServiceInstance extends RobotCloudNamedItem {
523
+ service: string;
524
+ }
525
+
526
+
527
+ interface ServiceInstanceDetails extends RobotCloudServiceInstance {
528
+ description?: string;
529
+ location?: string;
530
+ tags?: string[];
531
+ subsystems?: string[];
532
+ classifier?: string;
533
+ }
534
+
535
+ interface ModifyServiceInstanceDetails {
536
+ description?: string;
537
+ name?: string;
538
+ tags?: string[];
539
+ subsystems?: string[];
540
+ classifier?: string;
541
+ }
542
+
543
+ interface CreateServiceInstance extends RobotCloudServiceInstance {
544
+ description?: string;
545
+ name: string
546
+ tags?: string[];
547
+ subsystems?: string[];
548
+ classifier?: string;
549
+ }
550
+
551
+ interface ProjectSizeInstances {
552
+ total: number
553
+ filtered: number
554
+ }
555
+
517
556
  interface ProjectLocations {
518
557
  id: string
519
558
  name: string
@@ -540,11 +579,13 @@ interface RobotCloudLocationDetails {
540
579
  }
541
580
 
542
581
  declare class LocationsClient {
543
- getLocations: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudNamedItem[]>>;
544
- postLocations: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudLocationCreate[]>>;
545
- getLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationDetails>>;
546
- putLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationModify>>;
547
- deleteLocation: (locationId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
582
+ getAll: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudNamedItem[]>>;
583
+ post: (prjId: string, params?: ProjectLocationsRequestParams) => Promise<AxiosResponse<RobotCloudLocationCreate[]>>;
584
+ get: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationDetails>>;
585
+ put: (locationId: string) => Promise<AxiosResponse<RobotCloudLocationModify>>;
586
+ delete: (locationId: string) => Promise<AxiosResponse<RobotCloudDelete>>;
587
+ getLocationServiceInstances: (prjId: string, locId: string, service_type: RobotCloudServiceType, params?: LocationServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
588
+ postLocationServiceInstances: (prjId: string, locId: string, service_type: RobotCloudServiceType, params?: LocationServiceInstancesRequestParams) => Promise<AxiosResponse<CreateServiceInstance[]>>;
548
589
  }
549
590
  declare const locationsClient: LocationsClient;
550
591
 
@@ -562,45 +603,6 @@ declare class ProjectsClient {
562
603
  }
563
604
  declare const projectsClient: ProjectsClient;
564
605
 
565
- interface ServiceInstanceDevicesInfo {
566
- device: string;
567
- index?: number;
568
- }
569
-
570
- interface RobotCloudServiceInstance extends RobotCloudNamedItem {
571
- service: string;
572
- }
573
-
574
-
575
- interface ServiceInstanceDetails extends RobotCloudServiceInstance {
576
- description?: string;
577
- location?: string;
578
- tags?: string[];
579
- subsystems?: string[];
580
- classifier?: string;
581
- }
582
-
583
- interface ModifyServiceInstanceDetails {
584
- description?: string;
585
- name?: string;
586
- tags?: string[];
587
- subsystems?: string[];
588
- classifier?: string;
589
- }
590
-
591
- interface CreateServiceInstance extends RobotCloudServiceInstance {
592
- description?: string;
593
- name: string
594
- tags?: string[];
595
- subsystems?: string[];
596
- classifier?: string;
597
- }
598
-
599
- interface ProjectSizeInstances {
600
- total: number
601
- filtered: number
602
- }
603
-
604
606
  declare class ServiceInstancesClient {
605
607
  getAll: (prjId: string, params?: ServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
606
608
  getServiceInstances: (prjId: string, service_type: string, params?: ServiceInstancesRequestParams) => Promise<AxiosResponse<RobotCloudServiceInstance[]>>;
@@ -647,4 +649,4 @@ declare const alertsClient: AlertsClient;
647
649
  declare const organizationsClient: OrganizationsClient;
648
650
  declare const usersClient: UsersClient;
649
651
 
650
- export { type AirHandlingUnitConfigurationParams, AirQuality1AlertEventValue, AirQuality1DataEventValue, type AirQualityConfigurationParams, AlertAggregatedLogsRequestParams, type AlertLogAckAlerts, type AlertLogLine, AlertLogsListRequestParams, type AlertsClient, type AlertsLogsAggregated, type AlertsLogsList, type AlertsLogsStats, AlertsProjectStatsRequestParams, ApplicationsClient, type CheckTokenResponse, type ChillerHeatingPumpConfigurationParams, 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 RoomConsumesConfigurationParams, type RoomGrouping1DataEventValue, type RoomGrouping1InstanceDeviceConfig, type RoomGroupingConfigurationParams, type RoomGuestStatus1Data, type RoomGuestStatusConfigurationParams, ServiceAlertRequestParams, ServiceDataMeasurement, ServiceDataRequestParams, ServiceInstanceAlertRequestParams, ServiceInstanceAlertsClient, ServiceInstanceConfigClient, ServiceInstanceDataClient, ServiceInstanceDataRequestParams, type ServiceInstanceDetails, type ServiceInstanceDeviceConfig, type ServiceInstanceDevicesInfo, ServiceInstanceHistoricAggregateParams, ServiceInstanceHistoricClient, 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 };
652
+ export { type AirHandlingUnitConfigurationParams, AirQuality1AlertEventValue, AirQuality1DataEventValue, type AirQualityConfigurationParams, AlertAggregatedLogsRequestParams, type AlertLogAckAlerts, type AlertLogLine, AlertLogsListRequestParams, type AlertsClient, type AlertsLogsAggregated, type AlertsLogsList, type AlertsLogsStats, AlertsProjectStatsRequestParams, ApplicationsClient, type CheckTokenResponse, type ChillerHeatingPumpConfigurationParams, 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, RobotCloudServiceType, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RobotCloudUserOrganization, RobotCloudUserProject, RobotCloudUserSimple, RobotCloudUsers, RoomClime1AlertEventValue, type RoomClime1Data, type RoomClimeAlertsKeys, RoomClimeClient, type RoomClimeConfigurationParams, RoomConsumes1AlertEventValue, type RoomConsumes1Data, type RoomConsumesConfigurationParams, type RoomGrouping1DataEventValue, type RoomGrouping1InstanceDeviceConfig, type RoomGroupingConfigurationParams, RoomGuestStatus1AlertEventValue, type RoomGuestStatus1Data, type RoomGuestStatusConfigurationParams, ServiceAlertRequestParams, ServiceDataMeasurement, ServiceDataRequestParams, ServiceInstanceAlertRequestParams, ServiceInstanceAlertsClient, ServiceInstanceConfigClient, ServiceInstanceDataClient, ServiceInstanceDataRequestParams, type ServiceInstanceDetails, type ServiceInstanceDeviceConfig, type ServiceInstanceDevicesInfo, ServiceInstanceHistoricAggregateParams, ServiceInstanceHistoricClient, 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
@@ -745,7 +745,7 @@ var devicesClient = new DevicesClient();
745
745
  // src/client/projects/locations.ts
746
746
  var LocationsClient = class {
747
747
  constructor() {
748
- this.getLocations = (prjId, params) => {
748
+ this.getAll = (prjId, params) => {
749
749
  return robotCloudApi_default.get(
750
750
  `projects/${prjId}/locations`,
751
751
  {
@@ -753,7 +753,7 @@ var LocationsClient = class {
753
753
  }
754
754
  );
755
755
  };
756
- this.postLocations = (prjId, params) => {
756
+ this.post = (prjId, params) => {
757
757
  return robotCloudApi_default.post(
758
758
  `projects/${prjId}/locations`,
759
759
  {
@@ -761,24 +761,40 @@ var LocationsClient = class {
761
761
  }
762
762
  );
763
763
  };
764
- this.getLocation = (locationId) => {
764
+ this.get = (locationId) => {
765
765
  return robotCloudApi_default.get(
766
766
  `locations/${locationId}`,
767
767
  {}
768
768
  );
769
769
  };
770
- this.putLocation = (locationId) => {
770
+ this.put = (locationId) => {
771
771
  return robotCloudApi_default.put(
772
772
  `locations/${locationId}`,
773
773
  {}
774
774
  );
775
775
  };
776
- this.deleteLocation = (locationId) => {
776
+ this.delete = (locationId) => {
777
777
  return robotCloudApi_default.delete(
778
778
  `locations/${locationId}`,
779
779
  {}
780
780
  );
781
781
  };
782
+ this.getLocationServiceInstances = (prjId, locId, service_type, params) => {
783
+ return robotCloudApi_default.get(
784
+ `projects/${prjId}/locations/${locId}/services/${service_type}/instances`,
785
+ {
786
+ params
787
+ }
788
+ );
789
+ };
790
+ this.postLocationServiceInstances = (prjId, locId, service_type, params) => {
791
+ return robotCloudApi_default.post(
792
+ `projects/${prjId}/locations/${locId}/services/${service_type}/instances`,
793
+ {
794
+ params
795
+ }
796
+ );
797
+ };
782
798
  }
783
799
  };
784
800
  var locationsClient = new LocationsClient();