@open-wa/wa-automate-types-only 4.26.0 → 4.27.2
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.
@@ -733,6 +733,10 @@ export interface ConfigObject {
|
|
733
733
|
* wait for a valid headful session. Not required in recent versions.
|
734
734
|
*/
|
735
735
|
waitForRipeSession?: boolean;
|
736
|
+
/**
|
737
|
+
* Automatically kill the process after a set amount of qr codes
|
738
|
+
*/
|
739
|
+
qrMax?: number;
|
736
740
|
/**@internal */
|
737
741
|
[x: string]: any;
|
738
742
|
}
|
package/dist/cli/setup.d.ts
CHANGED
@@ -3,6 +3,7 @@ import { Merge, JsonObject } from 'type-fest';
|
|
3
3
|
import { ConfigObject } from '../api/model/config';
|
4
4
|
import { Spin } from '../controllers/events';
|
5
5
|
export declare const optionKeys: string[];
|
6
|
+
export declare const optionKeysWithDefalts: string[];
|
6
7
|
export declare const PrimitiveConverter: {
|
7
8
|
Number: number;
|
8
9
|
Boolean: boolean;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Page } from 'puppeteer';
|
1
|
+
import { Browser, Page } from 'puppeteer';
|
2
2
|
import { Spin } from './events';
|
3
3
|
import { ConfigObject } from '../api/model';
|
4
4
|
export declare function initPage(sessionId?: string, config?: ConfigObject, customUserAgent?: string, spinner?: Spin, _page?: Page, skipAuth?: boolean): Promise<Page>;
|
@@ -6,3 +6,7 @@ export declare const deleteSessionData: (config: ConfigObject) => boolean;
|
|
6
6
|
export declare const getSessionDataFilePath: (sessionId: string, config: ConfigObject) => string | boolean;
|
7
7
|
export declare const addScript: (page: Page, js: string) => Promise<unknown>;
|
8
8
|
export declare function injectApi(page: Page): Promise<Page>;
|
9
|
+
/**
|
10
|
+
* @internal
|
11
|
+
*/
|
12
|
+
export declare const kill: (p: Page, b?: Browser, exit?: boolean, pid?: number) => Promise<void>;
|