talkyzap-wapp-api 1.0.14 → 1.0.15
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/assert/assertColor.d.ts +4 -4
- package/dist/chat/functions/sendFileMessage.d.ts +2 -2
- package/dist/contact/functions/index.d.ts +2 -0
- package/dist/contact/functions/queryExists.d.ts +1 -0
- package/dist/contact/functions/remove.d.ts +27 -0
- package/dist/contact/functions/save.d.ts +33 -0
- package/dist/eventEmitter/index.d.ts +25 -25
- package/dist/profile/functions/editBusinessProfile.d.ts +60 -26
- package/dist/whatsapp/functions/canSaveAsMyContacts.d.ts +20 -0
- package/dist/whatsapp/functions/deleteContactAction.d.ts +19 -0
- package/dist/whatsapp/functions/index.d.ts +6 -0
- package/dist/whatsapp/functions/isLidMigrated.d.ts +19 -0
- package/dist/whatsapp/functions/productVisibilitySet.d.ts +1 -1
- package/dist/whatsapp/functions/saveContactAction.d.ts +26 -0
- package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +35 -32
- package/dist/whatsapp/functions/shouldHaveAccountLid.d.ts +19 -0
- package/dist/whatsapp/functions/toUserLid.d.ts +20 -0
- package/dist/whatsapp/misc/UserPrefs.d.ts +6 -1
- package/dist/whatsapp/misc/WidFactory.d.ts +3 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 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 WAWebSaveContactAction >= 2.3000.0
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @param user 5521980809090
|
|
21
|
+
* @param userToDelete 5521980809090
|
|
22
|
+
* @param name Contact Name
|
|
23
|
+
* @param surname Contact Surname
|
|
24
|
+
* @param syncToAddressbook Sync to Addressbook boolean
|
|
25
|
+
*/
|
|
26
|
+
export declare function saveContactAction(userToCreate: string, userToDelete: string | null, name?: any, surname?: any, syncToAddressbook?: boolean): Promise<undefined>;
|
|
@@ -15,40 +15,43 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Wid } from '..';
|
|
17
17
|
export interface QueryGroupInviteResult {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
noFrequentlyForwarded: boolean;
|
|
27
|
-
owner?: Wid;
|
|
28
|
-
parent: boolean;
|
|
29
|
-
participants: {
|
|
18
|
+
groupInfo: {
|
|
19
|
+
announce: boolean;
|
|
20
|
+
creation: number;
|
|
21
|
+
/** description of the group; linebreaks are formatted using `"\n"` */
|
|
22
|
+
desc: string;
|
|
23
|
+
descId: string;
|
|
24
|
+
descOwner?: Wid;
|
|
25
|
+
descTime: number;
|
|
30
26
|
id: Wid;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
noFrequentlyForwarded: boolean;
|
|
28
|
+
owner?: Wid;
|
|
29
|
+
parent: boolean;
|
|
30
|
+
participants: {
|
|
31
|
+
id: Wid;
|
|
32
|
+
isAdmin: boolean;
|
|
33
|
+
isSuperAdmin: boolean;
|
|
34
|
+
}[];
|
|
35
|
+
pvId?: string;
|
|
36
|
+
restrict: boolean;
|
|
37
|
+
/** how many members the group currently has */
|
|
38
|
+
size: number;
|
|
39
|
+
status: number;
|
|
40
|
+
/** title of the group */
|
|
41
|
+
subject: string;
|
|
42
|
+
subjectOwner?: Wid;
|
|
43
|
+
subjectTime: number;
|
|
44
|
+
support: boolean;
|
|
45
|
+
suspended: boolean;
|
|
46
|
+
isParentGroup: boolean;
|
|
47
|
+
isParentGroupClosed: boolean;
|
|
48
|
+
defaultSubgroup: boolean;
|
|
49
|
+
generalSubgroup: boolean;
|
|
50
|
+
membershipApprovalMode: boolean;
|
|
51
|
+
isLidAddressingMode: boolean;
|
|
52
|
+
generalChatAutoAddDisabled: boolean;
|
|
53
|
+
};
|
|
38
54
|
status: number;
|
|
39
|
-
/** title of the group */
|
|
40
|
-
subject: string;
|
|
41
|
-
subjectOwner?: Wid;
|
|
42
|
-
subjectTime: number;
|
|
43
|
-
support: boolean;
|
|
44
|
-
suspended: boolean;
|
|
45
|
-
isParentGroup: boolean;
|
|
46
|
-
isParentGroupClosed: boolean;
|
|
47
|
-
defaultSubgroup: boolean;
|
|
48
|
-
generalSubgroup: boolean;
|
|
49
|
-
membershipApprovalMode: boolean;
|
|
50
|
-
isLidAddressingMode: boolean;
|
|
51
|
-
generalChatAutoAddDisabled: boolean;
|
|
52
55
|
}
|
|
53
56
|
/** @whatsapp 10790
|
|
54
57
|
* @whatsapp 810790 >= 2.2222.8
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 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 WAWebLidMigrationUtils >= 2.3000.x
|
|
18
|
+
*/
|
|
19
|
+
export declare function shouldHaveAccountLid(): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 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.x
|
|
19
|
+
*/
|
|
20
|
+
export declare function toUserLid(wid: Wid): Wid;
|
|
@@ -18,6 +18,7 @@ import { Wid } from './Wid';
|
|
|
18
18
|
* @whatsapp 459857 >= 2.2310.5
|
|
19
19
|
*/
|
|
20
20
|
export declare namespace UserPrefs {
|
|
21
|
+
function getMeDevicePn(...args: any[]): any;
|
|
21
22
|
function assertGetMe(): Wid;
|
|
22
23
|
function assertGetMeUser(): Wid;
|
|
23
24
|
function clearGetMaybeMeUserCache(...args: any[]): any;
|
|
@@ -25,7 +26,6 @@ export declare namespace UserPrefs {
|
|
|
25
26
|
function getMaybeMeLid(...args: any[]): any;
|
|
26
27
|
function getMaybeMeLidUser(...args: any[]): any;
|
|
27
28
|
function getMaybeMeUser(): Wid;
|
|
28
|
-
function getMe(...args: any[]): any;
|
|
29
29
|
function getMePNandLIDWids(...args: any[]): any;
|
|
30
30
|
function getMeUser(): Wid;
|
|
31
31
|
function isMeAccount(...args: any[]): any;
|
|
@@ -36,4 +36,9 @@ export declare namespace UserPrefs {
|
|
|
36
36
|
function setMe(...args: any[]): any;
|
|
37
37
|
function setMeDisplayName(...args: any[]): any;
|
|
38
38
|
function setMeLid(...args: any[]): any;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated
|
|
41
|
+
* @whatsapp 498050 >= 2.3000.1026
|
|
42
|
+
**/
|
|
43
|
+
function getMe(...args: any[]): any;
|
|
39
44
|
}
|
|
@@ -29,5 +29,8 @@ export declare namespace WidFactory {
|
|
|
29
29
|
function isWidlike(wid: any): wid is Wid;
|
|
30
30
|
function toChatWid(wid: Wid): Wid;
|
|
31
31
|
function toUserWid(wid: Wid): Wid;
|
|
32
|
+
function toGroupWid(wid: Wid): Wid;
|
|
32
33
|
function userJidToUserWid(wid: string): Wid;
|
|
34
|
+
function toUserLidOrThrow(wid: Wid): Wid;
|
|
35
|
+
function toUserWidOrThrow(wid: Wid): Wid;
|
|
33
36
|
}
|