@camstack/addon-provider-gree 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
|
@@ -7721,7 +7721,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7721
7721
|
"quota",
|
|
7722
7722
|
"manual",
|
|
7723
7723
|
"operator",
|
|
7724
|
-
"maintenance"
|
|
7724
|
+
"maintenance",
|
|
7725
|
+
"orphaned-device"
|
|
7725
7726
|
]);
|
|
7726
7727
|
/** One audit row, shared verbatim by both domains. */
|
|
7727
7728
|
var OpsLogEntrySchema = object({
|
|
@@ -13016,10 +13017,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13016
13017
|
deviceId: number(),
|
|
13017
13018
|
data: record(string(), unknown())
|
|
13018
13019
|
});
|
|
13020
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
13021
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
13022
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
13023
|
+
"off",
|
|
13024
|
+
"on",
|
|
13025
|
+
"not-offered",
|
|
13026
|
+
"unreachable"
|
|
13027
|
+
]);
|
|
13028
|
+
var MigrateSwitchReportSchema = object({
|
|
13029
|
+
deviceId: number(),
|
|
13030
|
+
switchId: CameraSwitchIdSchema,
|
|
13031
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
13032
|
+
detail: string().optional()
|
|
13033
|
+
});
|
|
13034
|
+
var MigrateDeviceResultSchema = object({
|
|
13035
|
+
sourceId: number(),
|
|
13036
|
+
targetId: number(),
|
|
13037
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
13038
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
13039
|
+
* value meaning the replaced hardware is quiet. */
|
|
13040
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
13041
|
+
swapped: boolean()
|
|
13042
|
+
});
|
|
13019
13043
|
method(object({
|
|
13020
13044
|
addonId: string(),
|
|
13021
13045
|
stableId: string()
|
|
13022
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
13046
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
13047
|
+
sourceId: number(),
|
|
13048
|
+
targetId: number()
|
|
13049
|
+
}), MigrateDeviceResultSchema, {
|
|
13050
|
+
kind: "mutation",
|
|
13051
|
+
auth: "admin"
|
|
13052
|
+
}), 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({
|
|
13023
13053
|
deviceId: number(),
|
|
13024
13054
|
name: string()
|
|
13025
13055
|
}), _void(), {
|
|
@@ -34014,6 +34044,12 @@ Object.freeze({
|
|
|
34014
34044
|
addonId: null,
|
|
34015
34045
|
access: "view"
|
|
34016
34046
|
},
|
|
34047
|
+
"deviceManager.migrateDevice": {
|
|
34048
|
+
capName: "device-manager",
|
|
34049
|
+
capScope: "system",
|
|
34050
|
+
addonId: null,
|
|
34051
|
+
access: "create"
|
|
34052
|
+
},
|
|
34017
34053
|
"deviceManager.persistConfig": {
|
|
34018
34054
|
capName: "device-manager",
|
|
34019
34055
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -7720,7 +7720,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7720
7720
|
"quota",
|
|
7721
7721
|
"manual",
|
|
7722
7722
|
"operator",
|
|
7723
|
-
"maintenance"
|
|
7723
|
+
"maintenance",
|
|
7724
|
+
"orphaned-device"
|
|
7724
7725
|
]);
|
|
7725
7726
|
/** One audit row, shared verbatim by both domains. */
|
|
7726
7727
|
var OpsLogEntrySchema = object({
|
|
@@ -13015,10 +13016,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13015
13016
|
deviceId: number(),
|
|
13016
13017
|
data: record(string(), unknown())
|
|
13017
13018
|
});
|
|
13019
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
13020
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
13021
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
13022
|
+
"off",
|
|
13023
|
+
"on",
|
|
13024
|
+
"not-offered",
|
|
13025
|
+
"unreachable"
|
|
13026
|
+
]);
|
|
13027
|
+
var MigrateSwitchReportSchema = object({
|
|
13028
|
+
deviceId: number(),
|
|
13029
|
+
switchId: CameraSwitchIdSchema,
|
|
13030
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
13031
|
+
detail: string().optional()
|
|
13032
|
+
});
|
|
13033
|
+
var MigrateDeviceResultSchema = object({
|
|
13034
|
+
sourceId: number(),
|
|
13035
|
+
targetId: number(),
|
|
13036
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
13037
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
13038
|
+
* value meaning the replaced hardware is quiet. */
|
|
13039
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
13040
|
+
swapped: boolean()
|
|
13041
|
+
});
|
|
13018
13042
|
method(object({
|
|
13019
13043
|
addonId: string(),
|
|
13020
13044
|
stableId: string()
|
|
13021
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
13045
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
13046
|
+
sourceId: number(),
|
|
13047
|
+
targetId: number()
|
|
13048
|
+
}), MigrateDeviceResultSchema, {
|
|
13049
|
+
kind: "mutation",
|
|
13050
|
+
auth: "admin"
|
|
13051
|
+
}), 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({
|
|
13022
13052
|
deviceId: number(),
|
|
13023
13053
|
name: string()
|
|
13024
13054
|
}), _void(), {
|
|
@@ -34013,6 +34043,12 @@ Object.freeze({
|
|
|
34013
34043
|
addonId: null,
|
|
34014
34044
|
access: "view"
|
|
34015
34045
|
},
|
|
34046
|
+
"deviceManager.migrateDevice": {
|
|
34047
|
+
capName: "device-manager",
|
|
34048
|
+
capScope: "system",
|
|
34049
|
+
addonId: null,
|
|
34050
|
+
access: "create"
|
|
34051
|
+
},
|
|
34016
34052
|
"deviceManager.persistConfig": {
|
|
34017
34053
|
capName: "device-manager",
|
|
34018
34054
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-gree",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.52",
|
|
4
4
|
"description": "Gree air-conditioner device-provider addon for CamStack — wraps the @apocaliss92/nodegree local-UDP client (LAN discovery + AES control), exposing climate-control and fan-control",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|