talkyzap-wapp-api 1.0.0 → 1.0.1

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2023 WPPConnect Team
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 @@ export interface ChatListOptions {
20
20
  direction?: 'after' | 'before';
21
21
  onlyCommunities?: boolean;
22
22
  onlyGroups?: boolean;
23
+ onlyNewsletter?: boolean;
23
24
  onlyUsers?: boolean;
24
25
  onlyWithUnreadMessage?: boolean;
25
26
  withLabels?: string[];
@@ -47,6 +48,9 @@ export interface ChatListOptions {
47
48
  * // Only communities chats
48
49
  * const chats = await WPP.chat.list({onlyCommunities: true});
49
50
  *
51
+ * // Only Newsletter
52
+ * const chats = await WPP.chat.list({onlyNewsletter: true});
53
+ *
50
54
  * // Only with label Text
51
55
  * const chats = await WPP.chat.list({withLabels: ['Test']});
52
56
  *
@@ -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 WAWebPollsVotesSchema => 2.3000.x
18
+ */
19
+ export declare function getTableVotes(args?: any): any;
@@ -66,6 +66,7 @@ export * from './getPushname';
66
66
  export * from './getQuotedMsgObj';
67
67
  export * from './getReactions';
68
68
  export * from './getSearchContext';
69
+ export * from './getTableVotes';
69
70
  export * from './getVotes';
70
71
  export * from './getWhatsAppWebExternalBetaJoinedIdb';
71
72
  export * from './GROUP_JID';
@@ -132,3 +133,4 @@ export * from './uploadMedia';
132
133
  export * from './uploadProductImage';
133
134
  export * from './uploadThumbnail';
134
135
  export * from './upsertVotes';
136
+ export * from './voteFromDbRow';
@@ -13,12 +13,15 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { MsgModel } from '../models';
16
17
  /** @whatsapp 397995
17
18
  */
18
19
  export declare function sendNewsletterMessageJob(data: {
19
- msgData: any;
20
+ msgData?: any;
21
+ msg?: MsgModel;
20
22
  newsletterJid: string;
21
23
  type: string;
24
+ editType?: 'media' | 'text';
22
25
  }): Promise<{
23
26
  ack: {
24
27
  t: number;
@@ -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 { MsgModel } from '../models';
17
+ /**
18
+ * @whatsapp WAWebPollsDbSerialization >= 2.3000.x
19
+ */
20
+ export declare function voteFromDbRow(msg: MsgModel): Promise<any>;