@open-wa/wa-automate-types-only 4.38.0 → 4.40.0
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 +16 -15
- package/dist/api/model/button.d.ts +6 -0
- package/dist/api/model/config.d.ts +2 -1
- package/dist/cli/setup.d.ts +1 -1
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -19,7 +19,7 @@ import { Listener } from 'eventemitter2';
|
|
19
19
|
import PriorityQueue from 'p-queue/dist/priority-queue';
|
20
20
|
import { NextFunction, Request, Response } from 'express';
|
21
21
|
import { Call } from './model/call';
|
22
|
-
import { Button, LocationButtonBody, Section } from './model/button';
|
22
|
+
import { AdvancedButton, Button, LocationButtonBody, Section } from './model/button';
|
23
23
|
import { JsonObject } from 'type-fest';
|
24
24
|
import { ReactionEvent } from './model/reactions';
|
25
25
|
export declare enum namespace {
|
@@ -515,6 +515,21 @@ export declare class Client {
|
|
515
515
|
* @param {string} footer The footer of the buttons message
|
516
516
|
*/
|
517
517
|
sendButtons(to: ChatId, body: string | LocationButtonBody, buttons: Button[], title?: string, footer?: string): Promise<boolean | MessageId>;
|
518
|
+
/**
|
519
|
+
* {@license:insiders@}
|
520
|
+
*
|
521
|
+
* Send advanced buttons with media body. This is an insiders feature for MD accounts.
|
522
|
+
*
|
523
|
+
* Body can be location, image, video or document. Buttons can be quick reply, url or call buttons.
|
524
|
+
*
|
525
|
+
* @param {ChatId} to chat id
|
526
|
+
* @param {string | LocationButtonBody} body The body of the buttons message
|
527
|
+
* @param {AdvancedButton[]} buttons Array of buttons - limit is 3!
|
528
|
+
* @param {string} title The title/header of the buttons message
|
529
|
+
* @param {string} footer The footer of the buttons message
|
530
|
+
* @param {string} filename Required if body is a file!!
|
531
|
+
*/
|
532
|
+
sendAdvancedButtons(to: ChatId, body: string | LocationButtonBody, buttons: AdvancedButton[], text: string, footer: string, filename: string): Promise<boolean | MessageId>;
|
518
533
|
/**
|
519
534
|
* Send a banner image
|
520
535
|
*
|
@@ -527,20 +542,6 @@ export declare class Client {
|
|
527
542
|
/**
|
528
543
|
* {@license:insiders@}
|
529
544
|
*
|
530
|
-
* :::documentation-page{title="Welcome"}
|
531
|
-
*
|
532
|
-
* Please install :inline-code[unified]!
|
533
|
-
*
|
534
|
-
* ::copyright-notice{year="2020"}
|
535
|
-
*
|
536
|
-
* :::
|
537
|
-
* ::license-required[insiders]
|
538
|
-
*
|
539
|
-
* ::span{year="2020"}
|
540
|
-
*
|
541
|
-
* :span{year="2020"}
|
542
|
-
*
|
543
|
-
* <span theme="badge contrast license">Insiders</span>
|
544
545
|
* [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
|
545
546
|
*
|
546
547
|
* Send a list message. This will not work when being sent from business accounts!
|
@@ -98,7 +98,8 @@ export declare enum LicenseType {
|
|
98
98
|
TEXT_STORY = "Text Story License Key",
|
99
99
|
IMAGE_STORY = "Image Story License Key",
|
100
100
|
VIDEO_STORY = "Video Story License Key",
|
101
|
-
PREMIUM = "Premium License Key"
|
101
|
+
PREMIUM = "Premium License Key",
|
102
|
+
NONE = "NONE"
|
102
103
|
}
|
103
104
|
export interface SessionData {
|
104
105
|
WABrowserId?: string;
|
package/dist/cli/setup.d.ts
CHANGED
@@ -19,7 +19,7 @@ export declare const cliOptionNames: import("type-fest").Simplify<import("type-f
|
|
19
19
|
export declare const meowFlags: () => AnyFlags;
|
20
20
|
export declare const helptext: string;
|
21
21
|
export declare const envArgs: () => JsonObject;
|
22
|
-
export declare const configFile: (config
|
22
|
+
export declare const configFile: (config?: string) => JsonObject;
|
23
23
|
export declare const cli: () => {
|
24
24
|
createConfig: ConfigObject;
|
25
25
|
cliConfig: Merge<ConfigObject, {
|