@homebridge-eufy-security/eufy-security-client 3.8.0-dev.7 → 3.8.0-dev.8

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.
@@ -45,6 +45,7 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
45
45
  static isStation(type: number): boolean;
46
46
  static isCamera1(type: number): boolean;
47
47
  static isCameraE(type: number): boolean;
48
+ static isIndoorCameraBase(type: number): boolean;
48
49
  static isSensor(type: number): boolean;
49
50
  static isEntryE20(type: number): boolean;
50
51
  static isKeyPad(type: number): boolean;
@@ -59,6 +60,7 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
59
60
  static isFloodLight(type: number): boolean;
60
61
  static isFloodLightT8420X(type: number, serialnumber: string): boolean;
61
62
  static isFloodLightT8423(type: number): boolean;
63
+ static isFloodLightT8424(type: number): boolean;
62
64
  static isFloodLightT8425(type: number): boolean;
63
65
  static isFloodLightT8426(type: number): boolean;
64
66
  static isWallLightCam(type: number): boolean;
@@ -79,7 +81,7 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
79
81
  static isLockWifiT8502(type: number): boolean;
80
82
  static isLockWifiT8510P(type: number, serialnumber: string): boolean;
81
83
  static isLockWifiT8520P(type: number, serialnumber: string): boolean;
82
- static isLockWifiT85V0(type: number, serialnumber: string): boolean;
84
+ static isLockWifiT85V0(type: number): boolean;
83
85
  static isLockWifiT85L0(type: number): boolean;
84
86
  static isBatteryDoorbell1(type: number): boolean;
85
87
  static isBatteryDoorbell2(type: number): boolean;
@@ -97,6 +99,7 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
97
99
  static isSoloCameraSolar(type: number): boolean;
98
100
  static isSoloCameraC210(type: number): boolean;
99
101
  static isCameraC35(type: number): boolean;
102
+ static isIndoorPTCameraE30(type: number): boolean;
100
103
  static isSoloCameraE30(type: number): boolean;
101
104
  static isSoloCamE42(type: number): boolean;
102
105
  static isSoloCameras(type: number): boolean;
@@ -137,10 +140,14 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
137
140
  static isSmartTrackCard(type: number): boolean;
138
141
  static isSmartTrackLink(type: number): boolean;
139
142
  static isSmartTrack(type: number): boolean;
143
+ static isNVR(type: number): boolean;
144
+ static isCameraPoE(type: number): boolean;
140
145
  isCamera(): boolean;
146
+ isIndoorCameraBase(): boolean;
141
147
  isFloodLight(): boolean;
142
148
  isFloodLightT8420X(): boolean;
143
149
  isFloodLightT8423(): boolean;
150
+ isFloodLightT8424(): boolean;
144
151
  isFloodLightT8425(): boolean;
145
152
  isWallLightCam(): boolean;
146
153
  isDoorbell(): boolean;
@@ -181,6 +188,7 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
181
188
  isSoloCameraSolar(): boolean;
182
189
  isSoloCameraC210(): boolean;
183
190
  isCameraC35(): boolean;
191
+ isIndoorPTCameraE30(): boolean;
184
192
  isSoloCameraE30(): boolean;
185
193
  isSoloCamE42(): boolean;
186
194
  isStarlight4GLTE(): boolean;
@@ -217,6 +225,8 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
217
225
  isSmartTrack(): boolean;
218
226
  isSmartTrackCard(): boolean;
219
227
  isSmartTrackLink(): boolean;
228
+ isNVR(): boolean;
229
+ isCameraPoE(): boolean;
220
230
  hasBattery(): boolean;
221
231
  getDeviceKey(): string;
222
232
  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 ||
@@ -1805,7 +1806,8 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1805
1806
  return (type === types_1.DeviceType.STATION ||
1806
1807
  type === types_1.DeviceType.HB3 ||
1807
1808
  type === types_1.DeviceType.HOMEBASE_MINI ||
1808
- type === types_1.DeviceType.MINIBASE_CHIME);
1809
+ type === types_1.DeviceType.MINIBASE_CHIME ||
1810
+ type === types_1.DeviceType.NVR_S4_MAX);
1809
1811
  }
1810
1812
  static isCamera1(type) {
1811
1813
  return types_1.DeviceType.CAMERA == type;
@@ -1813,6 +1815,9 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1813
1815
  static isCameraE(type) {
1814
1816
  return types_1.DeviceType.CAMERA_E == type;
1815
1817
  }
1818
+ static isIndoorCameraBase(type) {
1819
+ return types_1.DeviceType.INDOOR_CAMERA == type;
1820
+ }
1816
1821
  static isSensor(type) {
1817
1822
  if (type == types_1.DeviceType.SENSOR || type == types_1.DeviceType.MOTION_SENSOR || type == types_1.DeviceType.ENTRY_SENSOR_E20)
1818
1823
  return true;
@@ -1887,7 +1892,8 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1887
1892
  type == types_1.DeviceType.INDOOR_PT_CAMERA_E30 ||
1888
1893
  type == types_1.DeviceType.INDOOR_PT_CAMERA_C210 ||
1889
1894
  type == types_1.DeviceType.INDOOR_PT_CAMERA_C220 ||
1890
- type == types_1.DeviceType.INDOOR_PT_CAMERA_C220_V2)
1895
+ type == types_1.DeviceType.INDOOR_PT_CAMERA_C220_V2 ||
1896
+ type == types_1.DeviceType.CAMERA_POE_S4)
1891
1897
  return true;
1892
1898
  return false;
1893
1899
  }
@@ -1932,6 +1938,11 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1932
1938
  return true;
1933
1939
  return false;
1934
1940
  }
1941
+ static isFloodLightT8424(type) {
1942
+ if (type == types_1.DeviceType.FLOODLIGHT_CAMERA_8424)
1943
+ return true;
1944
+ return false;
1945
+ }
1935
1946
  static isFloodLightT8425(type) {
1936
1947
  if (type == types_1.DeviceType.FLOODLIGHT_CAMERA_8425)
1937
1948
  return true;
@@ -1954,7 +1965,7 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1954
1965
  Device.isLockWifiR20(type) ||
1955
1966
  Device.isLockWifiVideo(type) ||
1956
1967
  Device.isLockWifiT8506(type) ||
1957
- Device.isLockWifiT85V0(type, "") ||
1968
+ Device.isLockWifiT85V0(type) ||
1958
1969
  Device.isLockWifiT8502(type) ||
1959
1970
  Device.isLockWifiT85L0(type) ||
1960
1971
  Device.isLockWifiT8531(type) ||
@@ -2021,13 +2032,8 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2021
2032
  return true;
2022
2033
  return false;
2023
2034
  }
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;
2035
+ static isLockWifiT85V0(type) {
2036
+ return types_1.DeviceType.LOCK_85V0 == type;
2031
2037
  }
2032
2038
  static isLockWifiT85L0(type) {
2033
2039
  return types_1.DeviceType.LOCK_85L0 == type;
@@ -2088,6 +2094,9 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2088
2094
  static isCameraC35(type) {
2089
2095
  return types_1.DeviceType.CAMERA_C35 == type;
2090
2096
  }
2097
+ static isIndoorPTCameraE30(type) {
2098
+ return types_1.DeviceType.INDOOR_PT_CAMERA_E30 == type;
2099
+ }
2091
2100
  static isSoloCameraE30(type) {
2092
2101
  return types_1.DeviceType.SOLO_CAMERA_E30 == type;
2093
2102
  }
@@ -2302,9 +2311,20 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2302
2311
  return true;
2303
2312
  return false;
2304
2313
  }
2314
+ static isNVR(type) {
2315
+ //T8N00
2316
+ return types_1.DeviceType.NVR_S4_MAX === type;
2317
+ }
2318
+ static isCameraPoE(type) {
2319
+ //T8E00
2320
+ return types_1.DeviceType.CAMERA_POE_S4 === type;
2321
+ }
2305
2322
  isCamera() {
2306
2323
  return Device.isCamera(this.rawDevice.device_type);
2307
2324
  }
2325
+ isIndoorCameraBase() {
2326
+ return Device.isIndoorCameraBase(this.rawDevice.device_type);
2327
+ }
2308
2328
  isFloodLight() {
2309
2329
  return Device.isFloodLight(this.rawDevice.device_type);
2310
2330
  }
@@ -2314,6 +2334,9 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2314
2334
  isFloodLightT8423() {
2315
2335
  return Device.isFloodLightT8423(this.rawDevice.device_type);
2316
2336
  }
2337
+ isFloodLightT8424() {
2338
+ return Device.isFloodLightT8424(this.rawDevice.device_type);
2339
+ }
2317
2340
  isFloodLightT8425() {
2318
2341
  return Device.isFloodLightT8425(this.rawDevice.device_type);
2319
2342
  }
@@ -2381,7 +2404,7 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2381
2404
  return Device.isLockWifiT8531(this.rawDevice.device_type);
2382
2405
  }
2383
2406
  isLockWifiT85V0() {
2384
- return Device.isLockWifiT85V0(this.rawDevice.device_type, this.rawDevice.device_sn);
2407
+ return Device.isLockWifiT85V0(this.rawDevice.device_type);
2385
2408
  }
2386
2409
  isLockWifiT85L0() {
2387
2410
  return Device.isLockWifiT85L0(this.rawDevice.device_type);
@@ -2434,6 +2457,9 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2434
2457
  isCameraC35() {
2435
2458
  return Device.isCameraC35(this.rawDevice.device_type);
2436
2459
  }
2460
+ isIndoorPTCameraE30() {
2461
+ return Device.isIndoorPTCameraE30(this.rawDevice.device_type);
2462
+ }
2437
2463
  isSoloCameraE30() {
2438
2464
  return Device.isSoloCameraE30(this.rawDevice.device_type);
2439
2465
  }
@@ -2550,6 +2576,12 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2550
2576
  isSmartTrackLink() {
2551
2577
  return Device.isSmartTrackLink(this.rawDevice.device_type);
2552
2578
  }
2579
+ isNVR() {
2580
+ return Device.isNVR(this.rawDevice.device_type);
2581
+ }
2582
+ isCameraPoE() {
2583
+ return Device.isCameraPoE(this.rawDevice.device_type);
2584
+ }
2553
2585
  hasBattery() {
2554
2586
  return Device.hasBattery(this.rawDevice.device_type);
2555
2587
  }