@open-wa/wa-automate-types-only 4.28.12 → 4.28.13
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 +7 -1
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -40,6 +40,7 @@ export declare class Client {
|
|
40
40
|
private _prio;
|
41
41
|
private _pageListeners;
|
42
42
|
private _registeredPageListeners;
|
43
|
+
private _onLogoutCallbacks;
|
43
44
|
private _queues;
|
44
45
|
/**
|
45
46
|
* This is used to track if a listener is already used via webhook. Before, webhooks used to be set once per listener. Now a listener can be set via multiple webhooks, or revoked from a specific webhook.
|
@@ -111,13 +112,18 @@ export declare class Client {
|
|
111
112
|
*
|
112
113
|
* @event
|
113
114
|
* @param fn callback
|
115
|
+
* @param priority A priority of -1 will mean the callback will be triggered after all the non -1 callbacks
|
114
116
|
* @fires `true`
|
115
117
|
*/
|
116
118
|
onLogout(fn: (loggedOut?: boolean) => any, priority?: number): Promise<boolean>;
|
117
119
|
/**
|
118
120
|
* Wait for the webhook queue to become idle. This is useful for ensuring webhooks are cleared before ending a process.
|
119
121
|
*/
|
120
|
-
waitWhQIdle(): Promise<
|
122
|
+
waitWhQIdle(): Promise<true | void>;
|
123
|
+
/**
|
124
|
+
* Wait for all queues to be empty
|
125
|
+
*/
|
126
|
+
waitAllQEmpty(): Promise<true | void[]>;
|
121
127
|
/**
|
122
128
|
* If you have set `onAnyMessage` or `onMessage` with the second parameter (PQueue options) then you may want to inspect their respective PQueue's.
|
123
129
|
*/
|