@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
|
*
|
@@ -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<
|
20
|
+
}, spinner?: Spin): Promise<string>;
|
21
21
|
/**
|
22
22
|
* @private
|
23
23
|
*/
|