@robotbas/robotcloud-client 0.3.8 → 0.3.10
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/{index-B4EMC1Af.d.mts → index-DQ1Poh9r.d.mts} +10 -1
- package/dist/{index-B4EMC1Af.d.ts → index-DQ1Poh9r.d.ts} +10 -1
- package/dist/index.d.mts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/types/alerts.d.ts +17 -0
- package/types/request-params.d.ts +9 -0
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { af as RobotCloudPermissionsHelper, ae as robotCloudPermissionsHelper, ad as tagsHelper } from '../index-DQ1Poh9r.mjs';
|
|
2
2
|
import 'axios';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { af as RobotCloudPermissionsHelper, ae as robotCloudPermissionsHelper, ad as tagsHelper } from '../index-DQ1Poh9r.js';
|
|
2
2
|
import 'axios';
|
|
@@ -771,6 +771,15 @@ interface AlertAggregatedLogsRequestParams extends SubsystemTagsRequestParams {
|
|
|
771
771
|
offset?: string;
|
|
772
772
|
time_range: string;
|
|
773
773
|
}
|
|
774
|
+
|
|
775
|
+
interface AlertsByLocationRequestParams extends SubsystemTagsRequestParams, PaginableRequestParams {
|
|
776
|
+
tag_max_level?: number;
|
|
777
|
+
service_name?: string;
|
|
778
|
+
name?: string;
|
|
779
|
+
active?: boolean;
|
|
780
|
+
active_time?: string;
|
|
781
|
+
}
|
|
782
|
+
|
|
774
783
|
interface ServiceInstancesRequestParams
|
|
775
784
|
extends BaseFullPaginableRequestParams {
|
|
776
785
|
id?: string;
|
|
@@ -847,4 +856,4 @@ declare const robotCloudPermissionsHelper: RobotCloudPermissionsHelper;
|
|
|
847
856
|
|
|
848
857
|
declare const tagsHelper: TagsHelper;
|
|
849
858
|
|
|
850
|
-
export { type
|
|
859
|
+
export { type RobotCloudProject as $, type AlertsProjectStatsRequestParams as A, type ServiceDataMeasurement as B, type ServiceDataRequestParams as C, type ServiceInstanceAlertsClient as D, type ServiceInstanceAlertRequestParams as E, type ServiceAlertRequestParams as F, type ServiceInstanceHistoricClient as G, type ServiceInstanceHistoricParams as H, type HistoricAggregateFunction as I, type ServiceInstanceHistoricAggregateParams as J, type ServiceTypeClient as K, type RoomClime1AlertEventValue as L, type RoomGuestStatus1AlertEventValue as M, type AirQuality1DataEventValue as N, type AirQuality1AlertEventValue as O, type RoomConsumes1AlertEventValue as P, type ProjectClassifiersRequestParams as Q, type RobotCloudOrganizations as R, type SubsystemRequestParams as S, type TemperatureUnit as T, type RobotCloudRobotCloudDeviceCreate as U, type RobotCloudDeviceDetails as V, type RobotCloudRobotCloudDeviceModify as W, type RobotCloudDeviceConfiguration as X, type ProjectLocationsRequestParams as Y, type RobotCloudServiceType as Z, type LocationServiceInstancesRequestParams as _, type RobotCloudCreateOrganization as a, type TemporizedOutput1Data as a$, type RobotCloudCreateProject as a0, type ProjectsRequestParams as a1, type ProjectDetailsRequestParams as a2, type RobotCloudProjectDetails as a3, type RobotCloudPutProject as a4, type RobotCloudProjectUsers as a5, type RobotCloudProjectApplications as a6, type RobotCloudApplicationEnable as a7, type RobotCloudProjectInstances as a8, type RobotCloudServiceTypeDetails as a9, type ChillerHeatingPump1AlertEventValue as aA, type CoolHeatCons1DataEventValue as aB, type CoolHeatCons1AlertEventValue as aC, type CoolHeatProd1DataEventValue as aD, type CoolHeatProd1AlertEventValue as aE, type CoolHeatTemperature1DataEventValue as aF, type CoolHeatTemperature1AlertEventValue as aG, type EnergyCounter1DataEventValue as aH, type EnergyCounter1AlertEventValue as aI, type EnergyProduction1DataEventValue as aJ, type EnergyProduction1AlertEventValue as aK, type GasCounter1DataEventValue as aL, type GasCounter1AlertEventValue as aM, type GenericTemperature1DataEventValue as aN, type GenericTemperature1AlertEventValue as aO, type HeatMeter1DataEventValue as aP, type HeatMeter1AlertEventValue as aQ, type HeatProduction1DataEventValue as aR, type HeatProduction1AlertEventValue as aS, type OutdoorClime1DataEventValue as aT, type OutdoorClime1AlertEventValue as aU, type PowerMeter1DataEventValue as aV, type PowerMeter1AlertEventValue as aW, type RoomBlePairing1DataEventValue as aX, type RoomBlePairing1AlertEventValue as aY, type RoomDiagnostics1Data as aZ, type RoomDiagnostics1AlertEventValue as a_, type ServiceInstancesRequestParams as aa, type ServiceInstanceRead as ab, tagsClient as ac, tagsHelper as ad, robotCloudPermissionsHelper as ae, type RobotCloudPermissionsHelper as af, type ProjectTagTreeNode as ag, type ProjectTagsTree as ah, type ProjectTag as ai, type ProjectModifyTag as aj, type ProjectTagDetails as ak, type PaginableRequestParams as al, type SortableListRequestParams as am, type SubsystemTagsRequestParams as an, type BaseFullPaginableRequestParams as ao, type ProjectTagRequestParams as ap, type OrganizationAccessLevel as aq, type ProjectAccessLevel as ar, type AppAccessLevel as as, type FancoilSpeedState as at, type RobotCloudUserAppAccess as au, type RobotCloudCreateUser as av, type MeasurementStatus as aw, type AirHandlingUnit1AlertEventValue as ax, type AirHandlingUnit1DataEventValue as ay, type ChillerHeatingPump1DataEventValue as az, type RobotCloudOrganizationDetails as b, type TemporizedOutput1AlertEventValue as b0, type WaterCounter1Data as b1, type WaterCounter1AlertEventValue as b2, type RobotCloudPutOrganization as c, type RobotCloudDelete as d, type RobotCloudOrganizationUsers as e, type RobotCloudOrganizationCreateUser as f, type RobotCloudUsers as g, type RobotCloudUserDetails as h, type RobotCloudPutUserDetails as i, type RobotCloudUserOrganization as j, type RobotCloudUserProject as k, type RobotCloudPostUserProject as l, type RobotCloudPutProjectUser as m, type AlertLogsListRequestParams as n, type RobotCloudNamedItem as o, type RobotCloudUserSimple as p, type AlertAggregatedLogsRequestParams as q, type AlertsByLocationRequestParams as r, type RobotCloudDescribedItem as s, type RobotCloudCreateApplication as t, type RobotCloudGetApplication as u, type RobotCloudPutApplication as v, type RegimState as w, type ServiceInstanceConfigClient as x, type ServiceInstanceDataClient as y, type ServiceInstanceDataRequestParams as z };
|
|
@@ -771,6 +771,15 @@ interface AlertAggregatedLogsRequestParams extends SubsystemTagsRequestParams {
|
|
|
771
771
|
offset?: string;
|
|
772
772
|
time_range: string;
|
|
773
773
|
}
|
|
774
|
+
|
|
775
|
+
interface AlertsByLocationRequestParams extends SubsystemTagsRequestParams, PaginableRequestParams {
|
|
776
|
+
tag_max_level?: number;
|
|
777
|
+
service_name?: string;
|
|
778
|
+
name?: string;
|
|
779
|
+
active?: boolean;
|
|
780
|
+
active_time?: string;
|
|
781
|
+
}
|
|
782
|
+
|
|
774
783
|
interface ServiceInstancesRequestParams
|
|
775
784
|
extends BaseFullPaginableRequestParams {
|
|
776
785
|
id?: string;
|
|
@@ -847,4 +856,4 @@ declare const robotCloudPermissionsHelper: RobotCloudPermissionsHelper;
|
|
|
847
856
|
|
|
848
857
|
declare const tagsHelper: TagsHelper;
|
|
849
858
|
|
|
850
|
-
export { type
|
|
859
|
+
export { type RobotCloudProject as $, type AlertsProjectStatsRequestParams as A, type ServiceDataMeasurement as B, type ServiceDataRequestParams as C, type ServiceInstanceAlertsClient as D, type ServiceInstanceAlertRequestParams as E, type ServiceAlertRequestParams as F, type ServiceInstanceHistoricClient as G, type ServiceInstanceHistoricParams as H, type HistoricAggregateFunction as I, type ServiceInstanceHistoricAggregateParams as J, type ServiceTypeClient as K, type RoomClime1AlertEventValue as L, type RoomGuestStatus1AlertEventValue as M, type AirQuality1DataEventValue as N, type AirQuality1AlertEventValue as O, type RoomConsumes1AlertEventValue as P, type ProjectClassifiersRequestParams as Q, type RobotCloudOrganizations as R, type SubsystemRequestParams as S, type TemperatureUnit as T, type RobotCloudRobotCloudDeviceCreate as U, type RobotCloudDeviceDetails as V, type RobotCloudRobotCloudDeviceModify as W, type RobotCloudDeviceConfiguration as X, type ProjectLocationsRequestParams as Y, type RobotCloudServiceType as Z, type LocationServiceInstancesRequestParams as _, type RobotCloudCreateOrganization as a, type TemporizedOutput1Data as a$, type RobotCloudCreateProject as a0, type ProjectsRequestParams as a1, type ProjectDetailsRequestParams as a2, type RobotCloudProjectDetails as a3, type RobotCloudPutProject as a4, type RobotCloudProjectUsers as a5, type RobotCloudProjectApplications as a6, type RobotCloudApplicationEnable as a7, type RobotCloudProjectInstances as a8, type RobotCloudServiceTypeDetails as a9, type ChillerHeatingPump1AlertEventValue as aA, type CoolHeatCons1DataEventValue as aB, type CoolHeatCons1AlertEventValue as aC, type CoolHeatProd1DataEventValue as aD, type CoolHeatProd1AlertEventValue as aE, type CoolHeatTemperature1DataEventValue as aF, type CoolHeatTemperature1AlertEventValue as aG, type EnergyCounter1DataEventValue as aH, type EnergyCounter1AlertEventValue as aI, type EnergyProduction1DataEventValue as aJ, type EnergyProduction1AlertEventValue as aK, type GasCounter1DataEventValue as aL, type GasCounter1AlertEventValue as aM, type GenericTemperature1DataEventValue as aN, type GenericTemperature1AlertEventValue as aO, type HeatMeter1DataEventValue as aP, type HeatMeter1AlertEventValue as aQ, type HeatProduction1DataEventValue as aR, type HeatProduction1AlertEventValue as aS, type OutdoorClime1DataEventValue as aT, type OutdoorClime1AlertEventValue as aU, type PowerMeter1DataEventValue as aV, type PowerMeter1AlertEventValue as aW, type RoomBlePairing1DataEventValue as aX, type RoomBlePairing1AlertEventValue as aY, type RoomDiagnostics1Data as aZ, type RoomDiagnostics1AlertEventValue as a_, type ServiceInstancesRequestParams as aa, type ServiceInstanceRead as ab, tagsClient as ac, tagsHelper as ad, robotCloudPermissionsHelper as ae, type RobotCloudPermissionsHelper as af, type ProjectTagTreeNode as ag, type ProjectTagsTree as ah, type ProjectTag as ai, type ProjectModifyTag as aj, type ProjectTagDetails as ak, type PaginableRequestParams as al, type SortableListRequestParams as am, type SubsystemTagsRequestParams as an, type BaseFullPaginableRequestParams as ao, type ProjectTagRequestParams as ap, type OrganizationAccessLevel as aq, type ProjectAccessLevel as ar, type AppAccessLevel as as, type FancoilSpeedState as at, type RobotCloudUserAppAccess as au, type RobotCloudCreateUser as av, type MeasurementStatus as aw, type AirHandlingUnit1AlertEventValue as ax, type AirHandlingUnit1DataEventValue as ay, type ChillerHeatingPump1DataEventValue as az, type RobotCloudOrganizationDetails as b, type TemporizedOutput1AlertEventValue as b0, type WaterCounter1Data as b1, type WaterCounter1AlertEventValue as b2, type RobotCloudPutOrganization as c, type RobotCloudDelete as d, type RobotCloudOrganizationUsers as e, type RobotCloudOrganizationCreateUser as f, type RobotCloudUsers as g, type RobotCloudUserDetails as h, type RobotCloudPutUserDetails as i, type RobotCloudUserOrganization as j, type RobotCloudUserProject as k, type RobotCloudPostUserProject as l, type RobotCloudPutProjectUser as m, type AlertLogsListRequestParams as n, type RobotCloudNamedItem as o, type RobotCloudUserSimple as p, type AlertAggregatedLogsRequestParams as q, type AlertsByLocationRequestParams as r, type RobotCloudDescribedItem as s, type RobotCloudCreateApplication as t, type RobotCloudGetApplication as u, type RobotCloudPutApplication as v, type RegimState as w, type ServiceInstanceConfigClient as x, type ServiceInstanceDataClient as y, type ServiceInstanceDataRequestParams as z };
|
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
|
|
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 AlertsByLocationRequestParams, s as RobotCloudDescribedItem, t as RobotCloudCreateApplication, u as RobotCloudGetApplication, v as RobotCloudPutApplication, w as RegimState, T as TemperatureUnit, x as ServiceInstanceConfigClient, y as ServiceInstanceDataClient, z as ServiceInstanceDataRequestParams, B as ServiceDataMeasurement, C as ServiceDataRequestParams, D as ServiceInstanceAlertsClient, E as ServiceInstanceAlertRequestParams, F as ServiceAlertRequestParams, G as ServiceInstanceHistoricClient, H as ServiceInstanceHistoricParams, I as HistoricAggregateFunction, J as ServiceInstanceHistoricAggregateParams, K as ServiceTypeClient, L as RoomClime1AlertEventValue, M as RoomGuestStatus1AlertEventValue, N as AirQuality1DataEventValue, O as AirQuality1AlertEventValue, P as RoomConsumes1AlertEventValue, Q as ProjectClassifiersRequestParams, U as RobotCloudRobotCloudDeviceCreate, V as RobotCloudDeviceDetails, W as RobotCloudRobotCloudDeviceModify, X as RobotCloudDeviceConfiguration, Y as ProjectLocationsRequestParams, Z as RobotCloudServiceType, _ as LocationServiceInstancesRequestParams, $ as RobotCloudProject, a0 as RobotCloudCreateProject, a1 as ProjectsRequestParams, a2 as ProjectDetailsRequestParams, a3 as RobotCloudProjectDetails, a4 as RobotCloudPutProject, a5 as RobotCloudProjectUsers, a6 as RobotCloudProjectApplications, a7 as RobotCloudApplicationEnable, a8 as RobotCloudProjectInstances, a9 as RobotCloudServiceTypeDetails, aa as ServiceInstancesRequestParams, ab as ServiceInstanceRead } from './index-DQ1Poh9r.mjs';
|
|
4
|
+
export { ax as AirHandlingUnit1AlertEventValue, ay as AirHandlingUnit1DataEventValue, as as AppAccessLevel, ao as BaseFullPaginableRequestParams, aA as ChillerHeatingPump1AlertEventValue, az as ChillerHeatingPump1DataEventValue, aC as CoolHeatCons1AlertEventValue, aB as CoolHeatCons1DataEventValue, aE as CoolHeatProd1AlertEventValue, aD as CoolHeatProd1DataEventValue, aG as CoolHeatTemperature1AlertEventValue, aF as CoolHeatTemperature1DataEventValue, aI as EnergyCounter1AlertEventValue, aH as EnergyCounter1DataEventValue, aK as EnergyProduction1AlertEventValue, aJ as EnergyProduction1DataEventValue, at as FancoilSpeedState, aM as GasCounter1AlertEventValue, aL as GasCounter1DataEventValue, aO as GenericTemperature1AlertEventValue, aN as GenericTemperature1DataEventValue, aQ as HeatMeter1AlertEventValue, aP as HeatMeter1DataEventValue, aS as HeatProduction1AlertEventValue, aR as HeatProduction1DataEventValue, aw as MeasurementStatus, aq as OrganizationAccessLevel, aU as OutdoorClime1AlertEventValue, aT as OutdoorClime1DataEventValue, al as PaginableRequestParams, aW as PowerMeter1AlertEventValue, aV as PowerMeter1DataEventValue, ar as ProjectAccessLevel, aj as ProjectModifyTag, ai as ProjectTag, ak as ProjectTagDetails, ap as ProjectTagRequestParams, ag as ProjectTagTreeNode, ah as ProjectTagsTree, av as RobotCloudCreateUser, af as RobotCloudPermissionsHelper, au as RobotCloudUserAppAccess, aY as RoomBlePairing1AlertEventValue, aX as RoomBlePairing1DataEventValue, a_ as RoomDiagnostics1AlertEventValue, aZ as RoomDiagnostics1Data, am as SortableListRequestParams, an as SubsystemTagsRequestParams, b0 as TemporizedOutput1AlertEventValue, a$ as TemporizedOutput1Data, b2 as WaterCounter1AlertEventValue, b1 as WaterCounter1Data, ae as robotCloudPermissionsHelper, ac as tagsClient, ad as tagsHelper } from './index-DQ1Poh9r.mjs';
|
|
5
5
|
|
|
6
6
|
declare const robotcloudApi: axios.AxiosInstance;
|
|
7
7
|
|
|
@@ -136,6 +136,21 @@ interface AlertsLogsAggregated {
|
|
|
136
136
|
alerts: AlertsLogsAggregatedAlert[];
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
interface AlertsByLocation {
|
|
140
|
+
total_alerts: number;
|
|
141
|
+
tags: { tag: string, activation_count: number }[];
|
|
142
|
+
locations: {
|
|
143
|
+
total_size: number;
|
|
144
|
+
initial_index: number;
|
|
145
|
+
locations: {
|
|
146
|
+
location: string;
|
|
147
|
+
classifier: string;
|
|
148
|
+
alert_name: string;
|
|
149
|
+
activation_count: number;
|
|
150
|
+
}[];
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
139
154
|
interface AlertLogAckItem {
|
|
140
155
|
id: string;
|
|
141
156
|
acknowledged: boolean;
|
|
@@ -167,6 +182,7 @@ interface AlertsClient {
|
|
|
167
182
|
): Promise<AxiosResponse<AlertsLogsAggregated>>;
|
|
168
183
|
|
|
169
184
|
getAvailableAlerts(projectId: string, params?: SubsystemRequestParams): Promise<AxiosResponse<string[]>>;
|
|
185
|
+
getAlertsByLocation(projectId: string, params?: AlertsByLocationRequestParams): Promise<AxiosResponse<AlertsByLocation>>;
|
|
170
186
|
|
|
171
187
|
getServiceTypeAlertKeys(serviceType: string): string[];
|
|
172
188
|
}
|
|
@@ -723,4 +739,4 @@ declare const alertsClient: AlertsClient;
|
|
|
723
739
|
declare const organizationsClient: OrganizationsClient;
|
|
724
740
|
declare const usersClient: UsersClient;
|
|
725
741
|
|
|
726
|
-
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 CoolHeatConsConfigurationParams, type CoolHeatProdConfigurationParams, type CoolHeatTemperatureConfigurationParams, type CreateServiceInstance, type EnergyCounterConfigurationParams, type EnergyProductionConfigurationParams, type GasCounterConfigurationParams, type GenericTemperatureConfigurationParams, type HeatMeterConfigurationParams, type HeatProductionConfigurationParams, HistoricAggregateFunction, LocationServiceInstancesRequestParams, type LoginClient, type ModifyServiceInstanceDetails, OrganizationsClient, type OutdoorClimeConfigurationParams, type PowerMeterConfigurationParams, 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, RobotCloudProjectInstances, RobotCloudProjectUsers, RobotCloudPutApplication, RobotCloudPutOrganization, RobotCloudPutProject, RobotCloudPutProjectUser, RobotCloudPutUserDetails, RobotCloudRobotCloudDeviceCreate, RobotCloudRobotCloudDeviceModify, type RobotCloudServiceInstance, RobotCloudServiceType, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RobotCloudUserOrganization, RobotCloudUserProject, RobotCloudUserSimple, RobotCloudUsers, type RoomBlePairingConfigurationParams, RoomClime1AlertEventValue, type RoomClime1Data, type RoomClimeAlertsKeys, RoomClimeClient, type RoomClimeConfigurationParams, RoomConsumes1AlertEventValue, type RoomConsumes1Data, type RoomConsumesConfigurationParams, type RoomDiagnosticsConfigurationParams, 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 TemporizedOutputConfigurationParams, type TokenResponse, UsersClient, type WaterCounterConfigurationParams, airQualityClient, alertsClient, applicationsClient, classifiersClient, clientConfig, devicesClient, locationsClient, loginClient, organizationsClient, projectsClient, robotCloudToken, robotcloudApi, roomClimeClient, roomConsumesClient, roomGroupingClient, roomGuestStatusClient, serviceInstancesClient, subsystemsClient, usersClient };
|
|
742
|
+
export { type AirHandlingUnitConfigurationParams, AirQuality1AlertEventValue, AirQuality1DataEventValue, type AirQualityConfigurationParams, AlertAggregatedLogsRequestParams, type AlertLogAckAlerts, type AlertLogLine, AlertLogsListRequestParams, type AlertsByLocation, AlertsByLocationRequestParams, type AlertsClient, type AlertsLogsAggregated, type AlertsLogsList, type AlertsLogsStats, AlertsProjectStatsRequestParams, ApplicationsClient, type CheckTokenResponse, type ChillerHeatingPumpConfigurationParams, type Classifier, type ClassifierCreate, type ClassifierDetails, type ClassifierModify, type CoolHeatConsConfigurationParams, type CoolHeatProdConfigurationParams, type CoolHeatTemperatureConfigurationParams, type CreateServiceInstance, type EnergyCounterConfigurationParams, type EnergyProductionConfigurationParams, type GasCounterConfigurationParams, type GenericTemperatureConfigurationParams, type HeatMeterConfigurationParams, type HeatProductionConfigurationParams, HistoricAggregateFunction, LocationServiceInstancesRequestParams, type LoginClient, type ModifyServiceInstanceDetails, OrganizationsClient, type OutdoorClimeConfigurationParams, type PowerMeterConfigurationParams, 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, RobotCloudProjectInstances, RobotCloudProjectUsers, RobotCloudPutApplication, RobotCloudPutOrganization, RobotCloudPutProject, RobotCloudPutProjectUser, RobotCloudPutUserDetails, RobotCloudRobotCloudDeviceCreate, RobotCloudRobotCloudDeviceModify, type RobotCloudServiceInstance, RobotCloudServiceType, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RobotCloudUserOrganization, RobotCloudUserProject, RobotCloudUserSimple, RobotCloudUsers, type RoomBlePairingConfigurationParams, RoomClime1AlertEventValue, type RoomClime1Data, type RoomClimeAlertsKeys, RoomClimeClient, type RoomClimeConfigurationParams, RoomConsumes1AlertEventValue, type RoomConsumes1Data, type RoomConsumesConfigurationParams, type RoomDiagnosticsConfigurationParams, 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 TemporizedOutputConfigurationParams, type TokenResponse, UsersClient, type WaterCounterConfigurationParams, 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
|
|
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 AlertsByLocationRequestParams, s as RobotCloudDescribedItem, t as RobotCloudCreateApplication, u as RobotCloudGetApplication, v as RobotCloudPutApplication, w as RegimState, T as TemperatureUnit, x as ServiceInstanceConfigClient, y as ServiceInstanceDataClient, z as ServiceInstanceDataRequestParams, B as ServiceDataMeasurement, C as ServiceDataRequestParams, D as ServiceInstanceAlertsClient, E as ServiceInstanceAlertRequestParams, F as ServiceAlertRequestParams, G as ServiceInstanceHistoricClient, H as ServiceInstanceHistoricParams, I as HistoricAggregateFunction, J as ServiceInstanceHistoricAggregateParams, K as ServiceTypeClient, L as RoomClime1AlertEventValue, M as RoomGuestStatus1AlertEventValue, N as AirQuality1DataEventValue, O as AirQuality1AlertEventValue, P as RoomConsumes1AlertEventValue, Q as ProjectClassifiersRequestParams, U as RobotCloudRobotCloudDeviceCreate, V as RobotCloudDeviceDetails, W as RobotCloudRobotCloudDeviceModify, X as RobotCloudDeviceConfiguration, Y as ProjectLocationsRequestParams, Z as RobotCloudServiceType, _ as LocationServiceInstancesRequestParams, $ as RobotCloudProject, a0 as RobotCloudCreateProject, a1 as ProjectsRequestParams, a2 as ProjectDetailsRequestParams, a3 as RobotCloudProjectDetails, a4 as RobotCloudPutProject, a5 as RobotCloudProjectUsers, a6 as RobotCloudProjectApplications, a7 as RobotCloudApplicationEnable, a8 as RobotCloudProjectInstances, a9 as RobotCloudServiceTypeDetails, aa as ServiceInstancesRequestParams, ab as ServiceInstanceRead } from './index-DQ1Poh9r.js';
|
|
4
|
+
export { ax as AirHandlingUnit1AlertEventValue, ay as AirHandlingUnit1DataEventValue, as as AppAccessLevel, ao as BaseFullPaginableRequestParams, aA as ChillerHeatingPump1AlertEventValue, az as ChillerHeatingPump1DataEventValue, aC as CoolHeatCons1AlertEventValue, aB as CoolHeatCons1DataEventValue, aE as CoolHeatProd1AlertEventValue, aD as CoolHeatProd1DataEventValue, aG as CoolHeatTemperature1AlertEventValue, aF as CoolHeatTemperature1DataEventValue, aI as EnergyCounter1AlertEventValue, aH as EnergyCounter1DataEventValue, aK as EnergyProduction1AlertEventValue, aJ as EnergyProduction1DataEventValue, at as FancoilSpeedState, aM as GasCounter1AlertEventValue, aL as GasCounter1DataEventValue, aO as GenericTemperature1AlertEventValue, aN as GenericTemperature1DataEventValue, aQ as HeatMeter1AlertEventValue, aP as HeatMeter1DataEventValue, aS as HeatProduction1AlertEventValue, aR as HeatProduction1DataEventValue, aw as MeasurementStatus, aq as OrganizationAccessLevel, aU as OutdoorClime1AlertEventValue, aT as OutdoorClime1DataEventValue, al as PaginableRequestParams, aW as PowerMeter1AlertEventValue, aV as PowerMeter1DataEventValue, ar as ProjectAccessLevel, aj as ProjectModifyTag, ai as ProjectTag, ak as ProjectTagDetails, ap as ProjectTagRequestParams, ag as ProjectTagTreeNode, ah as ProjectTagsTree, av as RobotCloudCreateUser, af as RobotCloudPermissionsHelper, au as RobotCloudUserAppAccess, aY as RoomBlePairing1AlertEventValue, aX as RoomBlePairing1DataEventValue, a_ as RoomDiagnostics1AlertEventValue, aZ as RoomDiagnostics1Data, am as SortableListRequestParams, an as SubsystemTagsRequestParams, b0 as TemporizedOutput1AlertEventValue, a$ as TemporizedOutput1Data, b2 as WaterCounter1AlertEventValue, b1 as WaterCounter1Data, ae as robotCloudPermissionsHelper, ac as tagsClient, ad as tagsHelper } from './index-DQ1Poh9r.js';
|
|
5
5
|
|
|
6
6
|
declare const robotcloudApi: axios.AxiosInstance;
|
|
7
7
|
|
|
@@ -136,6 +136,21 @@ interface AlertsLogsAggregated {
|
|
|
136
136
|
alerts: AlertsLogsAggregatedAlert[];
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
interface AlertsByLocation {
|
|
140
|
+
total_alerts: number;
|
|
141
|
+
tags: { tag: string, activation_count: number }[];
|
|
142
|
+
locations: {
|
|
143
|
+
total_size: number;
|
|
144
|
+
initial_index: number;
|
|
145
|
+
locations: {
|
|
146
|
+
location: string;
|
|
147
|
+
classifier: string;
|
|
148
|
+
alert_name: string;
|
|
149
|
+
activation_count: number;
|
|
150
|
+
}[];
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
139
154
|
interface AlertLogAckItem {
|
|
140
155
|
id: string;
|
|
141
156
|
acknowledged: boolean;
|
|
@@ -167,6 +182,7 @@ interface AlertsClient {
|
|
|
167
182
|
): Promise<AxiosResponse<AlertsLogsAggregated>>;
|
|
168
183
|
|
|
169
184
|
getAvailableAlerts(projectId: string, params?: SubsystemRequestParams): Promise<AxiosResponse<string[]>>;
|
|
185
|
+
getAlertsByLocation(projectId: string, params?: AlertsByLocationRequestParams): Promise<AxiosResponse<AlertsByLocation>>;
|
|
170
186
|
|
|
171
187
|
getServiceTypeAlertKeys(serviceType: string): string[];
|
|
172
188
|
}
|
|
@@ -723,4 +739,4 @@ declare const alertsClient: AlertsClient;
|
|
|
723
739
|
declare const organizationsClient: OrganizationsClient;
|
|
724
740
|
declare const usersClient: UsersClient;
|
|
725
741
|
|
|
726
|
-
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 CoolHeatConsConfigurationParams, type CoolHeatProdConfigurationParams, type CoolHeatTemperatureConfigurationParams, type CreateServiceInstance, type EnergyCounterConfigurationParams, type EnergyProductionConfigurationParams, type GasCounterConfigurationParams, type GenericTemperatureConfigurationParams, type HeatMeterConfigurationParams, type HeatProductionConfigurationParams, HistoricAggregateFunction, LocationServiceInstancesRequestParams, type LoginClient, type ModifyServiceInstanceDetails, OrganizationsClient, type OutdoorClimeConfigurationParams, type PowerMeterConfigurationParams, 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, RobotCloudProjectInstances, RobotCloudProjectUsers, RobotCloudPutApplication, RobotCloudPutOrganization, RobotCloudPutProject, RobotCloudPutProjectUser, RobotCloudPutUserDetails, RobotCloudRobotCloudDeviceCreate, RobotCloudRobotCloudDeviceModify, type RobotCloudServiceInstance, RobotCloudServiceType, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RobotCloudUserOrganization, RobotCloudUserProject, RobotCloudUserSimple, RobotCloudUsers, type RoomBlePairingConfigurationParams, RoomClime1AlertEventValue, type RoomClime1Data, type RoomClimeAlertsKeys, RoomClimeClient, type RoomClimeConfigurationParams, RoomConsumes1AlertEventValue, type RoomConsumes1Data, type RoomConsumesConfigurationParams, type RoomDiagnosticsConfigurationParams, 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 TemporizedOutputConfigurationParams, type TokenResponse, UsersClient, type WaterCounterConfigurationParams, airQualityClient, alertsClient, applicationsClient, classifiersClient, clientConfig, devicesClient, locationsClient, loginClient, organizationsClient, projectsClient, robotCloudToken, robotcloudApi, roomClimeClient, roomConsumesClient, roomGroupingClient, roomGuestStatusClient, serviceInstancesClient, subsystemsClient, usersClient };
|
|
742
|
+
export { type AirHandlingUnitConfigurationParams, AirQuality1AlertEventValue, AirQuality1DataEventValue, type AirQualityConfigurationParams, AlertAggregatedLogsRequestParams, type AlertLogAckAlerts, type AlertLogLine, AlertLogsListRequestParams, type AlertsByLocation, AlertsByLocationRequestParams, type AlertsClient, type AlertsLogsAggregated, type AlertsLogsList, type AlertsLogsStats, AlertsProjectStatsRequestParams, ApplicationsClient, type CheckTokenResponse, type ChillerHeatingPumpConfigurationParams, type Classifier, type ClassifierCreate, type ClassifierDetails, type ClassifierModify, type CoolHeatConsConfigurationParams, type CoolHeatProdConfigurationParams, type CoolHeatTemperatureConfigurationParams, type CreateServiceInstance, type EnergyCounterConfigurationParams, type EnergyProductionConfigurationParams, type GasCounterConfigurationParams, type GenericTemperatureConfigurationParams, type HeatMeterConfigurationParams, type HeatProductionConfigurationParams, HistoricAggregateFunction, LocationServiceInstancesRequestParams, type LoginClient, type ModifyServiceInstanceDetails, OrganizationsClient, type OutdoorClimeConfigurationParams, type PowerMeterConfigurationParams, 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, RobotCloudProjectInstances, RobotCloudProjectUsers, RobotCloudPutApplication, RobotCloudPutOrganization, RobotCloudPutProject, RobotCloudPutProjectUser, RobotCloudPutUserDetails, RobotCloudRobotCloudDeviceCreate, RobotCloudRobotCloudDeviceModify, type RobotCloudServiceInstance, RobotCloudServiceType, RobotCloudServiceTypeDetails, RobotCloudUserDetails, RobotCloudUserOrganization, RobotCloudUserProject, RobotCloudUserSimple, RobotCloudUsers, type RoomBlePairingConfigurationParams, RoomClime1AlertEventValue, type RoomClime1Data, type RoomClimeAlertsKeys, RoomClimeClient, type RoomClimeConfigurationParams, RoomConsumes1AlertEventValue, type RoomConsumes1Data, type RoomConsumesConfigurationParams, type RoomDiagnosticsConfigurationParams, 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 TemporizedOutputConfigurationParams, type TokenResponse, UsersClient, type WaterCounterConfigurationParams, airQualityClient, alertsClient, applicationsClient, classifiersClient, clientConfig, devicesClient, locationsClient, loginClient, organizationsClient, projectsClient, robotCloudToken, robotcloudApi, roomClimeClient, roomConsumesClient, roomGroupingClient, roomGuestStatusClient, serviceInstancesClient, subsystemsClient, usersClient };
|
package/dist/index.js
CHANGED
|
@@ -246,6 +246,12 @@ var AlertsClientImpl = class {
|
|
|
246
246
|
data: alerts
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
|
+
getAlertsByLocation(projectId, params) {
|
|
250
|
+
return this.robotcloudApi.get(
|
|
251
|
+
`projects/${projectId}/alerts/bylocation`,
|
|
252
|
+
{ params }
|
|
253
|
+
);
|
|
254
|
+
}
|
|
249
255
|
getServiceTypeAlertKeys(serviceType) {
|
|
250
256
|
return ALERTS_BY_SERVICE_TYPE[serviceType];
|
|
251
257
|
}
|