@robotbas/robotcloud-client 0.2.13 → 0.2.14
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 +5 -0
- package/dist/helpers/index.js.map +1 -1
- package/dist/helpers/index.mjs +5 -0
- package/dist/helpers/index.mjs.map +1 -1
- package/dist/{index-duCflDSx.d.mts → index-DFFwH6QP.d.mts} +33 -33
- package/dist/{index-duCflDSx.d.ts → index-DFFwH6QP.d.ts} +33 -33
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/types/RobotCloudClient.d.ts +32 -32
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type TemperatureUnit = "CELSIUS" | "FAHRENHEIT"
|
|
2
|
-
export type RegimState = "COLD"|"HEAT"|"AUTO"
|
|
2
|
+
export type RegimState = "COLD" | "HEAT" | "AUTO"
|
|
3
3
|
|
|
4
4
|
export type OrganizationAccessLevel = "STAFF" | "STANDARD" | "ADMIN" | "SUPERUSER" | "MASTER"
|
|
5
5
|
export type ProjectAccessLevel = "BLOCKED" | "RESTRICTED" | "BASIC" | "ADVANCED"
|
|
6
6
|
export type AppAccessLevel = "BLOCKED" | "STANDARD" | "ADVANCED" | "ADMIN"
|
|
7
7
|
|
|
8
|
-
export type RobotCloudServiceType = "RoomClime_1"|"RoomGuestStatus_1"|"AirQuality_1"
|
|
8
|
+
export type RobotCloudServiceType = "RoomClime_1" | "RoomGuestStatus_1" | "AirQuality_1"
|
|
9
9
|
|
|
10
10
|
// Desired fancoil speed (0 = Auto, 1..3 = Manual Speed)
|
|
11
|
-
export type FancoilSpeedState = 0|1|2|3;
|
|
11
|
+
export type FancoilSpeedState = 0 | 1 | 2 | 3;
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
/** RESPONSE **/
|
|
@@ -17,7 +17,9 @@ export interface RobotCloudNamedItem {
|
|
|
17
17
|
id: string;
|
|
18
18
|
name: string;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
export interface RobotCloudDescribedItem extends RobotCloudNamedItem {
|
|
21
|
+
description?: string;
|
|
22
|
+
}
|
|
21
23
|
export interface RobotCloudProject {
|
|
22
24
|
id: string;
|
|
23
25
|
name: string;
|
|
@@ -26,39 +28,38 @@ export interface RobotCloudProject {
|
|
|
26
28
|
|
|
27
29
|
/** USERS */
|
|
28
30
|
export interface RobotCloudUserAppAccess {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
app_id: string;
|
|
32
|
+
app_name: string;
|
|
33
|
+
access_level: AppAccessLevel;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
export interface RobotCloudUserSimple {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
username: string;
|
|
38
|
+
name: string;
|
|
39
|
+
last_name: string;
|
|
38
40
|
}
|
|
39
41
|
export interface RobotCloudUserDetails {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
username: string;
|
|
43
|
+
name: string;
|
|
44
|
+
last_name: string;
|
|
45
|
+
email: string;
|
|
46
|
+
org_id: string;
|
|
47
|
+
org_access: OrganizationAccessLevel;
|
|
48
|
+
default_project_access: ProjectAccessLevel;
|
|
49
|
+
default_app_access: RobotCloudUserAppAccess[];
|
|
50
|
+
access_all_projects: boolean;
|
|
51
|
+
blocked: boolean;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
export interface RobotCloudUserProject {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
project_id: string;
|
|
56
|
+
project_name: string;
|
|
57
|
+
access_level: ProjectAccessLevel;
|
|
58
|
+
app_access_level: { app_id: string, app_name: string, access_level: AppAccessLevel }[]
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
export interface RobotCloudOrganizationDetails extends
|
|
60
|
-
|
|
61
|
-
address?: string;
|
|
61
|
+
export interface RobotCloudOrganizationDetails extends RobotCloudDescribedItem {
|
|
62
|
+
address?: string;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
export interface RobotCloudProjectDetails extends RobotCloudProject {
|
|
@@ -74,8 +75,7 @@ export interface RobotCloudProjectDetails extends RobotCloudProject {
|
|
|
74
75
|
app_access_level?: AppAccessLevel;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
export interface RobotCloudDeviceDetails extends
|
|
78
|
-
description?: string;
|
|
78
|
+
export interface RobotCloudDeviceDetails extends RobotCloudDescribedItem {
|
|
79
79
|
location: string;
|
|
80
80
|
address: {
|
|
81
81
|
domain: number;
|
|
@@ -84,12 +84,12 @@ export interface RobotCloudDeviceDetails extends RobotCloudNamedItem {
|
|
|
84
84
|
};
|
|
85
85
|
type: number;
|
|
86
86
|
configuration_type: string;
|
|
87
|
-
tags: string;
|
|
87
|
+
tags: string[];
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export interface RobotCloudServiceTypeDetails {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
description: string;
|
|
92
|
+
name: RobotCloudServiceType
|
|
93
93
|
}
|
|
94
94
|
/** SERVICE EVENTS VALUES **/
|
|
95
95
|
export interface RoomClime1AlertEventValue {
|