@open-wa/wa-automate-types-only 4.36.2 → 4.36.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -386,12 +386,13 @@ export declare class Client {
386
386
  * Send VCARD
387
387
  *
388
388
  * @param {string} chatId '000000000000@c.us'
389
- * @param {string} vcard vcard as a string
390
- * @param {string} contactName The display name for the contact. CANNOT BE NULL OTHERWISE IT WILL SEND SOME RANDOM CONTACT FROM YOUR ADDRESS BOOK.
389
+ * @param {string} vcard vcard as a string, you can send multiple contacts vcard also.
390
+ * @param {string} contactName The display name for the contact. Ignored on multiple vcards
391
391
  * @param {string} contactNumber If supplied, this will be injected into the vcard (VERSION 3 ONLY FROM VCARDJS) with the WA id to make it show up with the correct buttons on WA. The format of this param should be including country code, without any other formating. e.g:
392
392
  * `4477777777777`
393
+ * Ignored on multiple vcards
393
394
  */
394
- sendVCard(chatId: ChatId, vcard: string, contactName: string, contactNumber?: string): Promise<boolean>;
395
+ sendVCard(chatId: ChatId, vcard: string, contactName?: string, contactNumber?: string): Promise<boolean>;
395
396
  /**
396
397
  * Set your profile name
397
398
  *
@@ -10,6 +10,7 @@ export interface SessionInfo {
10
10
  START_TS?: number;
11
11
  PHONE_VERSION?: string;
12
12
  NUM_HASH?: string;
13
+ PATCH_HASH?: string;
13
14
  OW_KEY?: string;
14
15
  INSTANCE_ID?: string;
15
16
  RAM_INFO?: string;
@@ -17,7 +17,7 @@ export declare function getPatch(config: ConfigObject, spinner?: Spin, sessionIn
17
17
  export declare function injectLivePatch(page: Page, patch: {
18
18
  data: any;
19
19
  tag: string;
20
- }, spinner?: Spin): Promise<void>;
20
+ }, spinner?: Spin): Promise<string>;
21
21
  /**
22
22
  * @private
23
23
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.36.2",
3
+ "version": "4.36.5",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",