@robotbas/robotcloud-client 0.3.4 → 0.3.6
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 +21 -5
- package/dist/helpers/index.js.map +1 -1
- package/dist/helpers/index.mjs +21 -5
- package/dist/helpers/index.mjs.map +1 -1
- package/dist/{index-CxEoN2em.d.mts → index-m8ewrXzb.d.mts} +1 -1
- package/dist/{index-CxEoN2em.d.ts → index-m8ewrXzb.d.ts} +1 -1
- package/dist/index.d.mts +52 -50
- package/dist/index.d.ts +52 -50
- package/dist/index.js +33 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
4
|
-
export {
|
|
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,
|
|
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
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
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
|
|
4
|
-
export {
|
|
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,
|
|
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
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
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
|
@@ -440,7 +440,11 @@ var GenericInstanceHistoricClient = class {
|
|
|
440
440
|
return robotCloudApi_default.get(
|
|
441
441
|
`/projects/${prjId}/services/${this.serviceName}/instances/${instanceId}/historic/data`,
|
|
442
442
|
{
|
|
443
|
-
params
|
|
443
|
+
params: {
|
|
444
|
+
start_time: startTime,
|
|
445
|
+
end_time: endTime,
|
|
446
|
+
...params
|
|
447
|
+
},
|
|
444
448
|
headers: {
|
|
445
449
|
Accept: "application/json"
|
|
446
450
|
}
|
|
@@ -451,7 +455,13 @@ var GenericInstanceHistoricClient = class {
|
|
|
451
455
|
return robotCloudApi_default.get(
|
|
452
456
|
`/projects/${prjId}/services/${this.serviceName}/instances/${instanceId}/historic/data/aggregate`,
|
|
453
457
|
{
|
|
454
|
-
params
|
|
458
|
+
params: {
|
|
459
|
+
start_time: startTime,
|
|
460
|
+
end_time: endTime,
|
|
461
|
+
function: aggFunction,
|
|
462
|
+
periode,
|
|
463
|
+
...params
|
|
464
|
+
},
|
|
455
465
|
headers: {
|
|
456
466
|
Accept: "application/json"
|
|
457
467
|
}
|
|
@@ -745,7 +755,7 @@ var devicesClient = new DevicesClient();
|
|
|
745
755
|
// src/client/projects/locations.ts
|
|
746
756
|
var LocationsClient = class {
|
|
747
757
|
constructor() {
|
|
748
|
-
this.
|
|
758
|
+
this.getAll = (prjId, params) => {
|
|
749
759
|
return robotCloudApi_default.get(
|
|
750
760
|
`projects/${prjId}/locations`,
|
|
751
761
|
{
|
|
@@ -753,7 +763,7 @@ var LocationsClient = class {
|
|
|
753
763
|
}
|
|
754
764
|
);
|
|
755
765
|
};
|
|
756
|
-
this.
|
|
766
|
+
this.post = (prjId, params) => {
|
|
757
767
|
return robotCloudApi_default.post(
|
|
758
768
|
`projects/${prjId}/locations`,
|
|
759
769
|
{
|
|
@@ -761,24 +771,40 @@ var LocationsClient = class {
|
|
|
761
771
|
}
|
|
762
772
|
);
|
|
763
773
|
};
|
|
764
|
-
this.
|
|
774
|
+
this.get = (locationId) => {
|
|
765
775
|
return robotCloudApi_default.get(
|
|
766
776
|
`locations/${locationId}`,
|
|
767
777
|
{}
|
|
768
778
|
);
|
|
769
779
|
};
|
|
770
|
-
this.
|
|
780
|
+
this.put = (locationId) => {
|
|
771
781
|
return robotCloudApi_default.put(
|
|
772
782
|
`locations/${locationId}`,
|
|
773
783
|
{}
|
|
774
784
|
);
|
|
775
785
|
};
|
|
776
|
-
this.
|
|
786
|
+
this.delete = (locationId) => {
|
|
777
787
|
return robotCloudApi_default.delete(
|
|
778
788
|
`locations/${locationId}`,
|
|
779
789
|
{}
|
|
780
790
|
);
|
|
781
791
|
};
|
|
792
|
+
this.getLocationServiceInstances = (prjId, locId, service_type, params) => {
|
|
793
|
+
return robotCloudApi_default.get(
|
|
794
|
+
`projects/${prjId}/locations/${locId}/services/${service_type}/instances`,
|
|
795
|
+
{
|
|
796
|
+
params
|
|
797
|
+
}
|
|
798
|
+
);
|
|
799
|
+
};
|
|
800
|
+
this.postLocationServiceInstances = (prjId, locId, service_type, params) => {
|
|
801
|
+
return robotCloudApi_default.post(
|
|
802
|
+
`projects/${prjId}/locations/${locId}/services/${service_type}/instances`,
|
|
803
|
+
{
|
|
804
|
+
params
|
|
805
|
+
}
|
|
806
|
+
);
|
|
807
|
+
};
|
|
782
808
|
}
|
|
783
809
|
};
|
|
784
810
|
var locationsClient = new LocationsClient();
|