@camstack/addon-notifiers 1.2.109 → 1.2.110

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
@@ -13413,6 +13413,43 @@ var ExposeInputSchema = object({
13413
13413
  });
13414
13414
  var UnexposeInputSchema = object({ deviceId: string() });
13415
13415
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13416
+ /** Wire/storage schema for one icon id. */
13417
+ var LocationIconIdSchema = _enum([
13418
+ "map-pin",
13419
+ "house",
13420
+ "door-open",
13421
+ "sofa",
13422
+ "utensils",
13423
+ "bed-double",
13424
+ "bath",
13425
+ "briefcase",
13426
+ "car",
13427
+ "circle-parking",
13428
+ "route",
13429
+ "trees",
13430
+ "umbrella",
13431
+ "waves-ladder",
13432
+ "fence",
13433
+ "package",
13434
+ "warehouse",
13435
+ "store",
13436
+ "sun",
13437
+ "radar"
13438
+ ]);
13439
+ /**
13440
+ * One (location, icon) assignment as it travels.
13441
+ *
13442
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13443
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13444
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13445
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13446
+ * map keyed on the displayed casing would orphan its entry on exactly that
13447
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13448
+ */
13449
+ var LocationIconAssignmentSchema = object({
13450
+ locationKey: string(),
13451
+ icon: LocationIconIdSchema
13452
+ });
13416
13453
  var ProviderStatusSchema = object({
13417
13454
  connected: boolean(),
13418
13455
  deviceCount: number(),
@@ -13924,6 +13961,12 @@ method(object({
13924
13961
  }), object({ moved: number() }), {
13925
13962
  kind: "mutation",
13926
13963
  auth: "admin"
13964
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
13965
+ location: string(),
13966
+ icon: LocationIconIdSchema.nullable()
13967
+ }), _void(), {
13968
+ kind: "mutation",
13969
+ auth: "admin"
13927
13970
  }), method(object({
13928
13971
  deviceId: number(),
13929
13972
  disabled: boolean()
@@ -32761,6 +32804,12 @@ Object.freeze({
32761
32804
  addonId: null,
32762
32805
  access: "view"
32763
32806
  },
32807
+ "deviceManager.listLocationIcons": {
32808
+ capName: "device-manager",
32809
+ capScope: "system",
32810
+ addonId: null,
32811
+ access: "view"
32812
+ },
32764
32813
  "deviceManager.listLocations": {
32765
32814
  capName: "device-manager",
32766
32815
  capScope: "system",
@@ -32905,6 +32954,12 @@ Object.freeze({
32905
32954
  addonId: null,
32906
32955
  access: "create"
32907
32956
  },
32957
+ "deviceManager.setLocationIcon": {
32958
+ capName: "device-manager",
32959
+ capScope: "system",
32960
+ addonId: null,
32961
+ access: "create"
32962
+ },
32908
32963
  "deviceManager.setMetadata": {
32909
32964
  capName: "device-manager",
32910
32965
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -13386,6 +13386,43 @@ var ExposeInputSchema = object({
13386
13386
  });
13387
13387
  var UnexposeInputSchema = object({ deviceId: string() });
13388
13388
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13389
+ /** Wire/storage schema for one icon id. */
13390
+ var LocationIconIdSchema = _enum([
13391
+ "map-pin",
13392
+ "house",
13393
+ "door-open",
13394
+ "sofa",
13395
+ "utensils",
13396
+ "bed-double",
13397
+ "bath",
13398
+ "briefcase",
13399
+ "car",
13400
+ "circle-parking",
13401
+ "route",
13402
+ "trees",
13403
+ "umbrella",
13404
+ "waves-ladder",
13405
+ "fence",
13406
+ "package",
13407
+ "warehouse",
13408
+ "store",
13409
+ "sun",
13410
+ "radar"
13411
+ ]);
13412
+ /**
13413
+ * One (location, icon) assignment as it travels.
13414
+ *
13415
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13416
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13417
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13418
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13419
+ * map keyed on the displayed casing would orphan its entry on exactly that
13420
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13421
+ */
13422
+ var LocationIconAssignmentSchema = object({
13423
+ locationKey: string(),
13424
+ icon: LocationIconIdSchema
13425
+ });
13389
13426
  var ProviderStatusSchema = object({
13390
13427
  connected: boolean(),
13391
13428
  deviceCount: number(),
@@ -13897,6 +13934,12 @@ method(object({
13897
13934
  }), object({ moved: number() }), {
13898
13935
  kind: "mutation",
13899
13936
  auth: "admin"
13937
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
13938
+ location: string(),
13939
+ icon: LocationIconIdSchema.nullable()
13940
+ }), _void(), {
13941
+ kind: "mutation",
13942
+ auth: "admin"
13900
13943
  }), method(object({
13901
13944
  deviceId: number(),
13902
13945
  disabled: boolean()
@@ -32734,6 +32777,12 @@ Object.freeze({
32734
32777
  addonId: null,
32735
32778
  access: "view"
32736
32779
  },
32780
+ "deviceManager.listLocationIcons": {
32781
+ capName: "device-manager",
32782
+ capScope: "system",
32783
+ addonId: null,
32784
+ access: "view"
32785
+ },
32737
32786
  "deviceManager.listLocations": {
32738
32787
  capName: "device-manager",
32739
32788
  capScope: "system",
@@ -32878,6 +32927,12 @@ Object.freeze({
32878
32927
  addonId: null,
32879
32928
  access: "create"
32880
32929
  },
32930
+ "deviceManager.setLocationIcon": {
32931
+ capName: "device-manager",
32932
+ capScope: "system",
32933
+ addonId: null,
32934
+ access: "create"
32935
+ },
32881
32936
  "deviceManager.setMetadata": {
32882
32937
  capName: "device-manager",
32883
32938
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.109",
3
+ "version": "1.2.110",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",