@open-wa/wa-automate-types-only 4.40.2 → 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
@@ -114,6 +114,11 @@ export declare class Client {
|
|
114
114
|
*/
|
115
115
|
private registerListener;
|
116
116
|
private registerPageEventListener;
|
117
|
+
/**
|
118
|
+
* It calls the JavaScript garbage collector
|
119
|
+
* @returns Nothing.
|
120
|
+
*/
|
121
|
+
gc(): Promise<void>;
|
117
122
|
/**
|
118
123
|
* Listens to a log out event
|
119
124
|
*
|
@@ -453,7 +458,7 @@ export declare class Client {
|
|
453
458
|
*
|
454
459
|
* [[Detecting Logouts]]
|
455
460
|
*/
|
456
|
-
forceRefocus(): Promise<
|
461
|
+
forceRefocus(): Promise<boolean>;
|
457
462
|
/**
|
458
463
|
* Check if the "Phone not Cconnected" message is showing in the browser. If it is showing, then this will return `true`.
|
459
464
|
*
|
@@ -464,6 +469,10 @@ export declare class Client {
|
|
464
469
|
* Runs a health check to help you determine if/when is an appropiate time to restart/refresh the session.
|
465
470
|
*/
|
466
471
|
healthCheck(): Promise<HealthCheck>;
|
472
|
+
/**
|
473
|
+
* Get the stats of the current process and the corresponding browser process.
|
474
|
+
*/
|
475
|
+
getProcessStats(): Promise<any>;
|
467
476
|
/**
|
468
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.
|
469
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).
|
@@ -778,6 +778,12 @@ export interface ConfigObject {
|
|
778
778
|
* default: `https://link.openwa.cloud/api`
|
779
779
|
*/
|
780
780
|
linkParser?: string;
|
781
|
+
/**
|
782
|
+
* Setting this to true will run `gc()` on before every command sent to the browser.
|
783
|
+
*
|
784
|
+
* This is experimental and may not work or it may have unforeseen sideeffects.
|
785
|
+
*/
|
786
|
+
aggressiveGarbageCollection?: boolean;
|
781
787
|
/**@internal */
|
782
788
|
[x: string]: any;
|
783
789
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const pidTreeUsage: (pid: any) => Promise<any>;
|