Skip to content

Commit

Permalink
fix: Added all methods of UserPrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Aug 25, 2021
1 parent d3d6939 commit 5e1a24c
Showing 1 changed file with 120 additions and 2 deletions.
122 changes: 120 additions & 2 deletions src/whatsapp/misc/UserPrefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,129 @@ import { exportModule } from '../exportModule';
import { Wid } from './Wid';

/**
* @moduleID 56726
* @whatsapp 2.2126.14
* @moduleID 26226
* @whatsapp 2.2132.6
*/
export declare const UserPrefs: {
setMe(wid: Wid): void;
getMe(): Wid;
assertGetMe(): Wid;
assertGetMeUser(): Wid;
getMeUser(): Wid;
getMaybeMeUser(): Wid;
setPushname(name: string): void;
getPushname(): string;
getLoginTokens(): { client: string; server: string };
setLoginTokens(token: { client: string; server: string }): void;
knowsPhone(): boolean;
setRefTok(e?: any, t?: any): void;
clearDeprecatedKeys(...args: any[]): any;
mdOptedIn(...args: any[]): any;
setMdOptedIn(...args: any[]): any;
getSecretBundle(...args: any[]): any;
clearTokens(...args: any[]): any;
shouldShowNUX(...args: any[]): any;
viewNUX(...args: any[]): any;
getNUX(...args: any[]): any;
setNUX(...args: any[]): any;
removeNUX(...args: any[]): any;
getUnknownId(...args: any[]): any;
setUnknownId(...args: any[]): any;
getBrowserId(...args: any[]): any;
setBrowserId(...args: any[]): any;
getLastMobilePlatform(...args: any[]): any;
setLastMobilePlatform(...args: any[]): any;
setLastChatMuteDuration(...args: any[]): any;
getLastChatMuteDuration(...args: any[]): any;
setTheme(...args: any[]): any;
getTheme(...args: any[]): any;
setSystemThemeMode(...args: any[]): any;
getSystemThemeMode(...args: any[]): any;
setLastComposeBoxPanel(...args: any[]): any;
getLastComposeBoxPanel(...args: any[]): any;
setSeenGroupDesc(...args: any[]): any;
getSeenGroupDesc(...args: any[]): any;
getGlobalSounds(...args: any[]): any;
setGlobalSounds(...args: any[]): any;
getGlobalNotifications(...args: any[]): any;
setGlobalNotifications(...args: any[]): any;
getGlobalSecurityNotifications(...args: any[]): any;
setGlobalSecurityNotifications(...args: any[]): any;
getUserPrivacySettings(...args: any[]): any;
setUserPrivacySettings(...args: any[]): any;
getGlobalPreviews(...args: any[]): any;
setGlobalPreviews(...args: any[]): any;
getCollapseMuted(...args: any[]): any;
setCollapseMuted(...args: any[]): any;
getAutoDownloadPhotos(...args: any[]): any;
setAutoDownloadPhotos(...args: any[]): any;
getAutoDownloadAudio(...args: any[]): any;
setAutoDownloadAudio(...args: any[]): any;
getAutoDownloadVideos(...args: any[]): any;
setAutoDownloadVideos(...args: any[]): any;
setAutoDownloadDocuments(...args: any[]): any;
getGeocoderLocation(...args: any[]): any;
setGeocoderLocation(...args: any[]): any;
getMapsOverQuota(...args: any[]): any;
setMapsOverQuota(...args: any[]): any;
setSmbLabelPalette(...args: any[]): any;
getSmbLabelPalette(...args: any[]): any;
getGroupParticipantAssignedColor(...args: any[]): any;
setGroupParticipantAssignedColor(...args: any[]): any;
getMutex(...args: any[]): any;
setMutex(...args: any[]): any;
removeMutex(...args: any[]): any;
parseMutex(...args: any[]): any;
mutexFilter(...args: any[]): any;
localTakeoverSuccess(...args: any[]): any;
parseTakeover(...args: any[]): any;
takeoverFilter(...args: any[]): any;
getLangPref(...args: any[]): any;
setLangPref(...args: any[]): any;
getLogoutToken(...args: any[]): any;
setLogoutToken(...args: any[]): any;
getOldLogoutCreds(...args: any[]): any;
setOldLogoutCreds(...args: any[]): any;
setNoTakeover(...args: any[]): any;
getNoTakeover(...args: any[]): any;
getWamBuffer(...args: any[]): any;
setWamBuffer(...args: any[]): any;
getWamInfo(...args: any[]): any;
setWamInfo(...args: any[]): any;
setVideoVolumeSettings(...args: any[]): any;
setVideoVolumeSetting(...args: any[]): any;
setVideoMutedSetting(...args: any[]): any;
getVideoVolumeSettings(...args: any[]): any;
setComposeContents(...args: any[]): any;
getComposeContents(...args: any[]): any;
deleteComposeContents(...args: any[]): any;
setVersion(...args: any[]): any;
getVersion(...args: any[]): any;
setContactChecksum(...args: any[]): any;
getContactChecksum(...args: any[]): any;
getNoticeBannerClosedAt(...args: any[]): any;
setNoticeBannerClosedAt(...args: any[]): any;
getNoticeId(...args: any[]): any;
setNoticeId(...args: any[]): any;
getPttPlaybackRate(...args: any[]): any;
setPttPlaybackRate(...args: any[]): any;
getLastStatusUsage(...args: any[]): any;
setLastStatusUsage(...args: any[]): any;
getOutgoingMessageSound(...args: any[]): any;
setOutgoingMessageSound(...args: any[]): any;
getHistorySyncEarliestDate(...args: any[]): any;
setHistorySyncEarliestDate(...args: any[]): any;
setShouldPreemptivelyCleanupLogs(...args: any[]): any;
getShouldPreemptivelyCleanupLogs(...args: any[]): any;
readonly getRememberMe: any;
readonly setRememberMe: any;
readonly clearAllLocalState: any;
readonly clearAllTemporaryStorageData: any;
readonly _setAllKeyValues: any;
readonly getCollection: any;
readonly setCollection: any;
readonly updatePreservedUserKeys: any;
thisTabId: string;
};

exportModule(exports, 'UserPrefs', (m) => m.getMaybeMeUser);

0 comments on commit 5e1a24c

Please sign in to comment.