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/device.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
|
|
|
142
142
|
static isSmartTrackLink(type: number): boolean;
|
|
143
143
|
static isSmartTrack(type: number): boolean;
|
|
144
144
|
static isCameraPoE(type: number): boolean;
|
|
145
|
+
static isNVR(type: number): boolean;
|
|
145
146
|
isCamera(): boolean;
|
|
146
147
|
isIndoorCameraBase(): boolean;
|
|
147
148
|
isFloodLight(): boolean;
|
|
@@ -227,6 +228,7 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
|
|
|
227
228
|
isSmartTrackCard(): boolean;
|
|
228
229
|
isSmartTrackLink(): boolean;
|
|
229
230
|
isCameraPoE(): boolean;
|
|
231
|
+
isNVR(): boolean;
|
|
230
232
|
hasBattery(): boolean;
|
|
231
233
|
getDeviceKey(): string;
|
|
232
234
|
getDeviceType(): number;
|
package/build/http/device.js
CHANGED
|
@@ -1820,7 +1820,8 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
1820
1820
|
return (type === types_1.DeviceType.STATION ||
|
|
1821
1821
|
type === types_1.DeviceType.HB3 ||
|
|
1822
1822
|
type === types_1.DeviceType.HOMEBASE_MINI ||
|
|
1823
|
-
type === types_1.DeviceType.MINIBASE_CHIME
|
|
1823
|
+
type === types_1.DeviceType.MINIBASE_CHIME ||
|
|
1824
|
+
type === types_1.DeviceType.NVR_S4_MAX);
|
|
1824
1825
|
}
|
|
1825
1826
|
static isCamera1(type) {
|
|
1826
1827
|
return types_1.DeviceType.CAMERA == type;
|
|
@@ -2334,6 +2335,10 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
2334
2335
|
//T8E00
|
|
2335
2336
|
return types_1.DeviceType.CAMERA_POE_S4 === type;
|
|
2336
2337
|
}
|
|
2338
|
+
static isNVR(type) {
|
|
2339
|
+
//T8N00
|
|
2340
|
+
return types_1.DeviceType.NVR_S4_MAX === type;
|
|
2341
|
+
}
|
|
2337
2342
|
isCamera() {
|
|
2338
2343
|
return Device.isCamera(this.rawDevice.device_type);
|
|
2339
2344
|
}
|
|
@@ -2597,6 +2602,9 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
2597
2602
|
isCameraPoE() {
|
|
2598
2603
|
return Device.isCameraPoE(this.rawDevice.device_type);
|
|
2599
2604
|
}
|
|
2605
|
+
isNVR() {
|
|
2606
|
+
return Device.isNVR(this.rawDevice.device_type);
|
|
2607
|
+
}
|
|
2600
2608
|
hasBattery() {
|
|
2601
2609
|
return Device.hasBattery(this.rawDevice.device_type);
|
|
2602
2610
|
}
|