eufy-security-client 3.8.0-dev.13 → 3.8.0-dev.14
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 +11 -2
- package/build/http/device.js.map +1 -1
- package/build/http/types.d.ts +1 -0
- package/build/http/types.js +74 -0
- package/build/http/types.js.map +1 -1
- package/coverage/clover.xml +1827 -1824
- package/coverage/coverage-final.json +2 -2
- package/coverage/lcov-report/index.html +12 -12
- package/coverage/lcov.info +3368 -3359
- package/package.json +1 -1
package/build/http/device.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
|
|
|
137
137
|
static isSmartTrackCard(type: number): boolean;
|
|
138
138
|
static isSmartTrackLink(type: number): boolean;
|
|
139
139
|
static isSmartTrack(type: number): boolean;
|
|
140
|
+
static isCameraPoE(type: number): boolean;
|
|
140
141
|
isCamera(): boolean;
|
|
141
142
|
isFloodLight(): boolean;
|
|
142
143
|
isFloodLightT8420X(): boolean;
|
|
@@ -217,6 +218,7 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
|
|
|
217
218
|
isSmartTrack(): boolean;
|
|
218
219
|
isSmartTrackCard(): boolean;
|
|
219
220
|
isSmartTrackLink(): boolean;
|
|
221
|
+
isCameraPoE(): boolean;
|
|
220
222
|
hasBattery(): boolean;
|
|
221
223
|
getDeviceKey(): string;
|
|
222
224
|
getDeviceType(): number;
|
package/build/http/device.js
CHANGED
|
@@ -1747,7 +1747,8 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
1747
1747
|
type == types_1.DeviceType.INDOOR_PT_CAMERA_C220 ||
|
|
1748
1748
|
type == types_1.DeviceType.INDOOR_PT_CAMERA_C220_V2 ||
|
|
1749
1749
|
type == types_1.DeviceType.SOLOCAM_E42 ||
|
|
1750
|
-
type == types_1.DeviceType.SMART_DROP
|
|
1750
|
+
type == types_1.DeviceType.SMART_DROP ||
|
|
1751
|
+
type == types_1.DeviceType.CAMERA_POE_S4);
|
|
1751
1752
|
}
|
|
1752
1753
|
static hasBattery(type) {
|
|
1753
1754
|
return (type == types_1.DeviceType.CAMERA ||
|
|
@@ -1887,7 +1888,8 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
1887
1888
|
type == types_1.DeviceType.INDOOR_PT_CAMERA_E30 ||
|
|
1888
1889
|
type == types_1.DeviceType.INDOOR_PT_CAMERA_C210 ||
|
|
1889
1890
|
type == types_1.DeviceType.INDOOR_PT_CAMERA_C220 ||
|
|
1890
|
-
type == types_1.DeviceType.INDOOR_PT_CAMERA_C220_V2
|
|
1891
|
+
type == types_1.DeviceType.INDOOR_PT_CAMERA_C220_V2 ||
|
|
1892
|
+
type == types_1.DeviceType.CAMERA_POE_S4)
|
|
1891
1893
|
return true;
|
|
1892
1894
|
return false;
|
|
1893
1895
|
}
|
|
@@ -2297,6 +2299,10 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
2297
2299
|
return true;
|
|
2298
2300
|
return false;
|
|
2299
2301
|
}
|
|
2302
|
+
static isCameraPoE(type) {
|
|
2303
|
+
//T8E00
|
|
2304
|
+
return types_1.DeviceType.CAMERA_POE_S4 === type;
|
|
2305
|
+
}
|
|
2300
2306
|
isCamera() {
|
|
2301
2307
|
return Device.isCamera(this.rawDevice.device_type);
|
|
2302
2308
|
}
|
|
@@ -2545,6 +2551,9 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
2545
2551
|
isSmartTrackLink() {
|
|
2546
2552
|
return Device.isSmartTrackLink(this.rawDevice.device_type);
|
|
2547
2553
|
}
|
|
2554
|
+
isCameraPoE() {
|
|
2555
|
+
return Device.isCameraPoE(this.rawDevice.device_type);
|
|
2556
|
+
}
|
|
2548
2557
|
hasBattery() {
|
|
2549
2558
|
return Device.hasBattery(this.rawDevice.device_type);
|
|
2550
2559
|
}
|