eufy-security-client 3.8.0-dev.21 → 3.8.0-dev.23
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/build/http/station.d.ts +3 -0
- package/build/http/station.js +12 -1
- package/build/http/station.js.map +1 -1
- package/build/p2p/session.js +1 -0
- package/build/p2p/session.js.map +1 -1
- package/build/p2p/utils.d.ts +1 -0
- package/build/p2p/utils.js +15 -4
- package/build/p2p/utils.js.map +1 -1
- package/coverage/clover.xml +3962 -3949
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/index.html +23 -23
- package/coverage/lcov.info +7430 -7406
- package/package.json +1 -1
package/build/http/station.d.ts
CHANGED
|
@@ -53,9 +53,12 @@ export declare class Station extends TypedEmitter<StationEvents> {
|
|
|
53
53
|
static isStationHomeBaseMini(type: number): boolean;
|
|
54
54
|
static isStationHomeBase3BySn(sn: string): boolean;
|
|
55
55
|
static isStationHomeBaseMiniBySn(sn: string): boolean;
|
|
56
|
+
static isStationMiniBaseChime(type: number): boolean;
|
|
57
|
+
static isStationMiniBaseChimeBySn(sn: string): boolean;
|
|
56
58
|
isStationHomeBase2OrOlder(): boolean;
|
|
57
59
|
isStationHomeBase3(): boolean;
|
|
58
60
|
isStationHomeBaseMini(): boolean;
|
|
61
|
+
isStationMiniBaseChime(): boolean;
|
|
59
62
|
/**
|
|
60
63
|
* Checks if the station is a HomeBase 3 or HomeBase mini for determining if SoloDevices are connected to a supported HomeBase.
|
|
61
64
|
* @returns Returns true, if this is a HomeBase 3 or a HomeBase mini, otherwise false.
|
package/build/http/station.js
CHANGED
|
@@ -582,6 +582,12 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
582
582
|
static isStationHomeBaseMiniBySn(sn) {
|
|
583
583
|
return sn.startsWith("T8025");
|
|
584
584
|
}
|
|
585
|
+
static isStationMiniBaseChime(type) {
|
|
586
|
+
return type === types_1.DeviceType.MINIBASE_CHIME;
|
|
587
|
+
}
|
|
588
|
+
static isStationMiniBaseChimeBySn(sn) {
|
|
589
|
+
return sn.startsWith("T8023");
|
|
590
|
+
}
|
|
585
591
|
isStationHomeBase2OrOlder() {
|
|
586
592
|
return Station.isStationHomeBase2OrOlder(this.rawStation.device_type);
|
|
587
593
|
}
|
|
@@ -591,6 +597,9 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
591
597
|
isStationHomeBaseMini() {
|
|
592
598
|
return Station.isStationHomeBaseMini(this.rawStation.device_type);
|
|
593
599
|
}
|
|
600
|
+
isStationMiniBaseChime() {
|
|
601
|
+
return Station.isStationMiniBaseChime(this.rawStation.device_type);
|
|
602
|
+
}
|
|
594
603
|
/**
|
|
595
604
|
* Checks if the station is a HomeBase 3 or HomeBase mini for determining if SoloDevices are connected to a supported HomeBase.
|
|
596
605
|
* @returns Returns true, if this is a HomeBase 3 or a HomeBase mini, otherwise false.
|
|
@@ -6617,8 +6626,8 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
6617
6626
|
});
|
|
6618
6627
|
}
|
|
6619
6628
|
else if (device.isOutdoorPanAndTiltCamera() ||
|
|
6620
|
-
device.isBatteryDoorbellDualE340() ||
|
|
6621
6629
|
device.isFloodLightT8425() ||
|
|
6630
|
+
(device.isBatteryDoorbellDualE340() && !this.isStationMiniBaseChime()) ||
|
|
6622
6631
|
((device.isIndoorPTCameraE30() || device.isIndoorCameraBase()) && this.isDeviceControlledByHomeBase())) {
|
|
6623
6632
|
logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_DOORBELL_SET_PAYLOAD (1)`, {
|
|
6624
6633
|
stationSN: this.getSerial(),
|
|
@@ -10863,6 +10872,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
10863
10872
|
device.isWallLightCam() ||
|
|
10864
10873
|
device.isGarageCamera() ||
|
|
10865
10874
|
device.isOutdoorPanAndTiltCamera() ||
|
|
10875
|
+
device.isBatteryDoorbellDualE340() ||
|
|
10866
10876
|
(device.isIndoorPanAndTiltCameraS350() && !this.isDeviceControlledByHomeBase())) {
|
|
10867
10877
|
this.p2pSession.sendCommandWithStringPayload({
|
|
10868
10878
|
commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD,
|
|
@@ -10931,6 +10941,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
10931
10941
|
device.isWallLightCam() ||
|
|
10932
10942
|
device.isGarageCamera() ||
|
|
10933
10943
|
device.isOutdoorPanAndTiltCamera() ||
|
|
10944
|
+
device.isBatteryDoorbellDualE340() ||
|
|
10934
10945
|
(device.isIndoorPanAndTiltCameraS350() && !this.isDeviceControlledByHomeBase())) {
|
|
10935
10946
|
this.p2pSession.sendCommandWithStringPayload({
|
|
10936
10947
|
commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD,
|