eufy-security-client 3.8.0-dev.6 → 3.8.0-dev.7

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.
@@ -86,6 +86,7 @@ export declare class EufySecurity extends TypedEmitter<EufySecurityEvents> {
86
86
  isMQTTConnected(): boolean;
87
87
  isConnected(): boolean;
88
88
  private processInvitations;
89
+ sendHouseInvite(houseID: string, email: string): Promise<boolean>;
89
90
  private onPushMessage;
90
91
  startStationDownload(deviceSN: string, path: string, cipherID: number): Promise<void>;
91
92
  cancelStationDownload(deviceSN: string): Promise<void>;
@@ -1081,6 +1081,14 @@ class EufySecurity extends tiny_typed_emitter_1.TypedEmitter {
1081
1081
  if (refreshCloud)
1082
1082
  this.refreshCloudData();
1083
1083
  }
1084
+ async sendHouseInvite(houseID, email) {
1085
+ const result = await this.api.sendHouseInvite(houseID, email).catch((err) => {
1086
+ const error = (0, error_1.ensureError)(err);
1087
+ logging_1.rootMainLogger.error("Error sending house invite", { error: (0, utils_1.getError)(error), houseID, email });
1088
+ return false;
1089
+ });
1090
+ return result;
1091
+ }
1084
1092
  onPushMessage(message) {
1085
1093
  this.emit("push message", message);
1086
1094
  try {