@wppconnect-team/wppconnect 1.20.0 → 1.22.0

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.
package/CHANGELOG.md CHANGED
@@ -1,393 +1,262 @@
1
- # 1.20.0 (2022-12-15)
2
-
1
+ # 1.22.0 (2023-02-19)
3
2
 
4
3
  ### Features
5
4
 
6
- * Added getVotes and getReactions functions ([49bb58f](https://github.com/wppconnect-team/wppconnect/commit/49bb58f9c0db9271a36cea4d650857f2ddbde74a))
7
-
5
+ - Added deviceSyncTimeout option (close [#1551](https://github.com/wppconnect-team/wppconnect/issues/1551)) ([d4458e5](https://github.com/wppconnect-team/wppconnect/commit/d4458e5c3727b4d96e1595a6f5fa2d798a2bd69a))
8
6
 
7
+ # 1.21.0 (2023-02-03)
9
8
 
10
- ## 1.19.2 (2022-12-11)
9
+ ### Bug Fixes
11
10
 
11
+ - **deps:** update dependency @wppconnect/wa-js to ^2.19.0 ([#1531](https://github.com/wppconnect-team/wppconnect/issues/1531)) ([09626d0](https://github.com/wppconnect-team/wppconnect/commit/09626d0b4921609633b77a1fcc2a67e9882a9dc4))
12
12
 
13
+ # 1.20.0 (2022-12-15)
13
14
 
14
- ## 1.19.1 (2022-11-18)
15
+ ### Features
15
16
 
17
+ - Added getVotes and getReactions functions ([49bb58f](https://github.com/wppconnect-team/wppconnect/commit/49bb58f9c0db9271a36cea4d650857f2ddbde74a))
16
18
 
17
- ### Bug Fixes
19
+ ## 1.19.2 (2022-12-11)
18
20
 
19
- * Fixed onMessage method (fix [#1351](https://github.com/wppconnect-team/wppconnect/issues/1351)) ([e8549a1](https://github.com/wppconnect-team/wppconnect/commit/e8549a10cf7b3ed5a04209bdd7d58b9a3c073f32))
21
+ ## 1.19.1 (2022-11-18)
20
22
 
23
+ ### Bug Fixes
21
24
 
25
+ - Fixed onMessage method (fix [#1351](https://github.com/wppconnect-team/wppconnect/issues/1351)) ([e8549a1](https://github.com/wppconnect-team/wppconnect/commit/e8549a10cf7b3ed5a04209bdd7d58b9a3c073f32))
22
26
 
23
27
  # 1.19.0 (2022-11-02)
24
28
 
25
-
26
-
27
29
  ## 1.18.1 (2022-10-20)
28
30
 
29
-
30
31
  ### Bug Fixes
31
32
 
32
- * Fixed "Checking phone is connected" without autoClose ([ad63fb5](https://github.com/wppconnect-team/wppconnect/commit/ad63fb56a2255a67bcb16227fa6a61210f8633d1))
33
-
34
-
33
+ - Fixed "Checking phone is connected" without autoClose ([ad63fb5](https://github.com/wppconnect-team/wppconnect/commit/ad63fb56a2255a67bcb16227fa6a61210f8633d1))
35
34
 
36
35
  # 1.18.0 (2022-10-18)
37
36
 
38
-
39
37
  ### Features
40
38
 
41
- * Improved QRCode re-scan (fix [#1189](https://github.com/wppconnect-team/wppconnect/issues/1189)) ([8ec5264](https://github.com/wppconnect-team/wppconnect/commit/8ec5264e55e01c15efd3e3c273c54e34cad166c9))
42
-
43
-
39
+ - Improved QRCode re-scan (fix [#1189](https://github.com/wppconnect-team/wppconnect/issues/1189)) ([8ec5264](https://github.com/wppconnect-team/wppconnect/commit/8ec5264e55e01c15efd3e3c273c54e34cad166c9))
44
40
 
45
41
  ## 1.17.1 (2022-10-10)
46
42
 
47
-
48
43
  ### Bug Fixes
49
44
 
50
- * **deps:** update dependency @wppconnect/wa-js to ^2.13.1 ([#1364](https://github.com/wppconnect-team/wppconnect/issues/1364)) ([ff92035](https://github.com/wppconnect-team/wppconnect/commit/ff92035cb05abc21a8e241d8c7d3d5be4614edfb))
51
-
52
-
45
+ - **deps:** update dependency @wppconnect/wa-js to ^2.13.1 ([#1364](https://github.com/wppconnect-team/wppconnect/issues/1364)) ([ff92035](https://github.com/wppconnect-team/wppconnect/commit/ff92035cb05abc21a8e241d8c7d3d5be4614edfb))
53
46
 
54
47
  # 1.17.0 (2022-09-17)
55
48
 
56
-
57
49
  ### Bug Fixes
58
50
 
59
- * **deps:** update dependency @wppconnect/wa-version to ^1.1.154 ([#1334](https://github.com/wppconnect-team/wppconnect/issues/1334)) ([daa94ef](https://github.com/wppconnect-team/wppconnect/commit/daa94ef808660bd5acb143ceb8c9bff9a3a25a18))
60
-
61
-
51
+ - **deps:** update dependency @wppconnect/wa-version to ^1.1.154 ([#1334](https://github.com/wppconnect-team/wppconnect/issues/1334)) ([daa94ef](https://github.com/wppconnect-team/wppconnect/commit/daa94ef808660bd5acb143ceb8c9bff9a3a25a18))
62
52
 
63
53
  ## 1.16.1 (2022-08-09)
64
54
 
65
-
66
-
67
55
  # 1.16.0 (2022-08-05)
68
56
 
69
-
70
57
  ### Bug Fixes
71
58
 
72
- * **deps:** update dependency @wppconnect/wa-js to ^2.10.0 ([dc8133a](https://github.com/wppconnect-team/wppconnect/commit/dc8133a2896c011830c874c94c780acd9368a25a))
73
-
74
-
59
+ - **deps:** update dependency @wppconnect/wa-js to ^2.10.0 ([dc8133a](https://github.com/wppconnect-team/wppconnect/commit/dc8133a2896c011830c874c94c780acd9368a25a))
75
60
 
76
61
  # 1.15.0 (2022-07-20)
77
62
 
78
-
79
-
80
63
  ## 1.14.5 (2022-07-11)
81
64
 
82
-
83
-
84
65
  ## 1.14.4 (2022-06-20)
85
66
 
86
-
87
-
88
67
  ## 1.14.3 (2022-06-17)
89
68
 
90
-
91
69
  ### Bug Fixes
92
70
 
93
- * **deps:** update dependency @wppconnect/wa-js to ^2.7.2 ([#1181](https://github.com/wppconnect-team/wppconnect/issues/1181)) ([5208e62](https://github.com/wppconnect-team/wppconnect/commit/5208e621cf79ca5d80cca5ecf3c7b9068ca44e91))
94
-
95
-
71
+ - **deps:** update dependency @wppconnect/wa-js to ^2.7.2 ([#1181](https://github.com/wppconnect-team/wppconnect/issues/1181)) ([5208e62](https://github.com/wppconnect-team/wppconnect/commit/5208e621cf79ca5d80cca5ecf3c7b9068ca44e91))
96
72
 
97
73
  ## 1.14.2 (2022-06-11)
98
74
 
99
-
100
75
  ### Bug Fixes
101
76
 
102
- * Added filename for sendFile when is using path or URL (fix [#1168](https://github.com/wppconnect-team/wppconnect/issues/1168)) ([5534fad](https://github.com/wppconnect-team/wppconnect/commit/5534fad0e056563cc3ce6b7699ea06f5eaff6da8))
103
-
104
-
77
+ - Added filename for sendFile when is using path or URL (fix [#1168](https://github.com/wppconnect-team/wppconnect/issues/1168)) ([5534fad](https://github.com/wppconnect-team/wppconnect/commit/5534fad0e056563cc3ce6b7699ea06f5eaff6da8))
105
78
 
106
79
  ## 1.14.1 (2022-06-08)
107
80
 
108
-
109
-
110
81
  # 1.14.0 (2022-06-08)
111
82
 
112
-
113
83
  ### Bug Fixes
114
84
 
115
- * **deps:** update dependency @wppconnect/wa-js to ^2.6.0 ([27d5a52](https://github.com/wppconnect-team/wppconnect/commit/27d5a523c1dfa1a22c8be08cd7ff6d03af1fc0b1))
116
-
117
-
85
+ - **deps:** update dependency @wppconnect/wa-js to ^2.6.0 ([27d5a52](https://github.com/wppconnect-team/wppconnect/commit/27d5a523c1dfa1a22c8be08cd7ff6d03af1fc0b1))
118
86
 
119
87
  ## 1.13.3 (2022-06-01)
120
88
 
121
-
122
89
  ### Bug Fixes
123
90
 
124
- * Clear all token data when disconnected (fix [#1147](https://github.com/wppconnect-team/wppconnect/issues/1147)) ([4abcfed](https://github.com/wppconnect-team/wppconnect/commit/4abcfed97778ddb619df65fec0b1c3d0dc4debac))
125
-
126
-
91
+ - Clear all token data when disconnected (fix [#1147](https://github.com/wppconnect-team/wppconnect/issues/1147)) ([4abcfed](https://github.com/wppconnect-team/wppconnect/commit/4abcfed97778ddb619df65fec0b1c3d0dc4debac))
127
92
 
128
93
  ## 1.13.2 (2022-05-28)
129
94
 
130
-
131
95
  ### Bug Fixes
132
96
 
133
- * Migrate archiveChat and pinChat methods to WA-JS ([cee7e1c](https://github.com/wppconnect-team/wppconnect/commit/cee7e1ced23409d66365e42a35602265e0c09536))
134
-
135
-
97
+ - Migrate archiveChat and pinChat methods to WA-JS ([cee7e1c](https://github.com/wppconnect-team/wppconnect/commit/cee7e1ced23409d66365e42a35602265e0c09536))
136
98
 
137
99
  ## 1.13.1 (2022-05-10)
138
100
 
139
-
140
-
141
101
  # 1.13.0 (2022-04-25)
142
102
 
143
-
144
103
  ### Features
145
104
 
146
- * Improved chat state to keep alive and online ([ba82005](https://github.com/wppconnect-team/wppconnect/commit/ba82005f11b8ecc8dacee08304b7d3a66bbea6b0))
147
-
148
-
105
+ - Improved chat state to keep alive and online ([ba82005](https://github.com/wppconnect-team/wppconnect/commit/ba82005f11b8ecc8dacee08304b7d3a66bbea6b0))
149
106
 
150
107
  ## 1.12.8 (2022-03-13)
151
108
 
152
-
153
109
  ### Bug Fixes
154
110
 
155
- * Fixed stuck state after logout ([bb9695a](https://github.com/wppconnect-team/wppconnect/commit/bb9695a61404a062daf1d0995ad2bb10af7c5006))
156
-
157
-
111
+ - Fixed stuck state after logout ([bb9695a](https://github.com/wppconnect-team/wppconnect/commit/bb9695a61404a062daf1d0995ad2bb10af7c5006))
158
112
 
159
113
  ## 1.12.7 (2022-03-03)
160
114
 
161
-
162
115
  ### Bug Fixes
163
116
 
164
- * Fixed onParticipantsChanged and onPresenceChanged function (fix [#864](https://github.com/wppconnect-team/wppconnect/issues/864), fix [#911](https://github.com/wppconnect-team/wppconnect/issues/911)) ([aff7f6c](https://github.com/wppconnect-team/wppconnect/commit/aff7f6cd34c22c086789ca4871c3113d8d8b2bb8))
165
-
166
-
117
+ - Fixed onParticipantsChanged and onPresenceChanged function (fix [#864](https://github.com/wppconnect-team/wppconnect/issues/864), fix [#911](https://github.com/wppconnect-team/wppconnect/issues/911)) ([aff7f6c](https://github.com/wppconnect-team/wppconnect/commit/aff7f6cd34c22c086789ca4871c3113d8d8b2bb8))
167
118
 
168
119
  ## 1.12.6 (2022-02-22)
169
120
 
170
-
171
121
  ### Bug Fixes
172
122
 
173
- * Fixed getGroupMembersIds and getGroupMembers for large chats (fix [#892](https://github.com/wppconnect-team/wppconnect/issues/892)) ([9cc34a5](https://github.com/wppconnect-team/wppconnect/commit/9cc34a5fddef52b01feba6194fff31aa19b388f0))
174
-
175
-
123
+ - Fixed getGroupMembersIds and getGroupMembers for large chats (fix [#892](https://github.com/wppconnect-team/wppconnect/issues/892)) ([9cc34a5](https://github.com/wppconnect-team/wppconnect/commit/9cc34a5fddef52b01feba6194fff31aa19b388f0))
176
124
 
177
125
  ## 1.12.5 (2022-02-06)
178
126
 
179
-
180
-
181
127
  ## 1.12.4 (2022-01-22)
182
128
 
183
-
184
129
  ### Bug Fixes
185
130
 
186
- * Fixed getMessageById where the message is from status (fix [#823](https://github.com/wppconnect-team/wppconnect/issues/823)) ([ed57b97](https://github.com/wppconnect-team/wppconnect/commit/ed57b9700efd72f3de7c0c8d658d24b41f4da5d9))
187
-
188
-
131
+ - Fixed getMessageById where the message is from status (fix [#823](https://github.com/wppconnect-team/wppconnect/issues/823)) ([ed57b97](https://github.com/wppconnect-team/wppconnect/commit/ed57b9700efd72f3de7c0c8d658d24b41f4da5d9))
189
132
 
190
133
  ## 1.12.3 (2022-01-21)
191
134
 
192
-
193
135
  ### Bug Fixes
194
136
 
195
- * Updated @wppconnect/wa-js to v1.1.9 ([5074de1](https://github.com/wppconnect-team/wppconnect/commit/5074de182f401b8f8e6b382aa513ca2cc65ef488))
196
-
197
-
137
+ - Updated @wppconnect/wa-js to v1.1.9 ([5074de1](https://github.com/wppconnect-team/wppconnect/commit/5074de182f401b8f8e6b382aa513ca2cc65ef488))
198
138
 
199
139
  ## 1.12.2 (2022-01-15)
200
140
 
201
-
202
-
203
141
  ## 1.12.1 (2022-01-14)
204
142
 
205
-
206
-
207
143
  # 1.12.0 (2022-01-08)
208
144
 
209
-
210
145
  ### Bug Fixes
211
146
 
212
- * Fixed downloadMedia (fix [#463](https://github.com/wppconnect-team/wppconnect/issues/463)) ([ea9ba75](https://github.com/wppconnect-team/wppconnect/commit/ea9ba75ec3e24103a7ccf55b0df43ffc8d46271b))
213
-
214
-
147
+ - Fixed downloadMedia (fix [#463](https://github.com/wppconnect-team/wppconnect/issues/463)) ([ea9ba75](https://github.com/wppconnect-team/wppconnect/commit/ea9ba75ec3e24103a7ccf55b0df43ffc8d46271b))
215
148
 
216
149
  ## 1.11.1 (2021-12-09)
217
150
 
218
-
219
151
  ### Bug Fixes
220
152
 
221
- * Fixed getNumberProfile function (fix [#717](https://github.com/wppconnect-team/wppconnect/issues/717)) ([89a0720](https://github.com/wppconnect-team/wppconnect/commit/89a072066991213d301739b0788d19f05a9b0912))
222
-
223
-
153
+ - Fixed getNumberProfile function (fix [#717](https://github.com/wppconnect-team/wppconnect/issues/717)) ([89a0720](https://github.com/wppconnect-team/wppconnect/commit/89a072066991213d301739b0788d19f05a9b0912))
224
154
 
225
155
  # 1.11.0 (2021-12-09)
226
156
 
227
-
228
157
  ### Bug Fixes
229
158
 
230
- * Fixed initialization of onPresenceChanged (fix [#704](https://github.com/wppconnect-team/wppconnect/issues/704)) ([0470ea8](https://github.com/wppconnect-team/wppconnect/commit/0470ea8a0fd15727f91e18c913b96f3c1e1f79a9))
231
-
232
-
159
+ - Fixed initialization of onPresenceChanged (fix [#704](https://github.com/wppconnect-team/wppconnect/issues/704)) ([0470ea8](https://github.com/wppconnect-team/wppconnect/commit/0470ea8a0fd15727f91e18c913b96f3c1e1f79a9))
233
160
 
234
161
  ## 1.10.3 (2021-11-18)
235
162
 
236
-
237
-
238
163
  ## 1.10.2 (2021-11-15)
239
164
 
240
-
241
165
  ### Bug Fixes
242
166
 
243
- * Fixed call of createWid function (fix [#647](https://github.com/wppconnect-team/wppconnect/issues/647)) ([c381000](https://github.com/wppconnect-team/wppconnect/commit/c3810003a4f145f9c3ec54f49cde97ddbe01a164))
244
-
245
-
167
+ - Fixed call of createWid function (fix [#647](https://github.com/wppconnect-team/wppconnect/issues/647)) ([c381000](https://github.com/wppconnect-team/wppconnect/commit/c3810003a4f145f9c3ec54f49cde97ddbe01a164))
246
168
 
247
169
  ## 1.10.1 (2021-11-11)
248
170
 
249
-
250
171
  ### Features
251
172
 
252
- * Updated to latest version of WhatsApp ([f6d01a3](https://github.com/wppconnect-team/wppconnect/commit/f6d01a390db9577f46fee0072637ece981e54780))
253
-
254
-
173
+ - Updated to latest version of WhatsApp ([f6d01a3](https://github.com/wppconnect-team/wppconnect/commit/f6d01a390db9577f46fee0072637ece981e54780))
255
174
 
256
175
  # 1.10.0 (2021-11-06)
257
176
 
258
-
259
-
260
177
  ## 1.9.4 (2021-10-21)
261
178
 
262
-
263
-
264
179
  ## 1.9.3 (2021-10-21)
265
180
 
266
-
267
181
  ### Bug Fixes
268
182
 
269
- * Fixed close method ([#579](https://github.com/wppconnect-team/wppconnect/issues/579)) ([ef42485](https://github.com/wppconnect-team/wppconnect/commit/ef42485505e9920b5b7826674949ed9d5e36d4e1))
270
-
271
-
183
+ - Fixed close method ([#579](https://github.com/wppconnect-team/wppconnect/issues/579)) ([ef42485](https://github.com/wppconnect-team/wppconnect/commit/ef42485505e9920b5b7826674949ed9d5e36d4e1))
272
184
 
273
185
  ## 1.9.2 (2021-10-12)
274
186
 
275
-
276
187
  ### Features
277
188
 
278
- * Added onRevokedMessage (close [#434](https://github.com/wppconnect-team/wppconnect/issues/434)) ([b5df5bb](https://github.com/wppconnect-team/wppconnect/commit/b5df5bbcc3418204744057cf45089c3bb2228c57))
279
-
280
-
189
+ - Added onRevokedMessage (close [#434](https://github.com/wppconnect-team/wppconnect/issues/434)) ([b5df5bb](https://github.com/wppconnect-team/wppconnect/commit/b5df5bbcc3418204744057cf45089c3bb2228c57))
281
190
 
282
191
  ## 1.9.1 (2021-10-02)
283
192
 
284
-
285
193
  ### Features
286
194
 
287
- * Added option to use setProfilePic using base64 (close [#505](https://github.com/wppconnect-team/wppconnect/issues/505)) ([87f1841](https://github.com/wppconnect-team/wppconnect/commit/87f184128c2b458f128ff26ac9ea081537b4c2a4))
288
-
289
-
195
+ - Added option to use setProfilePic using base64 (close [#505](https://github.com/wppconnect-team/wppconnect/issues/505)) ([87f1841](https://github.com/wppconnect-team/wppconnect/commit/87f184128c2b458f128ff26ac9ea081537b4c2a4))
290
196
 
291
197
  # 1.9.0 (2021-10-02)
292
198
 
293
-
294
-
295
199
  ## 1.8.14 (2021-09-19)
296
200
 
297
-
298
201
  ### Bug Fixes
299
202
 
300
- * Allow to define chat type in sendMessageOptions (close [#504](https://github.com/wppconnect-team/wppconnect/issues/504)) ([bf76179](https://github.com/wppconnect-team/wppconnect/commit/bf761794559c02a5f7a2d842e68fd6562b68b0cb))
301
-
302
-
203
+ - Allow to define chat type in sendMessageOptions (close [#504](https://github.com/wppconnect-team/wppconnect/issues/504)) ([bf76179](https://github.com/wppconnect-team/wppconnect/commit/bf761794559c02a5f7a2d842e68fd6562b68b0cb))
303
204
 
304
205
  ## 1.8.13 (2021-08-19)
305
206
 
306
-
307
207
  ### Bug Fixes
308
208
 
309
- * Fixed file mime-type detection (fix [#409](https://github.com/wppconnect-team/wppconnect/issues/409)) ([1609e34](https://github.com/wppconnect-team/wppconnect/commit/1609e34e89b02eaba57cd2c0ef17e94393e89916))
310
-
311
-
209
+ - Fixed file mime-type detection (fix [#409](https://github.com/wppconnect-team/wppconnect/issues/409)) ([1609e34](https://github.com/wppconnect-team/wppconnect/commit/1609e34e89b02eaba57cd2c0ef17e94393e89916))
312
210
 
313
211
  ## 1.8.12 (2021-08-05)
314
212
 
315
-
316
-
317
213
  ## 1.8.11 (2021-08-04)
318
214
 
319
-
320
215
  ### Features
321
216
 
322
- * Added setOnlinePresence function to define your presence ([627d1a5](https://github.com/wppconnect-team/wppconnect/commit/627d1a5f3a76ea4813420a4fc25784362497da39))
323
-
324
-
217
+ - Added setOnlinePresence function to define your presence ([627d1a5](https://github.com/wppconnect-team/wppconnect/commit/627d1a5f3a76ea4813420a4fc25784362497da39))
325
218
 
326
219
  ## 1.8.10 (2021-07-31)
327
220
 
328
-
329
221
  ### Bug Fixes
330
222
 
331
- * Corrigido erro "null to object" ao enviar mensagem (fix [#378](https://github.com/wppconnect-team/wppconnect/issues/378)) ([ec103b9](https://github.com/wppconnect-team/wppconnect/commit/ec103b9cae33b993f95cacdb2a1d35fd3e4ecacc))
332
-
333
-
223
+ - Corrigido erro "null to object" ao enviar mensagem (fix [#378](https://github.com/wppconnect-team/wppconnect/issues/378)) ([ec103b9](https://github.com/wppconnect-team/wppconnect/commit/ec103b9cae33b993f95cacdb2a1d35fd3e4ecacc))
334
224
 
335
225
  ## 1.8.9 (2021-07-27)
336
226
 
337
-
338
227
  ### Bug Fixes
339
228
 
340
- * Corrigido a função de fixar conversas (pinChat) (fix [#338](https://github.com/wppconnect-team/wppconnect/issues/338)) ([f6bf1f3](https://github.com/wppconnect-team/wppconnect/commit/f6bf1f3f1598719d38eeb9d84bf3a9c0d87de18d))
341
-
342
-
229
+ - Corrigido a função de fixar conversas (pinChat) (fix [#338](https://github.com/wppconnect-team/wppconnect/issues/338)) ([f6bf1f3](https://github.com/wppconnect-team/wppconnect/commit/f6bf1f3f1598719d38eeb9d84bf3a9c0d87de18d))
343
230
 
344
231
  ## 1.8.8 (2021-07-27)
345
232
 
346
-
347
233
  ### Bug Fixes
348
234
 
349
- * Corrigido problema de ES Module (fix [#362](https://github.com/wppconnect-team/wppconnect/issues/362)) ([dcdefc4](https://github.com/wppconnect-team/wppconnect/commit/dcdefc4e7e0dbeb5cd3678ee0b7e7f92e8210dba))
350
-
351
-
235
+ - Corrigido problema de ES Module (fix [#362](https://github.com/wppconnect-team/wppconnect/issues/362)) ([dcdefc4](https://github.com/wppconnect-team/wppconnect/commit/dcdefc4e7e0dbeb5cd3678ee0b7e7f92e8210dba))
352
236
 
353
237
  ## 1.8.7 (2021-07-26)
354
238
 
355
-
356
-
357
239
  ## 1.8.6 (2021-07-23)
358
240
 
359
-
360
-
361
241
  ## [1.8.5](https://github.com/wppconnect-team/wppconnect/compare/v1.8.4...v1.8.5) (2021-07-20)
362
242
 
363
-
364
-
365
243
  ## 1.8.4 (2021-07-20)
366
244
 
367
-
368
245
  ### Bug Fixes
369
246
 
370
- * Corrigido o envio de arquivos de tipos de áudio via URL (fix [#329](https://github.com/wppconnect-team/wppconnect/issues/329)) ([6e8b836](https://github.com/wppconnect-team/wppconnect/commit/6e8b836f40ecda9df4870b09d6fc11410a15e1f6))
371
-
372
-
247
+ - Corrigido o envio de arquivos de tipos de áudio via URL (fix [#329](https://github.com/wppconnect-team/wppconnect/issues/329)) ([6e8b836](https://github.com/wppconnect-team/wppconnect/commit/6e8b836f40ecda9df4870b09d6fc11410a15e1f6))
373
248
 
374
249
  ## 1.8.3 (2021-07-14)
375
250
 
376
-
377
251
  ### Bug Fixes
378
252
 
379
- * Corrigido disparos de onNotificationMessage e onParticipantsChanged ao iniciar ([d421f7b](https://github.com/wppconnect-team/wppconnect/commit/d421f7bc860ec4cee503340c14e676692094ac1d))
380
-
381
-
253
+ - Corrigido disparos de onNotificationMessage e onParticipantsChanged ao iniciar ([d421f7b](https://github.com/wppconnect-team/wppconnect/commit/d421f7bc860ec4cee503340c14e676692094ac1d))
382
254
 
383
255
  ## 1.8.2 (2021-07-14)
384
256
 
385
-
386
257
  ### Features
387
258
 
388
- * Adicionado recurso de recusar ligação do WhatsApp (close [#299](https://github.com/wppconnect-team/wppconnect/issues/299)) ([e7ef0b6](https://github.com/wppconnect-team/wppconnect/commit/e7ef0b6db0aecf57bd058c681127a0bdd756636b))
389
-
390
-
259
+ - Adicionado recurso de recusar ligação do WhatsApp (close [#299](https://github.com/wppconnect-team/wppconnect/issues/299)) ([e7ef0b6](https://github.com/wppconnect-team/wppconnect/commit/e7ef0b6db0aecf57bd058c681127a0bdd756636b))
391
260
 
392
261
  ## [1.8.1](https://github.com/wppconnect-team/wppconnect/compare/v1.8.0...v1.8.1) (2021-07-12)
393
262
 
package/README.md CHANGED
@@ -6,8 +6,8 @@
6
6
  [![Downloads](https://img.shields.io/npm/dm/@wppconnect-team/wppconnect.svg)](https://www.npmjs.com/package/@wppconnect-team/wppconnect)
7
7
  [![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/wppconnect-team/wppconnect.svg)](https://isitmaintained.com/project/wppconnect-team/wppconnect 'Average time to resolve an issue')
8
8
  [![Percentage of issues still open](https://isitmaintained.com/badge/open/wppconnect-team/wppconnect.svg)](https://isitmaintained.com/project/wppconnect-team/wppconnect 'Percentage of issues still open')
9
- [![Build Status](https://img.shields.io/github/workflow/status/wppconnect-team/wppconnect/build.svg)](https://github.com/wppconnect-team/wppconnect/actions)
10
- [![Lint Status](https://img.shields.io/github/workflow/status/wppconnect-team/wppconnect/lint.svg?label=lint)](https://github.com/wppconnect-team/wppconnect/actions)
9
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/wppconnect-team/wppconnect/build.yml?branch=master)](https://github.com/wppconnect-team/wppconnect/actions)
10
+ [![Lint Status](https://img.shields.io/github/actions/workflow/status/wppconnect-team/wppconnect/lint.yml?branch=master&label=lint)](https://github.com/wppconnect-team/wppconnect/actions)
11
11
  [![release-it](https://img.shields.io/badge/%F0%9F%93%A6%F0%9F%9A%80-release--it-e10079.svg)](https://github.com/release-it/release-it)
12
12
 
13
13
  > WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination... 😀🤔💭
@@ -22,7 +22,7 @@
22
22
 
23
23
  [![Discord](https://img.shields.io/discord/844351092758413353?color=blueviolet&label=Discord&logo=discord&style=flat)](https://discord.gg/JU5JGGKGNG)
24
24
  [![Telegram Group](https://img.shields.io/badge/Telegram-Group-32AFED?logo=telegram)](https://t.me/wppconnect)
25
- [![WhatsApp Group](https://img.shields.io/badge/WhatsApp-Group-25D366?logo=whatsapp)](https://chat.whatsapp.com/C1ChjyShl5cA7KvmtecF3L)
25
+ [![WhatsApp Group](https://img.shields.io/badge/WhatsApp-Group-25D366?logo=whatsapp)](https://chat.whatsapp.com/LJaQu6ZyNvnBPNAVRbX00K)
26
26
  [![YouTube](https://img.shields.io/youtube/channel/subscribers/UCD7J9LG08PmGQrF5IS7Yv9A?label=YouTube)](https://www.youtube.com/c/wppconnect)
27
27
 
28
28
  ## Functions
@@ -72,6 +72,10 @@ interested please open a Pull Request.
72
72
  Pull requests are welcome. For major changes, please open an issue first to
73
73
  discuss what you would like to change.
74
74
 
75
+ ## Star History
76
+
77
+ [![Star History Chart](https://api.star-history.com/svg?repos=wppconnect-team/wppconnect,wppconnect-team/wa-js&type=Date)](https://star-history.com/#wppconnect-team/wppconnect&wppconnect-team/wa-js&Date)
78
+
75
79
  ## License
76
80
 
77
81
  This file is part of WPPConnect.
@@ -4,6 +4,30 @@ import { HostLayer } from './host.layer';
4
4
  export declare class CatalogLayer extends HostLayer {
5
5
  page: Page;
6
6
  constructor(page: Page, session?: string, options?: CreateConfig);
7
+ /**
8
+ * Create a product on catalog
9
+ * @param name Product name
10
+ * @param image Product image
11
+ * @param description Product description
12
+ * @param price Product price
13
+ * @param isHidden Product visibility
14
+ * @param url Product url
15
+ * @param retailerId Product own ID system
16
+ * @param currency Product currency
17
+ * @example
18
+ * ```javascript
19
+ * client.createtProduct(
20
+ * 'Product name',
21
+ * 'image in base64',
22
+ * 'product description',
23
+ * '89.90',
24
+ * true,
25
+ * 'https://wppconnect.io',
26
+ * 'AKA001',
27
+ * );
28
+ * ```
29
+ */
30
+ createProduct(name: string, image: string, description: string, price: number, isHidden: boolean, url: string, retailerId: string, currency: string): Promise<import("@wppconnect/wa-js/dist/whatsapp").ProductModel>;
7
31
  /**
8
32
  * Querys all products
9
33
  * @param id Buisness profile id ('00000@c.us')
@@ -77,6 +77,48 @@ var CatalogLayer = /** @class */ (function (_super) {
77
77
  _this.page = page;
78
78
  return _this;
79
79
  }
80
+ /**
81
+ * Create a product on catalog
82
+ * @param name Product name
83
+ * @param image Product image
84
+ * @param description Product description
85
+ * @param price Product price
86
+ * @param isHidden Product visibility
87
+ * @param url Product url
88
+ * @param retailerId Product own ID system
89
+ * @param currency Product currency
90
+ * @example
91
+ * ```javascript
92
+ * client.createtProduct(
93
+ * 'Product name',
94
+ * 'image in base64',
95
+ * 'product description',
96
+ * '89.90',
97
+ * true,
98
+ * 'https://wppconnect.io',
99
+ * 'AKA001',
100
+ * );
101
+ * ```
102
+ */
103
+ CatalogLayer.prototype.createProduct = function (name, image, description, price, isHidden, url, retailerId, currency) {
104
+ return __awaiter(this, void 0, void 0, function () {
105
+ return __generator(this, function (_a) {
106
+ return [2 /*return*/, (0, helpers_1.evaluateAndReturn)(this.page, function (_a) {
107
+ var name = _a.name, image = _a.image, description = _a.description, price = _a.price, isHidden = _a.isHidden, url = _a.url, retailerId = _a.retailerId, currency = _a.currency;
108
+ return WPP.catalog.createProduct({
109
+ name: name,
110
+ image: image,
111
+ description: description,
112
+ price: price,
113
+ isHidden: isHidden,
114
+ url: url,
115
+ retailerId: retailerId,
116
+ currency: currency,
117
+ });
118
+ }, { name: name, image: image, description: description, price: price, isHidden: isHidden, url: url, retailerId: retailerId, currency: currency })];
119
+ });
120
+ });
121
+ };
80
122
  /**
81
123
  * Querys all products
82
124
  * @param id Buisness profile id ('00000@c.us')
@@ -24,7 +24,7 @@ export declare class HostLayer {
24
24
  protected afterPageLoad(): Promise<void>;
25
25
  protected afterPageScriptInjected(): Promise<void>;
26
26
  protected tryAutoClose(): void;
27
- protected startAutoClose(): void;
27
+ protected startAutoClose(time?: number | null): void;
28
28
  protected cancelAutoClose(): void;
29
29
  getQrCode(): Promise<ScrapQrcode>;
30
30
  waitForQrCodeScan(catchQR?: CatchQRCallback): Promise<void>;
@@ -217,7 +217,7 @@ var HostLayer = /** @class */ (function () {
217
217
  if (this.autoCloseInterval) {
218
218
  this.cancelAutoClose();
219
219
  }
220
- if (this.options.autoClose > 0 &&
220
+ if ((this.options.autoClose > 0 || this.options.deviceSyncTimeout > 0) &&
221
221
  !this.autoCloseInterval &&
222
222
  !this.page.isClosed()) {
223
223
  this.log('info', 'Closing the page');
@@ -229,10 +229,14 @@ var HostLayer = /** @class */ (function () {
229
229
  catch (error) { }
230
230
  }
231
231
  };
232
- HostLayer.prototype.startAutoClose = function () {
232
+ HostLayer.prototype.startAutoClose = function (time) {
233
233
  var _this = this;
234
- if (this.options.autoClose > 0 && !this.autoCloseInterval) {
235
- var seconds = Math.round(this.options.autoClose / 1000);
234
+ if (time === void 0) { time = null; }
235
+ if (time === null || time === undefined) {
236
+ time = this.options.autoClose;
237
+ }
238
+ if (time > 0 && !this.autoCloseInterval) {
239
+ var seconds = Math.round(time / 1000);
236
240
  this.log('info', "Auto close configured to ".concat(seconds, "s"));
237
241
  var remain_1 = seconds;
238
242
  this.autoCloseInterval = setInterval(function () {
@@ -422,7 +426,7 @@ var HostLayer = /** @class */ (function () {
422
426
  case 8:
423
427
  // Wait for interface update
424
428
  _a.sent();
425
- this.startAutoClose();
429
+ this.startAutoClose(this.options.deviceSyncTimeout);
426
430
  this.log('http', 'Checking phone is connected...');
427
431
  return [4 /*yield*/, this.waitForInChat()];
428
432
  case 9:
@@ -62,6 +62,11 @@ export interface CreateConfig {
62
62
  * @default 60000
63
63
  */
64
64
  autoClose?: number;
65
+ /**
66
+ * Automatically closes the wppconnect only when is syncing the device (default 180000 miliseconds, 3 minutes, if you want to turn it off, assign 0 or false)
67
+ * @default 180000 (3 minutes)
68
+ */
69
+ deviceSyncTimeout?: number;
65
70
  /**
66
71
  * Wait for in chat to return a instance of {@link Whatsapp}
67
72
  * @default false
@@ -15,11 +15,12 @@ exports.defaultOptions = {
15
15
  disableWelcome: false,
16
16
  updatesLog: true,
17
17
  autoClose: 60000,
18
+ deviceSyncTimeout: 180000,
18
19
  createPathFileToken: true,
19
20
  waitForLogin: true,
20
21
  logger: logger_1.defaultLogger,
21
22
  tokenStore: 'file',
22
- whatsappVersion: '2.2234.x',
23
+ whatsappVersion: '2.2307.x',
23
24
  deviceName: false,
24
25
  linkPreviewApiServers: null,
25
26
  disableGoogleAnalytics: true,
@@ -10,7 +10,7 @@ export declare function unregisterServiceWorker(page: Page): Promise<void>;
10
10
  * @param page Página a ser injetada
11
11
  * @param version Versão ou expressão semver
12
12
  */
13
- export declare function setWhatsappVersion(page: Page, version: string): Promise<void>;
13
+ export declare function setWhatsappVersion(page: Page, version: string, log?: (level: LogLevel, message: string, meta?: object) => any): Promise<void>;
14
14
  export declare function initWhatsapp(page: Page, token?: SessionToken, clear?: boolean, version?: string, log?: (level: LogLevel, message: string, meta?: object) => any): Promise<Page>;
15
15
  export declare function onLoadingScreen(page: Page, onLoadingScreenCallBack?: LoadingScreenCallback): Promise<void>;
16
16
  export declare function injectApi(page: Page, onLoadingScreenCallBack?: LoadingScreenCallback): Promise<void>;