@open-wa/wa-automate-types-only 4.41.1 → 4.42.0
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
CHANGED
@@ -458,7 +458,7 @@ export declare class Client {
|
|
458
458
|
*
|
459
459
|
* [[Detecting Logouts]]
|
460
460
|
*/
|
461
|
-
forceRefocus(): Promise<
|
461
|
+
forceRefocus(): Promise<boolean>;
|
462
462
|
/**
|
463
463
|
* Check if the "Phone not Cconnected" message is showing in the browser. If it is showing, then this will return `true`.
|
464
464
|
*
|
@@ -469,6 +469,10 @@ export declare class Client {
|
|
469
469
|
* Runs a health check to help you determine if/when is an appropiate time to restart/refresh the session.
|
470
470
|
*/
|
471
471
|
healthCheck(): Promise<HealthCheck>;
|
472
|
+
/**
|
473
|
+
* Get the stats of the current process and the corresponding browser process.
|
474
|
+
*/
|
475
|
+
getProcessStats(): Promise<any>;
|
472
476
|
/**
|
473
477
|
* A list of participants in the chat who have their live location on. If the chat does not exist, or the chat does not have any contacts actively sharing their live locations, it will return false. If it's a chat with a single contact, there will be only 1 value in the array if the contact has their livelocation on.
|
474
478
|
* Please note. This should only be called once every 30 or so seconds. This forces the phone to grab the latest live location data for the number. This can be used in conjunction with onLiveLocation (this will trigger onLiveLocation).
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const pidTreeUsage: (pid: any) => Promise<any>;
|