@wppconnect/wa-js 3.16.2 → 3.16.4

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 CHANGED
@@ -1,4 +1,9 @@
1
- ## 3.16.2 (2025-01-15)
1
+ ## 3.16.4 (2025-02-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Fixed WPP.contact.queryExists - invalid wid close [#2672](https://github.com/wppconnect-team/wa-js/issues/2672) ([#2673](https://github.com/wppconnect-team/wa-js/issues/2673)) ([6b17fe8](https://github.com/wppconnect-team/wa-js/commit/6b17fe8af80fa23aa0a1d8bbb7c23d5eb82457d9))
2
7
 
3
8
 
4
9
 
@@ -0,0 +1,19 @@
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
+ /**
17
+ * @whatsapp WAWebCreateChat >= 2.3000.0
18
+ */
19
+ export declare function createChat(chatParams: any, context: any, options: any, extra: any): Promise<any>;
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Copyright 2025 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 WAWebApiChat >= 2.3000.0
19
+ */
20
+ export declare function getChatRecordByAccountLid(a: Wid): Promise<any>;
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Copyright 2025 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 WAWebLidMigrationUtils >= 2.3000.0
19
+ */
20
+ export declare function getEnforceCurrentLid(chatId: Wid): any;
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Copyright 2025 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 WAWebChatGetExistingBridge >= 2.3000.0
19
+ */
20
+ export declare function getExisting(chatId: Wid): Promise<any>;
@@ -18,7 +18,7 @@ import { ChatModel, MsgModel } from '../models';
18
18
  /**
19
19
  * @whatsapp 738599 >= 2.2242.5
20
20
  */
21
- export declare function getSearchContext(chat: ChatModel, msg: MsgModel | MsgKey, options?: {
21
+ export declare function getSearchContext(chat: ChatModel | string, msg: MsgModel | MsgKey | string, options?: {
22
22
  isQuotedMsgAvailable: boolean;
23
23
  }): {
24
24
  collection: MsgLoad;
@@ -26,6 +26,7 @@ export * from './changeOptInStatusForExternalWebBeta';
26
26
  export * from './collections';
27
27
  export * from './colorIndexToHex';
28
28
  export * from './contactFunctions';
29
+ export * from './createChat';
29
30
  export * from './createEventCallLink';
30
31
  export * from './createFanoutMsgStanza';
31
32
  export * from './createGroup';
@@ -56,11 +57,14 @@ export * from './genLinkDeviceCodeForPhoneNumber';
56
57
  export * from './genMinimalLinkPreview';
57
58
  export * from './getABPropConfigValue';
58
59
  export * from './getAsMms';
60
+ export * from './getChatRecordByAccountLid';
59
61
  export * from './getCommunityParticipants';
60
62
  export * from './getCountryShortcodeByPhone';
61
63
  export * from './getCurrentLid';
64
+ export * from './getEnforceCurrentLid';
62
65
  export * from './getEphemeralFields';
63
66
  export * from './getErrorCodeFromLogoutReason';
67
+ export * from './getExisting';
64
68
  export * from './getFanOutList';
65
69
  export * from './getGroupSenderKeyList';
66
70
  export * from './getGroupSizeLimit';
@@ -117,6 +121,7 @@ export * from './randomId';
117
121
  export * from './removeStatusMessage';
118
122
  export * from './resetGroupInviteCode';
119
123
  export * from './revokeStatus';
124
+ export * from './selectChatForOneOnOneMessage';
120
125
  export * from './sendClear';
121
126
  export * from './sendCreateCommunity';
122
127
  export * from './sendCreateGroup';
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * Copyright 2025 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 973480 >= 2.2241.6
18
+ */
19
+ export declare function selectChatForOneOnOneMessage(params: any): Promise<any>;
@@ -73,7 +73,11 @@ export declare class CmdClass extends EventEmitter {
73
73
  toastPosition?: any;
74
74
  }): void;
75
75
  _openChat(e?: any, t?: any): void;
76
- openChatAt(chat: ChatModel, context: ReturnType<typeof getSearchContext>): Promise<boolean>;
76
+ openChatAt(chat: ChatModel, msgContext: ReturnType<typeof getSearchContext>): Promise<boolean>;
77
+ openChatAt(params?: {
78
+ chat: ChatModel;
79
+ msgContext: ReturnType<typeof getSearchContext>;
80
+ }): Promise<boolean>;
77
81
  openChatFromUnread(chat: ChatModel): Promise<boolean>;
78
82
  openChatBottom(chat: ChatModel): Promise<boolean>;
79
83
  scrollToPtt(e?: any): void;
@@ -165,7 +165,7 @@ export declare class ChatModel extends ModelChatBase {
165
165
  loadEarlierMsgs(e?: any, t?: any): any;
166
166
  isMostRecentCMC(e?: any): boolean;
167
167
  loadRecentMsgs(e?: any): any;
168
- getSearchContext?(msg: MsgModel | MsgKey, options?: {
168
+ getSearchContext?(chat: ChatModel | string, msg: MsgModel | MsgKey | string, options?: {
169
169
  isQuotedMsgAvailable: boolean;
170
170
  }): {
171
171
  collection: MsgLoad;