@camstack/addon-provider-rademacher 0.2.51 → 0.2.52
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 +38 -2
- package/dist/addon.mjs +38 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -8703,7 +8703,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
8703
8703
|
"quota",
|
|
8704
8704
|
"manual",
|
|
8705
8705
|
"operator",
|
|
8706
|
-
"maintenance"
|
|
8706
|
+
"maintenance",
|
|
8707
|
+
"orphaned-device"
|
|
8707
8708
|
]);
|
|
8708
8709
|
/** One audit row, shared verbatim by both domains. */
|
|
8709
8710
|
var OpsLogEntrySchema = object({
|
|
@@ -13998,10 +13999,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13998
13999
|
deviceId: number(),
|
|
13999
14000
|
data: record(string(), unknown())
|
|
14000
14001
|
});
|
|
14002
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
14003
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
14004
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
14005
|
+
"off",
|
|
14006
|
+
"on",
|
|
14007
|
+
"not-offered",
|
|
14008
|
+
"unreachable"
|
|
14009
|
+
]);
|
|
14010
|
+
var MigrateSwitchReportSchema = object({
|
|
14011
|
+
deviceId: number(),
|
|
14012
|
+
switchId: CameraSwitchIdSchema,
|
|
14013
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
14014
|
+
detail: string().optional()
|
|
14015
|
+
});
|
|
14016
|
+
var MigrateDeviceResultSchema = object({
|
|
14017
|
+
sourceId: number(),
|
|
14018
|
+
targetId: number(),
|
|
14019
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
14020
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
14021
|
+
* value meaning the replaced hardware is quiet. */
|
|
14022
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
14023
|
+
swapped: boolean()
|
|
14024
|
+
});
|
|
14001
14025
|
method(object({
|
|
14002
14026
|
addonId: string(),
|
|
14003
14027
|
stableId: string()
|
|
14004
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
14028
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
14029
|
+
sourceId: number(),
|
|
14030
|
+
targetId: number()
|
|
14031
|
+
}), MigrateDeviceResultSchema, {
|
|
14032
|
+
kind: "mutation",
|
|
14033
|
+
auth: "admin"
|
|
14034
|
+
}), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
|
|
14005
14035
|
deviceId: number(),
|
|
14006
14036
|
name: string()
|
|
14007
14037
|
}), _void(), {
|
|
@@ -34996,6 +35026,12 @@ Object.freeze({
|
|
|
34996
35026
|
addonId: null,
|
|
34997
35027
|
access: "view"
|
|
34998
35028
|
},
|
|
35029
|
+
"deviceManager.migrateDevice": {
|
|
35030
|
+
capName: "device-manager",
|
|
35031
|
+
capScope: "system",
|
|
35032
|
+
addonId: null,
|
|
35033
|
+
access: "create"
|
|
35034
|
+
},
|
|
34999
35035
|
"deviceManager.persistConfig": {
|
|
35000
35036
|
capName: "device-manager",
|
|
35001
35037
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -8702,7 +8702,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
8702
8702
|
"quota",
|
|
8703
8703
|
"manual",
|
|
8704
8704
|
"operator",
|
|
8705
|
-
"maintenance"
|
|
8705
|
+
"maintenance",
|
|
8706
|
+
"orphaned-device"
|
|
8706
8707
|
]);
|
|
8707
8708
|
/** One audit row, shared verbatim by both domains. */
|
|
8708
8709
|
var OpsLogEntrySchema = object({
|
|
@@ -13997,10 +13998,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13997
13998
|
deviceId: number(),
|
|
13998
13999
|
data: record(string(), unknown())
|
|
13999
14000
|
});
|
|
14001
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
14002
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
14003
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
14004
|
+
"off",
|
|
14005
|
+
"on",
|
|
14006
|
+
"not-offered",
|
|
14007
|
+
"unreachable"
|
|
14008
|
+
]);
|
|
14009
|
+
var MigrateSwitchReportSchema = object({
|
|
14010
|
+
deviceId: number(),
|
|
14011
|
+
switchId: CameraSwitchIdSchema,
|
|
14012
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
14013
|
+
detail: string().optional()
|
|
14014
|
+
});
|
|
14015
|
+
var MigrateDeviceResultSchema = object({
|
|
14016
|
+
sourceId: number(),
|
|
14017
|
+
targetId: number(),
|
|
14018
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
14019
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
14020
|
+
* value meaning the replaced hardware is quiet. */
|
|
14021
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
14022
|
+
swapped: boolean()
|
|
14023
|
+
});
|
|
14000
14024
|
method(object({
|
|
14001
14025
|
addonId: string(),
|
|
14002
14026
|
stableId: string()
|
|
14003
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
14027
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
14028
|
+
sourceId: number(),
|
|
14029
|
+
targetId: number()
|
|
14030
|
+
}), MigrateDeviceResultSchema, {
|
|
14031
|
+
kind: "mutation",
|
|
14032
|
+
auth: "admin"
|
|
14033
|
+
}), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
|
|
14004
14034
|
deviceId: number(),
|
|
14005
14035
|
name: string()
|
|
14006
14036
|
}), _void(), {
|
|
@@ -34995,6 +35025,12 @@ Object.freeze({
|
|
|
34995
35025
|
addonId: null,
|
|
34996
35026
|
access: "view"
|
|
34997
35027
|
},
|
|
35028
|
+
"deviceManager.migrateDevice": {
|
|
35029
|
+
capName: "device-manager",
|
|
35030
|
+
capScope: "system",
|
|
35031
|
+
addonId: null,
|
|
35032
|
+
access: "create"
|
|
35033
|
+
},
|
|
34998
35034
|
"deviceManager.persistConfig": {
|
|
34999
35035
|
capName: "device-manager",
|
|
35000
35036
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-rademacher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.52",
|
|
4
4
|
"description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|