@open-wa/wa-automate-types-only 4.31.0 → 4.31.4

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.
@@ -319,6 +319,14 @@ export declare class Client {
319
319
  * @emits `<LiveLocationChangedEvent>` LiveLocationChangedEvent
320
320
  */
321
321
  onLiveLocation(chatId: ChatId, fn: (liveLocationChangedEvent: LiveLocationChangedEvent) => void): Promise<boolean>;
322
+ /**
323
+ * Use this simple command to test firing callback events.
324
+ *
325
+ * @param callbackToTest
326
+ * @param testData
327
+ * @returns `false` if the callback was not registered/does not exist
328
+ */
329
+ testCallback(callbackToTest: SimpleListener, testData: any): Promise<boolean>;
322
330
  /**
323
331
  * Set presence to available or unavailable.
324
332
  * @param available if true it will set your presence to 'online', false will set to unavailable (i.e no 'online' on recipients' phone);
@@ -1203,7 +1211,9 @@ export declare class Client {
1203
1211
  * @param use_unread_count
1204
1212
  * @returns any
1205
1213
  */
1206
- getUnreadMessages(includeMe: boolean, includeNotifications: boolean, use_unread_count: boolean): Promise<Message[]>;
1214
+ getUnreadMessages(includeMe: boolean, includeNotifications: boolean, use_unread_count: boolean): Promise<Chat & {
1215
+ messages: Message[];
1216
+ }>;
1207
1217
  /**
1208
1218
  * Retrieves all new Messages. where isNewMsg==true
1209
1219
  * @returns list of messages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.31.0",
3
+ "version": "4.31.4",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",