@camstack/addon-agent-ui 1.2.111 → 1.2.112

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.
Files changed (2) hide show
  1. package/dist/addon.js +134 -1
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -13281,6 +13281,70 @@ var LocationIconAssignmentSchema = object({
13281
13281
  locationKey: string(),
13282
13282
  icon: LocationIconIdSchema
13283
13283
  });
13284
+ /**
13285
+ * One (location, description) assignment as it travels.
13286
+ *
13287
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13288
+ * reason: this lived for a while in the post-analysis addon's own settings,
13289
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13290
+ * the Locations page carried the icon and silently orphaned the description —
13291
+ * two authorities for one thing, joined by two different rules. Now both hang
13292
+ * off the location itself, on `locationIconKey`.
13293
+ */
13294
+ var LocationDescriptionAssignmentSchema = object({
13295
+ locationKey: string(),
13296
+ description: string()
13297
+ });
13298
+ /**
13299
+ * A SITE ZONE — a named part of the property that several locations belong to.
13300
+ *
13301
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13302
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13303
+ * one zone, so a camera's zone is derived and never stored on the device: the
13304
+ * whole point of this entity is that grouping rooms touches no device row.
13305
+ *
13306
+ * ## Why not `zone`
13307
+ *
13308
+ * Because `zone` is already the most loaded word in this product: 612 source
13309
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13310
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13311
+ * set of rooms — and a reader who confuses them will look for a camera's
13312
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13313
+ * word by calling the drawn one what it actually is: a detection zone.
13314
+ *
13315
+ * ## The key
13316
+ *
13317
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13318
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13319
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13320
+ * silently-dropped location description.
13321
+ *
13322
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13323
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13324
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13325
+ */
13326
+ /**
13327
+ * One zone as it travels: its key, the label the operator typed, its icon and
13328
+ * the locations inside it.
13329
+ *
13330
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13331
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13332
+ * here, rather than left to a second call, because every consumer wants both
13333
+ * at once and a viewer that asked twice could render a zone whose membership
13334
+ * it has not fetched yet.
13335
+ *
13336
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13337
+ * of those two is a choice, and a picker has to draw them differently.
13338
+ */
13339
+ var SiteZoneSchema = object({
13340
+ zoneKey: string(),
13341
+ label: string(),
13342
+ icon: LocationIconIdSchema.nullable(),
13343
+ /** Folded location keys, sorted. A location listed here need not be
13344
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13345
+ * the ones that most want grouping. */
13346
+ locationKeys: array(string())
13347
+ });
13284
13348
  var ProviderStatusSchema = object({
13285
13349
  connected: boolean(),
13286
13350
  deviceCount: number(),
@@ -13798,6 +13862,33 @@ method(object({
13798
13862
  }), _void(), {
13799
13863
  kind: "mutation",
13800
13864
  auth: "admin"
13865
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
13866
+ location: string(),
13867
+ description: string().max(400).nullable()
13868
+ }), _void(), {
13869
+ kind: "mutation",
13870
+ auth: "admin"
13871
+ }), method(_void(), array(SiteZoneSchema)), method(object({
13872
+ name: string(),
13873
+ icon: LocationIconIdSchema.nullable().optional()
13874
+ }), _void(), {
13875
+ kind: "mutation",
13876
+ auth: "admin"
13877
+ }), method(object({ name: string() }), _void(), {
13878
+ kind: "mutation",
13879
+ auth: "admin"
13880
+ }), method(object({
13881
+ from: string(),
13882
+ to: string()
13883
+ }), _void(), {
13884
+ kind: "mutation",
13885
+ auth: "admin"
13886
+ }), method(object({
13887
+ location: string(),
13888
+ zone: string().nullable()
13889
+ }), _void(), {
13890
+ kind: "mutation",
13891
+ auth: "admin"
13801
13892
  }), method(object({
13802
13893
  deviceId: number(),
13803
13894
  disabled: boolean()
@@ -32621,6 +32712,12 @@ Object.freeze({
32621
32712
  addonId: null,
32622
32713
  access: "view"
32623
32714
  },
32715
+ "deviceManager.listLocationDescriptions": {
32716
+ capName: "device-manager",
32717
+ capScope: "system",
32718
+ addonId: null,
32719
+ access: "view"
32720
+ },
32624
32721
  "deviceManager.listLocationIcons": {
32625
32722
  capName: "device-manager",
32626
32723
  capScope: "system",
@@ -32639,6 +32736,12 @@ Object.freeze({
32639
32736
  addonId: null,
32640
32737
  access: "view"
32641
32738
  },
32739
+ "deviceManager.listSiteZones": {
32740
+ capName: "device-manager",
32741
+ capScope: "system",
32742
+ addonId: null,
32743
+ access: "view"
32744
+ },
32642
32745
  "deviceManager.listWrappersForCap": {
32643
32746
  capName: "device-manager",
32644
32747
  capScope: "system",
@@ -32723,12 +32826,24 @@ Object.freeze({
32723
32826
  addonId: null,
32724
32827
  access: "delete"
32725
32828
  },
32829
+ "deviceManager.removeSiteZone": {
32830
+ capName: "device-manager",
32831
+ capScope: "system",
32832
+ addonId: null,
32833
+ access: "delete"
32834
+ },
32726
32835
  "deviceManager.renameLocation": {
32727
32836
  capName: "device-manager",
32728
32837
  capScope: "system",
32729
32838
  addonId: null,
32730
32839
  access: "create"
32731
32840
  },
32841
+ "deviceManager.renameSiteZone": {
32842
+ capName: "device-manager",
32843
+ capScope: "system",
32844
+ addonId: null,
32845
+ access: "create"
32846
+ },
32732
32847
  "deviceManager.runDeviceAction": {
32733
32848
  capName: "device-manager",
32734
32849
  capScope: "system",
@@ -32771,12 +32886,24 @@ Object.freeze({
32771
32886
  addonId: null,
32772
32887
  access: "create"
32773
32888
  },
32889
+ "deviceManager.setLocationDescription": {
32890
+ capName: "device-manager",
32891
+ capScope: "system",
32892
+ addonId: null,
32893
+ access: "create"
32894
+ },
32774
32895
  "deviceManager.setLocationIcon": {
32775
32896
  capName: "device-manager",
32776
32897
  capScope: "system",
32777
32898
  addonId: null,
32778
32899
  access: "create"
32779
32900
  },
32901
+ "deviceManager.setLocationZone": {
32902
+ capName: "device-manager",
32903
+ capScope: "system",
32904
+ addonId: null,
32905
+ access: "create"
32906
+ },
32780
32907
  "deviceManager.setMetadata": {
32781
32908
  capName: "device-manager",
32782
32909
  capScope: "system",
@@ -32807,6 +32934,12 @@ Object.freeze({
32807
32934
  addonId: null,
32808
32935
  access: "create"
32809
32936
  },
32937
+ "deviceManager.setSiteZone": {
32938
+ capName: "device-manager",
32939
+ capScope: "system",
32940
+ addonId: null,
32941
+ access: "create"
32942
+ },
32810
32943
  "deviceManager.setStreamProfileMap": {
32811
32944
  capName: "device-manager",
32812
32945
  capScope: "system",
@@ -39895,7 +40028,7 @@ var AgentUIAddon = class extends BaseAddon {
39895
40028
  capability: adminUiCapability,
39896
40029
  provider: {
39897
40030
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
39898
- getVersion: async () => ({ version: "1.2.111" })
40031
+ getVersion: async () => ({ version: "1.2.112" })
39899
40032
  }
39900
40033
  }];
39901
40034
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.111",
3
+ "version": "1.2.112",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",