Skip to content

Commit

Permalink
Release 4.66.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 11, 2023
1 parent c8b5420 commit 9c28b84
Show file tree
Hide file tree
Showing 7 changed files with 166 additions and 43 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

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

## [4.65.1](https://github.com/open-wa/wa-automate-nodejs/compare/4.65.0...4.65.1)
## [4.66.0](https://github.com/open-wa/wa-automate-nodejs/compare/4.65.1...4.66.0)

### Commits

- ⬆️ upgrade uuid dep #3115 [`f9ef8bd`](https://github.com/open-wa/wa-automate-nodejs/commit/f9ef8bd6239b979c26a35922e22065ce1f08b467)
- ⬆️ upgrade discord collection dep #3115 [`ec6561a`](https://github.com/open-wa/wa-automate-nodejs/commit/ec6561a60d748a84e4ffb88a4cb7c2458569e3d6)
- 🗑️ depreacted lists and buttons till further notice #3116 [`45594e0`](https://github.com/open-wa/wa-automate-nodejs/commit/45594e0f1a40e2a70335a6ac659e80c4bdc80681)
- updated types-only package [`f7d172d`](https://github.com/open-wa/wa-automate-nodejs/commit/f7d172deade94cae3551cf461ab3b627e37f9479)
- 💚 fix build [`fa54448`](https://github.com/open-wa/wa-automate-nodejs/commit/fa54448e608f509cc5b5e7edd9a75aab02a9c011)
- updated types-only package [`d79d35d`](https://github.com/open-wa/wa-automate-nodejs/commit/d79d35d55936a535ebe9f94533eef073f8bf8ba7)

## [4.65.1](https://github.com/open-wa/wa-automate-nodejs/compare/4.65.0...4.65.1) - 2023-05-05

### Commits

- ⬆️ upgrade axios dep [`db23f05`](https://github.com/open-wa/wa-automate-nodejs/commit/db23f05fe18c1c3cf3f6532d4e337e68ababbeeb)
- Release 4.65.1 [`76a431a`](https://github.com/open-wa/wa-automate-nodejs/commit/76a431a2da81145ef64371bc51021b310a7247e0)
- 💚 fix ci build failure [`3ec5673`](https://github.com/open-wa/wa-automate-nodejs/commit/3ec5673c2832d36ba832b26f12decd8200407e51)
- 🐛 fix chatwoot file upload #3114 [`5c58e74`](https://github.com/open-wa/wa-automate-nodejs/commit/5c58e742350a4608634ce7d39c640d060e3de992)
- updated types-only package [`fabe98f`](https://github.com/open-wa/wa-automate-nodejs/commit/fabe98fc49d4600e8c18072bc731a5446906434b)
Expand Down
24 changes: 12 additions & 12 deletions docs-v3/docs/api/classes/api_Client.Client.md
Original file line number Diff line number Diff line change
Expand Up @@ -3250,13 +3250,11 @@ Revokes the current invite link for a group chat. Any previous links will stop w

___

### sendAdvancedButtons <div class="label license insiders">insiders</div>
### sendAdvancedButtons

**sendAdvancedButtons**(`to`, `body`, `buttons`, `text`, `footer`, `filename`): `Promise`<`boolean` \| [`MessageId`](/api/types/api_model_aliases.MessageId.md)\>

:::license May require insiders license
Use this link to get the [correct license](https://gum.co/open-wa?wanted=true&tier=Insiders%20Program).
:::
**`Deprecated`**

:::danger

Expand All @@ -3265,6 +3263,8 @@ WA BIZ accounts CANNOT send buttons. This is a WA limitation. DO NOT get a licen

THIS IS NOT WORKING FOR GROUPS YET.

ADVANCED ARE DEPRECATED FOR NOW. DO NOT GET A LICENSE TO USE BUTTONS.

:::

Send advanced buttons with media body. This is an insiders feature for MD accounts.
Expand Down Expand Up @@ -3329,19 +3329,19 @@ Note this is a bit of hack on top of a location message. During testing it is sh

___

### sendButtons <div class="label license insiders">insiders</div>
### sendButtons

**sendButtons**(`to`, `body`, `buttons`, `title?`, `footer?`): `Promise`<`boolean` \| [`MessageId`](/api/types/api_model_aliases.MessageId.md)\>

:::license May require insiders license
Use this link to get the [correct license](https://gum.co/open-wa?wanted=true&tier=Insiders%20Program).
:::
**`Deprecated`**

:::danger

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.
THIS IS NOT WORKING FOR GROUPS YET.

BUTTONS ARE DEPRECATED FOR NOW. DO NOT GET A LICENSE TO USE BUTTONS.

:::

Send generic quick reply buttons. This is an insiders feature for MD accounts.
Expand Down Expand Up @@ -3651,19 +3651,19 @@ Automatically sends a link with the auto generated link preview. You can also ad

___

### sendListMessage <div class="label license insiders">insiders</div>
### sendListMessage

**sendListMessage**(`to`, `sections`, `title`, `description`, `actionText`): `Promise`<`boolean` \| [`MessageId`](/api/types/api_model_aliases.MessageId.md)\>

:::license May require insiders license
Use this link to get the [correct license](https://gum.co/open-wa?wanted=true&tier=Insiders%20Program).
:::
**`Deprecated`**

:::danger

It is not currently possible to send a listmessage to a group chat. This is a WA limitation.
Please DO NOT get a license solely for access to list messages in group chats.

LIST MESSAGES ARE DEPRECATED TILL FURTHER NOTICE

:::

Send a list message. This will not work when being sent from business accounts!
Expand Down
163 changes: 137 additions & 26 deletions docs-v3/docs/api/classes/structures_Collector.Collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,6 @@ ___

BaseCollection.\_\_@species@2118

___

### default

`Static` `Readonly` **default**: typeof `Collection`

#### Inherited from

BaseCollection.default

## Methods

### [iterator]
Expand Down Expand Up @@ -454,7 +444,7 @@ BaseCollection.every

| Name | Type |
| :------ | :------ |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |

#### Returns

Expand Down Expand Up @@ -524,7 +514,7 @@ BaseCollection.every

| Name | Type |
| :------ | :------ |
| `fn` | (`this`: `This`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`this`: `This`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |
| `thisArg` | `This` |

#### Returns
Expand Down Expand Up @@ -599,7 +589,7 @@ BaseCollection.filter

| Name | Type |
| :------ | :------ |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |

#### Returns

Expand Down Expand Up @@ -669,7 +659,7 @@ BaseCollection.filter

| Name | Type |
| :------ | :------ |
| `fn` | (`this`: `This`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`this`: `This`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |
| `thisArg` | `This` |

#### Returns
Expand All @@ -688,9 +678,9 @@ ___

Searches for a single item where the given function returns a truthy value. This behaves like
[Array.find()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find).
<warn>All collections used in Discord.js are mapped using their `id` property, and if you want to find by id you
All collections used in Discord.js are mapped using their `id` property, and if you want to find by id you
should use the `get` method. See
[MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get) for details.</warn>
[MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get) for details.

**`Example`**

Expand Down Expand Up @@ -724,7 +714,7 @@ BaseCollection.find

| Name | Type |
| :------ | :------ |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |

#### Returns

Expand Down Expand Up @@ -770,7 +760,7 @@ BaseCollection.find

| Name | Type |
| :------ | :------ |
| `fn` | (`this`: `This`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`this`: `This`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |
| `thisArg` | `This` |

#### Returns
Expand Down Expand Up @@ -823,7 +813,7 @@ BaseCollection.findKey

| Name | Type |
| :------ | :------ |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |

#### Returns

Expand Down Expand Up @@ -869,7 +859,7 @@ BaseCollection.findKey

| Name | Type |
| :------ | :------ |
| `fn` | (`this`: `This`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`this`: `This`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |
| `thisArg` | `This` |

#### Returns
Expand Down Expand Up @@ -1375,6 +1365,62 @@ BaseCollection.mapValues

___

### merge

**merge**<`T`, `R`\>(`other`, `whenInSelf`, `whenInOther`, `whenInBoth`): `Collection`<`K`, `R`\>

Merges two Collections together into a new Collection.

**`Example`**

```ts
// Sums up the entries in two collections.
coll.merge(
other,
x => ({ keep: true, value: x }),
y => ({ keep: true, value: y }),
(x, y) => ({ keep: true, value: x + y }),
);
```

**`Example`**

```ts
// Intersects two collections in a left-biased manner.
coll.merge(
other,
x => ({ keep: false }),
y => ({ keep: false }),
(x, _) => ({ keep: true, value: x }),
);
```

#### Type parameters

| Name |
| :------ |
| `T` |
| `R` |

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `other` | `ReadonlyCollection`<`K`, `T`\> | The other Collection to merge with |
| `whenInSelf` | (`value`: `V`, `key`: `K`) => `Keep`<`R`\> | Function getting the result if the entry only exists in this Collection |
| `whenInOther` | (`valueOther`: `T`, `key`: `K`) => `Keep`<`R`\> | Function getting the result if the entry only exists in the other Collection |
| `whenInBoth` | (`value`: `V`, `valueOther`: `T`, `key`: `K`) => `Keep`<`R`\> | Function getting the result if the entry exists in both Collections |

#### Returns

`Collection`<`K`, `R`\>

#### Inherited from

BaseCollection.merge

___

### partition

**partition**<`K2`\>(`fn`): [`Collection`<`K2`, `V`\>, `Collection`<`Exclude`<`K`, `K2`\>, `V`\>]
Expand Down Expand Up @@ -1436,7 +1482,7 @@ BaseCollection.partition

| Name | Type |
| :------ | :------ |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |

#### Returns

Expand Down Expand Up @@ -1506,7 +1552,7 @@ BaseCollection.partition

| Name | Type |
| :------ | :------ |
| `fn` | (`this`: `This`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`this`: `This`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |
| `thisArg` | `This` |

#### Returns
Expand Down Expand Up @@ -1678,7 +1724,7 @@ collection.some(user => user.discriminator === '0000');

| Name | Type | Description |
| :------ | :------ | :------ |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` | Function used to test (should return a boolean) |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` | Function used to test (should return a boolean) |

#### Returns

Expand All @@ -1700,7 +1746,7 @@ BaseCollection.some

| Name | Type |
| :------ | :------ |
| `fn` | (`this`: `T`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`this`: `T`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |
| `thisArg` | `T` |

#### Returns
Expand Down Expand Up @@ -1773,6 +1819,34 @@ BaseCollection.sorted

___

### subtract

**subtract**<`T`\>(`other`): `Collection`<`K`, `V`\>

The subtract method returns a new structure containing items where the keys and values of the original structure are not present in the other.

#### Type parameters

| Name |
| :------ |
| `T` |

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `other` | `ReadonlyCollection`<`K`, `T`\> | The other Collection to filter against |

#### Returns

`Collection`<`K`, `V`\>

#### Inherited from

BaseCollection.subtract

___

### sweep

**sweep**(`fn`): `number`
Expand All @@ -1783,7 +1857,7 @@ Removes items that satisfy the provided filter function.

| Name | Type | Description |
| :------ | :------ | :------ |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` | Function used to test (should return a boolean) |
| `fn` | (`value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` | Function used to test (should return a boolean) |

#### Returns

Expand All @@ -1807,7 +1881,7 @@ BaseCollection.sweep

| Name | Type |
| :------ | :------ |
| `fn` | (`this`: `T`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `boolean` |
| `fn` | (`this`: `T`, `value`: `V`, `key`: `K`, `collection`: [`Collection`](/api/classes/structures_Collector.Collection.md)<`K`, `V`\>) => `unknown` |
| `thisArg` | `T` |

#### Returns
Expand Down Expand Up @@ -1901,3 +1975,40 @@ Returns an iterable of values in the map
#### Inherited from

BaseCollection.values

___

### combineEntries

`Static` **combineEntries**<`K`, `V`\>(`entries`, `combine`): `Collection`<`K`, `V`\>

Creates a Collection from a list of entries.

**`Example`**

```ts
Collection.combineEntries([["a", 1], ["b", 2], ["a", 2]], (x, y) => x + y);
// returns Collection { "a" => 3, "b" => 2 }
```

#### Type parameters

| Name |
| :------ |
| `K` |
| `V` |

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `entries` | `Iterable`<[`K`, `V`]\> | The list of entries |
| `combine` | (`firstValue`: `V`, `secondValue`: `V`, `key`: `K`) => `V` | Function to combine an existing entry with a new one |

#### Returns

`Collection`<`K`, `V`\>

#### Inherited from

BaseCollection.combineEntries
2 changes: 1 addition & 1 deletion docs-v3/docs/api/reference
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: "reference"
title: "@open-wa/wa-automate - v4.65.1"
title: "@open-wa/wa-automate - v4.66.0"
sidebar_label: "Readme"
sidebar_position: 0
custom_edit_url: null
Expand Down
Loading

0 comments on commit 9c28b84

Please sign in to comment.