@wppconnect/wa-js 1.1.13 → 1.1.17
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 +31 -0
- package/dist/chat/functions/index.d.ts +3 -0
- package/dist/chat/functions/openChatAt.d.ts +27 -0
- package/dist/chat/functions/openChatBottom.d.ts +27 -0
- package/dist/chat/functions/openChatFromUnread.d.ts +27 -0
- package/dist/group/functions/ensureGroup.d.ts +1 -1
- package/dist/group/functions/getGroupInfoFromInviteCode.d.ts +51 -0
- package/dist/group/functions/getInviteCode.d.ts +26 -0
- package/dist/group/functions/index.d.ts +8 -0
- package/dist/group/functions/join.d.ts +28 -0
- package/dist/group/functions/leave.d.ts +27 -0
- package/dist/group/functions/revokeInviteCode.d.ts +28 -0
- package/dist/group/functions/setDescription.d.ts +27 -0
- package/dist/group/functions/setProperty.d.ts +54 -0
- package/dist/group/functions/setSubject.d.ts +27 -0
- package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -1
- package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +22 -0
- package/dist/whatsapp/enums/index.d.ts +1 -0
- package/dist/whatsapp/functions/createMsgProtobuf.d.ts +20 -0
- package/dist/whatsapp/functions/index.d.ts +7 -0
- package/dist/whatsapp/functions/sendCallSignalingMsg.d.ts +34 -0
- package/dist/whatsapp/functions/sendExitGroup.d.ts +18 -0
- package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +18 -0
- package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +44 -0
- package/dist/whatsapp/functions/sendQueryGroupInviteCode.d.ts +18 -0
- package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +18 -0
- package/dist/whatsapp/functions/setGroup.d.ts +23 -0
- package/dist/whatsapp/misc/Cmd.d.ts +4 -3
- package/dist/whatsapp/models/ChatModel.d.ts +2 -1
- package/dist/whatsapp/models/GroupMetadataModel.d.ts +2 -2
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +12 -11
|
@@ -0,0 +1,18 @@
|
|
|
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 '..';
|
|
17
|
+
/** @whatsapp 65705 */
|
|
18
|
+
export declare function sendRevokeGroupInviteCode(groupId: Wid): Promise<string>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 '..';
|
|
17
|
+
import { GROUP_SETTING_TYPE } from '../enums';
|
|
18
|
+
/** @whatsapp 66365 */
|
|
19
|
+
export declare function sendSetGroupSubject(groupId: Wid, subject: string): Promise<void>;
|
|
20
|
+
/** @whatsapp 66365 */
|
|
21
|
+
export declare function sendSetGroupDescription(groupId: Wid, description: string, tagId: string, previousTagId?: string): Promise<void>;
|
|
22
|
+
/** @whatsapp 66365 */
|
|
23
|
+
export declare function sendSetGroupProperty(groupId: Wid, property: GROUP_SETTING_TYPE, value: number): Promise<void>;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { ChatModel } from '..';
|
|
16
17
|
import { EventEmitter } from '.';
|
|
17
18
|
/** @whatsapp 2751 */
|
|
18
19
|
export declare class CmdClass extends EventEmitter {
|
|
@@ -49,9 +50,9 @@ export declare class CmdClass extends EventEmitter {
|
|
|
49
50
|
sendDeleteMsgs(e?: any, t?: any, r?: any, n?: any, i?: any): void;
|
|
50
51
|
sendRevokeMsgs(e?: any, t?: any, r?: any, n?: any, i?: any): void;
|
|
51
52
|
_openChat(e?: any, t?: any): void;
|
|
52
|
-
openChatAt(
|
|
53
|
-
openChatFromUnread(
|
|
54
|
-
openChatBottom(
|
|
53
|
+
openChatAt(chat: ChatModel, context: ReturnType<ChatModel['getSearchContext']>): Promise<boolean>;
|
|
54
|
+
openChatFromUnread(chat: ChatModel): Promise<boolean>;
|
|
55
|
+
openChatBottom(chat: ChatModel): Promise<boolean>;
|
|
55
56
|
scrollToPtt(e?: any): void;
|
|
56
57
|
_scrollToFocusedMsg(e?: any): void;
|
|
57
58
|
_scrollChatToBottom(): void;
|
|
@@ -28,6 +28,7 @@ interface Props extends PropsChatBase {
|
|
|
28
28
|
isAnnounceGrpRestrict: boolean;
|
|
29
29
|
modifyTag?: any;
|
|
30
30
|
muteExpiration?: any;
|
|
31
|
+
name?: string;
|
|
31
32
|
notSpam?: any;
|
|
32
33
|
pin?: any;
|
|
33
34
|
changeNumberOldJid?: any;
|
|
@@ -43,7 +44,7 @@ interface Session extends SessionChatBase {
|
|
|
43
44
|
stale?: any;
|
|
44
45
|
createdLocally?: any;
|
|
45
46
|
pendingAction?: any;
|
|
46
|
-
formattedTitle?:
|
|
47
|
+
formattedTitle?: string;
|
|
47
48
|
active?: any;
|
|
48
49
|
pausedTimerId?: any;
|
|
49
50
|
presenceResendTimerId?: any;
|