@open-wa/wa-automate-types-only 4.29.0 → 4.30.3
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.
@@ -13,4 +13,20 @@ 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
|
16
|
+
export declare class QRManager {
|
17
|
+
qrEv: any;
|
18
|
+
qrNum: number;
|
19
|
+
hash: string;
|
20
|
+
config: ConfigObject;
|
21
|
+
firstEmitted: boolean;
|
22
|
+
_internalQrPngLoaded: boolean;
|
23
|
+
qrCheck: string;
|
24
|
+
constructor(config?: any);
|
25
|
+
setConfig(config: any): void;
|
26
|
+
qrEvF(config?: ConfigObject): any;
|
27
|
+
grabAndEmit(qrData: any, waPage: Page, config: ConfigObject, spinner: Spin): Promise<void>;
|
28
|
+
smartQr(waPage: Page, config?: ConfigObject, spinner?: Spin): Promise<boolean | void | string>;
|
29
|
+
emitFirst(waPage: Page, config?: ConfigObject, spinner?: Spin): Promise<void>;
|
30
|
+
waitFirstQr(waPage: Page, config?: ConfigObject, spinner?: Spin): Promise<void>;
|
31
|
+
}
|
32
|
+
export declare const qrManager: QRManager;
|
@@ -6,7 +6,9 @@ export declare function initPage(sessionId?: string, config?: ConfigObject, cust
|
|
6
6
|
export declare const deleteSessionData: (config: ConfigObject) => boolean;
|
7
7
|
export declare const getSessionDataFilePath: (sessionId: string, config: ConfigObject) => string | boolean;
|
8
8
|
export declare const addScript: (page: Page, js: string) => Promise<unknown>;
|
9
|
-
export declare function
|
9
|
+
export declare function injectPreApiScripts(page: Page, spinner?: Spin): Promise<Page>;
|
10
|
+
export declare function injectWapi(page: Page, spinner?: Spin): Promise<Page>;
|
11
|
+
export declare function injectApi(page: Page, spinner?: Spin): Promise<Page>;
|
10
12
|
/**
|
11
13
|
* @internal
|
12
14
|
*/
|
@@ -54,8 +54,10 @@ export declare const ev: EventEmitter2;
|
|
54
54
|
export declare class EvEmitter {
|
55
55
|
sessionId: string;
|
56
56
|
eventNamespace: string;
|
57
|
+
bannedTransports: string[];
|
57
58
|
constructor(sessionId: string, eventNamespace: string);
|
58
59
|
emit(data: unknown, eventNamespaceOverride?: string): void;
|
60
|
+
emitAsync(data: unknown, eventNamespaceOverride?: string): Promise<any>;
|
59
61
|
}
|
60
62
|
/**
|
61
63
|
* @internal
|
package/dist/utils/tools.d.ts
CHANGED
@@ -27,5 +27,8 @@ export declare const getDUrl: (url: string, optionsOverride?: AxiosRequestConfig
|
|
27
27
|
*/
|
28
28
|
export declare const base64MimeType: (dUrl: DataURL) => string;
|
29
29
|
export declare const processSend: (message: string) => void;
|
30
|
+
export declare const perf: () => DateConstructor | Performance;
|
31
|
+
export declare const now: () => number;
|
32
|
+
export declare function timePromise(fn: () => Promise<any>): Promise<string>;
|
30
33
|
export declare const processSendData: (data?: any) => void;
|
31
34
|
export declare const generateGHIssueLink: (config: ConfigObject, sessionInfo: SessionInfo, extras?: any) => string;
|