@wppconnect/wa-js 4.1.0 → 4.1.1-alpha.2
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 -2
- package/dist/whatsapp/enums/LogoutReason.d.ts +16 -2
- package/dist/whatsapp/functions/index.d.ts +1 -1
- package/dist/whatsapp/functions/{getErrorCodeFromLogoutReason.d.ts → logoutReason.d.ts} +5 -1
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
## 4.1.
|
|
1
|
+
## <small>4.1.1-alpha.2 (2026-05-14)</small>
|
|
2
2
|
|
|
3
|
-
*
|
|
3
|
+
* Merge branch 'manfe/clear-outdated-patches' of github.com:wppconnect-team/wa-js into manfe/clear-outdated-patches ([4061d2bb28bedcb340033a7bd94fd925249801db](https://github.com/wppconnect-team/wa-js/commit/4061d2bb28bedcb340033a7bd94fd925249801db))
|
|
@@ -31,13 +31,27 @@ export declare enum LogoutReason {
|
|
|
31
31
|
ClientVersionOutdated = "client_version_outdated",
|
|
32
32
|
SyncdErrorDuringBootstrap = "syncd_error_during_bootstrap",
|
|
33
33
|
AccountSyncError = "account_sync_error",
|
|
34
|
-
ClientFatalError = "client_fatal_error",
|
|
35
34
|
StorageQuotaExceeded = "storage_quota_exceeded",
|
|
36
35
|
PrimaryIdentityKeyChange = "primary_identity_key_change",
|
|
37
36
|
MissingEncSalt = "missing_enc_salt",
|
|
38
37
|
MissingScreenLockSalt = "missing_screen_lock_salt",
|
|
39
38
|
AccountLocked = "account_locked",
|
|
40
|
-
|
|
39
|
+
LidMigrationSplitThreadMismatch = "lid_migration_split_thread_mismatch",
|
|
40
|
+
LidMigrationNoLidAvailiable = "lid_migration_no_lid_available",
|
|
41
|
+
LidMigrationPrimaryMappingsObsolete = "lid_migration_primary_mappings_obsolete",
|
|
42
|
+
LidMigrationPeerMappingsNotReceived = "lid_migration_peer_mapping_not_received",
|
|
43
|
+
LidMigrationStateDiscrepancy = "lid_migration_state_discrepancy",
|
|
44
|
+
LidMigrationPeerMappingsMalformed = "lid_migration_peer_mapping_malformed",
|
|
45
|
+
LidMigrationFailedToParseMapping = "lid_migration_failed_to_parse_mapping",
|
|
46
|
+
LidMigrationCompanionIncompatibleKillswitch = "lid_migration_companion_incompatible_killswitch",
|
|
47
|
+
LidMigrationOneOnOneThreadMigrationInternalError = "lid_migration_one_on_one_thread_migration_internal_error",
|
|
48
|
+
LidBlocklistPnWhenMigrated = "lid_blocklist_pn_when_migrated",
|
|
49
|
+
LidBlocklistChatDbUnmigrated = "lid_blocklist_chat_db_unmigrated",
|
|
50
|
+
WebFailAddChat = "web_fail_add_chat",
|
|
51
|
+
WebFailOfflineResume = "web_fail_offline_resume",
|
|
52
|
+
WebFailStorageInitialization = "web_fail_storage_initialization",
|
|
53
|
+
WebFailEncSalt = "web_fail_enc_salt",
|
|
54
|
+
CacheStorageOpenFailed = "cache_storage_open_failed"
|
|
41
55
|
}
|
|
42
56
|
export declare enum LOGOUT_REASON_CODE {
|
|
43
57
|
CLIENT_FATAL = "0",
|
|
@@ -70,7 +70,6 @@ export * from './getCountryShortcodeByPhone';
|
|
|
70
70
|
export * from './getCurrentLid';
|
|
71
71
|
export * from './getEnforceCurrentLid';
|
|
72
72
|
export * from './getEphemeralFields';
|
|
73
|
-
export * from './getErrorCodeFromLogoutReason';
|
|
74
73
|
export * from './getExisting';
|
|
75
74
|
export * from './getFanOutList';
|
|
76
75
|
export * from './getGroupSenderKeyList';
|
|
@@ -109,6 +108,7 @@ export * from './isWid';
|
|
|
109
108
|
export * from './joinGroupViaInvite';
|
|
110
109
|
export * from './keepMessage';
|
|
111
110
|
export * from './labelAddAction';
|
|
111
|
+
export * from './logoutReason';
|
|
112
112
|
export * from './markSeen';
|
|
113
113
|
export * from './mediaTypeFromProtobuf';
|
|
114
114
|
export * from './membershipApprovalRequestAction';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 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.
|
|
@@ -18,3 +18,7 @@ import { LOGOUT_REASON_CODE, LogoutReason } from '../enums';
|
|
|
18
18
|
* @whatsapp WAWebLogoutReason >= 2.3000.x
|
|
19
19
|
*/
|
|
20
20
|
export declare function getErrorCodeFromLogoutReason(type: LogoutReason): LOGOUT_REASON_CODE | null;
|
|
21
|
+
export declare function setPrevLogoutReasonCode(code: LOGOUT_REASON_CODE | null): void;
|
|
22
|
+
export declare function setPrevCustomLogoutMessage(message: string | null): void;
|
|
23
|
+
export declare function getPrevLogoutReasonCode(): LOGOUT_REASON_CODE | null;
|
|
24
|
+
export declare function getPrevCustomLogoutMessage(): string | null;
|