@camstack/addon-waste-collections 0.1.21 → 0.1.22
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.
|
@@ -6,7 +6,7 @@ let node_fs = require("node:fs");
|
|
|
6
6
|
let node_path = require("node:path");
|
|
7
7
|
let node_child_process = require("node:child_process");
|
|
8
8
|
let node_url = require("node:url");
|
|
9
|
-
//#region ../types/dist/event-category-
|
|
9
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
10
10
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
11
11
|
EventCategory["SystemBoot"] = "system.boot";
|
|
12
12
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -694,6 +694,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
694
694
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
695
695
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
696
696
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
697
|
+
/**
|
|
698
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
699
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
700
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
701
|
+
*/
|
|
702
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
703
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
704
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
697
705
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
698
706
|
/**
|
|
699
707
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5554,7 +5562,7 @@ var ZodIssueCode = {
|
|
|
5554
5562
|
var ZodFirstPartyTypeKind;
|
|
5555
5563
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5556
5564
|
//#endregion
|
|
5557
|
-
//#region ../types/dist/sleep-
|
|
5565
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5558
5566
|
/**
|
|
5559
5567
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5560
5568
|
* window to float samples (D455).
|
|
@@ -42379,6 +42387,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42379
42387
|
"alert-critical",
|
|
42380
42388
|
"alert-error",
|
|
42381
42389
|
"alert-critical-resolved",
|
|
42390
|
+
"rule-broken",
|
|
42391
|
+
"rule-repaired",
|
|
42382
42392
|
"camera-online",
|
|
42383
42393
|
"camera-offline",
|
|
42384
42394
|
"camera-disabled",
|
|
@@ -73822,6 +73832,8 @@ new Map(Object.entries({
|
|
|
73822
73832
|
"alert-critical": "system",
|
|
73823
73833
|
"alert-error": "system",
|
|
73824
73834
|
"alert-critical-resolved": "system",
|
|
73835
|
+
"rule-broken": "system",
|
|
73836
|
+
"rule-repaired": "system",
|
|
73825
73837
|
"storage-location-low": "system",
|
|
73826
73838
|
"storage-location-critical": "system",
|
|
73827
73839
|
"storage-location-ok": "system",
|
|
@@ -73956,6 +73968,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73956
73968
|
"alert-critical-resolved"
|
|
73957
73969
|
]
|
|
73958
73970
|
},
|
|
73971
|
+
{
|
|
73972
|
+
id: "rule-health",
|
|
73973
|
+
family: "system",
|
|
73974
|
+
label: "Notification rules",
|
|
73975
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
73976
|
+
},
|
|
73959
73977
|
{
|
|
73960
73978
|
id: "alarm",
|
|
73961
73979
|
family: "alarm",
|
|
@@ -74233,6 +74251,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
74233
74251
|
[...RULE_TEXT],
|
|
74234
74252
|
[...RULE_TEXT],
|
|
74235
74253
|
[...RULE_TEXT],
|
|
74254
|
+
[...RULE_TEXT],
|
|
74255
|
+
[...RULE_TEXT],
|
|
74256
|
+
[...RULE_TEXT],
|
|
74257
|
+
[...RULE_TEXT],
|
|
74236
74258
|
([...RULE_TEXT], [...UPDATES]),
|
|
74237
74259
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
74238
74260
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -74271,6 +74293,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
74271
74293
|
[...RULE_TEXT],
|
|
74272
74294
|
...STATE_SUMMARY_VARS
|
|
74273
74295
|
];
|
|
74296
|
+
new Map([
|
|
74297
|
+
{
|
|
74298
|
+
id: "device-connectivity",
|
|
74299
|
+
family: "device-events",
|
|
74300
|
+
label: "Device connectivity (offline / back online)",
|
|
74301
|
+
bad: ["device-offline"],
|
|
74302
|
+
recovery: ["device-online"],
|
|
74303
|
+
snapshotLabel: "Devices offline now",
|
|
74304
|
+
snapshotSection: "device-state"
|
|
74305
|
+
},
|
|
74306
|
+
{
|
|
74307
|
+
id: "device-switch",
|
|
74308
|
+
family: "device-events",
|
|
74309
|
+
label: "Device switched off / back on",
|
|
74310
|
+
bad: ["device-disabled"],
|
|
74311
|
+
recovery: ["device-enabled"],
|
|
74312
|
+
snapshotLabel: "Devices switched off now",
|
|
74313
|
+
snapshotSection: "device-state"
|
|
74314
|
+
},
|
|
74315
|
+
{
|
|
74316
|
+
id: "stream-connectivity",
|
|
74317
|
+
family: "device-events",
|
|
74318
|
+
label: "Stream connectivity (offline / back online)",
|
|
74319
|
+
bad: ["stream-offline"],
|
|
74320
|
+
recovery: ["stream-online"],
|
|
74321
|
+
snapshotLabel: "Streams offline now",
|
|
74322
|
+
snapshotSection: "streams"
|
|
74323
|
+
},
|
|
74324
|
+
{
|
|
74325
|
+
id: "battery",
|
|
74326
|
+
family: "device-events",
|
|
74327
|
+
label: "Battery (low / back to normal)",
|
|
74328
|
+
bad: ["device-battery-low"],
|
|
74329
|
+
recovery: ["device-battery-normal"],
|
|
74330
|
+
snapshotLabel: "Batteries low now",
|
|
74331
|
+
snapshotSection: "battery"
|
|
74332
|
+
},
|
|
74333
|
+
{
|
|
74334
|
+
id: "consumables",
|
|
74335
|
+
family: "device-events",
|
|
74336
|
+
label: "Consumables (low / replaced)",
|
|
74337
|
+
bad: ["device-consumable-low"],
|
|
74338
|
+
recovery: ["device-consumable-normal"],
|
|
74339
|
+
snapshotLabel: "Consumables low now",
|
|
74340
|
+
snapshotSection: "consumables"
|
|
74341
|
+
},
|
|
74342
|
+
{
|
|
74343
|
+
id: "tanks",
|
|
74344
|
+
family: "device-events",
|
|
74345
|
+
label: "Tanks (low or full / back to normal)",
|
|
74346
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
74347
|
+
recovery: ["device-tank-normal"],
|
|
74348
|
+
snapshotLabel: "Tanks low or full now",
|
|
74349
|
+
snapshotSection: "tanks"
|
|
74350
|
+
},
|
|
74351
|
+
{
|
|
74352
|
+
id: "recording-health",
|
|
74353
|
+
family: "device-events",
|
|
74354
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
74355
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
74356
|
+
recovery: ["recording-healthy"],
|
|
74357
|
+
snapshotLabel: "Recordings stalled now",
|
|
74358
|
+
snapshotSection: null
|
|
74359
|
+
},
|
|
74360
|
+
{
|
|
74361
|
+
id: "node-connectivity",
|
|
74362
|
+
family: "system",
|
|
74363
|
+
label: "Node connectivity (offline / back online)",
|
|
74364
|
+
bad: ["node-offline"],
|
|
74365
|
+
recovery: ["node-online"],
|
|
74366
|
+
snapshotLabel: "Nodes offline now",
|
|
74367
|
+
snapshotSection: "nodes"
|
|
74368
|
+
},
|
|
74369
|
+
{
|
|
74370
|
+
id: "storage-space",
|
|
74371
|
+
family: "system",
|
|
74372
|
+
label: "Storage space (low or critical / ok again)",
|
|
74373
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
74374
|
+
recovery: ["storage-location-ok"],
|
|
74375
|
+
snapshotLabel: "Storage locations low now",
|
|
74376
|
+
snapshotSection: null
|
|
74377
|
+
},
|
|
74378
|
+
{
|
|
74379
|
+
id: "critical-alerts",
|
|
74380
|
+
family: "system",
|
|
74381
|
+
label: "Critical alerts (raised / resolved)",
|
|
74382
|
+
bad: ["alert-critical"],
|
|
74383
|
+
recovery: ["alert-critical-resolved"],
|
|
74384
|
+
snapshotLabel: "Critical alerts open now",
|
|
74385
|
+
snapshotSection: null
|
|
74386
|
+
},
|
|
74387
|
+
{
|
|
74388
|
+
id: "rule-health",
|
|
74389
|
+
family: "system",
|
|
74390
|
+
label: "Rule health (broken / repaired)",
|
|
74391
|
+
bad: ["rule-broken"],
|
|
74392
|
+
recovery: ["rule-repaired"],
|
|
74393
|
+
snapshotLabel: "Notification rules broken now",
|
|
74394
|
+
snapshotSection: null
|
|
74395
|
+
}
|
|
74396
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
74274
74397
|
new Set([
|
|
74275
74398
|
"disarmed",
|
|
74276
74399
|
"armed_home",
|
|
@@ -2,7 +2,7 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
//#region ../types/dist/event-category-
|
|
5
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
6
6
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
7
7
|
EventCategory["SystemBoot"] = "system.boot";
|
|
8
8
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -690,6 +690,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
690
690
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
691
691
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
692
692
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
693
|
+
/**
|
|
694
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
695
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
696
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
697
|
+
*/
|
|
698
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
699
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
700
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
693
701
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
694
702
|
/**
|
|
695
703
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5550,7 +5558,7 @@ var ZodIssueCode = {
|
|
|
5550
5558
|
var ZodFirstPartyTypeKind;
|
|
5551
5559
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5552
5560
|
//#endregion
|
|
5553
|
-
//#region ../types/dist/sleep-
|
|
5561
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5554
5562
|
/**
|
|
5555
5563
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5556
5564
|
* window to float samples (D455).
|
|
@@ -42375,6 +42383,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42375
42383
|
"alert-critical",
|
|
42376
42384
|
"alert-error",
|
|
42377
42385
|
"alert-critical-resolved",
|
|
42386
|
+
"rule-broken",
|
|
42387
|
+
"rule-repaired",
|
|
42378
42388
|
"camera-online",
|
|
42379
42389
|
"camera-offline",
|
|
42380
42390
|
"camera-disabled",
|
|
@@ -73818,6 +73828,8 @@ new Map(Object.entries({
|
|
|
73818
73828
|
"alert-critical": "system",
|
|
73819
73829
|
"alert-error": "system",
|
|
73820
73830
|
"alert-critical-resolved": "system",
|
|
73831
|
+
"rule-broken": "system",
|
|
73832
|
+
"rule-repaired": "system",
|
|
73821
73833
|
"storage-location-low": "system",
|
|
73822
73834
|
"storage-location-critical": "system",
|
|
73823
73835
|
"storage-location-ok": "system",
|
|
@@ -73952,6 +73964,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73952
73964
|
"alert-critical-resolved"
|
|
73953
73965
|
]
|
|
73954
73966
|
},
|
|
73967
|
+
{
|
|
73968
|
+
id: "rule-health",
|
|
73969
|
+
family: "system",
|
|
73970
|
+
label: "Notification rules",
|
|
73971
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
73972
|
+
},
|
|
73955
73973
|
{
|
|
73956
73974
|
id: "alarm",
|
|
73957
73975
|
family: "alarm",
|
|
@@ -74229,6 +74247,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
74229
74247
|
[...RULE_TEXT],
|
|
74230
74248
|
[...RULE_TEXT],
|
|
74231
74249
|
[...RULE_TEXT],
|
|
74250
|
+
[...RULE_TEXT],
|
|
74251
|
+
[...RULE_TEXT],
|
|
74252
|
+
[...RULE_TEXT],
|
|
74253
|
+
[...RULE_TEXT],
|
|
74232
74254
|
([...RULE_TEXT], [...UPDATES]),
|
|
74233
74255
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
74234
74256
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -74267,6 +74289,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
74267
74289
|
[...RULE_TEXT],
|
|
74268
74290
|
...STATE_SUMMARY_VARS
|
|
74269
74291
|
];
|
|
74292
|
+
new Map([
|
|
74293
|
+
{
|
|
74294
|
+
id: "device-connectivity",
|
|
74295
|
+
family: "device-events",
|
|
74296
|
+
label: "Device connectivity (offline / back online)",
|
|
74297
|
+
bad: ["device-offline"],
|
|
74298
|
+
recovery: ["device-online"],
|
|
74299
|
+
snapshotLabel: "Devices offline now",
|
|
74300
|
+
snapshotSection: "device-state"
|
|
74301
|
+
},
|
|
74302
|
+
{
|
|
74303
|
+
id: "device-switch",
|
|
74304
|
+
family: "device-events",
|
|
74305
|
+
label: "Device switched off / back on",
|
|
74306
|
+
bad: ["device-disabled"],
|
|
74307
|
+
recovery: ["device-enabled"],
|
|
74308
|
+
snapshotLabel: "Devices switched off now",
|
|
74309
|
+
snapshotSection: "device-state"
|
|
74310
|
+
},
|
|
74311
|
+
{
|
|
74312
|
+
id: "stream-connectivity",
|
|
74313
|
+
family: "device-events",
|
|
74314
|
+
label: "Stream connectivity (offline / back online)",
|
|
74315
|
+
bad: ["stream-offline"],
|
|
74316
|
+
recovery: ["stream-online"],
|
|
74317
|
+
snapshotLabel: "Streams offline now",
|
|
74318
|
+
snapshotSection: "streams"
|
|
74319
|
+
},
|
|
74320
|
+
{
|
|
74321
|
+
id: "battery",
|
|
74322
|
+
family: "device-events",
|
|
74323
|
+
label: "Battery (low / back to normal)",
|
|
74324
|
+
bad: ["device-battery-low"],
|
|
74325
|
+
recovery: ["device-battery-normal"],
|
|
74326
|
+
snapshotLabel: "Batteries low now",
|
|
74327
|
+
snapshotSection: "battery"
|
|
74328
|
+
},
|
|
74329
|
+
{
|
|
74330
|
+
id: "consumables",
|
|
74331
|
+
family: "device-events",
|
|
74332
|
+
label: "Consumables (low / replaced)",
|
|
74333
|
+
bad: ["device-consumable-low"],
|
|
74334
|
+
recovery: ["device-consumable-normal"],
|
|
74335
|
+
snapshotLabel: "Consumables low now",
|
|
74336
|
+
snapshotSection: "consumables"
|
|
74337
|
+
},
|
|
74338
|
+
{
|
|
74339
|
+
id: "tanks",
|
|
74340
|
+
family: "device-events",
|
|
74341
|
+
label: "Tanks (low or full / back to normal)",
|
|
74342
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
74343
|
+
recovery: ["device-tank-normal"],
|
|
74344
|
+
snapshotLabel: "Tanks low or full now",
|
|
74345
|
+
snapshotSection: "tanks"
|
|
74346
|
+
},
|
|
74347
|
+
{
|
|
74348
|
+
id: "recording-health",
|
|
74349
|
+
family: "device-events",
|
|
74350
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
74351
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
74352
|
+
recovery: ["recording-healthy"],
|
|
74353
|
+
snapshotLabel: "Recordings stalled now",
|
|
74354
|
+
snapshotSection: null
|
|
74355
|
+
},
|
|
74356
|
+
{
|
|
74357
|
+
id: "node-connectivity",
|
|
74358
|
+
family: "system",
|
|
74359
|
+
label: "Node connectivity (offline / back online)",
|
|
74360
|
+
bad: ["node-offline"],
|
|
74361
|
+
recovery: ["node-online"],
|
|
74362
|
+
snapshotLabel: "Nodes offline now",
|
|
74363
|
+
snapshotSection: "nodes"
|
|
74364
|
+
},
|
|
74365
|
+
{
|
|
74366
|
+
id: "storage-space",
|
|
74367
|
+
family: "system",
|
|
74368
|
+
label: "Storage space (low or critical / ok again)",
|
|
74369
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
74370
|
+
recovery: ["storage-location-ok"],
|
|
74371
|
+
snapshotLabel: "Storage locations low now",
|
|
74372
|
+
snapshotSection: null
|
|
74373
|
+
},
|
|
74374
|
+
{
|
|
74375
|
+
id: "critical-alerts",
|
|
74376
|
+
family: "system",
|
|
74377
|
+
label: "Critical alerts (raised / resolved)",
|
|
74378
|
+
bad: ["alert-critical"],
|
|
74379
|
+
recovery: ["alert-critical-resolved"],
|
|
74380
|
+
snapshotLabel: "Critical alerts open now",
|
|
74381
|
+
snapshotSection: null
|
|
74382
|
+
},
|
|
74383
|
+
{
|
|
74384
|
+
id: "rule-health",
|
|
74385
|
+
family: "system",
|
|
74386
|
+
label: "Rule health (broken / repaired)",
|
|
74387
|
+
bad: ["rule-broken"],
|
|
74388
|
+
recovery: ["rule-repaired"],
|
|
74389
|
+
snapshotLabel: "Notification rules broken now",
|
|
74390
|
+
snapshotSection: null
|
|
74391
|
+
}
|
|
74392
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
74270
74393
|
new Set([
|
|
74271
74394
|
"disarmed",
|
|
74272
74395
|
"armed_home",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-waste-collections",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "Waste collection schedules via the vendored HACS waste_collection_schedule Python core — full source catalog as calendar-source.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|