@wppconnect/wa-js 2.7.1 → 2.7.2

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,496 +1,328 @@
1
- ## 2.7.1 (2022-06-15)
1
+ ## 2.7.2 (2022-06-17)
2
2
 
3
+ ### Bug Fixes
3
4
 
5
+ - Improved Google Analytics tracker ([e51a542](https://github.com/wppconnect-team/wa-js/commit/e51a542d57f4314ec4c192b32da47d487adebb4e))
4
6
 
5
- # 2.7.0 (2022-06-15)
7
+ ## 2.7.1 (2022-06-15)
6
8
 
9
+ # 2.7.0 (2022-06-15)
7
10
 
8
11
  ### Features
9
12
 
10
- * Added Google Analytics ([946cc80](https://github.com/wppconnect-team/wa-js/commit/946cc80b691adcc2818a0702b821898f73311df7))
11
-
12
-
13
+ - Added Google Analytics ([946cc80](https://github.com/wppconnect-team/wa-js/commit/946cc80b691adcc2818a0702b821898f73311df7))
13
14
 
14
15
  # 2.6.0 (2022-06-08)
15
16
 
16
-
17
17
  ### Bug Fixes
18
18
 
19
- * Fixed doc type for WPP.chat.sendFileMessage ([7701d88](https://github.com/wppconnect-team/wa-js/commit/7701d882df10e87e2ac477805f97a5984dd14870))
20
-
21
-
19
+ - Fixed doc type for WPP.chat.sendFileMessage ([7701d88](https://github.com/wppconnect-team/wa-js/commit/7701d882df10e87e2ac477805f97a5984dd14870))
22
20
 
23
21
  ## 2.5.1 (2022-06-06)
24
22
 
25
-
26
23
  ### Bug Fixes
27
24
 
28
- * Fixed revoke messages for list type ([7938ae7](https://github.com/wppconnect-team/wa-js/commit/7938ae7dab6bfa9e44f68f78dab01bbeeeeca0b6))
29
-
30
-
25
+ - Fixed revoke messages for list type ([7938ae7](https://github.com/wppconnect-team/wa-js/commit/7938ae7dab6bfa9e44f68f78dab01bbeeeeca0b6))
31
26
 
32
27
  # 2.5.0 (2022-06-04)
33
28
 
34
-
35
29
  ### Features
36
30
 
37
- * Added option to filter chat and contacts with label (close [#436](https://github.com/wppconnect-team/wa-js/issues/436)) ([bff74df](https://github.com/wppconnect-team/wa-js/commit/bff74df6bc55ce657b97957752e06e0aa5c09d14))
38
-
39
-
31
+ - Added option to filter chat and contacts with label (close [#436](https://github.com/wppconnect-team/wa-js/issues/436)) ([bff74df](https://github.com/wppconnect-team/wa-js/commit/bff74df6bc55ce657b97957752e06e0aa5c09d14))
40
32
 
41
33
  ## 2.4.1 (2022-05-31)
42
34
 
43
-
44
35
  ### Bug Fixes
45
36
 
46
- * Fixed detect mentionedList for invalid wids ([#427](https://github.com/wppconnect-team/wa-js/issues/427)) ([c701dc3](https://github.com/wppconnect-team/wa-js/commit/c701dc3b8b04cce1e51dd5dda12bf5e80e11de2e))
47
-
48
-
37
+ - Fixed detect mentionedList for invalid wids ([#427](https://github.com/wppconnect-team/wa-js/issues/427)) ([c701dc3](https://github.com/wppconnect-team/wa-js/commit/c701dc3b8b04cce1e51dd5dda12bf5e80e11de2e))
49
38
 
50
39
  # 2.4.0 (2022-05-28)
51
40
 
52
-
53
41
  ### Bug Fixes
54
42
 
55
- * Exported related reactions classes ([466ebad](https://github.com/wppconnect-team/wa-js/commit/466ebad34c1545121c681df0196539792b09f7eb))
56
-
57
-
43
+ - Exported related reactions classes ([466ebad](https://github.com/wppconnect-team/wa-js/commit/466ebad34c1545121c681df0196539792b09f7eb))
58
44
 
59
45
  # 2.3.0 (2022-05-27)
60
46
 
61
-
62
47
  ### Bug Fixes
63
48
 
64
- * Fixed promise time for WPP.chat.markIsComposing with duration ([e94718b](https://github.com/wppconnect-team/wa-js/commit/e94718b37af7f9bfbb181473fc5ac3d0f2782c13))
65
-
66
-
49
+ - Fixed promise time for WPP.chat.markIsComposing with duration ([e94718b](https://github.com/wppconnect-team/wa-js/commit/e94718b37af7f9bfbb181473fc5ac3d0f2782c13))
67
50
 
68
51
  ## 2.2.2 (2022-05-15)
69
52
 
70
-
71
53
  ### Bug Fixes
72
54
 
73
- * Fixed sendFileMessage for MP4 files on Chromium (fix [#384](https://github.com/wppconnect-team/wa-js/issues/384)) ([b7e6431](https://github.com/wppconnect-team/wa-js/commit/b7e6431a180f774f88f406a9600e3af7ac51e70f))
74
-
75
-
55
+ - Fixed sendFileMessage for MP4 files on Chromium (fix [#384](https://github.com/wppconnect-team/wa-js/issues/384)) ([b7e6431](https://github.com/wppconnect-team/wa-js/commit/b7e6431a180f774f88f406a9600e3af7ac51e70f))
76
56
 
77
57
  ## 2.2.1 (2022-05-10)
78
58
 
79
-
80
59
  ### Features
81
60
 
82
- * Added new server for link-preview (https://wajsapi.titanwhats.com.br) ([f5b0027](https://github.com/wppconnect-team/wa-js/commit/f5b00271c0b7c83467e180c9c97be8ee6be51aa3))
83
-
84
-
61
+ - Added new server for link-preview (https://wajsapi.titanwhats.com.br) ([f5b0027](https://github.com/wppconnect-team/wa-js/commit/f5b00271c0b7c83467e180c9c97be8ee6be51aa3))
85
62
 
86
63
  # 2.2.0 (2022-05-09)
87
64
 
88
-
89
65
  ### Features
90
66
 
91
- * Added support to link preview for Multi Devices ([2ef2249](https://github.com/wppconnect-team/wa-js/commit/2ef22496a8cbc112781d033626e91a6e616b13d1))
92
-
93
-
67
+ - Added support to link preview for Multi Devices ([2ef2249](https://github.com/wppconnect-team/wa-js/commit/2ef22496a8cbc112781d033626e91a6e616b13d1))
94
68
 
95
69
  ## 2.1.3 (2022-04-30)
96
70
 
97
-
98
-
99
71
  ## 2.1.2 (2022-04-29)
100
72
 
101
-
102
73
  ### Bug Fixes
103
74
 
104
- * Added missing footer and title option for WPP.chat.sendListMessage ([19401b3](https://github.com/wppconnect-team/wa-js/commit/19401b3a9e13ef8f1869355a30feea0fb3092da6))
105
-
106
-
75
+ - Added missing footer and title option for WPP.chat.sendListMessage ([19401b3](https://github.com/wppconnect-team/wa-js/commit/19401b3a9e13ef8f1869355a30feea0fb3092da6))
107
76
 
108
77
  ## 2.1.1 (2022-04-27)
109
78
 
110
-
111
79
  ### Bug Fixes
112
80
 
113
- * Added missing footer option for WPP.chat.sendFileMessage ([623c57f](https://github.com/wppconnect-team/wa-js/commit/623c57fe0460437663519148c7201885c1354a84))
114
-
115
-
81
+ - Added missing footer option for WPP.chat.sendFileMessage ([623c57f](https://github.com/wppconnect-team/wa-js/commit/623c57fe0460437663519148c7201885c1354a84))
116
82
 
117
83
  # 2.1.0 (2022-04-27)
118
84
 
119
-
120
85
  ### Features
121
86
 
122
- * Added WPP.chat.sendLocationMessage function ([9503dcc](https://github.com/wppconnect-team/wa-js/commit/9503dccdb2b1cdb436db7c243b2852ee80267620))
123
-
124
-
87
+ - Added WPP.chat.sendLocationMessage function ([9503dcc](https://github.com/wppconnect-team/wa-js/commit/9503dccdb2b1cdb436db7c243b2852ee80267620))
125
88
 
126
89
  ## 2.0.2 (2022-04-26)
127
90
 
128
-
129
91
  ### Bug Fixes
130
92
 
131
- * Fixed buttons without message title ([ed611cf](https://github.com/wppconnect-team/wa-js/commit/ed611cfe45d9abc79c7ac151e03fd1466a246b81))
132
-
133
-
93
+ - Fixed buttons without message title ([ed611cf](https://github.com/wppconnect-team/wa-js/commit/ed611cfe45d9abc79c7ac151e03fd1466a246b81))
134
94
 
135
95
  ## 2.0.1 (2022-04-25)
136
96
 
137
-
138
97
  ### Bug Fixes
139
98
 
140
- * Fixed buttons title ([ae0a6e9](https://github.com/wppconnect-team/wa-js/commit/ae0a6e9b9a0a0077f506a478d70c9162dbc38c80))
141
-
142
-
99
+ - Fixed buttons title ([ae0a6e9](https://github.com/wppconnect-team/wa-js/commit/ae0a6e9b9a0a0077f506a478d70c9162dbc38c80))
143
100
 
144
101
  # 2.0.0 (2022-04-25)
145
102
 
146
-
147
103
  ### Features
148
104
 
149
- * Added WPP.conn.setKeepAlive function ([d211485](https://github.com/wppconnect-team/wa-js/commit/d211485cd6379073b1962e7fc8e99d6c3d30da8d))
150
-
151
-
105
+ - Added WPP.conn.setKeepAlive function ([d211485](https://github.com/wppconnect-team/wa-js/commit/d211485cd6379073b1962e7fc8e99d6c3d30da8d))
152
106
 
153
107
  ## 1.2.5 (2022-03-25)
154
108
 
155
-
156
109
  ### Bug Fixes
157
110
 
158
- * Fixed WPP.group.getGroupInfoFromInviteCode function (fix wppconnect-team/wppconnect[#972](https://github.com/wppconnect-team/wa-js/issues/972)) ([a8bb5cf](https://github.com/wppconnect-team/wa-js/commit/a8bb5cf2846b655dd26d3d9506bc5545dbf64413))
159
-
160
-
111
+ - Fixed WPP.group.getGroupInfoFromInviteCode function (fix wppconnect-team/wppconnect[#972](https://github.com/wppconnect-team/wa-js/issues/972)) ([a8bb5cf](https://github.com/wppconnect-team/wa-js/commit/a8bb5cf2846b655dd26d3d9506bc5545dbf64413))
161
112
 
162
113
  ## 1.2.4 (2022-03-23)
163
114
 
164
-
165
115
  ### Features
166
116
 
167
- * Working on template buttons support ([ecf0a81](https://github.com/wppconnect-team/wa-js/commit/ecf0a813da0a3c3c811e3d6cf6611ea98ed1f18c))
168
-
169
-
117
+ - Working on template buttons support ([ecf0a81](https://github.com/wppconnect-team/wa-js/commit/ecf0a813da0a3c3c811e3d6cf6611ea98ed1f18c))
170
118
 
171
119
  ## 1.2.3 (2022-03-16)
172
120
 
173
-
174
-
175
121
  ## 1.2.2 (2022-03-12)
176
122
 
177
-
178
123
  ### Bug Fixes
179
124
 
180
- * Fixed WPP.chat.deleteMessage for old versions (fix wppconnect-team/wppconnect[#937](https://github.com/wppconnect-team/wa-js/issues/937)) ([a53ec55](https://github.com/wppconnect-team/wa-js/commit/a53ec55a04d3efa117dfd31ec4f1b2131ba85622))
181
-
182
-
125
+ - Fixed WPP.chat.deleteMessage for old versions (fix wppconnect-team/wppconnect[#937](https://github.com/wppconnect-team/wa-js/issues/937)) ([a53ec55](https://github.com/wppconnect-team/wa-js/commit/a53ec55a04d3efa117dfd31ec4f1b2131ba85622))
183
126
 
184
127
  ## 1.2.1 (2022-03-09)
185
128
 
186
-
187
129
  ### Bug Fixes
188
130
 
189
- * Fixed compatibility with WhatsApp 2.2208.7 ([3bcac63](https://github.com/wppconnect-team/wa-js/commit/3bcac63b1b88fd36ae9c512cb1a944ee79292ffe))
190
-
191
-
131
+ - Fixed compatibility with WhatsApp 2.2208.7 ([3bcac63](https://github.com/wppconnect-team/wa-js/commit/3bcac63b1b88fd36ae9c512cb1a944ee79292ffe))
192
132
 
193
133
  # 1.2.0 (2022-03-03)
194
134
 
195
-
196
-
197
135
  ## 1.1.19 (2022-02-25)
198
136
 
199
-
200
-
201
137
  ## 1.1.18 (2022-02-17)
202
138
 
203
-
204
139
  ### Bug Fixes
205
140
 
206
- * Fixed group functions when there are a lot of chats (fix wppconnect-team/wppconnect[#871](https://github.com/wppconnect-team/wa-js/issues/871)) ([1ff6a50](https://github.com/wppconnect-team/wa-js/commit/1ff6a5053cdd6ccc2ddc5df09dc3e73497987ad5))
207
-
208
-
141
+ - Fixed group functions when there are a lot of chats (fix wppconnect-team/wppconnect[#871](https://github.com/wppconnect-team/wa-js/issues/871)) ([1ff6a50](https://github.com/wppconnect-team/wa-js/commit/1ff6a5053cdd6ccc2ddc5df09dc3e73497987ad5))
209
142
 
210
143
  ## 1.1.17 (2022-02-12)
211
144
 
212
-
213
-
214
145
  ## 1.1.16 (2022-02-06)
215
146
 
216
-
217
147
  ### Bug Fixes
218
148
 
219
- * exported WPP.group.getGroupInfoFromInviteCode function ([0616778](https://github.com/wppconnect-team/wa-js/commit/0616778ea749f69d76b7eb79bcd1135fdaeaf70f))
220
-
221
-
149
+ - exported WPP.group.getGroupInfoFromInviteCode function ([0616778](https://github.com/wppconnect-team/wa-js/commit/0616778ea749f69d76b7eb79bcd1135fdaeaf70f))
222
150
 
223
151
  ## 1.1.15 (2022-02-06)
224
152
 
225
-
226
153
  ### Bug Fixes
227
154
 
228
- * Fixed permission check for set group subject/description ([0ff6d58](https://github.com/wppconnect-team/wa-js/commit/0ff6d5892252150524f0595d711ff42338bdb29c))
229
-
230
-
155
+ - Fixed permission check for set group subject/description ([0ff6d58](https://github.com/wppconnect-team/wa-js/commit/0ff6d5892252150524f0595d711ff42338bdb29c))
231
156
 
232
157
  ## 1.1.14 (2022-01-28)
233
158
 
234
-
235
159
  ### Bug Fixes
236
160
 
237
- * Fixed WPP.contact.queryExists to avoid stuck in MD ([53ef3b4](https://github.com/wppconnect-team/wa-js/commit/53ef3b4ce2ad779509e08d5eec89ee53e193ba7a))
238
-
239
-
161
+ - Fixed WPP.contact.queryExists to avoid stuck in MD ([53ef3b4](https://github.com/wppconnect-team/wa-js/commit/53ef3b4ce2ad779509e08d5eec89ee53e193ba7a))
240
162
 
241
163
  ## 1.1.13 (2022-01-28)
242
164
 
243
-
244
165
  ### Bug Fixes
245
166
 
246
- * Fixed WPP.contact.queryExists to avoid stuck in MD ([a7761e5](https://github.com/wppconnect-team/wa-js/commit/a7761e5a8d7dea66c5f0522eb294cbe763e6ebaa))
247
-
248
-
167
+ - Fixed WPP.contact.queryExists to avoid stuck in MD ([a7761e5](https://github.com/wppconnect-team/wa-js/commit/a7761e5a8d7dea66c5f0522eb294cbe763e6ebaa))
249
168
 
250
169
  ## 1.1.12 (2022-01-26)
251
170
 
252
-
253
171
  ### Bug Fixes
254
172
 
255
- * Improved file mimetype detection ([df98559](https://github.com/wppconnect-team/wa-js/commit/df98559ef9be4356b9bd73944259c4e171ef7cc4))
256
-
257
-
173
+ - Improved file mimetype detection ([df98559](https://github.com/wppconnect-team/wa-js/commit/df98559ef9be4356b9bd73944259c4e171ef7cc4))
258
174
 
259
175
  ## 1.1.11 (2022-01-22)
260
176
 
261
-
262
177
  ### Features
263
178
 
264
- * Added WPP.profile.getMyStatus function ([7c5975d](https://github.com/wppconnect-team/wa-js/commit/7c5975df3eaacc6a4b98f5e9116574dfbcaf8cfa))
265
-
266
-
179
+ - Added WPP.profile.getMyStatus function ([7c5975d](https://github.com/wppconnect-team/wa-js/commit/7c5975df3eaacc6a4b98f5e9116574dfbcaf8cfa))
267
180
 
268
181
  ## 1.1.10 (2022-01-22)
269
182
 
270
-
271
183
  ### Bug Fixes
272
184
 
273
- * Fixed getMessageById when the message is from status (wppconnect-team/wppconnect[#823](https://github.com/wppconnect-team/wa-js/issues/823)) ([f075cd2](https://github.com/wppconnect-team/wa-js/commit/f075cd24fd01e33f0322da9f9be321f039b9b6b3))
274
-
275
-
185
+ - Fixed getMessageById when the message is from status (wppconnect-team/wppconnect[#823](https://github.com/wppconnect-team/wa-js/issues/823)) ([f075cd2](https://github.com/wppconnect-team/wa-js/commit/f075cd24fd01e33f0322da9f9be321f039b9b6b3))
276
186
 
277
187
  ## 1.1.9 (2022-01-21)
278
188
 
279
-
280
189
  ### Bug Fixes
281
190
 
282
- * Fixed live location event register and added a option ([08949a9](https://github.com/wppconnect-team/wa-js/commit/08949a9c3c46274f2ccca7d30e3aeb9c8a4e9851))
283
-
284
-
191
+ - Fixed live location event register and added a option ([08949a9](https://github.com/wppconnect-team/wa-js/commit/08949a9c3c46274f2ccca7d30e3aeb9c8a4e9851))
285
192
 
286
193
  ## 1.1.8 (2022-01-21)
287
194
 
288
-
289
195
  ### Bug Fixes
290
196
 
291
- * Fixed WPP.contact.queryExists function (fix wppconnect-team/wppconnect[#803](https://github.com/wppconnect-team/wa-js/issues/803)) ([63a021d](https://github.com/wppconnect-team/wa-js/commit/63a021da96f75b9300f2d8f3409934ab0a0a611a))
292
-
293
-
197
+ - Fixed WPP.contact.queryExists function (fix wppconnect-team/wppconnect[#803](https://github.com/wppconnect-team/wa-js/issues/803)) ([63a021d](https://github.com/wppconnect-team/wa-js/commit/63a021da96f75b9300f2d8f3409934ab0a0a611a))
294
198
 
295
199
  ## 1.1.7 (2022-01-20)
296
200
 
297
-
298
-
299
201
  ## 1.1.6 (2022-01-20)
300
202
 
301
-
302
203
  ### Bug Fixes
303
204
 
304
- * Ignore markIsRead error while is sending message ([17d4ca5](https://github.com/wppconnect-team/wa-js/commit/17d4ca540897a0610016fac34e85d1292297461e))
305
-
306
-
205
+ - Ignore markIsRead error while is sending message ([17d4ca5](https://github.com/wppconnect-team/wa-js/commit/17d4ca540897a0610016fac34e85d1292297461e))
307
206
 
308
207
  ## 1.1.5 (2022-01-15)
309
208
 
310
-
311
209
  ### Bug Fixes
312
210
 
313
- * Allow WPP.contact.queryExists to throw exception (wppconnect-team/wppconnect[#793](https://github.com/wppconnect-team/wa-js/issues/793)) ([7331aad](https://github.com/wppconnect-team/wa-js/commit/7331aadb06b77550ba0c959d29ba6118bb5fa0f2))
314
-
315
-
211
+ - Allow WPP.contact.queryExists to throw exception (wppconnect-team/wppconnect[#793](https://github.com/wppconnect-team/wa-js/issues/793)) ([7331aad](https://github.com/wppconnect-team/wa-js/commit/7331aadb06b77550ba0c959d29ba6118bb5fa0f2))
316
212
 
317
213
  ## 1.1.4 (2022-01-14)
318
214
 
319
-
320
215
  ### Bug Fixes
321
216
 
322
- * Fixed WPP.chat.markIsRead and markIsUnread functions (fix wppconnect-team/wppconnect[#786](https://github.com/wppconnect-team/wa-js/issues/786)) ([a1158f6](https://github.com/wppconnect-team/wa-js/commit/a1158f6780bbe343121849ab235cd97823637505))
323
-
324
-
217
+ - Fixed WPP.chat.markIsRead and markIsUnread functions (fix wppconnect-team/wppconnect[#786](https://github.com/wppconnect-team/wa-js/issues/786)) ([a1158f6](https://github.com/wppconnect-team/wa-js/commit/a1158f6780bbe343121849ab235cd97823637505))
325
218
 
326
219
  ## 1.1.3 (2022-01-08)
327
220
 
328
-
329
221
  ### Bug Fixes
330
222
 
331
- * Fixed WPP.chat.downloadMedia for Videos in Chromium ([ba07dfc](https://github.com/wppconnect-team/wa-js/commit/ba07dfcf7d11dda6d379766932bdd43adc9cd319))
332
-
333
-
223
+ - Fixed WPP.chat.downloadMedia for Videos in Chromium ([ba07dfc](https://github.com/wppconnect-team/wa-js/commit/ba07dfcf7d11dda6d379766932bdd43adc9cd319))
334
224
 
335
225
  ## 1.1.2 (2022-01-08)
336
226
 
337
-
338
-
339
227
  ## [1.1.1](https://github.com/wppconnect-team/wa-js/compare/v1.1.0...v1.1.1) (2022-01-08)
340
228
 
341
-
342
-
343
229
  # 1.1.0 (2022-01-08)
344
230
 
345
-
346
231
  ### Bug Fixes
347
232
 
348
- * Fixed WPP.contact.queryExists (fix wppconnect-team/wppconnect[#725](https://github.com/wppconnect-team/wa-js/issues/725)) ([0c2b50c](https://github.com/wppconnect-team/wa-js/commit/0c2b50c4994d81d0e0d5debdfea7a3e96e333d50))
349
-
350
-
233
+ - Fixed WPP.contact.queryExists (fix wppconnect-team/wppconnect[#725](https://github.com/wppconnect-team/wa-js/issues/725)) ([0c2b50c](https://github.com/wppconnect-team/wa-js/commit/0c2b50c4994d81d0e0d5debdfea7a3e96e333d50))
351
234
 
352
235
  ## 1.0.16 (2021-12-08)
353
236
 
354
-
355
-
356
237
  ## 1.0.15 (2021-11-27)
357
238
 
358
-
359
-
360
239
  ## 1.0.14 (2021-11-18)
361
240
 
362
-
363
241
  ### Code Refactoring
364
242
 
365
- * Renamed sendVCardContact to sendVCardContactMessage ([13fb994](https://github.com/wppconnect-team/wa-js/commit/13fb9946473fbf1d374ec6808277053ac836a717))
366
-
243
+ - Renamed sendVCardContact to sendVCardContactMessage ([13fb994](https://github.com/wppconnect-team/wa-js/commit/13fb9946473fbf1d374ec6808277053ac836a717))
367
244
 
368
245
  ### BREAKING CHANGES
369
246
 
370
- * Renamed sendVCardContact to sendVCardContactMessage
371
-
372
-
247
+ - Renamed sendVCardContact to sendVCardContactMessage
373
248
 
374
249
  ## 1.0.13 (2021-11-18)
375
250
 
376
-
377
251
  ### Features
378
252
 
379
- * Added WPP.version and WPP.license ([31eaddd](https://github.com/wppconnect-team/wa-js/commit/31eaddd2673e0d4d1d2d4594f1ad7f7805a8014d))
380
-
381
-
253
+ - Added WPP.version and WPP.license ([31eaddd](https://github.com/wppconnect-team/wa-js/commit/31eaddd2673e0d4d1d2d4594f1ad7f7805a8014d))
382
254
 
383
255
  ## 1.0.12 (2021-11-15)
384
256
 
385
-
386
257
  ### Features
387
258
 
388
- * Added WPP.chat.sendVCardContact function ([01c9fbe](https://github.com/wppconnect-team/wa-js/commit/01c9fbeeb806909542339bf26009c9b37cdda861))
389
-
390
-
259
+ - Added WPP.chat.sendVCardContact function ([01c9fbe](https://github.com/wppconnect-team/wa-js/commit/01c9fbeeb806909542339bf26009c9b37cdda861))
391
260
 
392
261
  ## 1.0.11 (2021-11-11)
393
262
 
394
-
395
-
396
263
  ## 1.0.10 (2021-11-06)
397
264
 
398
-
399
265
  ### Bug Fixes
400
266
 
401
- * Fixed getMessages for non multidevices (fix wppconnect-team/wppconnect[#629](https://github.com/wppconnect-team/wa-js/issues/629)) ([c43b2cb](https://github.com/wppconnect-team/wa-js/commit/c43b2cb9f1e7cd0bebd8754f9f1458f56f778091))
402
-
403
-
267
+ - Fixed getMessages for non multidevices (fix wppconnect-team/wppconnect[#629](https://github.com/wppconnect-team/wa-js/issues/629)) ([c43b2cb](https://github.com/wppconnect-team/wa-js/commit/c43b2cb9f1e7cd0bebd8754f9f1458f56f778091))
404
268
 
405
269
  ## 1.0.9 (2021-11-02)
406
270
 
407
-
408
271
  ### Features
409
272
 
410
- * Added quotedMsg option for send message ([1a6aacd](https://github.com/wppconnect-team/wa-js/commit/1a6aacd68a408049cfd2bb034626f0e0bd5f62bf))
411
-
412
-
273
+ - Added quotedMsg option for send message ([1a6aacd](https://github.com/wppconnect-team/wa-js/commit/1a6aacd68a408049cfd2bb034626f0e0bd5f62bf))
413
274
 
414
275
  ## 1.0.8 (2021-10-30)
415
276
 
416
-
417
-
418
277
  ## 1.0.7 (2021-10-20)
419
278
 
420
-
421
-
422
279
  ## 1.0.6 (2021-10-12)
423
280
 
424
-
425
281
  ### Bug Fixes
426
282
 
427
- * Fixed declaration files export ([2d53d4c](https://github.com/wppconnect-team/wa-js/commit/2d53d4cd106b448680efae2139b762a83b38ba2b))
428
-
429
-
283
+ - Fixed declaration files export ([2d53d4c](https://github.com/wppconnect-team/wa-js/commit/2d53d4cd106b448680efae2139b762a83b38ba2b))
430
284
 
431
285
  ## 1.0.5 (2021-10-12)
432
286
 
433
-
434
-
435
287
  ## 1.0.4 (2021-10-02)
436
288
 
437
-
438
289
  ### Features
439
290
 
440
- * Added option to change the deviceName ([841bea8](https://github.com/wppconnect-team/wa-js/commit/841bea8d9d6661186bd17f32b6342e0b3918cf1a))
441
-
442
-
291
+ - Added option to change the deviceName ([841bea8](https://github.com/wppconnect-team/wa-js/commit/841bea8d9d6661186bd17f32b6342e0b3918cf1a))
443
292
 
444
293
  ## 1.0.3 (2021-10-02)
445
294
 
446
-
447
295
  ### Features
448
296
 
449
- * Added group management functions ([decae64](https://github.com/wppconnect-team/wa-js/commit/decae64cb60f5b61948956084af3b41dcebf23fe))
450
-
451
-
297
+ - Added group management functions ([decae64](https://github.com/wppconnect-team/wa-js/commit/decae64cb60f5b61948956084af3b41dcebf23fe))
452
298
 
453
299
  ## 1.0.2 (2021-09-29)
454
300
 
455
-
456
301
  ### Features
457
302
 
458
- * Added getMessages for Chat ([4e0f1d3](https://github.com/wppconnect-team/wa-js/commit/4e0f1d3d85a5b4e8b8e848ee019b29b22d370020))
459
-
460
-
303
+ - Added getMessages for Chat ([4e0f1d3](https://github.com/wppconnect-team/wa-js/commit/4e0f1d3d85a5b4e8b8e848ee019b29b22d370020))
461
304
 
462
305
  ## 1.0.1 (2021-09-19)
463
306
 
464
-
465
307
  ### Bug Fixes
466
308
 
467
- * Added declaration files ([0bac4ed](https://github.com/wppconnect-team/wa-js/commit/0bac4ed0d077a7984dd8d3f63016fdc43d369b39))
468
-
469
-
309
+ - Added declaration files ([0bac4ed](https://github.com/wppconnect-team/wa-js/commit/0bac4ed0d077a7984dd8d3f63016fdc43d369b39))
470
310
 
471
311
  # 1.0.0 (2021-09-19)
472
312
 
473
-
474
-
475
313
  ## 1.1.1 (2021-07-12)
476
314
 
477
-
478
315
  ### Bug Fixes
479
316
 
480
- * Adicionado nova versão: 2.2126.11 ([7c5ab38](https://github.com/wppconnect-team/wa-version/commit/7c5ab3863524060fa12296390ffcdccfe036361c))
481
-
482
-
317
+ - Adicionado nova versão: 2.2126.11 ([7c5ab38](https://github.com/wppconnect-team/wa-version/commit/7c5ab3863524060fa12296390ffcdccfe036361c))
483
318
 
484
319
  # [1.1.0](https://github.com/wppconnect-team/wa-version/compare/v1.0.0...v1.1.0) (2021-07-10)
485
320
 
486
-
487
321
  ### Bug Fixes
488
322
 
489
- * Adicionado nova versão: 2.2126.10 ([d92a604](https://github.com/wppconnect-team/wa-version/commit/d92a604b305bd6db1c6e90e9314d7fb5b0e39bfd))
490
- * Removido versão desatualizada: 2.2117.3 ([ef587cc](https://github.com/wppconnect-team/wa-version/commit/ef587ccd6147839c6966bda560c16b1777e533b6))
491
- * Removido versão desatualizada: 2.2117.4 ([4fd5126](https://github.com/wppconnect-team/wa-version/commit/4fd512609eabdc50203663d565f343ffe52092ad))
492
-
493
-
323
+ - Adicionado nova versão: 2.2126.10 ([d92a604](https://github.com/wppconnect-team/wa-version/commit/d92a604b305bd6db1c6e90e9314d7fb5b0e39bfd))
324
+ - Removido versão desatualizada: 2.2117.3 ([ef587cc](https://github.com/wppconnect-team/wa-version/commit/ef587ccd6147839c6966bda560c16b1777e533b6))
325
+ - Removido versão desatualizada: 2.2117.4 ([4fd5126](https://github.com/wppconnect-team/wa-version/commit/4fd512609eabdc50203663d565f343ffe52092ad))
494
326
 
495
327
  # [1.0.0](https://github.com/wppconnect-team/wa-version/compare/v0.1.1...v1.0.0) (2021-07-10)
496
328
 
package/dist/config.d.ts CHANGED
@@ -21,7 +21,9 @@
21
21
  * // Global variable before injection
22
22
  * WPPConfig = {
23
23
  * deviceName: 'WPPConnect',
24
- * liveLocationLimit: 10
24
+ * liveLocationLimit: 10,
25
+ * disableGoogleAnalytics: false,
26
+ * googleAnalyticsId: 'G-XXXXXXXXXX'
25
27
  * };
26
28
  * ```
27
29
  */
@@ -35,6 +37,18 @@ export interface Config {
35
37
  * Number of last chats to check live location after a page reload
36
38
  */
37
39
  liveLocationLimit: number;
40
+ /**
41
+ * Disable Google Analytics tracking
42
+ */
43
+ disableGoogleAnalytics: boolean;
44
+ /**
45
+ * Google Analytics Id
46
+ */
47
+ googleAnalyticsId: string | null;
48
+ /**
49
+ * Link Preview API servers
50
+ */
51
+ linkPreviewApiServers: string[] | null;
38
52
  }
39
53
  export declare const defaultConfig: Config;
40
54
  export declare const config: Config;
@@ -0,0 +1,51 @@
1
+ /*!
2
+ * Copyright 2022 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * [Tracker description]
18
+ *
19
+ * @see https://www.thyngster.com/ga4-measurement-protocol-cheatsheet/
20
+ */
21
+ export declare class Tracker {
22
+ readonly trackingId: string;
23
+ static collectURL: string;
24
+ static pageLoadHash: number;
25
+ static get clientState(): {
26
+ firstVisit: boolean;
27
+ cid: any;
28
+ };
29
+ private events;
30
+ private userProperties;
31
+ private lastTime;
32
+ private hitsCount;
33
+ constructor(trackingId: string);
34
+ private get sid();
35
+ private get sct();
36
+ private getHeader;
37
+ /**
38
+ * Get the current user properties
39
+ */
40
+ private getUserProperties;
41
+ /**
42
+ * Process all queued events
43
+ */
44
+ private processEvents;
45
+ /**
46
+ * Send a user engagement each 5 minutes
47
+ */
48
+ private processUserEngagement;
49
+ trackEvent(eventName: string, params?: Record<string, string | number | boolean>): void;
50
+ setUserProperty(key: string, value: any): void;
51
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2021 WPPConnect Team
2
+ * Copyright 2022 WPPConnect Team
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -13,4 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version: string;
16
+ export * from './Tracker';
17
+ export declare const waVersion: string;