@open-wa/wa-automate-types-only 4.23.10 → 4.23.14
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
@@ -1198,6 +1198,12 @@ export declare class Client {
|
|
1198
1198
|
* @returns list of messages
|
1199
1199
|
*/
|
1200
1200
|
getIndicatedNewMessages(): Promise<Message[]>;
|
1201
|
+
/**
|
1202
|
+
* Fires all unread messages to the onMessage listener.
|
1203
|
+
* Make sure to call this AFTER setting your listeners.
|
1204
|
+
* @returns array of message IDs
|
1205
|
+
*/
|
1206
|
+
emitUnreadMessages(): Promise<MessageId[]>;
|
1201
1207
|
/**
|
1202
1208
|
* Retrieves all Messages in a chat that have been loaded within the WA web instance.
|
1203
1209
|
*
|
@@ -97,6 +97,10 @@ export declare enum STATE {
|
|
97
97
|
*/
|
98
98
|
DISCONNECTED = "DISCONNECTED"
|
99
99
|
}
|
100
|
+
export declare type EasyApiResponse = {
|
101
|
+
success: boolean;
|
102
|
+
response: any;
|
103
|
+
};
|
100
104
|
export * from './config';
|
101
105
|
export * from './media';
|
102
106
|
export * from './aliases';
|
@@ -13,4 +13,4 @@ export declare const isInsideChat: (waPage: Page) => Observable<boolean>;
|
|
13
13
|
export declare const waitForRipeSession: (waPage: Page) => Promise<boolean>;
|
14
14
|
export declare const sessionDataInvalid: (waPage: Page) => Promise<string>;
|
15
15
|
export declare const phoneIsOutOfReach: (waPage: Page) => Promise<boolean>;
|
16
|
-
export declare function smartQr(waPage: Page, config?: ConfigObject, spinner?: Spin): Promise<boolean | void>;
|
16
|
+
export declare function smartQr(waPage: Page, config?: ConfigObject, spinner?: Spin): Promise<boolean | void | string>;
|