Skip to content

Commit 4e5f522

Browse files
Release 4.64.0
1 parent ec539d7 commit 4e5f522

File tree

11 files changed

+96
-10
lines changed

11 files changed

+96
-10
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
99

10-
## [4.63.0](https://github.com/open-wa/wa-automate-nodejs/compare/4.62.5...4.63.0)
10+
## [4.64.0](https://github.com/open-wa/wa-automate-nodejs/compare/4.63.0...4.64.0)
1111

1212
### Commits
1313

14+
- ✨ feat: `client.getBusinessProfile(...)` #3309 [`2a76c3d`](https://github.com/open-wa/wa-automate-nodejs/commit/2a76c3db13dea432b472526b9cdf8de0f6604436)
15+
- 📝 docs: added button/list limitation warnings [`49350e4`](https://github.com/open-wa/wa-automate-nodejs/commit/49350e4dacc02095f0386053797c3c8b656461b2)
16+
- 🐛 fix `client.getGptArray` #3090 [`ec539d7`](https://github.com/open-wa/wa-automate-nodejs/commit/ec539d7c4bb5f1a6dc64eea0fd36fbfcf9dbd942)
17+
- updated types-only package [`e8b4285`](https://github.com/open-wa/wa-automate-nodejs/commit/e8b4285049175067d740d9e411a49b13df2015ef)
18+
19+
## [4.63.0](https://github.com/open-wa/wa-automate-nodejs/compare/4.62.5...4.63.0) - 2023-04-03
20+
21+
### Commits
22+
23+
- Release 4.63.0 [`2585f3e`](https://github.com/open-wa/wa-automate-nodejs/commit/2585f3e83048b1441582846123c14cbcb1e3c3b6)
1424
- feat: `client.getGptArray` #3090 [`443e1c1`](https://github.com/open-wa/wa-automate-nodejs/commit/443e1c169910291e5ce2e12a08e5468793a2fbf3)
1525
- updated types-only package [`c8a9500`](https://github.com/open-wa/wa-automate-nodejs/commit/c8a95008384880c50d7541fc393d7e36c87f4b1b)
1626

bin/oas-type-schemas.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs-v3/docs/api/classes/api_Client.Client.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,26 @@ retrieves an array of IDs of accounts blocked by the host account.
11271127

11281128
___
11291129

1130+
### getBusinessProfile
1131+
1132+
**getBusinessProfile**(`id`): `Promise`<[`BusinessProfile`](/api/interfaces/api_model_contact.BusinessProfile.md)\>
1133+
1134+
Get the business info of a given contact id
1135+
1136+
#### Parameters
1137+
1138+
| Name | Type | Description |
1139+
| :------ | :------ | :------ |
1140+
| `id` | [`ContactId`](/api/types/api_model_aliases.ContactId.md) | id of business profile (i.e the number with @c.us) |
1141+
1142+
#### Returns
1143+
1144+
`Promise`<[`BusinessProfile`](/api/interfaces/api_model_contact.BusinessProfile.md)\>
1145+
1146+
None
1147+
1148+
___
1149+
11301150
### getBusinessProfilesProducts
11311151

11321152
**getBusinessProfilesProducts**(`id`): `Promise`<`any`\>
@@ -1137,7 +1157,7 @@ Find any product listings of the given number. Use this to query a catalog
11371157

11381158
| Name | Type | Description |
11391159
| :------ | :------ | :------ |
1140-
| `id` | [`ContactId`](/api/types/api_model_aliases.ContactId.md) | id of buseinss profile (i.e the number with @c.us) |
1160+
| `id` | [`ContactId`](/api/types/api_model_aliases.ContactId.md) | id of business profile (i.e the number with @c.us) |
11411161

11421162
#### Returns
11431163

@@ -1436,14 +1456,15 @@ ___
14361456

14371457
### getGptArray
14381458

1439-
**getGptArray**(`last?`): `Promise`<{ `content`: `string` ; `role`: ``"user"`` \| ``"assistant"`` }[]\>
1459+
**getGptArray**(`chatId`, `last?`): `Promise`<{ `content`: `string` ; `role`: ``"user"`` \| ``"assistant"`` }[]\>
14401460

14411461
Returns a properly formatted array of messages from to send to the openai api
14421462

14431463
#### Parameters
14441464

14451465
| Name | Type | Default value | Description |
14461466
| :------ | :------ | :------ | :------ |
1467+
| `chatId` | [`ChatId`](/api/types/api_model_aliases.ChatId.md) | `undefined` | - |
14471468
| `last` | `number` | `10` | The amount of previous messages to retrieve. Defaults to 10 |
14481469

14491470
#### Returns
@@ -3222,6 +3243,9 @@ Use this link to get the [correct license](https://gum.co/open-wa?wanted=true&ti
32223243
:::danger
32233244

32243245
Template messages (URL & CALL buttons) are broken for the foreseeable future. Please DO NOT get a license solely for access to URL or CALL buttons. They are no longer reliable due to recent changes at WA.
3246+
WA BIZ accounts CANNOT send buttons. This is a WA limitation. DO NOT get a license solely for access to buttons on wa business accounts.
3247+
3248+
THIS IS NOT WORKING FOR GROUPS YET.
32253249

32263250
:::
32273251

@@ -3295,6 +3319,13 @@ ___
32953319
Use this link to get the [correct license](https://gum.co/open-wa?wanted=true&tier=Insiders%20Program).
32963320
:::
32973321

3322+
:::danger
3323+
3324+
WA BIZ accounts CANNOT send buttons. This is a WA limitation. DO NOT get a license solely for access to buttons on wa business accounts.
3325+
THIS IS NOT WORKING FOR GROUPS YET.
3326+
3327+
:::
3328+
32983329
Send generic quick reply buttons. This is an insiders feature for MD accounts.
32993330

33003331
#### Parameters
@@ -3610,6 +3641,13 @@ ___
36103641
Use this link to get the [correct license](https://gum.co/open-wa?wanted=true&tier=Insiders%20Program).
36113642
:::
36123643

3644+
:::danger
3645+
3646+
It is not currently possible to send a listmessage to a group chat. This is a WA limitation.
3647+
Please DO NOT get a license solely for access to list messages in group chats.
3648+
3649+
:::
3650+
36133651
Send a list message. This will not work when being sent from business accounts!
36143652

36153653
#### Parameters

docs-v3/docs/api/classes/structures_Collector.Collection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ BaseCollection<K, V\>.constructor
7070

7171
#### Inherited from
7272

73-
BaseCollection.\_\_@toStringTag@1044
73+
BaseCollection.\_\_@toStringTag@1078
7474

7575
___
7676

@@ -100,7 +100,7 @@ ___
100100

101101
#### Inherited from
102102

103-
BaseCollection.\_\_@species@1957
103+
BaseCollection.\_\_@species@1991
104104

105105
___
106106

docs-v3/docs/api/interfaces/api_model_contact.Contact.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ custom_edit_url: null
99

1010
## Properties
1111

12+
### businessProfile
13+
14+
`Optional` **businessProfile**: [`BusinessProfile`](/api/interfaces/api_model_contact.BusinessProfile.md)
15+
16+
If the contact is a business, the business information will be added to the contact object.
17+
18+
In some circumstances this will be out of date or lacking certain fields. In those cases you have to use `client.getBusinessProfile`
19+
20+
___
21+
1222
### formattedName
1323

1424
**formattedName**: `string`

docs-v3/docs/api/modules/api_model.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,30 @@ Re-exports [BaseChat](/api/interfaces/api_model_chat.BaseChat.md)
6060

6161
___
6262

63+
### BizCategory
64+
65+
Re-exports [BizCategory](/api/interfaces/api_model_contact.BizCategory.md)
66+
67+
___
68+
69+
### BizProfileOptions
70+
71+
Re-exports [BizProfileOptions](/api/interfaces/api_model_contact.BizProfileOptions.md)
72+
73+
___
74+
75+
### BusinessHours
76+
77+
Re-exports [BusinessHours](/api/interfaces/api_model_contact.BusinessHours.md)
78+
79+
___
80+
81+
### BusinessProfile
82+
83+
Re-exports [BusinessProfile](/api/interfaces/api_model_contact.BusinessProfile.md)
84+
85+
___
86+
6387
### CLOUD\_PROVIDERS
6488

6589
Re-exports [CLOUD_PROVIDERS](/api/enums/api_model_config.CLOUD_PROVIDERS.md)

docs-v3/docs/api/modules/api_model_contact.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@ custom_edit_url: null
88

99
## Interfaces
1010

11+
- [BizCategory](/api/interfaces/api_model_contact.BizCategory.md)
12+
- [BizProfileOptions](/api/interfaces/api_model_contact.BizProfileOptions.md)
13+
- [BusinessHours](/api/interfaces/api_model_contact.BusinessHours.md)
14+
- [BusinessProfile](/api/interfaces/api_model_contact.BusinessProfile.md)
1115
- [Contact](/api/interfaces/api_model_contact.Contact.md)
1216
- [NumberCheck](/api/interfaces/api_model_contact.NumberCheck.md)

docs-v3/docs/api/reference

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: "reference"
3-
title: "@open-wa/wa-automate - v4.63.0"
3+
title: "@open-wa/wa-automate - v4.64.0"
44
sidebar_label: "Readme"
55
sidebar_position: 0
66
custom_edit_url: null

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@open-wa/wa-automate",
3-
"version": "4.63.0",
3+
"version": "4.64.0",
44
"licenseCheckUrl": "https://funcs.openwa.dev/license-check",
55
"brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
66
"patches": "https://cdn.openwa.dev/patches.json",

0 commit comments

Comments
 (0)