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.
@@ -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
- announce: boolean;
19
- creation: number;
20
- /** description of the group; linebreaks are formatted using `"\n"` */
21
- desc: string;
22
- descId: string;
23
- descOwner?: Wid;
24
- descTime: number;
25
- id: Wid;
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
- isAdmin: boolean;
32
- isSuperAdmin: boolean;
33
- }[];
34
- pvId?: string;
35
- restrict: boolean;
36
- /** how many members the group currently has */
37
- size: number;
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
  }