@wppconnect/wa-js 2.26.1 → 2.28.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 +1 -1
- package/dist/chat/functions/get.d.ts +1 -1
- package/dist/chat/functions/index.d.ts +1 -0
- package/dist/chat/functions/sendFileMessage.d.ts +4 -5
- package/dist/chat/functions/sendScheduledCallMessage.d.ts +40 -0
- package/dist/chat/types.d.ts +12 -0
- package/dist/conn/functions/genLinkDeviceCodeForPhoneNumber.d.ts +30 -0
- package/dist/conn/functions/index.d.ts +1 -0
- package/dist/contact/functions/getCommonGroups.d.ts +27 -0
- package/dist/contact/functions/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/newsletter/functions/create.d.ts +42 -0
- package/dist/newsletter/functions/destroy.d.ts +26 -0
- package/dist/newsletter/functions/edit.d.ts +58 -0
- package/dist/newsletter/functions/ensureNewsletter.d.ts +17 -0
- package/dist/newsletter/functions/index.d.ts +19 -0
- package/dist/newsletter/functions/mute.d.ts +33 -0
- package/dist/newsletter/index.d.ts +16 -0
- package/dist/webpack/index.d.ts +1 -0
- package/dist/whatsapp/functions/createFanoutMsgStanza.d.ts +1 -1
- package/dist/whatsapp/functions/createNewsletterQuery.d.ts +23 -0
- package/dist/whatsapp/functions/deleteNewsletter.d.ts +19 -0
- package/dist/whatsapp/functions/editNewsletterMetadataAction.d.ts +28 -0
- package/dist/whatsapp/functions/encryptAndSendMsg.d.ts +13 -1
- package/dist/whatsapp/functions/encryptAndSendSenderKeyMsg.d.ts +34 -0
- package/dist/whatsapp/functions/findCommonGroups.d.ts +21 -0
- package/dist/whatsapp/functions/genLinkDeviceCodeForPhoneNumber.d.ts +19 -0
- package/dist/whatsapp/functions/index.d.ts +14 -0
- package/dist/whatsapp/functions/initializeAltDeviceLinking.d.ts +19 -0
- package/dist/whatsapp/functions/msgDataFromMsgModel.d.ts +19 -0
- package/dist/whatsapp/functions/muteNewsletter.d.ts +19 -0
- package/dist/whatsapp/functions/queryNewsletterMetadataByJid.d.ts +32 -0
- package/dist/whatsapp/functions/sendNewsletterMessageJob.d.ts +28 -0
- package/dist/whatsapp/functions/unmuteNewsletter.d.ts +19 -0
- package/dist/whatsapp/functions/updateNewsletterMsgRecord.d.ts +20 -0
- package/dist/whatsapp/functions/uploadMedia.d.ts +19 -0
- package/dist/whatsapp/models/ChatModel.d.ts +1 -0
- package/dist/whatsapp/models/MsgModel.d.ts +1 -0
- package/dist/whatsapp/stores.d.ts +5 -1
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +22 -22
|
@@ -26,18 +26,24 @@ export * from './contactFunctions';
|
|
|
26
26
|
export * from './createFanoutMsgStanza';
|
|
27
27
|
export * from './createGroup';
|
|
28
28
|
export * from './createMsgProtobuf';
|
|
29
|
+
export * from './createNewsletterQuery';
|
|
29
30
|
export * from './createOrUpdateReactions';
|
|
30
31
|
export * from './currencyForCountryShortcode';
|
|
32
|
+
export * from './deleteNewsletter';
|
|
31
33
|
export * from './editBusinessProfile';
|
|
34
|
+
export * from './editNewsletterMetadataAction';
|
|
32
35
|
export * from './encodeMaybeMediaType';
|
|
33
36
|
export * from './encryptAndSendGroupMsg';
|
|
34
37
|
export * from './encryptAndSendMsg';
|
|
38
|
+
export * from './encryptAndSendSenderKeyMsg';
|
|
35
39
|
export * from './encryptMsgProtobuf';
|
|
36
40
|
export * from './fetchLinkPreview';
|
|
37
41
|
export * from './findChat';
|
|
42
|
+
export * from './findCommonGroups';
|
|
38
43
|
export * from './findFirstWebLink';
|
|
39
44
|
export * from './frontendFireAndForget';
|
|
40
45
|
export * from './generateVideoThumbsAndDuration';
|
|
46
|
+
export * from './genLinkDeviceCodeForPhoneNumber';
|
|
41
47
|
export * from './genMinimalLinkPreview';
|
|
42
48
|
export * from './getABPropConfigValue';
|
|
43
49
|
export * from './getAsMms';
|
|
@@ -61,6 +67,7 @@ export * from './getWhatsAppWebExternalBetaJoinedIdb';
|
|
|
61
67
|
export * from './groupParticipants';
|
|
62
68
|
export * from './handleAck';
|
|
63
69
|
export * from './handleSingleMsg';
|
|
70
|
+
export * from './initializeAltDeviceLinking';
|
|
64
71
|
export * from './isAnimatedWebp';
|
|
65
72
|
export * from './isAuthenticated';
|
|
66
73
|
export * from './isRegistered';
|
|
@@ -69,7 +76,9 @@ export * from './joinGroupViaInvite';
|
|
|
69
76
|
export * from './markSeen';
|
|
70
77
|
export * from './mediaTypeFromProtobuf';
|
|
71
78
|
export * from './membershipApprovalRequestAction';
|
|
79
|
+
export * from './msgDataFromMsgModel';
|
|
72
80
|
export * from './msgFindQuery';
|
|
81
|
+
export * from './muteNewsletter';
|
|
73
82
|
export * from './processRawAudioVideo';
|
|
74
83
|
export * from './processRawMedia';
|
|
75
84
|
export * from './processRawSticker';
|
|
@@ -78,6 +87,7 @@ export * from './productVisibilitySet';
|
|
|
78
87
|
export * from './profilePic';
|
|
79
88
|
export * from './queryAllGroups';
|
|
80
89
|
export * from './queryGroupInviteCode';
|
|
90
|
+
export * from './queryNewsletterMetadataByJid';
|
|
81
91
|
export * from './randomHex';
|
|
82
92
|
export * from './randomId';
|
|
83
93
|
export * from './resetGroupInviteCode';
|
|
@@ -88,6 +98,7 @@ export * from './sendDelete';
|
|
|
88
98
|
export * from './sendExitGroup';
|
|
89
99
|
export * from './sendGroupParticipants';
|
|
90
100
|
export * from './sendJoinGroupViaInvite';
|
|
101
|
+
export * from './sendNewsletterMessageJob';
|
|
91
102
|
export * from './sendQueryExists';
|
|
92
103
|
export * from './sendQueryGroupInvite';
|
|
93
104
|
export * from './sendQueryGroupInviteCode';
|
|
@@ -102,9 +113,12 @@ export * from './status';
|
|
|
102
113
|
export * from './syncABPropsTask';
|
|
103
114
|
export * from './typeAttributeFromProtobuf';
|
|
104
115
|
export * from './unixTime';
|
|
116
|
+
export * from './unmuteNewsletter';
|
|
105
117
|
export * from './updateCartEnabled';
|
|
106
118
|
export * from './updateDBForGroupAction';
|
|
119
|
+
export * from './updateNewsletterMsgRecord';
|
|
107
120
|
export * from './updateParticipants';
|
|
121
|
+
export * from './uploadMedia';
|
|
108
122
|
export * from './uploadProductImage';
|
|
109
123
|
export * from './uploadThumbnail';
|
|
110
124
|
export * from './upsertVotes';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/**
|
|
17
|
+
* @whatsapp 518043
|
|
18
|
+
*/
|
|
19
|
+
export declare function initializeAltDeviceLinking(): Promise<void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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 { MsgModel } from '../models';
|
|
17
|
+
/** @whatsapp 678794
|
|
18
|
+
*/
|
|
19
|
+
export declare function msgDataFromMsgModel(msg: MsgModel): Promise<any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/**
|
|
17
|
+
* @whatsapp 736062
|
|
18
|
+
*/
|
|
19
|
+
export declare function muteNewsletter(newsletterIds: string[]): Promise<boolean>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/**
|
|
17
|
+
* @whatsapp 657987
|
|
18
|
+
*/
|
|
19
|
+
export declare function queryNewsletterMetadataByJid(jid: string, attributes: {
|
|
20
|
+
picture?: boolean;
|
|
21
|
+
subscribers?: boolean;
|
|
22
|
+
verification?: boolean;
|
|
23
|
+
description?: boolean;
|
|
24
|
+
inviteLink?: boolean;
|
|
25
|
+
name?: boolean;
|
|
26
|
+
creationTime?: boolean;
|
|
27
|
+
handle?: boolean;
|
|
28
|
+
privacy?: boolean;
|
|
29
|
+
linkedAccounts?: boolean;
|
|
30
|
+
membership?: boolean;
|
|
31
|
+
state?: boolean;
|
|
32
|
+
}): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/** @whatsapp 397995
|
|
17
|
+
*/
|
|
18
|
+
export declare function sendNewsletterMessageJob(data: {
|
|
19
|
+
msgData: any;
|
|
20
|
+
newsletterJid: string;
|
|
21
|
+
type: string;
|
|
22
|
+
}): Promise<{
|
|
23
|
+
ack: {
|
|
24
|
+
t: number;
|
|
25
|
+
};
|
|
26
|
+
serverId: number;
|
|
27
|
+
success: boolean;
|
|
28
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/**
|
|
17
|
+
* @whatsapp 639735
|
|
18
|
+
*/
|
|
19
|
+
export declare function unmuteNewsletter(newsletterIds: string[]): Promise<boolean>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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 { MsgModel } from '../models';
|
|
17
|
+
/** @whatsapp 397995
|
|
18
|
+
*/
|
|
19
|
+
export declare function updateNewsletterMsgRecord(msg: MsgModel): Promise<any>;
|
|
20
|
+
export declare function addNewsletterMsgsRecords(msg: MsgModel[]): Promise<any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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 { ChatModel } from '..';
|
|
17
|
+
/** @whatsapp 709089
|
|
18
|
+
*/
|
|
19
|
+
export declare function uploadMedia(chat: ChatModel): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2023 WPPConnect Team
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -43,6 +43,10 @@ export declare const CatalogStore: collections.CatalogCollection;
|
|
|
43
43
|
* @whatsapp 669951 >= 2.2222.8
|
|
44
44
|
*/
|
|
45
45
|
export declare const ChatStore: collections.ChatCollection;
|
|
46
|
+
/** @whatsapp 19380
|
|
47
|
+
* @whatsapp 719380 >= 2.2222.8
|
|
48
|
+
*/
|
|
49
|
+
export declare const NewsletterStore: collections.ChatCollection;
|
|
46
50
|
/** @whatsapp 19380
|
|
47
51
|
* @whatsapp 719380 >= 2.2222.8
|
|
48
52
|
*/
|