@camstack/addon-provider-dreo 0.2.106 → 0.2.107

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/addon.js CHANGED
@@ -13569,6 +13569,70 @@ var LocationIconAssignmentSchema = object({
13569
13569
  locationKey: string(),
13570
13570
  icon: LocationIconIdSchema
13571
13571
  });
13572
+ /**
13573
+ * One (location, description) assignment as it travels.
13574
+ *
13575
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13576
+ * reason: this lived for a while in the post-analysis addon's own settings,
13577
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13578
+ * the Locations page carried the icon and silently orphaned the description —
13579
+ * two authorities for one thing, joined by two different rules. Now both hang
13580
+ * off the location itself, on `locationIconKey`.
13581
+ */
13582
+ var LocationDescriptionAssignmentSchema = object({
13583
+ locationKey: string(),
13584
+ description: string()
13585
+ });
13586
+ /**
13587
+ * A SITE ZONE — a named part of the property that several locations belong to.
13588
+ *
13589
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13590
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13591
+ * one zone, so a camera's zone is derived and never stored on the device: the
13592
+ * whole point of this entity is that grouping rooms touches no device row.
13593
+ *
13594
+ * ## Why not `zone`
13595
+ *
13596
+ * Because `zone` is already the most loaded word in this product: 612 source
13597
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13598
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13599
+ * set of rooms — and a reader who confuses them will look for a camera's
13600
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13601
+ * word by calling the drawn one what it actually is: a detection zone.
13602
+ *
13603
+ * ## The key
13604
+ *
13605
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13606
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13607
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13608
+ * silently-dropped location description.
13609
+ *
13610
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13611
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13612
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13613
+ */
13614
+ /**
13615
+ * One zone as it travels: its key, the label the operator typed, its icon and
13616
+ * the locations inside it.
13617
+ *
13618
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13619
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13620
+ * here, rather than left to a second call, because every consumer wants both
13621
+ * at once and a viewer that asked twice could render a zone whose membership
13622
+ * it has not fetched yet.
13623
+ *
13624
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13625
+ * of those two is a choice, and a picker has to draw them differently.
13626
+ */
13627
+ var SiteZoneSchema = object({
13628
+ zoneKey: string(),
13629
+ label: string(),
13630
+ icon: LocationIconIdSchema.nullable(),
13631
+ /** Folded location keys, sorted. A location listed here need not be
13632
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13633
+ * the ones that most want grouping. */
13634
+ locationKeys: array(string())
13635
+ });
13572
13636
  var ProviderStatusSchema = object({
13573
13637
  connected: boolean(),
13574
13638
  deviceCount: number(),
@@ -14167,6 +14231,33 @@ method(object({
14167
14231
  }), _void(), {
14168
14232
  kind: "mutation",
14169
14233
  auth: "admin"
14234
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
14235
+ location: string(),
14236
+ description: string().max(400).nullable()
14237
+ }), _void(), {
14238
+ kind: "mutation",
14239
+ auth: "admin"
14240
+ }), method(_void(), array(SiteZoneSchema)), method(object({
14241
+ name: string(),
14242
+ icon: LocationIconIdSchema.nullable().optional()
14243
+ }), _void(), {
14244
+ kind: "mutation",
14245
+ auth: "admin"
14246
+ }), method(object({ name: string() }), _void(), {
14247
+ kind: "mutation",
14248
+ auth: "admin"
14249
+ }), method(object({
14250
+ from: string(),
14251
+ to: string()
14252
+ }), _void(), {
14253
+ kind: "mutation",
14254
+ auth: "admin"
14255
+ }), method(object({
14256
+ location: string(),
14257
+ zone: string().nullable()
14258
+ }), _void(), {
14259
+ kind: "mutation",
14260
+ auth: "admin"
14170
14261
  }), method(object({
14171
14262
  deviceId: number(),
14172
14263
  disabled: boolean()
@@ -37085,6 +37176,12 @@ Object.freeze({
37085
37176
  addonId: null,
37086
37177
  access: "view"
37087
37178
  },
37179
+ "deviceManager.listLocationDescriptions": {
37180
+ capName: "device-manager",
37181
+ capScope: "system",
37182
+ addonId: null,
37183
+ access: "view"
37184
+ },
37088
37185
  "deviceManager.listLocationIcons": {
37089
37186
  capName: "device-manager",
37090
37187
  capScope: "system",
@@ -37103,6 +37200,12 @@ Object.freeze({
37103
37200
  addonId: null,
37104
37201
  access: "view"
37105
37202
  },
37203
+ "deviceManager.listSiteZones": {
37204
+ capName: "device-manager",
37205
+ capScope: "system",
37206
+ addonId: null,
37207
+ access: "view"
37208
+ },
37106
37209
  "deviceManager.listWrappersForCap": {
37107
37210
  capName: "device-manager",
37108
37211
  capScope: "system",
@@ -37187,12 +37290,24 @@ Object.freeze({
37187
37290
  addonId: null,
37188
37291
  access: "delete"
37189
37292
  },
37293
+ "deviceManager.removeSiteZone": {
37294
+ capName: "device-manager",
37295
+ capScope: "system",
37296
+ addonId: null,
37297
+ access: "delete"
37298
+ },
37190
37299
  "deviceManager.renameLocation": {
37191
37300
  capName: "device-manager",
37192
37301
  capScope: "system",
37193
37302
  addonId: null,
37194
37303
  access: "create"
37195
37304
  },
37305
+ "deviceManager.renameSiteZone": {
37306
+ capName: "device-manager",
37307
+ capScope: "system",
37308
+ addonId: null,
37309
+ access: "create"
37310
+ },
37196
37311
  "deviceManager.runDeviceAction": {
37197
37312
  capName: "device-manager",
37198
37313
  capScope: "system",
@@ -37235,12 +37350,24 @@ Object.freeze({
37235
37350
  addonId: null,
37236
37351
  access: "create"
37237
37352
  },
37353
+ "deviceManager.setLocationDescription": {
37354
+ capName: "device-manager",
37355
+ capScope: "system",
37356
+ addonId: null,
37357
+ access: "create"
37358
+ },
37238
37359
  "deviceManager.setLocationIcon": {
37239
37360
  capName: "device-manager",
37240
37361
  capScope: "system",
37241
37362
  addonId: null,
37242
37363
  access: "create"
37243
37364
  },
37365
+ "deviceManager.setLocationZone": {
37366
+ capName: "device-manager",
37367
+ capScope: "system",
37368
+ addonId: null,
37369
+ access: "create"
37370
+ },
37244
37371
  "deviceManager.setMetadata": {
37245
37372
  capName: "device-manager",
37246
37373
  capScope: "system",
@@ -37271,6 +37398,12 @@ Object.freeze({
37271
37398
  addonId: null,
37272
37399
  access: "create"
37273
37400
  },
37401
+ "deviceManager.setSiteZone": {
37402
+ capName: "device-manager",
37403
+ capScope: "system",
37404
+ addonId: null,
37405
+ access: "create"
37406
+ },
37274
37407
  "deviceManager.setStreamProfileMap": {
37275
37408
  capName: "device-manager",
37276
37409
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -13570,6 +13570,70 @@ var LocationIconAssignmentSchema = object({
13570
13570
  locationKey: string(),
13571
13571
  icon: LocationIconIdSchema
13572
13572
  });
13573
+ /**
13574
+ * One (location, description) assignment as it travels.
13575
+ *
13576
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13577
+ * reason: this lived for a while in the post-analysis addon's own settings,
13578
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13579
+ * the Locations page carried the icon and silently orphaned the description —
13580
+ * two authorities for one thing, joined by two different rules. Now both hang
13581
+ * off the location itself, on `locationIconKey`.
13582
+ */
13583
+ var LocationDescriptionAssignmentSchema = object({
13584
+ locationKey: string(),
13585
+ description: string()
13586
+ });
13587
+ /**
13588
+ * A SITE ZONE — a named part of the property that several locations belong to.
13589
+ *
13590
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13591
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13592
+ * one zone, so a camera's zone is derived and never stored on the device: the
13593
+ * whole point of this entity is that grouping rooms touches no device row.
13594
+ *
13595
+ * ## Why not `zone`
13596
+ *
13597
+ * Because `zone` is already the most loaded word in this product: 612 source
13598
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13599
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13600
+ * set of rooms — and a reader who confuses them will look for a camera's
13601
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13602
+ * word by calling the drawn one what it actually is: a detection zone.
13603
+ *
13604
+ * ## The key
13605
+ *
13606
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13607
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13608
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13609
+ * silently-dropped location description.
13610
+ *
13611
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13612
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13613
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13614
+ */
13615
+ /**
13616
+ * One zone as it travels: its key, the label the operator typed, its icon and
13617
+ * the locations inside it.
13618
+ *
13619
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13620
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13621
+ * here, rather than left to a second call, because every consumer wants both
13622
+ * at once and a viewer that asked twice could render a zone whose membership
13623
+ * it has not fetched yet.
13624
+ *
13625
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13626
+ * of those two is a choice, and a picker has to draw them differently.
13627
+ */
13628
+ var SiteZoneSchema = object({
13629
+ zoneKey: string(),
13630
+ label: string(),
13631
+ icon: LocationIconIdSchema.nullable(),
13632
+ /** Folded location keys, sorted. A location listed here need not be
13633
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13634
+ * the ones that most want grouping. */
13635
+ locationKeys: array(string())
13636
+ });
13573
13637
  var ProviderStatusSchema = object({
13574
13638
  connected: boolean(),
13575
13639
  deviceCount: number(),
@@ -14168,6 +14232,33 @@ method(object({
14168
14232
  }), _void(), {
14169
14233
  kind: "mutation",
14170
14234
  auth: "admin"
14235
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
14236
+ location: string(),
14237
+ description: string().max(400).nullable()
14238
+ }), _void(), {
14239
+ kind: "mutation",
14240
+ auth: "admin"
14241
+ }), method(_void(), array(SiteZoneSchema)), method(object({
14242
+ name: string(),
14243
+ icon: LocationIconIdSchema.nullable().optional()
14244
+ }), _void(), {
14245
+ kind: "mutation",
14246
+ auth: "admin"
14247
+ }), method(object({ name: string() }), _void(), {
14248
+ kind: "mutation",
14249
+ auth: "admin"
14250
+ }), method(object({
14251
+ from: string(),
14252
+ to: string()
14253
+ }), _void(), {
14254
+ kind: "mutation",
14255
+ auth: "admin"
14256
+ }), method(object({
14257
+ location: string(),
14258
+ zone: string().nullable()
14259
+ }), _void(), {
14260
+ kind: "mutation",
14261
+ auth: "admin"
14171
14262
  }), method(object({
14172
14263
  deviceId: number(),
14173
14264
  disabled: boolean()
@@ -37086,6 +37177,12 @@ Object.freeze({
37086
37177
  addonId: null,
37087
37178
  access: "view"
37088
37179
  },
37180
+ "deviceManager.listLocationDescriptions": {
37181
+ capName: "device-manager",
37182
+ capScope: "system",
37183
+ addonId: null,
37184
+ access: "view"
37185
+ },
37089
37186
  "deviceManager.listLocationIcons": {
37090
37187
  capName: "device-manager",
37091
37188
  capScope: "system",
@@ -37104,6 +37201,12 @@ Object.freeze({
37104
37201
  addonId: null,
37105
37202
  access: "view"
37106
37203
  },
37204
+ "deviceManager.listSiteZones": {
37205
+ capName: "device-manager",
37206
+ capScope: "system",
37207
+ addonId: null,
37208
+ access: "view"
37209
+ },
37107
37210
  "deviceManager.listWrappersForCap": {
37108
37211
  capName: "device-manager",
37109
37212
  capScope: "system",
@@ -37188,12 +37291,24 @@ Object.freeze({
37188
37291
  addonId: null,
37189
37292
  access: "delete"
37190
37293
  },
37294
+ "deviceManager.removeSiteZone": {
37295
+ capName: "device-manager",
37296
+ capScope: "system",
37297
+ addonId: null,
37298
+ access: "delete"
37299
+ },
37191
37300
  "deviceManager.renameLocation": {
37192
37301
  capName: "device-manager",
37193
37302
  capScope: "system",
37194
37303
  addonId: null,
37195
37304
  access: "create"
37196
37305
  },
37306
+ "deviceManager.renameSiteZone": {
37307
+ capName: "device-manager",
37308
+ capScope: "system",
37309
+ addonId: null,
37310
+ access: "create"
37311
+ },
37197
37312
  "deviceManager.runDeviceAction": {
37198
37313
  capName: "device-manager",
37199
37314
  capScope: "system",
@@ -37236,12 +37351,24 @@ Object.freeze({
37236
37351
  addonId: null,
37237
37352
  access: "create"
37238
37353
  },
37354
+ "deviceManager.setLocationDescription": {
37355
+ capName: "device-manager",
37356
+ capScope: "system",
37357
+ addonId: null,
37358
+ access: "create"
37359
+ },
37239
37360
  "deviceManager.setLocationIcon": {
37240
37361
  capName: "device-manager",
37241
37362
  capScope: "system",
37242
37363
  addonId: null,
37243
37364
  access: "create"
37244
37365
  },
37366
+ "deviceManager.setLocationZone": {
37367
+ capName: "device-manager",
37368
+ capScope: "system",
37369
+ addonId: null,
37370
+ access: "create"
37371
+ },
37245
37372
  "deviceManager.setMetadata": {
37246
37373
  capName: "device-manager",
37247
37374
  capScope: "system",
@@ -37272,6 +37399,12 @@ Object.freeze({
37272
37399
  addonId: null,
37273
37400
  access: "create"
37274
37401
  },
37402
+ "deviceManager.setSiteZone": {
37403
+ capName: "device-manager",
37404
+ capScope: "system",
37405
+ addonId: null,
37406
+ access: "create"
37407
+ },
37275
37408
  "deviceManager.setStreamProfileMap": {
37276
37409
  capName: "device-manager",
37277
37410
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.106",
3
+ "version": "0.2.107",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",