@wppconnect/wa-js 2.7.2 → 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.
Files changed (166) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/contact/functions/getStatus.d.ts +1 -1
  3. package/dist/group/functions/addParticipants.d.ts +20 -1
  4. package/dist/whatsapp/collections/AggReactionsCollection.d.ts +3 -1
  5. package/dist/whatsapp/collections/BaseCollection.d.ts +4 -2
  6. package/dist/whatsapp/collections/BlocklistCollection.d.ts +3 -1
  7. package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +3 -1
  8. package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +3 -1
  9. package/dist/whatsapp/collections/CallCollection.d.ts +1 -0
  10. package/dist/whatsapp/collections/CartCollection.d.ts +3 -1
  11. package/dist/whatsapp/collections/CartItemCollection.d.ts +3 -1
  12. package/dist/whatsapp/collections/CatalogCollection.d.ts +3 -1
  13. package/dist/whatsapp/collections/ChatCollection.d.ts +3 -1
  14. package/dist/whatsapp/collections/ChatstateCollection.d.ts +3 -1
  15. package/dist/whatsapp/collections/Collection.d.ts +6 -2
  16. package/dist/whatsapp/collections/ContactCollection.d.ts +5 -4
  17. package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +3 -1
  18. package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +3 -1
  19. package/dist/whatsapp/collections/LabelCollection.d.ts +3 -1
  20. package/dist/whatsapp/collections/LabelItemCollection.d.ts +3 -1
  21. package/dist/whatsapp/collections/LiveLocationCollection.d.ts +3 -1
  22. package/dist/whatsapp/collections/MsgCollection.d.ts +3 -1
  23. package/dist/whatsapp/collections/MsgInfoCollection.d.ts +3 -1
  24. package/dist/whatsapp/collections/OrderCollection.d.ts +3 -1
  25. package/dist/whatsapp/collections/OrderItemCollection.d.ts +3 -1
  26. package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -0
  27. package/dist/whatsapp/collections/PresenceCollection.d.ts +3 -1
  28. package/dist/whatsapp/collections/ProductCollCollection.d.ts +3 -1
  29. package/dist/whatsapp/collections/ProductCollection.d.ts +3 -1
  30. package/dist/whatsapp/collections/ProductImageCollection.d.ts +3 -1
  31. package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +3 -1
  32. package/dist/whatsapp/collections/QuickReplyCollection.d.ts +3 -1
  33. package/dist/whatsapp/collections/ReactionsCollection.d.ts +3 -1
  34. package/dist/whatsapp/collections/ReactionsSendersCollection.d.ts +3 -1
  35. package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +3 -1
  36. package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -0
  37. package/dist/whatsapp/collections/StarredMsgCollection.d.ts +3 -1
  38. package/dist/whatsapp/collections/StatusV3Collection.d.ts +3 -1
  39. package/dist/whatsapp/collections/StickerCollection.d.ts +3 -1
  40. package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -0
  41. package/dist/whatsapp/collections/StickerSearchCollection.d.ts +3 -1
  42. package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +3 -1
  43. package/dist/whatsapp/enums/ACK.d.ts +3 -0
  44. package/dist/whatsapp/enums/CALL_STATES.d.ts +1 -0
  45. package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +1 -0
  46. package/dist/whatsapp/enums/LogoutReason.d.ts +1 -0
  47. package/dist/whatsapp/enums/MSG_TYPE.d.ts +2 -0
  48. package/dist/whatsapp/enums/SendMsgResult.d.ts +3 -1
  49. package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +3 -1
  50. package/dist/whatsapp/functions/blockContact.d.ts +6 -2
  51. package/dist/whatsapp/functions/createMsgProtobuf.d.ts +3 -1
  52. package/dist/whatsapp/functions/createOrUpdateReactions.d.ts +3 -1
  53. package/dist/whatsapp/functions/encryptAndSendGroupMsg.d.ts +1 -0
  54. package/dist/whatsapp/functions/encryptAndSendMsg.d.ts +1 -0
  55. package/dist/whatsapp/functions/fetchLinkPreview.d.ts +1 -0
  56. package/dist/whatsapp/functions/findChat.d.ts +3 -1
  57. package/dist/whatsapp/functions/findFirstWebLink.d.ts +1 -0
  58. package/dist/whatsapp/functions/genMinimalLinkPreview.d.ts +1 -0
  59. package/dist/whatsapp/functions/generateVideoThumbsAndDuration.d.ts +2 -1
  60. package/dist/whatsapp/functions/getFanOutList.d.ts +1 -0
  61. package/dist/whatsapp/functions/getGroupSenderKeyList.d.ts +1 -0
  62. package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -0
  63. package/dist/whatsapp/functions/groupParticipants.d.ts +12 -4
  64. package/dist/whatsapp/functions/handleAck.d.ts +12 -3
  65. package/dist/whatsapp/functions/index.d.ts +1 -0
  66. package/dist/whatsapp/functions/isAuthenticated.d.ts +2 -0
  67. package/dist/whatsapp/functions/markSeen.d.ts +3 -1
  68. package/dist/whatsapp/functions/mediaTypeFromProtobuf.d.ts +1 -0
  69. package/dist/whatsapp/functions/products.d.ts +12 -4
  70. package/dist/whatsapp/functions/randomId.d.ts +1 -0
  71. package/dist/whatsapp/functions/sendClear.d.ts +3 -1
  72. package/dist/whatsapp/functions/sendDelete.d.ts +3 -1
  73. package/dist/whatsapp/functions/sendExitGroup.d.ts +3 -1
  74. package/dist/whatsapp/functions/sendGroupParticipants.d.ts +42 -0
  75. package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +3 -1
  76. package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +3 -1
  77. package/dist/whatsapp/functions/sendReactionToMsg.d.ts +3 -1
  78. package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +3 -1
  79. package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +3 -1
  80. package/dist/whatsapp/functions/setArchive.d.ts +1 -0
  81. package/dist/whatsapp/functions/setGroup.d.ts +9 -3
  82. package/dist/whatsapp/functions/setPin.d.ts +1 -0
  83. package/dist/whatsapp/functions/status.d.ts +2 -0
  84. package/dist/whatsapp/functions/typeAttributeFromProtobuf.d.ts +3 -1
  85. package/dist/whatsapp/functions/uploadProductImage.d.ts +3 -1
  86. package/dist/whatsapp/functions/uploadThumbnail.d.ts +1 -0
  87. package/dist/whatsapp/misc/Base64.d.ts +3 -1
  88. package/dist/whatsapp/misc/Browser.d.ts +1 -0
  89. package/dist/whatsapp/misc/ChatPresence.d.ts +3 -1
  90. package/dist/whatsapp/misc/Cmd.d.ts +2 -0
  91. package/dist/whatsapp/misc/Conn.d.ts +3 -1
  92. package/dist/whatsapp/misc/Constants.d.ts +1 -0
  93. package/dist/whatsapp/misc/EventEmitter.d.ts +1 -0
  94. package/dist/whatsapp/misc/Features.d.ts +1 -0
  95. package/dist/whatsapp/misc/ImageUtils.d.ts +1 -0
  96. package/dist/whatsapp/misc/Locale.d.ts +1 -0
  97. package/dist/whatsapp/misc/MediaBlobCache.d.ts +6 -2
  98. package/dist/whatsapp/misc/MediaEntry.d.ts +2 -1
  99. package/dist/whatsapp/misc/MediaObject.d.ts +3 -1
  100. package/dist/whatsapp/misc/MediaObjectUtil.d.ts +3 -1
  101. package/dist/whatsapp/misc/MediaPrep.d.ts +3 -1
  102. package/dist/whatsapp/misc/MediaUtils.d.ts +3 -1
  103. package/dist/whatsapp/misc/MsgKey.d.ts +1 -0
  104. package/dist/whatsapp/misc/MsgLoadState.d.ts +6 -2
  105. package/dist/whatsapp/misc/OpaqueData.d.ts +6 -2
  106. package/dist/whatsapp/misc/Socket.d.ts +3 -1
  107. package/dist/whatsapp/misc/Stream.d.ts +3 -1
  108. package/dist/whatsapp/misc/UserPrefs.d.ts +1 -0
  109. package/dist/whatsapp/misc/VCard.d.ts +1 -0
  110. package/dist/whatsapp/misc/Wap.d.ts +2 -0
  111. package/dist/whatsapp/misc/Wid.d.ts +1 -0
  112. package/dist/whatsapp/misc/WidFactory.d.ts +1 -0
  113. package/dist/whatsapp/models/AggReactionsModel.d.ts +2 -0
  114. package/dist/whatsapp/models/AttachMediaModel.d.ts +6 -2
  115. package/dist/whatsapp/models/BlocklistModel.d.ts +6 -2
  116. package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +6 -2
  117. package/dist/whatsapp/models/BusinessProfileModel.d.ts +6 -2
  118. package/dist/whatsapp/models/CallModel.d.ts +2 -0
  119. package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -0
  120. package/dist/whatsapp/models/CartItemModel.d.ts +6 -2
  121. package/dist/whatsapp/models/CartModel.d.ts +6 -2
  122. package/dist/whatsapp/models/CatalogModel.d.ts +6 -2
  123. package/dist/whatsapp/models/ChatPreferenceModel.d.ts +6 -2
  124. package/dist/whatsapp/models/ChatstateModel.d.ts +6 -2
  125. package/dist/whatsapp/models/ConnModel.d.ts +6 -2
  126. package/dist/whatsapp/models/ContactModel.d.ts +6 -2
  127. package/dist/whatsapp/models/ConversionTupleModel.d.ts +6 -2
  128. package/dist/whatsapp/models/EmojiVariantModel.d.ts +6 -2
  129. package/dist/whatsapp/models/GroupMetadataModel.d.ts +6 -2
  130. package/dist/whatsapp/models/LabelItemModel.d.ts +6 -2
  131. package/dist/whatsapp/models/LabelModel.d.ts +6 -2
  132. package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +6 -2
  133. package/dist/whatsapp/models/MediaDataModel.d.ts +6 -2
  134. package/dist/whatsapp/models/Model.d.ts +3 -1
  135. package/dist/whatsapp/models/ModelChatBase.d.ts +3 -1
  136. package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +6 -2
  137. package/dist/whatsapp/models/MsgInfoModel.d.ts +6 -2
  138. package/dist/whatsapp/models/MuteModel.d.ts +6 -2
  139. package/dist/whatsapp/models/OrderItemModel.d.ts +6 -2
  140. package/dist/whatsapp/models/OrderModel.d.ts +6 -2
  141. package/dist/whatsapp/models/ParticipantModel.d.ts +6 -2
  142. package/dist/whatsapp/models/PresenceModel.d.ts +6 -2
  143. package/dist/whatsapp/models/ProductCollModel.d.ts +6 -2
  144. package/dist/whatsapp/models/ProductImageModel.d.ts +6 -2
  145. package/dist/whatsapp/models/ProductMessageListModel.d.ts +6 -2
  146. package/dist/whatsapp/models/ProductModel.d.ts +6 -2
  147. package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +6 -2
  148. package/dist/whatsapp/models/QuickReplyModel.d.ts +6 -2
  149. package/dist/whatsapp/models/ReactionsModel.d.ts +2 -0
  150. package/dist/whatsapp/models/ReactionsSendersModel.d.ts +2 -0
  151. package/dist/whatsapp/models/RecentStickerModel.d.ts +6 -2
  152. package/dist/whatsapp/models/ReplyButtonModel.d.ts +6 -2
  153. package/dist/whatsapp/models/StatusModel.d.ts +6 -2
  154. package/dist/whatsapp/models/StatusV3Model.d.ts +6 -2
  155. package/dist/whatsapp/models/StickerModel.d.ts +2 -0
  156. package/dist/whatsapp/models/StickerPackModel.d.ts +6 -2
  157. package/dist/whatsapp/models/StreamModel.d.ts +6 -2
  158. package/dist/whatsapp/models/TemplateButtonModel.d.ts +6 -2
  159. package/dist/whatsapp/models/UnreadMentionModel.d.ts +6 -2
  160. package/dist/whatsapp/models/WebCallModel.d.ts +2 -0
  161. package/dist/whatsapp/multidevice/adv.d.ts +1 -0
  162. package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -0
  163. package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -0
  164. package/dist/whatsapp/stores.d.ts +76 -25
  165. package/dist/wppconnect-wa.js +1 -1
  166. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## 2.7.3 (2022-06-18)
2
+
1
3
  ## 2.7.2 (2022-06-17)
2
4
 
3
5
  ### Bug Fixes
@@ -24,4 +24,4 @@ import { Wid } from '../../whatsapp';
24
24
  *
25
25
  * @category Chat
26
26
  */
27
- export declare function getStatus(contactId: string | Wid): Promise<import("../../whatsapp").StatusModel>;
27
+ export declare function getStatus(contactId: string | Wid): Promise<string | null>;
@@ -14,4 +14,23 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function addParticipants(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<void>;
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
+ }>;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { AggReactionsModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 81130 */
18
+ /** @whatsapp 81130
19
+ * @whatsapp 981130 >= 2.2222.8
20
+ */
19
21
  export declare class AggReactionsCollection extends Collection<AggReactionsModel> {
20
22
  static model: AggReactionsModel;
21
23
  static comparator(): number;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { Stringable } from '../../types';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 1255 */
18
+ /** @whatsapp 1255
19
+ * @whatsapp 801255 >= 2.2222.8
20
+ */
19
21
  export declare class BaseCollection<C, A = C | C[]> extends Collection<C> {
20
22
  static cachePolicy: {
21
23
  id: string;
@@ -38,7 +40,7 @@ export declare class BaseCollection<C, A = C | C[]> extends Collection<C> {
38
40
  set?: boolean;
39
41
  }): Promise<C>;
40
42
  handle(values: A): void;
41
- gadd(id: C | Stringable): C;
43
+ gadd(id: C | Stringable, options?: any): C;
42
44
  gaddUp(id: C | Stringable): C;
43
45
  delete(): void;
44
46
  isStateStale(id: Stringable): boolean;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { BlocklistModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 32826 */
18
+ /** @whatsapp 32826
19
+ * @whatsapp 132826 >= 2.2222.8
20
+ */
19
21
  export declare class BlocklistCollection extends Collection<BlocklistModel> {
20
22
  static model: BlocklistModel;
21
23
  blockContact(e?: any): any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { BusinessCategoriesResultModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 3754 */
18
+ /** @whatsapp 3754
19
+ * @whatsapp 203754 >= 2.2222.8
20
+ */
19
21
  export declare class BusinessCategoriesResultCollection extends Collection<BusinessCategoriesResultModel> {
20
22
  static model: BusinessCategoriesResultModel;
21
23
  static staleCollection?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { BusinessProfileModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 93581 */
18
+ /** @whatsapp 93581
19
+ * @whatsapp 493581 >= 2.2222.8
20
+ */
19
21
  export declare class BusinessProfileCollection extends Collection<BusinessProfileModel> {
20
22
  static model: BusinessProfileModel;
21
23
  static staleCollection?: any;
@@ -17,6 +17,7 @@ import { CallModel } from '../models';
17
17
  import { Collection } from './Collection';
18
18
  /** @whatsapp 60868
19
19
  * @whatsapp 31218 >= 2.2204.13
20
+ * @whatsapp 160868 >= 2.2222.8
20
21
  */
21
22
  export declare class CallCollection extends Collection<CallModel> {
22
23
  static model: CallModel;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { CartModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 12392 */
18
+ /** @whatsapp 12392
19
+ * @whatsapp 612392 >= 2.2222.8
20
+ */
19
21
  export declare class CartCollection extends Collection<CartModel> {
20
22
  static model: CartModel;
21
23
  static cachePolicy?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { CartItemModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 57037 */
18
+ /** @whatsapp 57037
19
+ * @whatsapp 457037 >= 2.2222.8
20
+ */
19
21
  export declare class CartItemCollection extends Collection<CartItemModel> {
20
22
  static model: CartItemModel;
21
23
  }
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { CatalogModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 99989 */
18
+ /** @whatsapp 99989
19
+ * @whatsapp 599989 >= 2.2222.8
20
+ */
19
21
  export declare class CatalogCollection extends Collection<CatalogModel> {
20
22
  static model: CatalogModel;
21
23
  static staleCollection?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { ChatModel } from '../models';
17
17
  import { BaseCollection } from './BaseCollection';
18
- /** @whatsapp 69951 */
18
+ /** @whatsapp 69951
19
+ * @whatsapp 669951 >= 2.2222.8
20
+ */
19
21
  export declare class ChatCollection extends BaseCollection<ChatModel> {
20
22
  static model: ChatModel;
21
23
  static comparator(): any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { ChatstateModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 30000 */
18
+ /** @whatsapp 30000
19
+ * @whatsapp 330000 >= 2.2222.8
20
+ */
19
21
  export declare class ChatstateCollection extends Collection<ChatstateModel> {
20
22
  static model: ChatstateModel;
21
23
  }
@@ -21,10 +21,14 @@ interface Option {
21
21
  merge: boolean;
22
22
  remove: boolean;
23
23
  }
24
- /** @whatsapp 31727 */
24
+ /** @whatsapp 31727
25
+ * @whatsapp 631727 >= 2.2222.8
26
+ */
25
27
  export declare interface Collection<M> extends EventEmitter, Pick<Array<M>, 'indexOf' | 'lastIndexOf' | 'every' | 'some' | 'forEach' | 'map' | 'filter' | 'reduce' | 'slice'> {
26
28
  }
27
- /** @whatsapp 31727 */
29
+ /** @whatsapp 31727
30
+ * @whatsapp 631727 >= 2.2222.8
31
+ */
28
32
  export declare class Collection<M, A = M | M[]> extends EventEmitter {
29
33
  static model: any;
30
34
  static comparator: (a: any, b: any) => number;
@@ -14,11 +14,12 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ContactModel } from '../models';
17
- import { Collection } from './Collection';
18
- /** @whatsapp 19380 */
19
- export declare class ContactCollection extends Collection<ContactModel> {
17
+ import { BaseCollection } from './BaseCollection';
18
+ /** @whatsapp 19380
19
+ * @whatsapp 719380 >= 2.2222.8
20
+ */
21
+ export declare class ContactCollection extends BaseCollection<ContactModel> {
20
22
  static model: ContactModel;
21
- static cachePolicy?: any;
22
23
  checksum?: any;
23
24
  ensureSorted(): any;
24
25
  contactAdded(e?: any): any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { EmojiVariantModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 13185 */
18
+ /** @whatsapp 13185
19
+ * @whatsapp 513185 >= 2.2222.8
20
+ */
19
21
  export declare class EmojiVariantCollection extends Collection<EmojiVariantModel> {
20
22
  static model: EmojiVariantModel;
21
23
  static cachePolicy?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { GroupMetadataModel } from '../models';
17
17
  import { BaseCollection } from '.';
18
- /** @whatsapp 63928 */
18
+ /** @whatsapp 63928
19
+ * @whatsapp 963928 >= 2.2222.8
20
+ */
19
21
  export declare class GroupMetadataCollection extends BaseCollection<GroupMetadataModel> {
20
22
  static model: GroupMetadataModel;
21
23
  handlePendingInvite(): any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { ChatModel, LabelModel } from '../models';
17
17
  import { BaseCollection } from './BaseCollection';
18
- /** @whatsapp 16770 */
18
+ /** @whatsapp 16770
19
+ * @whatsapp 316770 >= 2.2222.8
20
+ */
19
21
  export declare class LabelCollection extends BaseCollection<LabelModel> {
20
22
  static model: LabelModel;
21
23
  static staleCollection?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { LabelItemModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 34741 */
18
+ /** @whatsapp 34741
19
+ * @whatsapp 634741 >= 2.2222.8
20
+ */
19
21
  export declare class LabelItemCollection extends Collection<LabelItemModel> {
20
22
  static model: LabelItemModel;
21
23
  }
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { LiveLocationModel } from '../models';
17
17
  import { BaseCollection } from '.';
18
- /** @whatsapp 85865 */
18
+ /** @whatsapp 85865
19
+ * @whatsapp 985865 >= 2.2222.8
20
+ */
19
21
  export declare class LiveLocationCollection extends BaseCollection<LiveLocationModel> {
20
22
  static model: LiveLocationModel;
21
23
  static staleCollection?: any;
@@ -16,7 +16,9 @@
16
16
  import { Wid } from '..';
17
17
  import { ModelPropertiesContructor, MsgModel } from '../models';
18
18
  import { BaseCollection } from './BaseCollection';
19
- /** @whatsapp 59871 */
19
+ /** @whatsapp 59871
20
+ * @whatsapp 559871 >= 2.2222.8
21
+ */
20
22
  export declare class MsgCollection extends BaseCollection<MsgModel> {
21
23
  static model: MsgModel;
22
24
  lastReceivedReceipt?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { MsgInfoModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 17972 */
18
+ /** @whatsapp 17972
19
+ * @whatsapp 617972 >= 2.2222.8
20
+ */
19
21
  export declare class MsgInfoCollection extends Collection<MsgInfoModel> {
20
22
  static model: MsgInfoModel;
21
23
  static staleCollection?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { OrderModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 84312 */
18
+ /** @whatsapp 84312
19
+ * @whatsapp 584312 >= 2.2222.8
20
+ */
19
21
  export declare class OrderCollection extends Collection<OrderModel> {
20
22
  static model: OrderModel;
21
23
  static staleCollection?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { OrderItemModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 23412 */
18
+ /** @whatsapp 23412
19
+ * @whatsapp 823412 >= 2.2222.8
20
+ */
19
21
  export declare class OrderItemCollection extends Collection<OrderItemModel> {
20
22
  static model: OrderItemModel;
21
23
  }
@@ -17,6 +17,7 @@ import { ParticipantModel } from '../models';
17
17
  import { Collection } from './Collection';
18
18
  /** @whatsapp 96091
19
19
  * @whatsapp 54311 >= 2.2212.8
20
+ * @whatsapp 754311 >= 2.2222.8
20
21
  */
21
22
  export declare class ParticipantCollection extends Collection<ParticipantModel> {
22
23
  static model: ParticipantModel;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { PresenceModel } from '../models';
17
17
  import { BaseCollection } from './BaseCollection';
18
- /** @whatsapp 68315 */
18
+ /** @whatsapp 68315
19
+ * @whatsapp 868315 >= 2.2222.8
20
+ */
19
21
  export declare class PresenceCollection extends BaseCollection<PresenceModel> {
20
22
  static model: PresenceModel;
21
23
  static staleCollection?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { ProductCollModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 12496 */
18
+ /** @whatsapp 12496
19
+ * @whatsapp 912496 >= 2.2222.8
20
+ */
19
21
  export declare class ProductCollCollection extends Collection<ProductCollModel> {
20
22
  static model: ProductCollModel;
21
23
  static staleCollection?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { ProductModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 5641 */
18
+ /** @whatsapp 5641
19
+ * @whatsapp 105641 >= 2.2222.8
20
+ */
19
21
  export declare class ProductCollection extends Collection<ProductModel> {
20
22
  static model: ProductModel;
21
23
  getProductModels(e?: boolean): any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { ProductImageModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 7514 */
18
+ /** @whatsapp 7514
19
+ * @whatsapp 307514 >= 2.2222.8
20
+ */
19
21
  export declare class ProductImageCollection extends Collection<ProductImageModel> {
20
22
  static model: ProductImageModel;
21
23
  }
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { ProfilePicThumbModel } from '../models';
17
17
  import { BaseCollection } from './BaseCollection';
18
- /** @whatsapp 82039 */
18
+ /** @whatsapp 82039
19
+ * @whatsapp 582039 >= 2.2222.8
20
+ */
19
21
  export declare class ProfilePicThumbCollection extends BaseCollection<ProfilePicThumbModel> {
20
22
  static model: ProfilePicThumbModel;
21
23
  static staleCollection?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { QuickReplyModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 99662 */
18
+ /** @whatsapp 99662
19
+ * @whatsapp 999662 >= 2.2222.8
20
+ */
19
21
  export declare class QuickReplyCollection extends Collection<QuickReplyModel> {
20
22
  static model: QuickReplyModel;
21
23
  checksum?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { ReactionsModel } from '../models';
17
17
  import { BaseCollection } from './BaseCollection';
18
- /** @whatsapp 57162 */
18
+ /** @whatsapp 57162
19
+ * @whatsapp 257162 >= 2.2222.8
20
+ */
19
21
  export declare class ReactionsCollection extends BaseCollection<ReactionsModel> {
20
22
  static model: ReactionsModel;
21
23
  static comparator(): any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { ReactionsModel, ReactionsSendersModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 81130 */
18
+ /** @whatsapp 81130
19
+ * @whatsapp 981130 >= 2.2222.8
20
+ */
19
21
  export declare class ReactionsSendersCollection extends Collection<ReactionsModel> {
20
22
  static model: ReactionsSendersModel;
21
23
  static comparator(): number;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { RecentEmojiModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 92671 */
18
+ /** @whatsapp 92671
19
+ * @whatsapp 492671 >= 2.2222.8
20
+ */
19
21
  export declare class RecentEmojiCollection extends Collection<RecentEmojiModel> {
20
22
  static cachePolicy?: any;
21
23
  static model: RecentEmojiModel;
@@ -17,6 +17,7 @@ import { StickerModel } from '../models';
17
17
  import { Collection } from './Collection';
18
18
  /** @whatsapp 49264
19
19
  * @whatsapp 91692 >= 2.2212.8
20
+ * @whatsapp 191692 >= 2.2222.8
20
21
  */
21
22
  export declare class RecentStickerCollection extends Collection<StickerModel> {
22
23
  static model: StickerModel;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { MsgModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 19011 */
18
+ /** @whatsapp 19011
19
+ * @whatsapp 719011 >= 2.2222.8
20
+ */
19
21
  export declare class StarredMsgCollection extends Collection<MsgModel> {
20
22
  static model: MsgModel;
21
23
  syncPromise?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { StatusV3Model } from '../models';
17
17
  import { BaseCollection } from '.';
18
- /** @whatsapp 59387 */
18
+ /** @whatsapp 59387
19
+ * @whatsapp 459387 >= 2.2222.8
20
+ */
19
21
  export declare class StatusV3Collection extends BaseCollection<StatusV3Model> {
20
22
  static model: StatusV3Model;
21
23
  loadMore(e?: any, t?: any, r?: any): any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { StickerModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 67963 */
18
+ /** @whatsapp 67963
19
+ * @whatsapp 767963 >= 2.2222.8
20
+ */
19
21
  export declare class StickerCollection extends Collection<StickerModel> {
20
22
  static model: StickerModel;
21
23
  fetch(): any;
@@ -17,6 +17,7 @@ import { StickerPackModel } from '../models';
17
17
  import { Collection } from './Collection';
18
18
  /** @whatsapp 44333
19
19
  * @whatsapp 66299 >= 2.2212.8
20
+ * @whatsapp 366299 >= 2.2222.8
20
21
  */
21
22
  export declare class StickerPackCollection extends Collection<StickerPackModel> {
22
23
  static model: StickerPackModel;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { StickerModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 45068 */
18
+ /** @whatsapp 45068
19
+ * @whatsapp 545068 >= 2.2222.8
20
+ */
19
21
  export declare class StickerSearchCollection extends Collection<StickerModel> {
20
22
  static model: StickerModel;
21
23
  isFetchingData(): boolean;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { TemplateButtonModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 82988 */
18
+ /** @whatsapp 82988
19
+ * @whatsapp 682988 >= 2.2222.8
20
+ */
19
21
  export declare class TemplateButtonCollection extends Collection<TemplateButtonModel> {
20
22
  static model: TemplateButtonModel;
21
23
  static comparator(): any;
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 35470
17
17
  * @whatsapp 69618 >= 2.2204.13
18
+ * @whatsapp 535470 >= 2.2222.8
18
19
  */
19
20
  export declare enum ACK {
20
21
  MD_DOWNGRADE = -7,
@@ -33,6 +34,7 @@ export declare enum ACK {
33
34
  }
34
35
  /** @whatsapp 35470
35
36
  * @whatsapp 69618 >= 2.2204.13
37
+ * @whatsapp 535470 >= 2.2222.8
36
38
  */
37
39
  export declare enum EDIT_ATTR {
38
40
  SENDER_REVOKE = 7,
@@ -40,6 +42,7 @@ export declare enum EDIT_ATTR {
40
42
  }
41
43
  /** @whatsapp 35470
42
44
  * @whatsapp 69618 >= 2.2204.13
45
+ * @whatsapp 535470 >= 2.2222.8
43
46
  */
44
47
  export declare enum ACK_STRING {
45
48
  SENDER = "sender",
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /**
17
17
  * @whatsapp 49835
18
+ * @whatsapp 749835 >= 2.2222.8
18
19
  */
19
20
  export declare enum CALL_STATES {
20
21
  INCOMING_RING = "INCOMING_RING",
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 12380
17
17
  * @whatsapp 69618 >= 2.2204.13
18
+ * @whatsapp 312380 >= 2.2222.8
18
19
  */
19
20
  export declare enum GROUP_SETTING_TYPE {
20
21
  ANNOUNCEMENT = "announcement",
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 83578
17
17
  * @whatsapp 88950 >= 2.2218.4
18
+ * @whatsapp 788950 >= 2.2222.8
18
19
  */
19
20
  export declare enum LogoutReason {
20
21
  USER_INITIATED = "user_initiated",
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 15461
17
17
  * @whatsapp 69618 >= 2.2204.13
18
+ * @whatsapp 115461 >= 2.2222.8
18
19
  */
19
20
  export declare enum MSG_TYPE {
20
21
  NOTIFICATION = "notification",
@@ -54,5 +55,6 @@ export declare enum MSG_TYPE {
54
55
  }
55
56
  /** @whatsapp 15461
56
57
  * @whatsapp 69618 >= 2.2204.13
58
+ * @whatsapp 115461 >= 2.2222.8
57
59
  */
58
60
  export declare const SYSTEM_MESSAGE_TYPES: string[];
@@ -13,7 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 13705 */
16
+ /** @whatsapp 13705
17
+ * @whatsapp 413705 >= 2.2222.8
18
+ */
17
19
  export declare enum SendMsgResult {
18
20
  OK = "OK",
19
21
  ERROR_NETWORK = "ERROR_NETWORK",
@@ -15,5 +15,7 @@
15
15
  */
16
16
  import { SendMsgResult } from '../enums';
17
17
  import { ChatModel, ModelPropertiesContructor, MsgModel } from '../models';
18
- /** @whatsapp 75887 */
18
+ /** @whatsapp 75887
19
+ * @whatsapp 975887 >= 2.2222.8
20
+ */
19
21
  export declare function addAndSendMsgToChat(chat: ChatModel, message: ModelPropertiesContructor<MsgModel>): Promise<[Promise<MsgModel>, Promise<SendMsgResult>]>;
@@ -14,7 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ContactModel } from '../models';
17
- /** @whatsapp 80140 */
17
+ /** @whatsapp 80140
18
+ * @whatsapp 780140 >= 2.2222.8
19
+ */
18
20
  export declare function blockContact(contact: ContactModel): Promise<void>;
19
- /** @whatsapp 80140 */
21
+ /** @whatsapp 80140
22
+ * @whatsapp 780140 >= 2.2222.8
23
+ */
20
24
  export declare function unblockContact(contact: ContactModel): Promise<void>;
@@ -14,7 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { MsgModel } from '..';
17
- /** @whatsapp 6565 */
17
+ /** @whatsapp 6565
18
+ * @whatsapp 606565 >= 2.2222.8
19
+ */
18
20
  export declare function createMsgProtobuf(e: MsgModel, t?: {
19
21
  [key: string]: any;
20
22
  }): {