@wppconnect/wa-js 1.0.3 → 1.0.7

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 (164) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +13 -6
  3. package/dist/{src/assert → assert}/assertChat.d.ts +0 -0
  4. package/dist/{src/assert → assert}/assertWid.d.ts +0 -0
  5. package/dist/{src/assert → assert}/index.d.ts +0 -0
  6. package/dist/{src/auth → auth}/Auth.d.ts +2 -1
  7. package/dist/{src/auth → auth}/index.d.ts +0 -0
  8. package/dist/{src/auth → auth}/types.d.ts +1 -0
  9. package/dist/{src/blocklist → blocklist}/Blocklist.d.ts +0 -0
  10. package/dist/{src/blocklist → blocklist}/index.d.ts +0 -0
  11. package/dist/{src/blocklist → blocklist}/types.d.ts +0 -0
  12. package/dist/{src/chat → chat}/Chat.d.ts +10 -0
  13. package/dist/{src/chat → chat}/index.d.ts +0 -0
  14. package/dist/{src/group → chat}/types.d.ts +17 -1
  15. package/dist/{src/config.d.ts → config.d.ts} +5 -1
  16. package/dist/{src/deviceName.d.ts → deviceName.d.ts} +0 -0
  17. package/dist/{src/group → group}/Group.d.ts +0 -0
  18. package/dist/{src/group → group}/index.d.ts +0 -0
  19. package/dist/{src/chat → group}/types.d.ts +0 -0
  20. package/dist/{src/index.d.ts → index.d.ts} +8 -11
  21. package/dist/internal.d.ts +20 -0
  22. package/dist/{src/patch.d.ts → patch.d.ts} +0 -0
  23. package/dist/{src/status → status}/Status.d.ts +0 -0
  24. package/dist/{src/status → status}/index.d.ts +0 -0
  25. package/dist/{src/status → status}/types.d.ts +0 -0
  26. package/dist/{src/util → util}/createWid.d.ts +0 -0
  27. package/dist/{src/util → util}/errors.d.ts +0 -0
  28. package/dist/{src/util → util}/index.d.ts +0 -0
  29. package/dist/{src/util → util}/types.d.ts +0 -0
  30. package/dist/{src/webpack.d.ts → webpack.d.ts} +0 -0
  31. package/dist/{src/whatsapp → whatsapp}/collections/BlocklistCollection.d.ts +1 -1
  32. package/dist/{src/whatsapp → whatsapp}/collections/BusinessCategoriesResultCollection.d.ts +1 -1
  33. package/dist/{src/whatsapp → whatsapp}/collections/BusinessProfileCollection.d.ts +1 -1
  34. package/dist/{src/whatsapp → whatsapp}/collections/ButtonCollection.d.ts +1 -3
  35. package/dist/{src/whatsapp → whatsapp}/collections/CallCollection.d.ts +1 -3
  36. package/dist/{src/whatsapp → whatsapp}/collections/CartCollection.d.ts +1 -3
  37. package/dist/{src/whatsapp → whatsapp}/collections/CartItemCollection.d.ts +1 -3
  38. package/dist/{src/whatsapp → whatsapp}/collections/CatalogCollection.d.ts +1 -3
  39. package/dist/{src/whatsapp → whatsapp}/collections/ChatCollection.d.ts +1 -3
  40. package/dist/{src/whatsapp → whatsapp}/collections/ChatstateCollection.d.ts +1 -3
  41. package/dist/{src/whatsapp → whatsapp}/collections/Collection.d.ts +2 -6
  42. package/dist/{src/whatsapp → whatsapp}/collections/CollectionCache.d.ts +1 -4
  43. package/dist/{src/whatsapp → whatsapp}/collections/ContactCollection.d.ts +1 -3
  44. package/dist/{src/whatsapp → whatsapp}/collections/EmojiVariantCollection.d.ts +1 -3
  45. package/dist/{src/whatsapp → whatsapp}/collections/GroupMetadataCollection.d.ts +1 -3
  46. package/dist/{src/whatsapp → whatsapp}/collections/LabelCollection.d.ts +3 -5
  47. package/dist/{src/whatsapp → whatsapp}/collections/LabelItemCollection.d.ts +1 -3
  48. package/dist/{src/whatsapp → whatsapp}/collections/LiveLocationCollection.d.ts +1 -3
  49. package/dist/{src/whatsapp → whatsapp}/collections/MsgCollection.d.ts +4 -5
  50. package/dist/{src/whatsapp → whatsapp}/collections/MsgInfoCollection.d.ts +1 -3
  51. package/dist/{src/whatsapp → whatsapp}/collections/MuteCollection.d.ts +1 -3
  52. package/dist/{src/whatsapp → whatsapp}/collections/OrderCollection.d.ts +1 -3
  53. package/dist/{src/whatsapp → whatsapp}/collections/OrderItemCollection.d.ts +1 -3
  54. package/dist/{src/whatsapp → whatsapp}/collections/ParticipantCollection.d.ts +1 -3
  55. package/dist/{src/whatsapp → whatsapp}/collections/PresenceCollection.d.ts +1 -3
  56. package/dist/{src/whatsapp → whatsapp}/collections/ProductCollCollection.d.ts +1 -3
  57. package/dist/{src/whatsapp → whatsapp}/collections/ProductCollection.d.ts +1 -3
  58. package/dist/{src/whatsapp → whatsapp}/collections/ProductImageCollection.d.ts +1 -3
  59. package/dist/{src/whatsapp → whatsapp}/collections/ProductMessageListCollection.d.ts +1 -3
  60. package/dist/{src/whatsapp → whatsapp}/collections/ProfilePicThumbCollection.d.ts +1 -3
  61. package/dist/{src/whatsapp → whatsapp}/collections/QuickReplyCollection.d.ts +1 -3
  62. package/dist/{src/whatsapp → whatsapp}/collections/RecentEmojiCollection.d.ts +1 -3
  63. package/dist/{src/whatsapp → whatsapp}/collections/RecentStickerCollection.d.ts +1 -3
  64. package/dist/{src/whatsapp → whatsapp}/collections/StarredMsgCollection.d.ts +1 -3
  65. package/dist/{src/whatsapp → whatsapp}/collections/StarredStickerCollection.d.ts +1 -3
  66. package/dist/{src/whatsapp → whatsapp}/collections/StatusCollection.d.ts +1 -3
  67. package/dist/{src/whatsapp → whatsapp}/collections/StatusV3Collection.d.ts +1 -3
  68. package/dist/{src/whatsapp → whatsapp}/collections/StickerCollection.d.ts +1 -3
  69. package/dist/{src/whatsapp → whatsapp}/collections/StickerPackCollection.d.ts +1 -3
  70. package/dist/{src/whatsapp → whatsapp}/collections/StickerSearchCollection.d.ts +1 -3
  71. package/dist/{src/whatsapp → whatsapp}/collections/TemplateButtonCollection.d.ts +1 -3
  72. package/dist/{src/whatsapp → whatsapp}/collections/index.d.ts +0 -0
  73. package/dist/whatsapp/enums/LogoutReason.d.ts +27 -0
  74. package/dist/{src/whatsapp → whatsapp}/enums/SendMsgResult.d.ts +1 -3
  75. package/dist/{src/whatsapp → whatsapp}/enums/TextFontStyle.d.ts +0 -0
  76. package/dist/{src/whatsapp → whatsapp}/enums/index.d.ts +1 -0
  77. package/dist/{src/whatsapp → whatsapp}/exportModule.d.ts +0 -0
  78. package/dist/{src/whatsapp → whatsapp}/functions/addAndSendMsgToChat.d.ts +1 -3
  79. package/dist/{src/whatsapp → whatsapp}/functions/blockContact.d.ts +2 -6
  80. package/dist/{src/whatsapp → whatsapp}/functions/findChat.d.ts +1 -3
  81. package/dist/{src/whatsapp → whatsapp}/functions/getOrGenerate.d.ts +1 -3
  82. package/dist/{src/whatsapp → whatsapp}/functions/groupParticipants.d.ts +4 -12
  83. package/dist/{src/whatsapp → whatsapp}/functions/index.d.ts +2 -0
  84. package/dist/{src/whatsapp → whatsapp}/functions/isAuthenticated.d.ts +1 -3
  85. package/dist/{src/whatsapp → whatsapp}/functions/msgFindQuery.d.ts +1 -3
  86. package/dist/{src/whatsapp → whatsapp}/functions/randomId.d.ts +2 -6
  87. package/dist/whatsapp/functions/sendClear.d.ts +18 -0
  88. package/dist/whatsapp/functions/sendDelete.d.ts +18 -0
  89. package/dist/{src/whatsapp → whatsapp}/functions/sendTextMsgToChat.d.ts +1 -3
  90. package/dist/{src/whatsapp → whatsapp}/index.d.ts +0 -0
  91. package/dist/{src/whatsapp → whatsapp}/misc/Base64.d.ts +1 -3
  92. package/dist/{src/whatsapp → whatsapp}/misc/Browser.d.ts +1 -3
  93. package/dist/{src/whatsapp → whatsapp}/misc/ClockSkew.d.ts +1 -3
  94. package/dist/whatsapp/misc/Cmd.d.ts +150 -0
  95. package/dist/{src/whatsapp → whatsapp}/misc/Conn.d.ts +1 -3
  96. package/dist/{src/whatsapp → whatsapp}/misc/Constants.d.ts +1 -3
  97. package/dist/{src/whatsapp → whatsapp}/misc/EventEmitter.d.ts +1 -3
  98. package/dist/{src/whatsapp → whatsapp}/misc/Features.d.ts +1 -6
  99. package/dist/{src/whatsapp → whatsapp}/misc/ImageUtils.d.ts +1 -3
  100. package/dist/{src/whatsapp → whatsapp}/misc/MediaUtils.d.ts +1 -3
  101. package/dist/{src/whatsapp → whatsapp}/misc/MsgKey.d.ts +1 -3
  102. package/dist/{src/whatsapp → whatsapp}/misc/MsgLoadState.d.ts +5 -6
  103. package/dist/{src/whatsapp → whatsapp}/misc/State.d.ts +1 -3
  104. package/dist/{src/whatsapp → whatsapp}/misc/Stringable.d.ts +0 -0
  105. package/dist/{src/whatsapp → whatsapp}/misc/UserPrefs.d.ts +1 -3
  106. package/dist/{src/whatsapp → whatsapp}/misc/Wid.d.ts +1 -3
  107. package/dist/{src/whatsapp → whatsapp}/misc/WidFactory.d.ts +1 -3
  108. package/dist/{src/whatsapp → whatsapp}/misc/index.d.ts +1 -0
  109. package/dist/{src/whatsapp → whatsapp}/models/AttachMediaModel.d.ts +2 -6
  110. package/dist/{src/whatsapp → whatsapp}/models/BlocklistModel.d.ts +2 -6
  111. package/dist/{src/whatsapp → whatsapp}/models/BusinessCategoriesResultModel.d.ts +2 -6
  112. package/dist/{src/whatsapp → whatsapp}/models/BusinessProfileModel.d.ts +2 -6
  113. package/dist/{src/whatsapp → whatsapp}/models/CallModel.d.ts +2 -6
  114. package/dist/{src/whatsapp → whatsapp}/models/CallParticipantModel.d.ts +2 -6
  115. package/dist/{src/whatsapp → whatsapp}/models/CartItemModel.d.ts +2 -6
  116. package/dist/{src/whatsapp → whatsapp}/models/CartModel.d.ts +2 -6
  117. package/dist/{src/whatsapp → whatsapp}/models/CatalogModel.d.ts +2 -6
  118. package/dist/{src/whatsapp → whatsapp}/models/ChatModel.d.ts +10 -10
  119. package/dist/{src/whatsapp → whatsapp}/models/ChatPreferenceModel.d.ts +2 -6
  120. package/dist/{src/whatsapp → whatsapp}/models/ChatstateModel.d.ts +2 -6
  121. package/dist/{src/whatsapp → whatsapp}/models/ConnModel.d.ts +2 -6
  122. package/dist/{src/whatsapp → whatsapp}/models/ContactModel.d.ts +2 -6
  123. package/dist/{src/whatsapp → whatsapp}/models/ConversionTupleModel.d.ts +2 -6
  124. package/dist/{src/whatsapp → whatsapp}/models/EmojiVariantModel.d.ts +2 -6
  125. package/dist/{src/whatsapp → whatsapp}/models/GroupMetadataModel.d.ts +2 -6
  126. package/dist/{src/whatsapp → whatsapp}/models/LabelItemModel.d.ts +2 -6
  127. package/dist/{src/whatsapp → whatsapp}/models/LabelModel.d.ts +2 -6
  128. package/dist/{src/whatsapp → whatsapp}/models/LiveLocationModel.d.ts +2 -6
  129. package/dist/{src/whatsapp → whatsapp}/models/LiveLocationParticipantModel.d.ts +2 -6
  130. package/dist/{src/whatsapp → whatsapp}/models/MediaDataModel.d.ts +2 -6
  131. package/dist/{src/whatsapp → whatsapp}/models/Model.d.ts +1 -9
  132. package/dist/{src/whatsapp → whatsapp}/models/ModelChatBase.d.ts +1 -9
  133. package/dist/{src/whatsapp → whatsapp}/models/MsgButtonReplyMsgModel.d.ts +2 -6
  134. package/dist/{src/whatsapp → whatsapp}/models/MsgInfoModel.d.ts +2 -6
  135. package/dist/{src/whatsapp → whatsapp}/models/MsgModel.d.ts +3 -10
  136. package/dist/{src/whatsapp → whatsapp}/models/MuteModel.d.ts +2 -6
  137. package/dist/{src/whatsapp → whatsapp}/models/OrderItemModel.d.ts +2 -6
  138. package/dist/{src/whatsapp → whatsapp}/models/OrderModel.d.ts +2 -6
  139. package/dist/{src/whatsapp → whatsapp}/models/ParticipantModel.d.ts +2 -6
  140. package/dist/{src/whatsapp → whatsapp}/models/ProductCollModel.d.ts +2 -6
  141. package/dist/{src/whatsapp → whatsapp}/models/ProductImageModel.d.ts +2 -6
  142. package/dist/{src/whatsapp → whatsapp}/models/ProductModel.d.ts +2 -6
  143. package/dist/{src/whatsapp → whatsapp}/models/Product_listModel.d.ts +2 -6
  144. package/dist/{src/whatsapp → whatsapp}/models/ProfilePicThumbModel.d.ts +2 -6
  145. package/dist/{src/whatsapp → whatsapp}/models/QuickReplyModel.d.ts +2 -6
  146. package/dist/{src/whatsapp → whatsapp}/models/RecentEmojiModel.d.ts +2 -6
  147. package/dist/{src/whatsapp → whatsapp}/models/RecentStickerModel.d.ts +2 -6
  148. package/dist/{src/whatsapp → whatsapp}/models/ReplyButtonModel.d.ts +2 -15
  149. package/dist/{src/whatsapp → whatsapp}/models/StateModel.d.ts +4 -7
  150. package/dist/{src/whatsapp → whatsapp}/models/StatusModel.d.ts +2 -6
  151. package/dist/{src/whatsapp → whatsapp}/models/StatusV3Model.d.ts +2 -6
  152. package/dist/{src/whatsapp → whatsapp}/models/StickerModel.d.ts +2 -6
  153. package/dist/{src/whatsapp → whatsapp}/models/StickerPackModel.d.ts +2 -6
  154. package/dist/{src/whatsapp → whatsapp}/models/TemplateButtonModel.d.ts +2 -6
  155. package/dist/{src/whatsapp → whatsapp}/models/UnreadMentionModel.d.ts +2 -6
  156. package/dist/{src/whatsapp → whatsapp}/models/WebCallModel.d.ts +2 -6
  157. package/dist/{src/whatsapp → whatsapp}/models/index.d.ts +1 -0
  158. package/dist/{src/whatsapp → whatsapp}/multidevice/adv.d.ts +1 -3
  159. package/dist/{src/whatsapp → whatsapp}/multidevice/index.d.ts +0 -0
  160. package/dist/{src/whatsapp → whatsapp}/multidevice/waNoiseInfo.d.ts +1 -6
  161. package/dist/{src/whatsapp → whatsapp}/multidevice/waSignalStore.d.ts +1 -6
  162. package/dist/{src/whatsapp → whatsapp}/stores.d.ts +29 -87
  163. package/dist/wppconnect-wa.js +1 -1
  164. package/package.json +14 -14
@@ -14,7 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { StateModel } from '../models';
17
- /**
18
- * @whatsapp 2.2138.10:72787
19
- */
17
+ /** @whatsapp 2.2140.7:72787 */
20
18
  export declare const State: StateModel;
@@ -14,9 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from './Wid';
17
- /**
18
- * @whatsapp 2.2138.10:86723
19
- */
17
+ /** @whatsapp 2.2140.7:86723 */
20
18
  export declare namespace UserPrefs {
21
19
  function setMe(wid: Wid): void;
22
20
  function getMe(): Wid;
@@ -13,9 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /**
17
- * @whatsapp 2.2138.10:69635
18
- */
16
+ /** @whatsapp 2.2140.7:69635 */
19
17
  export declare class Wid {
20
18
  constructor(id: string, options?: {
21
19
  intentionallyUsePrivateConstructor: boolean;
@@ -14,9 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from './Wid';
17
- /**
18
- * @whatsapp 2.2138.10:89573
19
- */
17
+ /** @whatsapp 2.2140.7:89573 */
20
18
  export declare namespace WidFactory {
21
19
  function createDeviceWid(wid: string): Wid;
22
20
  function createDeviceWidFromUserAndDevice(user: string, device: string): Wid;
@@ -16,6 +16,7 @@
16
16
  export * from './Base64';
17
17
  export * from './Browser';
18
18
  export * from './ClockSkew';
19
+ export * from './Cmd';
19
20
  export * from './Conn';
20
21
  export * from './Constants';
21
22
  export * from './EventEmitter';
@@ -46,14 +46,10 @@ interface Derived {
46
46
  filesize?: any;
47
47
  fileExt?: any;
48
48
  }
49
- /**
50
- * @whatsapp 2.2138.10:73754
51
- */
49
+ /** @whatsapp 2.2140.7:73754 */
52
50
  export declare interface AttachMediaModel extends ModelProxy<Props, Session, Derived> {
53
51
  }
54
- /**
55
- * @whatsapp 2.2138.10:73754
56
- */
52
+ /** @whatsapp 2.2140.7:73754 */
57
53
  export declare class AttachMediaModel extends Model {
58
54
  constructor(proterties?: ModelPropertiesContructor<AttachMediaModel>, options?: ModelOptions);
59
55
  processAttachment(e?: any): any;
@@ -24,14 +24,10 @@ interface Session {
24
24
  }
25
25
  interface Derived {
26
26
  }
27
- /**
28
- * @whatsapp 2.2138.10:43123
29
- */
27
+ /** @whatsapp 2.2140.7:43123 */
30
28
  export declare interface BlocklistModel extends ModelProxy<Props, Session, Derived> {
31
29
  }
32
- /**
33
- * @whatsapp 2.2138.10:43123
34
- */
30
+ /** @whatsapp 2.2140.7:43123 */
35
31
  export declare class BlocklistModel extends Model<BlocklistCollection> {
36
32
  idClass: typeof Wid;
37
33
  constructor(proterties?: ModelPropertiesContructor<BlocklistModel>, options?: ModelOptions);
@@ -25,14 +25,10 @@ interface Session {
25
25
  }
26
26
  interface Derived {
27
27
  }
28
- /**
29
- * @whatsapp 2.2138.10:32816
30
- */
28
+ /** @whatsapp 2.2140.7:32816 */
31
29
  export declare interface BusinessCategoriesResultModel extends ModelProxy<Props, Session, Derived> {
32
30
  }
33
- /**
34
- * @whatsapp 2.2138.10:32816
35
- */
31
+ /** @whatsapp 2.2140.7:32816 */
36
32
  export declare class BusinessCategoriesResultModel extends Model<BusinessCategoriesResultCollection> {
37
33
  idClass: typeof Wid;
38
34
  constructor(proterties?: ModelPropertiesContructor<BusinessCategoriesResultModel>, options?: ModelOptions);
@@ -36,14 +36,10 @@ interface Session {
36
36
  }
37
37
  interface Derived {
38
38
  }
39
- /**
40
- * @whatsapp 2.2138.10:42097
41
- */
39
+ /** @whatsapp 2.2140.7:42097 */
42
40
  export declare interface BusinessProfileModel extends ModelProxy<Props, Session, Derived> {
43
41
  }
44
- /**
45
- * @whatsapp 2.2138.10:42097
46
- */
42
+ /** @whatsapp 2.2140.7:42097 */
47
43
  export declare class BusinessProfileModel extends Model<BusinessProfileCollection> {
48
44
  idClass: typeof Wid;
49
45
  constructor(proterties?: ModelPropertiesContructor<BusinessProfileModel>, options?: ModelOptions);
@@ -32,14 +32,10 @@ interface Session {
32
32
  }
33
33
  interface Derived {
34
34
  }
35
- /**
36
- * @whatsapp 2.2138.10:70026
37
- */
35
+ /** @whatsapp 2.2140.7:70026 */
38
36
  export declare interface CallModel extends ModelProxy<Props, Session, Derived> {
39
37
  }
40
- /**
41
- * @whatsapp 2.2138.10:70026
42
- */
38
+ /** @whatsapp 2.2140.7:70026 */
43
39
  export declare class CallModel extends Model<CallCollection> {
44
40
  constructor(proterties?: ModelPropertiesContructor<CallModel>, options?: ModelOptions);
45
41
  getState(): any;
@@ -34,14 +34,10 @@ interface Session {
34
34
  }
35
35
  interface Derived {
36
36
  }
37
- /**
38
- * @whatsapp 2.2138.10:5483
39
- */
37
+ /** @whatsapp 2.2140.7:5483 */
40
38
  export declare interface CallParticipantModel extends ModelProxy<Props, Session, Derived> {
41
39
  }
42
- /**
43
- * @whatsapp 2.2138.10:5483
44
- */
40
+ /** @whatsapp 2.2140.7:5483 */
45
41
  export declare class CallParticipantModel extends Model {
46
42
  constructor(proterties?: ModelPropertiesContructor<CallParticipantModel>, options?: ModelOptions);
47
43
  }
@@ -28,14 +28,10 @@ interface Session {
28
28
  }
29
29
  interface Derived {
30
30
  }
31
- /**
32
- * @whatsapp 2.2138.10:53685
33
- */
31
+ /** @whatsapp 2.2140.7:53685 */
34
32
  export declare interface CartItemModel extends ModelProxy<Props, Session, Derived> {
35
33
  }
36
- /**
37
- * @whatsapp 2.2138.10:53685
38
- */
34
+ /** @whatsapp 2.2140.7:53685 */
39
35
  export declare class CartItemModel extends Model<CartCollection> {
40
36
  constructor(proterties?: ModelPropertiesContructor<CartItemModel>, options?: ModelOptions);
41
37
  getCollection(): CartCollection;
@@ -28,14 +28,10 @@ interface Session {
28
28
  }
29
29
  interface Derived {
30
30
  }
31
- /**
32
- * @whatsapp 2.2138.10:95537
33
- */
31
+ /** @whatsapp 2.2140.7:95537 */
34
32
  export declare interface CartModel extends ModelProxy<Props, Session, Derived> {
35
33
  }
36
- /**
37
- * @whatsapp 2.2138.10:95537
38
- */
34
+ /** @whatsapp 2.2140.7:95537 */
39
35
  export declare class CartModel extends Model<CartCollection> {
40
36
  constructor(proterties?: ModelPropertiesContructor<CartModel>, options?: ModelOptions);
41
37
  countTotals(): any;
@@ -27,14 +27,10 @@ interface Session {
27
27
  }
28
28
  interface Derived {
29
29
  }
30
- /**
31
- * @whatsapp 2.2138.10:73310
32
- */
30
+ /** @whatsapp 2.2140.7:73310 */
33
31
  export declare interface CatalogModel extends ModelProxy<Props, Session, Derived> {
34
32
  }
35
- /**
36
- * @whatsapp 2.2138.10:73310
37
- */
33
+ /** @whatsapp 2.2140.7:73310 */
38
34
  export declare class CatalogModel extends Model<CatalogCollection> {
39
35
  idClass: typeof Wid;
40
36
  constructor(proterties?: ModelPropertiesContructor<CatalogModel>, options?: ModelOptions);
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatCollection } from '../collections';
17
- import { MsgKey, Wid } from '../misc';
17
+ import { MsgKey, MsgLoad, Wid } from '../misc';
18
18
  import { GroupMetadataModel } from '.';
19
19
  import { ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
20
20
  import { ModelChatBase, PropsChatBase, SessionChatBase } from './ModelChatBase';
@@ -56,7 +56,9 @@ interface Session extends SessionChatBase {
56
56
  markedUnread?: any;
57
57
  trusted?: any;
58
58
  canSend: boolean;
59
- promises?: any;
59
+ promises: {
60
+ [key: string]: Promise<any> | undefined | null;
61
+ };
60
62
  ftsCache?: any;
61
63
  composeQuotedMsg?: any;
62
64
  composeQuotedMsgRemoteJid?: any;
@@ -92,14 +94,10 @@ interface Derived {
92
94
  showChangeNumberNotification?: any;
93
95
  shouldShowUnreadInTitle?: any;
94
96
  }
95
- /**
96
- * @whatsapp 2.2138.10:58380
97
- */
97
+ /** @whatsapp 2.2140.7:58380 */
98
98
  export declare interface ChatModel extends ModelProxy<Props, Session, Derived> {
99
99
  }
100
- /**
101
- * @whatsapp 2.2138.10:58380
102
- */
100
+ /** @whatsapp 2.2140.7:58380 */
103
101
  export declare class ChatModel extends ModelChatBase {
104
102
  idClass: typeof Wid;
105
103
  constructor(proterties?: ModelPropertiesContructor<ChatModel>, options?: ModelOptions);
@@ -131,7 +129,9 @@ export declare class ChatModel extends ModelChatBase {
131
129
  loadEarlierMsgs(e?: any, t?: any): any;
132
130
  isMostRecentCMC(e?: any): boolean;
133
131
  loadRecentMsgs(e?: any): any;
134
- getSearchContext(e?: any, t?: any): any;
132
+ getSearchContext(e?: any, t?: any): {
133
+ collection: MsgLoad;
134
+ };
135
135
  sendStarMsgs(e?: any, t?: any): any;
136
136
  sendRevokeMsgs(e?: any, t?: any): any;
137
137
  sendDeleteMsgs(e?: any, t?: any): any;
@@ -142,7 +142,7 @@ export declare class ChatModel extends ModelChatBase {
142
142
  getFirstMsgWithStatus(): any;
143
143
  getLastReceivedMsg(): any;
144
144
  getLastReceivedNonExpiredMsg(e?: any): any;
145
- getLastMsgKeyForAction(): any;
145
+ getLastMsgKeyForAction(): MsgKey;
146
146
  getLastTimestampMsg(): any;
147
147
  getWebcChatType(): any;
148
148
  deregisterExpiredViewOnceBulkMessages(e?: any): any;
@@ -26,14 +26,10 @@ interface Session {
26
26
  }
27
27
  interface Derived {
28
28
  }
29
- /**
30
- * @whatsapp 2.2138.10:23821
31
- */
29
+ /** @whatsapp 2.2140.7:23821 */
32
30
  export declare interface ChatPreferenceModel extends ModelProxy<Props, Session, Derived> {
33
31
  }
34
- /**
35
- * @whatsapp 2.2138.10:23821
36
- */
32
+ /** @whatsapp 2.2140.7:23821 */
37
33
  export declare class ChatPreferenceModel extends Model {
38
34
  idClass: typeof Wid;
39
35
  allowedIds?: any;
@@ -27,14 +27,10 @@ interface Session {
27
27
  }
28
28
  interface Derived {
29
29
  }
30
- /**
31
- * @whatsapp 2.2138.10:42165
32
- */
30
+ /** @whatsapp 2.2140.7:42165 */
33
31
  export declare interface ChatstateModel extends ModelProxy<Props, Session, Derived> {
34
32
  }
35
- /**
36
- * @whatsapp 2.2138.10:42165
37
- */
33
+ /** @whatsapp 2.2140.7:42165 */
38
34
  export declare class ChatstateModel extends Model {
39
35
  idClass: typeof Wid;
40
36
  allowedIds?: any;
@@ -53,14 +53,10 @@ interface Derived {
53
53
  tosShowCallNotification?: any;
54
54
  isSMB?: boolean;
55
55
  }
56
- /**
57
- * @whatsapp 2.2138.10:9322
58
- */
56
+ /** @whatsapp 2.2140.7:9322 */
59
57
  export declare interface ConnModel extends ModelProxy<Props, Session, Derived> {
60
58
  }
61
- /**
62
- * @whatsapp 2.2138.10:9322
63
- */
59
+ /** @whatsapp 2.2140.7:9322 */
64
60
  export declare class ConnModel extends Model {
65
61
  constructor(proterties?: ModelPropertiesContructor<ConnModel>, options?: ModelOptions);
66
62
  canSetMyPushname(): boolean;
@@ -70,14 +70,10 @@ interface Derived {
70
70
  showBusinessCheckmarkAsPrimary?: any;
71
71
  showBusinessCheckmarkAsSecondary?: any;
72
72
  }
73
- /**
74
- * @whatsapp 2.2138.10:27387
75
- */
73
+ /** @whatsapp 2.2140.7:27387 */
76
74
  export declare interface ContactModel extends ModelProxy<Props, Session, Derived> {
77
75
  }
78
- /**
79
- * @whatsapp 2.2138.10:27387
80
- */
76
+ /** @whatsapp 2.2140.7:27387 */
81
77
  export declare class ContactModel extends Model<ContactCollection> {
82
78
  idClass: typeof Wid;
83
79
  constructor(proterties?: ModelPropertiesContructor<ContactModel>, options?: ModelOptions);
@@ -27,14 +27,10 @@ interface Session {
27
27
  }
28
28
  interface Derived {
29
29
  }
30
- /**
31
- * @whatsapp 2.2138.10:71815
32
- */
30
+ /** @whatsapp 2.2140.7:71815 */
33
31
  export declare interface ConversionTupleModel extends ModelProxy<Props, Session, Derived> {
34
32
  }
35
- /**
36
- * @whatsapp 2.2138.10:71815
37
- */
33
+ /** @whatsapp 2.2140.7:71815 */
38
34
  export declare class ConversionTupleModel extends Model {
39
35
  idClass: typeof Wid;
40
36
  constructor(proterties?: ModelPropertiesContructor<ConversionTupleModel>, options?: ModelOptions);
@@ -23,14 +23,10 @@ interface Session {
23
23
  }
24
24
  interface Derived {
25
25
  }
26
- /**
27
- * @whatsapp 2.2138.10:14996
28
- */
26
+ /** @whatsapp 2.2140.7:14996 */
29
27
  export declare interface EmojiVariantModel extends ModelProxy<Props, Session, Derived> {
30
28
  }
31
- /**
32
- * @whatsapp 2.2138.10:14996
33
- */
29
+ /** @whatsapp 2.2140.7:14996 */
34
30
  export declare class EmojiVariantModel extends Model {
35
31
  constructor(proterties?: ModelPropertiesContructor<EmojiVariantModel>, options?: ModelOptions);
36
32
  }
@@ -43,14 +43,10 @@ interface Session {
43
43
  interface Derived {
44
44
  groupInviteLink?: any;
45
45
  }
46
- /**
47
- * @whatsapp 2.2138.10:28197
48
- */
46
+ /** @whatsapp 2.2140.7:28197 */
49
47
  export declare interface GroupMetadataModel extends ModelProxy<Props, Session, Derived> {
50
48
  }
51
- /**
52
- * @whatsapp 2.2138.10:28197
53
- */
49
+ /** @whatsapp 2.2140.7:28197 */
54
50
  export declare class GroupMetadataModel extends Model {
55
51
  idClass: typeof Wid;
56
52
  participants: ParticipantCollection;
@@ -25,14 +25,10 @@ interface Session {
25
25
  }
26
26
  interface Derived {
27
27
  }
28
- /**
29
- * @whatsapp 2.2138.10:36705
30
- */
28
+ /** @whatsapp 2.2140.7:36705 */
31
29
  export declare interface LabelItemModel extends ModelProxy<Props, Session, Derived> {
32
30
  }
33
- /**
34
- * @whatsapp 2.2138.10:36705
35
- */
31
+ /** @whatsapp 2.2140.7:36705 */
36
32
  export declare class LabelItemModel extends Model {
37
33
  constructor(proterties?: ModelPropertiesContructor<LabelItemModel>, options?: ModelOptions);
38
34
  }
@@ -26,14 +26,10 @@ interface Session {
26
26
  interface Derived {
27
27
  hexColor?: any;
28
28
  }
29
- /**
30
- * @whatsapp 2.2138.10:14137
31
- */
29
+ /** @whatsapp 2.2140.7:14137 */
32
30
  export declare interface LabelModel extends ModelProxy<Props, Session, Derived> {
33
31
  }
34
- /**
35
- * @whatsapp 2.2138.10:14137
36
- */
32
+ /** @whatsapp 2.2140.7:14137 */
37
33
  export declare class LabelModel extends Model {
38
34
  constructor(proterties?: ModelPropertiesContructor<LabelModel>, options?: ModelOptions);
39
35
  }
@@ -28,14 +28,10 @@ interface Session {
28
28
  }
29
29
  interface Derived {
30
30
  }
31
- /**
32
- * @whatsapp 2.2138.10:82600
33
- */
31
+ /** @whatsapp 2.2140.7:82600 */
34
32
  export declare interface LiveLocationModel extends ModelProxy<Props, Session, Derived> {
35
33
  }
36
- /**
37
- * @whatsapp 2.2138.10:82600
38
- */
34
+ /** @whatsapp 2.2140.7:82600 */
39
35
  export declare class LiveLocationModel extends Model<LiveLocationCollection> {
40
36
  idClass: typeof Wid;
41
37
  constructor(proterties?: ModelPropertiesContructor<LiveLocationModel>, options?: ModelOptions);
@@ -38,14 +38,10 @@ interface Derived {
38
38
  isMe: boolean;
39
39
  valid?: any;
40
40
  }
41
- /**
42
- * @whatsapp 2.2138.10:77872
43
- */
41
+ /** @whatsapp 2.2140.7:77872 */
44
42
  export declare interface LiveLocationParticipantModel extends ModelProxy<Props, Session, Derived> {
45
43
  }
46
- /**
47
- * @whatsapp 2.2138.10:77872
48
- */
44
+ /** @whatsapp 2.2140.7:77872 */
49
45
  export declare class LiveLocationParticipantModel extends Model {
50
46
  idClass: typeof Wid;
51
47
  constructor(proterties?: ModelPropertiesContructor<LiveLocationParticipantModel>, options?: ModelOptions);
@@ -62,14 +62,10 @@ interface Session {
62
62
  interface Derived {
63
63
  streamable?: any;
64
64
  }
65
- /**
66
- * @whatsapp 2.2138.10:49694
67
- */
65
+ /** @whatsapp 2.2140.7:49694 */
68
66
  export declare interface MediaDataModel extends ModelProxy<Props, Session, Derived> {
69
67
  }
70
- /**
71
- * @whatsapp 2.2138.10:49694
72
- */
68
+ /** @whatsapp 2.2140.7:49694 */
73
69
  export declare class MediaDataModel extends Model {
74
70
  static TYPE?: any;
75
71
  constructor(proterties?: ModelPropertiesContructor<MediaDataModel>, options?: ModelOptions);
@@ -15,9 +15,6 @@
15
15
  */
16
16
  import { WritableProperties } from '../../util';
17
17
  import { EventEmitter, Stringable } from '../misc';
18
- /**
19
- * @whatsapp 2.2126.14:78682
20
- */
21
18
  export declare type ModelProxy<P, S, D> = P & S & Readonly<D> & {
22
19
  get attributes(): P & S;
23
20
  get isState(): true;
@@ -27,9 +24,6 @@ export declare type ModelProxy<P, S, D> = P & S & Readonly<D> & {
27
24
  toJSON(): P;
28
25
  serialize(): P;
29
26
  };
30
- /**
31
- * @whatsapp 2.2126.14:40798
32
- */
33
27
  export declare type ModelPropertiesContructor<Model, K extends keyof Model = any> = Partial<WritableProperties<Model>> & Required<WritableProperties<Pick<Model, K>>>;
34
28
  export interface ModelOptions {
35
29
  _internalInitializationDoNotUse?: any;
@@ -38,9 +32,7 @@ export interface ModelOptions {
38
32
  parent?: any;
39
33
  silent?: any;
40
34
  }
41
- /**
42
- * @whatsapp 2.2138.10:57283
43
- */
35
+ /** @whatsapp 2.2140.7:57283 */
44
36
  export declare class Model<Collection = undefined> extends EventEmitter {
45
37
  static Proxy: string;
46
38
  static idClass?: any;
@@ -17,17 +17,11 @@ import { ChatCollection } from '../collections';
17
17
  import { MsgKey, MsgLoad, Wid } from '../misc';
18
18
  import { Model } from './Model';
19
19
  import { MsgModel } from './MsgModel';
20
- /**
21
- * @whatsapp 2.2126.14:60425
22
- */
23
20
  export interface PropsChatBase {
24
21
  id: Wid;
25
22
  pendingMsgs: boolean;
26
23
  labels: any | undefined;
27
24
  }
28
- /**
29
- * @whatsapp 2.2126.14:60425
30
- */
31
25
  export interface SessionChatBase {
32
26
  msgChunks: MsgLoad[];
33
27
  lastReceivedKey?: MsgKey;
@@ -36,9 +30,7 @@ export interface SessionChatBase {
36
30
  msgsLength: number;
37
31
  msgsChanged: number;
38
32
  }
39
- /**
40
- * @whatsapp 2.2126.14:60425
41
- */
33
+ /** @whatsapp 2.2140.7:53362 */
42
34
  export declare class ModelChatBase extends Model<ChatCollection> {
43
35
  msgs: MsgLoad;
44
36
  onEmptyMRM(): void;
@@ -24,14 +24,10 @@ interface Session {
24
24
  }
25
25
  interface Derived {
26
26
  }
27
- /**
28
- * @whatsapp 2.2138.10:81750
29
- */
27
+ /** @whatsapp 2.2140.7:81750 */
30
28
  export declare interface MsgButtonReplyMsgModel extends ModelProxy<Props, Session, Derived> {
31
29
  }
32
- /**
33
- * @whatsapp 2.2138.10:81750
34
- */
30
+ /** @whatsapp 2.2140.7:81750 */
35
31
  export declare class MsgButtonReplyMsgModel extends Model {
36
32
  idClass: typeof MsgKey;
37
33
  constructor(proterties?: ModelPropertiesContructor<MsgButtonReplyMsgModel>, options?: ModelOptions);
@@ -30,14 +30,10 @@ interface Session {
30
30
  interface Derived {
31
31
  settled?: any;
32
32
  }
33
- /**
34
- * @whatsapp 2.2138.10:63463
35
- */
33
+ /** @whatsapp 2.2140.7:63463 */
36
34
  export declare interface MsgInfoModel extends ModelProxy<Props, Session, Derived> {
37
35
  }
38
- /**
39
- * @whatsapp 2.2138.10:63463
40
- */
36
+ /** @whatsapp 2.2140.7:63463 */
41
37
  export declare class MsgInfoModel extends Model<MsgInfoCollection> {
42
38
  idClass: typeof MsgKey;
43
39
  constructor(proterties?: ModelPropertiesContructor<MsgInfoModel>, options?: ModelOptions);
@@ -13,9 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /**
17
- * @whatsapp 2.2126.14:94490
18
- */
19
16
  import { ButtonCollection, MsgCollection } from '../collections';
20
17
  import { TextFontStyle } from '../enums';
21
18
  import { MsgKey, Wid } from '../misc';
@@ -30,7 +27,7 @@ interface Props {
30
27
  notifyName?: any;
31
28
  from?: Wid;
32
29
  to?: Wid;
33
- author?: any;
30
+ author?: Wid;
34
31
  self?: string;
35
32
  /**
36
33
  * See {@link Constants}
@@ -278,14 +275,10 @@ interface Derived {
278
275
  initialPageSize?: any;
279
276
  productListHeaderImage?: any;
280
277
  }
281
- /**
282
- * @whatsapp 2.2138.10:92954
283
- */
278
+ /** @whatsapp 2.2140.7:92954 */
284
279
  export declare interface MsgModel extends ModelProxy<Props, Session, Derived> {
285
280
  }
286
- /**
287
- * @whatsapp 2.2138.10:92954
288
- */
281
+ /** @whatsapp 2.2140.7:92954 */
289
282
  export declare class MsgModel extends Model {
290
283
  idClass: typeof MsgKey;
291
284
  constructor(proterties: ModelPropertiesContructor<MsgModel, 'id'>, options?: ModelOptions);
@@ -27,14 +27,10 @@ interface Session {
27
27
  interface Derived {
28
28
  isMuted: boolean;
29
29
  }
30
- /**
31
- * @whatsapp 2.2138.10:43376
32
- */
30
+ /** @whatsapp 2.2140.7:43376 */
33
31
  export declare interface MuteModel extends ModelProxy<Props, Session, Derived> {
34
32
  }
35
- /**
36
- * @whatsapp 2.2138.10:43376
37
- */
33
+ /** @whatsapp 2.2140.7:43376 */
38
34
  export declare class MuteModel extends Model<MuteCollection> {
39
35
  idClass: typeof Wid;
40
36
  allowedIds?: any;
@@ -29,14 +29,10 @@ interface Session {
29
29
  interface Derived {
30
30
  mediaData?: any;
31
31
  }
32
- /**
33
- * @whatsapp 2.2138.10:70334
34
- */
32
+ /** @whatsapp 2.2140.7:70334 */
35
33
  export declare interface OrderItemModel extends ModelProxy<Props, Session, Derived> {
36
34
  }
37
- /**
38
- * @whatsapp 2.2138.10:70334
39
- */
35
+ /** @whatsapp 2.2140.7:70334 */
40
36
  export declare class OrderItemModel extends Model<OrderCollection> {
41
37
  constructor(proterties?: ModelPropertiesContructor<OrderItemModel>, options?: ModelOptions);
42
38
  getCollection(): OrderCollection;