@wppconnect/wa-js 2.3.0 → 2.5.0
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.
- package/CHANGELOG.md +27 -0
- package/dist/chat/events/eventTypes.d.ts +29 -0
- package/dist/chat/events/index.d.ts +1 -0
- package/dist/chat/events/registerReactionsEvent.d.ts +16 -0
- package/dist/chat/functions/deleteMessage.d.ts +13 -0
- package/dist/chat/functions/index.d.ts +2 -0
- package/dist/chat/functions/list.d.ts +49 -0
- package/dist/chat/functions/sendCreatePollMessage.d.ts +35 -0
- package/dist/chat/functions/sendLocationMessage.d.ts +2 -2
- package/dist/conn/functions/getMyDeviceId.d.ts +26 -0
- package/dist/conn/functions/getMyUserId.d.ts +26 -0
- package/dist/conn/functions/index.d.ts +2 -0
- package/dist/contact/functions/index.d.ts +1 -0
- package/dist/contact/functions/list.d.ts +44 -0
- package/dist/whatsapp/collections/AggReactionsCollection.d.ts +22 -0
- package/dist/whatsapp/collections/Collection.d.ts +1 -3
- package/dist/whatsapp/collections/ReactionsCollection.d.ts +30 -0
- package/dist/whatsapp/collections/ReactionsSendersCollection.d.ts +22 -0
- package/dist/whatsapp/collections/index.d.ts +3 -0
- package/dist/whatsapp/functions/createOrUpdateReactions.d.ts +27 -0
- package/dist/whatsapp/functions/index.d.ts +1 -0
- package/dist/whatsapp/misc/Cmd.d.ts +6 -2
- package/dist/whatsapp/models/AggReactionsModel.d.ts +39 -0
- package/dist/whatsapp/models/ContactModel.d.ts +1 -1
- package/dist/whatsapp/models/ModelChatBase.d.ts +1 -1
- package/dist/whatsapp/models/MsgModel.d.ts +1 -0
- package/dist/whatsapp/models/ReactionsModel.d.ts +47 -0
- package/dist/whatsapp/models/ReactionsSendersModel.d.ts +47 -0
- package/dist/whatsapp/models/index.d.ts +3 -0
- package/dist/whatsapp/stores.d.ts +2 -0
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +9 -9
|
@@ -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';
|
|
@@ -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 */
|