@open-wa/wa-automate-types-only 4.35.3 → 4.35.6

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.
@@ -18,7 +18,7 @@ import { Listener } from 'eventemitter2';
18
18
  import PriorityQueue from 'p-queue/dist/priority-queue';
19
19
  import { NextFunction, Request, Response } from 'express';
20
20
  import { Call } from './model/call';
21
- import { Button, Section } from './model/button';
21
+ import { Button, LocationButtonBody, Section } from './model/button';
22
22
  import { JsonObject } from 'type-fest';
23
23
  import { ReactionEvent } from './model/reactions';
24
24
  export declare enum namespace {
@@ -485,15 +485,15 @@ export declare class Client {
485
485
  */
486
486
  sendPaymentRequest(to: ChatId, amount: number, currency: string, message?: string): Promise<boolean | MessageId>;
487
487
  /**
488
- * Send generic quick reply buttons
488
+ * Send generic quick reply buttons. This is an insiders feature for MD accounts.
489
489
  *
490
490
  * @param {ChatId} to chat id
491
- * @param {string} body The body of the buttons message
491
+ * @param {string | LocationButtonBody} body The body of the buttons message
492
492
  * @param {Button[]} buttons Array of buttons - limit is 3!
493
493
  * @param {string} title The title/header of the buttons message
494
494
  * @param {string} footer The footer of the buttons message
495
495
  */
496
- sendButtons(to: ChatId, body: string, buttons: Button[], title: string, footer?: string): Promise<boolean | MessageId>;
496
+ sendButtons(to: ChatId, body: string | LocationButtonBody, buttons: Button[], title?: string, footer?: string): Promise<boolean | MessageId>;
497
497
  /**
498
498
  * Send a banner image
499
499
  *
@@ -11,3 +11,8 @@ export interface Section {
11
11
  title: string;
12
12
  rows: Row[];
13
13
  }
14
+ export interface LocationButtonBody {
15
+ lat: number;
16
+ lng: number;
17
+ caption: string;
18
+ }
@@ -12,6 +12,7 @@ export interface SessionInfo {
12
12
  NUM_HASH?: string;
13
13
  OW_KEY?: string;
14
14
  INSTANCE_ID?: string;
15
+ RAM_INFO?: string;
15
16
  LATEST_VERSION?: boolean;
16
17
  CLI?: boolean;
17
18
  ACC_TYPE?: 'PERSONAL' | 'BUSINESS';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.35.3",
3
+ "version": "4.35.6",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",