@wppconnect/wa-js 1.0.15 → 1.0.16

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 (144) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/assert/assertIsBusiness.d.ts +20 -0
  3. package/dist/assert/index.d.ts +1 -0
  4. package/dist/chat/Chat.d.ts +63 -0
  5. package/dist/chat/types.d.ts +32 -0
  6. package/dist/whatsapp/collections/BaseCollection.d.ts +1 -1
  7. package/dist/whatsapp/collections/BlocklistCollection.d.ts +1 -1
  8. package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +1 -1
  9. package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +1 -1
  10. package/dist/whatsapp/collections/ButtonCollection.d.ts +1 -1
  11. package/dist/whatsapp/collections/CallCollection.d.ts +1 -1
  12. package/dist/whatsapp/collections/CartCollection.d.ts +1 -1
  13. package/dist/whatsapp/collections/CartItemCollection.d.ts +1 -1
  14. package/dist/whatsapp/collections/CatalogCollection.d.ts +1 -1
  15. package/dist/whatsapp/collections/ChatCollection.d.ts +1 -1
  16. package/dist/whatsapp/collections/ChatstateCollection.d.ts +1 -1
  17. package/dist/whatsapp/collections/Collection.d.ts +2 -2
  18. package/dist/whatsapp/collections/ContactCollection.d.ts +1 -1
  19. package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +1 -1
  20. package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +1 -1
  21. package/dist/whatsapp/collections/LabelCollection.d.ts +1 -1
  22. package/dist/whatsapp/collections/LabelItemCollection.d.ts +1 -1
  23. package/dist/whatsapp/collections/LiveLocationCollection.d.ts +1 -1
  24. package/dist/whatsapp/collections/MsgCollection.d.ts +1 -1
  25. package/dist/whatsapp/collections/MsgInfoCollection.d.ts +1 -1
  26. package/dist/whatsapp/collections/MuteCollection.d.ts +1 -1
  27. package/dist/whatsapp/collections/OrderCollection.d.ts +1 -1
  28. package/dist/whatsapp/collections/OrderItemCollection.d.ts +1 -1
  29. package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -1
  30. package/dist/whatsapp/collections/PresenceCollection.d.ts +1 -1
  31. package/dist/whatsapp/collections/ProductCollCollection.d.ts +1 -1
  32. package/dist/whatsapp/collections/ProductCollection.d.ts +1 -1
  33. package/dist/whatsapp/collections/ProductImageCollection.d.ts +1 -1
  34. package/dist/whatsapp/collections/ProductMessageListCollection.d.ts +1 -1
  35. package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +1 -1
  36. package/dist/whatsapp/collections/QuickReplyCollection.d.ts +1 -1
  37. package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +1 -1
  38. package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -1
  39. package/dist/whatsapp/collections/StarredMsgCollection.d.ts +1 -1
  40. package/dist/whatsapp/collections/StarredStickerCollection.d.ts +1 -1
  41. package/dist/whatsapp/collections/StatusCollection.d.ts +1 -1
  42. package/dist/whatsapp/collections/StatusV3Collection.d.ts +1 -1
  43. package/dist/whatsapp/collections/StickerCollection.d.ts +1 -1
  44. package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -1
  45. package/dist/whatsapp/collections/StickerSearchCollection.d.ts +1 -1
  46. package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +1 -1
  47. package/dist/whatsapp/enums/LogoutReason.d.ts +1 -1
  48. package/dist/whatsapp/enums/OUTWARD_TYPES.d.ts +1 -1
  49. package/dist/whatsapp/enums/SendMsgResult.d.ts +1 -1
  50. package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +1 -1
  51. package/dist/whatsapp/functions/blockContact.d.ts +2 -2
  52. package/dist/whatsapp/functions/findChat.d.ts +1 -1
  53. package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -1
  54. package/dist/whatsapp/functions/groupParticipants.d.ts +4 -4
  55. package/dist/whatsapp/functions/index.d.ts +1 -0
  56. package/dist/whatsapp/functions/isAuthenticated.d.ts +1 -1
  57. package/dist/whatsapp/functions/markSeen.d.ts +26 -0
  58. package/dist/whatsapp/functions/msgFindQuery.d.ts +1 -1
  59. package/dist/whatsapp/functions/products.d.ts +4 -4
  60. package/dist/whatsapp/functions/randomId.d.ts +2 -2
  61. package/dist/whatsapp/functions/sendClear.d.ts +1 -1
  62. package/dist/whatsapp/functions/sendCreateGroup.d.ts +1 -1
  63. package/dist/whatsapp/functions/sendDelete.d.ts +1 -1
  64. package/dist/whatsapp/functions/sendQueryExists.d.ts +1 -1
  65. package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -1
  66. package/dist/whatsapp/functions/uploadProductImage.d.ts +1 -1
  67. package/dist/whatsapp/misc/Base64.d.ts +1 -1
  68. package/dist/whatsapp/misc/Browser.d.ts +1 -1
  69. package/dist/whatsapp/misc/ChatPresence.d.ts +25 -0
  70. package/dist/whatsapp/misc/Clock.d.ts +2 -4
  71. package/dist/whatsapp/misc/Cmd.d.ts +2 -2
  72. package/dist/whatsapp/misc/Conn.d.ts +1 -1
  73. package/dist/whatsapp/misc/Constants.d.ts +1 -1
  74. package/dist/whatsapp/misc/EventEmitter.d.ts +1 -1
  75. package/dist/whatsapp/misc/Features.d.ts +1 -1
  76. package/dist/whatsapp/misc/ImageUtils.d.ts +1 -1
  77. package/dist/whatsapp/misc/Locale.d.ts +1 -1
  78. package/dist/whatsapp/misc/MediaObject.d.ts +1 -1
  79. package/dist/whatsapp/misc/MediaObjectUtil.d.ts +1 -1
  80. package/dist/whatsapp/misc/MediaPrep.d.ts +1 -1
  81. package/dist/whatsapp/misc/MediaUtils.d.ts +1 -1
  82. package/dist/whatsapp/misc/MsgKey.d.ts +1 -1
  83. package/dist/whatsapp/misc/MsgLoadState.d.ts +2 -2
  84. package/dist/whatsapp/misc/OpaqueData.d.ts +2 -2
  85. package/dist/whatsapp/misc/State.d.ts +1 -1
  86. package/dist/whatsapp/misc/UserPrefs.d.ts +1 -1
  87. package/dist/whatsapp/misc/VCard.d.ts +1 -1
  88. package/dist/whatsapp/misc/Wid.d.ts +1 -1
  89. package/dist/whatsapp/misc/WidFactory.d.ts +1 -1
  90. package/dist/whatsapp/misc/index.d.ts +1 -0
  91. package/dist/whatsapp/models/AttachMediaModel.d.ts +2 -2
  92. package/dist/whatsapp/models/BlocklistModel.d.ts +2 -2
  93. package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +2 -2
  94. package/dist/whatsapp/models/BusinessProfileModel.d.ts +2 -2
  95. package/dist/whatsapp/models/CallModel.d.ts +2 -2
  96. package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -2
  97. package/dist/whatsapp/models/CartItemModel.d.ts +2 -2
  98. package/dist/whatsapp/models/CartModel.d.ts +2 -2
  99. package/dist/whatsapp/models/CatalogModel.d.ts +2 -2
  100. package/dist/whatsapp/models/ChatModel.d.ts +4 -4
  101. package/dist/whatsapp/models/ChatPreferenceModel.d.ts +2 -2
  102. package/dist/whatsapp/models/ChatstateModel.d.ts +2 -2
  103. package/dist/whatsapp/models/ConnModel.d.ts +2 -2
  104. package/dist/whatsapp/models/ContactModel.d.ts +2 -2
  105. package/dist/whatsapp/models/ConversionTupleModel.d.ts +2 -2
  106. package/dist/whatsapp/models/EmojiVariantModel.d.ts +2 -2
  107. package/dist/whatsapp/models/GroupMetadataModel.d.ts +2 -2
  108. package/dist/whatsapp/models/LabelItemModel.d.ts +2 -2
  109. package/dist/whatsapp/models/LabelModel.d.ts +2 -2
  110. package/dist/whatsapp/models/LiveLocationModel.d.ts +2 -2
  111. package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +2 -2
  112. package/dist/whatsapp/models/MediaDataModel.d.ts +2 -2
  113. package/dist/whatsapp/models/Model.d.ts +1 -1
  114. package/dist/whatsapp/models/ModelChatBase.d.ts +1 -1
  115. package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +2 -2
  116. package/dist/whatsapp/models/MsgInfoModel.d.ts +2 -2
  117. package/dist/whatsapp/models/MsgModel.d.ts +2 -2
  118. package/dist/whatsapp/models/MuteModel.d.ts +2 -2
  119. package/dist/whatsapp/models/OrderItemModel.d.ts +2 -2
  120. package/dist/whatsapp/models/OrderModel.d.ts +2 -2
  121. package/dist/whatsapp/models/ParticipantModel.d.ts +2 -2
  122. package/dist/whatsapp/models/ProductCollModel.d.ts +2 -2
  123. package/dist/whatsapp/models/ProductImageModel.d.ts +2 -2
  124. package/dist/whatsapp/models/ProductMessageListModel.d.ts +2 -2
  125. package/dist/whatsapp/models/ProductModel.d.ts +2 -2
  126. package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +2 -2
  127. package/dist/whatsapp/models/QuickReplyModel.d.ts +2 -2
  128. package/dist/whatsapp/models/RecentEmojiModel.d.ts +2 -2
  129. package/dist/whatsapp/models/RecentStickerModel.d.ts +2 -2
  130. package/dist/whatsapp/models/ReplyButtonModel.d.ts +2 -2
  131. package/dist/whatsapp/models/StateModel.d.ts +2 -2
  132. package/dist/whatsapp/models/StatusModel.d.ts +2 -2
  133. package/dist/whatsapp/models/StatusV3Model.d.ts +2 -2
  134. package/dist/whatsapp/models/StickerModel.d.ts +2 -2
  135. package/dist/whatsapp/models/StickerPackModel.d.ts +2 -2
  136. package/dist/whatsapp/models/TemplateButtonModel.d.ts +2 -2
  137. package/dist/whatsapp/models/UnreadMentionModel.d.ts +2 -2
  138. package/dist/whatsapp/models/WebCallModel.d.ts +2 -2
  139. package/dist/whatsapp/multidevice/adv.d.ts +1 -1
  140. package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -1
  141. package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -1
  142. package/dist/whatsapp/stores.d.ts +29 -29
  143. package/dist/wppconnect-wa.js +1 -1
  144. package/package.json +10 -10
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.16 (2021-12-08)
2
+
3
+
4
+
1
5
  ## 1.0.15 (2021-11-27)
2
6
 
3
7
 
@@ -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 { WPPError } from '../util';
17
+ export declare class NotIsBusinessError extends WPPError {
18
+ constructor();
19
+ }
20
+ export declare function assertIsBusiness(): void;
@@ -15,4 +15,5 @@
15
15
  */
16
16
  export * from './assertChat';
17
17
  export * from './assertColor';
18
+ export * from './assertIsBusiness';
18
19
  export * from './assertWid';
@@ -35,6 +35,69 @@ export declare class Chat extends Emittery<ChatEventTypes> {
35
35
  status: number;
36
36
  keepStarred: boolean;
37
37
  }>;
38
+ /**
39
+ * Mark a chat as read and send SEEN event
40
+ *
41
+ * @example
42
+ * ```javascript
43
+ * // Some messages
44
+ * WPP.chat.markIsRead('<number>@c.us');
45
+ * ```
46
+ */
47
+ markIsRead(chatId: string | Wid): Promise<{
48
+ wid: Wid;
49
+ unreadCount: number;
50
+ }>;
51
+ /**
52
+ * Mark a chat as unread
53
+ *
54
+ * @example
55
+ * ```javascript
56
+ * // Some messages
57
+ * WPP.chat.markIsUnread('<number>@c.us');
58
+ * ```
59
+ */
60
+ markIsUnread(chatId: string | Wid): Promise<{
61
+ wid: Wid;
62
+ }>;
63
+ /**
64
+ * Mark a chat to composing state
65
+ * and keep sending "is writting a message"
66
+ *
67
+ * @example
68
+ * ```javascript
69
+ * // Mark is composing
70
+ * WPP.chat.markIsComposing('<number>@c.us');
71
+ *
72
+ * // Mark is composing for 5 seconds
73
+ * WPP.chat.markIsComposing('<number>@c.us', 5000);
74
+ * ```
75
+ */
76
+ markIsComposing(chatId: string | Wid, duration?: number): Promise<void>;
77
+ /**
78
+ * Mark a chat to recording state
79
+ * and keep sending "is recording"
80
+ *
81
+ * @example
82
+ * ```javascript
83
+ * // Mark is recording
84
+ * WPP.chat.markIsRecording('<number>@c.us');
85
+ *
86
+ * // Mark is recording for 5 seconds
87
+ * WPP.chat.markIsRecording('<number>@c.us', 5000);
88
+ * ```
89
+ */
90
+ markIsRecording(chatId: string | Wid, duration?: number): Promise<void>;
91
+ /**
92
+ * Mark a chat is paused state
93
+ *
94
+ * @example
95
+ * ```javascript
96
+ * // Mark as recording
97
+ * WPP.chat.markIsPaused('<number>@c.us');
98
+ * ```
99
+ */
100
+ markIsPaused(chatId: string | Wid): Promise<void>;
38
101
  /**
39
102
  * Fetch messages from a chat
40
103
  *
@@ -62,10 +62,24 @@ export interface DeleteMessageReturn {
62
62
  isDeleted: boolean;
63
63
  }
64
64
  export interface SendMessageOptions {
65
+ /**
66
+ * Create a new chat to a new contact
67
+ *
68
+ * @default false
69
+ *
70
+ * @example
71
+ * ```javascript
72
+ * WPP.chat.sendTextMessage('<number>@c.us', 'Hello new contact', {
73
+ * createChat: true
74
+ * });
75
+ * ```
76
+ */
65
77
  createChat?: boolean;
66
78
  /**
67
79
  * Automatic detect and add the mentioned contacts with @<number>
68
80
  *
81
+ * @default true
82
+ *
69
83
  * @example
70
84
  * ```javascript
71
85
  * WPP.chat.sendTextMessage('<number>@c.us', 'Hello @123 and @456', {
@@ -74,6 +88,22 @@ export interface SendMessageOptions {
74
88
  * ```
75
89
  */
76
90
  detectMentioned?: boolean;
91
+ /**
92
+ * Automatically mark chat is read after send a message
93
+ *
94
+ * @default true
95
+ *
96
+ * @example
97
+ * ```javascript
98
+ * WPP.chat.sendTextMessage('<number>@c.us', 'Replying your message', {
99
+ * markIsRead: true
100
+ * });
101
+ * ```
102
+ */
103
+ markIsRead?: boolean;
104
+ /**
105
+ *
106
+ */
77
107
  messageId?: string | MsgKey;
78
108
  /**
79
109
  * Define a mentioned list for a message
@@ -101,6 +131,8 @@ export interface SendMessageOptions {
101
131
  /**
102
132
  * Wait for send while the ACK of message is SENT(1)
103
133
  *
134
+ * @default true
135
+ *
104
136
  * @example
105
137
  * ```javascript
106
138
  * WPP.chat.sendTextMessage('<number>@c.us', 'Wait for sent', {
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { Stringable } from '../../types';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:36513 */
18
+ /** @whatsapp 2.2147.14:36513 */
19
19
  export declare class BaseCollection<C, A = C | C[]> extends Collection<C> {
20
20
  static cachePolicy: {
21
21
  id: string;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { BlocklistModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:15701 */
18
+ /** @whatsapp 2.2147.14:15701 */
19
19
  export declare class BlocklistCollection extends Collection<BlocklistModel> {
20
20
  static model: BlocklistModel;
21
21
  blockContact(e?: any): any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { BusinessCategoriesResultModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:54100 */
18
+ /** @whatsapp 2.2147.14:54100 */
19
19
  export declare class BusinessCategoriesResultCollection extends Collection<BusinessCategoriesResultModel> {
20
20
  static model: BusinessCategoriesResultModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { BusinessProfileModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:8581 */
18
+ /** @whatsapp 2.2147.14:8581 */
19
19
  export declare class BusinessProfileCollection extends Collection<BusinessProfileModel> {
20
20
  static model: BusinessProfileModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ReplyButtonModel } from '../models';
17
17
  import { BaseCollection } from './BaseCollection';
18
- /** @whatsapp 2.2146.9:84142 */
18
+ /** @whatsapp 2.2147.14:84142 */
19
19
  export declare class ButtonCollection extends BaseCollection<ReplyButtonModel> {
20
20
  static model: ReplyButtonModel;
21
21
  static comparator(): any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { CallModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:15971 */
18
+ /** @whatsapp 2.2147.14:15971 */
19
19
  export declare class CallCollection extends Collection<CallModel> {
20
20
  static model: CallModel;
21
21
  pendingOffers?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { CartModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:25523 */
18
+ /** @whatsapp 2.2147.14:25523 */
19
19
  export declare class CartCollection extends Collection<CartModel> {
20
20
  static model: CartModel;
21
21
  static cachePolicy?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { CartItemModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:29844 */
18
+ /** @whatsapp 2.2147.14:29844 */
19
19
  export declare class CartItemCollection extends Collection<CartItemModel> {
20
20
  static model: CartItemModel;
21
21
  }
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { CatalogModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:60028 */
18
+ /** @whatsapp 2.2147.14:60028 */
19
19
  export declare class CatalogCollection extends Collection<CatalogModel> {
20
20
  static model: CatalogModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ChatModel } from '../models';
17
17
  import { BaseCollection } from './BaseCollection';
18
- /** @whatsapp 2.2146.9:84758 */
18
+ /** @whatsapp 2.2147.14:84758 */
19
19
  export declare class ChatCollection extends BaseCollection<ChatModel> {
20
20
  static model: ChatModel;
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.2146.9:42165 */
18
+ /** @whatsapp 2.2147.14:42165 */
19
19
  export declare class ChatstateCollection extends Collection<ChatstateModel> {
20
20
  static model: ChatstateModel;
21
21
  }
@@ -20,10 +20,10 @@ interface Option {
20
20
  merge: boolean;
21
21
  remove: boolean;
22
22
  }
23
- /** @whatsapp 2.2146.9:85392 */
23
+ /** @whatsapp 2.2147.14:85392 */
24
24
  export declare interface Collection<M> extends EventEmitter, Pick<Array<M>, 'indexOf' | 'lastIndexOf' | 'every' | 'some' | 'forEach' | 'map' | 'filter' | 'reduce' | 'slice'> {
25
25
  }
26
- /** @whatsapp 2.2146.9:85392 */
26
+ /** @whatsapp 2.2147.14:85392 */
27
27
  export declare class Collection<M, A = M | M[]> extends EventEmitter {
28
28
  static model: any;
29
29
  static comparator: (a: any, b: any) => number;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ContactModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:17025 */
18
+ /** @whatsapp 2.2147.14:17025 */
19
19
  export declare class ContactCollection extends Collection<ContactModel> {
20
20
  static model: ContactModel;
21
21
  static cachePolicy?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { EmojiVariantModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:41098 */
18
+ /** @whatsapp 2.2147.14:41098 */
19
19
  export declare class EmojiVariantCollection extends Collection<EmojiVariantModel> {
20
20
  static model: EmojiVariantModel;
21
21
  static cachePolicy?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { GroupMetadataModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:75798 */
18
+ /** @whatsapp 2.2147.14:75798 */
19
19
  export declare class GroupMetadataCollection extends Collection<GroupMetadataModel> {
20
20
  static model: GroupMetadataModel;
21
21
  static cachePolicy?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ChatModel, LabelModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:59606 */
18
+ /** @whatsapp 2.2147.14:59606 */
19
19
  export declare class LabelCollection extends Collection<LabelModel> {
20
20
  static model: LabelModel;
21
21
  static staleCollection?: any;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { LabelItemModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:42745 */
18
+ /** @whatsapp 2.2147.14:42745 */
19
19
  export declare class LabelItemCollection extends Collection<LabelItemModel> {
20
20
  static model: LabelItemModel;
21
21
  }
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { LiveLocationModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:31104 */
18
+ /** @whatsapp 2.2147.14:31104 */
19
19
  export declare class LiveLocationCollection extends Collection<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 2.2146.9:45472 */
19
+ /** @whatsapp 2.2147.14:45472 */
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 2.2146.9:57636 */
18
+ /** @whatsapp 2.2147.14:57636 */
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 2.2146.9:80959 */
18
+ /** @whatsapp 2.2147.14:80959 */
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 2.2146.9:98052 */
18
+ /** @whatsapp 2.2147.14:98052 */
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 2.2146.9:2414 */
18
+ /** @whatsapp 2.2147.14:2414 */
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 2.2146.9:16748 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:48327 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:63875 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:26491 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:55845 */
18
+ /** @whatsapp 2.2147.14: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 { ProductMessageListModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 2.2146.9:97038 */
18
+ /** @whatsapp 2.2147.14:97038 */
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 2.2146.9:3165 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:60123 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:30462 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:27686 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:30118 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:68477 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:22360 */
19
+ /** @whatsapp 2.2147.14: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 { BaseCollection } from '.';
18
- /** @whatsapp 2.2146.9:70173 */
18
+ /** @whatsapp 2.2147.14:70173 */
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 2.2146.9:16482 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:45822 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:6009 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:95411 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:82735 */
16
+ /** @whatsapp 2.2147.14:82735 */
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 2.2146.9:90672 */
16
+ /** @whatsapp 2.2147.14:90672 */
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 2.2146.9:88300 */
16
+ /** @whatsapp 2.2147.14:88300 */
17
17
  export declare enum SendMsgResult {
18
18
  OK = "OK",
19
19
  ERROR_NETWORK = "ERROR_NETWORK",
@@ -15,5 +15,5 @@
15
15
  */
16
16
  import { SendMsgResult } from '../enums';
17
17
  import { ChatModel, ModelPropertiesContructor, MsgModel } from '../models';
18
- /** @whatsapp 2.2146.9:35339 */
18
+ /** @whatsapp 2.2147.14: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.2146.9:38512 */
17
+ /** @whatsapp 2.2147.14:38512 */
18
18
  export declare function blockContact(contact: ContactModel): Promise<void>;
19
- /** @whatsapp 2.2146.9:38512 */
19
+ /** @whatsapp 2.2147.14:38512 */
20
20
  export declare function unblockContact(contact: ContactModel): Promise<void>;