@wppconnect/wa-js 2.19.1 → 2.20.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.
- package/CHANGELOG.md +5 -1
- package/dist/chat/events/eventTypes.d.ts +6 -0
- package/dist/config/Config.d.ts +7 -1
- package/dist/status/functions/index.d.ts +1 -0
- package/dist/{whatsapp/collections/LiveLocationCollection.d.ts → status/functions/updateParticipants.d.ts} +16 -12
- package/dist/whatsapp/collections/index.d.ts +0 -1
- package/dist/whatsapp/functions/{canEditMessage.d.ts → canEditMsg.d.ts} +2 -2
- package/dist/whatsapp/functions/{sendCallSignalingMsg.d.ts → getParticipants.d.ts} +12 -20
- package/dist/whatsapp/functions/index.d.ts +2 -2
- package/dist/whatsapp/models/index.d.ts +0 -2
- package/dist/whatsapp/stores.d.ts +0 -4
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +2 -2
- package/package.json +16 -14
- package/dist/whatsapp/models/LiveLocationModel.d.ts +0 -47
- package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +0 -56
package/CHANGELOG.md
CHANGED
|
@@ -83,6 +83,9 @@ export interface ChatEventTypes {
|
|
|
83
83
|
degrees?: number;
|
|
84
84
|
shareDuration: number;
|
|
85
85
|
};
|
|
86
|
+
/**
|
|
87
|
+
* @deprecated Temporary unsuported by WhatsApp Web Multi-Device
|
|
88
|
+
*/
|
|
86
89
|
'chat.live_location_update': {
|
|
87
90
|
id: Wid;
|
|
88
91
|
lastUpdated: number;
|
|
@@ -94,6 +97,9 @@ export interface ChatEventTypes {
|
|
|
94
97
|
degrees?: number;
|
|
95
98
|
comment: string;
|
|
96
99
|
};
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated Temporary unsuported by WhatsApp Web Multi-Device
|
|
102
|
+
*/
|
|
97
103
|
'chat.live_location_end': {
|
|
98
104
|
id: Wid;
|
|
99
105
|
chat: Wid;
|
package/dist/config/Config.d.ts
CHANGED
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
* deviceName: 'WPPConnect',
|
|
24
24
|
* liveLocationLimit: 10,
|
|
25
25
|
* disableGoogleAnalytics: false,
|
|
26
|
-
* googleAnalyticsId: 'G-XXXXXXXXXX'
|
|
26
|
+
* googleAnalyticsId: 'G-XXXXXXXXXX',
|
|
27
|
+
* sendStatusToDevice: true
|
|
27
28
|
* };
|
|
28
29
|
* ```
|
|
29
30
|
*/
|
|
@@ -60,4 +61,9 @@ export interface Config {
|
|
|
60
61
|
* Project name for google analytics
|
|
61
62
|
*/
|
|
62
63
|
poweredBy: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Send the status to your device, set it to false to avoid WhatsApp crashing
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
sendStatusToDevice: boolean;
|
|
63
69
|
}
|
|
@@ -20,3 +20,4 @@ export { sendRawStatus, SendStatusOptions } from './sendRawStatus';
|
|
|
20
20
|
export { sendReadStatus } from './sendReadStatus';
|
|
21
21
|
export { sendTextStatus, TextStatusOptions } from './sendTextStatus';
|
|
22
22
|
export { sendVideoStatus, VideoStatusOptions } from './sendVideoStatus';
|
|
23
|
+
export { updateParticipants } from './updateParticipants';
|
|
@@ -13,16 +13,20 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*/
|
|
21
|
-
export declare class LiveLocationCollection extends BaseCollection<LiveLocationModel> {
|
|
22
|
-
static model: LiveLocationModel;
|
|
23
|
-
static staleCollection?: any;
|
|
24
|
-
static resumeOnAvailable?: any;
|
|
25
|
-
getActive(e?: any): any;
|
|
26
|
-
processMsg(e?: any, t?: boolean): any;
|
|
27
|
-
removeMsg(e?: any): any;
|
|
16
|
+
import { MsgKey, Wid } from '../../whatsapp';
|
|
17
|
+
export interface SendStatusOptions {
|
|
18
|
+
waitForAck?: boolean;
|
|
19
|
+
messageId?: string | MsgKey;
|
|
28
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Define a custom list of participants to send the status message
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```javascript
|
|
26
|
+
* // Use a custom list
|
|
27
|
+
* await WPP.status.updateParticipants(['123@c.us', '456@c.us']);
|
|
28
|
+
* // Use the contacts by default
|
|
29
|
+
* await WPP.status.updateParticipants(null);
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function updateParticipants(ids?: (string | Wid)[] | null): Promise<void>;
|
|
@@ -33,7 +33,6 @@ export * from './EmojiVariantCollection';
|
|
|
33
33
|
export * from './GroupMetadataCollection';
|
|
34
34
|
export * from './LabelCollection';
|
|
35
35
|
export * from './LabelItemCollection';
|
|
36
|
-
export * from './LiveLocationCollection';
|
|
37
36
|
export * from './MsgCollection';
|
|
38
37
|
export * from './MsgInfoCollection';
|
|
39
38
|
export * from './MsgInfoParticipantCollection';
|
|
@@ -13,25 +13,17 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
import { Wid } from '../misc';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 951974 >= 2.2222.8
|
|
19
|
+
* @whatsapp 318615 >= 2.2224.7
|
|
18
20
|
*/
|
|
19
|
-
export declare function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
'call-id': string;
|
|
29
|
-
'call-creator': string;
|
|
30
|
-
count?: any;
|
|
31
|
-
},
|
|
32
|
-
null
|
|
33
|
-
];
|
|
34
|
-
}, tagId?: string): Promise<{
|
|
35
|
-
payload: any;
|
|
36
|
-
status: 200;
|
|
21
|
+
export declare function getParticipants(group: Wid): Promise<null | {
|
|
22
|
+
admins: string[];
|
|
23
|
+
deviceSyncComplete?: any;
|
|
24
|
+
groupId: string;
|
|
25
|
+
participants: string[];
|
|
26
|
+
pastParticipants: string[];
|
|
27
|
+
rotateKey: boolean;
|
|
28
|
+
senderKey: Map<string, boolean>;
|
|
37
29
|
}>;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
export * from './addAndSendMsgToChat';
|
|
17
17
|
export * from './blockContact';
|
|
18
18
|
export * from './calculateFilehashFromBlob';
|
|
19
|
-
export * from './
|
|
19
|
+
export * from './canEditMsg';
|
|
20
20
|
export * from './canReplyMsg';
|
|
21
21
|
export * from './collections';
|
|
22
22
|
export * from './createGroup';
|
|
@@ -36,6 +36,7 @@ export * from './getFanOutList';
|
|
|
36
36
|
export * from './getGroupSenderKeyList';
|
|
37
37
|
export * from './getGroupSizeLimit';
|
|
38
38
|
export * from './getHistorySyncProgress';
|
|
39
|
+
export * from './getParticipants';
|
|
39
40
|
export * from './getQuotedMsgObj';
|
|
40
41
|
export * from './getReactions';
|
|
41
42
|
export * from './getSearchContext';
|
|
@@ -59,7 +60,6 @@ export * from './queryGroupInviteCode';
|
|
|
59
60
|
export * from './randomHex';
|
|
60
61
|
export * from './randomId';
|
|
61
62
|
export * from './resetGroupInviteCode';
|
|
62
|
-
export * from './sendCallSignalingMsg';
|
|
63
63
|
export * from './sendClear';
|
|
64
64
|
export * from './sendCreateCommunity';
|
|
65
65
|
export * from './sendCreateGroup';
|
|
@@ -34,8 +34,6 @@ export * from './GroupMetadataModel';
|
|
|
34
34
|
export * from './HistorySyncProgressModel';
|
|
35
35
|
export * from './LabelItemModel';
|
|
36
36
|
export * from './LabelModel';
|
|
37
|
-
export * from './LiveLocationModel';
|
|
38
|
-
export * from './LiveLocationParticipantModel';
|
|
39
37
|
export * from './MediaDataModel';
|
|
40
38
|
export * from './Model';
|
|
41
39
|
export * from './ModelChatBase';
|
|
@@ -59,10 +59,6 @@ export declare const GroupMetadataStore: collections.GroupMetadataCollection;
|
|
|
59
59
|
* @whatsapp 316770 >= 2.2222.8
|
|
60
60
|
*/
|
|
61
61
|
export declare const LabelStore: collections.LabelCollection;
|
|
62
|
-
/** @whatsapp 85865
|
|
63
|
-
* @whatsapp 985865 >= 2.2222.8
|
|
64
|
-
*/
|
|
65
|
-
export declare const LiveLocationStore: collections.LiveLocationCollection;
|
|
66
62
|
/** @whatsapp 59871
|
|
67
63
|
* @whatsapp 559871 >= 2.2222.8
|
|
68
64
|
*/
|