@open-wa/wa-automate-types-only 4.25.0 → 4.25.1

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.
@@ -39,6 +39,8 @@ export declare class Client {
39
39
  private _refreshing;
40
40
  private _l;
41
41
  private _prio;
42
+ private _pageListeners;
43
+ private _registeredPageListeners;
42
44
  private _queues;
43
45
  /**
44
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.
@@ -104,6 +106,7 @@ export declare class Client {
104
106
  *
105
107
  */
106
108
  private registerListener;
109
+ private registerPageEventListener;
107
110
  /**
108
111
  * Listens to a log out event
109
112
  *
@@ -111,7 +114,11 @@ export declare class Client {
111
114
  * @param fn callback
112
115
  * @fires `true`
113
116
  */
114
- onLogout(fn: (loggedOut?: boolean) => any): Promise<boolean>;
117
+ onLogout(fn: (loggedOut?: boolean) => any, priority?: number): Promise<boolean>;
118
+ /**
119
+ * Wait for the webhook queue to become idle. This is useful for ensuring webhooks are cleared before ending a process.
120
+ */
121
+ waitWhQIdle(): Promise<any>;
115
122
  /**
116
123
  * If you have set `onAnyMessage` or `onMessage` with the second parameter (PQueue options) then you may want to inspect their respective PQueue's.
117
124
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.25.0",
3
+ "version": "4.25.1",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",