@wppconnect/wa-js 3.14.1 → 3.14.2

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## 3.14.1 (2024-11-11)
1
+ ## 3.14.2 (2024-11-14)
2
2
 
3
3
 
4
4
 
@@ -0,0 +1,20 @@
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 '../misc';
17
+ import { ChatModel } from '../models';
18
+ /** @whatsapp WAWebFindChatAction
19
+ */
20
+ export declare function findOrCreateLatestChat(wid: Wid, type?: 'username_contactless_search'): Promise<ChatModel>;
@@ -0,0 +1,23 @@
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 { ChatModel } from '../models';
17
+ /**
18
+ * @whatsapp WAWebGetters
19
+ */
20
+ export declare function getShouldAppearInList(chat: ChatModel): boolean;
21
+ export declare function getPreviewMessage(chat: ChatModel): any[];
22
+ export declare function getShowChangeNumberNotification(chat: ChatModel): boolean;
23
+ export declare function getShouldShowUnreadDivider(chat: ChatModel): boolean;
@@ -47,6 +47,7 @@ export * from './fetchLinkPreview';
47
47
  export * from './findChat';
48
48
  export * from './findCommonGroups';
49
49
  export * from './findFirstWebLink';
50
+ export * from './findOrCreateLatestChat';
50
51
  export * from './forwardMessagesToChats';
51
52
  export * from './frontendFireAndForget';
52
53
  export * from './genBotMsgSecretFromMsgSecret';
@@ -75,6 +76,7 @@ export * from './getPushname';
75
76
  export * from './getQuotedMsgObj';
76
77
  export * from './getReactions';
77
78
  export * from './getSearchContext';
79
+ export * from './getShouldAppearInList';
78
80
  export * from './getStatusList';
79
81
  export * from './getTableVotes';
80
82
  export * from './getVotes';
@@ -84,7 +84,15 @@ interface Session extends SessionChatBase {
84
84
  interface Derived {
85
85
  kind?: any;
86
86
  isUser: boolean;
87
+ /**
88
+ * Deprecated in favor of getIsUser
89
+ * @deprecated
90
+ */
87
91
  isPSA: boolean;
92
+ /**
93
+ * Deprecated in favor of getIsPSA
94
+ * @deprecated
95
+ */
88
96
  isGroup: boolean;
89
97
  isParentGroup: boolean;
90
98
  isBroadcast: boolean;
@@ -92,9 +100,25 @@ interface Derived {
92
100
  canUnread: boolean;
93
101
  hasUnread: boolean;
94
102
  optimisticUnreadCount?: any;
103
+ /**
104
+ * Deprecated in favor of getShouldShowUnreadDivider
105
+ * @deprecated
106
+ */
95
107
  shouldShowUnreadDivider?: any;
108
+ /**
109
+ * Deprecated in favor of getShouldAppearInList
110
+ * @deprecated
111
+ */
96
112
  shouldAppearInList?: any;
113
+ /**
114
+ * Deprecated in favor of getPreviewMessage
115
+ * @deprecated
116
+ */
97
117
  previewMessage?: any;
118
+ /**
119
+ * Deprecated in favor of getShowChangeNumberNotification
120
+ * @deprecated
121
+ */
98
122
  showChangeNumberNotification?: any;
99
123
  shouldShowUnreadInTitle?: any;
100
124
  }