@wppconnect/wa-js 2.7.0 → 2.7.3
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 +59 -221
- package/dist/config.d.ts +15 -1
- package/dist/contact/functions/getStatus.d.ts +1 -1
- package/dist/group/functions/addParticipants.d.ts +20 -1
- package/dist/gtag/Tracker.d.ts +51 -0
- package/dist/{gtag.d.ts → gtag/index.d.ts} +3 -2
- package/dist/whatsapp/collections/AggReactionsCollection.d.ts +3 -1
- package/dist/whatsapp/collections/BaseCollection.d.ts +4 -2
- package/dist/whatsapp/collections/BlocklistCollection.d.ts +3 -1
- package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +3 -1
- package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +3 -1
- package/dist/whatsapp/collections/CallCollection.d.ts +1 -0
- package/dist/whatsapp/collections/CartCollection.d.ts +3 -1
- package/dist/whatsapp/collections/CartItemCollection.d.ts +3 -1
- package/dist/whatsapp/collections/CatalogCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ChatCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ChatstateCollection.d.ts +3 -1
- package/dist/whatsapp/collections/Collection.d.ts +6 -2
- package/dist/whatsapp/collections/ContactCollection.d.ts +5 -4
- package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +3 -1
- package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +3 -1
- package/dist/whatsapp/collections/LabelCollection.d.ts +3 -1
- package/dist/whatsapp/collections/LabelItemCollection.d.ts +3 -1
- package/dist/whatsapp/collections/LiveLocationCollection.d.ts +3 -1
- package/dist/whatsapp/collections/MsgCollection.d.ts +3 -1
- package/dist/whatsapp/collections/MsgInfoCollection.d.ts +3 -1
- package/dist/whatsapp/collections/OrderCollection.d.ts +3 -1
- package/dist/whatsapp/collections/OrderItemCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -0
- package/dist/whatsapp/collections/PresenceCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ProductCollCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ProductCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ProductImageCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +3 -1
- package/dist/whatsapp/collections/QuickReplyCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ReactionsCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ReactionsSendersCollection.d.ts +3 -1
- package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +3 -1
- package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -0
- package/dist/whatsapp/collections/StarredMsgCollection.d.ts +3 -1
- package/dist/whatsapp/collections/StatusV3Collection.d.ts +3 -1
- package/dist/whatsapp/collections/StickerCollection.d.ts +3 -1
- package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -0
- package/dist/whatsapp/collections/StickerSearchCollection.d.ts +3 -1
- package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +3 -1
- package/dist/whatsapp/enums/ACK.d.ts +3 -0
- package/dist/whatsapp/enums/CALL_STATES.d.ts +1 -0
- package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +1 -0
- package/dist/whatsapp/enums/LogoutReason.d.ts +1 -0
- package/dist/whatsapp/enums/MSG_TYPE.d.ts +2 -0
- package/dist/whatsapp/enums/SendMsgResult.d.ts +3 -1
- package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +3 -1
- package/dist/whatsapp/functions/blockContact.d.ts +6 -2
- package/dist/whatsapp/functions/createMsgProtobuf.d.ts +3 -1
- package/dist/whatsapp/functions/createOrUpdateReactions.d.ts +3 -1
- 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 +3 -1
- package/dist/whatsapp/functions/findFirstWebLink.d.ts +1 -0
- package/dist/whatsapp/functions/genMinimalLinkPreview.d.ts +1 -0
- package/dist/whatsapp/functions/generateVideoThumbsAndDuration.d.ts +2 -1
- package/dist/whatsapp/functions/getFanOutList.d.ts +1 -0
- package/dist/whatsapp/functions/getGroupSenderKeyList.d.ts +1 -0
- package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -0
- package/dist/whatsapp/functions/groupParticipants.d.ts +12 -4
- package/dist/whatsapp/functions/handleAck.d.ts +12 -3
- package/dist/whatsapp/functions/index.d.ts +1 -0
- package/dist/whatsapp/functions/isAuthenticated.d.ts +2 -0
- package/dist/whatsapp/functions/markSeen.d.ts +3 -1
- package/dist/whatsapp/functions/mediaTypeFromProtobuf.d.ts +1 -0
- package/dist/whatsapp/functions/products.d.ts +12 -4
- package/dist/whatsapp/functions/randomId.d.ts +1 -0
- package/dist/whatsapp/functions/sendClear.d.ts +3 -1
- package/dist/whatsapp/functions/sendDelete.d.ts +3 -1
- package/dist/whatsapp/functions/sendExitGroup.d.ts +3 -1
- package/dist/whatsapp/functions/sendGroupParticipants.d.ts +42 -0
- package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +3 -1
- package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +3 -1
- package/dist/whatsapp/functions/sendReactionToMsg.d.ts +3 -1
- package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +3 -1
- package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +3 -1
- package/dist/whatsapp/functions/setArchive.d.ts +1 -0
- package/dist/whatsapp/functions/setGroup.d.ts +9 -3
- package/dist/whatsapp/functions/setPin.d.ts +1 -0
- package/dist/whatsapp/functions/status.d.ts +2 -0
- package/dist/whatsapp/functions/typeAttributeFromProtobuf.d.ts +3 -1
- package/dist/whatsapp/functions/uploadProductImage.d.ts +3 -1
- package/dist/whatsapp/functions/uploadThumbnail.d.ts +1 -0
- package/dist/whatsapp/misc/Base64.d.ts +3 -1
- package/dist/whatsapp/misc/Browser.d.ts +1 -0
- package/dist/whatsapp/misc/ChatPresence.d.ts +3 -1
- package/dist/whatsapp/misc/Cmd.d.ts +2 -0
- package/dist/whatsapp/misc/Conn.d.ts +3 -1
- package/dist/whatsapp/misc/Constants.d.ts +1 -0
- package/dist/whatsapp/misc/EventEmitter.d.ts +1 -0
- package/dist/whatsapp/misc/Features.d.ts +1 -0
- package/dist/whatsapp/misc/ImageUtils.d.ts +1 -0
- package/dist/whatsapp/misc/Locale.d.ts +1 -0
- package/dist/whatsapp/misc/MediaBlobCache.d.ts +6 -2
- package/dist/whatsapp/misc/MediaEntry.d.ts +2 -1
- package/dist/whatsapp/misc/MediaObject.d.ts +3 -1
- package/dist/whatsapp/misc/MediaObjectUtil.d.ts +3 -1
- package/dist/whatsapp/misc/MediaPrep.d.ts +3 -1
- package/dist/whatsapp/misc/MediaUtils.d.ts +3 -1
- package/dist/whatsapp/misc/MsgKey.d.ts +1 -0
- package/dist/whatsapp/misc/MsgLoadState.d.ts +6 -2
- package/dist/whatsapp/misc/OpaqueData.d.ts +6 -2
- package/dist/whatsapp/misc/Socket.d.ts +3 -1
- package/dist/whatsapp/misc/Stream.d.ts +3 -1
- package/dist/whatsapp/misc/UserPrefs.d.ts +1 -0
- package/dist/whatsapp/misc/VCard.d.ts +1 -0
- package/dist/whatsapp/misc/Wap.d.ts +2 -0
- package/dist/whatsapp/misc/Wid.d.ts +1 -0
- package/dist/whatsapp/misc/WidFactory.d.ts +1 -0
- package/dist/whatsapp/models/AggReactionsModel.d.ts +2 -0
- package/dist/whatsapp/models/AttachMediaModel.d.ts +6 -2
- package/dist/whatsapp/models/BlocklistModel.d.ts +6 -2
- package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +6 -2
- package/dist/whatsapp/models/BusinessProfileModel.d.ts +6 -2
- package/dist/whatsapp/models/CallModel.d.ts +2 -0
- package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -0
- package/dist/whatsapp/models/CartItemModel.d.ts +6 -2
- package/dist/whatsapp/models/CartModel.d.ts +6 -2
- package/dist/whatsapp/models/CatalogModel.d.ts +6 -2
- package/dist/whatsapp/models/ChatPreferenceModel.d.ts +6 -2
- package/dist/whatsapp/models/ChatstateModel.d.ts +6 -2
- package/dist/whatsapp/models/ConnModel.d.ts +6 -2
- package/dist/whatsapp/models/ContactModel.d.ts +6 -2
- package/dist/whatsapp/models/ConversionTupleModel.d.ts +6 -2
- package/dist/whatsapp/models/EmojiVariantModel.d.ts +6 -2
- package/dist/whatsapp/models/GroupMetadataModel.d.ts +6 -2
- package/dist/whatsapp/models/LabelItemModel.d.ts +6 -2
- package/dist/whatsapp/models/LabelModel.d.ts +6 -2
- package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +6 -2
- package/dist/whatsapp/models/MediaDataModel.d.ts +6 -2
- package/dist/whatsapp/models/Model.d.ts +3 -1
- package/dist/whatsapp/models/ModelChatBase.d.ts +3 -1
- package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +6 -2
- package/dist/whatsapp/models/MsgInfoModel.d.ts +6 -2
- package/dist/whatsapp/models/MuteModel.d.ts +6 -2
- package/dist/whatsapp/models/OrderItemModel.d.ts +6 -2
- package/dist/whatsapp/models/OrderModel.d.ts +6 -2
- package/dist/whatsapp/models/ParticipantModel.d.ts +6 -2
- package/dist/whatsapp/models/PresenceModel.d.ts +6 -2
- package/dist/whatsapp/models/ProductCollModel.d.ts +6 -2
- package/dist/whatsapp/models/ProductImageModel.d.ts +6 -2
- package/dist/whatsapp/models/ProductMessageListModel.d.ts +6 -2
- package/dist/whatsapp/models/ProductModel.d.ts +6 -2
- package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +6 -2
- package/dist/whatsapp/models/QuickReplyModel.d.ts +6 -2
- package/dist/whatsapp/models/ReactionsModel.d.ts +2 -0
- package/dist/whatsapp/models/ReactionsSendersModel.d.ts +2 -0
- package/dist/whatsapp/models/RecentStickerModel.d.ts +6 -2
- package/dist/whatsapp/models/ReplyButtonModel.d.ts +6 -2
- package/dist/whatsapp/models/StatusModel.d.ts +6 -2
- package/dist/whatsapp/models/StatusV3Model.d.ts +6 -2
- package/dist/whatsapp/models/StickerModel.d.ts +2 -0
- package/dist/whatsapp/models/StickerPackModel.d.ts +6 -2
- package/dist/whatsapp/models/StreamModel.d.ts +6 -2
- package/dist/whatsapp/models/TemplateButtonModel.d.ts +6 -2
- package/dist/whatsapp/models/UnreadMentionModel.d.ts +6 -2
- package/dist/whatsapp/models/WebCallModel.d.ts +2 -0
- package/dist/whatsapp/multidevice/adv.d.ts +1 -0
- package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -0
- package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -0
- package/dist/whatsapp/stores.d.ts +76 -25
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,492 +1,330 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
## 2.7.3 (2022-06-18)
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
## 2.7.2 (2022-06-17)
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
### Bug Fixes
|
|
7
6
|
|
|
7
|
+
- Improved Google Analytics tracker ([e51a542](https://github.com/wppconnect-team/wa-js/commit/e51a542d57f4314ec4c192b32da47d487adebb4e))
|
|
8
8
|
|
|
9
|
+
## 2.7.1 (2022-06-15)
|
|
9
10
|
|
|
10
|
-
# 2.
|
|
11
|
+
# 2.7.0 (2022-06-15)
|
|
11
12
|
|
|
13
|
+
### Features
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
- Added Google Analytics ([946cc80](https://github.com/wppconnect-team/wa-js/commit/946cc80b691adcc2818a0702b821898f73311df7))
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
# 2.6.0 (2022-06-08)
|
|
16
18
|
|
|
19
|
+
### Bug Fixes
|
|
17
20
|
|
|
21
|
+
- Fixed doc type for WPP.chat.sendFileMessage ([7701d88](https://github.com/wppconnect-team/wa-js/commit/7701d882df10e87e2ac477805f97a5984dd14870))
|
|
18
22
|
|
|
19
23
|
## 2.5.1 (2022-06-06)
|
|
20
24
|
|
|
21
|
-
|
|
22
25
|
### Bug Fixes
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
- Fixed revoke messages for list type ([7938ae7](https://github.com/wppconnect-team/wa-js/commit/7938ae7dab6bfa9e44f68f78dab01bbeeeeca0b6))
|
|
27
28
|
|
|
28
29
|
# 2.5.0 (2022-06-04)
|
|
29
30
|
|
|
30
|
-
|
|
31
31
|
### Features
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
- 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))
|
|
36
34
|
|
|
37
35
|
## 2.4.1 (2022-05-31)
|
|
38
36
|
|
|
39
|
-
|
|
40
37
|
### Bug Fixes
|
|
41
38
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
- 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))
|
|
45
40
|
|
|
46
41
|
# 2.4.0 (2022-05-28)
|
|
47
42
|
|
|
48
|
-
|
|
49
43
|
### Bug Fixes
|
|
50
44
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
- Exported related reactions classes ([466ebad](https://github.com/wppconnect-team/wa-js/commit/466ebad34c1545121c681df0196539792b09f7eb))
|
|
54
46
|
|
|
55
47
|
# 2.3.0 (2022-05-27)
|
|
56
48
|
|
|
57
|
-
|
|
58
49
|
### Bug Fixes
|
|
59
50
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
- Fixed promise time for WPP.chat.markIsComposing with duration ([e94718b](https://github.com/wppconnect-team/wa-js/commit/e94718b37af7f9bfbb181473fc5ac3d0f2782c13))
|
|
63
52
|
|
|
64
53
|
## 2.2.2 (2022-05-15)
|
|
65
54
|
|
|
66
|
-
|
|
67
55
|
### Bug Fixes
|
|
68
56
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
57
|
+
- 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))
|
|
72
58
|
|
|
73
59
|
## 2.2.1 (2022-05-10)
|
|
74
60
|
|
|
75
|
-
|
|
76
61
|
### Features
|
|
77
62
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
63
|
+
- Added new server for link-preview (https://wajsapi.titanwhats.com.br) ([f5b0027](https://github.com/wppconnect-team/wa-js/commit/f5b00271c0b7c83467e180c9c97be8ee6be51aa3))
|
|
81
64
|
|
|
82
65
|
# 2.2.0 (2022-05-09)
|
|
83
66
|
|
|
84
|
-
|
|
85
67
|
### Features
|
|
86
68
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
69
|
+
- Added support to link preview for Multi Devices ([2ef2249](https://github.com/wppconnect-team/wa-js/commit/2ef22496a8cbc112781d033626e91a6e616b13d1))
|
|
90
70
|
|
|
91
71
|
## 2.1.3 (2022-04-30)
|
|
92
72
|
|
|
93
|
-
|
|
94
|
-
|
|
95
73
|
## 2.1.2 (2022-04-29)
|
|
96
74
|
|
|
97
|
-
|
|
98
75
|
### Bug Fixes
|
|
99
76
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
77
|
+
- Added missing footer and title option for WPP.chat.sendListMessage ([19401b3](https://github.com/wppconnect-team/wa-js/commit/19401b3a9e13ef8f1869355a30feea0fb3092da6))
|
|
103
78
|
|
|
104
79
|
## 2.1.1 (2022-04-27)
|
|
105
80
|
|
|
106
|
-
|
|
107
81
|
### Bug Fixes
|
|
108
82
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
83
|
+
- Added missing footer option for WPP.chat.sendFileMessage ([623c57f](https://github.com/wppconnect-team/wa-js/commit/623c57fe0460437663519148c7201885c1354a84))
|
|
112
84
|
|
|
113
85
|
# 2.1.0 (2022-04-27)
|
|
114
86
|
|
|
115
|
-
|
|
116
87
|
### Features
|
|
117
88
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
89
|
+
- Added WPP.chat.sendLocationMessage function ([9503dcc](https://github.com/wppconnect-team/wa-js/commit/9503dccdb2b1cdb436db7c243b2852ee80267620))
|
|
121
90
|
|
|
122
91
|
## 2.0.2 (2022-04-26)
|
|
123
92
|
|
|
124
|
-
|
|
125
93
|
### Bug Fixes
|
|
126
94
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
95
|
+
- Fixed buttons without message title ([ed611cf](https://github.com/wppconnect-team/wa-js/commit/ed611cfe45d9abc79c7ac151e03fd1466a246b81))
|
|
130
96
|
|
|
131
97
|
## 2.0.1 (2022-04-25)
|
|
132
98
|
|
|
133
|
-
|
|
134
99
|
### Bug Fixes
|
|
135
100
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
101
|
+
- Fixed buttons title ([ae0a6e9](https://github.com/wppconnect-team/wa-js/commit/ae0a6e9b9a0a0077f506a478d70c9162dbc38c80))
|
|
139
102
|
|
|
140
103
|
# 2.0.0 (2022-04-25)
|
|
141
104
|
|
|
142
|
-
|
|
143
105
|
### Features
|
|
144
106
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
107
|
+
- Added WPP.conn.setKeepAlive function ([d211485](https://github.com/wppconnect-team/wa-js/commit/d211485cd6379073b1962e7fc8e99d6c3d30da8d))
|
|
148
108
|
|
|
149
109
|
## 1.2.5 (2022-03-25)
|
|
150
110
|
|
|
151
|
-
|
|
152
111
|
### Bug Fixes
|
|
153
112
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
113
|
+
- 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))
|
|
157
114
|
|
|
158
115
|
## 1.2.4 (2022-03-23)
|
|
159
116
|
|
|
160
|
-
|
|
161
117
|
### Features
|
|
162
118
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
119
|
+
- Working on template buttons support ([ecf0a81](https://github.com/wppconnect-team/wa-js/commit/ecf0a813da0a3c3c811e3d6cf6611ea98ed1f18c))
|
|
166
120
|
|
|
167
121
|
## 1.2.3 (2022-03-16)
|
|
168
122
|
|
|
169
|
-
|
|
170
|
-
|
|
171
123
|
## 1.2.2 (2022-03-12)
|
|
172
124
|
|
|
173
|
-
|
|
174
125
|
### Bug Fixes
|
|
175
126
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
127
|
+
- 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))
|
|
179
128
|
|
|
180
129
|
## 1.2.1 (2022-03-09)
|
|
181
130
|
|
|
182
|
-
|
|
183
131
|
### Bug Fixes
|
|
184
132
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
133
|
+
- Fixed compatibility with WhatsApp 2.2208.7 ([3bcac63](https://github.com/wppconnect-team/wa-js/commit/3bcac63b1b88fd36ae9c512cb1a944ee79292ffe))
|
|
188
134
|
|
|
189
135
|
# 1.2.0 (2022-03-03)
|
|
190
136
|
|
|
191
|
-
|
|
192
|
-
|
|
193
137
|
## 1.1.19 (2022-02-25)
|
|
194
138
|
|
|
195
|
-
|
|
196
|
-
|
|
197
139
|
## 1.1.18 (2022-02-17)
|
|
198
140
|
|
|
199
|
-
|
|
200
141
|
### Bug Fixes
|
|
201
142
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
143
|
+
- 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))
|
|
205
144
|
|
|
206
145
|
## 1.1.17 (2022-02-12)
|
|
207
146
|
|
|
208
|
-
|
|
209
|
-
|
|
210
147
|
## 1.1.16 (2022-02-06)
|
|
211
148
|
|
|
212
|
-
|
|
213
149
|
### Bug Fixes
|
|
214
150
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
151
|
+
- exported WPP.group.getGroupInfoFromInviteCode function ([0616778](https://github.com/wppconnect-team/wa-js/commit/0616778ea749f69d76b7eb79bcd1135fdaeaf70f))
|
|
218
152
|
|
|
219
153
|
## 1.1.15 (2022-02-06)
|
|
220
154
|
|
|
221
|
-
|
|
222
155
|
### Bug Fixes
|
|
223
156
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
157
|
+
- Fixed permission check for set group subject/description ([0ff6d58](https://github.com/wppconnect-team/wa-js/commit/0ff6d5892252150524f0595d711ff42338bdb29c))
|
|
227
158
|
|
|
228
159
|
## 1.1.14 (2022-01-28)
|
|
229
160
|
|
|
230
|
-
|
|
231
161
|
### Bug Fixes
|
|
232
162
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
163
|
+
- Fixed WPP.contact.queryExists to avoid stuck in MD ([53ef3b4](https://github.com/wppconnect-team/wa-js/commit/53ef3b4ce2ad779509e08d5eec89ee53e193ba7a))
|
|
236
164
|
|
|
237
165
|
## 1.1.13 (2022-01-28)
|
|
238
166
|
|
|
239
|
-
|
|
240
167
|
### Bug Fixes
|
|
241
168
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
169
|
+
- Fixed WPP.contact.queryExists to avoid stuck in MD ([a7761e5](https://github.com/wppconnect-team/wa-js/commit/a7761e5a8d7dea66c5f0522eb294cbe763e6ebaa))
|
|
245
170
|
|
|
246
171
|
## 1.1.12 (2022-01-26)
|
|
247
172
|
|
|
248
|
-
|
|
249
173
|
### Bug Fixes
|
|
250
174
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
175
|
+
- Improved file mimetype detection ([df98559](https://github.com/wppconnect-team/wa-js/commit/df98559ef9be4356b9bd73944259c4e171ef7cc4))
|
|
254
176
|
|
|
255
177
|
## 1.1.11 (2022-01-22)
|
|
256
178
|
|
|
257
|
-
|
|
258
179
|
### Features
|
|
259
180
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
181
|
+
- Added WPP.profile.getMyStatus function ([7c5975d](https://github.com/wppconnect-team/wa-js/commit/7c5975df3eaacc6a4b98f5e9116574dfbcaf8cfa))
|
|
263
182
|
|
|
264
183
|
## 1.1.10 (2022-01-22)
|
|
265
184
|
|
|
266
|
-
|
|
267
185
|
### Bug Fixes
|
|
268
186
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
187
|
+
- 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))
|
|
272
188
|
|
|
273
189
|
## 1.1.9 (2022-01-21)
|
|
274
190
|
|
|
275
|
-
|
|
276
191
|
### Bug Fixes
|
|
277
192
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
193
|
+
- Fixed live location event register and added a option ([08949a9](https://github.com/wppconnect-team/wa-js/commit/08949a9c3c46274f2ccca7d30e3aeb9c8a4e9851))
|
|
281
194
|
|
|
282
195
|
## 1.1.8 (2022-01-21)
|
|
283
196
|
|
|
284
|
-
|
|
285
197
|
### Bug Fixes
|
|
286
198
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
199
|
+
- 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))
|
|
290
200
|
|
|
291
201
|
## 1.1.7 (2022-01-20)
|
|
292
202
|
|
|
293
|
-
|
|
294
|
-
|
|
295
203
|
## 1.1.6 (2022-01-20)
|
|
296
204
|
|
|
297
|
-
|
|
298
205
|
### Bug Fixes
|
|
299
206
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
207
|
+
- Ignore markIsRead error while is sending message ([17d4ca5](https://github.com/wppconnect-team/wa-js/commit/17d4ca540897a0610016fac34e85d1292297461e))
|
|
303
208
|
|
|
304
209
|
## 1.1.5 (2022-01-15)
|
|
305
210
|
|
|
306
|
-
|
|
307
211
|
### Bug Fixes
|
|
308
212
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
213
|
+
- 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))
|
|
312
214
|
|
|
313
215
|
## 1.1.4 (2022-01-14)
|
|
314
216
|
|
|
315
|
-
|
|
316
217
|
### Bug Fixes
|
|
317
218
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
219
|
+
- 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))
|
|
321
220
|
|
|
322
221
|
## 1.1.3 (2022-01-08)
|
|
323
222
|
|
|
324
|
-
|
|
325
223
|
### Bug Fixes
|
|
326
224
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
225
|
+
- Fixed WPP.chat.downloadMedia for Videos in Chromium ([ba07dfc](https://github.com/wppconnect-team/wa-js/commit/ba07dfcf7d11dda6d379766932bdd43adc9cd319))
|
|
330
226
|
|
|
331
227
|
## 1.1.2 (2022-01-08)
|
|
332
228
|
|
|
333
|
-
|
|
334
|
-
|
|
335
229
|
## [1.1.1](https://github.com/wppconnect-team/wa-js/compare/v1.1.0...v1.1.1) (2022-01-08)
|
|
336
230
|
|
|
337
|
-
|
|
338
|
-
|
|
339
231
|
# 1.1.0 (2022-01-08)
|
|
340
232
|
|
|
341
|
-
|
|
342
233
|
### Bug Fixes
|
|
343
234
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
235
|
+
- 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))
|
|
347
236
|
|
|
348
237
|
## 1.0.16 (2021-12-08)
|
|
349
238
|
|
|
350
|
-
|
|
351
|
-
|
|
352
239
|
## 1.0.15 (2021-11-27)
|
|
353
240
|
|
|
354
|
-
|
|
355
|
-
|
|
356
241
|
## 1.0.14 (2021-11-18)
|
|
357
242
|
|
|
358
|
-
|
|
359
243
|
### Code Refactoring
|
|
360
244
|
|
|
361
|
-
|
|
362
|
-
|
|
245
|
+
- Renamed sendVCardContact to sendVCardContactMessage ([13fb994](https://github.com/wppconnect-team/wa-js/commit/13fb9946473fbf1d374ec6808277053ac836a717))
|
|
363
246
|
|
|
364
247
|
### BREAKING CHANGES
|
|
365
248
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
249
|
+
- Renamed sendVCardContact to sendVCardContactMessage
|
|
369
250
|
|
|
370
251
|
## 1.0.13 (2021-11-18)
|
|
371
252
|
|
|
372
|
-
|
|
373
253
|
### Features
|
|
374
254
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
255
|
+
- Added WPP.version and WPP.license ([31eaddd](https://github.com/wppconnect-team/wa-js/commit/31eaddd2673e0d4d1d2d4594f1ad7f7805a8014d))
|
|
378
256
|
|
|
379
257
|
## 1.0.12 (2021-11-15)
|
|
380
258
|
|
|
381
|
-
|
|
382
259
|
### Features
|
|
383
260
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
261
|
+
- Added WPP.chat.sendVCardContact function ([01c9fbe](https://github.com/wppconnect-team/wa-js/commit/01c9fbeeb806909542339bf26009c9b37cdda861))
|
|
387
262
|
|
|
388
263
|
## 1.0.11 (2021-11-11)
|
|
389
264
|
|
|
390
|
-
|
|
391
|
-
|
|
392
265
|
## 1.0.10 (2021-11-06)
|
|
393
266
|
|
|
394
|
-
|
|
395
267
|
### Bug Fixes
|
|
396
268
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
269
|
+
- 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))
|
|
400
270
|
|
|
401
271
|
## 1.0.9 (2021-11-02)
|
|
402
272
|
|
|
403
|
-
|
|
404
273
|
### Features
|
|
405
274
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
275
|
+
- Added quotedMsg option for send message ([1a6aacd](https://github.com/wppconnect-team/wa-js/commit/1a6aacd68a408049cfd2bb034626f0e0bd5f62bf))
|
|
409
276
|
|
|
410
277
|
## 1.0.8 (2021-10-30)
|
|
411
278
|
|
|
412
|
-
|
|
413
|
-
|
|
414
279
|
## 1.0.7 (2021-10-20)
|
|
415
280
|
|
|
416
|
-
|
|
417
|
-
|
|
418
281
|
## 1.0.6 (2021-10-12)
|
|
419
282
|
|
|
420
|
-
|
|
421
283
|
### Bug Fixes
|
|
422
284
|
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
285
|
+
- Fixed declaration files export ([2d53d4c](https://github.com/wppconnect-team/wa-js/commit/2d53d4cd106b448680efae2139b762a83b38ba2b))
|
|
426
286
|
|
|
427
287
|
## 1.0.5 (2021-10-12)
|
|
428
288
|
|
|
429
|
-
|
|
430
|
-
|
|
431
289
|
## 1.0.4 (2021-10-02)
|
|
432
290
|
|
|
433
|
-
|
|
434
291
|
### Features
|
|
435
292
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
293
|
+
- Added option to change the deviceName ([841bea8](https://github.com/wppconnect-team/wa-js/commit/841bea8d9d6661186bd17f32b6342e0b3918cf1a))
|
|
439
294
|
|
|
440
295
|
## 1.0.3 (2021-10-02)
|
|
441
296
|
|
|
442
|
-
|
|
443
297
|
### Features
|
|
444
298
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
299
|
+
- Added group management functions ([decae64](https://github.com/wppconnect-team/wa-js/commit/decae64cb60f5b61948956084af3b41dcebf23fe))
|
|
448
300
|
|
|
449
301
|
## 1.0.2 (2021-09-29)
|
|
450
302
|
|
|
451
|
-
|
|
452
303
|
### Features
|
|
453
304
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
305
|
+
- Added getMessages for Chat ([4e0f1d3](https://github.com/wppconnect-team/wa-js/commit/4e0f1d3d85a5b4e8b8e848ee019b29b22d370020))
|
|
457
306
|
|
|
458
307
|
## 1.0.1 (2021-09-19)
|
|
459
308
|
|
|
460
|
-
|
|
461
309
|
### Bug Fixes
|
|
462
310
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
311
|
+
- Added declaration files ([0bac4ed](https://github.com/wppconnect-team/wa-js/commit/0bac4ed0d077a7984dd8d3f63016fdc43d369b39))
|
|
466
312
|
|
|
467
313
|
# 1.0.0 (2021-09-19)
|
|
468
314
|
|
|
469
|
-
|
|
470
|
-
|
|
471
315
|
## 1.1.1 (2021-07-12)
|
|
472
316
|
|
|
473
|
-
|
|
474
317
|
### Bug Fixes
|
|
475
318
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
319
|
+
- Adicionado nova versão: 2.2126.11 ([7c5ab38](https://github.com/wppconnect-team/wa-version/commit/7c5ab3863524060fa12296390ffcdccfe036361c))
|
|
479
320
|
|
|
480
321
|
# [1.1.0](https://github.com/wppconnect-team/wa-version/compare/v1.0.0...v1.1.0) (2021-07-10)
|
|
481
322
|
|
|
482
|
-
|
|
483
323
|
### Bug Fixes
|
|
484
324
|
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
325
|
+
- Adicionado nova versão: 2.2126.10 ([d92a604](https://github.com/wppconnect-team/wa-version/commit/d92a604b305bd6db1c6e90e9314d7fb5b0e39bfd))
|
|
326
|
+
- Removido versão desatualizada: 2.2117.3 ([ef587cc](https://github.com/wppconnect-team/wa-version/commit/ef587ccd6147839c6966bda560c16b1777e533b6))
|
|
327
|
+
- Removido versão desatualizada: 2.2117.4 ([4fd5126](https://github.com/wppconnect-team/wa-version/commit/4fd512609eabdc50203663d565f343ffe52092ad))
|
|
490
328
|
|
|
491
329
|
# [1.0.0](https://github.com/wppconnect-team/wa-version/compare/v0.1.1...v1.0.0) (2021-07-10)
|
|
492
330
|
|
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;
|
|
@@ -14,4 +14,23 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Wid } from '../../whatsapp';
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Add one or more participants to a group
|
|
19
|
+
*
|
|
20
|
+
* The method return a object with the result of each participant as the key
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```javascript
|
|
24
|
+
* await WPP.group.addParticipants('[group@g.us]', [number@c.us]);
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @category Group
|
|
28
|
+
*/
|
|
29
|
+
export declare function addParticipants(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<{
|
|
30
|
+
[key: `${number}@c.us`]: {
|
|
31
|
+
code: number;
|
|
32
|
+
message: string;
|
|
33
|
+
invite_code: string | null;
|
|
34
|
+
invite_code_exp: number | null;
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
@@ -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
|
+
}
|