@wppconnect/wa-js 2.10.0 → 2.11.1
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 +2 -350
- package/dist/assert/assertProduct.d.ts +22 -0
- package/dist/assert/index.d.ts +1 -0
- package/dist/catalog/functions/addProductImage.d.ts +28 -0
- package/dist/catalog/functions/changeProductImage.d.ts +28 -0
- package/dist/catalog/functions/createCollection.d.ts +26 -0
- package/dist/catalog/functions/createProduct.d.ts +47 -0
- package/dist/catalog/functions/deleteCollection.d.ts +26 -0
- package/dist/catalog/functions/deleteProduct.d.ts +30 -0
- package/dist/catalog/functions/editCollection.d.ts +32 -0
- package/dist/catalog/functions/editProduct.d.ts +36 -0
- package/dist/catalog/functions/getCollections.d.ts +31 -0
- package/dist/catalog/functions/getProductById.d.ts +28 -0
- package/dist/catalog/functions/getProducts.d.ts +27 -0
- package/dist/catalog/functions/index.d.ts +14 -0
- package/dist/catalog/functions/removeProductImage.d.ts +29 -0
- package/dist/catalog/functions/setProductVisibility.d.ts +30 -0
- package/dist/catalog/functions/updateCartEnabled.d.ts +30 -0
- package/dist/chat/functions/canMarkPlayed.d.ts +27 -0
- package/dist/chat/functions/getMessages.d.ts +25 -0
- package/dist/chat/functions/getPlatformFromMessage.d.ts +34 -0
- package/dist/chat/functions/index.d.ts +3 -0
- package/dist/chat/functions/markPlayed.d.ts +27 -0
- package/dist/chat/functions/prepareMessageButtons.d.ts +1 -1
- package/dist/{config.d.ts → config/Config.d.ts} +2 -3
- package/dist/config/defaultConfig.d.ts +17 -0
- package/dist/config/eventTypes.d.ts +25 -0
- package/dist/config/index.d.ts +23 -0
- package/dist/contact/functions/getBusinessProfile.d.ts +27 -0
- package/dist/contact/functions/index.d.ts +1 -0
- package/dist/eventEmitter/eventTypes.d.ts +3 -1
- package/dist/eventEmitter/index.d.ts +41 -41
- package/dist/index.d.ts +1 -1
- package/dist/labels/functions/getLabelById.d.ts +17 -0
- package/dist/labels/functions/index.d.ts +1 -0
- package/dist/profile/functions/editBusinessProfile.d.ts +177 -0
- package/dist/profile/functions/index.d.ts +1 -0
- package/dist/status/functions/index.d.ts +1 -0
- package/dist/status/functions/sendReadStatus.d.ts +25 -0
- package/dist/whatsapp/collections/CatalogCollection.d.ts +3 -1
- package/dist/whatsapp/contants/DROP_ATTR.d.ts +19 -0
- package/dist/whatsapp/contants/index.d.ts +16 -0
- package/dist/whatsapp/enums/CALL_STATES.d.ts +1 -0
- package/dist/whatsapp/enums/SendMsgResult.d.ts +1 -0
- package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +1 -0
- package/dist/whatsapp/functions/blockContact.d.ts +2 -0
- package/dist/whatsapp/functions/calculateFilehashFromBlob.d.ts +19 -0
- package/dist/whatsapp/functions/collections.d.ts +37 -0
- package/dist/whatsapp/functions/createMsgProtobuf.d.ts +1 -0
- package/dist/whatsapp/functions/editBusinessProfile.d.ts +20 -0
- package/dist/whatsapp/functions/encodeMaybeMediaType.d.ts +19 -0
- package/dist/whatsapp/functions/encryptAndSendGroupMsg.d.ts +1 -0
- package/dist/whatsapp/functions/encryptAndSendMsg.d.ts +1 -0
- package/dist/whatsapp/functions/fetchLinkPreview.d.ts +1 -0
- package/dist/whatsapp/functions/findChat.d.ts +1 -0
- package/dist/whatsapp/functions/genMinimalLinkPreview.d.ts +1 -0
- package/dist/whatsapp/functions/groupParticipants.d.ts +4 -0
- package/dist/whatsapp/functions/handleAck.d.ts +6 -0
- package/dist/whatsapp/functions/index.d.ts +6 -0
- package/dist/whatsapp/functions/markSeen.d.ts +9 -3
- package/dist/whatsapp/functions/mediaTypeFromProtobuf.d.ts +1 -0
- package/dist/whatsapp/functions/msgFindQuery.d.ts +2 -1
- package/dist/whatsapp/functions/productVisibilitySet.d.ts +21 -0
- package/dist/whatsapp/functions/products.d.ts +9 -0
- package/dist/whatsapp/functions/randomHex.d.ts +1 -0
- package/dist/whatsapp/functions/sendCallSignalingMsg.d.ts +3 -1
- package/dist/whatsapp/functions/sendClear.d.ts +1 -0
- package/dist/whatsapp/functions/sendDelete.d.ts +1 -0
- package/dist/whatsapp/functions/sendExitGroup.d.ts +1 -0
- package/dist/whatsapp/functions/sendReactionToMsg.d.ts +1 -0
- package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -0
- package/dist/whatsapp/functions/setArchive.d.ts +1 -0
- package/dist/whatsapp/functions/setPin.d.ts +2 -0
- package/dist/whatsapp/functions/typeAttributeFromProtobuf.d.ts +1 -0
- package/dist/whatsapp/functions/updateCartEnabled.d.ts +19 -0
- package/dist/whatsapp/index.d.ts +1 -0
- package/dist/whatsapp/misc/ChatPresence.d.ts +1 -0
- package/dist/whatsapp/misc/Locale.d.ts +1 -0
- package/dist/whatsapp/misc/ProductCatalogSession.d.ts +27 -0
- package/dist/whatsapp/misc/index.d.ts +1 -0
- package/dist/whatsapp/models/CatalogModel.d.ts +2 -0
- package/dist/whatsapp/models/ProductCollModel.d.ts +4 -0
- package/dist/whatsapp/models/ProductModel.d.ts +2 -1
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,353 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# 2.9.0 (2022-07-31)
|
|
4
|
-
|
|
5
|
-
## 2.8.2 (2022-07-12)
|
|
6
|
-
|
|
7
|
-
### Bug Fixes
|
|
8
|
-
|
|
9
|
-
- Fixed eventEmitter export ([2532a20](https://github.com/wppconnect-team/wa-js/commit/2532a200933d13f61e37fa3557bbb790798330bc))
|
|
10
|
-
|
|
11
|
-
## 2.8.1 (2022-07-11)
|
|
12
|
-
|
|
13
|
-
### Bug Fixes
|
|
14
|
-
|
|
15
|
-
- Fixed WPP.chat.markIsUnread function (wppconnect-team/wppconnect[#1196](https://github.com/wppconnect-team/wa-js/issues/1196)) ([db7195e](https://github.com/wppconnect-team/wa-js/commit/db7195ee15a4e12c7a6b6a06bcb6bb711f59659b))
|
|
16
|
-
|
|
17
|
-
# 2.8.0 (2022-06-28)
|
|
18
|
-
|
|
19
|
-
### Features
|
|
20
|
-
|
|
21
|
-
- Added googleAnalyticsUserProperty options ([f425767](https://github.com/wppconnect-team/wa-js/commit/f425767f0b30d95b24a15fca8ab7c269d4e3240d))
|
|
22
|
-
|
|
23
|
-
## 2.7.3 (2022-06-18)
|
|
24
|
-
|
|
25
|
-
## 2.7.2 (2022-06-17)
|
|
26
|
-
|
|
27
|
-
### Bug Fixes
|
|
28
|
-
|
|
29
|
-
- Improved Google Analytics tracker ([e51a542](https://github.com/wppconnect-team/wa-js/commit/e51a542d57f4314ec4c192b32da47d487adebb4e))
|
|
30
|
-
|
|
31
|
-
## 2.7.1 (2022-06-15)
|
|
32
|
-
|
|
33
|
-
# 2.7.0 (2022-06-15)
|
|
34
|
-
|
|
35
|
-
### Features
|
|
36
|
-
|
|
37
|
-
- Added Google Analytics ([946cc80](https://github.com/wppconnect-team/wa-js/commit/946cc80b691adcc2818a0702b821898f73311df7))
|
|
38
|
-
|
|
39
|
-
# 2.6.0 (2022-06-08)
|
|
40
|
-
|
|
41
|
-
### Bug Fixes
|
|
42
|
-
|
|
43
|
-
- Fixed doc type for WPP.chat.sendFileMessage ([7701d88](https://github.com/wppconnect-team/wa-js/commit/7701d882df10e87e2ac477805f97a5984dd14870))
|
|
44
|
-
|
|
45
|
-
## 2.5.1 (2022-06-06)
|
|
46
|
-
|
|
47
|
-
### Bug Fixes
|
|
48
|
-
|
|
49
|
-
- Fixed revoke messages for list type ([7938ae7](https://github.com/wppconnect-team/wa-js/commit/7938ae7dab6bfa9e44f68f78dab01bbeeeeca0b6))
|
|
50
|
-
|
|
51
|
-
# 2.5.0 (2022-06-04)
|
|
52
|
-
|
|
53
|
-
### Features
|
|
54
|
-
|
|
55
|
-
- 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))
|
|
56
|
-
|
|
57
|
-
## 2.4.1 (2022-05-31)
|
|
58
|
-
|
|
59
|
-
### Bug Fixes
|
|
60
|
-
|
|
61
|
-
- 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))
|
|
62
|
-
|
|
63
|
-
# 2.4.0 (2022-05-28)
|
|
64
|
-
|
|
65
|
-
### Bug Fixes
|
|
66
|
-
|
|
67
|
-
- Exported related reactions classes ([466ebad](https://github.com/wppconnect-team/wa-js/commit/466ebad34c1545121c681df0196539792b09f7eb))
|
|
68
|
-
|
|
69
|
-
# 2.3.0 (2022-05-27)
|
|
70
|
-
|
|
71
|
-
### Bug Fixes
|
|
72
|
-
|
|
73
|
-
- Fixed promise time for WPP.chat.markIsComposing with duration ([e94718b](https://github.com/wppconnect-team/wa-js/commit/e94718b37af7f9bfbb181473fc5ac3d0f2782c13))
|
|
74
|
-
|
|
75
|
-
## 2.2.2 (2022-05-15)
|
|
76
|
-
|
|
77
|
-
### Bug Fixes
|
|
78
|
-
|
|
79
|
-
- 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))
|
|
80
|
-
|
|
81
|
-
## 2.2.1 (2022-05-10)
|
|
82
|
-
|
|
83
|
-
### Features
|
|
84
|
-
|
|
85
|
-
- Added new server for link-preview (https://wajsapi.titanwhats.com.br) ([f5b0027](https://github.com/wppconnect-team/wa-js/commit/f5b00271c0b7c83467e180c9c97be8ee6be51aa3))
|
|
86
|
-
|
|
87
|
-
# 2.2.0 (2022-05-09)
|
|
88
|
-
|
|
89
|
-
### Features
|
|
90
|
-
|
|
91
|
-
- Added support to link preview for Multi Devices ([2ef2249](https://github.com/wppconnect-team/wa-js/commit/2ef22496a8cbc112781d033626e91a6e616b13d1))
|
|
92
|
-
|
|
93
|
-
## 2.1.3 (2022-04-30)
|
|
94
|
-
|
|
95
|
-
## 2.1.2 (2022-04-29)
|
|
96
|
-
|
|
97
|
-
### Bug Fixes
|
|
98
|
-
|
|
99
|
-
- Added missing footer and title option for WPP.chat.sendListMessage ([19401b3](https://github.com/wppconnect-team/wa-js/commit/19401b3a9e13ef8f1869355a30feea0fb3092da6))
|
|
100
|
-
|
|
101
|
-
## 2.1.1 (2022-04-27)
|
|
102
|
-
|
|
103
|
-
### Bug Fixes
|
|
104
|
-
|
|
105
|
-
- Added missing footer option for WPP.chat.sendFileMessage ([623c57f](https://github.com/wppconnect-team/wa-js/commit/623c57fe0460437663519148c7201885c1354a84))
|
|
106
|
-
|
|
107
|
-
# 2.1.0 (2022-04-27)
|
|
108
|
-
|
|
109
|
-
### Features
|
|
110
|
-
|
|
111
|
-
- Added WPP.chat.sendLocationMessage function ([9503dcc](https://github.com/wppconnect-team/wa-js/commit/9503dccdb2b1cdb436db7c243b2852ee80267620))
|
|
112
|
-
|
|
113
|
-
## 2.0.2 (2022-04-26)
|
|
114
|
-
|
|
115
|
-
### Bug Fixes
|
|
116
|
-
|
|
117
|
-
- Fixed buttons without message title ([ed611cf](https://github.com/wppconnect-team/wa-js/commit/ed611cfe45d9abc79c7ac151e03fd1466a246b81))
|
|
118
|
-
|
|
119
|
-
## 2.0.1 (2022-04-25)
|
|
120
|
-
|
|
121
|
-
### Bug Fixes
|
|
122
|
-
|
|
123
|
-
- Fixed buttons title ([ae0a6e9](https://github.com/wppconnect-team/wa-js/commit/ae0a6e9b9a0a0077f506a478d70c9162dbc38c80))
|
|
124
|
-
|
|
125
|
-
# 2.0.0 (2022-04-25)
|
|
126
|
-
|
|
127
|
-
### Features
|
|
128
|
-
|
|
129
|
-
- Added WPP.conn.setKeepAlive function ([d211485](https://github.com/wppconnect-team/wa-js/commit/d211485cd6379073b1962e7fc8e99d6c3d30da8d))
|
|
130
|
-
|
|
131
|
-
## 1.2.5 (2022-03-25)
|
|
1
|
+
## 2.11.1 (2022-08-26)
|
|
132
2
|
|
|
133
3
|
### Bug Fixes
|
|
134
4
|
|
|
135
|
-
- Fixed
|
|
136
|
-
|
|
137
|
-
## 1.2.4 (2022-03-23)
|
|
138
|
-
|
|
139
|
-
### Features
|
|
140
|
-
|
|
141
|
-
- Working on template buttons support ([ecf0a81](https://github.com/wppconnect-team/wa-js/commit/ecf0a813da0a3c3c811e3d6cf6611ea98ed1f18c))
|
|
142
|
-
|
|
143
|
-
## 1.2.3 (2022-03-16)
|
|
144
|
-
|
|
145
|
-
## 1.2.2 (2022-03-12)
|
|
146
|
-
|
|
147
|
-
### Bug Fixes
|
|
148
|
-
|
|
149
|
-
- 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))
|
|
150
|
-
|
|
151
|
-
## 1.2.1 (2022-03-09)
|
|
152
|
-
|
|
153
|
-
### Bug Fixes
|
|
154
|
-
|
|
155
|
-
- Fixed compatibility with WhatsApp 2.2208.7 ([3bcac63](https://github.com/wppconnect-team/wa-js/commit/3bcac63b1b88fd36ae9c512cb1a944ee79292ffe))
|
|
156
|
-
|
|
157
|
-
# 1.2.0 (2022-03-03)
|
|
158
|
-
|
|
159
|
-
## 1.1.19 (2022-02-25)
|
|
160
|
-
|
|
161
|
-
## 1.1.18 (2022-02-17)
|
|
162
|
-
|
|
163
|
-
### Bug Fixes
|
|
164
|
-
|
|
165
|
-
- 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))
|
|
166
|
-
|
|
167
|
-
## 1.1.17 (2022-02-12)
|
|
168
|
-
|
|
169
|
-
## 1.1.16 (2022-02-06)
|
|
170
|
-
|
|
171
|
-
### Bug Fixes
|
|
172
|
-
|
|
173
|
-
- exported WPP.group.getGroupInfoFromInviteCode function ([0616778](https://github.com/wppconnect-team/wa-js/commit/0616778ea749f69d76b7eb79bcd1135fdaeaf70f))
|
|
174
|
-
|
|
175
|
-
## 1.1.15 (2022-02-06)
|
|
176
|
-
|
|
177
|
-
### Bug Fixes
|
|
178
|
-
|
|
179
|
-
- Fixed permission check for set group subject/description ([0ff6d58](https://github.com/wppconnect-team/wa-js/commit/0ff6d5892252150524f0595d711ff42338bdb29c))
|
|
180
|
-
|
|
181
|
-
## 1.1.14 (2022-01-28)
|
|
182
|
-
|
|
183
|
-
### Bug Fixes
|
|
184
|
-
|
|
185
|
-
- Fixed WPP.contact.queryExists to avoid stuck in MD ([53ef3b4](https://github.com/wppconnect-team/wa-js/commit/53ef3b4ce2ad779509e08d5eec89ee53e193ba7a))
|
|
186
|
-
|
|
187
|
-
## 1.1.13 (2022-01-28)
|
|
188
|
-
|
|
189
|
-
### Bug Fixes
|
|
190
|
-
|
|
191
|
-
- Fixed WPP.contact.queryExists to avoid stuck in MD ([a7761e5](https://github.com/wppconnect-team/wa-js/commit/a7761e5a8d7dea66c5f0522eb294cbe763e6ebaa))
|
|
192
|
-
|
|
193
|
-
## 1.1.12 (2022-01-26)
|
|
194
|
-
|
|
195
|
-
### Bug Fixes
|
|
196
|
-
|
|
197
|
-
- Improved file mimetype detection ([df98559](https://github.com/wppconnect-team/wa-js/commit/df98559ef9be4356b9bd73944259c4e171ef7cc4))
|
|
198
|
-
|
|
199
|
-
## 1.1.11 (2022-01-22)
|
|
200
|
-
|
|
201
|
-
### Features
|
|
202
|
-
|
|
203
|
-
- Added WPP.profile.getMyStatus function ([7c5975d](https://github.com/wppconnect-team/wa-js/commit/7c5975df3eaacc6a4b98f5e9116574dfbcaf8cfa))
|
|
204
|
-
|
|
205
|
-
## 1.1.10 (2022-01-22)
|
|
206
|
-
|
|
207
|
-
### Bug Fixes
|
|
208
|
-
|
|
209
|
-
- 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))
|
|
210
|
-
|
|
211
|
-
## 1.1.9 (2022-01-21)
|
|
212
|
-
|
|
213
|
-
### Bug Fixes
|
|
214
|
-
|
|
215
|
-
- Fixed live location event register and added a option ([08949a9](https://github.com/wppconnect-team/wa-js/commit/08949a9c3c46274f2ccca7d30e3aeb9c8a4e9851))
|
|
216
|
-
|
|
217
|
-
## 1.1.8 (2022-01-21)
|
|
218
|
-
|
|
219
|
-
### Bug Fixes
|
|
220
|
-
|
|
221
|
-
- 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))
|
|
222
|
-
|
|
223
|
-
## 1.1.7 (2022-01-20)
|
|
224
|
-
|
|
225
|
-
## 1.1.6 (2022-01-20)
|
|
226
|
-
|
|
227
|
-
### Bug Fixes
|
|
228
|
-
|
|
229
|
-
- Ignore markIsRead error while is sending message ([17d4ca5](https://github.com/wppconnect-team/wa-js/commit/17d4ca540897a0610016fac34e85d1292297461e))
|
|
230
|
-
|
|
231
|
-
## 1.1.5 (2022-01-15)
|
|
232
|
-
|
|
233
|
-
### Bug Fixes
|
|
234
|
-
|
|
235
|
-
- 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))
|
|
236
|
-
|
|
237
|
-
## 1.1.4 (2022-01-14)
|
|
238
|
-
|
|
239
|
-
### Bug Fixes
|
|
240
|
-
|
|
241
|
-
- 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))
|
|
242
|
-
|
|
243
|
-
## 1.1.3 (2022-01-08)
|
|
244
|
-
|
|
245
|
-
### Bug Fixes
|
|
246
|
-
|
|
247
|
-
- Fixed WPP.chat.downloadMedia for Videos in Chromium ([ba07dfc](https://github.com/wppconnect-team/wa-js/commit/ba07dfcf7d11dda6d379766932bdd43adc9cd319))
|
|
248
|
-
|
|
249
|
-
## 1.1.2 (2022-01-08)
|
|
250
|
-
|
|
251
|
-
## [1.1.1](https://github.com/wppconnect-team/wa-js/compare/v1.1.0...v1.1.1) (2022-01-08)
|
|
252
|
-
|
|
253
|
-
# 1.1.0 (2022-01-08)
|
|
254
|
-
|
|
255
|
-
### Bug Fixes
|
|
256
|
-
|
|
257
|
-
- 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))
|
|
258
|
-
|
|
259
|
-
## 1.0.16 (2021-12-08)
|
|
260
|
-
|
|
261
|
-
## 1.0.15 (2021-11-27)
|
|
262
|
-
|
|
263
|
-
## 1.0.14 (2021-11-18)
|
|
264
|
-
|
|
265
|
-
### Code Refactoring
|
|
266
|
-
|
|
267
|
-
- Renamed sendVCardContact to sendVCardContactMessage ([13fb994](https://github.com/wppconnect-team/wa-js/commit/13fb9946473fbf1d374ec6808277053ac836a717))
|
|
268
|
-
|
|
269
|
-
### BREAKING CHANGES
|
|
270
|
-
|
|
271
|
-
- Renamed sendVCardContact to sendVCardContactMessage
|
|
272
|
-
|
|
273
|
-
## 1.0.13 (2021-11-18)
|
|
274
|
-
|
|
275
|
-
### Features
|
|
276
|
-
|
|
277
|
-
- Added WPP.version and WPP.license ([31eaddd](https://github.com/wppconnect-team/wa-js/commit/31eaddd2673e0d4d1d2d4594f1ad7f7805a8014d))
|
|
278
|
-
|
|
279
|
-
## 1.0.12 (2021-11-15)
|
|
280
|
-
|
|
281
|
-
### Features
|
|
282
|
-
|
|
283
|
-
- Added WPP.chat.sendVCardContact function ([01c9fbe](https://github.com/wppconnect-team/wa-js/commit/01c9fbeeb806909542339bf26009c9b37cdda861))
|
|
284
|
-
|
|
285
|
-
## 1.0.11 (2021-11-11)
|
|
286
|
-
|
|
287
|
-
## 1.0.10 (2021-11-06)
|
|
288
|
-
|
|
289
|
-
### Bug Fixes
|
|
290
|
-
|
|
291
|
-
- 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))
|
|
292
|
-
|
|
293
|
-
## 1.0.9 (2021-11-02)
|
|
294
|
-
|
|
295
|
-
### Features
|
|
296
|
-
|
|
297
|
-
- Added quotedMsg option for send message ([1a6aacd](https://github.com/wppconnect-team/wa-js/commit/1a6aacd68a408049cfd2bb034626f0e0bd5f62bf))
|
|
298
|
-
|
|
299
|
-
## 1.0.8 (2021-10-30)
|
|
300
|
-
|
|
301
|
-
## 1.0.7 (2021-10-20)
|
|
302
|
-
|
|
303
|
-
## 1.0.6 (2021-10-12)
|
|
304
|
-
|
|
305
|
-
### Bug Fixes
|
|
306
|
-
|
|
307
|
-
- Fixed declaration files export ([2d53d4c](https://github.com/wppconnect-team/wa-js/commit/2d53d4cd106b448680efae2139b762a83b38ba2b))
|
|
308
|
-
|
|
309
|
-
## 1.0.5 (2021-10-12)
|
|
310
|
-
|
|
311
|
-
## 1.0.4 (2021-10-02)
|
|
312
|
-
|
|
313
|
-
### Features
|
|
314
|
-
|
|
315
|
-
- Added option to change the deviceName ([841bea8](https://github.com/wppconnect-team/wa-js/commit/841bea8d9d6661186bd17f32b6342e0b3918cf1a))
|
|
316
|
-
|
|
317
|
-
## 1.0.3 (2021-10-02)
|
|
318
|
-
|
|
319
|
-
### Features
|
|
320
|
-
|
|
321
|
-
- Added group management functions ([decae64](https://github.com/wppconnect-team/wa-js/commit/decae64cb60f5b61948956084af3b41dcebf23fe))
|
|
322
|
-
|
|
323
|
-
## 1.0.2 (2021-09-29)
|
|
324
|
-
|
|
325
|
-
### Features
|
|
326
|
-
|
|
327
|
-
- Added getMessages for Chat ([4e0f1d3](https://github.com/wppconnect-team/wa-js/commit/4e0f1d3d85a5b4e8b8e848ee019b29b22d370020))
|
|
328
|
-
|
|
329
|
-
## 1.0.1 (2021-09-19)
|
|
330
|
-
|
|
331
|
-
### Bug Fixes
|
|
332
|
-
|
|
333
|
-
- Added declaration files ([0bac4ed](https://github.com/wppconnect-team/wa-js/commit/0bac4ed0d077a7984dd8d3f63016fdc43d369b39))
|
|
334
|
-
|
|
335
|
-
# 1.0.0 (2021-09-19)
|
|
336
|
-
|
|
337
|
-
## 1.1.1 (2021-07-12)
|
|
338
|
-
|
|
339
|
-
### Bug Fixes
|
|
340
|
-
|
|
341
|
-
- Adicionado nova versão: 2.2126.11 ([7c5ab38](https://github.com/wppconnect-team/wa-version/commit/7c5ab3863524060fa12296390ffcdccfe036361c))
|
|
342
|
-
|
|
343
|
-
# [1.1.0](https://github.com/wppconnect-team/wa-version/compare/v1.0.0...v1.1.0) (2021-07-10)
|
|
344
|
-
|
|
345
|
-
### Bug Fixes
|
|
346
|
-
|
|
347
|
-
- Adicionado nova versão: 2.2126.10 ([d92a604](https://github.com/wppconnect-team/wa-version/commit/d92a604b305bd6db1c6e90e9314d7fb5b0e39bfd))
|
|
348
|
-
- Removido versão desatualizada: 2.2117.3 ([ef587cc](https://github.com/wppconnect-team/wa-version/commit/ef587ccd6147839c6966bda560c16b1777e533b6))
|
|
349
|
-
- Removido versão desatualizada: 2.2117.4 ([4fd5126](https://github.com/wppconnect-team/wa-version/commit/4fd512609eabdc50203663d565f343ffe52092ad))
|
|
350
|
-
|
|
351
|
-
# [1.0.0](https://github.com/wppconnect-team/wa-version/compare/v0.1.1...v1.0.0) (2021-07-10)
|
|
352
|
-
|
|
353
|
-
## 0.1.1 (2021-07-10)
|
|
5
|
+
- Fixed Google Analytics user properties ([73ab7cd](https://github.com/wppconnect-team/wa-js/commit/73ab7cd21d091748612310ce3987a1a1867e5c16))
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 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
|
+
import { WPPError } from '../util';
|
|
17
|
+
import { ProductModel } from '../whatsapp';
|
|
18
|
+
export declare class InvalidProduct extends WPPError {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
constructor(id: string);
|
|
21
|
+
}
|
|
22
|
+
export declare function assertGetProduct(productId: string): Promise<ProductModel>;
|
package/dist/assert/index.d.ts
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 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
|
+
* Add image on product
|
|
18
|
+
* This function include additional images on product
|
|
19
|
+
* for change main image use @changeProductImage
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```javascript
|
|
23
|
+
* await WPP.catalog.addProductImage('686859858689', 'data:image/jpeg;base64,.....');
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @category Catalog
|
|
27
|
+
*/
|
|
28
|
+
export declare function addProductImage(productId: string, content: string): Promise<any>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 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
|
+
* Add image on product
|
|
18
|
+
* This function change main image of product
|
|
19
|
+
* for change additional images use @addProductImage
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```javascript
|
|
23
|
+
* await WPP.catalog.changeProductImage('686859858689', 'data:image/jpeg;base64,.....');
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @category Catalog
|
|
27
|
+
*/
|
|
28
|
+
export declare function changeProductImage(productId: string, content: string): Promise<any>;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* Create new collection
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```javascript
|
|
21
|
+
* const myCatalog = await WPP.catalog.createCollection('Collection Name', ['565656589898']);
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @return Return collection created
|
|
25
|
+
*/
|
|
26
|
+
export declare function createCollection(collectionName: string, productsId: string[]): Promise<any>;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import { ProductModel } from '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Create new product
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* const myCatalog = await WPP.catalog.addProduct(
|
|
23
|
+
{
|
|
24
|
+
name: 'Product name',
|
|
25
|
+
image: 'base64 image string',
|
|
26
|
+
description: 'product description',
|
|
27
|
+
price: '89.90',
|
|
28
|
+
isHidden: false,
|
|
29
|
+
url: 'https://wppconnect.io',
|
|
30
|
+
retailerId: 'AKA001',
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @return Your created product
|
|
36
|
+
*/
|
|
37
|
+
export interface createProductParams {
|
|
38
|
+
name: string;
|
|
39
|
+
image: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
price?: number;
|
|
42
|
+
isHidden?: boolean;
|
|
43
|
+
url?: string;
|
|
44
|
+
retailerId?: string;
|
|
45
|
+
currency?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare function createProduct(params: createProductParams): Promise<ProductModel>;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* Delete a collection
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```javascript
|
|
21
|
+
* const myCatalog = await WPP.catalog.deleteCollection("377095767832354");
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @return Return sucess or error
|
|
25
|
+
*/
|
|
26
|
+
export declare function deleteCollection(collectionId: string): Promise<any>;
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* Get your current catalog
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```javascript
|
|
21
|
+
* // Delete product by id
|
|
22
|
+
* const myCatalog = await WPP.catalog.delProducts('6104203702939361');
|
|
23
|
+
*
|
|
24
|
+
* // Delete various products
|
|
25
|
+
* const myCatalog = await WPP.catalog.delProducts(['6104203702939361', '6104289702939361']);
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @return Return sucess or error of product deleted
|
|
29
|
+
*/
|
|
30
|
+
export declare function delProducts(productsIds: string[]): Promise<any>;
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Create new collection
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```javascript
|
|
21
|
+
* const myCatalog = await WPP.catalog.EditCollection('565656589898', { collectionName: 'New Name for collection', productsToAdd: ['5656523223'], productsToRemove: ['5656523232']});
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @return Return collection edited
|
|
25
|
+
*/
|
|
26
|
+
interface paramsEditCollection {
|
|
27
|
+
name?: string;
|
|
28
|
+
productsToAdd?: string[];
|
|
29
|
+
productsToRemove?: string[];
|
|
30
|
+
}
|
|
31
|
+
export declare function editCollection(collectionId: string, params: paramsEditCollection): Promise<any>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
import { ProductModel } from '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Get your current catalog
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* // Get your current catalog
|
|
23
|
+
* const myCatalog = WPP.catalog.editProduct('5498255476885590', {name: 'Plano 01', price: '89990', description: 'Insert description for your product', isHidden: true, url: 'http://www.wppconnect.io', retailerId: 'AKA001'});
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @return Return model of product edited
|
|
27
|
+
*/
|
|
28
|
+
export interface editProductParams {
|
|
29
|
+
name?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
price?: number;
|
|
32
|
+
isHidden?: boolean;
|
|
33
|
+
url?: string;
|
|
34
|
+
retailerId?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare function editProduct(productId: string, params: editProductParams): Promise<ProductModel>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 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
|
+
import { ProductCollModel } from '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Get collections of catalog
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* // Retrieve 20 collections of chat
|
|
23
|
+
* const myCatalog = await WPP.catalog.getCollections('552198554578@c.us', '20');
|
|
24
|
+
*
|
|
25
|
+
* // Retrieve 20 collections of chat and products arrays limit with 10 products
|
|
26
|
+
* const myCatalog = await WPP.catalog.getCollections('552198554578@c.us', '20', '10');
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @return Your collections of products
|
|
30
|
+
*/
|
|
31
|
+
export declare function getCollections(chatId: string, qnt?: number, productsCount?: number): Promise<ProductCollModel[]>;
|