@open-wa/wa-automate-types-only 4.28.7 → 4.28.11
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.
package/dist/api/Client.d.ts
CHANGED
@@ -794,6 +794,10 @@ export declare class Client {
|
|
794
794
|
*/
|
795
795
|
getAllContacts(): Promise<Contact[]>;
|
796
796
|
getWAVersion(): Promise<string>;
|
797
|
+
/**
|
798
|
+
* Generate a pre-filled github issue link to easily report a bug
|
799
|
+
*/
|
800
|
+
getIssueLink(): Promise<string>;
|
797
801
|
/**
|
798
802
|
* Retrieves if the phone is online. Please note that this may not be real time.
|
799
803
|
* @returns Boolean
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Browser, Page } from 'puppeteer';
|
2
2
|
import { Spin } from './events';
|
3
3
|
import { ConfigObject } from '../api/model';
|
4
|
+
export declare let BROWSER_START_TS: number;
|
4
5
|
export declare function initPage(sessionId?: string, config?: ConfigObject, customUserAgent?: string, spinner?: Spin, _page?: Page, skipAuth?: boolean): Promise<Page>;
|
5
6
|
export declare const deleteSessionData: (config: ConfigObject) => boolean;
|
6
7
|
export declare const getSessionDataFilePath: (sessionId: string, config: ConfigObject) => string | boolean;
|
package/dist/utils/tools.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
import { DataURL } from '../api/model';
|
1
|
+
import { ConfigObject, DataURL } from '../api/model';
|
2
2
|
import { AxiosRequestConfig } from 'axios';
|
3
|
+
import { SessionInfo } from '../api/model/sessionInfo';
|
3
4
|
export declare const timeout: (ms: any) => Promise<unknown>;
|
4
5
|
/**
|
5
6
|
* Use this to generate a more likely valid user agent. It makes sure it has the WA part and replaces any windows or linux os info with mac.
|
@@ -27,3 +28,4 @@ export declare const getDUrl: (url: string, optionsOverride?: AxiosRequestConfig
|
|
27
28
|
export declare const base64MimeType: (dUrl: DataURL) => string;
|
28
29
|
export declare const processSend: (message: string) => void;
|
29
30
|
export declare const processSendData: (data?: any) => void;
|
31
|
+
export declare const generateGHIssueLink: (config: ConfigObject, sessionInfo: SessionInfo, extras?: any) => string;
|