eufy-security-client 3.8.0-dev.12 → 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.
@@ -79,7 +79,7 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
79
79
  static isLockWifiT8502(type: number): boolean;
80
80
  static isLockWifiT8510P(type: number, serialnumber: string): boolean;
81
81
  static isLockWifiT8520P(type: number, serialnumber: string): boolean;
82
- static isLockWifiT85V0(type: number, serialnumber: string): boolean;
82
+ static isLockWifiT85V0(type: number): boolean;
83
83
  static isLockWifiT85L0(type: number): boolean;
84
84
  static isBatteryDoorbell1(type: number): boolean;
85
85
  static isBatteryDoorbell2(type: number): boolean;
@@ -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;
@@ -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
  }
@@ -1954,7 +1956,7 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1954
1956
  Device.isLockWifiR20(type) ||
1955
1957
  Device.isLockWifiVideo(type) ||
1956
1958
  Device.isLockWifiT8506(type) ||
1957
- Device.isLockWifiT85V0(type, "") ||
1959
+ Device.isLockWifiT85V0(type) ||
1958
1960
  Device.isLockWifiT8502(type) ||
1959
1961
  Device.isLockWifiT85L0(type) ||
1960
1962
  Device.isLockWifiT8531(type) ||
@@ -2021,13 +2023,8 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2021
2023
  return true;
2022
2024
  return false;
2023
2025
  }
2024
- static isLockWifiT85V0(type, serialnumber) {
2025
- if (type == types_1.DeviceType.LOCK_85V0 &&
2026
- serialnumber.startsWith("T85V0") &&
2027
- serialnumber.length > 6 &&
2028
- serialnumber.charAt(6) === "9")
2029
- return true;
2030
- return false;
2026
+ static isLockWifiT85V0(type) {
2027
+ return types_1.DeviceType.LOCK_85V0 == type;
2031
2028
  }
2032
2029
  static isLockWifiT85L0(type) {
2033
2030
  return types_1.DeviceType.LOCK_85L0 == type;
@@ -2302,6 +2299,10 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2302
2299
  return true;
2303
2300
  return false;
2304
2301
  }
2302
+ static isCameraPoE(type) {
2303
+ //T8E00
2304
+ return types_1.DeviceType.CAMERA_POE_S4 === type;
2305
+ }
2305
2306
  isCamera() {
2306
2307
  return Device.isCamera(this.rawDevice.device_type);
2307
2308
  }
@@ -2381,7 +2382,7 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2381
2382
  return Device.isLockWifiT8531(this.rawDevice.device_type);
2382
2383
  }
2383
2384
  isLockWifiT85V0() {
2384
- return Device.isLockWifiT85V0(this.rawDevice.device_type, this.rawDevice.device_sn);
2385
+ return Device.isLockWifiT85V0(this.rawDevice.device_type);
2385
2386
  }
2386
2387
  isLockWifiT85L0() {
2387
2388
  return Device.isLockWifiT85L0(this.rawDevice.device_type);
@@ -2550,6 +2551,9 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2550
2551
  isSmartTrackLink() {
2551
2552
  return Device.isSmartTrackLink(this.rawDevice.device_type);
2552
2553
  }
2554
+ isCameraPoE() {
2555
+ return Device.isCameraPoE(this.rawDevice.device_type);
2556
+ }
2553
2557
  hasBattery() {
2554
2558
  return Device.hasBattery(this.rawDevice.device_type);
2555
2559
  }