@wppconnect/wa-js 2.17.0 → 2.18.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/chat/events/eventTypes.d.ts +10 -0
  3. package/dist/chat/events/index.d.ts +1 -0
  4. package/dist/chat/events/registerPollEvent.d.ts +16 -0
  5. package/dist/chat/functions/getReactions.d.ts +48 -0
  6. package/dist/chat/functions/getVotes.d.ts +33 -0
  7. package/dist/chat/functions/index.d.ts +2 -0
  8. package/dist/group/functions/addParticipants.d.ts +17 -1
  9. package/dist/group/functions/canAdd.d.ts +11 -0
  10. package/dist/group/functions/canDemote.d.ts +11 -0
  11. package/dist/group/functions/canPromote.d.ts +11 -0
  12. package/dist/group/functions/canRemove.d.ts +11 -0
  13. package/dist/group/functions/create.d.ts +35 -4
  14. package/dist/whatsapp/functions/createGroup.d.ts +28 -0
  15. package/dist/whatsapp/functions/getReactions.d.ts +37 -0
  16. package/dist/whatsapp/functions/getVotes.d.ts +22 -0
  17. package/dist/whatsapp/functions/index.d.ts +8 -0
  18. package/dist/whatsapp/functions/joinGroupViaInvite.d.ts +22 -0
  19. package/dist/whatsapp/functions/queryGroupInviteCode.d.ts +22 -0
  20. package/dist/whatsapp/functions/resetGroupInviteCode.d.ts +22 -0
  21. package/dist/whatsapp/functions/sendCreateGroup.d.ts +10 -4
  22. package/dist/whatsapp/functions/sendGroupParticipants.d.ts +7 -2
  23. package/dist/whatsapp/functions/upsertVotes.d.ts +29 -0
  24. package/dist/whatsapp/misc/index.d.ts +0 -1
  25. package/dist/whatsapp/models/MsgModel.d.ts +7 -0
  26. package/dist/whatsapp/models/index.d.ts +0 -1
  27. package/dist/wppconnect-wa.js +1 -1
  28. package/package.json +21 -21
  29. package/dist/whatsapp/misc/Features.d.ts +0 -68
  30. package/dist/whatsapp/models/WebCallModel.d.ts +0 -43
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-js",
3
- "version": "2.17.0",
3
+ "version": "2.18.1",
4
4
  "description": "WPPConnect/WA-JS is an open-source project with the aim of exporting functions from WhatsApp Web",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -39,47 +39,47 @@
39
39
  "watch": "webpack watch --devtool inline-source-map --mode development"
40
40
  },
41
41
  "devDependencies": {
42
- "@commitlint/cli": "^17.3.0",
43
- "@commitlint/config-conventional": "^17.3.0",
44
- "@commitlint/prompt-cli": "^17.3.0",
45
- "@playwright/test": "^1.28.1",
42
+ "@commitlint/cli": "^17.4.1",
43
+ "@commitlint/config-conventional": "^17.4.0",
44
+ "@commitlint/prompt-cli": "^17.4.1",
45
+ "@playwright/test": "^1.29.2",
46
46
  "@types/debug": "^4.1.7",
47
- "@types/node": "^16.18.6",
47
+ "@types/node": "^16.18.11",
48
48
  "@types/parse-data-url": "^3.0.0",
49
- "@types/prettier": "^2.7.1",
49
+ "@types/prettier": "^2.7.2",
50
50
  "@types/shelljs": "^0.8.11",
51
- "@typescript-eslint/eslint-plugin": "^5.45.1",
52
- "@typescript-eslint/parser": "^5.45.1",
53
- "@wppconnect/wa-version": "^1.1.205",
51
+ "@typescript-eslint/eslint-plugin": "^5.48.1",
52
+ "@typescript-eslint/parser": "^5.48.1",
53
+ "@wppconnect/wa-version": "^1.1.222",
54
54
  "buffer": "^6.0.3",
55
55
  "compressorjs": "^1.1.1",
56
56
  "conventional-changelog-cli": "^2.2.2",
57
57
  "debug": "^4.3.4",
58
- "eslint": "^8.29.0",
59
- "eslint-config-prettier": "^8.5.0",
58
+ "eslint": "^8.31.0",
59
+ "eslint-config-prettier": "^8.6.0",
60
60
  "eslint-plugin-header": "^3.1.1",
61
61
  "eslint-plugin-import": "^2.26.0",
62
62
  "eslint-plugin-prettier": "^4.2.1",
63
63
  "eslint-plugin-simple-import-sort": "^8.0.0",
64
64
  "eventemitter2": "^6.4.9",
65
65
  "file-type": "~16.5.4",
66
- "husky": "^8.0.2",
66
+ "husky": "^8.0.3",
67
67
  "parse-data-url": "^4.0.1",
68
- "playwright-chromium": "^1.28.1",
69
- "prettier": "^2.8.0",
68
+ "playwright-chromium": "^1.29.2",
69
+ "prettier": "^2.8.2",
70
70
  "pretty-quick": "^3.1.3",
71
- "release-it": "^15.5.1",
71
+ "release-it": "^15.6.0",
72
72
  "shx": "^0.3.4",
73
73
  "ts-loader": "^9.4.2",
74
- "ts-morph": "^16.0.0",
74
+ "ts-morph": "^17.0.1",
75
75
  "ts-node": "^10.9.1",
76
- "typedoc": "^0.23.21",
77
- "typedoc-plugin-mdn-links": "^2.0.0",
76
+ "typedoc": "^0.23.24",
77
+ "typedoc-plugin-mdn-links": "^2.0.2",
78
78
  "typedoc-plugin-missing-exports": "^1.0.0",
79
- "typescript": "^4.9.3",
79
+ "typescript": "^4.9.4",
80
80
  "typescript-debounce-decorator": "^0.0.18",
81
81
  "webpack": "^5.75.0",
82
- "webpack-cli": "^4.10.0"
82
+ "webpack-cli": "^5.0.1"
83
83
  },
84
84
  "engines": {
85
85
  "whatsapp-web": ">=2.2230.9-beta"
@@ -1,68 +0,0 @@
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 { EventEmitter } from './EventEmitter';
17
- type FeaturesNames = 'RESEND_ICON' | 'DELETE_MSG_CLEAR_MEDIA' | 'DEBUG_COMMANDS' | 'MD_BACKEND' | 'MD_ADV' | 'MD_PAYMENT' | 'MD_E2E' | 'MD_VOIP_GROUP' | 'MD_SYNCD_ANTI_TAMPERING' | 'CATALOG_MANAGER' | 'WEB_VOIP_VOICE_CALL' | 'WEB_VOIP_VIDEO_CALL' | 'MEDIA_AUTO_DOWNLOAD' | 'DOWNLOAD_STATUS_THUMB_MMS' | 'MEDIA_EXISTENCE_CHECK' | 'LOG_MISSING_REQUIRED_PROPERTIES' | 'HIGH_QUALITY_VIDEO_THUMBNAILS' | 'HIGH_QUALITY_LINK_PREVIEWS' | 'YOUTUBE_VIDEO_PREVIEW_WITHOUT_BLUR' | 'GROUP_CONVERSATIONS_MEDIA_TOOLTIPS' | 'DROP_LAST_NAME_MENTIONS' | 'RICH_TEXT_INPUT' | 'PTT_DRAFT_ENABLED' | 'PTT_WAVEFORM_SEND' | 'PTT_CONVERSATION_WAVEFORM' | 'SEE_STATUS_VIEWERS' | 'GROUP_CATCH_UP' | 'FORMAT_BULLETED_MSG' | 'ARCHIVE_V2_MD_SUPPORTED' | 'MEDIA_GALLERY_HEADERS' | 'PIP_VIDEO_REDESIGN' | 'LABELS_DISPLAY' | 'VOIP_INDIVIDUAL_OUTGOING' | 'GROUPS_V_3' | 'GROUPS_V_3_CREATE' | 'CHANGE_NUMBER_V_2' | 'QUERY_STATUS_V_3_THUMBNAIL' | 'LIVE_LOCATIONS' | 'QUERY_VNAME' | 'VOIP_INDIVIDUAL_INCOMING' | 'QUICK_REPLIES_QUERY' | 'PAYMENTS' | 'STICKER_PACK_QUERY' | 'LIVE_LOCATIONS_FINAL' | 'LABELS_EDIT' | 'MEDIA_UPLOAD' | 'MEDIA_UPLOAD_RICH_QUICK_REPLIES' | 'VNAME_V_2' | 'VIDEO_PLAYBACK_URL' | 'STATUS_RANKING' | 'VOIP_INDIVIDUAL_VIDEO' | 'THIRD_PARTY_STICKERS' | 'FREQUENTLY_FORWARDED_SETTING' | 'GROUPS_V_4_JOIN_PERMISSION' | 'RECENT_STICKERS' | 'CATALOG' | 'STARRED_STICKERS' | 'VOIP_GROUP_CALL' | 'TEMPLATE_MESSAGE' | 'TEMPLATE_MESSAGE_INTERACTIVITY' | 'EPHEMERAL_MESSAGES' | 'E_2_E_NOTIFICATION_SYNC' | 'RECENT_STICKERS_V_2' | 'RECENT_STICKERS_V_3' | 'USER_NOTICE' | 'SUPPORT' | 'GROUP_UII_CLEANUP' | 'GROUP_DOGFOODING_INTERNAL_ONLY' | 'SETTINGS_SYNC' | 'ARCHIVE_V_2' | 'EPHEMERAL_ALLOW_GROUP_MEMBERS' | 'EPHEMERAL_24_H_DURATION' | 'MD_FORCE_UPGRADE' | 'DISAPPEARING_MODE' | 'EXTERNAL_MD_OPT_IN_AVAILABLE' | 'ARCHIVE_BROADCAST' | 'RECENT_EMOJI_SYNC' | 'STARRED_GIFS' | 'INDEX_RECEIVED_VCARD' | 'STATUS_V3_UI_SENDING' | 'MEDIAS_COUNT' | 'VOIP_VOICE_CALL' | 'DESKTOP_VOIP_VOICE_CALL' | 'DESKTOP_VOIP_VIDEO_CALL' | 'DESKTOP_VOIP_GROUP_VOICE_CALL' | 'DESKTOP_VOIP_GROUP_VIDEO_CALL' | 'KEY_PARTICIPANT' | 'RICH_TEXT';
18
- declare class FeatureClass extends EventEmitter {
19
- FEATURE_CHANGE_EVENT: string;
20
- F: {
21
- [key: string]: string;
22
- };
23
- VF: {
24
- [key: string]: string;
25
- };
26
- silenceChangeEvents: boolean;
27
- triggerFeaturesChangedDebounced: any;
28
- features: {
29
- [key in FeaturesNames]: boolean;
30
- };
31
- proto: [number, number];
32
- setVersion(version: [number, number]): void;
33
- setPlatform(platform: string): void;
34
- setFeatureFromFlags(e?: any, t?: any, r?: any): any;
35
- setFeature(feature: FeaturesNames, supported: boolean): any;
36
- setFeatures(features: {
37
- [key in FeaturesNames]: boolean;
38
- }): any;
39
- supportsFeature(feature: FeaturesNames): boolean;
40
- supportsFeatureFromFlags(flag: any): boolean;
41
- supportsAllFeatures(...features: FeaturesNames[]): boolean;
42
- supportsAnyFeature(...features: FeaturesNames[]): boolean;
43
- supportsAnyFeature(...features: FeaturesNames[]): boolean;
44
- resetFeatures(): void;
45
- lt(version: [number, number]): boolean;
46
- ltr(version: [number, number]): boolean;
47
- gt(version: [number, number]): boolean;
48
- gte(version: [number, number]): boolean;
49
- gte(version: [number, number]): boolean;
50
- triggerFeaturesChanged(): void;
51
- overwriteDebugGKs(): void;
52
- isThirdPartyStickersEnabled(): boolean;
53
- isRecentStickersEnabled(): boolean;
54
- isStarredStickersEnabled(): boolean;
55
- isCatalogManagerEnabled(): boolean;
56
- isEphemeralAllowGroupMembersEnabled(): boolean;
57
- isEphemeral24HDurationEnabled(): boolean;
58
- isDisappearingModeEnabled(): boolean;
59
- isDropLastNameEnabled(): boolean;
60
- isGroupCatchUpEnabled(): boolean;
61
- isInAppSupportEnabled(): boolean;
62
- }
63
- /** @whatsapp 7293
64
- * @whatsapp 38184 >= 2.2218.4
65
- * @whatsapp 438184 >= 2.2222.8
66
- */
67
- export declare const Features: FeatureClass;
68
- export {};
@@ -1,43 +0,0 @@
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 { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
17
- interface Props {
18
- callId?: any;
19
- state?: any;
20
- peerJid?: any;
21
- pc?: any;
22
- answer?: any;
23
- stream?: any;
24
- }
25
- interface Session {
26
- stale?: any;
27
- }
28
- interface Derived {
29
- }
30
- /** @whatsapp 77107
31
- * @whatsapp 91932 >= 2.2204.13
32
- * @whatsapp 277107 >= 2.2222.8
33
- */
34
- export declare interface WebCallModel extends ModelProxy<Props, Session, Derived> {
35
- }
36
- /** @whatsapp 77107
37
- * @whatsapp 91932 >= 2.2204.13
38
- * @whatsapp 277107 >= 2.2222.8
39
- */
40
- export declare class WebCallModel extends Model {
41
- constructor(proterties?: ModelPropertiesContructor<WebCallModel>, options?: ModelOptions);
42
- }
43
- export {};