@wppconnect/wa-js 2.24.5 → 2.24.6
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/chat/functions/getQuotedMsgKey.d.ts +22 -0
- package/dist/chat/functions/index.d.ts +1 -0
- package/dist/whatsapp/contants/SANITIZED_VERSION_STR.d.ts +19 -0
- package/dist/whatsapp/contants/index.d.ts +1 -0
- package/dist/whatsapp/exportModule.d.ts +9 -1
- package/dist/whatsapp/functions/blockContact.d.ts +5 -1
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
## 2.24.
|
|
1
|
+
## 2.24.6 (2023-07-07)
|
|
2
2
|
|
|
3
3
|
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
- Fixed
|
|
5
|
+
- Fixed chat.new_message event for status reply (fix [#1211](https://github.com/wppconnect-team/wa-js/issues/1211)) ([a898151](https://github.com/wppconnect-team/wa-js/commit/a8981518b353b0dda7addefdaae77f8dcf267188))
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { MsgKey, MsgModel } from '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Get a quoted message
|
|
19
|
+
*
|
|
20
|
+
* @category Chat
|
|
21
|
+
*/
|
|
22
|
+
export declare function getQuotedMsgKey(msg: MsgModel): MsgKey;
|
|
@@ -33,6 +33,7 @@ export { getMessageById } from './getMessageById';
|
|
|
33
33
|
export { getMessages, GetMessagesOptions } from './getMessages';
|
|
34
34
|
export { getPlatformFromMessage } from './getPlatformFromMessage';
|
|
35
35
|
export { getQuotedMsg } from './getQuotedMsg';
|
|
36
|
+
export { getQuotedMsgKey } from './getQuotedMsgKey';
|
|
36
37
|
export { getReactions } from './getReactions';
|
|
37
38
|
export { getVotes } from './getVotes';
|
|
38
39
|
export { ChatListOptions, list } from './list';
|
|
@@ -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 831914
|
|
18
|
+
*/
|
|
19
|
+
export declare const SANITIZED_VERSION_STR: string;
|
|
@@ -15,7 +15,14 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { InferArgs, InferReturn } from '../util';
|
|
17
17
|
import * as webpack from '../webpack';
|
|
18
|
-
|
|
18
|
+
declare class CustomWeakMap extends WeakMap<object, string> {
|
|
19
|
+
protected stringMap: Map<string, string>;
|
|
20
|
+
delete(key: object | string): boolean;
|
|
21
|
+
get(key: object | string): string | undefined;
|
|
22
|
+
has(key: object | string): boolean;
|
|
23
|
+
set(key: object | string, value: string): this;
|
|
24
|
+
}
|
|
25
|
+
export declare const _moduleIdMap: CustomWeakMap;
|
|
19
26
|
/**
|
|
20
27
|
* The object of this function is to override the exports to create getters.
|
|
21
28
|
*
|
|
@@ -48,3 +55,4 @@ export declare function exportProxyModel(exports: any, name: string): void;
|
|
|
48
55
|
* ```
|
|
49
56
|
*/
|
|
50
57
|
export declare function wrapModuleFunction<TFunc extends (...args: any[]) => any>(func: TFunc, callback: (func: TFunc, ...args: InferArgs<TFunc>) => InferReturn<TFunc>): void;
|
|
58
|
+
export {};
|
|
@@ -18,7 +18,11 @@ import { ContactModel } from '../models';
|
|
|
18
18
|
* @whatsapp 780140 >= 2.2222.8
|
|
19
19
|
* @whatsapp 48826 >= 2.2228.4
|
|
20
20
|
*/
|
|
21
|
-
export declare function blockContact(contact: ContactModel
|
|
21
|
+
export declare function blockContact(contact: ContactModel | {
|
|
22
|
+
contact: ContactModel;
|
|
23
|
+
blockEntryPoint: string;
|
|
24
|
+
bizOptOutArgs: any | null;
|
|
25
|
+
}): Promise<void>;
|
|
22
26
|
/** @whatsapp 80140
|
|
23
27
|
* @whatsapp 780140 >= 2.2222.8
|
|
24
28
|
* @whatsapp 48826 >= 2.2228.4
|