@wppconnect/wa-js 1.0.11 → 1.0.15
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 +36 -0
- package/README.md +4 -2
- package/dist/assert/assertColor.d.ts +35 -0
- package/dist/assert/index.d.ts +1 -0
- package/dist/chat/Chat.d.ts +4 -1
- package/dist/chat/types.d.ts +22 -0
- package/dist/index.d.ts +3 -0
- package/dist/labels/Labels.d.ts +52 -0
- package/dist/labels/index.d.ts +20 -0
- package/dist/labels/types.d.ts +22 -0
- package/dist/webpack.d.ts +1 -0
- package/dist/whatsapp/collections/{CollectionCache.d.ts → BaseCollection.d.ts} +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/whatsapp/collections/LabelCollection.d.ts +2 -2
- package/dist/whatsapp/collections/LabelItemCollection.d.ts +1 -1
- package/dist/whatsapp/collections/LiveLocationCollection.d.ts +1 -1
- 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/findChat.d.ts +1 -1
- package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -1
- package/dist/whatsapp/functions/groupParticipants.d.ts +4 -4
- package/dist/whatsapp/functions/index.d.ts +2 -0
- package/dist/whatsapp/functions/isAuthenticated.d.ts +1 -1
- package/dist/whatsapp/functions/msgFindQuery.d.ts +1 -1
- package/dist/whatsapp/functions/products.d.ts +26 -0
- 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 +18 -0
- package/dist/whatsapp/misc/Base64.d.ts +1 -1
- package/dist/whatsapp/misc/Browser.d.ts +1 -1
- package/dist/whatsapp/misc/Clock.d.ts +47 -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/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 +26 -0
- 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 +2 -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 +4 -3
- package/dist/whatsapp/models/ChatModel.d.ts +2 -2
- 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 +3 -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 +2 -2
- 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 +2 -2
- 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 +18 -19
- package/dist/whatsapp/misc/ClockSkew.d.ts +0 -43
|
@@ -35,10 +35,10 @@ interface Derived {
|
|
|
35
35
|
readCount?: any;
|
|
36
36
|
lastStatus?: any;
|
|
37
37
|
}
|
|
38
|
-
/** @whatsapp 2.
|
|
38
|
+
/** @whatsapp 2.2146.9:9455 */
|
|
39
39
|
export declare interface StatusV3Model extends ModelProxy<Props, Session, Derived> {
|
|
40
40
|
}
|
|
41
|
-
/** @whatsapp 2.
|
|
41
|
+
/** @whatsapp 2.2146.9:9455 */
|
|
42
42
|
export declare class StatusV3Model extends Model<StatusV3Collection> {
|
|
43
43
|
idClass: typeof Wid;
|
|
44
44
|
constructor(proterties?: ModelPropertiesContructor<StatusV3Model>, options?: ModelOptions);
|
|
@@ -37,10 +37,10 @@ interface Session {
|
|
|
37
37
|
}
|
|
38
38
|
interface Derived {
|
|
39
39
|
}
|
|
40
|
-
/** @whatsapp 2.
|
|
40
|
+
/** @whatsapp 2.2146.9:92537 */
|
|
41
41
|
export declare interface StickerModel extends ModelProxy<Props, Session, Derived> {
|
|
42
42
|
}
|
|
43
|
-
/** @whatsapp 2.
|
|
43
|
+
/** @whatsapp 2.2146.9:92537 */
|
|
44
44
|
export declare class StickerModel extends Model {
|
|
45
45
|
constructor(proterties?: ModelPropertiesContructor<StickerModel>, options?: ModelOptions);
|
|
46
46
|
downloadMedia(): any;
|
|
@@ -39,10 +39,10 @@ interface Derived {
|
|
|
39
39
|
isPlaceholder: boolean;
|
|
40
40
|
isFirstParty: boolean;
|
|
41
41
|
}
|
|
42
|
-
/** @whatsapp 2.
|
|
42
|
+
/** @whatsapp 2.2146.9:86668 */
|
|
43
43
|
export declare interface StickerPackModel extends ModelProxy<Props, Session, Derived> {
|
|
44
44
|
}
|
|
45
|
-
/** @whatsapp 2.
|
|
45
|
+
/** @whatsapp 2.2146.9:86668 */
|
|
46
46
|
export declare class StickerPackModel extends Model {
|
|
47
47
|
constructor(proterties?: ModelPropertiesContructor<StickerPackModel>, options?: ModelOptions);
|
|
48
48
|
downloadMedia(): any;
|
|
@@ -28,10 +28,10 @@ interface Session {
|
|
|
28
28
|
}
|
|
29
29
|
interface Derived {
|
|
30
30
|
}
|
|
31
|
-
/** @whatsapp 2.
|
|
31
|
+
/** @whatsapp 2.2146.9:65159 */
|
|
32
32
|
export declare interface TemplateButtonModel extends ModelProxy<Props, Session, Derived> {
|
|
33
33
|
}
|
|
34
|
-
/** @whatsapp 2.
|
|
34
|
+
/** @whatsapp 2.2146.9:65159 */
|
|
35
35
|
export declare class TemplateButtonModel extends Model {
|
|
36
36
|
constructor(proterties?: ModelPropertiesContructor<TemplateButtonModel>, options?: ModelOptions);
|
|
37
37
|
}
|
|
@@ -23,10 +23,10 @@ interface Session {
|
|
|
23
23
|
}
|
|
24
24
|
interface Derived {
|
|
25
25
|
}
|
|
26
|
-
/** @whatsapp 2.
|
|
26
|
+
/** @whatsapp 2.2146.9:85739 */
|
|
27
27
|
export declare interface UnreadMentionModel extends ModelProxy<Props, Session, Derived> {
|
|
28
28
|
}
|
|
29
|
-
/** @whatsapp 2.
|
|
29
|
+
/** @whatsapp 2.2146.9:85739 */
|
|
30
30
|
export declare class UnreadMentionModel extends Model {
|
|
31
31
|
constructor(proterties?: ModelPropertiesContructor<UnreadMentionModel>, options?: ModelOptions);
|
|
32
32
|
}
|
|
@@ -27,10 +27,10 @@ interface Session {
|
|
|
27
27
|
}
|
|
28
28
|
interface Derived {
|
|
29
29
|
}
|
|
30
|
-
/** @whatsapp 2.
|
|
30
|
+
/** @whatsapp 2.2146.9:91442 */
|
|
31
31
|
export declare interface WebCallModel extends ModelProxy<Props, Session, Derived> {
|
|
32
32
|
}
|
|
33
|
-
/** @whatsapp 2.
|
|
33
|
+
/** @whatsapp 2.2146.9:91442 */
|
|
34
34
|
export declare class WebCallModel extends Model {
|
|
35
35
|
constructor(proterties?: ModelPropertiesContructor<WebCallModel>, options?: ModelOptions);
|
|
36
36
|
}
|
|
@@ -45,9 +45,9 @@ export * from './OrderItemModel';
|
|
|
45
45
|
export * from './OrderModel';
|
|
46
46
|
export * from './ParticipantModel';
|
|
47
47
|
export * from './ParticipantModel';
|
|
48
|
-
export * from './Product_listModel';
|
|
49
48
|
export * from './ProductCollModel';
|
|
50
49
|
export * from './ProductImageModel';
|
|
50
|
+
export * from './ProductMessageListModel';
|
|
51
51
|
export * from './ProductModel';
|
|
52
52
|
export * from './ProfilePicThumbModel';
|
|
53
53
|
export * from './QuickReplyModel';
|
|
@@ -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.2146.9:2019 */
|
|
17
17
|
export declare namespace adv {
|
|
18
18
|
function generateADVSecretKey(): string;
|
|
19
19
|
function getADVSecretKey(): string;
|
|
@@ -14,61 +14,61 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import * as collections from './collections';
|
|
17
|
-
/** @whatsapp 2.
|
|
17
|
+
/** @whatsapp 2.2146.9:15701 */
|
|
18
18
|
export declare const BlocklistStore: collections.BlocklistCollection;
|
|
19
|
-
/** @whatsapp 2.
|
|
19
|
+
/** @whatsapp 2.2146.9:54100 */
|
|
20
20
|
export declare const BusinessCategoriesResultStore: collections.BusinessCategoriesResultCollection;
|
|
21
|
-
/** @whatsapp 2.
|
|
21
|
+
/** @whatsapp 2.2146.9:8581 */
|
|
22
22
|
export declare const BusinessProfileStore: collections.BusinessProfileCollection;
|
|
23
|
-
/** @whatsapp 2.
|
|
23
|
+
/** @whatsapp 2.2146.9:15971 */
|
|
24
24
|
export declare const CallStore: collections.CallCollection;
|
|
25
|
-
/** @whatsapp 2.
|
|
25
|
+
/** @whatsapp 2.2146.9:25523 */
|
|
26
26
|
export declare const CartStore: collections.CartCollection;
|
|
27
|
-
/** @whatsapp 2.
|
|
27
|
+
/** @whatsapp 2.2146.9:60028 */
|
|
28
28
|
export declare const CatalogStore: collections.CatalogCollection;
|
|
29
|
-
/** @whatsapp 2.
|
|
29
|
+
/** @whatsapp 2.2146.9:84758 */
|
|
30
30
|
export declare const ChatStore: collections.ChatCollection;
|
|
31
|
-
/** @whatsapp 2.
|
|
31
|
+
/** @whatsapp 2.2146.9:17025 */
|
|
32
32
|
export declare const ContactStore: collections.ContactCollection;
|
|
33
|
-
/** @whatsapp 2.
|
|
33
|
+
/** @whatsapp 2.2146.9:41098 */
|
|
34
34
|
export declare const EmojiVariantStore: collections.EmojiVariantCollection;
|
|
35
|
-
/** @whatsapp 2.
|
|
35
|
+
/** @whatsapp 2.2146.9:75798 */
|
|
36
36
|
export declare const GroupMetadataStore: collections.GroupMetadataCollection;
|
|
37
|
-
/** @whatsapp 2.
|
|
37
|
+
/** @whatsapp 2.2146.9:59606 */
|
|
38
38
|
export declare const LabelStore: collections.LabelCollection;
|
|
39
|
-
/** @whatsapp 2.
|
|
39
|
+
/** @whatsapp 2.2146.9:31104 */
|
|
40
40
|
export declare const LiveLocationStore: collections.LiveLocationCollection;
|
|
41
|
-
/** @whatsapp 2.
|
|
41
|
+
/** @whatsapp 2.2146.9:45472 */
|
|
42
42
|
export declare const MsgStore: collections.MsgCollection;
|
|
43
|
-
/** @whatsapp 2.
|
|
43
|
+
/** @whatsapp 2.2146.9:57636 */
|
|
44
44
|
export declare const MsgInfoStore: collections.MsgInfoCollection;
|
|
45
|
-
/** @whatsapp 2.
|
|
45
|
+
/** @whatsapp 2.2146.9:80959 */
|
|
46
46
|
export declare const MuteStore: collections.MuteCollection;
|
|
47
|
-
/** @whatsapp 2.
|
|
47
|
+
/** @whatsapp 2.2146.9:98052 */
|
|
48
48
|
export declare const OrderStore: collections.OrderCollection;
|
|
49
|
-
/** @whatsapp 2.
|
|
49
|
+
/** @whatsapp 2.2146.9:48327 */
|
|
50
50
|
export declare const PresenceStore: collections.PresenceCollection;
|
|
51
|
-
/** @whatsapp 2.
|
|
51
|
+
/** @whatsapp 2.2146.9:97038 */
|
|
52
52
|
export declare const ProductMessageListStore: collections.ProductMessageListCollection;
|
|
53
|
-
/** @whatsapp 2.
|
|
53
|
+
/** @whatsapp 2.2146.9:3165 */
|
|
54
54
|
export declare const ProfilePicThumbStore: collections.ProfilePicThumbCollection;
|
|
55
|
-
/** @whatsapp 2.
|
|
55
|
+
/** @whatsapp 2.2146.9:60123 */
|
|
56
56
|
export declare const QuickReplyStore: collections.QuickReplyCollection;
|
|
57
|
-
/** @whatsapp 2.
|
|
57
|
+
/** @whatsapp 2.2146.9:30462 */
|
|
58
58
|
export declare const RecentEmojiStore: collections.RecentEmojiCollection;
|
|
59
|
-
/** @whatsapp 2.
|
|
59
|
+
/** @whatsapp 2.2146.9:27686 */
|
|
60
60
|
export declare const RecentStickerStore: collections.RecentStickerCollection;
|
|
61
|
-
/** @whatsapp 2.
|
|
61
|
+
/** @whatsapp 2.2146.9:30118 */
|
|
62
62
|
export declare const StarredMsgStore: collections.StarredMsgCollection;
|
|
63
|
-
/** @whatsapp 2.
|
|
63
|
+
/** @whatsapp 2.2146.9:68477 */
|
|
64
64
|
export declare const StarredStickerStore: collections.StarredStickerCollection;
|
|
65
|
-
/** @whatsapp 2.
|
|
65
|
+
/** @whatsapp 2.2146.9:22360 */
|
|
66
66
|
export declare const StatusStore: collections.StatusCollection;
|
|
67
|
-
/** @whatsapp 2.
|
|
67
|
+
/** @whatsapp 2.2146.9:70173 */
|
|
68
68
|
export declare const StatusV3Store: collections.StatusV3Collection;
|
|
69
|
-
/** @whatsapp 2.
|
|
69
|
+
/** @whatsapp 2.2146.9:16482 */
|
|
70
70
|
export declare const StickerStore: collections.StickerCollection;
|
|
71
|
-
/** @whatsapp 2.
|
|
71
|
+
/** @whatsapp 2.2146.9:45822 */
|
|
72
72
|
export declare const StickerPackStore: collections.StickerPackCollection;
|
|
73
|
-
/** @whatsapp 2.
|
|
73
|
+
/** @whatsapp 2.2146.9:6009 */
|
|
74
74
|
export declare const StickerSearchStore: collections.StickerSearchCollection;
|