eufy-security-client 4.0.0-dev.32 → 4.0.0-dev.33
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/eufysecurity.js +1 -0
- package/build/eufysecurity.js.map +1 -1
- package/build/http/interfaces.d.ts +2 -0
- package/build/http/station.d.ts +1 -0
- package/build/http/station.js +4 -0
- package/build/http/station.js.map +1 -1
- package/build/p2p/interfaces.d.ts +2 -0
- package/build/p2p/session.js +17 -0
- package/build/p2p/session.js.map +1 -1
- package/build/p2p/types.d.ts +1 -0
- package/build/p2p/types.js +1 -0
- package/build/p2p/types.js.map +1 -1
- package/coverage/clover.xml +4336 -4327
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/index.html +27 -27
- package/coverage/lcov.info +8243 -8222
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import type { ImageFileExtension } from "image-type" with {
|
|
|
7
7
|
};
|
|
8
8
|
import { DatabaseCountByDate, DatabaseQueryByDate, DatabaseQueryLatestInfo, DatabaseQueryLocal, StreamMetadata } from "../p2p/interfaces";
|
|
9
9
|
import { CommandResult, StorageInfoBodyHB3 } from "../p2p/models";
|
|
10
|
+
import { PushMessage } from "../push/models";
|
|
10
11
|
import { AlarmEvent, DatabaseReturnCode, SmartSafeAlarm911Event, SmartSafeShakeAlarmEvent, TFCardStatus } from "../p2p/types";
|
|
11
12
|
import { Camera, Device } from "./device";
|
|
12
13
|
import { Cipher, Voice, Invite, DeviceListResponse, StationListResponse, HouseListResponse } from "./models";
|
|
@@ -205,6 +206,7 @@ export interface StationEvents {
|
|
|
205
206
|
"garage door status": (station: Station, channel: number, doorId: number, status: number) => void;
|
|
206
207
|
"storage info hb3": (station: Station, channel: number, storageInfo: StorageInfoBodyHB3) => void;
|
|
207
208
|
"hub notify update": (station: Station) => void;
|
|
209
|
+
"push notification": (station: Station, message: PushMessage) => void;
|
|
208
210
|
}
|
|
209
211
|
export interface DeviceEvents {
|
|
210
212
|
"property changed": (device: Device, name: string, value: PropertyValue, ready: boolean) => void;
|
package/build/http/station.d.ts
CHANGED
|
@@ -383,6 +383,7 @@ export declare class Station extends TypedEmitter<StationEvents> {
|
|
|
383
383
|
getLockStatus(): void;
|
|
384
384
|
private onSequenceError;
|
|
385
385
|
private onHubNotifyUpdate;
|
|
386
|
+
private onPushNotification;
|
|
386
387
|
updateUsername(device: Device, username: string, passwordId: string): void;
|
|
387
388
|
setOpenMethod(device: Device, value: number): void;
|
|
388
389
|
setMotionActivatedPrompt(device: Device, value: boolean): void;
|
package/build/http/station.js
CHANGED
|
@@ -81,6 +81,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
81
81
|
this.p2pSession.on("storage info hb3", (channel, storageInfo) => this.onStorageInfoHB3(channel, storageInfo));
|
|
82
82
|
this.p2pSession.on("sequence error", (channel, command, sequence, serialnumber) => this.onSequenceError(channel, command, sequence, serialnumber));
|
|
83
83
|
this.p2pSession.on("hub notify update", () => this.onHubNotifyUpdate());
|
|
84
|
+
this.p2pSession.on("push notification", (message) => this.onPushNotification(message));
|
|
84
85
|
}
|
|
85
86
|
initializeState() {
|
|
86
87
|
this.update(this.rawStation);
|
|
@@ -15609,6 +15610,9 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
15609
15610
|
onHubNotifyUpdate() {
|
|
15610
15611
|
this.emit("hub notify update", this);
|
|
15611
15612
|
}
|
|
15613
|
+
onPushNotification(message) {
|
|
15614
|
+
this.emit("push notification", this, message);
|
|
15615
|
+
}
|
|
15612
15616
|
updateUsername(device, username, passwordId) {
|
|
15613
15617
|
const commandData = {
|
|
15614
15618
|
name: types_1.CommandName.DeviceUpdateUsername,
|