eufy-security-client 3.8.0-dev.25 → 3.8.0-dev.29
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/device.d.ts +2 -0
- package/build/http/device.js +9 -1
- package/build/http/device.js.map +1 -1
- package/build/http/models.d.ts +1 -0
- package/build/http/station.d.ts +3 -0
- package/build/http/station.js +11 -1
- package/build/http/station.js.map +1 -1
- package/build/http/types.d.ts +1 -0
- package/build/http/types.js +44 -0
- package/build/http/types.js.map +1 -1
- package/build/p2p/session.js +75 -21
- package/build/p2p/session.js.map +1 -1
- package/build/p2p/utils.d.ts +10 -0
- package/build/p2p/utils.js +64 -3
- package/build/p2p/utils.js.map +1 -1
- package/coverage/clover.xml +6723 -6668
- package/coverage/coverage-final.json +21 -21
- package/coverage/lcov-report/index.html +32 -32
- package/coverage/lcov.info +12534 -11212
- package/package.json +7 -7
package/build/http/models.d.ts
CHANGED
package/build/http/station.d.ts
CHANGED
|
@@ -51,14 +51,17 @@ export declare class Station extends TypedEmitter<StationEvents> {
|
|
|
51
51
|
static isStationHomeBase2OrOlder(type: number): boolean;
|
|
52
52
|
static isStationHomeBase3(type: number): boolean;
|
|
53
53
|
static isStationHomeBaseMini(type: number): boolean;
|
|
54
|
+
static isStationNVR(type: number): boolean;
|
|
54
55
|
static isStationHomeBase3BySn(sn: string): boolean;
|
|
55
56
|
static isStationHomeBaseMiniBySn(sn: string): boolean;
|
|
56
57
|
static isStationMiniBaseChime(type: number): boolean;
|
|
57
58
|
static isStationMiniBaseChimeBySn(sn: string): boolean;
|
|
59
|
+
static isStationNVRBySn(sn: string): boolean;
|
|
58
60
|
isStationHomeBase2OrOlder(): boolean;
|
|
59
61
|
isStationHomeBase3(): boolean;
|
|
60
62
|
isStationHomeBaseMini(): boolean;
|
|
61
63
|
isStationMiniBaseChime(): boolean;
|
|
64
|
+
isStationNVR(): boolean;
|
|
62
65
|
/**
|
|
63
66
|
* Checks if the station is a HomeBase 3 or HomeBase mini for determining if SoloDevices are connected to a supported HomeBase.
|
|
64
67
|
* @returns Returns true, if this is a HomeBase 3 or a HomeBase mini, otherwise false.
|
package/build/http/station.js
CHANGED
|
@@ -562,7 +562,8 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
562
562
|
return (type === types_1.DeviceType.STATION ||
|
|
563
563
|
type === types_1.DeviceType.HB3 ||
|
|
564
564
|
type === types_1.DeviceType.MINIBASE_CHIME ||
|
|
565
|
-
type === types_1.DeviceType.HOMEBASE_MINI
|
|
565
|
+
type === types_1.DeviceType.HOMEBASE_MINI ||
|
|
566
|
+
type === types_1.DeviceType.NVR_S4_MAX);
|
|
566
567
|
}
|
|
567
568
|
isStation() {
|
|
568
569
|
return Station.isStation(this.rawStation.device_type);
|
|
@@ -576,6 +577,9 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
576
577
|
static isStationHomeBaseMini(type) {
|
|
577
578
|
return type === types_1.DeviceType.HOMEBASE_MINI;
|
|
578
579
|
}
|
|
580
|
+
static isStationNVR(type) {
|
|
581
|
+
return type === types_1.DeviceType.NVR_S4_MAX;
|
|
582
|
+
}
|
|
579
583
|
static isStationHomeBase3BySn(sn) {
|
|
580
584
|
return sn.startsWith("T8030");
|
|
581
585
|
}
|
|
@@ -588,6 +592,9 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
588
592
|
static isStationMiniBaseChimeBySn(sn) {
|
|
589
593
|
return sn.startsWith("T8023");
|
|
590
594
|
}
|
|
595
|
+
static isStationNVRBySn(sn) {
|
|
596
|
+
return sn.startsWith("T8N00");
|
|
597
|
+
}
|
|
591
598
|
isStationHomeBase2OrOlder() {
|
|
592
599
|
return Station.isStationHomeBase2OrOlder(this.rawStation.device_type);
|
|
593
600
|
}
|
|
@@ -600,6 +607,9 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
600
607
|
isStationMiniBaseChime() {
|
|
601
608
|
return Station.isStationMiniBaseChime(this.rawStation.device_type);
|
|
602
609
|
}
|
|
610
|
+
isStationNVR() {
|
|
611
|
+
return Station.isStationNVR(this.rawStation.device_type);
|
|
612
|
+
}
|
|
603
613
|
/**
|
|
604
614
|
* Checks if the station is a HomeBase 3 or HomeBase mini for determining if SoloDevices are connected to a supported HomeBase.
|
|
605
615
|
* @returns Returns true, if this is a HomeBase 3 or a HomeBase mini, otherwise false.
|