@open-wa/wa-automate 4.28.5 → 4.28.6
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/dist/api/Client.d.ts +6 -0
- package/dist/api/Client.js +10 -0
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -799,6 +799,12 @@ export declare class Client {
|
|
799
799
|
* @returns Boolean
|
800
800
|
*/
|
801
801
|
isConnected(): Promise<boolean>;
|
802
|
+
/**
|
803
|
+
* Logs out from the session.
|
804
|
+
*
|
805
|
+
* Please be careful when using this as it can exit the whole process depending on your config
|
806
|
+
*/
|
807
|
+
logout(): Promise<boolean>;
|
802
808
|
/**
|
803
809
|
* Retrieves Battery Level
|
804
810
|
* @returns Number
|
package/dist/api/Client.js
CHANGED
@@ -1810,6 +1810,16 @@ class Client {
|
|
1810
1810
|
return yield this.pup(() => WAPI.isConnected());
|
1811
1811
|
});
|
1812
1812
|
}
|
1813
|
+
/**
|
1814
|
+
* Logs out from the session.
|
1815
|
+
*
|
1816
|
+
* Please be careful when using this as it can exit the whole process depending on your config
|
1817
|
+
*/
|
1818
|
+
logout() {
|
1819
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1820
|
+
return yield this.pup(() => WAPI.logout());
|
1821
|
+
});
|
1822
|
+
}
|
1813
1823
|
/**
|
1814
1824
|
* Retrieves Battery Level
|
1815
1825
|
* @returns Number
|
package/package.json
CHANGED