@camstack/addon-provider-hikvision 1.2.113 → 1.2.114

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
@@ -13767,6 +13767,43 @@ var ExposeInputSchema = object({
13767
13767
  });
13768
13768
  var UnexposeInputSchema = object({ deviceId: string() });
13769
13769
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13770
+ /** Wire/storage schema for one icon id. */
13771
+ var LocationIconIdSchema = _enum([
13772
+ "map-pin",
13773
+ "house",
13774
+ "door-open",
13775
+ "sofa",
13776
+ "utensils",
13777
+ "bed-double",
13778
+ "bath",
13779
+ "briefcase",
13780
+ "car",
13781
+ "circle-parking",
13782
+ "route",
13783
+ "trees",
13784
+ "umbrella",
13785
+ "waves-ladder",
13786
+ "fence",
13787
+ "package",
13788
+ "warehouse",
13789
+ "store",
13790
+ "sun",
13791
+ "radar"
13792
+ ]);
13793
+ /**
13794
+ * One (location, icon) assignment as it travels.
13795
+ *
13796
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13797
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13798
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13799
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13800
+ * map keyed on the displayed casing would orphan its entry on exactly that
13801
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13802
+ */
13803
+ var LocationIconAssignmentSchema = object({
13804
+ locationKey: string(),
13805
+ icon: LocationIconIdSchema
13806
+ });
13770
13807
  var ProviderStatusSchema = object({
13771
13808
  connected: boolean(),
13772
13809
  deviceCount: number(),
@@ -14359,6 +14396,12 @@ method(object({
14359
14396
  }), object({ moved: number() }), {
14360
14397
  kind: "mutation",
14361
14398
  auth: "admin"
14399
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14400
+ location: string(),
14401
+ icon: LocationIconIdSchema.nullable()
14402
+ }), _void(), {
14403
+ kind: "mutation",
14404
+ auth: "admin"
14362
14405
  }), method(object({
14363
14406
  deviceId: number(),
14364
14407
  disabled: boolean()
@@ -37981,6 +38024,12 @@ Object.freeze({
37981
38024
  addonId: null,
37982
38025
  access: "view"
37983
38026
  },
38027
+ "deviceManager.listLocationIcons": {
38028
+ capName: "device-manager",
38029
+ capScope: "system",
38030
+ addonId: null,
38031
+ access: "view"
38032
+ },
37984
38033
  "deviceManager.listLocations": {
37985
38034
  capName: "device-manager",
37986
38035
  capScope: "system",
@@ -38125,6 +38174,12 @@ Object.freeze({
38125
38174
  addonId: null,
38126
38175
  access: "create"
38127
38176
  },
38177
+ "deviceManager.setLocationIcon": {
38178
+ capName: "device-manager",
38179
+ capScope: "system",
38180
+ addonId: null,
38181
+ access: "create"
38182
+ },
38128
38183
  "deviceManager.setMetadata": {
38129
38184
  capName: "device-manager",
38130
38185
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -13768,6 +13768,43 @@ var ExposeInputSchema = object({
13768
13768
  });
13769
13769
  var UnexposeInputSchema = object({ deviceId: string() });
13770
13770
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13771
+ /** Wire/storage schema for one icon id. */
13772
+ var LocationIconIdSchema = _enum([
13773
+ "map-pin",
13774
+ "house",
13775
+ "door-open",
13776
+ "sofa",
13777
+ "utensils",
13778
+ "bed-double",
13779
+ "bath",
13780
+ "briefcase",
13781
+ "car",
13782
+ "circle-parking",
13783
+ "route",
13784
+ "trees",
13785
+ "umbrella",
13786
+ "waves-ladder",
13787
+ "fence",
13788
+ "package",
13789
+ "warehouse",
13790
+ "store",
13791
+ "sun",
13792
+ "radar"
13793
+ ]);
13794
+ /**
13795
+ * One (location, icon) assignment as it travels.
13796
+ *
13797
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13798
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13799
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13800
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13801
+ * map keyed on the displayed casing would orphan its entry on exactly that
13802
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13803
+ */
13804
+ var LocationIconAssignmentSchema = object({
13805
+ locationKey: string(),
13806
+ icon: LocationIconIdSchema
13807
+ });
13771
13808
  var ProviderStatusSchema = object({
13772
13809
  connected: boolean(),
13773
13810
  deviceCount: number(),
@@ -14360,6 +14397,12 @@ method(object({
14360
14397
  }), object({ moved: number() }), {
14361
14398
  kind: "mutation",
14362
14399
  auth: "admin"
14400
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14401
+ location: string(),
14402
+ icon: LocationIconIdSchema.nullable()
14403
+ }), _void(), {
14404
+ kind: "mutation",
14405
+ auth: "admin"
14363
14406
  }), method(object({
14364
14407
  deviceId: number(),
14365
14408
  disabled: boolean()
@@ -37982,6 +38025,12 @@ Object.freeze({
37982
38025
  addonId: null,
37983
38026
  access: "view"
37984
38027
  },
38028
+ "deviceManager.listLocationIcons": {
38029
+ capName: "device-manager",
38030
+ capScope: "system",
38031
+ addonId: null,
38032
+ access: "view"
38033
+ },
37985
38034
  "deviceManager.listLocations": {
37986
38035
  capName: "device-manager",
37987
38036
  capScope: "system",
@@ -38126,6 +38175,12 @@ Object.freeze({
38126
38175
  addonId: null,
38127
38176
  access: "create"
38128
38177
  },
38178
+ "deviceManager.setLocationIcon": {
38179
+ capName: "device-manager",
38180
+ capScope: "system",
38181
+ addonId: null,
38182
+ access: "create"
38183
+ },
38129
38184
  "deviceManager.setMetadata": {
38130
38185
  capName: "device-manager",
38131
38186
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.113",
3
+ "version": "1.2.114",
4
4
  "description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
5
5
  "keywords": [
6
6
  "camstack",