@camstack/addon-provider-gree 0.2.110 → 0.2.112
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 +64 -1
- package/dist/addon.mjs +64 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5363,7 +5363,7 @@ var ZodIssueCode = {
|
|
|
5363
5363
|
var ZodFirstPartyTypeKind;
|
|
5364
5364
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5365
5365
|
//#endregion
|
|
5366
|
-
//#region ../types/dist/sleep-
|
|
5366
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5367
5367
|
/**
|
|
5368
5368
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5369
5369
|
* window to float samples (D455).
|
|
@@ -31032,6 +31032,26 @@ var PtzHomePresetSchema = object({
|
|
|
31032
31032
|
"none"
|
|
31033
31033
|
])
|
|
31034
31034
|
});
|
|
31035
|
+
/**
|
|
31036
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31037
|
+
* after how long.
|
|
31038
|
+
*
|
|
31039
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31040
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31041
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31042
|
+
* can disagree.
|
|
31043
|
+
*
|
|
31044
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31045
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31046
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31047
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31048
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31049
|
+
* return at all.
|
|
31050
|
+
*/
|
|
31051
|
+
var PtzHomeReturnSchema = object({
|
|
31052
|
+
enabled: boolean(),
|
|
31053
|
+
seconds: number().int()
|
|
31054
|
+
});
|
|
31035
31055
|
DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
|
|
31036
31056
|
deviceId: number(),
|
|
31037
31057
|
presetId: string()
|
|
@@ -31054,6 +31074,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31054
31074
|
}), _void(), {
|
|
31055
31075
|
kind: "mutation",
|
|
31056
31076
|
auth: "admin"
|
|
31077
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
31078
|
+
kind: "mutation",
|
|
31079
|
+
auth: "admin"
|
|
31080
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31081
|
+
deviceId: number(),
|
|
31082
|
+
enabled: boolean(),
|
|
31083
|
+
seconds: number().int().min(0).max(3600)
|
|
31084
|
+
}), _void(), {
|
|
31085
|
+
kind: "mutation",
|
|
31086
|
+
auth: "admin"
|
|
31057
31087
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
31058
31088
|
deviceId: number(),
|
|
31059
31089
|
enabled: boolean()
|
|
@@ -40296,6 +40326,12 @@ Object.freeze({
|
|
|
40296
40326
|
addonId: null,
|
|
40297
40327
|
access: "create"
|
|
40298
40328
|
},
|
|
40329
|
+
"ptz.captureHomeHere": {
|
|
40330
|
+
capName: "ptz",
|
|
40331
|
+
capScope: "device",
|
|
40332
|
+
addonId: null,
|
|
40333
|
+
access: "create"
|
|
40334
|
+
},
|
|
40299
40335
|
"ptz.continuousMove": {
|
|
40300
40336
|
capName: "ptz",
|
|
40301
40337
|
capScope: "device",
|
|
@@ -40314,6 +40350,12 @@ Object.freeze({
|
|
|
40314
40350
|
addonId: null,
|
|
40315
40351
|
access: "view"
|
|
40316
40352
|
},
|
|
40353
|
+
"ptz.getHomeReturn": {
|
|
40354
|
+
capName: "ptz",
|
|
40355
|
+
capScope: "device",
|
|
40356
|
+
addonId: null,
|
|
40357
|
+
access: "view"
|
|
40358
|
+
},
|
|
40317
40359
|
"ptz.getOptions": {
|
|
40318
40360
|
capName: "ptz",
|
|
40319
40361
|
capScope: "device",
|
|
@@ -40368,6 +40410,12 @@ Object.freeze({
|
|
|
40368
40410
|
addonId: null,
|
|
40369
40411
|
access: "create"
|
|
40370
40412
|
},
|
|
40413
|
+
"ptz.setHomeReturn": {
|
|
40414
|
+
capName: "ptz",
|
|
40415
|
+
capScope: "device",
|
|
40416
|
+
addonId: null,
|
|
40417
|
+
access: "create"
|
|
40418
|
+
},
|
|
40371
40419
|
"ptz.stop": {
|
|
40372
40420
|
capName: "ptz",
|
|
40373
40421
|
capScope: "device",
|
|
@@ -43531,6 +43579,11 @@ Object.freeze({
|
|
|
43531
43579
|
form: "single",
|
|
43532
43580
|
optional: false
|
|
43533
43581
|
}],
|
|
43582
|
+
"ptz.captureHomeHere": [{
|
|
43583
|
+
name: "deviceId",
|
|
43584
|
+
form: "single",
|
|
43585
|
+
optional: false
|
|
43586
|
+
}],
|
|
43534
43587
|
"ptz.continuousMove": [{
|
|
43535
43588
|
name: "deviceId",
|
|
43536
43589
|
form: "single",
|
|
@@ -43546,6 +43599,11 @@ Object.freeze({
|
|
|
43546
43599
|
form: "single",
|
|
43547
43600
|
optional: false
|
|
43548
43601
|
}],
|
|
43602
|
+
"ptz.getHomeReturn": [{
|
|
43603
|
+
name: "deviceId",
|
|
43604
|
+
form: "single",
|
|
43605
|
+
optional: false
|
|
43606
|
+
}],
|
|
43549
43607
|
"ptz.getOptions": [{
|
|
43550
43608
|
name: "deviceId",
|
|
43551
43609
|
form: "single",
|
|
@@ -43591,6 +43649,11 @@ Object.freeze({
|
|
|
43591
43649
|
form: "single",
|
|
43592
43650
|
optional: false
|
|
43593
43651
|
}],
|
|
43652
|
+
"ptz.setHomeReturn": [{
|
|
43653
|
+
name: "deviceId",
|
|
43654
|
+
form: "single",
|
|
43655
|
+
optional: false
|
|
43656
|
+
}],
|
|
43594
43657
|
"ptz.stop": [{
|
|
43595
43658
|
name: "deviceId",
|
|
43596
43659
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -5362,7 +5362,7 @@ var ZodIssueCode = {
|
|
|
5362
5362
|
var ZodFirstPartyTypeKind;
|
|
5363
5363
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5364
5364
|
//#endregion
|
|
5365
|
-
//#region ../types/dist/sleep-
|
|
5365
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5366
5366
|
/**
|
|
5367
5367
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5368
5368
|
* window to float samples (D455).
|
|
@@ -31031,6 +31031,26 @@ var PtzHomePresetSchema = object({
|
|
|
31031
31031
|
"none"
|
|
31032
31032
|
])
|
|
31033
31033
|
});
|
|
31034
|
+
/**
|
|
31035
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31036
|
+
* after how long.
|
|
31037
|
+
*
|
|
31038
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31039
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31040
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31041
|
+
* can disagree.
|
|
31042
|
+
*
|
|
31043
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31044
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31045
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31046
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31047
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31048
|
+
* return at all.
|
|
31049
|
+
*/
|
|
31050
|
+
var PtzHomeReturnSchema = object({
|
|
31051
|
+
enabled: boolean(),
|
|
31052
|
+
seconds: number().int()
|
|
31053
|
+
});
|
|
31034
31054
|
DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
|
|
31035
31055
|
deviceId: number(),
|
|
31036
31056
|
presetId: string()
|
|
@@ -31053,6 +31073,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31053
31073
|
}), _void(), {
|
|
31054
31074
|
kind: "mutation",
|
|
31055
31075
|
auth: "admin"
|
|
31076
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
31077
|
+
kind: "mutation",
|
|
31078
|
+
auth: "admin"
|
|
31079
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31080
|
+
deviceId: number(),
|
|
31081
|
+
enabled: boolean(),
|
|
31082
|
+
seconds: number().int().min(0).max(3600)
|
|
31083
|
+
}), _void(), {
|
|
31084
|
+
kind: "mutation",
|
|
31085
|
+
auth: "admin"
|
|
31056
31086
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
31057
31087
|
deviceId: number(),
|
|
31058
31088
|
enabled: boolean()
|
|
@@ -40295,6 +40325,12 @@ Object.freeze({
|
|
|
40295
40325
|
addonId: null,
|
|
40296
40326
|
access: "create"
|
|
40297
40327
|
},
|
|
40328
|
+
"ptz.captureHomeHere": {
|
|
40329
|
+
capName: "ptz",
|
|
40330
|
+
capScope: "device",
|
|
40331
|
+
addonId: null,
|
|
40332
|
+
access: "create"
|
|
40333
|
+
},
|
|
40298
40334
|
"ptz.continuousMove": {
|
|
40299
40335
|
capName: "ptz",
|
|
40300
40336
|
capScope: "device",
|
|
@@ -40313,6 +40349,12 @@ Object.freeze({
|
|
|
40313
40349
|
addonId: null,
|
|
40314
40350
|
access: "view"
|
|
40315
40351
|
},
|
|
40352
|
+
"ptz.getHomeReturn": {
|
|
40353
|
+
capName: "ptz",
|
|
40354
|
+
capScope: "device",
|
|
40355
|
+
addonId: null,
|
|
40356
|
+
access: "view"
|
|
40357
|
+
},
|
|
40316
40358
|
"ptz.getOptions": {
|
|
40317
40359
|
capName: "ptz",
|
|
40318
40360
|
capScope: "device",
|
|
@@ -40367,6 +40409,12 @@ Object.freeze({
|
|
|
40367
40409
|
addonId: null,
|
|
40368
40410
|
access: "create"
|
|
40369
40411
|
},
|
|
40412
|
+
"ptz.setHomeReturn": {
|
|
40413
|
+
capName: "ptz",
|
|
40414
|
+
capScope: "device",
|
|
40415
|
+
addonId: null,
|
|
40416
|
+
access: "create"
|
|
40417
|
+
},
|
|
40370
40418
|
"ptz.stop": {
|
|
40371
40419
|
capName: "ptz",
|
|
40372
40420
|
capScope: "device",
|
|
@@ -43530,6 +43578,11 @@ Object.freeze({
|
|
|
43530
43578
|
form: "single",
|
|
43531
43579
|
optional: false
|
|
43532
43580
|
}],
|
|
43581
|
+
"ptz.captureHomeHere": [{
|
|
43582
|
+
name: "deviceId",
|
|
43583
|
+
form: "single",
|
|
43584
|
+
optional: false
|
|
43585
|
+
}],
|
|
43533
43586
|
"ptz.continuousMove": [{
|
|
43534
43587
|
name: "deviceId",
|
|
43535
43588
|
form: "single",
|
|
@@ -43545,6 +43598,11 @@ Object.freeze({
|
|
|
43545
43598
|
form: "single",
|
|
43546
43599
|
optional: false
|
|
43547
43600
|
}],
|
|
43601
|
+
"ptz.getHomeReturn": [{
|
|
43602
|
+
name: "deviceId",
|
|
43603
|
+
form: "single",
|
|
43604
|
+
optional: false
|
|
43605
|
+
}],
|
|
43548
43606
|
"ptz.getOptions": [{
|
|
43549
43607
|
name: "deviceId",
|
|
43550
43608
|
form: "single",
|
|
@@ -43590,6 +43648,11 @@ Object.freeze({
|
|
|
43590
43648
|
form: "single",
|
|
43591
43649
|
optional: false
|
|
43592
43650
|
}],
|
|
43651
|
+
"ptz.setHomeReturn": [{
|
|
43652
|
+
name: "deviceId",
|
|
43653
|
+
form: "single",
|
|
43654
|
+
optional: false
|
|
43655
|
+
}],
|
|
43593
43656
|
"ptz.stop": [{
|
|
43594
43657
|
name: "deviceId",
|
|
43595
43658
|
form: "single",
|
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.112",
|
|
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",
|