@camera.ui/browser 0.0.175 → 0.0.177

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
@@ -292,6 +292,7 @@ export declare interface CoreManagerInterface {
292
292
  getCloudServerId(): Promise<string>;
293
293
  getPlugin(pluginName: string): Promise<HostPluginInfo | undefined>;
294
294
  getPluginsByInterface(interfaceName: PluginInterface): Promise<HostPluginInfo[]>;
295
+ getFloorPlan(): Promise<FloorPlan>;
295
296
  }
296
297
 
297
298
  export declare interface CoreManagerNamespaces {
@@ -322,6 +323,83 @@ export declare function createSensorManager(rpcOrContext: RPCClient | ReactiveCa
322
323
  declare interface DBCamera extends BaseCamera {
323
324
  sources: CameraInputSettings[];
324
325
  workerAgentId?: string;
326
+ roomId: string | null;
327
+ }
328
+
329
+ declare interface DBFloorPlan {
330
+ version: number;
331
+ updatedAt: number;
332
+ north: number | null;
333
+ rooms: DBFloorPlanRoom[];
334
+ connections: DBFloorPlanConnection[];
335
+ cameras: DBFloorPlanCamera[];
336
+ sensors: DBFloorPlanSensor[];
337
+ }
338
+
339
+ declare interface DBFloorPlanCamera {
340
+ cameraId: string;
341
+ roomId: string;
342
+ note: string;
343
+ x: number;
344
+ y: number;
345
+ rotation: number;
346
+ fov: number;
347
+ range: number;
348
+ }
349
+
350
+ declare interface DBFloorPlanConnection {
351
+ id: string;
352
+ fromRoomId: string;
353
+ toRoomId: string;
354
+ fromShapeId: string | null;
355
+ toShapeId: string | null;
356
+ offset: number | null;
357
+ width: number;
358
+ note: string;
359
+ type: DBFloorPlanConnectionType;
360
+ }
361
+
362
+ declare type DBFloorPlanConnectionType = 'door' | 'opening' | 'stairs';
363
+
364
+ declare interface DBFloorPlanRoom {
365
+ id: string;
366
+ roomId: string;
367
+ x: number;
368
+ y: number;
369
+ width: number;
370
+ height: number;
371
+ }
372
+
373
+ declare interface DBFloorPlanSensor {
374
+ sensorId: string;
375
+ sensorType: string;
376
+ roomId: string;
377
+ connectionId: string | null;
378
+ note: string;
379
+ x: number;
380
+ y: number;
381
+ }
382
+
383
+ declare interface DBLevel {
384
+ id: string;
385
+ name: string;
386
+ order: number;
387
+ }
388
+
389
+ declare interface DBRoom {
390
+ id: string;
391
+ name: string;
392
+ levelId: string | null;
393
+ outdoor: boolean;
394
+ publicSpace: boolean;
395
+ note: string;
396
+ }
397
+
398
+ declare interface DBRoomCatalog {
399
+ version: number;
400
+ updatedAt: number;
401
+ levels: DBLevel[];
402
+ rooms: DBRoom[];
325
403
  }
326
404
 
327
405
  declare interface DetectionEventNamespaces {
@@ -354,6 +432,11 @@ declare interface DownloadManagerNamespaces {
354
432
 
355
433
  /* Excluded from this release type: FaceSensorProperties */
356
434
 
435
+ declare interface FloorPlan {
436
+ rooms: DBRoomCatalog;
437
+ plan: DBFloorPlan;
438
+ }
439
+
357
440
  declare interface FrameWorkerDetectionNamespaces {
358
441
  detectionRpc: string;
359
442
  }
@@ -490,6 +573,12 @@ export declare class NamespaceManager {
490
573
  };
491
574
  }
492
575
 
576
+ static sensorDiscoveryNamespaces(): SensorDiscoveryNamespaces {
577
+ return {
578
+ sensorDiscoverySubject: 'sensorDiscovery.subscriber',
579
+ };
580
+ }
581
+
493
582
  static discoveryManagerNamespaces(): DiscoveryManagerNamespaces {
494
583
  return {
495
584
  discoveryManagerSubject: 'discoveryManager.subscriber',
@@ -1077,6 +1166,10 @@ declare interface SensorDeletedEvent {
1077
1166
  sensorType: SensorType;
1078
1167
  }
1079
1168
 
1169
+ declare interface SensorDiscoveryNamespaces {
1170
+ sensorDiscoverySubject: string;
1171
+ }
1172
+
1080
1173
  declare interface SensorDisplayNameChangedEvent {
1081
1174
  sensorId: string;
1082
1175
  displayName: string;
package/dist/index.js CHANGED
@@ -112,6 +112,9 @@ var NamespaceManager = class {
112
112
  deviceManagerRpc: "deviceManager.rpc"
113
113
  };
114
114
  }
115
+ static sensorDiscoveryNamespaces() {
116
+ return { sensorDiscoverySubject: "sensorDiscovery.subscriber" };
117
+ }
115
118
  static discoveryManagerNamespaces() {
116
119
  return {
117
120
  discoveryManagerSubject: "discoveryManager.subscriber",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camera.ui/browser",
3
- "version": "0.0.175",
3
+ "version": "0.0.177",
4
4
  "description": "camera.ui browser client",
5
5
  "author": "seydx (https://github.com/cameraui/clients)",
6
6
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  "devDependencies": {
40
40
  "@camera.ui/logger": "file:../../packages/logger",
41
41
  "@camera.ui/rpc": "^1.0.11",
42
- "@camera.ui/sdk": "~1.2.31",
42
+ "@camera.ui/sdk": "~1.2.33",
43
43
  "@camera.ui/transport": "file:../../packages/transport",
44
44
  "@eneris/push-receiver": "^4.3.1",
45
45
  "@microsoft/api-extractor": "^7.59.0",
@@ -61,10 +61,10 @@
61
61
  "typescript": "5.9.3",
62
62
  "typescript-eslint": "^8.68.0",
63
63
  "unplugin-dts": "^1.0.3",
64
- "updates": "^18.0.6",
64
+ "updates": "^18.0.7",
65
65
  "vite": "^8.2.2",
66
66
  "vitest": "^4.1.11",
67
- "vue": "^3.5.41",
67
+ "vue": "^3.5.42",
68
68
  "vue-tsc": "^3.3.11"
69
69
  },
70
70
  "overrides": {