talkyzap-wapp-api 1.0.7 → 1.0.8

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.0 (2024-10-30)
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,24 @@
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;
24
+ export declare function getHasUnread(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,17 +84,45 @@ 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;
91
99
  isNewsletter: boolean;
92
100
  canUnread: boolean;
101
+ /**
102
+ * Deprecated in favor of getHasUnread
103
+ * @deprecated
104
+ */
93
105
  hasUnread: boolean;
94
106
  optimisticUnreadCount?: any;
107
+ /**
108
+ * Deprecated in favor of getShouldShowUnreadDivider
109
+ * @deprecated
110
+ */
95
111
  shouldShowUnreadDivider?: any;
112
+ /**
113
+ * Deprecated in favor of getShouldAppearInList
114
+ * @deprecated
115
+ */
96
116
  shouldAppearInList?: any;
117
+ /**
118
+ * Deprecated in favor of getPreviewMessage
119
+ * @deprecated
120
+ */
97
121
  previewMessage?: any;
122
+ /**
123
+ * Deprecated in favor of getShowChangeNumberNotification
124
+ * @deprecated
125
+ */
98
126
  showChangeNumberNotification?: any;
99
127
  shouldShowUnreadInTitle?: any;
100
128
  }