@camstack/addon-provider-dreame 0.2.52 → 0.2.53
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
|
@@ -58223,7 +58223,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
58223
58223
|
"quota",
|
|
58224
58224
|
"manual",
|
|
58225
58225
|
"operator",
|
|
58226
|
-
"maintenance"
|
|
58226
|
+
"maintenance",
|
|
58227
|
+
"orphaned-device"
|
|
58227
58228
|
]);
|
|
58228
58229
|
/** One audit row, shared verbatim by both domains. */
|
|
58229
58230
|
var OpsLogEntrySchema = object({
|
|
@@ -63535,10 +63536,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
63535
63536
|
deviceId: number(),
|
|
63536
63537
|
data: record(string(), unknown())
|
|
63537
63538
|
});
|
|
63539
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
63540
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
63541
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
63542
|
+
"off",
|
|
63543
|
+
"on",
|
|
63544
|
+
"not-offered",
|
|
63545
|
+
"unreachable"
|
|
63546
|
+
]);
|
|
63547
|
+
var MigrateSwitchReportSchema = object({
|
|
63548
|
+
deviceId: number(),
|
|
63549
|
+
switchId: CameraSwitchIdSchema,
|
|
63550
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
63551
|
+
detail: string().optional()
|
|
63552
|
+
});
|
|
63553
|
+
var MigrateDeviceResultSchema = object({
|
|
63554
|
+
sourceId: number(),
|
|
63555
|
+
targetId: number(),
|
|
63556
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
63557
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
63558
|
+
* value meaning the replaced hardware is quiet. */
|
|
63559
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
63560
|
+
swapped: boolean()
|
|
63561
|
+
});
|
|
63538
63562
|
method(object({
|
|
63539
63563
|
addonId: string(),
|
|
63540
63564
|
stableId: string()
|
|
63541
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
63565
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
63566
|
+
sourceId: number(),
|
|
63567
|
+
targetId: number()
|
|
63568
|
+
}), MigrateDeviceResultSchema, {
|
|
63569
|
+
kind: "mutation",
|
|
63570
|
+
auth: "admin"
|
|
63571
|
+
}), 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({
|
|
63542
63572
|
deviceId: number(),
|
|
63543
63573
|
name: string()
|
|
63544
63574
|
}), _void(), {
|
|
@@ -84558,6 +84588,12 @@ Object.freeze({
|
|
|
84558
84588
|
addonId: null,
|
|
84559
84589
|
access: "view"
|
|
84560
84590
|
},
|
|
84591
|
+
"deviceManager.migrateDevice": {
|
|
84592
|
+
capName: "device-manager",
|
|
84593
|
+
capScope: "system",
|
|
84594
|
+
addonId: null,
|
|
84595
|
+
access: "create"
|
|
84596
|
+
},
|
|
84561
84597
|
"deviceManager.persistConfig": {
|
|
84562
84598
|
capName: "device-manager",
|
|
84563
84599
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -58223,7 +58223,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
58223
58223
|
"quota",
|
|
58224
58224
|
"manual",
|
|
58225
58225
|
"operator",
|
|
58226
|
-
"maintenance"
|
|
58226
|
+
"maintenance",
|
|
58227
|
+
"orphaned-device"
|
|
58227
58228
|
]);
|
|
58228
58229
|
/** One audit row, shared verbatim by both domains. */
|
|
58229
58230
|
var OpsLogEntrySchema = object({
|
|
@@ -63535,10 +63536,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
63535
63536
|
deviceId: number(),
|
|
63536
63537
|
data: record(string(), unknown())
|
|
63537
63538
|
});
|
|
63539
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
63540
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
63541
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
63542
|
+
"off",
|
|
63543
|
+
"on",
|
|
63544
|
+
"not-offered",
|
|
63545
|
+
"unreachable"
|
|
63546
|
+
]);
|
|
63547
|
+
var MigrateSwitchReportSchema = object({
|
|
63548
|
+
deviceId: number(),
|
|
63549
|
+
switchId: CameraSwitchIdSchema,
|
|
63550
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
63551
|
+
detail: string().optional()
|
|
63552
|
+
});
|
|
63553
|
+
var MigrateDeviceResultSchema = object({
|
|
63554
|
+
sourceId: number(),
|
|
63555
|
+
targetId: number(),
|
|
63556
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
63557
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
63558
|
+
* value meaning the replaced hardware is quiet. */
|
|
63559
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
63560
|
+
swapped: boolean()
|
|
63561
|
+
});
|
|
63538
63562
|
method(object({
|
|
63539
63563
|
addonId: string(),
|
|
63540
63564
|
stableId: string()
|
|
63541
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
63565
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
63566
|
+
sourceId: number(),
|
|
63567
|
+
targetId: number()
|
|
63568
|
+
}), MigrateDeviceResultSchema, {
|
|
63569
|
+
kind: "mutation",
|
|
63570
|
+
auth: "admin"
|
|
63571
|
+
}), 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({
|
|
63542
63572
|
deviceId: number(),
|
|
63543
63573
|
name: string()
|
|
63544
63574
|
}), _void(), {
|
|
@@ -84558,6 +84588,12 @@ Object.freeze({
|
|
|
84558
84588
|
addonId: null,
|
|
84559
84589
|
access: "view"
|
|
84560
84590
|
},
|
|
84591
|
+
"deviceManager.migrateDevice": {
|
|
84592
|
+
capName: "device-manager",
|
|
84593
|
+
capScope: "system",
|
|
84594
|
+
addonId: null,
|
|
84595
|
+
access: "create"
|
|
84596
|
+
},
|
|
84561
84597
|
"deviceManager.persistConfig": {
|
|
84562
84598
|
capName: "device-manager",
|
|
84563
84599
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreame",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.53",
|
|
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",
|