@open-wa/wa-automate-types-only 4.28.3 → 4.28.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.
- package/dist/api/Client.d.ts +6 -0
- package/dist/utils/tools.d.ts +2 -1
- 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/utils/tools.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { DataURL } from '../api/model';
|
2
2
|
import { AxiosRequestConfig } from 'axios';
|
3
|
+
export declare const timeout: (ms: any) => Promise<unknown>;
|
3
4
|
/**
|
4
5
|
* Use this to generate a more likely valid user agent. It makes sure it has the WA part and replaces any windows or linux os info with mac.
|
5
6
|
* @param useragent Your custom user agent
|
@@ -25,4 +26,4 @@ export declare const getDUrl: (url: string, optionsOverride?: AxiosRequestConfig
|
|
25
26
|
*/
|
26
27
|
export declare const base64MimeType: (dUrl: DataURL) => string;
|
27
28
|
export declare const processSend: (message: string) => void;
|
28
|
-
export declare const processSendData: (data?: any) =>
|
29
|
+
export declare const processSendData: (data?: any) => void;
|