@open-wa/wa-automate-types-only 4.25.1 → 4.27.1
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
|
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Client } from '../..';
|
2
|
+
import { cliFlags } from '../server';
|
3
|
+
import { Request, Response } from "express";
|
4
|
+
export declare type expressMiddleware = (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
5
|
+
export declare const chatwootMiddleware: (cliConfig: cliFlags, client: Client) => expressMiddleware;
|
6
|
+
export declare const setupChatwootOutgoingMessageHandler: (cliConfig: cliFlags, client: Client) => Promise<void>;
|
package/dist/cli/server.d.ts
CHANGED
@@ -16,5 +16,6 @@ export declare const getCommands: () => any;
|
|
16
16
|
export declare const listListeners: () => string[];
|
17
17
|
export declare const setupMediaMiddleware: () => void;
|
18
18
|
export declare const setupTwilioCompatibleWebhook: (cliConfig: cliFlags, client: Client) => void;
|
19
|
+
export declare const setupChatwoot: (cliConfig: cliFlags, client: Client) => void;
|
19
20
|
export declare const setupBotPressHandler: (cliConfig: cliFlags, client: Client) => void;
|
20
21
|
export declare const setupSocketServer: (cliConfig: any, client: Client) => Promise<void>;
|
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) => Promise<void>;
|