@wppconnect/wa-js 2.2.2 → 2.4.1

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 (37) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/chat/functions/archive.d.ts +54 -0
  3. package/dist/chat/functions/deleteMessage.d.ts +13 -0
  4. package/dist/chat/functions/index.d.ts +4 -0
  5. package/dist/chat/functions/list.d.ts +39 -0
  6. package/dist/chat/functions/pin.d.ts +54 -0
  7. package/dist/chat/functions/sendCreatePollMessage.d.ts +35 -0
  8. package/dist/chat/functions/sendFileMessage.d.ts +1 -1
  9. package/dist/chat/functions/sendLocationMessage.d.ts +2 -2
  10. package/dist/index.d.ts +1 -1
  11. package/dist/whatsapp/collections/AggReactionsCollection.d.ts +22 -0
  12. package/dist/whatsapp/collections/ReactionsCollection.d.ts +30 -0
  13. package/dist/whatsapp/collections/ReactionsSendersCollection.d.ts +22 -0
  14. package/dist/whatsapp/collections/index.d.ts +3 -0
  15. package/dist/whatsapp/enums/LogoutReason.d.ts +3 -1
  16. package/dist/whatsapp/functions/encryptAndSendGroupMsg.d.ts +20 -0
  17. package/dist/whatsapp/functions/encryptAndSendMsg.d.ts +20 -0
  18. package/dist/whatsapp/functions/getFanOutList.d.ts +22 -0
  19. package/dist/whatsapp/functions/getGroupSenderKeyList.d.ts +24 -0
  20. package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -0
  21. package/dist/whatsapp/functions/index.d.ts +6 -0
  22. package/dist/whatsapp/functions/mediaTypeFromProtobuf.d.ts +3 -1
  23. package/dist/whatsapp/functions/setArchive.d.ts +20 -0
  24. package/dist/whatsapp/functions/setPin.d.ts +20 -0
  25. package/dist/whatsapp/misc/Cmd.d.ts +12 -4
  26. package/dist/whatsapp/misc/Features.d.ts +3 -1
  27. package/dist/whatsapp/misc/UserPrefs.d.ts +1 -0
  28. package/dist/whatsapp/models/AggReactionsModel.d.ts +39 -0
  29. package/dist/whatsapp/models/MsgModel.d.ts +1 -0
  30. package/dist/whatsapp/models/ReactionsModel.d.ts +43 -0
  31. package/dist/whatsapp/models/ReactionsSendersModel.d.ts +47 -0
  32. package/dist/whatsapp/models/index.d.ts +3 -0
  33. package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -0
  34. package/dist/whatsapp/multidevice/waSignalStore.d.ts +3 -1
  35. package/dist/whatsapp/stores.d.ts +2 -0
  36. package/dist/wppconnect-wa.js +1 -1
  37. package/package.json +14 -14
@@ -0,0 +1,39 @@
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 { ReactionsSendersCollection } from '../collections';
17
+ import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
18
+ interface Props {
19
+ id?: any;
20
+ aggregateEmoji?: any;
21
+ hasReactionByMe: boolean;
22
+ }
23
+ interface Session {
24
+ }
25
+ interface Derived {
26
+ }
27
+ /**
28
+ * @whatsapp 81130
29
+ */
30
+ export declare interface AggReactionsModel extends ModelProxy<Props, Session, Derived> {
31
+ }
32
+ /**
33
+ * @whatsapp 81130
34
+ */
35
+ export declare class AggReactionsModel extends Model {
36
+ constructor(proterties?: ModelPropertiesContructor<AggReactionsModel>, options?: ModelOptions);
37
+ senders: ReactionsSendersCollection;
38
+ }
39
+ export {};
@@ -292,6 +292,7 @@ interface Derived {
292
292
  };
293
293
  isGroupsV4InviteExpired: boolean;
294
294
  isPersistent: boolean;
295
+ isRevokedByMe: boolean;
295
296
  isUnreadType: boolean;
296
297
  isUserCreatedType: boolean;
297
298
  supportsMessageFooter?: any;
@@ -0,0 +1,43 @@
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 { AggReactionsCollection, ReactionsCollection } from '../collections';
17
+ import { MsgKey, Wid } from '../misc';
18
+ import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
19
+ import { ReactionsSendersModel } from './ReactionsSendersModel';
20
+ interface Props {
21
+ id: Wid;
22
+ reactionByMe?: ReactionsSendersModel;
23
+ }
24
+ interface Session {
25
+ }
26
+ interface Derived {
27
+ }
28
+ /** @whatsapp 80666 */
29
+ export declare interface ReactionsModel extends ModelProxy<Props, Session, Derived> {
30
+ }
31
+ /** @whatsapp 80666 */
32
+ export declare class ReactionsModel extends Model {
33
+ constructor(proterties?: ModelPropertiesContructor<ReactionsModel>, options?: ModelOptions);
34
+ reactions: AggReactionsCollection;
35
+ unreadSenders(): {
36
+ msgKey: string;
37
+ parentMsgKey: MsgKey;
38
+ reactionText: string;
39
+ senderUserJid: string;
40
+ }[];
41
+ getCollection(): ReactionsCollection;
42
+ }
43
+ export {};
@@ -0,0 +1,47 @@
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 { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
17
+ interface Props {
18
+ id?: any;
19
+ msgKey?: string;
20
+ parentMsgKey?: string;
21
+ reactionText?: string;
22
+ timestamp?: number;
23
+ senderUserJid?: string;
24
+ read?: boolean;
25
+ orphan?: number;
26
+ ack?: number;
27
+ isSendFailure?: boolean;
28
+ }
29
+ interface Session {
30
+ senderObj?: any;
31
+ }
32
+ interface Derived {
33
+ isFailed: boolean;
34
+ parentMsg?: any;
35
+ }
36
+ /**
37
+ * @whatsapp 81130
38
+ */
39
+ export declare interface ReactionsSendersModel extends ModelProxy<Props, Session, Derived> {
40
+ }
41
+ /**
42
+ * @whatsapp 81130
43
+ */
44
+ export declare class ReactionsSendersModel extends Model {
45
+ constructor(proterties?: ModelPropertiesContructor<ReactionsSendersModel>, options?: ModelOptions);
46
+ }
47
+ export {};
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ export * from './AggReactionsModel';
16
17
  export * from './AttachMediaModel';
17
18
  export * from './BlocklistModel';
18
19
  export * from './BusinessCategoriesResultModel';
@@ -52,6 +53,8 @@ export * from './ProductMessageListModel';
52
53
  export * from './ProductModel';
53
54
  export * from './ProfilePicThumbModel';
54
55
  export * from './QuickReplyModel';
56
+ export * from './ReactionsModel';
57
+ export * from './ReactionsSendersModel';
55
58
  export * from './RecentEmojiModel';
56
59
  export * from './RecentStickerModel';
57
60
  export * from './ReplyButtonModel';
@@ -26,6 +26,7 @@ declare class NoiseInfo {
26
26
  }
27
27
  /** @whatsapp 15875
28
28
  * @whatsapp 14111 >= 2.2204.13
29
+ * @whatsapp 34898 >= 2.2218.4
29
30
  */
30
31
  export declare const waNoiseInfo: NoiseInfo;
31
32
  export {};
@@ -68,6 +68,8 @@ declare class SignalStore {
68
68
  markKeyAsUploaded(e?: any): any;
69
69
  rotateSignedPreKey(e?: any, t?: any): any;
70
70
  }
71
- /** @whatsapp 11849 */
71
+ /** @whatsapp 11849
72
+ * @whatsapp 40623 >= 2.2218.4
73
+ */
72
74
  export declare const waSignalStore: SignalStore;
73
75
  export {};
@@ -56,6 +56,8 @@ export declare const ProductMessageListStore: collections.ProductMessageListColl
56
56
  export declare const ProfilePicThumbStore: collections.ProfilePicThumbCollection;
57
57
  /** @whatsapp 99662 */
58
58
  export declare const QuickReplyStore: collections.QuickReplyCollection;
59
+ /** @whatsapp 57162 */
60
+ export declare const ReactionsStore: collections.ReactionsCollection;
59
61
  /** @whatsapp 92671 */
60
62
  export declare const RecentEmojiStore: collections.RecentEmojiCollection;
61
63
  /** @whatsapp 49264 */