talkyzap-wapp-api 1.0.2 → 1.0.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 +6 -1
- package/README.md +57 -0
- package/dist/call/functions/end.d.ts +5 -5
- package/dist/chat/functions/index.d.ts +1 -0
- package/dist/chat/functions/sendGroupInviteMessage.d.ts +0 -14
- package/dist/chat/functions/sendPixKeyMessage.d.ts +53 -0
- package/dist/chat/types.d.ts +3 -0
- package/dist/conn/events/eventTypes.d.ts +2 -0
- package/dist/conn/events/index.d.ts +1 -0
- package/dist/conn/events/registerLogoutReasonEvent.d.ts +16 -0
- package/dist/group/functions/ensureGroup.d.ts +1 -1
- package/dist/group/functions/getPastParticipants.d.ts +27 -0
- package/dist/group/functions/index.d.ts +1 -0
- package/dist/order/functions/get.d.ts +3 -3
- package/dist/status/functions/index.d.ts +1 -0
- package/dist/status/functions/remove.d.ts +17 -0
- package/dist/status/functions/sendRawStatus.d.ts +1 -0
- package/dist/status/functions/sendTextStatus.d.ts +0 -1
- package/dist/whatsapp/enums/LogoutReason.d.ts +25 -8
- package/dist/whatsapp/functions/STATUS_JID.d.ts +19 -0
- package/dist/whatsapp/functions/canEditCaption.d.ts +20 -0
- package/dist/whatsapp/functions/createGroup.d.ts +17 -0
- package/dist/whatsapp/functions/createOrUpdateReactions.d.ts +1 -0
- package/dist/whatsapp/functions/encryptAndSendStatusMsg.d.ts +35 -0
- package/dist/whatsapp/functions/getErrorCodeFromLogoutReason.d.ts +20 -0
- package/dist/whatsapp/functions/index.d.ts +7 -0
- package/dist/whatsapp/functions/queryOrder.d.ts +32 -0
- package/dist/whatsapp/functions/revokeStatus.d.ts +20 -0
- package/dist/whatsapp/functions/statusEnable.d.ts +19 -0
- package/dist/whatsapp/misc/Cmd.d.ts +17 -2
- package/dist/whatsapp/misc/Wid.d.ts +2 -0
- package/dist/whatsapp/models/GroupMetadataModel.d.ts +4 -2
- package/dist/whatsapp/models/index.d.ts +0 -1
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +2 -0
- package/package.json +21 -20
- package/dist/whatsapp/models/CallParticipantModel.d.ts +0 -50
|
@@ -52,8 +52,23 @@ export declare class CmdClass extends EventEmitter {
|
|
|
52
52
|
ephemeralDrawer(e?: any, t?: any): void;
|
|
53
53
|
sendStarMsgs(chat: ChatModel, msgs: MsgModel[], id?: any, toastPosition?: any): void;
|
|
54
54
|
sendUnstarMsgs(chat: ChatModel, msgs: MsgModel[], id?: any, toastPosition?: any): void;
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
/** Whatsapp <= 2.3000.1014080102 */
|
|
56
|
+
sendDeleteMsgs(chat: ChatModel, msg: {
|
|
57
|
+
type: string;
|
|
58
|
+
list: MsgModel[];
|
|
59
|
+
} | MsgModel[], options?: {
|
|
60
|
+
clearMedia?: boolean;
|
|
61
|
+
toastPosition?: any;
|
|
62
|
+
}): void;
|
|
63
|
+
/** Whatsapp >= 2.3000.1014080102 */
|
|
64
|
+
sendDeleteMsgs(chat: ChatModel, msg: {
|
|
65
|
+
type: string;
|
|
66
|
+
list: MsgModel[];
|
|
67
|
+
} | MsgModel[], clearMedia?: boolean): void;
|
|
68
|
+
sendRevokeMsgs(chat: ChatModel, msg: {
|
|
69
|
+
type: string;
|
|
70
|
+
list: MsgModel[];
|
|
71
|
+
} | MsgModel[], options?: {
|
|
57
72
|
clearMedia?: boolean;
|
|
58
73
|
toastPosition?: any;
|
|
59
74
|
}): void;
|
|
@@ -38,6 +38,7 @@ export declare class Wid {
|
|
|
38
38
|
isPSA(): boolean;
|
|
39
39
|
isServer(): boolean;
|
|
40
40
|
isStatusV3(): boolean;
|
|
41
|
+
isStatus(): boolean;
|
|
41
42
|
isUser(): boolean;
|
|
42
43
|
isLid(): boolean;
|
|
43
44
|
isUserNotPSA(): boolean;
|
|
@@ -60,6 +61,7 @@ export declare class Wid {
|
|
|
60
61
|
static isPSA(wid: string | Wid): boolean;
|
|
61
62
|
static isServer(wid: string | Wid): boolean;
|
|
62
63
|
static isStatusV3(wid: string | Wid): boolean;
|
|
64
|
+
static isStatus(wid: string | Wid): boolean;
|
|
63
65
|
static isUser(wid: string | Wid): boolean;
|
|
64
66
|
static isLid(wid: string | Wid): boolean;
|
|
65
67
|
static isWid(wid: string | Wid): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2024 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.
|
|
@@ -20,6 +20,7 @@ interface Props {
|
|
|
20
20
|
id: Wid;
|
|
21
21
|
creation?: any;
|
|
22
22
|
owner?: any;
|
|
23
|
+
memberAddMode?: string;
|
|
23
24
|
subject?: string;
|
|
24
25
|
subjectTime?: any;
|
|
25
26
|
desc?: string;
|
|
@@ -85,7 +86,8 @@ export declare interface GroupMetadataModel extends ModelProxy<Props, Session, D
|
|
|
85
86
|
export declare class GroupMetadataModel extends Model {
|
|
86
87
|
idClass: typeof Wid;
|
|
87
88
|
participants: ParticipantCollection;
|
|
88
|
-
|
|
89
|
+
pastParticipants: ParticipantCollection;
|
|
90
|
+
constructor(properties?: ModelPropertiesContructor<GroupMetadataModel>, options?: ModelOptions);
|
|
89
91
|
hasUniqueShortNameMention(e?: any): boolean;
|
|
90
92
|
canSetSubject(): boolean;
|
|
91
93
|
canSetDescription(): boolean;
|
|
@@ -19,7 +19,6 @@ export * from './BlocklistModel';
|
|
|
19
19
|
export * from './BusinessCategoriesResultModel';
|
|
20
20
|
export * from './BusinessProfileModel';
|
|
21
21
|
export * from './CallModel';
|
|
22
|
-
export * from './CallParticipantModel';
|
|
23
22
|
export * from './CartItemModel';
|
|
24
23
|
export * from './CartModel';
|
|
25
24
|
export * from './CatalogModel';
|