@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.
@@ -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
  *
@@ -725,7 +725,6 @@ export interface ConfigObject {
725
725
  */
726
726
  ensureHeadfulIntegrity?: boolean;
727
727
  /**
728
- * @deprecated
729
728
  * wait for a valid headful session. Not required in recent versions.
730
729
  */
731
730
  waitForRipeSession?: boolean;
@@ -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';
@@ -1,2 +1,3 @@
1
1
  export declare const collections: {};
2
2
  export declare const generateCollections: any;
3
+ export declare const getTypeSchemas: any;
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.23.10",
3
+ "version": "4.23.14",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",