@robotbas/robotcloud-client 0.3.3 → 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/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-B8PC1dr5.d.mts → index-m8ewrXzb.d.mts} +6 -6
- package/dist/{index-B8PC1dr5.d.ts → index-m8ewrXzb.d.ts} +6 -6
- package/dist/index.d.mts +60 -58
- package/dist/index.d.ts +60 -58
- package/dist/index.js +28 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/types/services.d.ts +5 -5
|
@@ -431,10 +431,10 @@ interface ServiceInstanceDataClient<T> {
|
|
|
431
431
|
getAll(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<T>[]>>;
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
interface
|
|
434
|
+
interface ServiceInstanceAlertsClient<T> {
|
|
435
435
|
|
|
436
436
|
/**
|
|
437
|
-
* Get
|
|
437
|
+
* Get Alerts for a given project and instance
|
|
438
438
|
* @param prjId - The project ID
|
|
439
439
|
* @param instanceId - The instance ID
|
|
440
440
|
* @param params - The request parameters
|
|
@@ -453,7 +453,7 @@ interface ServiceInstanceAlertClient<T> {
|
|
|
453
453
|
|
|
454
454
|
interface ServiceInstanceHistoricClient<T> {
|
|
455
455
|
|
|
456
|
-
|
|
456
|
+
get(
|
|
457
457
|
prjId: string,
|
|
458
458
|
instanceId: string,
|
|
459
459
|
startTime: Date,
|
|
@@ -461,7 +461,7 @@ interface ServiceInstanceHistoricClient<T> {
|
|
|
461
461
|
params: ServiceInstanceHistoricParams
|
|
462
462
|
): Promise<AxiosResponse<ServiceDataMeasurement<T>[]>>;
|
|
463
463
|
|
|
464
|
-
|
|
464
|
+
getAggregate(
|
|
465
465
|
prjId: string,
|
|
466
466
|
instanceId: string,
|
|
467
467
|
startTime: Date,
|
|
@@ -476,7 +476,7 @@ interface ServiceInstanceHistoricClient<T> {
|
|
|
476
476
|
interface ServiceTypeClient<T_DATA, T_ALERTS, T_CONFIG> {
|
|
477
477
|
get configuration(): ServiceInstanceConfigClient<T_CONFIG>;
|
|
478
478
|
get data(): ServiceInstanceDataClient<T_DATA>;
|
|
479
|
-
get
|
|
479
|
+
get alerts(): ServiceInstanceAlertsClient<T_ALERTS>;
|
|
480
480
|
get historic(): ServiceInstanceHistoricClient<T_DATA>;
|
|
481
481
|
}
|
|
482
482
|
|
|
@@ -640,4 +640,4 @@ declare const robotCloudPermissionsHelper: RobotCloudPermissionsHelper;
|
|
|
640
640
|
|
|
641
641
|
declare const tagsHelper: TagsHelper;
|
|
642
642
|
|
|
643
|
-
export { type
|
|
643
|
+
export { type RobotCloudCreateProject as $, type AlertsProjectStatsRequestParams as A, type ServiceDataRequestParams as B, type ServiceInstanceAlertsClient as C, type ServiceInstanceAlertRequestParams as D, type ServiceAlertRequestParams as E, type ServiceInstanceHistoricClient as F, type ServiceInstanceHistoricParams as G, type HistoricAggregateFunction as H, type ServiceInstanceHistoricAggregateParams as I, type ServiceTypeClient as J, type RoomClime1AlertEventValue as K, type RoomGuestStatus1AlertEventValue as L, type AirQuality1DataEventValue as M, type AirQuality1AlertEventValue as N, type RoomConsumes1AlertEventValue as O, type ProjectClassifiersRequestParams as P, type RobotCloudRobotCloudDeviceCreate as Q, type RobotCloudOrganizations as R, type SubsystemRequestParams as S, type TemperatureUnit as T, type RobotCloudDeviceDetails as U, type RobotCloudRobotCloudDeviceModify as V, type RobotCloudDeviceConfiguration as W, type ProjectLocationsRequestParams as X, type RobotCloudServiceType as Y, type LocationServiceInstancesRequestParams as Z, type RobotCloudProject as _, type RobotCloudCreateOrganization as a, type ProjectsRequestParams as a0, type ProjectDetailsRequestParams as a1, type RobotCloudProjectDetails as a2, type RobotCloudPutProject as a3, type RobotCloudProjectUsers as a4, type RobotCloudProjectApplications as a5, type RobotCloudApplicationEnable as a6, type ServiceInstancesRequestParams as a7, type RobotCloudServiceTypeDetails as a8, type ServiceInstanceRead as a9, tagsClient as aa, tagsHelper as ab, robotCloudPermissionsHelper as ac, type RobotCloudPermissionsHelper as ad, type ProjectTagTreeNode as ae, type ProjectTagsTree as af, type ProjectTag as ag, type ProjectModifyTag as ah, type ProjectTagDetails as ai, type PaginableRequestParams as aj, type SortableListRequestParams as ak, type SubsystemTagsRequestParams as al, type BaseFullPaginableRequestParams as am, type ProjectTagRequestParams as an, type OrganizationAccessLevel as ao, type ProjectAccessLevel as ap, type AppAccessLevel as aq, type FancoilSpeedState as ar, type RobotCloudUserAppAccess as as, type RobotCloudCreateUser as at, type RobotCloudProjectInstances as au, type MeasurementStatus as av, type AirHandlingUnit1AlertEventValue as aw, type AirHandlingUnit1DataEventValue as ax, type ChillerHeatingPump1DataEventValue as ay, type ChillerHeatingPump1AlertEventValue as az, type RobotCloudOrganizationDetails as b, 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 RobotCloudDescribedItem as r, type RobotCloudCreateApplication as s, type RobotCloudGetApplication as t, type RobotCloudPutApplication as u, type RegimState as v, type ServiceInstanceConfigClient as w, type ServiceInstanceDataClient as x, type ServiceInstanceDataRequestParams as y, type ServiceDataMeasurement 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 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
|
|
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
|
|
|
@@ -336,7 +336,7 @@ declare class GenericInstanceDataClient<T> implements ServiceInstanceDataClient<
|
|
|
336
336
|
get(prjId: string, instanceId: string, params?: ServiceInstanceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<T>>>;
|
|
337
337
|
getAll(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<T>[]>>;
|
|
338
338
|
}
|
|
339
|
-
declare class GenericInstanceAlertClient<T> implements
|
|
339
|
+
declare class GenericInstanceAlertClient<T> implements ServiceInstanceAlertsClient<T> {
|
|
340
340
|
private readonly serviceName;
|
|
341
341
|
constructor(serviceName: string);
|
|
342
342
|
get(prjId: string, instanceId: string, params?: ServiceInstanceAlertRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<T>>>;
|
|
@@ -345,8 +345,8 @@ declare class GenericInstanceAlertClient<T> implements ServiceInstanceAlertClien
|
|
|
345
345
|
declare class GenericInstanceHistoricClient<T> implements ServiceInstanceHistoricClient<T> {
|
|
346
346
|
private readonly serviceName;
|
|
347
347
|
constructor(serviceName: string);
|
|
348
|
-
|
|
349
|
-
|
|
348
|
+
get(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<T>[]>>;
|
|
349
|
+
getAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<T>[]>>;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
type RoomClimeAlertsKeys = "high_temperature" | "low_temperature" | "high_humidity" | "fancoil_on_overtime";
|
|
@@ -362,14 +362,14 @@ 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;
|
|
369
369
|
private _historicClient;
|
|
370
370
|
get configuration(): RoomClimeConfigClient;
|
|
371
371
|
get data(): RoomClimeDataClient;
|
|
372
|
-
get
|
|
372
|
+
get alerts(): RoomClimeAlertClient;
|
|
373
373
|
get historic(): RoomClimeHistoricClient;
|
|
374
374
|
constructor();
|
|
375
375
|
}
|
|
@@ -381,20 +381,20 @@ 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;
|
|
394
394
|
private _historicClient;
|
|
395
395
|
get configuration(): RoomGuestStatusConfigClient;
|
|
396
396
|
get data(): RoomGuestStatusDataClient;
|
|
397
|
-
get
|
|
397
|
+
get alerts(): RoomGuestStatusAlertClient;
|
|
398
398
|
get historic(): RoomGuestStatusHistoricClient;
|
|
399
399
|
constructor();
|
|
400
400
|
}
|
|
@@ -419,7 +419,7 @@ declare class AirQualityClient implements ServiceTypeClient<AirQuality1DataEvent
|
|
|
419
419
|
private _historicClient;
|
|
420
420
|
get configuration(): AirQualityConfigClient;
|
|
421
421
|
get data(): AirQualityDataClient;
|
|
422
|
-
get
|
|
422
|
+
get alerts(): AirQualityAlertClient;
|
|
423
423
|
get historic(): AirQualityHistoricClient;
|
|
424
424
|
constructor();
|
|
425
425
|
}
|
|
@@ -444,7 +444,7 @@ declare class RoomConsumesClient implements ServiceTypeClient<RoomConsumes1Data,
|
|
|
444
444
|
private _historicClient;
|
|
445
445
|
get configuration(): RoomConsumesConfigClient;
|
|
446
446
|
get data(): RoomConsumesDataClient;
|
|
447
|
-
get
|
|
447
|
+
get alerts(): RoomConsumesAlertClient;
|
|
448
448
|
get historic(): RoomConsumesHistoricClient;
|
|
449
449
|
constructor();
|
|
450
450
|
}
|
|
@@ -469,7 +469,7 @@ declare class RoomGroupingClient implements ServiceTypeClient<RoomGrouping1DataE
|
|
|
469
469
|
private _historicClient;
|
|
470
470
|
get configuration(): RoomGroupingConfigClient;
|
|
471
471
|
get data(): RoomGroupingDataClient;
|
|
472
|
-
get
|
|
472
|
+
get alerts(): RoomGroupingAlertClient;
|
|
473
473
|
get historic(): RoomGroupingHistoricClient;
|
|
474
474
|
constructor();
|
|
475
475
|
}
|
|
@@ -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,
|
|
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
|
|
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
|
|
|
@@ -336,7 +336,7 @@ declare class GenericInstanceDataClient<T> implements ServiceInstanceDataClient<
|
|
|
336
336
|
get(prjId: string, instanceId: string, params?: ServiceInstanceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<T>>>;
|
|
337
337
|
getAll(prjId: string, params?: ServiceDataRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<T>[]>>;
|
|
338
338
|
}
|
|
339
|
-
declare class GenericInstanceAlertClient<T> implements
|
|
339
|
+
declare class GenericInstanceAlertClient<T> implements ServiceInstanceAlertsClient<T> {
|
|
340
340
|
private readonly serviceName;
|
|
341
341
|
constructor(serviceName: string);
|
|
342
342
|
get(prjId: string, instanceId: string, params?: ServiceInstanceAlertRequestParams): Promise<AxiosResponse<ServiceDataMeasurement<T>>>;
|
|
@@ -345,8 +345,8 @@ declare class GenericInstanceAlertClient<T> implements ServiceInstanceAlertClien
|
|
|
345
345
|
declare class GenericInstanceHistoricClient<T> implements ServiceInstanceHistoricClient<T> {
|
|
346
346
|
private readonly serviceName;
|
|
347
347
|
constructor(serviceName: string);
|
|
348
|
-
|
|
349
|
-
|
|
348
|
+
get(prjId: string, instanceId: string, startTime: Date, endTime: Date, params: ServiceInstanceHistoricParams): Promise<AxiosResponse<ServiceDataMeasurement<T>[]>>;
|
|
349
|
+
getAggregate(prjId: string, instanceId: string, startTime: Date, endTime: Date, aggFunction: HistoricAggregateFunction, periode: string, params: ServiceInstanceHistoricAggregateParams): Promise<AxiosResponse<ServiceDataMeasurement<T>[]>>;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
type RoomClimeAlertsKeys = "high_temperature" | "low_temperature" | "high_humidity" | "fancoil_on_overtime";
|
|
@@ -362,14 +362,14 @@ 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;
|
|
369
369
|
private _historicClient;
|
|
370
370
|
get configuration(): RoomClimeConfigClient;
|
|
371
371
|
get data(): RoomClimeDataClient;
|
|
372
|
-
get
|
|
372
|
+
get alerts(): RoomClimeAlertClient;
|
|
373
373
|
get historic(): RoomClimeHistoricClient;
|
|
374
374
|
constructor();
|
|
375
375
|
}
|
|
@@ -381,20 +381,20 @@ 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;
|
|
394
394
|
private _historicClient;
|
|
395
395
|
get configuration(): RoomGuestStatusConfigClient;
|
|
396
396
|
get data(): RoomGuestStatusDataClient;
|
|
397
|
-
get
|
|
397
|
+
get alerts(): RoomGuestStatusAlertClient;
|
|
398
398
|
get historic(): RoomGuestStatusHistoricClient;
|
|
399
399
|
constructor();
|
|
400
400
|
}
|
|
@@ -419,7 +419,7 @@ declare class AirQualityClient implements ServiceTypeClient<AirQuality1DataEvent
|
|
|
419
419
|
private _historicClient;
|
|
420
420
|
get configuration(): AirQualityConfigClient;
|
|
421
421
|
get data(): AirQualityDataClient;
|
|
422
|
-
get
|
|
422
|
+
get alerts(): AirQualityAlertClient;
|
|
423
423
|
get historic(): AirQualityHistoricClient;
|
|
424
424
|
constructor();
|
|
425
425
|
}
|
|
@@ -444,7 +444,7 @@ declare class RoomConsumesClient implements ServiceTypeClient<RoomConsumes1Data,
|
|
|
444
444
|
private _historicClient;
|
|
445
445
|
get configuration(): RoomConsumesConfigClient;
|
|
446
446
|
get data(): RoomConsumesDataClient;
|
|
447
|
-
get
|
|
447
|
+
get alerts(): RoomConsumesAlertClient;
|
|
448
448
|
get historic(): RoomConsumesHistoricClient;
|
|
449
449
|
constructor();
|
|
450
450
|
}
|
|
@@ -469,7 +469,7 @@ declare class RoomGroupingClient implements ServiceTypeClient<RoomGrouping1DataE
|
|
|
469
469
|
private _historicClient;
|
|
470
470
|
get configuration(): RoomGroupingConfigClient;
|
|
471
471
|
get data(): RoomGroupingDataClient;
|
|
472
|
-
get
|
|
472
|
+
get alerts(): RoomGroupingAlertClient;
|
|
473
473
|
get historic(): RoomGroupingHistoricClient;
|
|
474
474
|
constructor();
|
|
475
475
|
}
|
|
@@ -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,
|
|
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
|
@@ -436,7 +436,7 @@ var GenericInstanceHistoricClient = class {
|
|
|
436
436
|
constructor(serviceName) {
|
|
437
437
|
this.serviceName = serviceName;
|
|
438
438
|
}
|
|
439
|
-
|
|
439
|
+
get(prjId, instanceId, startTime, endTime, params) {
|
|
440
440
|
return robotCloudApi_default.get(
|
|
441
441
|
`/projects/${prjId}/services/${this.serviceName}/instances/${instanceId}/historic/data`,
|
|
442
442
|
{
|
|
@@ -447,7 +447,7 @@ var GenericInstanceHistoricClient = class {
|
|
|
447
447
|
}
|
|
448
448
|
);
|
|
449
449
|
}
|
|
450
|
-
|
|
450
|
+
getAggregate(prjId, instanceId, startTime, endTime, aggFunction, periode, params) {
|
|
451
451
|
return robotCloudApi_default.get(
|
|
452
452
|
`/projects/${prjId}/services/${this.serviceName}/instances/${instanceId}/historic/data/aggregate`,
|
|
453
453
|
{
|
|
@@ -488,7 +488,7 @@ var RoomClimeClient = class {
|
|
|
488
488
|
get data() {
|
|
489
489
|
return this._dataClient;
|
|
490
490
|
}
|
|
491
|
-
get
|
|
491
|
+
get alerts() {
|
|
492
492
|
return this._alertClient;
|
|
493
493
|
}
|
|
494
494
|
get historic() {
|
|
@@ -531,7 +531,7 @@ var RoomGuestStatusClient = class {
|
|
|
531
531
|
get data() {
|
|
532
532
|
return this._dataClient;
|
|
533
533
|
}
|
|
534
|
-
get
|
|
534
|
+
get alerts() {
|
|
535
535
|
return this._alertClient;
|
|
536
536
|
}
|
|
537
537
|
get historic() {
|
|
@@ -574,7 +574,7 @@ var AirQualityClient = class {
|
|
|
574
574
|
get data() {
|
|
575
575
|
return this._dataClient;
|
|
576
576
|
}
|
|
577
|
-
get
|
|
577
|
+
get alerts() {
|
|
578
578
|
return this._alertClient;
|
|
579
579
|
}
|
|
580
580
|
get historic() {
|
|
@@ -617,7 +617,7 @@ var RoomConsumesClient = class {
|
|
|
617
617
|
get data() {
|
|
618
618
|
return this._dataClient;
|
|
619
619
|
}
|
|
620
|
-
get
|
|
620
|
+
get alerts() {
|
|
621
621
|
return this._alertClient;
|
|
622
622
|
}
|
|
623
623
|
get historic() {
|
|
@@ -660,7 +660,7 @@ var RoomGroupingClient = class {
|
|
|
660
660
|
get data() {
|
|
661
661
|
return this._dataClient;
|
|
662
662
|
}
|
|
663
|
-
get
|
|
663
|
+
get alerts() {
|
|
664
664
|
return this._alertClient;
|
|
665
665
|
}
|
|
666
666
|
get historic() {
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
764
|
+
this.get = (locationId) => {
|
|
765
765
|
return robotCloudApi_default.get(
|
|
766
766
|
`locations/${locationId}`,
|
|
767
767
|
{}
|
|
768
768
|
);
|
|
769
769
|
};
|
|
770
|
-
this.
|
|
770
|
+
this.put = (locationId) => {
|
|
771
771
|
return robotCloudApi_default.put(
|
|
772
772
|
`locations/${locationId}`,
|
|
773
773
|
{}
|
|
774
774
|
);
|
|
775
775
|
};
|
|
776
|
-
this.
|
|
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();
|