@camstack/addon-provider-dreo 0.2.104 → 0.2.106

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
@@ -13532,6 +13532,43 @@ var ExposeInputSchema = object({
13532
13532
  });
13533
13533
  var UnexposeInputSchema = object({ deviceId: string() });
13534
13534
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13535
+ /** Wire/storage schema for one icon id. */
13536
+ var LocationIconIdSchema = _enum([
13537
+ "map-pin",
13538
+ "house",
13539
+ "door-open",
13540
+ "sofa",
13541
+ "utensils",
13542
+ "bed-double",
13543
+ "bath",
13544
+ "briefcase",
13545
+ "car",
13546
+ "circle-parking",
13547
+ "route",
13548
+ "trees",
13549
+ "umbrella",
13550
+ "waves-ladder",
13551
+ "fence",
13552
+ "package",
13553
+ "warehouse",
13554
+ "store",
13555
+ "sun",
13556
+ "radar"
13557
+ ]);
13558
+ /**
13559
+ * One (location, icon) assignment as it travels.
13560
+ *
13561
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13562
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13563
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13564
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13565
+ * map keyed on the displayed casing would orphan its entry on exactly that
13566
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13567
+ */
13568
+ var LocationIconAssignmentSchema = object({
13569
+ locationKey: string(),
13570
+ icon: LocationIconIdSchema
13571
+ });
13535
13572
  var ProviderStatusSchema = object({
13536
13573
  connected: boolean(),
13537
13574
  deviceCount: number(),
@@ -14124,6 +14161,12 @@ method(object({
14124
14161
  }), object({ moved: number() }), {
14125
14162
  kind: "mutation",
14126
14163
  auth: "admin"
14164
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14165
+ location: string(),
14166
+ icon: LocationIconIdSchema.nullable()
14167
+ }), _void(), {
14168
+ kind: "mutation",
14169
+ auth: "admin"
14127
14170
  }), method(object({
14128
14171
  deviceId: number(),
14129
14172
  disabled: boolean()
@@ -20098,6 +20141,7 @@ var MediaFileKindEnum = _enum([
20098
20141
  "keyFrame",
20099
20142
  "keyFrameSmall",
20100
20143
  "thumbnailSmall",
20144
+ "confirmationCrop",
20101
20145
  "sceneFrame"
20102
20146
  ]);
20103
20147
  /**
@@ -37041,6 +37085,12 @@ Object.freeze({
37041
37085
  addonId: null,
37042
37086
  access: "view"
37043
37087
  },
37088
+ "deviceManager.listLocationIcons": {
37089
+ capName: "device-manager",
37090
+ capScope: "system",
37091
+ addonId: null,
37092
+ access: "view"
37093
+ },
37044
37094
  "deviceManager.listLocations": {
37045
37095
  capName: "device-manager",
37046
37096
  capScope: "system",
@@ -37185,6 +37235,12 @@ Object.freeze({
37185
37235
  addonId: null,
37186
37236
  access: "create"
37187
37237
  },
37238
+ "deviceManager.setLocationIcon": {
37239
+ capName: "device-manager",
37240
+ capScope: "system",
37241
+ addonId: null,
37242
+ access: "create"
37243
+ },
37188
37244
  "deviceManager.setMetadata": {
37189
37245
  capName: "device-manager",
37190
37246
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -13533,6 +13533,43 @@ var ExposeInputSchema = object({
13533
13533
  });
13534
13534
  var UnexposeInputSchema = object({ deviceId: string() });
13535
13535
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13536
+ /** Wire/storage schema for one icon id. */
13537
+ var LocationIconIdSchema = _enum([
13538
+ "map-pin",
13539
+ "house",
13540
+ "door-open",
13541
+ "sofa",
13542
+ "utensils",
13543
+ "bed-double",
13544
+ "bath",
13545
+ "briefcase",
13546
+ "car",
13547
+ "circle-parking",
13548
+ "route",
13549
+ "trees",
13550
+ "umbrella",
13551
+ "waves-ladder",
13552
+ "fence",
13553
+ "package",
13554
+ "warehouse",
13555
+ "store",
13556
+ "sun",
13557
+ "radar"
13558
+ ]);
13559
+ /**
13560
+ * One (location, icon) assignment as it travels.
13561
+ *
13562
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13563
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13564
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13565
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13566
+ * map keyed on the displayed casing would orphan its entry on exactly that
13567
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13568
+ */
13569
+ var LocationIconAssignmentSchema = object({
13570
+ locationKey: string(),
13571
+ icon: LocationIconIdSchema
13572
+ });
13536
13573
  var ProviderStatusSchema = object({
13537
13574
  connected: boolean(),
13538
13575
  deviceCount: number(),
@@ -14125,6 +14162,12 @@ method(object({
14125
14162
  }), object({ moved: number() }), {
14126
14163
  kind: "mutation",
14127
14164
  auth: "admin"
14165
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14166
+ location: string(),
14167
+ icon: LocationIconIdSchema.nullable()
14168
+ }), _void(), {
14169
+ kind: "mutation",
14170
+ auth: "admin"
14128
14171
  }), method(object({
14129
14172
  deviceId: number(),
14130
14173
  disabled: boolean()
@@ -20099,6 +20142,7 @@ var MediaFileKindEnum = _enum([
20099
20142
  "keyFrame",
20100
20143
  "keyFrameSmall",
20101
20144
  "thumbnailSmall",
20145
+ "confirmationCrop",
20102
20146
  "sceneFrame"
20103
20147
  ]);
20104
20148
  /**
@@ -37042,6 +37086,12 @@ Object.freeze({
37042
37086
  addonId: null,
37043
37087
  access: "view"
37044
37088
  },
37089
+ "deviceManager.listLocationIcons": {
37090
+ capName: "device-manager",
37091
+ capScope: "system",
37092
+ addonId: null,
37093
+ access: "view"
37094
+ },
37045
37095
  "deviceManager.listLocations": {
37046
37096
  capName: "device-manager",
37047
37097
  capScope: "system",
@@ -37186,6 +37236,12 @@ Object.freeze({
37186
37236
  addonId: null,
37187
37237
  access: "create"
37188
37238
  },
37239
+ "deviceManager.setLocationIcon": {
37240
+ capName: "device-manager",
37241
+ capScope: "system",
37242
+ addonId: null,
37243
+ access: "create"
37244
+ },
37189
37245
  "deviceManager.setMetadata": {
37190
37246
  capName: "device-manager",
37191
37247
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.104",
3
+ "version": "0.2.106",
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",