@wppconnect/wa-js 1.1.11 → 1.1.15

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 (173) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/chat/functions/index.d.ts +3 -0
  3. package/dist/chat/functions/openChatAt.d.ts +27 -0
  4. package/dist/chat/functions/openChatBottom.d.ts +27 -0
  5. package/dist/chat/functions/openChatFromUnread.d.ts +27 -0
  6. package/dist/contact/functions/queryExists.d.ts +13 -0
  7. package/dist/group/functions/ensureGroup.d.ts +1 -1
  8. package/dist/group/functions/getGroupInfoFromInviteCode.d.ts +51 -0
  9. package/dist/group/functions/getInviteCode.d.ts +26 -0
  10. package/dist/group/functions/index.d.ts +7 -0
  11. package/dist/group/functions/join.d.ts +28 -0
  12. package/dist/group/functions/leave.d.ts +27 -0
  13. package/dist/group/functions/revokeInviteCode.d.ts +28 -0
  14. package/dist/group/functions/setDescription.d.ts +27 -0
  15. package/dist/group/functions/setProperty.d.ts +54 -0
  16. package/dist/group/functions/setSubject.d.ts +27 -0
  17. package/dist/util/index.d.ts +1 -0
  18. package/dist/util/isBase64.d.ts +16 -0
  19. package/dist/whatsapp/collections/BaseCollection.d.ts +1 -1
  20. package/dist/whatsapp/collections/BlocklistCollection.d.ts +1 -1
  21. package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +1 -1
  22. package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +1 -1
  23. package/dist/whatsapp/collections/ButtonCollection.d.ts +1 -1
  24. package/dist/whatsapp/collections/CallCollection.d.ts +1 -1
  25. package/dist/whatsapp/collections/CartCollection.d.ts +1 -1
  26. package/dist/whatsapp/collections/CartItemCollection.d.ts +1 -1
  27. package/dist/whatsapp/collections/CatalogCollection.d.ts +1 -1
  28. package/dist/whatsapp/collections/ChatCollection.d.ts +1 -1
  29. package/dist/whatsapp/collections/ChatstateCollection.d.ts +1 -1
  30. package/dist/whatsapp/collections/Collection.d.ts +2 -2
  31. package/dist/whatsapp/collections/ContactCollection.d.ts +1 -1
  32. package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +1 -1
  33. package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +1 -1
  34. package/dist/whatsapp/collections/LabelCollection.d.ts +1 -1
  35. package/dist/whatsapp/collections/LabelItemCollection.d.ts +1 -1
  36. package/dist/whatsapp/collections/LiveLocationCollection.d.ts +1 -1
  37. package/dist/whatsapp/collections/MsgCollection.d.ts +1 -1
  38. package/dist/whatsapp/collections/MsgInfoCollection.d.ts +1 -1
  39. package/dist/whatsapp/collections/MuteCollection.d.ts +1 -1
  40. package/dist/whatsapp/collections/OrderCollection.d.ts +1 -1
  41. package/dist/whatsapp/collections/OrderItemCollection.d.ts +1 -1
  42. package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -1
  43. package/dist/whatsapp/collections/PresenceCollection.d.ts +1 -1
  44. package/dist/whatsapp/collections/ProductCollCollection.d.ts +1 -1
  45. package/dist/whatsapp/collections/ProductCollection.d.ts +1 -1
  46. package/dist/whatsapp/collections/ProductImageCollection.d.ts +1 -1
  47. package/dist/whatsapp/collections/ProductMessageListCollection.d.ts +1 -1
  48. package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +1 -1
  49. package/dist/whatsapp/collections/QuickReplyCollection.d.ts +1 -1
  50. package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +1 -1
  51. package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -1
  52. package/dist/whatsapp/collections/StarredMsgCollection.d.ts +1 -1
  53. package/dist/whatsapp/collections/StarredStickerCollection.d.ts +1 -1
  54. package/dist/whatsapp/collections/StatusCollection.d.ts +1 -1
  55. package/dist/whatsapp/collections/StatusV3Collection.d.ts +1 -1
  56. package/dist/whatsapp/collections/StickerCollection.d.ts +1 -1
  57. package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -1
  58. package/dist/whatsapp/collections/StickerSearchCollection.d.ts +1 -1
  59. package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +1 -1
  60. package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +22 -0
  61. package/dist/whatsapp/enums/LogoutReason.d.ts +1 -1
  62. package/dist/whatsapp/enums/OUTWARD_TYPES.d.ts +1 -1
  63. package/dist/whatsapp/enums/SendMsgResult.d.ts +1 -1
  64. package/dist/whatsapp/enums/index.d.ts +1 -0
  65. package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +1 -1
  66. package/dist/whatsapp/functions/blockContact.d.ts +2 -2
  67. package/dist/whatsapp/functions/createMsgProtobuf.d.ts +20 -0
  68. package/dist/whatsapp/functions/fetchLinkPreview.d.ts +1 -1
  69. package/dist/whatsapp/functions/findChat.d.ts +1 -1
  70. package/dist/whatsapp/functions/findFirstWebLink.d.ts +1 -1
  71. package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -1
  72. package/dist/whatsapp/functions/groupParticipants.d.ts +4 -4
  73. package/dist/whatsapp/functions/handleAck.d.ts +3 -3
  74. package/dist/whatsapp/functions/index.d.ts +7 -0
  75. package/dist/whatsapp/functions/isAuthenticated.d.ts +1 -1
  76. package/dist/whatsapp/functions/markSeen.d.ts +3 -3
  77. package/dist/whatsapp/functions/msgFindQuery.d.ts +1 -1
  78. package/dist/whatsapp/functions/products.d.ts +4 -4
  79. package/dist/whatsapp/functions/profilePic.d.ts +1 -1
  80. package/dist/whatsapp/functions/randomId.d.ts +2 -2
  81. package/dist/whatsapp/functions/sendCallSignalingMsg.d.ts +34 -0
  82. package/dist/whatsapp/functions/sendClear.d.ts +1 -1
  83. package/dist/whatsapp/functions/sendCreateGroup.d.ts +1 -1
  84. package/dist/whatsapp/functions/sendDelete.d.ts +1 -1
  85. package/dist/whatsapp/functions/sendExitGroup.d.ts +18 -0
  86. package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +18 -0
  87. package/dist/whatsapp/functions/sendQueryExists.d.ts +1 -1
  88. package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +44 -0
  89. package/dist/whatsapp/functions/sendQueryGroupInviteCode.d.ts +18 -0
  90. package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +18 -0
  91. package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -1
  92. package/dist/whatsapp/functions/setGroup.d.ts +23 -0
  93. package/dist/whatsapp/functions/status.d.ts +2 -2
  94. package/dist/whatsapp/functions/uploadProductImage.d.ts +1 -1
  95. package/dist/whatsapp/misc/Base64.d.ts +1 -1
  96. package/dist/whatsapp/misc/Browser.d.ts +1 -1
  97. package/dist/whatsapp/misc/ChatPresence.d.ts +1 -1
  98. package/dist/whatsapp/misc/Clock.d.ts +2 -2
  99. package/dist/whatsapp/misc/Cmd.d.ts +6 -5
  100. package/dist/whatsapp/misc/Conn.d.ts +1 -1
  101. package/dist/whatsapp/misc/Constants.d.ts +1 -1
  102. package/dist/whatsapp/misc/EventEmitter.d.ts +1 -1
  103. package/dist/whatsapp/misc/Features.d.ts +1 -1
  104. package/dist/whatsapp/misc/ImageUtils.d.ts +1 -1
  105. package/dist/whatsapp/misc/Locale.d.ts +1 -1
  106. package/dist/whatsapp/misc/MediaBlobCache.d.ts +2 -2
  107. package/dist/whatsapp/misc/MediaObject.d.ts +1 -1
  108. package/dist/whatsapp/misc/MediaObjectUtil.d.ts +1 -1
  109. package/dist/whatsapp/misc/MediaPrep.d.ts +1 -1
  110. package/dist/whatsapp/misc/MediaUtils.d.ts +1 -1
  111. package/dist/whatsapp/misc/MsgKey.d.ts +1 -1
  112. package/dist/whatsapp/misc/MsgLoadState.d.ts +2 -2
  113. package/dist/whatsapp/misc/OpaqueData.d.ts +2 -2
  114. package/dist/whatsapp/misc/State.d.ts +1 -1
  115. package/dist/whatsapp/misc/UserPrefs.d.ts +1 -1
  116. package/dist/whatsapp/misc/VCard.d.ts +1 -1
  117. package/dist/whatsapp/misc/Wap.d.ts +2 -2
  118. package/dist/whatsapp/misc/Wid.d.ts +1 -1
  119. package/dist/whatsapp/misc/WidFactory.d.ts +1 -1
  120. package/dist/whatsapp/models/AttachMediaModel.d.ts +2 -2
  121. package/dist/whatsapp/models/BlocklistModel.d.ts +2 -2
  122. package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +2 -2
  123. package/dist/whatsapp/models/BusinessProfileModel.d.ts +2 -2
  124. package/dist/whatsapp/models/CallModel.d.ts +2 -2
  125. package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -2
  126. package/dist/whatsapp/models/CartItemModel.d.ts +2 -2
  127. package/dist/whatsapp/models/CartModel.d.ts +2 -2
  128. package/dist/whatsapp/models/CatalogModel.d.ts +2 -2
  129. package/dist/whatsapp/models/ChatModel.d.ts +4 -3
  130. package/dist/whatsapp/models/ChatPreferenceModel.d.ts +2 -2
  131. package/dist/whatsapp/models/ChatstateModel.d.ts +2 -2
  132. package/dist/whatsapp/models/ConnModel.d.ts +2 -2
  133. package/dist/whatsapp/models/ContactModel.d.ts +2 -2
  134. package/dist/whatsapp/models/ConversionTupleModel.d.ts +2 -2
  135. package/dist/whatsapp/models/EmojiVariantModel.d.ts +2 -2
  136. package/dist/whatsapp/models/GroupMetadataModel.d.ts +4 -4
  137. package/dist/whatsapp/models/LabelItemModel.d.ts +2 -2
  138. package/dist/whatsapp/models/LabelModel.d.ts +2 -2
  139. package/dist/whatsapp/models/LiveLocationModel.d.ts +2 -2
  140. package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +2 -2
  141. package/dist/whatsapp/models/MediaDataModel.d.ts +2 -2
  142. package/dist/whatsapp/models/Model.d.ts +1 -1
  143. package/dist/whatsapp/models/ModelChatBase.d.ts +1 -1
  144. package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +2 -2
  145. package/dist/whatsapp/models/MsgInfoModel.d.ts +2 -2
  146. package/dist/whatsapp/models/MsgModel.d.ts +2 -2
  147. package/dist/whatsapp/models/MuteModel.d.ts +2 -2
  148. package/dist/whatsapp/models/OrderItemModel.d.ts +2 -2
  149. package/dist/whatsapp/models/OrderModel.d.ts +2 -2
  150. package/dist/whatsapp/models/ParticipantModel.d.ts +2 -2
  151. package/dist/whatsapp/models/ProductCollModel.d.ts +2 -2
  152. package/dist/whatsapp/models/ProductImageModel.d.ts +2 -2
  153. package/dist/whatsapp/models/ProductMessageListModel.d.ts +2 -2
  154. package/dist/whatsapp/models/ProductModel.d.ts +2 -2
  155. package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +2 -2
  156. package/dist/whatsapp/models/QuickReplyModel.d.ts +2 -2
  157. package/dist/whatsapp/models/RecentEmojiModel.d.ts +2 -2
  158. package/dist/whatsapp/models/RecentStickerModel.d.ts +2 -2
  159. package/dist/whatsapp/models/ReplyButtonModel.d.ts +2 -2
  160. package/dist/whatsapp/models/StateModel.d.ts +2 -2
  161. package/dist/whatsapp/models/StatusModel.d.ts +2 -2
  162. package/dist/whatsapp/models/StatusV3Model.d.ts +2 -2
  163. package/dist/whatsapp/models/StickerModel.d.ts +2 -2
  164. package/dist/whatsapp/models/StickerPackModel.d.ts +2 -2
  165. package/dist/whatsapp/models/TemplateButtonModel.d.ts +2 -2
  166. package/dist/whatsapp/models/UnreadMentionModel.d.ts +2 -2
  167. package/dist/whatsapp/models/WebCallModel.d.ts +2 -2
  168. package/dist/whatsapp/multidevice/adv.d.ts +1 -1
  169. package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -1
  170. package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -1
  171. package/dist/whatsapp/stores.d.ts +29 -29
  172. package/dist/wppconnect-wa.js +1 -1
  173. package/package.json +15 -13
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { LiveLocationModel } from '../models';
17
17
  import { BaseCollection } from '.';
18
- /** @whatsapp 31104 */
18
+ /** @whatsapp 28920 */
19
19
  export declare class LiveLocationCollection extends BaseCollection<LiveLocationModel> {
20
20
  static model: LiveLocationModel;
21
21
  static staleCollection?: any;
@@ -16,7 +16,7 @@
16
16
  import { Wid } from '..';
17
17
  import { ModelPropertiesContructor, MsgModel } from '../models';
18
18
  import { BaseCollection } from './BaseCollection';
19
- /** @whatsapp 45472 */
19
+ /** @whatsapp 51610 */
20
20
  export declare class MsgCollection extends BaseCollection<MsgModel> {
21
21
  static model: MsgModel;
22
22
  lastReceivedReceipt?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { MsgInfoModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 57636 */
18
+ /** @whatsapp 65018 */
19
19
  export declare class MsgInfoCollection extends Collection<MsgInfoModel> {
20
20
  static model: MsgInfoModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { MuteModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 80959 */
18
+ /** @whatsapp 23297 */
19
19
  export declare class MuteCollection extends Collection<MuteModel> {
20
20
  static model: MuteModel;
21
21
  static cachePolicy?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { OrderModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 98052 */
18
+ /** @whatsapp 10492 */
19
19
  export declare class OrderCollection extends Collection<OrderModel> {
20
20
  static model: OrderModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { OrderItemModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2414 */
18
+ /** @whatsapp 67180 */
19
19
  export declare class OrderItemCollection extends Collection<OrderItemModel> {
20
20
  static model: OrderItemModel;
21
21
  }
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ParticipantModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 16748 */
18
+ /** @whatsapp 59638 */
19
19
  export declare class ParticipantCollection extends Collection<ParticipantModel> {
20
20
  static model: ParticipantModel;
21
21
  static comparator(): any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ChatstateModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 48327 */
18
+ /** @whatsapp 67652 */
19
19
  export declare class PresenceCollection extends Collection<ChatstateModel> {
20
20
  static model: ChatstateModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ProductCollModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 63875 */
18
+ /** @whatsapp 49675 */
19
19
  export declare class ProductCollCollection extends Collection<ProductCollModel> {
20
20
  static model: ProductCollModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ProductModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 26491 */
18
+ /** @whatsapp 77470 */
19
19
  export declare class ProductCollection extends Collection<ProductModel> {
20
20
  static model: ProductModel;
21
21
  getProductModels(e?: boolean): any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ProductImageModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 55845 */
18
+ /** @whatsapp 47473 */
19
19
  export declare class ProductImageCollection extends Collection<ProductImageModel> {
20
20
  static model: ProductImageModel;
21
21
  }
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ProductMessageListModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 97038 */
18
+ /** @whatsapp 7798 */
19
19
  export declare class ProductMessageListCollection extends Collection<ProductMessageListModel> {
20
20
  static model: ProductMessageListModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ProfilePicThumbModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 3165 */
18
+ /** @whatsapp 18178 */
19
19
  export declare class ProfilePicThumbCollection extends Collection<ProfilePicThumbModel> {
20
20
  static model: ProfilePicThumbModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { QuickReplyModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 60123 */
18
+ /** @whatsapp 28290 */
19
19
  export declare class QuickReplyCollection extends Collection<QuickReplyModel> {
20
20
  static model: QuickReplyModel;
21
21
  checksum?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { RecentEmojiModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 30462 */
18
+ /** @whatsapp 28057 */
19
19
  export declare class RecentEmojiCollection extends Collection<RecentEmojiModel> {
20
20
  static cachePolicy?: any;
21
21
  static model: RecentEmojiModel;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { StickerModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 27686 */
18
+ /** @whatsapp 45935 */
19
19
  export declare class RecentStickerCollection extends Collection<StickerModel> {
20
20
  static model: StickerModel;
21
21
  enqueue(e?: any): any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { MsgModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 30118 */
18
+ /** @whatsapp 2029 */
19
19
  export declare class StarredMsgCollection extends Collection<MsgModel> {
20
20
  static model: MsgModel;
21
21
  syncPromise?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { StickerModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 68477 */
18
+ /** @whatsapp 71273 */
19
19
  export declare class StarredStickerCollection extends Collection<StickerModel> {
20
20
  static model: StickerModel;
21
21
  syncNextPage(): any;
@@ -16,7 +16,7 @@
16
16
  import { Wid } from '../misc';
17
17
  import { StatusModel } from '../models';
18
18
  import { BaseCollection } from '.';
19
- /** @whatsapp 22360 */
19
+ /** @whatsapp 798 */
20
20
  export declare class StatusCollection extends BaseCollection<StatusModel> {
21
21
  static model: StatusModel;
22
22
  static idClass: typeof Wid;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { StatusV3Model } from '../models';
17
17
  import { BaseCollection } from '.';
18
- /** @whatsapp 70173 */
18
+ /** @whatsapp 7687 */
19
19
  export declare class StatusV3Collection extends BaseCollection<StatusV3Model> {
20
20
  static model: StatusV3Model;
21
21
  loadMore(e?: any, t?: any, r?: any): any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { StickerModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 16482 */
18
+ /** @whatsapp 42179 */
19
19
  export declare class StickerCollection extends Collection<StickerModel> {
20
20
  static model: StickerModel;
21
21
  fetch(): any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { StickerPackModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 45822 */
18
+ /** @whatsapp 8764 */
19
19
  export declare class StickerPackCollection extends Collection<StickerPackModel> {
20
20
  static model: StickerPackModel;
21
21
  checksum?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { StickerModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 6009 */
18
+ /** @whatsapp 21940 */
19
19
  export declare class StickerSearchCollection extends Collection<StickerModel> {
20
20
  static model: StickerModel;
21
21
  isFetchingData(): boolean;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { TemplateButtonModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 95411 */
18
+ /** @whatsapp 41605 */
19
19
  export declare class TemplateButtonCollection extends Collection<TemplateButtonModel> {
20
20
  static model: TemplateButtonModel;
21
21
  static comparator(): any;
@@ -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
+ /** @whatsapp 77976 */
17
+ export declare enum GROUP_SETTING_TYPE {
18
+ ANNOUNCEMENT = "announcement",
19
+ RESTRICT = "restrict",
20
+ NO_FREQUENTLY_FORWARDED = "no_frequently_forwarded",
21
+ EPHEMERAL = "ephemeral"
22
+ }
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 82735 */
16
+ /** @whatsapp 77976 */
17
17
  export declare enum LogoutReason {
18
18
  USER_INITIATED = "user_initiated",
19
19
  SYNCD_FAILURE = "syncd_failure",
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 90672 */
16
+ /** @whatsapp 56341 */
17
17
  export declare enum OUTWARD_TYPES {
18
18
  IMAGE = "image",
19
19
  VIDEO = "video",
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 88300 */
16
+ /** @whatsapp 11424 */
17
17
  export declare enum SendMsgResult {
18
18
  OK = "OK",
19
19
  ERROR_NETWORK = "ERROR_NETWORK",
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ export * from './GROUP_SETTING_TYPE';
16
17
  export * from './LogoutReason';
17
18
  export * from './OUTWARD_TYPES';
18
19
  export * from './SendMsgResult';
@@ -15,5 +15,5 @@
15
15
  */
16
16
  import { SendMsgResult } from '../enums';
17
17
  import { ChatModel, ModelPropertiesContructor, MsgModel } from '../models';
18
- /** @whatsapp 35339 */
18
+ /** @whatsapp 12862 */
19
19
  export declare function addAndSendMsgToChat(chat: ChatModel, message: ModelPropertiesContructor<MsgModel>): Promise<[Promise<MsgModel>, Promise<SendMsgResult>]>;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ContactModel } from '../models';
17
- /** @whatsapp 38512 */
17
+ /** @whatsapp 93671 */
18
18
  export declare function blockContact(contact: ContactModel): Promise<void>;
19
- /** @whatsapp 38512 */
19
+ /** @whatsapp 93671 */
20
20
  export declare function unblockContact(contact: ContactModel): Promise<void>;
@@ -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 { MsgModel } from '..';
17
+ /** @whatsapp 56346 */
18
+ export declare function createMsgProtobuf(e: MsgModel, t?: {
19
+ [key: string]: any;
20
+ }): Promise<any>;
@@ -25,5 +25,5 @@ export interface LinkPreviewResult {
25
25
  doNotPlayInline: boolean;
26
26
  };
27
27
  }
28
- /** @whatsapp 22750 */
28
+ /** @whatsapp 362 */
29
29
  export declare function fetchLinkPreview(url: string): Promise<null | LinkPreviewResult>;
@@ -15,5 +15,5 @@
15
15
  */
16
16
  import { Wid } from '..';
17
17
  import { ChatModel } from '../models';
18
- /** @whatsapp 62238 */
18
+ /** @whatsapp 42423 */
19
19
  export declare function findChat(wid: Wid): Promise<ChatModel>;
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 78502 */
16
+ /** @whatsapp 23740 */
17
17
  export declare function findFirstWebLink(message: string): undefined | string;
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 96403 */
16
+ /** @whatsapp 98863 */
17
17
  export declare function getOrGenerate(): string;
@@ -14,11 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel, ParticipantModel } from '..';
17
- /** @whatsapp 97449 */
17
+ /** @whatsapp 27251 */
18
18
  export declare function addParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
19
- /** @whatsapp 97449 */
19
+ /** @whatsapp 27251 */
20
20
  export declare function removeParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
21
- /** @whatsapp 97449 */
21
+ /** @whatsapp 27251 */
22
22
  export declare function promoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
23
- /** @whatsapp 97449 */
23
+ /** @whatsapp 27251 */
24
24
  export declare function demoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 82069 */
16
+ /** @whatsapp 95782 */
17
17
  export declare function handleStatusSimpleAck(ackData: any): Promise<any>;
18
- /** @whatsapp 82075 */
18
+ /** @whatsapp 33630 */
19
19
  export declare function handleChatSimpleAck(ackData: any): Promise<any>;
20
- /** @whatsapp 34269 */
20
+ /** @whatsapp 14569 */
21
21
  export declare function handleGroupSimpleAck(ackData: any): Promise<any>;
@@ -15,6 +15,7 @@
15
15
  */
16
16
  export * from './addAndSendMsgToChat';
17
17
  export * from './blockContact';
18
+ export * from './createMsgProtobuf';
18
19
  export * from './fetchLinkPreview';
19
20
  export * from './findChat';
20
21
  export * from './findFirstWebLink';
@@ -27,10 +28,16 @@ export * from './msgFindQuery';
27
28
  export * from './products';
28
29
  export * from './profilePic';
29
30
  export * from './randomId';
31
+ export * from './sendCallSignalingMsg';
30
32
  export * from './sendClear';
31
33
  export * from './sendCreateGroup';
32
34
  export * from './sendDelete';
35
+ export * from './sendExitGroup';
36
+ export * from './sendJoinGroupViaInvite';
33
37
  export * from './sendQueryExists';
38
+ export * from './sendQueryGroupInvite';
39
+ export * from './sendRevokeGroupInviteCode';
34
40
  export * from './sendTextMsgToChat';
41
+ export * from './setGroup';
35
42
  export * from './status';
36
43
  export * from './uploadProductImage';
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 54930 */
16
+ /** @whatsapp 93784 */
17
17
  export declare function isAuthenticated(): boolean;
@@ -14,11 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel, MsgModel } from '../models';
17
- /** @whatsapp 74109 */
17
+ /** @whatsapp 9301 */
18
18
  export declare function markUnread(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
19
- /** @whatsapp 74109 */
19
+ /** @whatsapp 9301 */
20
20
  export declare function sendSeen(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
21
- /** @whatsapp 64850 */
21
+ /** @whatsapp 12785 */
22
22
  export declare function markPlayed(msg: MsgModel): Promise<void>;
23
23
  /**
24
24
  * @whatsapp 2.2146.9:64850
@@ -23,5 +23,5 @@ export interface MsgFindQueryParams {
23
23
  id?: string;
24
24
  participant?: any;
25
25
  }
26
- /** @whatsapp 2495 */
26
+ /** @whatsapp 91626 */
27
27
  export declare function msgFindQuery(direction: 'after' | 'before', params: MsgFindQueryParams): Promise<ModelPropertiesContructor<MsgModel>[]>;
@@ -16,11 +16,11 @@
16
16
  import { ProductModel } from '..';
17
17
  /** @whatsapp 2.2144.10:35339 */
18
18
  export declare function createBusinessCatalog(): Promise<any>;
19
- /** @whatsapp 68793 */
19
+ /** @whatsapp 426 */
20
20
  export declare function addProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
21
- /** @whatsapp 68793 */
21
+ /** @whatsapp 426 */
22
22
  export declare function editProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
23
- /** @whatsapp 68793 */
23
+ /** @whatsapp 426 */
24
24
  export declare function deleteProducts(productIds: string[]): Promise<any>;
25
- /** @whatsapp 68793 */
25
+ /** @whatsapp 426 */
26
26
  export declare function sendProductToChat(...args: any[]): Promise<any>;
@@ -16,6 +16,6 @@
16
16
  import { Wid } from '..';
17
17
  /**
18
18
  * This function can be used to define a group picture or self profile
19
- * @whatsapp 13729
19
+ * @whatsapp 36161
20
20
  */
21
21
  export declare function sendSetPicture(chat: Wid, previewBase64: string, pictureBase64: string): Promise<void>;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 17754 */
16
+ /** @whatsapp 2753 */
17
17
  export declare function randomMessageId(): string;
18
- /** @whatsapp 17754 */
18
+ /** @whatsapp 2753 */
19
19
  export declare function randomId(): string;
@@ -0,0 +1,34 @@
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 { Wid } from '..';
17
+ import { ChatModel } from '../models';
18
+ /** @whatsapp 67935 */
19
+ export declare function sendCallSignalingMsg(data: {
20
+ common: {
21
+ type?: string;
22
+ call_id?: string;
23
+ peer_jid: Wid;
24
+ };
25
+ payload: [
26
+ string,
27
+ {
28
+ 'call-id': string;
29
+ 'call-creator': string;
30
+ count?: any;
31
+ },
32
+ null
33
+ ];
34
+ }, tagId?: string): Promise<ChatModel>;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 67357 */
17
+ /** @whatsapp 59098 */
18
18
  export declare function sendClear(chat: ChatModel, keepStarred?: boolean): Promise<void>;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 53876 */
17
+ /** @whatsapp 75830 */
18
18
  export declare function sendCreateGroup(groupName: string, participants: Wid[], ephemeral?: number, dogfooding?: boolean): Promise<{
19
19
  gid: Wid;
20
20
  participants: {
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 61670 */
17
+ /** @whatsapp 86212 */
18
18
  export declare function sendDelete(chat: ChatModel): Promise<void>;
@@ -0,0 +1,18 @@
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 { ChatModel } from '..';
17
+ /** @whatsapp 94881 */
18
+ export declare function sendExitGroup(group: ChatModel): Promise<void>;
@@ -0,0 +1,18 @@
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 { Wid } from '..';
17
+ /** @whatsapp 65705 */
18
+ export declare function sendJoinGroupViaInvite(code: string): Promise<Wid>;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 66469 */
17
+ /** @whatsapp 54150 */
18
18
  export declare function sendQueryExists(contact: Wid): Promise<{
19
19
  wid: Wid;
20
20
  biz: boolean;