@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/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: ZoneOccupancy[];
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
- export declare interface ZoneOccupancy {
1201
- zoneId: BuildingId;
1202
- occupied: boolean;
1203
- count?: number;
1204
- lastUpdated: string;
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