@wppconnect/wa-js 2.10.0 → 2.11.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.
- package/CHANGELOG.md +2 -350
- package/dist/assert/assertProduct.d.ts +22 -0
- package/dist/assert/index.d.ts +1 -0
- package/dist/catalog/functions/addProductImage.d.ts +28 -0
- package/dist/catalog/functions/changeProductImage.d.ts +28 -0
- package/dist/catalog/functions/createCollection.d.ts +26 -0
- package/dist/catalog/functions/createProduct.d.ts +47 -0
- package/dist/catalog/functions/deleteCollection.d.ts +26 -0
- package/dist/catalog/functions/deleteProduct.d.ts +30 -0
- package/dist/catalog/functions/editCollection.d.ts +32 -0
- package/dist/catalog/functions/editProduct.d.ts +36 -0
- package/dist/catalog/functions/getCollections.d.ts +31 -0
- package/dist/catalog/functions/getProductById.d.ts +28 -0
- package/dist/catalog/functions/getProducts.d.ts +27 -0
- package/dist/catalog/functions/index.d.ts +14 -0
- package/dist/catalog/functions/removeProductImage.d.ts +29 -0
- package/dist/catalog/functions/setProductVisibility.d.ts +30 -0
- package/dist/catalog/functions/updateCartEnabled.d.ts +30 -0
- package/dist/chat/functions/canMarkPlayed.d.ts +27 -0
- package/dist/chat/functions/getMessages.d.ts +25 -0
- package/dist/chat/functions/getPlatformFromMessage.d.ts +34 -0
- package/dist/chat/functions/index.d.ts +3 -0
- package/dist/chat/functions/markPlayed.d.ts +27 -0
- package/dist/chat/functions/prepareMessageButtons.d.ts +1 -1
- package/dist/{config.d.ts → config/Config.d.ts} +2 -3
- package/dist/config/defaultConfig.d.ts +17 -0
- package/dist/config/eventTypes.d.ts +25 -0
- package/dist/config/index.d.ts +23 -0
- package/dist/contact/functions/getBusinessProfile.d.ts +27 -0
- package/dist/contact/functions/index.d.ts +1 -0
- package/dist/eventEmitter/eventTypes.d.ts +3 -1
- package/dist/eventEmitter/index.d.ts +41 -41
- package/dist/index.d.ts +1 -1
- package/dist/labels/functions/getLabelById.d.ts +17 -0
- package/dist/labels/functions/index.d.ts +1 -0
- package/dist/profile/functions/editBusinessProfile.d.ts +177 -0
- package/dist/profile/functions/index.d.ts +1 -0
- package/dist/status/functions/index.d.ts +1 -0
- package/dist/status/functions/sendReadStatus.d.ts +25 -0
- package/dist/whatsapp/collections/CatalogCollection.d.ts +3 -1
- package/dist/whatsapp/contants/DROP_ATTR.d.ts +19 -0
- package/dist/whatsapp/contants/index.d.ts +16 -0
- package/dist/whatsapp/enums/CALL_STATES.d.ts +1 -0
- package/dist/whatsapp/enums/SendMsgResult.d.ts +1 -0
- package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +1 -0
- package/dist/whatsapp/functions/blockContact.d.ts +2 -0
- package/dist/whatsapp/functions/calculateFilehashFromBlob.d.ts +19 -0
- package/dist/whatsapp/functions/collections.d.ts +37 -0
- package/dist/whatsapp/functions/createMsgProtobuf.d.ts +1 -0
- package/dist/whatsapp/functions/editBusinessProfile.d.ts +20 -0
- package/dist/whatsapp/functions/encodeMaybeMediaType.d.ts +19 -0
- package/dist/whatsapp/functions/encryptAndSendGroupMsg.d.ts +1 -0
- package/dist/whatsapp/functions/encryptAndSendMsg.d.ts +1 -0
- package/dist/whatsapp/functions/fetchLinkPreview.d.ts +1 -0
- package/dist/whatsapp/functions/findChat.d.ts +1 -0
- package/dist/whatsapp/functions/genMinimalLinkPreview.d.ts +1 -0
- package/dist/whatsapp/functions/groupParticipants.d.ts +4 -0
- package/dist/whatsapp/functions/handleAck.d.ts +6 -0
- package/dist/whatsapp/functions/index.d.ts +6 -0
- package/dist/whatsapp/functions/markSeen.d.ts +9 -3
- package/dist/whatsapp/functions/mediaTypeFromProtobuf.d.ts +1 -0
- package/dist/whatsapp/functions/msgFindQuery.d.ts +2 -1
- package/dist/whatsapp/functions/productVisibilitySet.d.ts +21 -0
- package/dist/whatsapp/functions/products.d.ts +9 -0
- package/dist/whatsapp/functions/randomHex.d.ts +1 -0
- package/dist/whatsapp/functions/sendCallSignalingMsg.d.ts +3 -1
- package/dist/whatsapp/functions/sendClear.d.ts +1 -0
- package/dist/whatsapp/functions/sendDelete.d.ts +1 -0
- package/dist/whatsapp/functions/sendExitGroup.d.ts +1 -0
- package/dist/whatsapp/functions/sendReactionToMsg.d.ts +1 -0
- package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -0
- package/dist/whatsapp/functions/setArchive.d.ts +1 -0
- package/dist/whatsapp/functions/setPin.d.ts +2 -0
- package/dist/whatsapp/functions/typeAttributeFromProtobuf.d.ts +1 -0
- package/dist/whatsapp/functions/updateCartEnabled.d.ts +19 -0
- package/dist/whatsapp/index.d.ts +1 -0
- package/dist/whatsapp/misc/ChatPresence.d.ts +1 -0
- package/dist/whatsapp/misc/Locale.d.ts +1 -0
- package/dist/whatsapp/misc/ProductCatalogSession.d.ts +27 -0
- package/dist/whatsapp/misc/index.d.ts +1 -0
- package/dist/whatsapp/models/CatalogModel.d.ts +2 -0
- package/dist/whatsapp/models/ProductCollModel.d.ts +4 -0
- package/dist/whatsapp/models/ProductModel.d.ts +2 -1
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +14 -14
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export * from './DROP_ATTR';
|
|
@@ -17,5 +17,6 @@ import { SendMsgResult } from '../enums';
|
|
|
17
17
|
import { ChatModel, ModelPropertiesContructor, MsgModel } from '../models';
|
|
18
18
|
/** @whatsapp 75887
|
|
19
19
|
* @whatsapp 975887 >= 2.2222.8
|
|
20
|
+
* @whatsapp 623631 >= 2.2228.4
|
|
20
21
|
*/
|
|
21
22
|
export declare function addAndSendMsgToChat(chat: ChatModel, message: ModelPropertiesContructor<MsgModel>): Promise<[Promise<MsgModel>, Promise<SendMsgResult>]>;
|
|
@@ -16,9 +16,11 @@
|
|
|
16
16
|
import { ContactModel } from '../models';
|
|
17
17
|
/** @whatsapp 80140
|
|
18
18
|
* @whatsapp 780140 >= 2.2222.8
|
|
19
|
+
* @whatsapp 48826 >= 2.2228.4
|
|
19
20
|
*/
|
|
20
21
|
export declare function blockContact(contact: ContactModel): Promise<void>;
|
|
21
22
|
/** @whatsapp 80140
|
|
22
23
|
* @whatsapp 780140 >= 2.2222.8
|
|
24
|
+
* @whatsapp 48826 >= 2.2228.4
|
|
23
25
|
*/
|
|
24
26
|
export declare function unblockContact(contact: ContactModel): Promise<void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 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 818309 >= 2.2228.14
|
|
18
|
+
*/
|
|
19
|
+
export declare function calculateFilehashFromBlob(file: Blob): Promise<string>;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
/** @whatsapp 409465 >= 2.2228.14
|
|
18
|
+
*/
|
|
19
|
+
export declare function createCollection(...args: any[]): Promise<any>;
|
|
20
|
+
/** @whatsapp 409465 >= 2.2228.14
|
|
21
|
+
*/
|
|
22
|
+
export declare function deleteCollection(id: string, sessionId: string): Promise<any>;
|
|
23
|
+
/** @whatsapp 409465 >= 2.2228.14
|
|
24
|
+
*/
|
|
25
|
+
export declare function editCollection(collectionId: string, collectionName: string | undefined, collectionBoolea: boolean, productsToAdd: string[], productsToRemove: string[], sessionId: string): Promise<any>;
|
|
26
|
+
export interface QueryCollectionsIQtParams {
|
|
27
|
+
afterCursor?: string;
|
|
28
|
+
catalogWid?: Wid;
|
|
29
|
+
directConnectionEncryptedInfo?: any;
|
|
30
|
+
height?: 100;
|
|
31
|
+
width?: 100;
|
|
32
|
+
limit: number;
|
|
33
|
+
productsCount?: number;
|
|
34
|
+
}
|
|
35
|
+
/** @whatsapp 409465 >= 2.2228.14
|
|
36
|
+
*/
|
|
37
|
+
export declare function queryCollectionsIQ(params: QueryCollectionsIQtParams): any;
|
|
@@ -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 { BusinessProfileModel } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 461561
|
|
19
|
+
*/
|
|
20
|
+
export declare function editBusinessProfile(arguments: BusinessProfileModel): Promise<any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* @whatsapp 760210
|
|
18
|
+
*/
|
|
19
|
+
export declare function encodeMaybeMediaType(type: string): string | undefined;
|
|
@@ -16,17 +16,21 @@
|
|
|
16
16
|
import { ChatModel, ParticipantModel } from '..';
|
|
17
17
|
/** @whatsapp 89389
|
|
18
18
|
* @whatsapp 389389 >= 2.2222.8
|
|
19
|
+
* @whatsapp 815562 >= 2.2228.4
|
|
19
20
|
*/
|
|
20
21
|
export declare function addParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
21
22
|
/** @whatsapp 89389
|
|
22
23
|
* @whatsapp 389389 >= 2.2222.8
|
|
24
|
+
* @whatsapp 815562 >= 2.2228.4
|
|
23
25
|
*/
|
|
24
26
|
export declare function removeParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
25
27
|
/** @whatsapp 89389
|
|
26
28
|
* @whatsapp 389389 >= 2.2222.8
|
|
29
|
+
* @whatsapp 815562 >= 2.2228.4
|
|
27
30
|
*/
|
|
28
31
|
export declare function promoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
29
32
|
/** @whatsapp 89389
|
|
30
33
|
* @whatsapp 389389 >= 2.2222.8
|
|
34
|
+
* @whatsapp 815562 >= 2.2228.4
|
|
31
35
|
*/
|
|
32
36
|
export declare function demoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
@@ -31,29 +31,35 @@ export interface SimpleAckData {
|
|
|
31
31
|
* @whatsapp 90756
|
|
32
32
|
* @deprecated
|
|
33
33
|
* @whatsapp 590756 >= 2.2222.8
|
|
34
|
+
* @whatsapp 585294 >= 2.2230.8
|
|
34
35
|
*/
|
|
35
36
|
export declare function handleStatusSimpleAck(ackData: SimpleAckData): Promise<any>;
|
|
36
37
|
/**
|
|
37
38
|
* @whatsapp 48309
|
|
38
39
|
* @deprecated
|
|
39
40
|
* @whatsapp 648309 >= 2.2222.8
|
|
41
|
+
* @whatsapp 471873 >= 2.2230.8
|
|
40
42
|
*/
|
|
41
43
|
export declare function handleChatSimpleAck(ackData: SimpleAckData): Promise<any>;
|
|
42
44
|
/**
|
|
43
45
|
* @whatsapp 84947
|
|
44
46
|
* @deprecated
|
|
45
47
|
* @whatsapp 284947 >= 2.2222.8
|
|
48
|
+
* @whatsapp 359554 >= 2.2230.8
|
|
46
49
|
*/
|
|
47
50
|
export declare function handleGroupSimpleAck(ackData: SimpleAckData): Promise<any>;
|
|
48
51
|
/** @whatsapp 90756
|
|
49
52
|
* @whatsapp 590756 >= 2.2222.8
|
|
53
|
+
* @whatsapp 585294 >= 2.2230.8
|
|
50
54
|
*/
|
|
51
55
|
export declare function handleStatusSimpleReceipt(ackData: SimpleAckData): Promise<any>;
|
|
52
56
|
/** @whatsapp 48309
|
|
53
57
|
* @whatsapp 648309 >= 2.2222.8
|
|
58
|
+
* @whatsapp 471873 >= 2.2230.8
|
|
54
59
|
*/
|
|
55
60
|
export declare function handleChatSimpleReceipt(ackData: SimpleAckData): Promise<any>;
|
|
56
61
|
/** @whatsapp 84947
|
|
57
62
|
* @whatsapp 284947 >= 2.2222.8
|
|
63
|
+
* @whatsapp 359554 >= 2.2230.8
|
|
58
64
|
*/
|
|
59
65
|
export declare function handleGroupSimpleReceipt(ackData: SimpleAckData): Promise<any>;
|
|
@@ -15,8 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export * from './addAndSendMsgToChat';
|
|
17
17
|
export * from './blockContact';
|
|
18
|
+
export * from './calculateFilehashFromBlob';
|
|
19
|
+
export * from './collections';
|
|
18
20
|
export * from './createMsgProtobuf';
|
|
19
21
|
export * from './createOrUpdateReactions';
|
|
22
|
+
export * from './editBusinessProfile';
|
|
23
|
+
export * from './encodeMaybeMediaType';
|
|
20
24
|
export * from './encryptAndSendGroupMsg';
|
|
21
25
|
export * from './encryptAndSendMsg';
|
|
22
26
|
export * from './fetchLinkPreview';
|
|
@@ -35,6 +39,7 @@ export * from './markSeen';
|
|
|
35
39
|
export * from './mediaTypeFromProtobuf';
|
|
36
40
|
export * from './msgFindQuery';
|
|
37
41
|
export * from './products';
|
|
42
|
+
export * from './productVisibilitySet';
|
|
38
43
|
export * from './profilePic';
|
|
39
44
|
export * from './randomHex';
|
|
40
45
|
export * from './randomId';
|
|
@@ -55,6 +60,7 @@ export * from './setGroup';
|
|
|
55
60
|
export * from './setPin';
|
|
56
61
|
export * from './status';
|
|
57
62
|
export * from './typeAttributeFromProtobuf';
|
|
63
|
+
export * from './updateCartEnabled';
|
|
58
64
|
export * from './updateDBForGroupAction';
|
|
59
65
|
export * from './updateParticipants';
|
|
60
66
|
export * from './uploadProductImage';
|
|
@@ -14,15 +14,21 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel, MsgModel } from '../models';
|
|
17
|
-
/** @whatsapp 9609
|
|
17
|
+
/** @whatsapp 9609
|
|
18
|
+
* @whatsapp 561498 >= 2.2228.4
|
|
19
|
+
*/
|
|
18
20
|
export declare function markUnread(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
|
|
19
|
-
/** @whatsapp 9609
|
|
21
|
+
/** @whatsapp 9609
|
|
22
|
+
* @whatsapp 561498 >= 2.2228.4
|
|
23
|
+
*/
|
|
20
24
|
export declare function sendSeen(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
|
|
21
25
|
/** @whatsapp 30734
|
|
22
26
|
* @whatsapp 730734 >= 2.2222.8
|
|
27
|
+
* @whatsapp 242050 >= 2.2228.4
|
|
23
28
|
*/
|
|
24
29
|
export declare function markPlayed(msg: MsgModel): Promise<void>;
|
|
25
30
|
/**
|
|
26
|
-
* @whatsapp
|
|
31
|
+
* @whatsapp 64850
|
|
32
|
+
* @whatsapp 242050 >= 2.2228.4
|
|
27
33
|
*/
|
|
28
34
|
export declare function canMarkPlayed(msg: MsgModel): boolean;
|
|
@@ -22,6 +22,7 @@ export interface MsgFindQueryParams {
|
|
|
22
22
|
fromMe?: boolean;
|
|
23
23
|
id?: string;
|
|
24
24
|
participant?: any;
|
|
25
|
+
media?: 'url' | 'document';
|
|
25
26
|
}
|
|
26
27
|
/** @whatsapp 76581 */
|
|
27
|
-
export declare function msgFindQuery(direction: 'after' | 'before', params: MsgFindQueryParams): Promise<ModelPropertiesContructor<MsgModel>[]>;
|
|
28
|
+
export declare function msgFindQuery(direction: 'after' | 'before' | 'media', params: MsgFindQueryParams): Promise<ModelPropertiesContructor<MsgModel>[] | any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 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
|
+
export interface ProductVisibilitySetParams {
|
|
17
|
+
isHidden: boolean;
|
|
18
|
+
productId: number;
|
|
19
|
+
}
|
|
20
|
+
/** @whatsapp 621374 >= 2.2228.14 */
|
|
21
|
+
export declare function productVisibilitySet(params: ProductVisibilitySetParams[]): any;
|
|
@@ -14,21 +14,30 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ProductModel } from '..';
|
|
17
|
+
import { Wid } from '../misc';
|
|
17
18
|
/** @whatsapp 2.2144.10:35339 */
|
|
18
19
|
export declare function createBusinessCatalog(): Promise<any>;
|
|
19
20
|
/** @whatsapp 96519
|
|
20
21
|
* @whatsapp 196519 >= 2.2222.8
|
|
22
|
+
* @whatsapp 895697 >= 2.2228.4
|
|
21
23
|
*/
|
|
22
24
|
export declare function addProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
|
|
23
25
|
/** @whatsapp 96519
|
|
24
26
|
* @whatsapp 196519 >= 2.2222.8
|
|
27
|
+
* @whatsapp 895697 >= 2.2228.4
|
|
25
28
|
*/
|
|
26
29
|
export declare function editProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
|
|
27
30
|
/** @whatsapp 96519
|
|
28
31
|
* @whatsapp 196519 >= 2.2222.8
|
|
32
|
+
* @whatsapp 895697 >= 2.2228.4
|
|
29
33
|
*/
|
|
30
34
|
export declare function deleteProducts(productIds: string[]): Promise<any>;
|
|
31
35
|
/** @whatsapp 96519
|
|
32
36
|
* @whatsapp 196519 >= 2.2222.8
|
|
37
|
+
* @whatsapp 895697 >= 2.2228.4
|
|
33
38
|
*/
|
|
34
39
|
export declare function sendProductToChat(...args: any[]): Promise<any>;
|
|
40
|
+
/** @whatsapp 621374 >= 2.2228.14 */
|
|
41
|
+
export declare function queryCatalog(chatId?: Wid, t?: any, n?: number, r?: number, i?: number, s?: any, l?: any): any;
|
|
42
|
+
/** @whatsapp 621374 >= 2.2228.14 */
|
|
43
|
+
export declare function queryProduct(chatId?: Wid, productId?: any, imageWidth?: number, imageHeight?: number, i?: any, s?: boolean, l?: any): any;
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp 56981
|
|
16
|
+
/** @whatsapp 56981
|
|
17
|
+
* @whatsapp 383674 >= 2.2228.4
|
|
18
|
+
*/
|
|
17
19
|
export declare function sendCallSignalingMsg(data: {
|
|
18
20
|
common: {
|
|
19
21
|
type?: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 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 990553
|
|
18
|
+
*/
|
|
19
|
+
export declare function updateCartEnabled(enabled: boolean): Promise<void>;
|
package/dist/whatsapp/index.d.ts
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 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 409153 >= 2.2228.14
|
|
18
|
+
*/
|
|
19
|
+
export declare class ProductCatalogSession {
|
|
20
|
+
constructor(e: any);
|
|
21
|
+
accidental?: boolean;
|
|
22
|
+
sessionId?: number | string;
|
|
23
|
+
isAccidental(): boolean;
|
|
24
|
+
initSessionId(): number;
|
|
25
|
+
newSessionId(): number;
|
|
26
|
+
toString(): string;
|
|
27
|
+
}
|
|
@@ -39,6 +39,8 @@ export declare interface CatalogModel extends ModelProxy<Props, Session, Derived
|
|
|
39
39
|
export declare class CatalogModel extends Model<CatalogCollection> {
|
|
40
40
|
idClass: typeof Wid;
|
|
41
41
|
constructor(proterties?: ModelPropertiesContructor<CatalogModel>, options?: ModelOptions);
|
|
42
|
+
productCollection: ProductModel[];
|
|
43
|
+
collections: any;
|
|
42
44
|
triggerProductUpdate(): any;
|
|
43
45
|
triggerMsgUpdate(): any;
|
|
44
46
|
markProductCollectionOld(): any;
|
|
@@ -16,10 +16,14 @@
|
|
|
16
16
|
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
17
17
|
interface Props {
|
|
18
18
|
id?: any;
|
|
19
|
+
name?: string;
|
|
19
20
|
isHidden: boolean;
|
|
20
21
|
reviewStatus?: any;
|
|
22
|
+
commerceUrl?: any;
|
|
23
|
+
rejectReason?: any;
|
|
21
24
|
totalItemsCount?: any;
|
|
22
25
|
afterCursor?: any;
|
|
26
|
+
canAppeal?: any;
|
|
23
27
|
}
|
|
24
28
|
interface Session {
|
|
25
29
|
stale?: any;
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
17
17
|
interface Props {
|
|
18
18
|
id?: any;
|
|
19
|
-
isHidden
|
|
19
|
+
isHidden?: boolean;
|
|
20
20
|
catalogWid?: any;
|
|
21
21
|
url?: any;
|
|
22
|
+
name?: string;
|
|
22
23
|
description?: any;
|
|
23
24
|
availability?: any;
|
|
24
25
|
reviewStatus?: any;
|