@nice2dev/ui-buildings 1.1.7 → 1.1.9
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/CHANGELOG.md +81 -0
- package/dist/index.cjs +37 -37
- package/dist/index.d.ts +15 -8
- package/dist/index.mjs +4399 -4136
- package/dist/ui-buildings.css +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -218,6 +218,13 @@ export declare interface BuildingZone {
|
|
|
218
218
|
deviceIds?: BuildingId[];
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
export declare interface BuildingZoneOccupancy {
|
|
222
|
+
zoneId: BuildingId;
|
|
223
|
+
occupied: boolean;
|
|
224
|
+
count?: number;
|
|
225
|
+
lastUpdated: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
221
228
|
export declare interface CameraState {
|
|
222
229
|
streaming: boolean;
|
|
223
230
|
recording: boolean;
|
|
@@ -257,7 +264,7 @@ declare interface DeviceControlAction {
|
|
|
257
264
|
transitionMs?: number;
|
|
258
265
|
}
|
|
259
266
|
|
|
260
|
-
export declare type DeviceProtocol = 'zigbee' | 'z-wave' | 'wifi' | 'bluetooth' | 'matter' | 'thread' | 'knx' | 'modbus' | 'cloud' | 'local_api' | 'other';
|
|
267
|
+
export declare type DeviceProtocol = 'zigbee' | 'z-wave' | 'wifi' | 'bluetooth' | 'matter' | 'thread' | 'knx' | 'modbus' | 'mqtt' | 'cloud' | 'local_api' | 'other';
|
|
261
268
|
|
|
262
269
|
declare type DeviceState = LightState | ThermostatState | LockState | BlindState | SwitchState | CameraState | AlarmState | SensorState | ClimateState | MediaPlayerState | EnergyMeterState | Record<string, unknown>;
|
|
263
270
|
|
|
@@ -841,7 +848,7 @@ export declare interface OccupancySensorState {
|
|
|
841
848
|
export declare interface OccupancyStats {
|
|
842
849
|
totalOccupied: number;
|
|
843
850
|
totalZones: number;
|
|
844
|
-
byZone:
|
|
851
|
+
byZone: BuildingZoneOccupancy[];
|
|
845
852
|
peakToday?: number;
|
|
846
853
|
peakTime?: string;
|
|
847
854
|
hourlyToday?: number[];
|
|
@@ -1197,12 +1204,12 @@ export declare interface ViewportState {
|
|
|
1197
1204
|
snapModes: SnapMode[];
|
|
1198
1205
|
}
|
|
1199
1206
|
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1207
|
+
/**
|
|
1208
|
+
* @deprecated Use `BuildingZoneOccupancy`. `@nice2dev/events` exports a different
|
|
1209
|
+
* `ZoneOccupancy` (venue capacity), so importing both packages collided; this alias is
|
|
1210
|
+
* removed in 1.2.0.
|
|
1211
|
+
*/
|
|
1212
|
+
export declare type ZoneOccupancy = BuildingZoneOccupancy;
|
|
1206
1213
|
|
|
1207
1214
|
export declare type ZoneType = 'living_room' | 'bedroom' | 'master_bedroom' | 'kids_room' | 'bathroom' | 'kitchen' | 'dining_room' | 'hallway' | 'office' | 'garage' | 'basement' | 'attic' | 'balcony' | 'garden' | 'laundry' | 'storage' | 'gym' | 'cinema' | 'open_office' | 'private_office' | 'meeting_room' | 'boardroom' | 'reception' | 'waiting_area' | 'server_room' | 'it_room' | 'break_room' | 'lobby' | 'corridor' | 'stairwell' | 'parking' | 'cafeteria' | 'mechanical_room' | 'other';
|
|
1208
1215
|
|