@wppconnect/wa-js 1.0.7 → 1.0.11

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 (150) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/chat/Chat.d.ts +76 -10
  3. package/dist/chat/types.d.ts +88 -1
  4. package/dist/contact/Contact.d.ts +26 -0
  5. package/dist/contact/index.d.ts +20 -0
  6. package/dist/contact/types.d.ts +18 -0
  7. package/dist/{whatsapp/enums/TextFontStyle.d.ts → enums.d.ts} +0 -3
  8. package/dist/group/Group.d.ts +9 -0
  9. package/dist/index.d.ts +1 -0
  10. package/dist/internal.d.ts +1 -0
  11. package/dist/status/Status.d.ts +1 -6
  12. package/dist/status/types.d.ts +1 -1
  13. package/dist/{whatsapp/misc/Stringable.d.ts → types.d.ts} +0 -0
  14. package/dist/util/errors.d.ts +3 -1
  15. package/dist/whatsapp/collections/BlocklistCollection.d.ts +1 -1
  16. package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +1 -1
  17. package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +1 -1
  18. package/dist/whatsapp/collections/ButtonCollection.d.ts +1 -1
  19. package/dist/whatsapp/collections/CallCollection.d.ts +1 -1
  20. package/dist/whatsapp/collections/CartCollection.d.ts +1 -1
  21. package/dist/whatsapp/collections/CartItemCollection.d.ts +1 -1
  22. package/dist/whatsapp/collections/CatalogCollection.d.ts +1 -1
  23. package/dist/whatsapp/collections/ChatCollection.d.ts +1 -1
  24. package/dist/whatsapp/collections/ChatstateCollection.d.ts +1 -1
  25. package/dist/whatsapp/collections/Collection.d.ts +4 -3
  26. package/dist/whatsapp/collections/CollectionCache.d.ts +2 -2
  27. package/dist/whatsapp/collections/ContactCollection.d.ts +1 -1
  28. package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +1 -1
  29. package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +1 -1
  30. package/dist/whatsapp/collections/LabelCollection.d.ts +1 -1
  31. package/dist/whatsapp/collections/LabelItemCollection.d.ts +1 -1
  32. package/dist/whatsapp/collections/LiveLocationCollection.d.ts +1 -1
  33. package/dist/whatsapp/collections/MsgCollection.d.ts +1 -1
  34. package/dist/whatsapp/collections/MsgInfoCollection.d.ts +1 -1
  35. package/dist/whatsapp/collections/MuteCollection.d.ts +1 -1
  36. package/dist/whatsapp/collections/OrderCollection.d.ts +1 -1
  37. package/dist/whatsapp/collections/OrderItemCollection.d.ts +1 -1
  38. package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -1
  39. package/dist/whatsapp/collections/PresenceCollection.d.ts +1 -1
  40. package/dist/whatsapp/collections/ProductCollCollection.d.ts +1 -1
  41. package/dist/whatsapp/collections/ProductCollection.d.ts +1 -1
  42. package/dist/whatsapp/collections/ProductImageCollection.d.ts +1 -1
  43. package/dist/whatsapp/collections/ProductMessageListCollection.d.ts +1 -1
  44. package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +1 -1
  45. package/dist/whatsapp/collections/QuickReplyCollection.d.ts +1 -1
  46. package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +1 -1
  47. package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -1
  48. package/dist/whatsapp/collections/StarredMsgCollection.d.ts +1 -1
  49. package/dist/whatsapp/collections/StarredStickerCollection.d.ts +1 -1
  50. package/dist/whatsapp/collections/StatusCollection.d.ts +1 -1
  51. package/dist/whatsapp/collections/StatusV3Collection.d.ts +1 -1
  52. package/dist/whatsapp/collections/StickerCollection.d.ts +1 -1
  53. package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -1
  54. package/dist/whatsapp/collections/StickerSearchCollection.d.ts +1 -1
  55. package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +1 -1
  56. package/dist/whatsapp/enums/LogoutReason.d.ts +1 -1
  57. package/dist/whatsapp/enums/OUTWARD_TYPES.d.ts +26 -0
  58. package/dist/whatsapp/enums/SendMsgResult.d.ts +1 -1
  59. package/dist/whatsapp/enums/index.d.ts +1 -1
  60. package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +1 -1
  61. package/dist/whatsapp/functions/blockContact.d.ts +2 -2
  62. package/dist/whatsapp/functions/findChat.d.ts +1 -1
  63. package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -1
  64. package/dist/whatsapp/functions/groupParticipants.d.ts +4 -4
  65. package/dist/whatsapp/functions/index.d.ts +2 -0
  66. package/dist/whatsapp/functions/isAuthenticated.d.ts +1 -1
  67. package/dist/whatsapp/functions/msgFindQuery.d.ts +1 -1
  68. package/dist/whatsapp/functions/randomId.d.ts +2 -2
  69. package/dist/whatsapp/functions/sendClear.d.ts +1 -1
  70. package/dist/whatsapp/functions/sendCreateGroup.d.ts +26 -0
  71. package/dist/whatsapp/functions/sendDelete.d.ts +1 -1
  72. package/dist/whatsapp/functions/sendQueryExists.d.ts +21 -0
  73. package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -1
  74. package/dist/whatsapp/misc/Base64.d.ts +1 -1
  75. package/dist/whatsapp/misc/Browser.d.ts +1 -1
  76. package/dist/whatsapp/misc/ClockSkew.d.ts +1 -1
  77. package/dist/whatsapp/misc/Cmd.d.ts +2 -5
  78. package/dist/whatsapp/misc/Conn.d.ts +1 -1
  79. package/dist/whatsapp/misc/Constants.d.ts +1 -1
  80. package/dist/whatsapp/misc/EventEmitter.d.ts +1 -1
  81. package/dist/whatsapp/misc/Features.d.ts +1 -1
  82. package/dist/whatsapp/misc/ImageUtils.d.ts +1 -1
  83. package/dist/whatsapp/misc/Locale.d.ts +20 -0
  84. package/dist/whatsapp/misc/MediaObject.d.ts +64 -0
  85. package/dist/whatsapp/misc/MediaObjectUtil.d.ts +20 -0
  86. package/dist/whatsapp/misc/MediaPrep.d.ts +45 -0
  87. package/dist/whatsapp/misc/MediaUtils.d.ts +1 -1
  88. package/dist/whatsapp/misc/MsgKey.d.ts +1 -1
  89. package/dist/whatsapp/misc/MsgLoadState.d.ts +2 -2
  90. package/dist/whatsapp/misc/OpaqueData.d.ts +39 -0
  91. package/dist/whatsapp/misc/State.d.ts +1 -1
  92. package/dist/whatsapp/misc/UserPrefs.d.ts +1 -1
  93. package/dist/whatsapp/misc/Wid.d.ts +1 -1
  94. package/dist/whatsapp/misc/WidFactory.d.ts +1 -1
  95. package/dist/whatsapp/misc/index.d.ts +5 -1
  96. package/dist/whatsapp/models/AttachMediaModel.d.ts +2 -2
  97. package/dist/whatsapp/models/BlocklistModel.d.ts +2 -2
  98. package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +2 -2
  99. package/dist/whatsapp/models/BusinessProfileModel.d.ts +2 -2
  100. package/dist/whatsapp/models/CallModel.d.ts +2 -2
  101. package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -2
  102. package/dist/whatsapp/models/CartItemModel.d.ts +2 -2
  103. package/dist/whatsapp/models/CartModel.d.ts +2 -2
  104. package/dist/whatsapp/models/CatalogModel.d.ts +2 -2
  105. package/dist/whatsapp/models/ChatModel.d.ts +12 -6
  106. package/dist/whatsapp/models/ChatPreferenceModel.d.ts +2 -2
  107. package/dist/whatsapp/models/ChatstateModel.d.ts +2 -2
  108. package/dist/whatsapp/models/ConnModel.d.ts +2 -2
  109. package/dist/whatsapp/models/ContactModel.d.ts +2 -2
  110. package/dist/whatsapp/models/ConversionTupleModel.d.ts +2 -2
  111. package/dist/whatsapp/models/EmojiVariantModel.d.ts +2 -2
  112. package/dist/whatsapp/models/GroupMetadataModel.d.ts +2 -2
  113. package/dist/whatsapp/models/LabelItemModel.d.ts +2 -2
  114. package/dist/whatsapp/models/LabelModel.d.ts +2 -2
  115. package/dist/whatsapp/models/LiveLocationModel.d.ts +2 -2
  116. package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +2 -2
  117. package/dist/whatsapp/models/MediaDataModel.d.ts +4 -3
  118. package/dist/whatsapp/models/Model.d.ts +3 -2
  119. package/dist/whatsapp/models/ModelChatBase.d.ts +1 -1
  120. package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +2 -2
  121. package/dist/whatsapp/models/MsgInfoModel.d.ts +2 -2
  122. package/dist/whatsapp/models/MsgModel.d.ts +6 -6
  123. package/dist/whatsapp/models/MuteModel.d.ts +2 -2
  124. package/dist/whatsapp/models/OrderItemModel.d.ts +2 -2
  125. package/dist/whatsapp/models/OrderModel.d.ts +2 -2
  126. package/dist/whatsapp/models/ParticipantModel.d.ts +2 -2
  127. package/dist/whatsapp/models/ProductCollModel.d.ts +2 -2
  128. package/dist/whatsapp/models/ProductImageModel.d.ts +2 -2
  129. package/dist/whatsapp/models/ProductModel.d.ts +2 -2
  130. package/dist/whatsapp/models/Product_listModel.d.ts +2 -2
  131. package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +2 -2
  132. package/dist/whatsapp/models/QuickReplyModel.d.ts +2 -2
  133. package/dist/whatsapp/models/RecentEmojiModel.d.ts +2 -2
  134. package/dist/whatsapp/models/RecentStickerModel.d.ts +2 -2
  135. package/dist/whatsapp/models/ReplyButtonModel.d.ts +2 -2
  136. package/dist/whatsapp/models/StateModel.d.ts +2 -2
  137. package/dist/whatsapp/models/StatusModel.d.ts +2 -2
  138. package/dist/whatsapp/models/StatusV3Model.d.ts +2 -2
  139. package/dist/whatsapp/models/StickerModel.d.ts +2 -2
  140. package/dist/whatsapp/models/StickerPackModel.d.ts +2 -2
  141. package/dist/whatsapp/models/TemplateButtonModel.d.ts +2 -2
  142. package/dist/whatsapp/models/UnreadMentionModel.d.ts +2 -2
  143. package/dist/whatsapp/models/WebCallModel.d.ts +2 -2
  144. package/dist/whatsapp/multidevice/adv.d.ts +1 -1
  145. package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -1
  146. package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -1
  147. package/dist/whatsapp/stores.d.ts +29 -29
  148. package/dist/wppconnect-wa.js +1 -1
  149. package/dist/wppconnect-wa.js.LICENSE.txt +9 -0
  150. package/package.json +17 -13
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ParticipantModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2140.7:16748 */
18
+ /** @whatsapp 2.2144.8:16748 */
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 2.2140.7:48327 */
18
+ /** @whatsapp 2.2144.8:48327 */
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 2.2140.7:63875 */
18
+ /** @whatsapp 2.2144.8:63875 */
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 2.2140.7:26491 */
18
+ /** @whatsapp 2.2144.8:26491 */
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 2.2140.7:55845 */
18
+ /** @whatsapp 2.2144.8:55845 */
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 { Product_listModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2140.7:97038 */
18
+ /** @whatsapp 2.2144.8:97038 */
19
19
  export declare class ProductMessageListCollection extends Collection<Product_listModel> {
20
20
  static model: Product_listModel;
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 2.2140.7:3165 */
18
+ /** @whatsapp 2.2144.8:3165 */
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 2.2140.7:65963 */
18
+ /** @whatsapp 2.2144.8:60123 */
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 2.2140.7:30462 */
18
+ /** @whatsapp 2.2144.8:30462 */
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 2.2140.7:27686 */
18
+ /** @whatsapp 2.2144.8:27686 */
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 2.2140.7:30118 */
18
+ /** @whatsapp 2.2144.8:30118 */
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 2.2140.7:68477 */
18
+ /** @whatsapp 2.2144.8:68477 */
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 { Collection } from './Collection';
19
- /** @whatsapp 2.2140.7:22360 */
19
+ /** @whatsapp 2.2144.8:22360 */
20
20
  export declare class StatusCollection extends Collection<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 { CollectionCache } from '.';
18
- /** @whatsapp 2.2140.7:83125 */
18
+ /** @whatsapp 2.2144.8:83125 */
19
19
  export declare class StatusV3Collection extends CollectionCache<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 2.2140.7:16482 */
18
+ /** @whatsapp 2.2144.8:16482 */
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 2.2140.7:45822 */
18
+ /** @whatsapp 2.2144.8:45822 */
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 2.2140.7:6009 */
18
+ /** @whatsapp 2.2144.8:6009 */
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 2.2140.7:95411 */
18
+ /** @whatsapp 2.2144.8:95411 */
19
19
  export declare class TemplateButtonCollection extends Collection<TemplateButtonModel> {
20
20
  static model: TemplateButtonModel;
21
21
  static comparator(): any;
@@ -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 2.2140.7:45634 */
16
+ /** @whatsapp 2.2144.8:82735 */
17
17
  export declare enum LogoutReason {
18
18
  USER_INITIATED = "user_initiated",
19
19
  SYNCD_FAILURE = "syncd_failure",
@@ -0,0 +1,26 @@
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 2.2144.8:90672 */
17
+ export declare enum OUTWARD_TYPES {
18
+ IMAGE = "image",
19
+ VIDEO = "video",
20
+ AUDIO = "audio",
21
+ PTT = "ptt",
22
+ STICKER = "sticker",
23
+ DOCUMENT = "document",
24
+ PRODUCT = "product",
25
+ UNKNOWN = "unknown"
26
+ }
@@ -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 2.2140.7:88300 */
16
+ /** @whatsapp 2.2144.8:88300 */
17
17
  export declare enum SendMsgResult {
18
18
  OK = "OK",
19
19
  ERROR_NETWORK = "ERROR_NETWORK",
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export * from './LogoutReason';
17
+ export * from './OUTWARD_TYPES';
17
18
  export * from './SendMsgResult';
18
- export * from './TextFontStyle';
@@ -15,5 +15,5 @@
15
15
  */
16
16
  import { SendMsgResult } from '../enums';
17
17
  import { ChatModel, ModelPropertiesContructor, MsgModel } from '../models';
18
- /** @whatsapp 2.2140.7:35339 */
18
+ /** @whatsapp 2.2144.8:35339 */
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 2.2140.7:38512 */
17
+ /** @whatsapp 2.2144.8:38512 */
18
18
  export declare function blockContact(contact: ContactModel): Promise<void>;
19
- /** @whatsapp 2.2140.7:38512 */
19
+ /** @whatsapp 2.2144.8:38512 */
20
20
  export declare function unblockContact(contact: ContactModel): Promise<void>;
@@ -15,5 +15,5 @@
15
15
  */
16
16
  import { Wid } from '..';
17
17
  import { ChatModel } from '../models';
18
- /** @whatsapp 2.2140.7:62238 */
18
+ /** @whatsapp 2.2144.8:62238 */
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 2.2140.7:96403 */
16
+ /** @whatsapp 2.2144.8:96403 */
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 2.2140.7:97449 */
17
+ /** @whatsapp 2.2144.8:97449 */
18
18
  export declare function addParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
19
- /** @whatsapp 2.2140.7:97449 */
19
+ /** @whatsapp 2.2144.8:97449 */
20
20
  export declare function removeParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
21
- /** @whatsapp 2.2140.7:97449 */
21
+ /** @whatsapp 2.2144.8:97449 */
22
22
  export declare function promoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
23
- /** @whatsapp 2.2140.7:97449 */
23
+ /** @whatsapp 2.2144.8:97449 */
24
24
  export declare function demoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
@@ -22,5 +22,7 @@ export * from './isAuthenticated';
22
22
  export * from './msgFindQuery';
23
23
  export * from './randomId';
24
24
  export * from './sendClear';
25
+ export * from './sendCreateGroup';
25
26
  export * from './sendDelete';
27
+ export * from './sendQueryExists';
26
28
  export * from './sendTextMsgToChat';
@@ -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 2.2140.7:54930 */
16
+ /** @whatsapp 2.2144.8:54930 */
17
17
  export declare function isAuthenticated(): boolean;
@@ -23,5 +23,5 @@ export interface MsgFindQueryParams {
23
23
  id?: string;
24
24
  participant?: any;
25
25
  }
26
- /** @whatsapp 2.2140.7:2495 */
26
+ /** @whatsapp 2.2144.8:2495 */
27
27
  export declare function msgFindQuery(direction: 'after' | 'before', params: MsgFindQueryParams): Promise<ModelPropertiesContructor<MsgModel>[]>;
@@ -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 2.2140.7:17754 */
16
+ /** @whatsapp 2.2144.8:17754 */
17
17
  export declare function randomMessageId(): string;
18
- /** @whatsapp 2.2140.7:17754 */
18
+ /** @whatsapp 2.2144.8:17754 */
19
19
  export declare function randomId(): string;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 2.2140.7:67357 */
17
+ /** @whatsapp 2.2144.8:67357 */
18
18
  export declare function sendClear(chat: ChatModel, keepStarred?: boolean): Promise<void>;
@@ -0,0 +1,26 @@
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 2.2144.8:53876 */
18
+ export declare function sendCreateGroup(groupName: string, participants: Wid[], ephemeral?: number, dogfooding?: boolean): Promise<{
19
+ gid: Wid;
20
+ participants: {
21
+ [key: string]: {
22
+ code: string;
23
+ };
24
+ }[];
25
+ status: number;
26
+ }>;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 2.2140.7:61670 */
17
+ /** @whatsapp 2.2144.8:61670 */
18
18
  export declare function sendDelete(chat: ChatModel): Promise<void>;
@@ -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
+ import { Wid } from '..';
17
+ /** @whatsapp 2.2144.8:66469 */
18
+ export declare function sendQueryExists(contact: Wid): Promise<{
19
+ wid: Wid;
20
+ biz: boolean;
21
+ }>;
@@ -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 2.2140.7:30239 */
16
+ /** @whatsapp 2.2144.8:30239 */
17
17
  export declare function sendTextMsgToChat(chat: any, message: any, options: any): Promise<string>;
@@ -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 2.2140.7:42977 */
16
+ /** @whatsapp 2.2144.8:36117 */
17
17
  export declare namespace Base64 {
18
18
  const BASE64_DATA_URL_SCHEME: 'data:image/jpeg;base64,';
19
19
  function encodeB64(data: ArrayLike<number> | ArrayBufferLike): string;
@@ -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 2.2140.7:94666 */
16
+ /** @whatsapp 2.2144.8:94666 */
17
17
  export declare namespace Browser {
18
18
  let promptUnloadGuards: number;
19
19
  function id(): string;
@@ -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 2.2140.7:25142 */
16
+ /** @whatsapp 2.2144.8:25142 */
17
17
  export declare namespace ClockSkew {
18
18
  const is24h: boolean;
19
19
  const skew: number;
@@ -14,9 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { EventEmitter } from '.';
17
- /**
18
- * @whatsapp 2.2140.7:69162
19
- */
17
+ /** @whatsapp 2.2144.8:69162 */
20
18
  export declare class CmdClass extends EventEmitter {
21
19
  isMainLoaded: boolean;
22
20
  uiBusy: number;
@@ -145,6 +143,5 @@ export declare class CmdClass extends EventEmitter {
145
143
  showCountrySelector(e?: any, t?: any, r?: any): void;
146
144
  toggleStickerMaker(): void;
147
145
  }
148
- /** @whatsapp 2.2140.7:69162 */
146
+ /** @whatsapp 2.2144.8:69162 */
149
147
  export declare const Cmd: CmdClass;
150
- export declare const APP_STATE_SYNC_COMPLETED: string;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ConnModel } from '../models';
17
- /** @whatsapp 2.2140.7:9322 */
17
+ /** @whatsapp 2.2144.8:9322 */
18
18
  export declare const Conn: ConnModel;
@@ -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 2.2140.7:55454 */
16
+ /** @whatsapp 2.2144.8:55454 */
17
17
  export declare const Constants: {
18
18
  ARCHIVE_NUX_MAX_VIEWS: number;
19
19
  IMG_THUMB_MAX_EDGE: number;
@@ -21,7 +21,7 @@ declare type Event = string | symbol;
21
21
  * The callback function.
22
22
  */
23
23
  declare type Listener = (...args: any[]) => void;
24
- /** @whatsapp 2.2140.7:95863 */
24
+ /** @whatsapp 2.2144.8:95863 */
25
25
  export declare class EventEmitter {
26
26
  /**
27
27
  * Adds the listener function to the end of the listeners array for the event named eventName.
@@ -60,6 +60,6 @@ declare class FeatureClass extends EventEmitter {
60
60
  isGroupCatchUpEnabled(): boolean;
61
61
  isInAppSupportEnabled(): boolean;
62
62
  }
63
- /** @whatsapp 2.2140.7:12950 */
63
+ /** @whatsapp 2.2144.8:12950 */
64
64
  export declare const Features: FeatureClass;
65
65
  export {};
@@ -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 2.2140.7:49288 */
16
+ /** @whatsapp 2.2144.8:49288 */
17
17
  export declare namespace ImageUtils {
18
18
  function rotateAndResize(e: any, t: any, r: any): Promise<{
19
19
  width: number;
@@ -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
+ declare class LocaleClass {
17
+ }
18
+ /** @whatsapp 2.2144.8:2408 */
19
+ export declare const Locale: LocaleClass;
20
+ export {};
@@ -0,0 +1,64 @@
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 { OpaqueData } from '.';
17
+ /** @whatsapp 2.2144.8:78690 */
18
+ export declare class MediaObject {
19
+ entries: any;
20
+ downloadStage: any;
21
+ uploadStage: any;
22
+ userUploadAttemptCount: number;
23
+ userDownloadAttemptCount: number;
24
+ downloadPromise: null | Promise<null>;
25
+ uploadPromise: null | Promise<null>;
26
+ mediaBlob?: OpaqueData;
27
+ size: any;
28
+ filehash: any;
29
+ contentInfo: any;
30
+ progressiveStage: any;
31
+ parsedVcards: any;
32
+ consolidate(e: any): any;
33
+ clearBlob(): void;
34
+ contentFields(): any;
35
+ resolveWhenConsolidated(): Promise<any>;
36
+ notifyMsgsAsync(): void;
37
+ addMsg(e: any): void;
38
+ removeMsg(e: any): void;
39
+ hasAssociatedMsgsOrStickers(): boolean;
40
+ associatedMsgs(): any[];
41
+ rmr(e: any): any;
42
+ msgProps(e: any): any;
43
+ delete(): void;
44
+ runProcessIfNotRunBefore(e: any, t: any, r: any): void;
45
+ getPendingProcess(e: any): Promise<any>;
46
+ videoStreamingInfo(e: any): any;
47
+ addStickerPack(e: any): void;
48
+ addSticker(e: any): void;
49
+ removeSticker(e: any): void;
50
+ removeStickerPack(e: any): void;
51
+ hasAssociatedStickers(): boolean;
52
+ hasAssociatedStickerPacks(): boolean;
53
+ associatedStickers(): any[];
54
+ associatedStickerPacks(): any[];
55
+ toJSON(): {
56
+ mediaBlob: any;
57
+ size: number;
58
+ filehash: string;
59
+ type: string;
60
+ contentInfo: any;
61
+ downloadStage: string;
62
+ uploadStage: string;
63
+ };
64
+ }
@@ -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 { MediaObject } from '.';
17
+ /** @whatsapp 2.2144.8:70233 */
18
+ export declare namespace MediaObjectUtil {
19
+ function getOrCreateMediaObject(hash: string): MediaObject;
20
+ }