@camstack/addon-provider-homematic 1.2.53 → 1.2.54
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
|
@@ -7727,7 +7727,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7727
7727
|
"quota",
|
|
7728
7728
|
"manual",
|
|
7729
7729
|
"operator",
|
|
7730
|
-
"maintenance"
|
|
7730
|
+
"maintenance",
|
|
7731
|
+
"orphaned-device"
|
|
7731
7732
|
]);
|
|
7732
7733
|
/** One audit row, shared verbatim by both domains. */
|
|
7733
7734
|
var OpsLogEntrySchema = object({
|
|
@@ -13088,10 +13089,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13088
13089
|
deviceId: number(),
|
|
13089
13090
|
data: record(string(), unknown())
|
|
13090
13091
|
});
|
|
13092
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
13093
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
13094
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
13095
|
+
"off",
|
|
13096
|
+
"on",
|
|
13097
|
+
"not-offered",
|
|
13098
|
+
"unreachable"
|
|
13099
|
+
]);
|
|
13100
|
+
var MigrateSwitchReportSchema = object({
|
|
13101
|
+
deviceId: number(),
|
|
13102
|
+
switchId: CameraSwitchIdSchema,
|
|
13103
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
13104
|
+
detail: string().optional()
|
|
13105
|
+
});
|
|
13106
|
+
var MigrateDeviceResultSchema = object({
|
|
13107
|
+
sourceId: number(),
|
|
13108
|
+
targetId: number(),
|
|
13109
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
13110
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
13111
|
+
* value meaning the replaced hardware is quiet. */
|
|
13112
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
13113
|
+
swapped: boolean()
|
|
13114
|
+
});
|
|
13091
13115
|
method(object({
|
|
13092
13116
|
addonId: string(),
|
|
13093
13117
|
stableId: string()
|
|
13094
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
13118
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
13119
|
+
sourceId: number(),
|
|
13120
|
+
targetId: number()
|
|
13121
|
+
}), MigrateDeviceResultSchema, {
|
|
13122
|
+
kind: "mutation",
|
|
13123
|
+
auth: "admin"
|
|
13124
|
+
}), 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({
|
|
13095
13125
|
deviceId: number(),
|
|
13096
13126
|
name: string()
|
|
13097
13127
|
}), _void(), {
|
|
@@ -34086,6 +34116,12 @@ Object.freeze({
|
|
|
34086
34116
|
addonId: null,
|
|
34087
34117
|
access: "view"
|
|
34088
34118
|
},
|
|
34119
|
+
"deviceManager.migrateDevice": {
|
|
34120
|
+
capName: "device-manager",
|
|
34121
|
+
capScope: "system",
|
|
34122
|
+
addonId: null,
|
|
34123
|
+
access: "create"
|
|
34124
|
+
},
|
|
34089
34125
|
"deviceManager.persistConfig": {
|
|
34090
34126
|
capName: "device-manager",
|
|
34091
34127
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -7728,7 +7728,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7728
7728
|
"quota",
|
|
7729
7729
|
"manual",
|
|
7730
7730
|
"operator",
|
|
7731
|
-
"maintenance"
|
|
7731
|
+
"maintenance",
|
|
7732
|
+
"orphaned-device"
|
|
7732
7733
|
]);
|
|
7733
7734
|
/** One audit row, shared verbatim by both domains. */
|
|
7734
7735
|
var OpsLogEntrySchema = object({
|
|
@@ -13089,10 +13090,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13089
13090
|
deviceId: number(),
|
|
13090
13091
|
data: record(string(), unknown())
|
|
13091
13092
|
});
|
|
13093
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
13094
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
13095
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
13096
|
+
"off",
|
|
13097
|
+
"on",
|
|
13098
|
+
"not-offered",
|
|
13099
|
+
"unreachable"
|
|
13100
|
+
]);
|
|
13101
|
+
var MigrateSwitchReportSchema = object({
|
|
13102
|
+
deviceId: number(),
|
|
13103
|
+
switchId: CameraSwitchIdSchema,
|
|
13104
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
13105
|
+
detail: string().optional()
|
|
13106
|
+
});
|
|
13107
|
+
var MigrateDeviceResultSchema = object({
|
|
13108
|
+
sourceId: number(),
|
|
13109
|
+
targetId: number(),
|
|
13110
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
13111
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
13112
|
+
* value meaning the replaced hardware is quiet. */
|
|
13113
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
13114
|
+
swapped: boolean()
|
|
13115
|
+
});
|
|
13092
13116
|
method(object({
|
|
13093
13117
|
addonId: string(),
|
|
13094
13118
|
stableId: string()
|
|
13095
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
13119
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
13120
|
+
sourceId: number(),
|
|
13121
|
+
targetId: number()
|
|
13122
|
+
}), MigrateDeviceResultSchema, {
|
|
13123
|
+
kind: "mutation",
|
|
13124
|
+
auth: "admin"
|
|
13125
|
+
}), 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({
|
|
13096
13126
|
deviceId: number(),
|
|
13097
13127
|
name: string()
|
|
13098
13128
|
}), _void(), {
|
|
@@ -34087,6 +34117,12 @@ Object.freeze({
|
|
|
34087
34117
|
addonId: null,
|
|
34088
34118
|
access: "view"
|
|
34089
34119
|
},
|
|
34120
|
+
"deviceManager.migrateDevice": {
|
|
34121
|
+
capName: "device-manager",
|
|
34122
|
+
capScope: "system",
|
|
34123
|
+
addonId: null,
|
|
34124
|
+
access: "create"
|
|
34125
|
+
},
|
|
34090
34126
|
"deviceManager.persistConfig": {
|
|
34091
34127
|
capName: "device-manager",
|
|
34092
34128
|
capScope: "system",
|
package/package.json
CHANGED