@wppconnect/wa-js 2.18.2 → 2.18.3
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 -5
- package/dist/chat/functions/sendReactionToMessage.d.ts +2 -2
- package/dist/whatsapp/index.d.ts +2 -1
- package/dist/whatsapp/websocket/WapNode.d.ts +29 -0
- package/dist/whatsapp/websocket/ensureE2ESessions.d.ts +20 -0
- package/dist/whatsapp/websocket/generateId.d.ts +19 -0
- package/dist/whatsapp/websocket/index.d.ts +21 -0
- package/dist/whatsapp/websocket/sendSmaxStanza.d.ts +20 -0
- package/dist/whatsapp/websocket/smax.d.ts +22 -0
- package/dist/whatsapp/websocket/wap.d.ts +22 -0
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -23,10 +23,10 @@ import { MsgKey, MsgModel } from '../../whatsapp';
|
|
|
23
23
|
* @example
|
|
24
24
|
* ```javascript
|
|
25
25
|
* // to react a message
|
|
26
|
-
* WPP.chat.
|
|
26
|
+
* WPP.chat.sendReactionToMessage('[message_id]', '🤯');
|
|
27
27
|
*
|
|
28
28
|
* // to remove
|
|
29
|
-
* WPP.chat.
|
|
29
|
+
* WPP.chat.sendReactionToMessage('[message_id]', false);
|
|
30
30
|
*
|
|
31
31
|
* ```
|
|
32
32
|
* @category Message
|
package/dist/whatsapp/index.d.ts
CHANGED
|
@@ -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.
|
|
@@ -22,3 +22,4 @@ export * from './misc';
|
|
|
22
22
|
export * from './models';
|
|
23
23
|
export * as multidevice from './multidevice';
|
|
24
24
|
export * from './stores';
|
|
25
|
+
export * as websocket from './websocket';
|
|
@@ -0,0 +1,29 @@
|
|
|
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 504784 >= 2.2301.6
|
|
18
|
+
*/
|
|
19
|
+
export declare class WapNode {
|
|
20
|
+
tag: any;
|
|
21
|
+
attrs: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
24
|
+
content: any[];
|
|
25
|
+
constructor(tag: any, attrs?: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}, content?: any[]);
|
|
28
|
+
toString(): string;
|
|
29
|
+
}
|
|
@@ -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 { Wid } from '../misc';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 917504 >= 2.2301.6
|
|
19
|
+
*/
|
|
20
|
+
export declare function ensureE2ESessions(wid: Wid[]): 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 504784 >= 2.2301.6
|
|
18
|
+
*/
|
|
19
|
+
export declare function generateId(): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
export * from './ensureE2ESessions';
|
|
17
|
+
export * from './generateId';
|
|
18
|
+
export * from './sendSmaxStanza';
|
|
19
|
+
export * from './smax';
|
|
20
|
+
export * from './wap';
|
|
21
|
+
export * from './WapNode';
|
|
@@ -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 { WapNode } from './';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 67201 >= 2.2301.6
|
|
19
|
+
*/
|
|
20
|
+
export declare function sendSmaxStanza(node: WapNode, options?: any): Promise<WapNode>;
|
|
@@ -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 { WapNode } from './WapNode';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 898165 >= 2.2301.6
|
|
19
|
+
*/
|
|
20
|
+
export declare function smax(tag: any, attrs?: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}, content?: any[] | string | null | ArrayBuffer | Uint8Array): WapNode;
|
|
@@ -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 { WapNode } from './WapNode';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 504784 >= 2.2301.6
|
|
19
|
+
*/
|
|
20
|
+
export declare function wap(tag: any, attrs?: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}, content?: any[] | string | null | ArrayBuffer | Uint8Array): WapNode;
|