@open-wa/wa-automate-types-only 4.36.3 → 4.36.6

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.
@@ -628,6 +628,15 @@ export interface ConfigObject {
628
628
  * @default `undefined`
629
629
  */
630
630
  messagePreprocessor?: PREPROCESSORS;
631
+ /**
632
+ * Set an array filter to be used with messagePreprocessor to limit which messages are preprocessed.
633
+ *
634
+ * E.g if you want to scrub all messages that are not from a group, you can do the following:
635
+ * `"m=>!m.isGroupMsg"`
636
+ *
637
+ * @default `undefined`
638
+ */
639
+ preprocFilter?: string;
631
640
  /**
632
641
  * REQUIRED IF `messagePreprocessor` IS SET TO `UPLOAD_CLOUD`.
633
642
  *
@@ -10,6 +10,7 @@ export interface SessionInfo {
10
10
  START_TS?: number;
11
11
  PHONE_VERSION?: string;
12
12
  NUM_HASH?: string;
13
+ PATCH_HASH?: string;
13
14
  OW_KEY?: string;
14
15
  INSTANCE_ID?: string;
15
16
  RAM_INFO?: string;
@@ -17,7 +17,7 @@ export declare function getPatch(config: ConfigObject, spinner?: Spin, sessionIn
17
17
  export declare function injectLivePatch(page: Page, patch: {
18
18
  data: any;
19
19
  tag: string;
20
- }, spinner?: Spin): Promise<void>;
20
+ }, spinner?: Spin): Promise<string>;
21
21
  /**
22
22
  * @private
23
23
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.36.3",
3
+ "version": "4.36.6",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",