@wppconnect/wa-js 1.0.14 → 1.1.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 +21 -0
- package/README.md +72 -2
- package/dist/assert/assertColor.d.ts +35 -0
- package/dist/assert/assertIsBusiness.d.ts +20 -0
- package/dist/assert/index.d.ts +2 -0
- package/dist/auth/eventEmitter.d.ts +52 -0
- package/dist/{blocklist/Blocklist.d.ts → auth/events/index.d.ts} +3 -11
- package/dist/{contact/types.d.ts → auth/events/registerChangeEvent.d.ts} +1 -3
- package/dist/auth/events/registerIdleEvent.d.ts +16 -0
- package/dist/auth/events/registerLogoutEvent.d.ts +16 -0
- package/dist/auth/functions/getAuthCode.d.ts +22 -0
- package/dist/{contact/Contact.d.ts → auth/functions/index.d.ts} +7 -11
- package/dist/auth/functions/isAuthenticated.d.ts +16 -0
- package/dist/auth/functions/isIdle.d.ts +16 -0
- package/dist/auth/functions/isMultiDevice.d.ts +16 -0
- package/dist/auth/functions/logout.d.ts +16 -0
- package/dist/auth/functions/poke.d.ts +16 -0
- package/dist/auth/functions/setMultiDevice.d.ts +23 -0
- package/dist/auth/index.d.ts +3 -4
- package/dist/auth/types.d.ts +0 -5
- package/dist/blocklist/eventEmitter.d.ts +49 -0
- package/dist/blocklist/events/index.d.ts +16 -0
- package/dist/blocklist/events/registerSyncedEvent.d.ts +16 -0
- package/dist/blocklist/functions/all.d.ts +17 -0
- package/dist/blocklist/functions/blockContact.d.ts +18 -0
- package/dist/blocklist/functions/index.d.ts +19 -0
- package/dist/blocklist/functions/isBlocked.d.ts +17 -0
- package/dist/blocklist/functions/unblockContact.d.ts +18 -0
- package/dist/blocklist/index.d.ts +3 -5
- package/dist/blocklist/types.d.ts +0 -3
- package/dist/chat/defaultSendMessageOptions.d.ts +19 -0
- package/dist/chat/eventEmitter.d.ts +107 -0
- package/dist/chat/events/index.d.ts +18 -0
- package/dist/chat/events/registerAckMessageEvent.d.ts +16 -0
- package/dist/chat/events/registerLiveLocationUpdateEvent.d.ts +16 -0
- package/dist/chat/events/registerRevokeMessageEvent.d.ts +16 -0
- package/dist/chat/functions/clear.d.ts +26 -0
- package/dist/chat/functions/delete.d.ts +26 -0
- package/dist/chat/functions/deleteMessage.d.ts +35 -0
- package/dist/chat/functions/downloadMedia.d.ts +21 -0
- package/dist/chat/functions/find.d.ts +24 -0
- package/dist/chat/functions/generateMessageID.d.ts +22 -0
- package/dist/chat/functions/get.d.ts +22 -0
- package/dist/chat/functions/getMessageById.d.ts +35 -0
- package/dist/chat/functions/getMessages.d.ts +48 -0
- package/dist/chat/functions/index.d.ts +37 -0
- package/dist/chat/functions/markIsComposing.d.ts +31 -0
- package/dist/chat/functions/markIsPaused.d.ts +27 -0
- package/dist/chat/functions/markIsRead.d.ts +30 -0
- package/dist/chat/functions/markIsRecording.d.ts +31 -0
- package/dist/chat/functions/markIsUnread.d.ts +29 -0
- package/dist/chat/functions/prepareLinkPreview.d.ts +53 -0
- package/dist/chat/functions/prepareMessageButtons.d.ts +40 -0
- package/dist/chat/functions/prepareRawMessage.d.ts +23 -0
- package/dist/chat/functions/sendFileMessage.d.ts +116 -0
- package/dist/{group/types.d.ts → chat/functions/sendListMessage.d.ts} +26 -25
- package/dist/chat/functions/sendRawMessage.d.ts +22 -0
- package/dist/chat/functions/sendTextMessage.d.ts +23 -0
- package/dist/chat/functions/sendVCardContactMessage.d.ts +27 -0
- package/dist/chat/index.d.ts +4 -4
- package/dist/chat/types.d.ts +32 -105
- package/dist/contact/eventEmitter.d.ts +48 -0
- package/dist/contact/functions/index.d.ts +16 -0
- package/dist/contact/functions/queryExists.d.ts +20 -0
- package/dist/contact/index.d.ts +2 -5
- package/dist/group/eventEmitter.d.ts +48 -0
- package/dist/group/functions/addParticipants.d.ts +17 -0
- package/dist/group/functions/canAdd.d.ts +17 -0
- package/dist/group/functions/canDemote.d.ts +17 -0
- package/dist/group/functions/canPromote.d.ts +17 -0
- package/dist/group/functions/canRemove.d.ts +17 -0
- package/dist/group/functions/create.d.ts +25 -0
- package/dist/group/functions/demoteParticipants.d.ts +17 -0
- package/dist/group/functions/ensureGroup.d.ts +17 -0
- package/dist/group/functions/ensureGroupAndParticipants.d.ts +20 -0
- package/dist/group/functions/getParticipants.d.ts +25 -0
- package/dist/group/functions/iAmAdmin.d.ts +17 -0
- package/dist/group/functions/iAmMember.d.ts +17 -0
- package/dist/group/functions/iAmRestrictedMember.d.ts +17 -0
- package/dist/group/functions/iAmSuperAdmin.d.ts +17 -0
- package/dist/group/functions/index.d.ts +31 -0
- package/dist/group/functions/promoteParticipants.d.ts +17 -0
- package/dist/group/functions/removeParticipants.d.ts +17 -0
- package/dist/group/index.d.ts +2 -5
- package/dist/index.d.ts +7 -7
- package/dist/labels/eventEmitter.d.ts +48 -0
- package/dist/labels/functions/addNewLabel.d.ts +35 -0
- package/dist/labels/functions/addOrRemoveLabels.d.ts +31 -0
- package/dist/labels/functions/colorIsInLabelPalette.d.ts +26 -0
- package/dist/labels/functions/deleteAllLabels.d.ts +17 -0
- package/dist/labels/functions/deleteLabel.d.ts +21 -0
- package/dist/labels/functions/getAllLabels.d.ts +17 -0
- package/dist/labels/functions/getLabelColorPalette.d.ts +19 -0
- package/dist/labels/functions/getNewLabelColor.d.ts +19 -0
- package/dist/labels/functions/index.d.ts +23 -0
- package/dist/labels/index.d.ts +18 -0
- package/dist/labels/types.d.ts +21 -0
- package/dist/status/{types.d.ts → defaultSendStatusOptions.d.ts} +3 -12
- package/dist/status/eventEmitter.d.ts +49 -0
- package/dist/status/events/index.d.ts +16 -0
- package/dist/status/events/registerSyncedEvent.d.ts +16 -0
- package/dist/status/functions/get.d.ts +17 -0
- package/dist/status/functions/getMyStatus.d.ts +17 -0
- package/dist/status/functions/index.d.ts +19 -0
- package/dist/status/functions/sendRawStatus.d.ts +20 -0
- package/dist/status/functions/sendTextStatus.d.ts +31 -0
- package/dist/status/index.d.ts +4 -5
- package/dist/util/convertToFile.d.ts +16 -0
- package/dist/webpack.d.ts +3 -1
- package/dist/whatsapp/collections/{CollectionCache.d.ts → BaseCollection.d.ts} +4 -4
- package/dist/whatsapp/collections/BlocklistCollection.d.ts +1 -1
- package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +1 -1
- package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ButtonCollection.d.ts +3 -3
- package/dist/whatsapp/collections/CallCollection.d.ts +1 -1
- package/dist/whatsapp/collections/CartCollection.d.ts +1 -1
- package/dist/whatsapp/collections/CartItemCollection.d.ts +1 -1
- package/dist/whatsapp/collections/CatalogCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ChatCollection.d.ts +3 -3
- package/dist/whatsapp/collections/ChatstateCollection.d.ts +1 -1
- package/dist/whatsapp/collections/Collection.d.ts +4 -3
- package/dist/whatsapp/collections/ContactCollection.d.ts +1 -1
- package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +1 -1
- package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +3 -5
- package/dist/whatsapp/collections/LabelCollection.d.ts +4 -3
- package/dist/whatsapp/collections/LabelItemCollection.d.ts +1 -1
- package/dist/whatsapp/collections/LiveLocationCollection.d.ts +3 -4
- package/dist/whatsapp/collections/MsgCollection.d.ts +3 -3
- package/dist/whatsapp/collections/MsgInfoCollection.d.ts +1 -1
- package/dist/whatsapp/collections/MuteCollection.d.ts +1 -1
- package/dist/whatsapp/collections/OrderCollection.d.ts +1 -1
- package/dist/whatsapp/collections/OrderItemCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -1
- package/dist/whatsapp/collections/PresenceCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductCollCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductImageCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductMessageListCollection.d.ts +4 -4
- package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +1 -1
- package/dist/whatsapp/collections/QuickReplyCollection.d.ts +1 -1
- package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +1 -1
- package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StarredMsgCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StarredStickerCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StatusCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StatusV3Collection.d.ts +3 -3
- package/dist/whatsapp/collections/StickerCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StickerSearchCollection.d.ts +1 -1
- package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +1 -1
- package/dist/whatsapp/collections/index.d.ts +1 -1
- package/dist/whatsapp/enums/LogoutReason.d.ts +1 -1
- package/dist/whatsapp/enums/OUTWARD_TYPES.d.ts +1 -1
- package/dist/whatsapp/enums/SendMsgResult.d.ts +1 -1
- package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +1 -1
- package/dist/whatsapp/functions/blockContact.d.ts +2 -2
- package/dist/whatsapp/functions/fetchLinkPreview.d.ts +29 -0
- package/dist/whatsapp/functions/findChat.d.ts +1 -1
- package/dist/whatsapp/functions/findFirstWebLink.d.ts +17 -0
- package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -1
- package/dist/whatsapp/functions/groupParticipants.d.ts +4 -4
- package/dist/whatsapp/functions/handleAck.d.ts +21 -0
- package/dist/whatsapp/functions/index.d.ts +4 -0
- package/dist/whatsapp/functions/isAuthenticated.d.ts +1 -1
- package/dist/{auth/Auth.d.ts → whatsapp/functions/markSeen.d.ts} +11 -17
- package/dist/whatsapp/functions/msgFindQuery.d.ts +1 -1
- package/dist/whatsapp/functions/products.d.ts +4 -4
- package/dist/whatsapp/functions/randomId.d.ts +2 -2
- package/dist/whatsapp/functions/sendClear.d.ts +1 -1
- package/dist/whatsapp/functions/sendCreateGroup.d.ts +1 -1
- package/dist/whatsapp/functions/sendDelete.d.ts +1 -1
- package/dist/whatsapp/functions/sendQueryExists.d.ts +1 -1
- package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -1
- package/dist/whatsapp/functions/uploadProductImage.d.ts +1 -1
- package/dist/whatsapp/misc/Base64.d.ts +1 -1
- package/dist/whatsapp/misc/Browser.d.ts +1 -1
- package/dist/whatsapp/misc/ChatPresence.d.ts +25 -0
- package/dist/whatsapp/misc/Clock.d.ts +45 -0
- package/dist/whatsapp/misc/Cmd.d.ts +2 -2
- package/dist/whatsapp/misc/Conn.d.ts +1 -1
- package/dist/whatsapp/misc/Constants.d.ts +1 -1
- package/dist/whatsapp/misc/EventEmitter.d.ts +1 -1
- package/dist/whatsapp/misc/Features.d.ts +1 -1
- package/dist/whatsapp/misc/ImageUtils.d.ts +1 -1
- package/dist/whatsapp/misc/Locale.d.ts +1 -1
- package/dist/whatsapp/misc/MediaBlobCache.d.ts +30 -0
- package/dist/whatsapp/misc/MediaObject.d.ts +1 -1
- package/dist/whatsapp/misc/MediaObjectUtil.d.ts +1 -1
- package/dist/whatsapp/misc/MediaPrep.d.ts +1 -1
- package/dist/whatsapp/misc/MediaUtils.d.ts +1 -1
- package/dist/whatsapp/misc/MsgKey.d.ts +1 -1
- package/dist/whatsapp/misc/MsgLoadState.d.ts +4 -4
- package/dist/whatsapp/misc/OpaqueData.d.ts +2 -2
- package/dist/whatsapp/misc/State.d.ts +1 -1
- package/dist/whatsapp/misc/UserPrefs.d.ts +1 -1
- package/dist/whatsapp/misc/VCard.d.ts +1 -1
- package/dist/whatsapp/misc/Wid.d.ts +1 -1
- package/dist/whatsapp/misc/WidFactory.d.ts +1 -1
- package/dist/whatsapp/misc/index.d.ts +3 -1
- package/dist/whatsapp/models/AttachMediaModel.d.ts +2 -2
- package/dist/whatsapp/models/BlocklistModel.d.ts +2 -2
- package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +2 -2
- package/dist/whatsapp/models/BusinessProfileModel.d.ts +2 -2
- package/dist/whatsapp/models/CallModel.d.ts +2 -2
- package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -2
- package/dist/whatsapp/models/CartItemModel.d.ts +2 -2
- package/dist/whatsapp/models/CartModel.d.ts +2 -2
- package/dist/whatsapp/models/CatalogModel.d.ts +2 -2
- package/dist/whatsapp/models/ChatModel.d.ts +4 -4
- package/dist/whatsapp/models/ChatPreferenceModel.d.ts +2 -2
- package/dist/whatsapp/models/ChatstateModel.d.ts +2 -2
- package/dist/whatsapp/models/ConnModel.d.ts +2 -2
- package/dist/whatsapp/models/ContactModel.d.ts +2 -2
- package/dist/whatsapp/models/ConversionTupleModel.d.ts +2 -2
- package/dist/whatsapp/models/EmojiVariantModel.d.ts +2 -2
- package/dist/whatsapp/models/GroupMetadataModel.d.ts +2 -2
- package/dist/whatsapp/models/LabelItemModel.d.ts +2 -2
- package/dist/whatsapp/models/LabelModel.d.ts +2 -2
- package/dist/whatsapp/models/LiveLocationModel.d.ts +4 -3
- package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +2 -2
- package/dist/whatsapp/models/MediaDataModel.d.ts +2 -2
- package/dist/whatsapp/models/Model.d.ts +1 -1
- package/dist/whatsapp/models/ModelChatBase.d.ts +1 -1
- package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +2 -2
- package/dist/whatsapp/models/MsgInfoModel.d.ts +2 -2
- package/dist/whatsapp/models/MsgModel.d.ts +25 -15
- package/dist/whatsapp/models/MuteModel.d.ts +2 -2
- package/dist/whatsapp/models/OrderItemModel.d.ts +2 -2
- package/dist/whatsapp/models/OrderModel.d.ts +2 -2
- package/dist/whatsapp/models/ParticipantModel.d.ts +2 -2
- package/dist/whatsapp/models/ProductCollModel.d.ts +2 -2
- package/dist/whatsapp/models/ProductImageModel.d.ts +2 -2
- package/dist/whatsapp/models/{Product_listModel.d.ts → ProductMessageListModel.d.ts} +5 -5
- package/dist/whatsapp/models/ProductModel.d.ts +2 -2
- package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +2 -2
- package/dist/whatsapp/models/QuickReplyModel.d.ts +2 -2
- package/dist/whatsapp/models/RecentEmojiModel.d.ts +2 -2
- package/dist/whatsapp/models/RecentStickerModel.d.ts +2 -2
- package/dist/whatsapp/models/ReplyButtonModel.d.ts +2 -2
- package/dist/whatsapp/models/StateModel.d.ts +2 -2
- package/dist/whatsapp/models/StatusModel.d.ts +2 -2
- package/dist/whatsapp/models/StatusV3Model.d.ts +2 -2
- package/dist/whatsapp/models/StickerModel.d.ts +2 -2
- package/dist/whatsapp/models/StickerPackModel.d.ts +2 -2
- package/dist/whatsapp/models/TemplateButtonModel.d.ts +2 -2
- package/dist/whatsapp/models/UnreadMentionModel.d.ts +2 -2
- package/dist/whatsapp/models/WebCallModel.d.ts +2 -2
- package/dist/whatsapp/models/index.d.ts +1 -1
- package/dist/whatsapp/multidevice/adv.d.ts +1 -1
- package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -1
- package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -1
- package/dist/whatsapp/stores.d.ts +29 -29
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +22 -23
- package/dist/chat/Chat.d.ts +0 -162
- package/dist/group/Group.d.ts +0 -45
- package/dist/status/Status.d.ts +0 -37
- package/dist/whatsapp/misc/ClockSkew.d.ts +0 -43
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MuteModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:80959 */
|
|
19
19
|
export declare class MuteCollection extends Collection<MuteModel> {
|
|
20
20
|
static model: MuteModel;
|
|
21
21
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { OrderModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:98052 */
|
|
19
19
|
export declare class OrderCollection extends Collection<OrderModel> {
|
|
20
20
|
static model: OrderModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { OrderItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:2414 */
|
|
19
19
|
export declare class OrderItemCollection extends Collection<OrderItemModel> {
|
|
20
20
|
static model: OrderItemModel;
|
|
21
21
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ParticipantModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:16748 */
|
|
19
19
|
export declare class ParticipantCollection extends Collection<ParticipantModel> {
|
|
20
20
|
static model: ParticipantModel;
|
|
21
21
|
static comparator(): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatstateModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:48327 */
|
|
19
19
|
export declare class PresenceCollection extends Collection<ChatstateModel> {
|
|
20
20
|
static model: ChatstateModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductCollModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:63875 */
|
|
19
19
|
export declare class ProductCollCollection extends Collection<ProductCollModel> {
|
|
20
20
|
static model: ProductCollModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:26491 */
|
|
19
19
|
export declare class ProductCollection extends Collection<ProductModel> {
|
|
20
20
|
static model: ProductModel;
|
|
21
21
|
getProductModels(e?: boolean): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductImageModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:55845 */
|
|
19
19
|
export declare class ProductImageCollection extends Collection<ProductImageModel> {
|
|
20
20
|
static model: ProductImageModel;
|
|
21
21
|
}
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { ProductMessageListModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
19
|
-
export declare class ProductMessageListCollection extends Collection<
|
|
20
|
-
static model:
|
|
18
|
+
/** @whatsapp 2.2147.16:97038 */
|
|
19
|
+
export declare class ProductMessageListCollection extends Collection<ProductMessageListModel> {
|
|
20
|
+
static model: ProductMessageListModel;
|
|
21
21
|
static staleCollection?: any;
|
|
22
22
|
getOrAdd(e?: any, t?: any, r?: any, a?: any): any;
|
|
23
23
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProfilePicThumbModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:3165 */
|
|
19
19
|
export declare class ProfilePicThumbCollection extends Collection<ProfilePicThumbModel> {
|
|
20
20
|
static model: ProfilePicThumbModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { QuickReplyModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:60123 */
|
|
19
19
|
export declare class QuickReplyCollection extends Collection<QuickReplyModel> {
|
|
20
20
|
static model: QuickReplyModel;
|
|
21
21
|
checksum?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { RecentEmojiModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:30462 */
|
|
19
19
|
export declare class RecentEmojiCollection extends Collection<RecentEmojiModel> {
|
|
20
20
|
static cachePolicy?: any;
|
|
21
21
|
static model: RecentEmojiModel;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:27686 */
|
|
19
19
|
export declare class RecentStickerCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
enqueue(e?: any): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MsgModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:30118 */
|
|
19
19
|
export declare class StarredMsgCollection extends Collection<MsgModel> {
|
|
20
20
|
static model: MsgModel;
|
|
21
21
|
syncPromise?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:68477 */
|
|
19
19
|
export declare class StarredStickerCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
syncNextPage(): any;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { Wid } from '../misc';
|
|
17
17
|
import { StatusModel } from '../models';
|
|
18
18
|
import { Collection } from './Collection';
|
|
19
|
-
/** @whatsapp 2.
|
|
19
|
+
/** @whatsapp 2.2147.16:22360 */
|
|
20
20
|
export declare class StatusCollection extends Collection<StatusModel> {
|
|
21
21
|
static model: StatusModel;
|
|
22
22
|
static idClass: typeof Wid;
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { StatusV3Model } from '../models';
|
|
17
|
-
import {
|
|
18
|
-
/** @whatsapp 2.
|
|
19
|
-
export declare class StatusV3Collection extends
|
|
17
|
+
import { BaseCollection } from '.';
|
|
18
|
+
/** @whatsapp 2.2147.16:70173 */
|
|
19
|
+
export declare class StatusV3Collection extends BaseCollection<StatusV3Model> {
|
|
20
20
|
static model: StatusV3Model;
|
|
21
21
|
loadMore(e?: any, t?: any, r?: any): any;
|
|
22
22
|
sync(e?: any): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:16482 */
|
|
19
19
|
export declare class StickerCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
fetch(): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerPackModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:45822 */
|
|
19
19
|
export declare class StickerPackCollection extends Collection<StickerPackModel> {
|
|
20
20
|
static model: StickerPackModel;
|
|
21
21
|
checksum?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:6009 */
|
|
19
19
|
export declare class StickerSearchCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
isFetchingData(): boolean;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { TemplateButtonModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:95411 */
|
|
19
19
|
export declare class TemplateButtonCollection extends Collection<TemplateButtonModel> {
|
|
20
20
|
static model: TemplateButtonModel;
|
|
21
21
|
static comparator(): any;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
export * from './BaseCollection';
|
|
16
17
|
export * from './BlocklistCollection';
|
|
17
18
|
export * from './BusinessCategoriesResultCollection';
|
|
18
19
|
export * from './BusinessProfileCollection';
|
|
@@ -24,7 +25,6 @@ export * from './CatalogCollection';
|
|
|
24
25
|
export * from './ChatCollection';
|
|
25
26
|
export * from './ChatstateCollection';
|
|
26
27
|
export * from './Collection';
|
|
27
|
-
export * from './CollectionCache';
|
|
28
28
|
export * from './ContactCollection';
|
|
29
29
|
export * from './ContactCollection';
|
|
30
30
|
export * from './ContactCollection';
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp 2.
|
|
16
|
+
/** @whatsapp 2.2147.16:82735 */
|
|
17
17
|
export declare enum LogoutReason {
|
|
18
18
|
USER_INITIATED = "user_initiated",
|
|
19
19
|
SYNCD_FAILURE = "syncd_failure",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp 2.
|
|
16
|
+
/** @whatsapp 2.2147.16:90672 */
|
|
17
17
|
export declare enum OUTWARD_TYPES {
|
|
18
18
|
IMAGE = "image",
|
|
19
19
|
VIDEO = "video",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp 2.
|
|
16
|
+
/** @whatsapp 2.2147.16:88300 */
|
|
17
17
|
export declare enum SendMsgResult {
|
|
18
18
|
OK = "OK",
|
|
19
19
|
ERROR_NETWORK = "ERROR_NETWORK",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { SendMsgResult } from '../enums';
|
|
17
17
|
import { ChatModel, ModelPropertiesContructor, MsgModel } from '../models';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:35339 */
|
|
19
19
|
export declare function addAndSendMsgToChat(chat: ChatModel, message: ModelPropertiesContructor<MsgModel>): Promise<[Promise<MsgModel>, Promise<SendMsgResult>]>;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ContactModel } from '../models';
|
|
17
|
-
/** @whatsapp 2.
|
|
17
|
+
/** @whatsapp 2.2147.16:38512 */
|
|
18
18
|
export declare function blockContact(contact: ContactModel): Promise<void>;
|
|
19
|
-
/** @whatsapp 2.
|
|
19
|
+
/** @whatsapp 2.2147.16:38512 */
|
|
20
20
|
export declare function unblockContact(contact: ContactModel): Promise<void>;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 interface LinkPreviewResult {
|
|
17
|
+
url: string;
|
|
18
|
+
data: {
|
|
19
|
+
title?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
canonicalUrl?: string;
|
|
22
|
+
matchedText: string;
|
|
23
|
+
richPreviewType: number;
|
|
24
|
+
thumbnail?: string;
|
|
25
|
+
doNotPlayInline: boolean;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/** @whatsapp 2.2147.16:22750 */
|
|
29
|
+
export declare function fetchLinkPreview(url: string): Promise<null | LinkPreviewResult>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
/** @whatsapp 2.2147.16:78502 */
|
|
17
|
+
export declare function findFirstWebLink(message: string): Promise<undefined | string>;
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel, ParticipantModel } from '..';
|
|
17
|
-
/** @whatsapp 2.
|
|
17
|
+
/** @whatsapp 2.2147.16:97449 */
|
|
18
18
|
export declare function addParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
19
|
-
/** @whatsapp 2.
|
|
19
|
+
/** @whatsapp 2.2147.16:97449 */
|
|
20
20
|
export declare function removeParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
21
|
-
/** @whatsapp 2.
|
|
21
|
+
/** @whatsapp 2.2147.16:97449 */
|
|
22
22
|
export declare function promoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
23
|
-
/** @whatsapp 2.
|
|
23
|
+
/** @whatsapp 2.2147.16:97449 */
|
|
24
24
|
export declare function demoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
/** @whatsapp 2.2147.16:82069 */
|
|
17
|
+
export declare function handleStatusSimpleAck(ackData: any): Promise<any>;
|
|
18
|
+
/** @whatsapp 2.2147.16:82075 */
|
|
19
|
+
export declare function handleChatSimpleAck(ackData: any): Promise<any>;
|
|
20
|
+
/** @whatsapp 2.2147.16:34269 */
|
|
21
|
+
export declare function handleGroupSimpleAck(ackData: any): Promise<any>;
|
|
@@ -15,10 +15,14 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export * from './addAndSendMsgToChat';
|
|
17
17
|
export * from './blockContact';
|
|
18
|
+
export * from './fetchLinkPreview';
|
|
18
19
|
export * from './findChat';
|
|
20
|
+
export * from './findFirstWebLink';
|
|
19
21
|
export * from './getOrGenerate';
|
|
20
22
|
export * from './groupParticipants';
|
|
23
|
+
export * from './handleAck';
|
|
21
24
|
export * from './isAuthenticated';
|
|
25
|
+
export * from './markSeen';
|
|
22
26
|
export * from './msgFindQuery';
|
|
23
27
|
export * from './products';
|
|
24
28
|
export * from './randomId';
|
|
@@ -13,20 +13,14 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
export declare
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
isAuthenticated(): boolean;
|
|
28
|
-
isIdle(): boolean;
|
|
29
|
-
isMultiDevice(): boolean;
|
|
30
|
-
poke(): void;
|
|
31
|
-
logout(): Promise<any>;
|
|
32
|
-
}
|
|
16
|
+
import { ChatModel, MsgModel } from '../models';
|
|
17
|
+
/** @whatsapp 2.2147.16:74109 */
|
|
18
|
+
export declare function markUnread(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
|
|
19
|
+
/** @whatsapp 2.2147.16:74109 */
|
|
20
|
+
export declare function sendSeen(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
|
|
21
|
+
/** @whatsapp 2.2147.16:64850 */
|
|
22
|
+
export declare function markPlayed(msg: MsgModel): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* @whatsapp 2.2146.9:64850
|
|
25
|
+
*/
|
|
26
|
+
export declare function canMarkPlayed(msg: MsgModel): boolean;
|
|
@@ -23,5 +23,5 @@ export interface MsgFindQueryParams {
|
|
|
23
23
|
id?: string;
|
|
24
24
|
participant?: any;
|
|
25
25
|
}
|
|
26
|
-
/** @whatsapp 2.
|
|
26
|
+
/** @whatsapp 2.2147.16:2495 */
|
|
27
27
|
export declare function msgFindQuery(direction: 'after' | 'before', params: MsgFindQueryParams): Promise<ModelPropertiesContructor<MsgModel>[]>;
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import { ProductModel } from '..';
|
|
17
17
|
/** @whatsapp 2.2144.10:35339 */
|
|
18
18
|
export declare function createBusinessCatalog(): Promise<any>;
|
|
19
|
-
/** @whatsapp 2.
|
|
19
|
+
/** @whatsapp 2.2147.16:68793 */
|
|
20
20
|
export declare function addProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
|
|
21
|
-
/** @whatsapp 2.
|
|
21
|
+
/** @whatsapp 2.2147.16:68793 */
|
|
22
22
|
export declare function editProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
|
|
23
|
-
/** @whatsapp 2.
|
|
23
|
+
/** @whatsapp 2.2147.16:68793 */
|
|
24
24
|
export declare function deleteProducts(productIds: string[]): Promise<any>;
|
|
25
|
-
/** @whatsapp 2.
|
|
25
|
+
/** @whatsapp 2.2147.16:68793 */
|
|
26
26
|
export declare function sendProductToChat(...args: any[]): Promise<any>;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp 2.
|
|
16
|
+
/** @whatsapp 2.2147.16:17754 */
|
|
17
17
|
export declare function randomMessageId(): string;
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2147.16:17754 */
|
|
19
19
|
export declare function randomId(): string;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Wid } from '..';
|
|
17
|
-
/** @whatsapp 2.
|
|
17
|
+
/** @whatsapp 2.2147.16:53876 */
|
|
18
18
|
export declare function sendCreateGroup(groupName: string, participants: Wid[], ephemeral?: number, dogfooding?: boolean): Promise<{
|
|
19
19
|
gid: Wid;
|
|
20
20
|
participants: {
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp 2.
|
|
16
|
+
/** @whatsapp 2.2147.16:30239 */
|
|
17
17
|
export declare function sendTextMsgToChat(chat: any, message: any, options: any): Promise<string>;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp 2.
|
|
16
|
+
/** @whatsapp 2.2147.16:36117 */
|
|
17
17
|
export declare namespace Base64 {
|
|
18
18
|
const BASE64_DATA_URL_SCHEME: 'data:image/jpeg;base64,';
|
|
19
19
|
function encodeB64(data: ArrayLike<number> | ArrayBufferLike): string;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp 2.
|
|
16
|
+
/** @whatsapp 2.2147.16:94666 */
|
|
17
17
|
export declare namespace Browser {
|
|
18
18
|
let promptUnloadGuards: number;
|
|
19
19
|
function id(): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { ChatModel } from '..';
|
|
17
|
+
/** @whatsapp 2.2147.16:83271 */
|
|
18
|
+
export declare namespace ChatPresence {
|
|
19
|
+
function markComposing(chat: ChatModel): Promise<void>;
|
|
20
|
+
function markPaused(chat: ChatModel): Promise<void>;
|
|
21
|
+
function markRecording(chat: ChatModel): Promise<void>;
|
|
22
|
+
function sendPresenceAvailable(): void;
|
|
23
|
+
function sendPresenceUnavailable(): void;
|
|
24
|
+
function clearPresence(chat: ChatModel): void;
|
|
25
|
+
}
|