@wppconnect/wa-js 3.17.5 → 3.17.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.
- package/CHANGELOG.md +2 -2
- package/dist/cart/functions/submit.d.ts +0 -16
- package/dist/whatsapp/functions/contactFunctions.d.ts +5 -0
- package/dist/whatsapp/functions/createChatRecord.d.ts +38 -0
- package/dist/whatsapp/functions/findChat.d.ts +1 -1
- package/dist/whatsapp/functions/index.d.ts +1 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## 3.17.
|
|
1
|
+
## 3.17.7 (2025-05-27)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* improovments on queryExist ([1429676](https://github.com/wppconnect-team/wa-js/commit/14296766d99be4d76eb74fc757ce861c9833994e))
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,21 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/**
|
|
17
|
-
* Send a request order to business chat
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```javascript
|
|
21
|
-
* const cart = WPP.cart.submit('[number]@c.us');
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```javascript
|
|
26
|
-
* // Send cart with a custom message
|
|
27
|
-
* const cart = WPP.cart.submit('[number]@c.us', 'Custom message here');
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @category Cart
|
|
31
|
-
*/
|
|
32
16
|
import { SendMessageOptions } from '../../chat';
|
|
33
17
|
export declare function submit(wid: string, msg?: string, options?: SendMessageOptions): Promise<any>;
|
|
@@ -120,8 +120,13 @@ export declare function getPnForLid(contact: ContactModel): any;
|
|
|
120
120
|
export declare function getDisplayNameOrPnForLid(contact: ContactModel): any;
|
|
121
121
|
/**
|
|
122
122
|
* @whatsapp 714574 >= 2.2327.4
|
|
123
|
+
* @deprecated Use getFormattedUsernameOrPhone instead
|
|
123
124
|
*/
|
|
124
125
|
export declare function getFormattedPhone(contact: ContactModel): any;
|
|
126
|
+
/**
|
|
127
|
+
* @whatsapp 714574 >= 2.2327.4
|
|
128
|
+
*/
|
|
129
|
+
export declare function getFormattedUsernameOrPhone(contact: ContactModel): any;
|
|
125
130
|
/**
|
|
126
131
|
* @whatsapp 714574 >= 2.2327.4
|
|
127
132
|
*/
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { Wid } from '../misc';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp WAWebCreateChat >= 2.3000.0
|
|
19
|
+
*/
|
|
20
|
+
export declare function createChatRecord(id: Wid, chatRecord: {
|
|
21
|
+
id: string;
|
|
22
|
+
accountLid?: string;
|
|
23
|
+
bizBotSystemMsgType?: string;
|
|
24
|
+
createdLocally: boolean;
|
|
25
|
+
disappearingModeInitiatedByMe?: boolean;
|
|
26
|
+
disappearingModeInitiator?: string;
|
|
27
|
+
disappearingModeTrigger?: string;
|
|
28
|
+
ephemeralDuration?: number;
|
|
29
|
+
ephemeralSettingTimestamp?: number;
|
|
30
|
+
isAutoMuted: boolean;
|
|
31
|
+
lidOriginType?: string;
|
|
32
|
+
notSpam?: boolean;
|
|
33
|
+
t?: number;
|
|
34
|
+
tcToken: ArrayBuffer;
|
|
35
|
+
tcTokenSenderTimestamp?: number;
|
|
36
|
+
tcTokenTimestamp: number;
|
|
37
|
+
unreadCount: number;
|
|
38
|
+
}): Promise<undefined>;
|
|
@@ -19,4 +19,4 @@ import { ChatModel } from '../models';
|
|
|
19
19
|
* @whatsapp 650101 >= 2.2222.8
|
|
20
20
|
* @whatsapp 211739 >= 2.2228.4
|
|
21
21
|
*/
|
|
22
|
-
export declare function findChat(wid: Wid): Promise<ChatModel>;
|
|
22
|
+
export declare function findChat(wid: Wid, type: 'createChat' | 'chatListUtils' | 'username_contactless_search'): Promise<ChatModel>;
|
|
@@ -28,6 +28,7 @@ export * from './collections';
|
|
|
28
28
|
export * from './colorIndexToHex';
|
|
29
29
|
export * from './contactFunctions';
|
|
30
30
|
export * from './createChat';
|
|
31
|
+
export * from './createChatRecord';
|
|
31
32
|
export * from './createEventCallLink';
|
|
32
33
|
export * from './createFanoutMsgStanza';
|
|
33
34
|
export * from './createGroup';
|