@wppconnect/wa-js 1.0.13 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +72 -2
  3. package/dist/{src/assert → assert}/assertChat.d.ts +0 -0
  4. package/dist/assert/assertColor.d.ts +35 -0
  5. package/dist/assert/assertIsBusiness.d.ts +20 -0
  6. package/dist/{src/assert → assert}/assertWid.d.ts +0 -0
  7. package/dist/assert/index.d.ts +19 -0
  8. package/dist/auth/eventEmitter.d.ts +52 -0
  9. package/dist/auth/events/index.d.ts +18 -0
  10. package/dist/{src/deviceName.d.ts → auth/events/registerChangeEvent.d.ts} +0 -0
  11. package/dist/{src/patch.d.ts → auth/events/registerIdleEvent.d.ts} +0 -0
  12. package/dist/auth/events/registerLogoutEvent.d.ts +16 -0
  13. package/dist/auth/functions/getAuthCode.d.ts +22 -0
  14. package/dist/{src/contact/Contact.d.ts → auth/functions/index.d.ts} +7 -11
  15. package/dist/{src/whatsapp → auth}/functions/isAuthenticated.d.ts +0 -1
  16. package/dist/auth/functions/isIdle.d.ts +16 -0
  17. package/dist/auth/functions/isMultiDevice.d.ts +16 -0
  18. package/dist/auth/functions/logout.d.ts +16 -0
  19. package/dist/auth/functions/poke.d.ts +16 -0
  20. package/dist/auth/functions/setMultiDevice.d.ts +23 -0
  21. package/dist/{src/contact → auth}/index.d.ts +3 -4
  22. package/dist/{src/auth → auth}/types.d.ts +0 -5
  23. package/dist/blocklist/eventEmitter.d.ts +49 -0
  24. package/dist/{src/assert → blocklist/events}/index.d.ts +1 -2
  25. package/dist/blocklist/events/registerSyncedEvent.d.ts +16 -0
  26. package/dist/{src/contact/types.d.ts → blocklist/functions/all.d.ts} +2 -3
  27. package/dist/blocklist/functions/blockContact.d.ts +18 -0
  28. package/dist/blocklist/functions/index.d.ts +19 -0
  29. package/dist/blocklist/functions/isBlocked.d.ts +17 -0
  30. package/dist/blocklist/functions/unblockContact.d.ts +18 -0
  31. package/dist/blocklist/index.d.ts +18 -0
  32. package/dist/{src/blocklist → blocklist}/types.d.ts +0 -3
  33. package/dist/chat/defaultSendMessageOptions.d.ts +19 -0
  34. package/dist/chat/eventEmitter.d.ts +107 -0
  35. package/dist/chat/events/index.d.ts +18 -0
  36. package/dist/chat/events/registerAckMessageEvent.d.ts +16 -0
  37. package/dist/chat/events/registerLiveLocationUpdateEvent.d.ts +16 -0
  38. package/dist/chat/events/registerRevokeMessageEvent.d.ts +16 -0
  39. package/dist/chat/functions/clear.d.ts +26 -0
  40. package/dist/chat/functions/delete.d.ts +26 -0
  41. package/dist/chat/functions/deleteMessage.d.ts +35 -0
  42. package/dist/chat/functions/downloadMedia.d.ts +21 -0
  43. package/dist/chat/functions/find.d.ts +24 -0
  44. package/dist/chat/functions/generateMessageID.d.ts +22 -0
  45. package/dist/chat/functions/get.d.ts +22 -0
  46. package/dist/chat/functions/getMessageById.d.ts +35 -0
  47. package/dist/chat/functions/getMessages.d.ts +48 -0
  48. package/dist/chat/functions/index.d.ts +37 -0
  49. package/dist/chat/functions/markIsComposing.d.ts +31 -0
  50. package/dist/chat/functions/markIsPaused.d.ts +27 -0
  51. package/dist/chat/functions/markIsRead.d.ts +30 -0
  52. package/dist/chat/functions/markIsRecording.d.ts +31 -0
  53. package/dist/chat/functions/markIsUnread.d.ts +29 -0
  54. package/dist/chat/functions/prepareLinkPreview.d.ts +53 -0
  55. package/dist/chat/functions/prepareMessageButtons.d.ts +40 -0
  56. package/dist/chat/functions/prepareRawMessage.d.ts +23 -0
  57. package/dist/chat/functions/sendFileMessage.d.ts +116 -0
  58. package/dist/{src/group/types.d.ts → chat/functions/sendListMessage.d.ts} +26 -25
  59. package/dist/chat/functions/sendRawMessage.d.ts +22 -0
  60. package/dist/chat/functions/sendTextMessage.d.ts +23 -0
  61. package/dist/chat/functions/sendVCardContactMessage.d.ts +27 -0
  62. package/dist/chat/index.d.ts +20 -0
  63. package/dist/chat/types.d.ts +104 -0
  64. package/dist/{src/config.d.ts → config.d.ts} +0 -0
  65. package/dist/contact/eventEmitter.d.ts +48 -0
  66. package/dist/contact/functions/index.d.ts +16 -0
  67. package/dist/contact/functions/queryExists.d.ts +20 -0
  68. package/dist/{src/chat → contact}/index.d.ts +2 -5
  69. package/dist/deviceName.d.ts +16 -0
  70. package/dist/{src/enums.d.ts → enums.d.ts} +0 -0
  71. package/dist/group/eventEmitter.d.ts +48 -0
  72. package/dist/group/functions/addParticipants.d.ts +17 -0
  73. package/dist/group/functions/canAdd.d.ts +17 -0
  74. package/dist/group/functions/canDemote.d.ts +17 -0
  75. package/dist/group/functions/canPromote.d.ts +17 -0
  76. package/dist/group/functions/canRemove.d.ts +17 -0
  77. package/dist/group/functions/create.d.ts +25 -0
  78. package/dist/group/functions/demoteParticipants.d.ts +17 -0
  79. package/dist/group/functions/ensureGroup.d.ts +17 -0
  80. package/dist/group/functions/ensureGroupAndParticipants.d.ts +20 -0
  81. package/dist/group/functions/getParticipants.d.ts +25 -0
  82. package/dist/group/functions/iAmAdmin.d.ts +17 -0
  83. package/dist/group/functions/iAmMember.d.ts +17 -0
  84. package/dist/group/functions/iAmRestrictedMember.d.ts +17 -0
  85. package/dist/group/functions/iAmSuperAdmin.d.ts +17 -0
  86. package/dist/group/functions/index.d.ts +31 -0
  87. package/dist/group/functions/promoteParticipants.d.ts +17 -0
  88. package/dist/group/functions/removeParticipants.d.ts +17 -0
  89. package/dist/{src/auth → group}/index.d.ts +2 -5
  90. package/dist/{src/index.d.ts → index.d.ts} +9 -8
  91. package/dist/{src/internal.d.ts → internal.d.ts} +0 -0
  92. package/dist/labels/eventEmitter.d.ts +48 -0
  93. package/dist/labels/functions/addNewLabel.d.ts +35 -0
  94. package/dist/{src/auth/Auth.d.ts → labels/functions/addOrRemoveLabels.d.ts} +15 -16
  95. package/dist/labels/functions/colorIsInLabelPalette.d.ts +26 -0
  96. package/dist/labels/functions/deleteAllLabels.d.ts +17 -0
  97. package/dist/labels/functions/deleteLabel.d.ts +21 -0
  98. package/dist/labels/functions/getAllLabels.d.ts +17 -0
  99. package/dist/labels/functions/getLabelColorPalette.d.ts +19 -0
  100. package/dist/labels/functions/getNewLabelColor.d.ts +19 -0
  101. package/dist/labels/functions/index.d.ts +23 -0
  102. package/dist/{src/blocklist → labels}/index.d.ts +2 -4
  103. package/dist/labels/types.d.ts +21 -0
  104. package/dist/patch.d.ts +16 -0
  105. package/dist/status/defaultSendStatusOptions.d.ts +19 -0
  106. package/dist/status/eventEmitter.d.ts +49 -0
  107. package/dist/status/events/index.d.ts +16 -0
  108. package/dist/status/events/registerSyncedEvent.d.ts +16 -0
  109. package/dist/status/functions/get.d.ts +17 -0
  110. package/dist/status/functions/getMyStatus.d.ts +17 -0
  111. package/dist/status/functions/index.d.ts +19 -0
  112. package/dist/status/functions/sendRawStatus.d.ts +20 -0
  113. package/dist/{src/status/types.d.ts → status/functions/sendTextStatus.d.ts} +11 -8
  114. package/dist/status/index.d.ts +19 -0
  115. package/dist/{src/types.d.ts → types.d.ts} +0 -0
  116. package/dist/util/convertToFile.d.ts +16 -0
  117. package/dist/{src/util → util}/createWid.d.ts +0 -0
  118. package/dist/{src/util → util}/errors.d.ts +0 -0
  119. package/dist/{src/util → util}/index.d.ts +0 -0
  120. package/dist/{src/util → util}/types.d.ts +0 -0
  121. package/dist/{src/webpack.d.ts → webpack.d.ts} +3 -1
  122. package/dist/{src/whatsapp/collections/CollectionCache.d.ts → whatsapp/collections/BaseCollection.d.ts} +4 -4
  123. package/dist/{src/whatsapp → whatsapp}/collections/BlocklistCollection.d.ts +1 -1
  124. package/dist/{src/whatsapp → whatsapp}/collections/BusinessCategoriesResultCollection.d.ts +1 -1
  125. package/dist/{src/whatsapp → whatsapp}/collections/BusinessProfileCollection.d.ts +1 -1
  126. package/dist/{src/whatsapp → whatsapp}/collections/ButtonCollection.d.ts +3 -3
  127. package/dist/{src/whatsapp → whatsapp}/collections/CallCollection.d.ts +1 -1
  128. package/dist/{src/whatsapp → whatsapp}/collections/CartCollection.d.ts +1 -1
  129. package/dist/{src/whatsapp → whatsapp}/collections/CartItemCollection.d.ts +1 -1
  130. package/dist/{src/whatsapp → whatsapp}/collections/CatalogCollection.d.ts +1 -1
  131. package/dist/{src/whatsapp → whatsapp}/collections/ChatCollection.d.ts +3 -3
  132. package/dist/{src/whatsapp → whatsapp}/collections/ChatstateCollection.d.ts +1 -1
  133. package/dist/{src/whatsapp → whatsapp}/collections/Collection.d.ts +4 -3
  134. package/dist/{src/whatsapp → whatsapp}/collections/ContactCollection.d.ts +1 -1
  135. package/dist/{src/whatsapp → whatsapp}/collections/EmojiVariantCollection.d.ts +1 -1
  136. package/dist/{src/whatsapp → whatsapp}/collections/GroupMetadataCollection.d.ts +3 -5
  137. package/dist/{src/whatsapp → whatsapp}/collections/LabelCollection.d.ts +4 -3
  138. package/dist/{src/whatsapp → whatsapp}/collections/LabelItemCollection.d.ts +1 -1
  139. package/dist/{src/whatsapp → whatsapp}/collections/LiveLocationCollection.d.ts +3 -4
  140. package/dist/{src/whatsapp → whatsapp}/collections/MsgCollection.d.ts +3 -3
  141. package/dist/{src/whatsapp → whatsapp}/collections/MsgInfoCollection.d.ts +1 -1
  142. package/dist/{src/whatsapp → whatsapp}/collections/MuteCollection.d.ts +1 -1
  143. package/dist/{src/whatsapp → whatsapp}/collections/OrderCollection.d.ts +1 -1
  144. package/dist/{src/whatsapp → whatsapp}/collections/OrderItemCollection.d.ts +1 -1
  145. package/dist/{src/whatsapp → whatsapp}/collections/ParticipantCollection.d.ts +1 -1
  146. package/dist/{src/whatsapp → whatsapp}/collections/PresenceCollection.d.ts +1 -1
  147. package/dist/{src/whatsapp → whatsapp}/collections/ProductCollCollection.d.ts +1 -1
  148. package/dist/{src/whatsapp → whatsapp}/collections/ProductCollection.d.ts +1 -1
  149. package/dist/{src/whatsapp → whatsapp}/collections/ProductImageCollection.d.ts +1 -1
  150. package/dist/{src/whatsapp → whatsapp}/collections/ProductMessageListCollection.d.ts +4 -4
  151. package/dist/{src/whatsapp → whatsapp}/collections/ProfilePicThumbCollection.d.ts +1 -1
  152. package/dist/{src/whatsapp → whatsapp}/collections/QuickReplyCollection.d.ts +1 -1
  153. package/dist/{src/whatsapp → whatsapp}/collections/RecentEmojiCollection.d.ts +1 -1
  154. package/dist/{src/whatsapp → whatsapp}/collections/RecentStickerCollection.d.ts +1 -1
  155. package/dist/{src/whatsapp → whatsapp}/collections/StarredMsgCollection.d.ts +1 -1
  156. package/dist/{src/whatsapp → whatsapp}/collections/StarredStickerCollection.d.ts +1 -1
  157. package/dist/{src/whatsapp → whatsapp}/collections/StatusCollection.d.ts +1 -1
  158. package/dist/{src/whatsapp → whatsapp}/collections/StatusV3Collection.d.ts +3 -3
  159. package/dist/{src/whatsapp → whatsapp}/collections/StickerCollection.d.ts +1 -1
  160. package/dist/{src/whatsapp → whatsapp}/collections/StickerPackCollection.d.ts +1 -1
  161. package/dist/{src/whatsapp → whatsapp}/collections/StickerSearchCollection.d.ts +1 -1
  162. package/dist/{src/whatsapp → whatsapp}/collections/TemplateButtonCollection.d.ts +1 -1
  163. package/dist/{src/whatsapp → whatsapp}/collections/index.d.ts +1 -1
  164. package/dist/{src/whatsapp → whatsapp}/enums/LogoutReason.d.ts +1 -1
  165. package/dist/{src/whatsapp → whatsapp}/enums/OUTWARD_TYPES.d.ts +1 -1
  166. package/dist/{src/whatsapp → whatsapp}/enums/SendMsgResult.d.ts +1 -1
  167. package/dist/{src/whatsapp → whatsapp}/enums/index.d.ts +0 -0
  168. package/dist/{src/whatsapp → whatsapp}/exportModule.d.ts +0 -0
  169. package/dist/{src/whatsapp → whatsapp}/functions/addAndSendMsgToChat.d.ts +1 -1
  170. package/dist/{src/whatsapp → whatsapp}/functions/blockContact.d.ts +2 -2
  171. package/dist/whatsapp/functions/fetchLinkPreview.d.ts +29 -0
  172. package/dist/{src/whatsapp → whatsapp}/functions/findChat.d.ts +1 -1
  173. package/dist/whatsapp/functions/findFirstWebLink.d.ts +17 -0
  174. package/dist/{src/whatsapp → whatsapp}/functions/getOrGenerate.d.ts +1 -1
  175. package/dist/{src/whatsapp → whatsapp}/functions/groupParticipants.d.ts +4 -4
  176. package/dist/whatsapp/functions/handleAck.d.ts +21 -0
  177. package/dist/{src/whatsapp → whatsapp}/functions/index.d.ts +4 -0
  178. package/dist/whatsapp/functions/isAuthenticated.d.ts +17 -0
  179. package/dist/{src/blocklist/Blocklist.d.ts → whatsapp/functions/markSeen.d.ts} +11 -11
  180. package/dist/{src/whatsapp → whatsapp}/functions/msgFindQuery.d.ts +1 -1
  181. package/dist/{src/whatsapp → whatsapp}/functions/products.d.ts +4 -4
  182. package/dist/{src/whatsapp → whatsapp}/functions/randomId.d.ts +2 -2
  183. package/dist/{src/whatsapp → whatsapp}/functions/sendClear.d.ts +1 -1
  184. package/dist/{src/whatsapp → whatsapp}/functions/sendCreateGroup.d.ts +1 -1
  185. package/dist/{src/whatsapp → whatsapp}/functions/sendDelete.d.ts +1 -1
  186. package/dist/{src/whatsapp → whatsapp}/functions/sendQueryExists.d.ts +1 -1
  187. package/dist/{src/whatsapp → whatsapp}/functions/sendTextMsgToChat.d.ts +1 -1
  188. package/dist/{src/whatsapp → whatsapp}/functions/uploadProductImage.d.ts +1 -1
  189. package/dist/{src/whatsapp → whatsapp}/index.d.ts +0 -0
  190. package/dist/{src/whatsapp → whatsapp}/misc/Base64.d.ts +1 -1
  191. package/dist/{src/whatsapp → whatsapp}/misc/Browser.d.ts +1 -1
  192. package/dist/whatsapp/misc/ChatPresence.d.ts +25 -0
  193. package/dist/whatsapp/misc/Clock.d.ts +45 -0
  194. package/dist/{src/whatsapp → whatsapp}/misc/Cmd.d.ts +2 -2
  195. package/dist/{src/whatsapp → whatsapp}/misc/Conn.d.ts +1 -1
  196. package/dist/{src/whatsapp → whatsapp}/misc/Constants.d.ts +1 -1
  197. package/dist/{src/whatsapp → whatsapp}/misc/EventEmitter.d.ts +1 -1
  198. package/dist/{src/whatsapp → whatsapp}/misc/Features.d.ts +1 -1
  199. package/dist/{src/whatsapp → whatsapp}/misc/ImageUtils.d.ts +1 -1
  200. package/dist/{src/whatsapp → whatsapp}/misc/Locale.d.ts +1 -1
  201. package/dist/whatsapp/misc/MediaBlobCache.d.ts +30 -0
  202. package/dist/{src/whatsapp → whatsapp}/misc/MediaObject.d.ts +1 -1
  203. package/dist/{src/whatsapp → whatsapp}/misc/MediaObjectUtil.d.ts +1 -1
  204. package/dist/{src/whatsapp → whatsapp}/misc/MediaPrep.d.ts +1 -1
  205. package/dist/{src/whatsapp → whatsapp}/misc/MediaUtils.d.ts +1 -1
  206. package/dist/{src/whatsapp → whatsapp}/misc/MsgKey.d.ts +1 -1
  207. package/dist/{src/whatsapp → whatsapp}/misc/MsgLoadState.d.ts +4 -4
  208. package/dist/{src/whatsapp → whatsapp}/misc/OpaqueData.d.ts +2 -2
  209. package/dist/{src/whatsapp → whatsapp}/misc/State.d.ts +1 -1
  210. package/dist/{src/whatsapp → whatsapp}/misc/UserPrefs.d.ts +1 -1
  211. package/dist/{src/whatsapp → whatsapp}/misc/VCard.d.ts +1 -1
  212. package/dist/{src/whatsapp → whatsapp}/misc/Wid.d.ts +1 -1
  213. package/dist/{src/whatsapp → whatsapp}/misc/WidFactory.d.ts +1 -1
  214. package/dist/{src/whatsapp → whatsapp}/misc/index.d.ts +3 -1
  215. package/dist/{src/whatsapp → whatsapp}/models/AttachMediaModel.d.ts +2 -2
  216. package/dist/{src/whatsapp → whatsapp}/models/BlocklistModel.d.ts +2 -2
  217. package/dist/{src/whatsapp → whatsapp}/models/BusinessCategoriesResultModel.d.ts +2 -2
  218. package/dist/{src/whatsapp → whatsapp}/models/BusinessProfileModel.d.ts +2 -2
  219. package/dist/{src/whatsapp → whatsapp}/models/CallModel.d.ts +2 -2
  220. package/dist/{src/whatsapp → whatsapp}/models/CallParticipantModel.d.ts +2 -2
  221. package/dist/{src/whatsapp → whatsapp}/models/CartItemModel.d.ts +2 -2
  222. package/dist/{src/whatsapp → whatsapp}/models/CartModel.d.ts +2 -2
  223. package/dist/{src/whatsapp → whatsapp}/models/CatalogModel.d.ts +2 -2
  224. package/dist/{src/whatsapp → whatsapp}/models/ChatModel.d.ts +4 -4
  225. package/dist/{src/whatsapp → whatsapp}/models/ChatPreferenceModel.d.ts +2 -2
  226. package/dist/{src/whatsapp → whatsapp}/models/ChatstateModel.d.ts +2 -2
  227. package/dist/{src/whatsapp → whatsapp}/models/ConnModel.d.ts +2 -2
  228. package/dist/{src/whatsapp → whatsapp}/models/ContactModel.d.ts +2 -2
  229. package/dist/{src/whatsapp → whatsapp}/models/ConversionTupleModel.d.ts +2 -2
  230. package/dist/{src/whatsapp → whatsapp}/models/EmojiVariantModel.d.ts +2 -2
  231. package/dist/{src/whatsapp → whatsapp}/models/GroupMetadataModel.d.ts +2 -2
  232. package/dist/{src/whatsapp → whatsapp}/models/LabelItemModel.d.ts +2 -2
  233. package/dist/{src/whatsapp → whatsapp}/models/LabelModel.d.ts +2 -2
  234. package/dist/{src/whatsapp → whatsapp}/models/LiveLocationModel.d.ts +4 -3
  235. package/dist/{src/whatsapp → whatsapp}/models/LiveLocationParticipantModel.d.ts +2 -2
  236. package/dist/{src/whatsapp → whatsapp}/models/MediaDataModel.d.ts +2 -2
  237. package/dist/{src/whatsapp → whatsapp}/models/Model.d.ts +1 -1
  238. package/dist/{src/whatsapp → whatsapp}/models/ModelChatBase.d.ts +1 -1
  239. package/dist/{src/whatsapp → whatsapp}/models/MsgButtonReplyMsgModel.d.ts +2 -2
  240. package/dist/{src/whatsapp → whatsapp}/models/MsgInfoModel.d.ts +2 -2
  241. package/dist/{src/whatsapp → whatsapp}/models/MsgModel.d.ts +25 -15
  242. package/dist/{src/whatsapp → whatsapp}/models/MuteModel.d.ts +2 -2
  243. package/dist/{src/whatsapp → whatsapp}/models/OrderItemModel.d.ts +2 -2
  244. package/dist/{src/whatsapp → whatsapp}/models/OrderModel.d.ts +2 -2
  245. package/dist/{src/whatsapp → whatsapp}/models/ParticipantModel.d.ts +2 -2
  246. package/dist/{src/whatsapp → whatsapp}/models/ProductCollModel.d.ts +2 -2
  247. package/dist/{src/whatsapp → whatsapp}/models/ProductImageModel.d.ts +2 -2
  248. package/dist/{src/whatsapp/models/Product_listModel.d.ts → whatsapp/models/ProductMessageListModel.d.ts} +5 -5
  249. package/dist/{src/whatsapp → whatsapp}/models/ProductModel.d.ts +2 -2
  250. package/dist/{src/whatsapp → whatsapp}/models/ProfilePicThumbModel.d.ts +2 -2
  251. package/dist/{src/whatsapp → whatsapp}/models/QuickReplyModel.d.ts +2 -2
  252. package/dist/{src/whatsapp → whatsapp}/models/RecentEmojiModel.d.ts +2 -2
  253. package/dist/{src/whatsapp → whatsapp}/models/RecentStickerModel.d.ts +2 -2
  254. package/dist/{src/whatsapp → whatsapp}/models/ReplyButtonModel.d.ts +2 -2
  255. package/dist/{src/whatsapp → whatsapp}/models/StateModel.d.ts +2 -2
  256. package/dist/{src/whatsapp → whatsapp}/models/StatusModel.d.ts +2 -2
  257. package/dist/{src/whatsapp → whatsapp}/models/StatusV3Model.d.ts +2 -2
  258. package/dist/{src/whatsapp → whatsapp}/models/StickerModel.d.ts +2 -2
  259. package/dist/{src/whatsapp → whatsapp}/models/StickerPackModel.d.ts +2 -2
  260. package/dist/{src/whatsapp → whatsapp}/models/TemplateButtonModel.d.ts +2 -2
  261. package/dist/{src/whatsapp → whatsapp}/models/UnreadMentionModel.d.ts +2 -2
  262. package/dist/{src/whatsapp → whatsapp}/models/WebCallModel.d.ts +2 -2
  263. package/dist/{src/whatsapp → whatsapp}/models/index.d.ts +1 -1
  264. package/dist/{src/whatsapp → whatsapp}/multidevice/adv.d.ts +1 -1
  265. package/dist/{src/whatsapp → whatsapp}/multidevice/index.d.ts +0 -0
  266. package/dist/{src/whatsapp → whatsapp}/multidevice/waNoiseInfo.d.ts +1 -1
  267. package/dist/{src/whatsapp → whatsapp}/multidevice/waSignalStore.d.ts +1 -1
  268. package/dist/{src/whatsapp → whatsapp}/stores.d.ts +29 -29
  269. package/dist/wppconnect-wa.js +1 -1
  270. package/package.json +22 -23
  271. package/dist/src/chat/Chat.d.ts +0 -162
  272. package/dist/src/chat/types.d.ts +0 -177
  273. package/dist/src/group/Group.d.ts +0 -45
  274. package/dist/src/group/index.d.ts +0 -20
  275. package/dist/src/status/Status.d.ts +0 -37
  276. package/dist/src/status/index.d.ts +0 -20
  277. package/dist/src/whatsapp/misc/ClockSkew.d.ts +0 -43
@@ -0,0 +1,23 @@
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
+ export { addNewLabel } from './addNewLabel';
17
+ export { addOrRemoveLabels, AddOrRemoveLabelsOptions, } from './addOrRemoveLabels';
18
+ export { colorIsInLabelPalette } from './colorIsInLabelPalette';
19
+ export { deleteAllLabels } from './deleteAllLabels';
20
+ export { deleteLabel, DeleteLabelReturn } from './deleteLabel';
21
+ export { getAllLabels } from './getAllLabels';
22
+ export { getLabelColorPalette } from './getLabelColorPalette';
23
+ export { getNewLabelColor } from './getNewLabelColor';
@@ -13,8 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Blocklist } from './Blocklist';
17
- export * from './Blocklist';
16
+ export { clearListeners, EventTypes, listenerCount, off, on, once, UnsubscribeFn, } from './eventEmitter';
17
+ export * from './functions';
18
18
  export * from './types';
19
- declare const _default: Blocklist;
20
- export default _default;
@@ -0,0 +1,21 @@
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
+ export interface Label {
17
+ id: string;
18
+ name: string;
19
+ color: number;
20
+ count: number;
21
+ }
@@ -0,0 +1,16 @@
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
+ export {};
@@ -0,0 +1,19 @@
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 { SendStatusOptions } from './functions/sendRawStatus';
17
+ import { TextStatusOptions } from './functions/sendTextStatus';
18
+ export declare type AllStatusOptions = SendStatusOptions & TextStatusOptions;
19
+ export declare const defaultSendStatusOptions: AllStatusOptions;
@@ -0,0 +1,49 @@
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 Emittery from 'emittery';
17
+ export declare type UnsubscribeFn = () => void;
18
+ export interface EventTypes {
19
+ sync: undefined;
20
+ }
21
+ export declare const eventEmitter: Emittery<EventTypes, EventTypes, "sync">;
22
+ /**
23
+ * Subscribe to one event.
24
+ * @event
25
+ * @returns An unsubscribe method.
26
+ */
27
+ export declare function on<Name extends keyof EventTypes>(eventName: Name, listener: (eventData: EventTypes[Name]) => void | Promise<void>): UnsubscribeFn;
28
+ /**
29
+ * Subscribe to one or more events only once. It will be unsubscribed after the first event.
30
+ * @event
31
+ */
32
+ export declare function once<Name extends keyof EventTypes>(eventName: Name): Promise<EventTypes[Name]>;
33
+ /**
34
+ * @event
35
+ */
36
+ export declare function off<Name extends keyof EventTypes>(eventName: Name, listener: (eventData: EventTypes[Name]) => void | Promise<void>): void;
37
+ /**
38
+ * Clear all event listeners on the instance.
39
+ *
40
+ * If `eventName` is given, only the listeners for that event are cleared.
41
+ *
42
+ * @event
43
+ */
44
+ export declare function clearListeners<Name extends keyof EventTypes>(eventName?: Name | Name[]): void;
45
+ /**
46
+ * The number of listeners for the `eventName` or all events if not specified.
47
+ * @event
48
+ */
49
+ export declare function listenerCount<Name extends keyof EventTypes>(eventName?: Name | Name[]): number;
@@ -0,0 +1,16 @@
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 './registerSyncedEvent';
@@ -0,0 +1,16 @@
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
+ export {};
@@ -0,0 +1,17 @@
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 { StatusV3Model, Wid } from '../../whatsapp';
17
+ export declare function get(chatId: string | Wid): StatusV3Model | undefined;
@@ -0,0 +1,17 @@
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 { StatusV3Model } from '../../whatsapp';
17
+ export declare function getMyStatus(): Promise<StatusV3Model>;
@@ -0,0 +1,19 @@
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
+ export { get } from './get';
17
+ export { getMyStatus } from './getMyStatus';
18
+ export { sendRawStatus, SendStatusOptions } from './sendRawStatus';
19
+ export { sendTextStatus, TextStatusOptions } from './sendTextStatus';
@@ -0,0 +1,20 @@
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 * as Chat from '../../chat';
17
+ export interface SendStatusOptions {
18
+ waitForAck?: boolean;
19
+ }
20
+ export declare function sendRawStatus(message: Chat.RawMessage, options?: SendStatusOptions): Promise<Chat.SendMessageReturn>;
@@ -13,16 +13,19 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { TextFontStyle } from '../enums';
17
- export interface StatusEventTypes {
18
- sync: undefined;
19
- }
20
- export interface SendStatusOptions {
21
- waitForAck?: boolean;
22
- }
16
+ import { TextFontStyle } from '../../enums';
17
+ import { SendStatusOptions } from './sendRawStatus';
23
18
  export interface TextStatusOptions extends SendStatusOptions {
24
19
  font?: TextFontStyle;
25
20
  backgroundColor?: string | number;
26
21
  textColor?: string | number;
27
22
  }
28
- export declare type AllStatusOptions = SendStatusOptions & TextStatusOptions;
23
+ /**
24
+ * Send a text message to status stories
25
+ *
26
+ * @example
27
+ * ```javascript
28
+ * WPP.status.sendTextStatus(`Bootstrap primary color: #0275d8`, { backgroundColor: '#0275d8', font: 2});
29
+ * ```
30
+ */
31
+ export declare function sendTextStatus(content: any, options?: TextStatusOptions): Promise<any>;
@@ -0,0 +1,19 @@
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 './events';
17
+ export * from './defaultSendStatusOptions';
18
+ export { clearListeners, EventTypes, listenerCount, off, on, once, UnsubscribeFn, } from './eventEmitter';
19
+ export * from './functions';
File without changes
@@ -0,0 +1,16 @@
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
+ export declare function convertToFile(data: string, mimetype?: string, filename?: string): Promise<File>;
File without changes
File without changes
File without changes
File without changes
@@ -23,7 +23,7 @@ export declare let isInjected: boolean;
23
23
  export declare let isReady: boolean;
24
24
  export declare function onInjected(listener: () => void): void;
25
25
  export declare function onReady(listener: () => void): void;
26
- export declare type SearchModuleCondition = (module: any, moduleId?: string) => boolean;
26
+ export declare type SearchModuleCondition = (module: any, moduleId: string) => boolean;
27
27
  export declare let webpackRequire: (<T = any>(moduleId: string) => T) & {
28
28
  /**
29
29
  * module list
@@ -41,6 +41,8 @@ export declare let webpackRequire: (<T = any>(moduleId: string) => T) & {
41
41
  e: (id: string) => Promise<void>;
42
42
  };
43
43
  export declare function injectLoader(): void;
44
+ export declare function moduleSource(moduleId: string): any;
45
+ export declare function isReactComponent(moduleId: string): boolean | undefined;
44
46
  /**
45
47
  * Return the webpack module id from a search function
46
48
  * @param condition Function for compare the modules
@@ -15,8 +15,8 @@
15
15
  */
16
16
  import { Stringable } from '../../types';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:36513 */
19
- export declare class CollectionCache<C, A = C | C[]> extends Collection<C> {
18
+ /** @whatsapp 2.2147.16:36513 */
19
+ export declare class BaseCollection<C, A = C | C[]> extends Collection<C> {
20
20
  static cachePolicy: {
21
21
  id: string;
22
22
  policy: string;
@@ -32,11 +32,11 @@ export declare class CollectionCache<C, A = C | C[]> extends Collection<C> {
32
32
  find(id: Stringable, options?: {
33
33
  logOnSend?: boolean;
34
34
  set?: boolean;
35
- }): Promise<C | undefined>;
35
+ }): Promise<C>;
36
36
  update(id: Stringable, options?: {
37
37
  logOnSend?: boolean;
38
38
  set?: boolean;
39
- }): Promise<C | undefined>;
39
+ }): Promise<C>;
40
40
  handle(values: A): void;
41
41
  gadd(id: C | Stringable): C;
42
42
  gaddUp(id: C | Stringable): C;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { BlocklistModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:15701 */
18
+ /** @whatsapp 2.2147.16:15701 */
19
19
  export declare class BlocklistCollection extends Collection<BlocklistModel> {
20
20
  static model: BlocklistModel;
21
21
  blockContact(e?: any): any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { BusinessCategoriesResultModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:54100 */
18
+ /** @whatsapp 2.2147.16:54100 */
19
19
  export declare class BusinessCategoriesResultCollection extends Collection<BusinessCategoriesResultModel> {
20
20
  static model: BusinessCategoriesResultModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { BusinessProfileModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:8581 */
18
+ /** @whatsapp 2.2147.16:8581 */
19
19
  export declare class BusinessProfileCollection extends Collection<BusinessProfileModel> {
20
20
  static model: BusinessProfileModel;
21
21
  static staleCollection?: any;
@@ -14,9 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ReplyButtonModel } from '../models';
17
- import { CollectionCache } from './CollectionCache';
18
- /** @whatsapp 2.2144.11:84142 */
19
- export declare class ButtonCollection extends CollectionCache<ReplyButtonModel> {
17
+ import { BaseCollection } from './BaseCollection';
18
+ /** @whatsapp 2.2147.16:84142 */
19
+ export declare class ButtonCollection extends BaseCollection<ReplyButtonModel> {
20
20
  static model: ReplyButtonModel;
21
21
  static comparator(): any;
22
22
  }
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { CallModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:15971 */
18
+ /** @whatsapp 2.2147.16:15971 */
19
19
  export declare class CallCollection extends Collection<CallModel> {
20
20
  static model: CallModel;
21
21
  pendingOffers?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { CartModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:25523 */
18
+ /** @whatsapp 2.2147.16:25523 */
19
19
  export declare class CartCollection extends Collection<CartModel> {
20
20
  static model: CartModel;
21
21
  static cachePolicy?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { CartItemModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:29844 */
18
+ /** @whatsapp 2.2147.16:29844 */
19
19
  export declare class CartItemCollection extends Collection<CartItemModel> {
20
20
  static model: CartItemModel;
21
21
  }
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { CatalogModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:60028 */
18
+ /** @whatsapp 2.2147.16:60028 */
19
19
  export declare class CatalogCollection extends Collection<CatalogModel> {
20
20
  static model: CatalogModel;
21
21
  static staleCollection?: any;
@@ -14,9 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '../models';
17
- import { CollectionCache } from './CollectionCache';
18
- /** @whatsapp 2.2144.11:84758 */
19
- export declare class ChatCollection extends CollectionCache<ChatModel> {
17
+ import { BaseCollection } from './BaseCollection';
18
+ /** @whatsapp 2.2147.16:84758 */
19
+ export declare class ChatCollection extends BaseCollection<ChatModel> {
20
20
  static model: ChatModel;
21
21
  static comparator(): any;
22
22
  notSpam?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ChatstateModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:42165 */
18
+ /** @whatsapp 2.2147.16:42165 */
19
19
  export declare class ChatstateCollection extends Collection<ChatstateModel> {
20
20
  static model: ChatstateModel;
21
21
  }
@@ -14,16 +14,17 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Stringable } from '../../types';
17
+ import { WritableProperties } from '../../util';
17
18
  import { EventEmitter } from '../misc';
18
19
  interface Option {
19
20
  add: boolean;
20
21
  merge: boolean;
21
22
  remove: boolean;
22
23
  }
23
- /** @whatsapp 2.2144.11:85392 */
24
+ /** @whatsapp 2.2147.16:85392 */
24
25
  export declare interface Collection<M> extends EventEmitter, Pick<Array<M>, 'indexOf' | 'lastIndexOf' | 'every' | 'some' | 'forEach' | 'map' | 'filter' | 'reduce' | 'slice'> {
25
26
  }
26
- /** @whatsapp 2.2144.11:85392 */
27
+ /** @whatsapp 2.2147.16:85392 */
27
28
  export declare class Collection<M, A = M | M[]> extends EventEmitter {
28
29
  static model: any;
29
30
  static comparator: (a: any, b: any) => number;
@@ -31,7 +32,7 @@ export declare class Collection<M, A = M | M[]> extends EventEmitter {
31
32
  constructor(e?: any, t?: {
32
33
  parent: any;
33
34
  });
34
- add(value: A, options?: Option): A;
35
+ add(value: A | WritableProperties<A>, options?: Option): A;
35
36
  set(value: A, options?: Option): A;
36
37
  remove(value: A, options?: {
37
38
  index?: boolean;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ContactModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:17025 */
18
+ /** @whatsapp 2.2147.16:17025 */
19
19
  export declare class ContactCollection extends Collection<ContactModel> {
20
20
  static model: ContactModel;
21
21
  static cachePolicy?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { EmojiVariantModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:41098 */
18
+ /** @whatsapp 2.2147.16:41098 */
19
19
  export declare class EmojiVariantCollection extends Collection<EmojiVariantModel> {
20
20
  static model: EmojiVariantModel;
21
21
  static cachePolicy?: any;
@@ -14,11 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { GroupMetadataModel } from '../models';
17
- import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:75798 */
19
- export declare class GroupMetadataCollection extends Collection<GroupMetadataModel> {
17
+ import { BaseCollection } from '.';
18
+ /** @whatsapp 2.2147.16:75798 */
19
+ export declare class GroupMetadataCollection extends BaseCollection<GroupMetadataModel> {
20
20
  static model: GroupMetadataModel;
21
- static cachePolicy?: any;
22
- onResume(): any;
23
21
  handlePendingInvite(): any;
24
22
  }
@@ -15,18 +15,18 @@
15
15
  */
16
16
  import { ChatModel, LabelModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:59606 */
18
+ /** @whatsapp 2.2147.16:59606 */
19
19
  export declare class LabelCollection extends Collection<LabelModel> {
20
20
  static model: LabelModel;
21
21
  static staleCollection?: any;
22
22
  static resumeOnAvailable?: any;
23
23
  checksum?: any;
24
24
  initializeAssociationsFromCache(e?: any): any;
25
- addNewLabel(e?: any, t?: any): any;
25
+ addNewLabel(labelName: string, labelColor: string): any;
26
26
  removeAllLabelsMD(chat: ChatModel): any;
27
27
  addOrRemoveLabelsMD(e?: any, t?: any): any;
28
28
  addOrRemoveLabels(e?: any, t?: any): any;
29
- deleteLabel(e?: any): any;
29
+ deleteLabel(id: string): any;
30
30
  updateLabel(e?: any, t?: any): any;
31
31
  getNewLabelColor(): any;
32
32
  getLabelColorPalette(): any;
@@ -35,4 +35,5 @@ export declare class LabelCollection extends Collection<LabelModel> {
35
35
  sync(e?: any): any;
36
36
  updateChecksum(e?: any): any;
37
37
  getLabelsForModel(e?: any, t?: any): any;
38
+ _find(): any;
38
39
  }
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { LabelItemModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:42745 */
18
+ /** @whatsapp 2.2147.16:42745 */
19
19
  export declare class LabelItemCollection extends Collection<LabelItemModel> {
20
20
  static model: LabelItemModel;
21
21
  }
@@ -14,14 +14,13 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { LiveLocationModel } from '../models';
17
- import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:31104 */
19
- export declare class LiveLocationCollection extends Collection<LiveLocationModel> {
17
+ import { BaseCollection } from '.';
18
+ /** @whatsapp 2.2147.16:31104 */
19
+ export declare class LiveLocationCollection extends BaseCollection<LiveLocationModel> {
20
20
  static model: LiveLocationModel;
21
21
  static staleCollection?: any;
22
22
  static resumeOnAvailable?: any;
23
23
  getActive(e?: any): any;
24
- onResume(): any;
25
24
  processMsg(e?: any, t?: boolean): any;
26
25
  removeMsg(e?: any): any;
27
26
  }
@@ -15,9 +15,9 @@
15
15
  */
16
16
  import { Wid } from '..';
17
17
  import { ModelPropertiesContructor, MsgModel } from '../models';
18
- import { CollectionCache } from './CollectionCache';
19
- /** @whatsapp 2.2144.11:45472 */
20
- export declare class MsgCollection extends CollectionCache<MsgModel> {
18
+ import { BaseCollection } from './BaseCollection';
19
+ /** @whatsapp 2.2147.16:45472 */
20
+ export declare class MsgCollection extends BaseCollection<MsgModel> {
21
21
  static model: MsgModel;
22
22
  lastReceivedReceipt?: any;
23
23
  lastReceivedPaymentTransaction?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { MsgInfoModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2144.11:57636 */
18
+ /** @whatsapp 2.2147.16:57636 */
19
19
  export declare class MsgInfoCollection extends Collection<MsgInfoModel> {
20
20
  static model: MsgInfoModel;
21
21
  static staleCollection?: any;