@camstack/addon-provider-dreame 0.2.147 → 0.2.148

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
@@ -44,7 +44,7 @@ let net = require("net");
44
44
  net = __toESM(net, 1);
45
45
  let zlib = require("zlib");
46
46
  zlib = __toESM(zlib, 1);
47
- //#region ../types/dist/event-category-DOl51-Ij.mjs
47
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
48
48
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
49
49
  EventCategory["SystemBoot"] = "system.boot";
50
50
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -732,6 +732,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
732
732
  EventCategory["BackupRestored"] = "backup.restored";
733
733
  EventCategory["NotificationDispatched"] = "notification.dispatched";
734
734
  EventCategory["NotificationFailed"] = "notification.failed";
735
+ /**
736
+ * A notification rule that cannot work (D905): its stored row does not load,
737
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
738
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
739
+ */
740
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
741
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
742
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
735
743
  EventCategory["DeviceUpdated"] = "device.updated";
736
744
  /**
737
745
  * Transport-level connectivity. Emitted by the device driver when
@@ -5459,7 +5467,7 @@ var ZodIssueCode$1 = {
5459
5467
  var ZodFirstPartyTypeKind$1;
5460
5468
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5461
5469
  //#endregion
5462
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5470
+ //#region ../types/dist/sleep-CueztlR1.mjs
5463
5471
  /**
5464
5472
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5465
5473
  * window to float samples (D455).
@@ -42463,6 +42471,8 @@ var NcSystemEventKindSchema = _enum([
42463
42471
  "alert-critical",
42464
42472
  "alert-error",
42465
42473
  "alert-critical-resolved",
42474
+ "rule-broken",
42475
+ "rule-repaired",
42466
42476
  "camera-online",
42467
42477
  "camera-offline",
42468
42478
  "camera-disabled",
@@ -78928,6 +78938,8 @@ new Map(Object.entries({
78928
78938
  "alert-critical": "system",
78929
78939
  "alert-error": "system",
78930
78940
  "alert-critical-resolved": "system",
78941
+ "rule-broken": "system",
78942
+ "rule-repaired": "system",
78931
78943
  "storage-location-low": "system",
78932
78944
  "storage-location-critical": "system",
78933
78945
  "storage-location-ok": "system",
@@ -79062,6 +79074,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79062
79074
  "alert-critical-resolved"
79063
79075
  ]
79064
79076
  },
79077
+ {
79078
+ id: "rule-health",
79079
+ family: "system",
79080
+ label: "Notification rules",
79081
+ kinds: ["rule-broken", "rule-repaired"]
79082
+ },
79065
79083
  {
79066
79084
  id: "alarm",
79067
79085
  family: "alarm",
@@ -79339,6 +79357,10 @@ var STATE_SUMMARY_VARS = [
79339
79357
  [...RULE_TEXT],
79340
79358
  [...RULE_TEXT],
79341
79359
  [...RULE_TEXT],
79360
+ [...RULE_TEXT],
79361
+ [...RULE_TEXT],
79362
+ [...RULE_TEXT],
79363
+ [...RULE_TEXT],
79342
79364
  ([...RULE_TEXT], [...UPDATES]),
79343
79365
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
79344
79366
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -79377,6 +79399,107 @@ var STATE_SUMMARY_VARS = [
79377
79399
  [...RULE_TEXT],
79378
79400
  ...STATE_SUMMARY_VARS
79379
79401
  ];
79402
+ new Map([
79403
+ {
79404
+ id: "device-connectivity",
79405
+ family: "device-events",
79406
+ label: "Device connectivity (offline / back online)",
79407
+ bad: ["device-offline"],
79408
+ recovery: ["device-online"],
79409
+ snapshotLabel: "Devices offline now",
79410
+ snapshotSection: "device-state"
79411
+ },
79412
+ {
79413
+ id: "device-switch",
79414
+ family: "device-events",
79415
+ label: "Device switched off / back on",
79416
+ bad: ["device-disabled"],
79417
+ recovery: ["device-enabled"],
79418
+ snapshotLabel: "Devices switched off now",
79419
+ snapshotSection: "device-state"
79420
+ },
79421
+ {
79422
+ id: "stream-connectivity",
79423
+ family: "device-events",
79424
+ label: "Stream connectivity (offline / back online)",
79425
+ bad: ["stream-offline"],
79426
+ recovery: ["stream-online"],
79427
+ snapshotLabel: "Streams offline now",
79428
+ snapshotSection: "streams"
79429
+ },
79430
+ {
79431
+ id: "battery",
79432
+ family: "device-events",
79433
+ label: "Battery (low / back to normal)",
79434
+ bad: ["device-battery-low"],
79435
+ recovery: ["device-battery-normal"],
79436
+ snapshotLabel: "Batteries low now",
79437
+ snapshotSection: "battery"
79438
+ },
79439
+ {
79440
+ id: "consumables",
79441
+ family: "device-events",
79442
+ label: "Consumables (low / replaced)",
79443
+ bad: ["device-consumable-low"],
79444
+ recovery: ["device-consumable-normal"],
79445
+ snapshotLabel: "Consumables low now",
79446
+ snapshotSection: "consumables"
79447
+ },
79448
+ {
79449
+ id: "tanks",
79450
+ family: "device-events",
79451
+ label: "Tanks (low or full / back to normal)",
79452
+ bad: ["device-tank-low", "device-tank-full"],
79453
+ recovery: ["device-tank-normal"],
79454
+ snapshotLabel: "Tanks low or full now",
79455
+ snapshotSection: "tanks"
79456
+ },
79457
+ {
79458
+ id: "recording-health",
79459
+ family: "device-events",
79460
+ label: "Recording health (stalled or degraded / recording again)",
79461
+ bad: ["recording-stalled", "recording-degraded"],
79462
+ recovery: ["recording-healthy"],
79463
+ snapshotLabel: "Recordings stalled now",
79464
+ snapshotSection: null
79465
+ },
79466
+ {
79467
+ id: "node-connectivity",
79468
+ family: "system",
79469
+ label: "Node connectivity (offline / back online)",
79470
+ bad: ["node-offline"],
79471
+ recovery: ["node-online"],
79472
+ snapshotLabel: "Nodes offline now",
79473
+ snapshotSection: "nodes"
79474
+ },
79475
+ {
79476
+ id: "storage-space",
79477
+ family: "system",
79478
+ label: "Storage space (low or critical / ok again)",
79479
+ bad: ["storage-location-low", "storage-location-critical"],
79480
+ recovery: ["storage-location-ok"],
79481
+ snapshotLabel: "Storage locations low now",
79482
+ snapshotSection: null
79483
+ },
79484
+ {
79485
+ id: "critical-alerts",
79486
+ family: "system",
79487
+ label: "Critical alerts (raised / resolved)",
79488
+ bad: ["alert-critical"],
79489
+ recovery: ["alert-critical-resolved"],
79490
+ snapshotLabel: "Critical alerts open now",
79491
+ snapshotSection: null
79492
+ },
79493
+ {
79494
+ id: "rule-health",
79495
+ family: "system",
79496
+ label: "Rule health (broken / repaired)",
79497
+ bad: ["rule-broken"],
79498
+ recovery: ["rule-repaired"],
79499
+ snapshotLabel: "Notification rules broken now",
79500
+ snapshotSection: null
79501
+ }
79502
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
79380
79503
  new Set([
79381
79504
  "disarmed",
79382
79505
  "armed_home",
package/dist/addon.mjs CHANGED
@@ -41,7 +41,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
41
41
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
42
42
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
43
43
  //#endregion
44
- //#region ../types/dist/event-category-DOl51-Ij.mjs
44
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
45
45
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
46
46
  EventCategory["SystemBoot"] = "system.boot";
47
47
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -729,6 +729,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
729
729
  EventCategory["BackupRestored"] = "backup.restored";
730
730
  EventCategory["NotificationDispatched"] = "notification.dispatched";
731
731
  EventCategory["NotificationFailed"] = "notification.failed";
732
+ /**
733
+ * A notification rule that cannot work (D905): its stored row does not load,
734
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
735
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
736
+ */
737
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
738
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
739
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
732
740
  EventCategory["DeviceUpdated"] = "device.updated";
733
741
  /**
734
742
  * Transport-level connectivity. Emitted by the device driver when
@@ -5456,7 +5464,7 @@ var ZodIssueCode$1 = {
5456
5464
  var ZodFirstPartyTypeKind$1;
5457
5465
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5458
5466
  //#endregion
5459
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5467
+ //#region ../types/dist/sleep-CueztlR1.mjs
5460
5468
  /**
5461
5469
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5462
5470
  * window to float samples (D455).
@@ -42460,6 +42468,8 @@ var NcSystemEventKindSchema = _enum([
42460
42468
  "alert-critical",
42461
42469
  "alert-error",
42462
42470
  "alert-critical-resolved",
42471
+ "rule-broken",
42472
+ "rule-repaired",
42463
42473
  "camera-online",
42464
42474
  "camera-offline",
42465
42475
  "camera-disabled",
@@ -78925,6 +78935,8 @@ new Map(Object.entries({
78925
78935
  "alert-critical": "system",
78926
78936
  "alert-error": "system",
78927
78937
  "alert-critical-resolved": "system",
78938
+ "rule-broken": "system",
78939
+ "rule-repaired": "system",
78928
78940
  "storage-location-low": "system",
78929
78941
  "storage-location-critical": "system",
78930
78942
  "storage-location-ok": "system",
@@ -79059,6 +79071,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79059
79071
  "alert-critical-resolved"
79060
79072
  ]
79061
79073
  },
79074
+ {
79075
+ id: "rule-health",
79076
+ family: "system",
79077
+ label: "Notification rules",
79078
+ kinds: ["rule-broken", "rule-repaired"]
79079
+ },
79062
79080
  {
79063
79081
  id: "alarm",
79064
79082
  family: "alarm",
@@ -79336,6 +79354,10 @@ var STATE_SUMMARY_VARS = [
79336
79354
  [...RULE_TEXT],
79337
79355
  [...RULE_TEXT],
79338
79356
  [...RULE_TEXT],
79357
+ [...RULE_TEXT],
79358
+ [...RULE_TEXT],
79359
+ [...RULE_TEXT],
79360
+ [...RULE_TEXT],
79339
79361
  ([...RULE_TEXT], [...UPDATES]),
79340
79362
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
79341
79363
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -79374,6 +79396,107 @@ var STATE_SUMMARY_VARS = [
79374
79396
  [...RULE_TEXT],
79375
79397
  ...STATE_SUMMARY_VARS
79376
79398
  ];
79399
+ new Map([
79400
+ {
79401
+ id: "device-connectivity",
79402
+ family: "device-events",
79403
+ label: "Device connectivity (offline / back online)",
79404
+ bad: ["device-offline"],
79405
+ recovery: ["device-online"],
79406
+ snapshotLabel: "Devices offline now",
79407
+ snapshotSection: "device-state"
79408
+ },
79409
+ {
79410
+ id: "device-switch",
79411
+ family: "device-events",
79412
+ label: "Device switched off / back on",
79413
+ bad: ["device-disabled"],
79414
+ recovery: ["device-enabled"],
79415
+ snapshotLabel: "Devices switched off now",
79416
+ snapshotSection: "device-state"
79417
+ },
79418
+ {
79419
+ id: "stream-connectivity",
79420
+ family: "device-events",
79421
+ label: "Stream connectivity (offline / back online)",
79422
+ bad: ["stream-offline"],
79423
+ recovery: ["stream-online"],
79424
+ snapshotLabel: "Streams offline now",
79425
+ snapshotSection: "streams"
79426
+ },
79427
+ {
79428
+ id: "battery",
79429
+ family: "device-events",
79430
+ label: "Battery (low / back to normal)",
79431
+ bad: ["device-battery-low"],
79432
+ recovery: ["device-battery-normal"],
79433
+ snapshotLabel: "Batteries low now",
79434
+ snapshotSection: "battery"
79435
+ },
79436
+ {
79437
+ id: "consumables",
79438
+ family: "device-events",
79439
+ label: "Consumables (low / replaced)",
79440
+ bad: ["device-consumable-low"],
79441
+ recovery: ["device-consumable-normal"],
79442
+ snapshotLabel: "Consumables low now",
79443
+ snapshotSection: "consumables"
79444
+ },
79445
+ {
79446
+ id: "tanks",
79447
+ family: "device-events",
79448
+ label: "Tanks (low or full / back to normal)",
79449
+ bad: ["device-tank-low", "device-tank-full"],
79450
+ recovery: ["device-tank-normal"],
79451
+ snapshotLabel: "Tanks low or full now",
79452
+ snapshotSection: "tanks"
79453
+ },
79454
+ {
79455
+ id: "recording-health",
79456
+ family: "device-events",
79457
+ label: "Recording health (stalled or degraded / recording again)",
79458
+ bad: ["recording-stalled", "recording-degraded"],
79459
+ recovery: ["recording-healthy"],
79460
+ snapshotLabel: "Recordings stalled now",
79461
+ snapshotSection: null
79462
+ },
79463
+ {
79464
+ id: "node-connectivity",
79465
+ family: "system",
79466
+ label: "Node connectivity (offline / back online)",
79467
+ bad: ["node-offline"],
79468
+ recovery: ["node-online"],
79469
+ snapshotLabel: "Nodes offline now",
79470
+ snapshotSection: "nodes"
79471
+ },
79472
+ {
79473
+ id: "storage-space",
79474
+ family: "system",
79475
+ label: "Storage space (low or critical / ok again)",
79476
+ bad: ["storage-location-low", "storage-location-critical"],
79477
+ recovery: ["storage-location-ok"],
79478
+ snapshotLabel: "Storage locations low now",
79479
+ snapshotSection: null
79480
+ },
79481
+ {
79482
+ id: "critical-alerts",
79483
+ family: "system",
79484
+ label: "Critical alerts (raised / resolved)",
79485
+ bad: ["alert-critical"],
79486
+ recovery: ["alert-critical-resolved"],
79487
+ snapshotLabel: "Critical alerts open now",
79488
+ snapshotSection: null
79489
+ },
79490
+ {
79491
+ id: "rule-health",
79492
+ family: "system",
79493
+ label: "Rule health (broken / repaired)",
79494
+ bad: ["rule-broken"],
79495
+ recovery: ["rule-repaired"],
79496
+ snapshotLabel: "Notification rules broken now",
79497
+ snapshotSection: null
79498
+ }
79499
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
79377
79500
  new Set([
79378
79501
  "disarmed",
79379
79502
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreame",
3
- "version": "0.2.147",
3
+ "version": "0.2.148",
4
4
  "description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
5
5
  "keywords": [
6
6
  "camstack",