@open-wa/wa-automate-types-only 4.31.7 → 4.31.10
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.
@@ -135,6 +135,10 @@ export interface Message {
|
|
135
135
|
mediaData: unknown;
|
136
136
|
shareDuration: number;
|
137
137
|
isAnimated: boolean;
|
138
|
+
/**
|
139
|
+
* Is the message a "view once" message
|
140
|
+
*/
|
141
|
+
isViewOnce: boolean;
|
138
142
|
/**
|
139
143
|
* The URL of the file after being uploaded to the cloud using a cloud upload message preprocessor.
|
140
144
|
*/
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { Browser, Page } from 'puppeteer';
|
2
2
|
import { Spin } from './events';
|
3
3
|
import { ConfigObject } from '../api/model';
|
4
|
+
import { QRManager } from './auth';
|
4
5
|
export declare let BROWSER_START_TS: number;
|
5
|
-
export declare function initPage(sessionId?: string, config?: ConfigObject, customUserAgent?: string, spinner?: Spin, _page?: Page, skipAuth?: boolean): Promise<Page>;
|
6
|
+
export declare function initPage(sessionId?: string, config?: ConfigObject, qrManager?: QRManager, customUserAgent?: string, spinner?: Spin, _page?: Page, skipAuth?: boolean): Promise<Page>;
|
6
7
|
export declare const deleteSessionData: (config: ConfigObject) => boolean;
|
7
8
|
export declare const getSessionDataFilePath: (sessionId: string, config: ConfigObject) => string | boolean;
|
8
9
|
export declare const addScript: (page: Page, js: string) => Promise<unknown>;
|