Skip to content

Commit 403a76d

Browse files
committed
2 parents 18377f8 + 2cb6453 commit 403a76d

File tree

120 files changed

+382
-348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+382
-348
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@ 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.23.12](https://github.com/open-wa/wa-automate-nodejs/compare/4.23.11...4.23.12)
10+
## [4.23.13](https://github.com/open-wa/wa-automate-nodejs/compare/4.23.12...4.23.13)
1111

1212
### Commits
1313

14+
- ✨ feat: `client.emitUnreadMessages` #2297 [`958dc55`](https://github.com/open-wa/wa-automate-nodejs/commit/958dc5582a4b19023eae1de1f41fe8ade703e758)
15+
- ✨ CLI: `--emit-unread` ...messages on launch #2297 [`41c3568`](https://github.com/open-wa/wa-automate-nodejs/commit/41c356894fcf57d86964554ca3b8d8739abfa727)
16+
- updated types-only package [`fa000fe`](https://github.com/open-wa/wa-automate-nodejs/commit/fa000fe040d2f1a04c97df0bfcdf4b9ca5126724)
17+
18+
## [4.23.12](https://github.com/open-wa/wa-automate-nodejs/compare/4.23.11...4.23.12) - 2021-11-17
19+
20+
### Commits
21+
22+
- Release 4.23.12 [`9fff912`](https://github.com/open-wa/wa-automate-nodejs/commit/9fff912e65c7e2f3f1aab35a4a01aeeeff892e69)
1423
- ✨ feat: MD auto detection #2298 [`662d0cc`](https://github.com/open-wa/wa-automate-nodejs/commit/662d0cc22352526bf77d49e7d37fcc6b29f879ae)
1524
- 🔧 added `mutliDevice` question to issue template #2256 [`5df90f8`](https://github.com/open-wa/wa-automate-nodejs/commit/5df90f8e597504182c86e1765ee7f81ce9c8caa9)
1625
- updated types-only package [`5842b6e`](https://github.com/open-wa/wa-automate-nodejs/commit/5842b6eedf9b54f7d7c14ac987f79b2b4609b683)

docs/assets/js/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/js/search.json

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

docs/classes/api_Client.Client.html

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<title>Client | @open-wa/wa-automate - v4.23.12</title>
7-
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.12">
6+
<title>Client | @open-wa/wa-automate - v4.23.13</title>
7+
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.13">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="stylesheet" href="../assets/css/main.css">
1010
<link rel="stylesheet" href="../assets/css/pages.css">
@@ -31,7 +31,7 @@
3131
<li class="state loading">Preparing search index...</li>
3232
<li class="state failure">The search index is not available</li>
3333
</ul>
34-
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.12</a>
34+
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.13</a>
3535
</div>
3636
<div class="table-cell" id="tsd-widgets">
3737
<div id="tsd-filter">
@@ -148,6 +148,7 @@ <h3>Methods</h3>
148148
<li class="tsd-kind-method tsd-parent-kind-class"><a href="api_Client.Client.html#downloadFileWithCredentials" class="tsd-kind-icon">download<wbr>File<wbr>With<wbr>Credentials</a></li>
149149
<li class="tsd-kind-method tsd-parent-kind-class"><a href="api_Client.Client.html#downloadProfilePicFromMessage" class="tsd-kind-icon">download<wbr>Profile<wbr>Pic<wbr>From<wbr>Message</a></li>
150150
<li class="tsd-kind-method tsd-parent-kind-class"><a href="api_Client.Client.html#editProduct" class="tsd-kind-icon">edit<wbr>Product</a></li>
151+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="api_Client.Client.html#emitUnreadMessages" class="tsd-kind-icon">emit<wbr>Unread<wbr>Messages</a></li>
151152
<li class="tsd-kind-method tsd-parent-kind-class"><a href="api_Client.Client.html#forceRefocus" class="tsd-kind-icon">force<wbr>Refocus</a></li>
152153
<li class="tsd-kind-method tsd-parent-kind-class"><a href="api_Client.Client.html#forceStaleMediaUpdate" class="tsd-kind-icon">force<wbr>Stale<wbr>Media<wbr>Update</a></li>
153154
<li class="tsd-kind-method tsd-parent-kind-class"><a href="api_Client.Client.html#forceUpdateConnectionState" class="tsd-kind-icon">force<wbr>Update<wbr>Connection<wbr>State</a></li>
@@ -2341,6 +2342,27 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</
23412342
</li>
23422343
</ul>
23432344
</section>
2345+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
2346+
<a name="emitUnreadMessages" class="tsd-anchor"></a>
2347+
<h3>emit<wbr>Unread<wbr>Messages</h3>
2348+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
2349+
<li class="tsd-signature tsd-kind-icon">emit<wbr>Unread<wbr>Messages<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-type">false_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">@g.us_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-type">false_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">@c.us_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-type">true_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">@g.us_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-type">true_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">@c.us_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li>
2350+
</ul>
2351+
<ul class="tsd-descriptions">
2352+
<li class="tsd-description">
2353+
<aside class="tsd-sources">
2354+
</aside>
2355+
<div class="tsd-comment tsd-typography">
2356+
<div class="lead">
2357+
<p>Fires all unread messages to the onMessage listener.
2358+
Make sure to call this AFTER setting your listeners.</p>
2359+
</div>
2360+
</div>
2361+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-type">false_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">@g.us_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-type">false_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">@c.us_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-type">true_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">@g.us_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-type">true_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">@c.us_</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
2362+
<p>array of message IDs</p>
2363+
</li>
2364+
</ul>
2365+
</section>
23442366
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
23452367
<a name="forceRefocus" class="tsd-anchor"></a>
23462368
<h3>force<wbr>Refocus</h3>
@@ -7521,6 +7543,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</
75217543
<li class=" tsd-kind-method tsd-parent-kind-class">
75227544
<a href="api_Client.Client.html#editProduct" class="tsd-kind-icon">edit<wbr>Product</a>
75237545
</li>
7546+
<li class=" tsd-kind-method tsd-parent-kind-class">
7547+
<a href="api_Client.Client.html#emitUnreadMessages" class="tsd-kind-icon">emit<wbr>Unread<wbr>Messages</a>
7548+
</li>
75247549
<li class=" tsd-kind-method tsd-parent-kind-class">
75257550
<a href="api_Client.Client.html#forceRefocus" class="tsd-kind-icon">force<wbr>Refocus</a>
75267551
</li>

docs/classes/api_model_errors.AddParticipantError.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<title>AddParticipantError | @open-wa/wa-automate - v4.23.12</title>
7-
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.12">
6+
<title>AddParticipantError | @open-wa/wa-automate - v4.23.13</title>
7+
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.13">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="stylesheet" href="../assets/css/main.css">
1010
<link rel="stylesheet" href="../assets/css/pages.css">
@@ -31,7 +31,7 @@
3131
<li class="state loading">Preparing search index...</li>
3232
<li class="state failure">The search index is not available</li>
3333
</ul>
34-
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.12</a>
34+
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.13</a>
3535
</div>
3636
<div class="table-cell" id="tsd-widgets">
3737
<div id="tsd-filter">

docs/classes/api_model_errors.CustomError.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<title>CustomError | @open-wa/wa-automate - v4.23.12</title>
7-
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.12">
6+
<title>CustomError | @open-wa/wa-automate - v4.23.13</title>
7+
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.13">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="stylesheet" href="../assets/css/main.css">
1010
<link rel="stylesheet" href="../assets/css/pages.css">
@@ -31,7 +31,7 @@
3131
<li class="state loading">Preparing search index...</li>
3232
<li class="state failure">The search index is not available</li>
3333
</ul>
34-
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.12</a>
34+
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.13</a>
3535
</div>
3636
<div class="table-cell" id="tsd-widgets">
3737
<div id="tsd-filter">

docs/classes/api_model_errors.PageEvaluationTimeout.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<title>PageEvaluationTimeout | @open-wa/wa-automate - v4.23.12</title>
7-
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.12">
6+
<title>PageEvaluationTimeout | @open-wa/wa-automate - v4.23.13</title>
7+
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.13">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="stylesheet" href="../assets/css/main.css">
1010
<link rel="stylesheet" href="../assets/css/pages.css">
@@ -31,7 +31,7 @@
3131
<li class="state loading">Preparing search index...</li>
3232
<li class="state failure">The search index is not available</li>
3333
</ul>
34-
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.12</a>
34+
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.13</a>
3535
</div>
3636
<div class="table-cell" id="tsd-widgets">
3737
<div id="tsd-filter">

docs/classes/api_model_errors.SessionExpiredError.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<title>SessionExpiredError | @open-wa/wa-automate - v4.23.12</title>
7-
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.12">
6+
<title>SessionExpiredError | @open-wa/wa-automate - v4.23.13</title>
7+
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.13">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="stylesheet" href="../assets/css/main.css">
1010
<link rel="stylesheet" href="../assets/css/pages.css">
@@ -31,7 +31,7 @@
3131
<li class="state loading">Preparing search index...</li>
3232
<li class="state failure">The search index is not available</li>
3333
</ul>
34-
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.12</a>
34+
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.13</a>
3535
</div>
3636
<div class="table-cell" id="tsd-widgets">
3737
<div id="tsd-filter">

docs/classes/connect_socket.SocketClient.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<title>SocketClient | @open-wa/wa-automate - v4.23.12</title>
7-
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.12">
6+
<title>SocketClient | @open-wa/wa-automate - v4.23.13</title>
7+
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.13">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="stylesheet" href="../assets/css/main.css">
1010
<link rel="stylesheet" href="../assets/css/pages.css">
@@ -31,7 +31,7 @@
3131
<li class="state loading">Preparing search index...</li>
3232
<li class="state failure">The search index is not available</li>
3333
</ul>
34-
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.12</a>
34+
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.13</a>
3535
</div>
3636
<div class="table-cell" id="tsd-widgets">
3737
<div id="tsd-filter">

docs/classes/structures_Collector.Collection.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<title>Collection | @open-wa/wa-automate - v4.23.12</title>
7-
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.12">
6+
<title>Collection | @open-wa/wa-automate - v4.23.13</title>
7+
<meta name="description" content="Documentation for @open-wa/wa-automate - v4.23.13">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="stylesheet" href="../assets/css/main.css">
1010
<link rel="stylesheet" href="../assets/css/pages.css">
@@ -31,7 +31,7 @@
3131
<li class="state loading">Preparing search index...</li>
3232
<li class="state failure">The search index is not available</li>
3333
</ul>
34-
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.12</a>
34+
<a href="../index.html" class="title">@open-wa/wa-automate - v4.23.13</a>
3535
</div>
3636
<div class="table-cell" id="tsd-widgets">
3737
<div id="tsd-filter">

0 commit comments

Comments
 (0)